From 13e2461afc8545fd7d598729f7de5c1c646498d4 Mon Sep 17 00:00:00 2001 From: Alissa Renz Date: Wed, 14 Aug 2024 16:00:21 -0700 Subject: [PATCH 1/6] Add ai.assistant.* APIs for AI apps --- packages/web-api/src/methods.ts | 25 ++++++++++++++++++++ packages/web-api/src/types/request/ai.ts | 26 +++++++++++++++++++++ packages/web-api/src/types/request/index.ts | 1 + 3 files changed, 52 insertions(+) create mode 100644 packages/web-api/src/types/request/ai.ts diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index 48ca9030e..2a3f851d8 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -100,6 +100,9 @@ import type { AdminWorkflowsPermissionsLookupArguments, AdminWorkflowsSearchArguments, AdminWorkflowsUnpublishArguments, + AIAssistantThreadsSetStatusArguments, + AIAssistantThreadsSetSuggestedPromptsArguments, + AIAssistantThreadsSetTitleArguments, AppsConnectionsOpenArguments, AppsEventAuthorizationsListArguments, AppsManifestCreateArguments, @@ -1332,6 +1335,28 @@ export abstract class Methods extends EventEmitter { test: bindApiCallWithOptionalArgument(this, 'api.test'), }; + public readonly ai = { + assistant: { + threads: { + /** + * @description Set loading status to indicate that the app is building a response. + * @see {@link https://api.slack.com/methods/ai.assistant.threads.setStatus `ai.assistant.threads.setStatus` API reference}. + */ + setStatus: bindApiCall(this, 'ai.assistant.threads.setStatus'), + /** + * @description Set suggested prompts for the user. Can suggest up to four prompts. + * @see {@link https://api.slack.com/methods/ai.assistant.threads.setSuggestedPrompts `ai.assistant.threads.setSuggestedPrompts` API reference}. + */ + setSuggestedPrompts: bindApiCall(this, 'ai.assistant.threads.setSuggestedPrompts'), + /** + * @description Set the title of the thread. This is shown when a user views the app's chat history. + * @see {@link https://api.slack.com/methods/ai.assistant.threads.setTitle `ai.assistant.threads.setTitle` API reference}. + */ + setTitle: bindApiCall(this, 'ai.assistant.threads.setTitle'), + } + } + } + public readonly apps = { connections: { /** diff --git a/packages/web-api/src/types/request/ai.ts b/packages/web-api/src/types/request/ai.ts new file mode 100644 index 000000000..0f9da15c5 --- /dev/null +++ b/packages/web-api/src/types/request/ai.ts @@ -0,0 +1,26 @@ +import type { TokenOverridable } from './common'; + +// https://api.slack.com/methods/ai.assistant.threads.setStatus +export interface AIAssistantThreadsSetStatusArguments extends TokenOverridable { + status: string; + channel_id: string; + thread_ts: string; +} + +// https://api.slack.com/methods/ai.assistant.threads.setSuggestedPrompts +export interface AIAssistantThreadsSetSuggestedPromptsArguments extends TokenOverridable { + channel_id: string; + thread_ts: string; + title: string; + prompts: { + title: string; + message: string; + }[]; +} + +// https://api.slack.com/methods/ai.assistant.threads.setTitle +export interface AIAssistantThreadsSetTitleArguments extends TokenOverridable { + title: string; + channel_id: string; + thread_ts: string; +} diff --git a/packages/web-api/src/types/request/index.ts b/packages/web-api/src/types/request/index.ts index 3a6a655f5..b48a37edd 100644 --- a/packages/web-api/src/types/request/index.ts +++ b/packages/web-api/src/types/request/index.ts @@ -162,6 +162,7 @@ export type { AppsUninstallArguments, } from './apps'; export type { APITestArguments } from './api'; +export type { AIAssistantThreadsSetStatusArguments, AIAssistantThreadsSetSuggestedPromptsArguments, AIAssistantThreadsSetTitleArguments } from './ai'; export type { AdminAnalyticsGetFileArguments } from './admin/analytics'; export type { AdminAppsActivitiesListArguments, From efc53eb7e4e677bb7eb26191f10311da88be7a3f Mon Sep 17 00:00:00 2001 From: Alissa Renz Date: Wed, 4 Sep 2024 16:26:29 -0700 Subject: [PATCH 2/6] Update endpoints by removing ai --- packages/web-api/src/methods.ts | 44 +++++++++---------- packages/web-api/src/types/request/ai.ts | 26 ----------- .../web-api/src/types/request/assistant.ts | 26 +++++++++++ packages/web-api/src/types/request/index.ts | 2 +- 4 files changed, 48 insertions(+), 50 deletions(-) delete mode 100644 packages/web-api/src/types/request/ai.ts create mode 100644 packages/web-api/src/types/request/assistant.ts diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index 2a3f851d8..ae7799458 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -100,9 +100,9 @@ import type { AdminWorkflowsPermissionsLookupArguments, AdminWorkflowsSearchArguments, AdminWorkflowsUnpublishArguments, - AIAssistantThreadsSetStatusArguments, - AIAssistantThreadsSetSuggestedPromptsArguments, - AIAssistantThreadsSetTitleArguments, + AssistantThreadsSetStatusArguments, + AssistantThreadsSetSuggestedPromptsArguments, + AssistantThreadsSetTitleArguments, AppsConnectionsOpenArguments, AppsEventAuthorizationsListArguments, AppsManifestCreateArguments, @@ -1335,27 +1335,25 @@ export abstract class Methods extends EventEmitter { test: bindApiCallWithOptionalArgument(this, 'api.test'), }; - public readonly ai = { - assistant: { - threads: { - /** - * @description Set loading status to indicate that the app is building a response. - * @see {@link https://api.slack.com/methods/ai.assistant.threads.setStatus `ai.assistant.threads.setStatus` API reference}. - */ - setStatus: bindApiCall(this, 'ai.assistant.threads.setStatus'), - /** - * @description Set suggested prompts for the user. Can suggest up to four prompts. - * @see {@link https://api.slack.com/methods/ai.assistant.threads.setSuggestedPrompts `ai.assistant.threads.setSuggestedPrompts` API reference}. - */ - setSuggestedPrompts: bindApiCall(this, 'ai.assistant.threads.setSuggestedPrompts'), - /** - * @description Set the title of the thread. This is shown when a user views the app's chat history. - * @see {@link https://api.slack.com/methods/ai.assistant.threads.setTitle `ai.assistant.threads.setTitle` API reference}. - */ - setTitle: bindApiCall(this, 'ai.assistant.threads.setTitle'), - } + public readonly assistant = { + threads: { + /** + * @description Set loading status to indicate that the app is building a response. + * @see {@link https://api.slack.com/methods/assistant.threads.setStatus `assistant.threads.setStatus` API reference}. + */ + setStatus: bindApiCall(this, 'assistant.threads.setStatus'), + /** + * @description Set suggested prompts for the user. Can suggest up to four prompts. + * @see {@link https://api.slack.com/methods/assistant.threads.setSuggestedPrompts `assistant.threads.setSuggestedPrompts` API reference}. + */ + setSuggestedPrompts: bindApiCall(this, 'assistant.threads.setSuggestedPrompts'), + /** + * @description Set the title of the thread. This is shown when a user views the app's chat history. + * @see {@link https://api.slack.com/methods/assistant.threads.setTitle `assistant.threads.setTitle` API reference}. + */ + setTitle: bindApiCall(this, 'assistant.threads.setTitle'), } - } + }; public readonly apps = { connections: { diff --git a/packages/web-api/src/types/request/ai.ts b/packages/web-api/src/types/request/ai.ts deleted file mode 100644 index 0f9da15c5..000000000 --- a/packages/web-api/src/types/request/ai.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { TokenOverridable } from './common'; - -// https://api.slack.com/methods/ai.assistant.threads.setStatus -export interface AIAssistantThreadsSetStatusArguments extends TokenOverridable { - status: string; - channel_id: string; - thread_ts: string; -} - -// https://api.slack.com/methods/ai.assistant.threads.setSuggestedPrompts -export interface AIAssistantThreadsSetSuggestedPromptsArguments extends TokenOverridable { - channel_id: string; - thread_ts: string; - title: string; - prompts: { - title: string; - message: string; - }[]; -} - -// https://api.slack.com/methods/ai.assistant.threads.setTitle -export interface AIAssistantThreadsSetTitleArguments extends TokenOverridable { - title: string; - channel_id: string; - thread_ts: string; -} diff --git a/packages/web-api/src/types/request/assistant.ts b/packages/web-api/src/types/request/assistant.ts new file mode 100644 index 000000000..bcbfd6320 --- /dev/null +++ b/packages/web-api/src/types/request/assistant.ts @@ -0,0 +1,26 @@ +import type { TokenOverridable } from './common'; + +// https://api.slack.com/methods/assistant.threads.setStatus +export interface AssistantThreadsSetStatusArguments extends TokenOverridable { + status: string; + channel_id: string; + thread_ts: string; +} + +// https://api.slack.com/methods/assistant.threads.setSuggestedPrompts +export interface AssistantThreadsSetSuggestedPromptsArguments extends TokenOverridable { + channel_id: string; + thread_ts: string; + title: string; + prompts: { + title: string; + message: string; + }[]; +} + +// https://api.slack.com/methods/assistant.threads.setTitle +export interface AssistantThreadsSetTitleArguments extends TokenOverridable { + title: string; + channel_id: string; + thread_ts: string; +} diff --git a/packages/web-api/src/types/request/index.ts b/packages/web-api/src/types/request/index.ts index b48a37edd..948a4881b 100644 --- a/packages/web-api/src/types/request/index.ts +++ b/packages/web-api/src/types/request/index.ts @@ -162,7 +162,7 @@ export type { AppsUninstallArguments, } from './apps'; export type { APITestArguments } from './api'; -export type { AIAssistantThreadsSetStatusArguments, AIAssistantThreadsSetSuggestedPromptsArguments, AIAssistantThreadsSetTitleArguments } from './ai'; +export type { AssistantThreadsSetStatusArguments, AssistantThreadsSetSuggestedPromptsArguments, AssistantThreadsSetTitleArguments } from './assistant'; export type { AdminAnalyticsGetFileArguments } from './admin/analytics'; export type { AdminAppsActivitiesListArguments, From 39fb2ba23b3f876ff84c7846e18801c47521d199 Mon Sep 17 00:00:00 2001 From: Alissa Renz Date: Mon, 16 Sep 2024 11:06:09 -0700 Subject: [PATCH 3/6] Add Assistant types --- packages/types/src/events/assistant.ts | 29 ++++++++++++++++++++++++++ packages/types/src/events/index.ts | 7 +++++++ 2 files changed, 36 insertions(+) create mode 100644 packages/types/src/events/assistant.ts diff --git a/packages/types/src/events/assistant.ts b/packages/types/src/events/assistant.ts new file mode 100644 index 000000000..1548510e2 --- /dev/null +++ b/packages/types/src/events/assistant.ts @@ -0,0 +1,29 @@ +export interface AssistantThreadStartedEvent { + type: "assistant_thread_started"; + assistant_thread: { + user_id: string; + context: { + channel_id: string; + team_id: string; + enterprise_id: string; + }; + channel_id: string; + thread_ts: string; + }; + event_ts: string; +} + +export interface AssistantThreadContextChangedEvent { + type: "assistant_thread_context_changed"; + assistant_thread: { + user_id: string; + context: { + channel_id: string; + team_id: string; + enterprise_id: string; + }; + channel_id: string; + thread_ts: string; + }; + event_ts: string; +} \ No newline at end of file diff --git a/packages/types/src/events/index.ts b/packages/types/src/events/index.ts index 23a64ab85..fd959d822 100644 --- a/packages/types/src/events/index.ts +++ b/packages/types/src/events/index.ts @@ -8,6 +8,10 @@ import type { AppUninstalledEvent, AppUninstalledTeamEvent, } from './app'; +import type { + AssistantThreadContextChangedEvent, + AssistantThreadStartedEvent, +} from './assistant'; import type { CallRejectedEvent } from './call'; import type { ChannelArchiveEvent, @@ -86,6 +90,7 @@ import type { TokensRevokedEvent } from './token'; import type { UserChangeEvent, UserHuddleChangedEvent, UserProfileChangedEvent, UserStatusChangedEvent } from './user'; export * from './app'; +export * from './assistant'; export * from './call'; export * from './channel'; export * from './dnd'; @@ -125,6 +130,8 @@ export type SlackEvent = | AppRequestedEvent | AppUninstalledTeamEvent | AppUninstalledEvent + | AssistantThreadContextChangedEvent + | AssistantThreadStartedEvent | CallRejectedEvent | ChannelArchiveEvent | ChannelCreatedEvent From cf02773db9d629dcc7d2920e6a9cad90f315ce10 Mon Sep 17 00:00:00 2001 From: Alissa Renz Date: Mon, 16 Sep 2024 20:00:04 -0700 Subject: [PATCH 4/6] Run response generation script; swap out placeholders --- packages/web-api/src/methods.ts | 3 + .../web-api/src/types/request/assistant.ts | 8 +- .../AdminAppsActivitiesListResponse.ts | 102 +- .../response/AdminAppsApproveResponse.ts | 11 +- .../response/AdminAppsApprovedListResponse.ts | 74 +- .../AdminAppsClearResolutionResponse.ts | 11 +- .../response/AdminAppsConfigLookupResponse.ts | 19 +- .../response/AdminAppsConfigSetResponse.ts | 9 +- .../AdminAppsRequestsCancelResponse.ts | 11 +- .../response/AdminAppsRequestsListResponse.ts | 84 +- .../response/AdminAppsRestrictResponse.ts | 11 +- .../AdminAppsRestrictedListResponse.ts | 74 +- .../response/AdminAppsUninstallResponse.ts | 11 +- .../AdminAuthPolicyAssignEntitiesResponse.ts | 11 +- .../AdminAuthPolicyGetEntitiesResponse.ts | 17 +- .../AdminAuthPolicyRemoveEntitiesResponse.ts | 11 +- .../response/AdminBarriersCreateResponse.ts | 25 +- .../response/AdminBarriersDeleteResponse.ts | 9 +- .../response/AdminBarriersListResponse.ts | 21 +- .../response/AdminBarriersUpdateResponse.ts | 23 +- .../AdminConversationsArchiveResponse.ts | 9 +- .../AdminConversationsBulkArchiveResponse.ts | 17 +- .../AdminConversationsBulkDeleteResponse.ts | 17 +- .../AdminConversationsBulkMoveResponse.ts | 17 +- ...inConversationsConvertToPrivateResponse.ts | 9 +- ...minConversationsConvertToPublicResponse.ts | 11 +- .../AdminConversationsCreateResponse.ts | 13 +- .../AdminConversationsDeleteResponse.ts | 9 +- ...inConversationsDisconnectSharedResponse.ts | 9 +- ...istOriginalConnectedChannelInfoResponse.ts | 9 +- ...nversationsGetConversationPrefsResponse.ts | 21 +- ...ConversationsGetCustomRetentionResponse.ts | 13 +- .../AdminConversationsGetTeamsResponse.ts | 9 +- .../AdminConversationsInviteResponse.ts | 11 +- .../AdminConversationsLookupResponse.ts | 13 +- ...versationsRemoveCustomRetentionResponse.ts | 9 +- .../AdminConversationsRenameResponse.ts | 9 +- ...ersationsRestrictAccessAddGroupResponse.ts | 11 +- ...sationsRestrictAccessListGroupsResponse.ts | 13 +- ...ationsRestrictAccessRemoveGroupResponse.ts | 11 +- .../AdminConversationsSearchResponse.ts | 111 +- ...nversationsSetConversationPrefsResponse.ts | 9 +- ...ConversationsSetCustomRetentionResponse.ts | 9 +- .../AdminConversationsSetTeamsResponse.ts | 11 +- .../AdminConversationsUnarchiveResponse.ts | 9 +- .../AdminConversationsWhitelistAddResponse.ts | 13 +- ...telistListGroupsLinkedToChannelResponse.ts | 15 +- ...minConversationsWhitelistRemoveResponse.ts | 13 +- .../response/AdminEmojiAddAliasResponse.ts | 11 +- .../types/response/AdminEmojiAddResponse.ts | 11 +- .../types/response/AdminEmojiListResponse.ts | 17 +- .../response/AdminEmojiRemoveResponse.ts | 11 +- .../response/AdminEmojiRenameResponse.ts | 11 +- .../response/AdminFunctionsListResponse.ts | 45 +- ...AdminFunctionsPermissionsLookupResponse.ts | 30 +- .../AdminFunctionsPermissionsSetResponse.ts | 11 +- .../AdminInviteRequestsApproveResponse.ts | 9 +- ...AdminInviteRequestsApprovedListResponse.ts | 43 +- .../AdminInviteRequestsDeniedListResponse.ts | 29 +- .../AdminInviteRequestsDenyResponse.ts | 9 +- .../AdminInviteRequestsListResponse.ts | 27 +- .../AdminRolesAddAssignmentsResponse.ts | 13 +- .../AdminRolesListAssignmentsResponse.ts | 21 +- .../AdminRolesRemoveAssignmentsResponse.ts | 9 +- .../response/AdminTeamsAdminsListResponse.ts | 13 +- .../response/AdminTeamsCreateResponse.ts | 13 +- .../types/response/AdminTeamsListResponse.ts | 23 +- .../response/AdminTeamsOwnersListResponse.ts | 13 +- .../AdminTeamsSettingsInfoResponse.ts | 49 +- ...TeamsSettingsSetDefaultChannelsResponse.ts | 11 +- ...dminTeamsSettingsSetDescriptionResponse.ts | 9 +- ...TeamsSettingsSetDiscoverabilityResponse.ts | 9 +- .../AdminTeamsSettingsSetIconResponse.ts | 11 +- .../AdminTeamsSettingsSetNameResponse.ts | 9 +- .../AdminUsergroupsAddChannelsResponse.ts | 9 +- .../AdminUsergroupsAddTeamsResponse.ts | 9 +- .../AdminUsergroupsListChannelsResponse.ts | 75 +- .../AdminUsergroupsRemoveChannelsResponse.ts | 9 +- .../response/AdminUsersAssignResponse.ts | 9 +- .../response/AdminUsersInviteResponse.ts | 11 +- .../types/response/AdminUsersListResponse.ts | 47 +- .../response/AdminUsersRemoveResponse.ts | 9 +- .../AdminUsersSessionClearSettingsResponse.ts | 9 +- .../AdminUsersSessionGetSettingsResponse.ts | 17 +- .../AdminUsersSessionInvalidateResponse.ts | 11 +- .../response/AdminUsersSessionListResponse.ts | 29 +- .../AdminUsersSessionResetBulkResponse.ts | 9 +- .../AdminUsersSessionResetResponse.ts | 9 +- .../AdminUsersSessionSetSettingsResponse.ts | 9 +- .../response/AdminUsersSetAdminResponse.ts | 9 +- .../AdminUsersSetExpirationResponse.ts | 9 +- .../response/AdminUsersSetOwnerResponse.ts | 9 +- .../response/AdminUsersSetRegularResponse.ts | 9 +- ...nUsersUnsupportedVersionsExportResponse.ts | 9 +- .../AdminWorkflowsCollaboratorsAddResponse.ts | 17 +- ...minWorkflowsCollaboratorsRemoveResponse.ts | 15 +- ...AdminWorkflowsPermissionsLookupResponse.ts | 21 +- .../response/AdminWorkflowsSearchResponse.ts | 73 +- .../AdminWorkflowsUnpublishResponse.ts | 11 +- .../src/types/response/ApiTestResponse.ts | 13 +- .../response/AppsConnectionsOpenResponse.ts | 11 +- .../AppsEventAuthorizationsListResponse.ts | 19 +- .../response/AppsManifestCreateResponse.ts | 31 +- .../response/AppsManifestDeleteResponse.ts | 9 +- .../response/AppsManifestExportResponse.ts | 101 +- .../response/AppsManifestUpdateResponse.ts | 13 +- .../response/AppsManifestValidateResponse.ts | 19 +- .../response/AppsPermissionsInfoResponse.ts | 9 +- .../AppsPermissionsRequestResponse.ts | 9 +- .../AppsPermissionsResourcesListResponse.ts | 9 +- .../AppsPermissionsScopesListResponse.ts | 9 +- .../AppsPermissionsUsersListResponse.ts | 9 +- .../AppsPermissionsUsersRequestResponse.ts | 9 +- .../types/response/AppsUninstallResponse.ts | 11 +- .../AssistantThreadsSetStatusResponse.ts | 17 + ...stantThreadsSetSuggestedPromptsResponse.ts | 17 + .../AssistantThreadsSetTitleResponse.ts | 17 + .../src/types/response/AuthRevokeResponse.ts | 9 +- .../types/response/AuthTeamsListResponse.ts | 29 +- .../src/types/response/AuthTestResponse.ts | 31 +- .../types/response/BookmarksAddResponse.ts | 41 +- .../types/response/BookmarksEditResponse.ts | 41 +- .../types/response/BookmarksListResponse.ts | 41 +- .../types/response/BookmarksRemoveResponse.ts | 11 +- .../src/types/response/BotsInfoResponse.ts | 19 +- .../src/types/response/CallsAddResponse.ts | 33 +- .../src/types/response/CallsEndResponse.ts | 35 +- .../src/types/response/CallsInfoResponse.ts | 33 +- .../response/CallsParticipantsAddResponse.ts | 33 +- .../CallsParticipantsRemoveResponse.ts | 33 +- .../src/types/response/CallsUpdateResponse.ts | 33 +- .../response/CanvasesAccessDeleteResponse.ts | 18 +- .../response/CanvasesAccessSetResponse.ts | 18 +- .../types/response/CanvasesCreateResponse.ts | 15 +- .../types/response/CanvasesDeleteResponse.ts | 14 +- .../types/response/CanvasesEditResponse.ts | 13 +- .../CanvasesSectionsLookupResponse.ts | 13 +- .../types/response/ChannelsArchiveResponse.ts | 9 +- .../types/response/ChannelsCreateResponse.ts | 57 +- .../types/response/ChannelsHistoryResponse.ts | 481 ++- .../types/response/ChannelsInfoResponse.ts | 375 +- .../types/response/ChannelsInviteResponse.ts | 67 +- .../types/response/ChannelsJoinResponse.ts | 67 +- .../types/response/ChannelsKickResponse.ts | 9 +- .../types/response/ChannelsLeaveResponse.ts | 9 +- .../types/response/ChannelsListResponse.ts | 59 +- .../types/response/ChannelsMarkResponse.ts | 9 +- .../types/response/ChannelsRenameResponse.ts | 49 +- .../types/response/ChannelsRepliesResponse.ts | 51 +- .../response/ChannelsSetPurposeResponse.ts | 11 +- .../response/ChannelsSetTopicResponse.ts | 11 +- .../response/ChannelsUnarchiveResponse.ts | 9 +- .../src/types/response/ChatDeleteResponse.ts | 13 +- .../ChatDeleteScheduledMessageResponse.ts | 9 +- .../response/ChatGetPermalinkResponse.ts | 13 +- .../types/response/ChatMeMessageResponse.ts | 13 +- .../response/ChatPostEphemeralResponse.ts | 11 +- .../types/response/ChatPostMessageResponse.ts | 2008 ++++----- .../response/ChatScheduleMessageResponse.ts | 1026 ++--- .../ChatScheduledMessagesListResponse.ts | 21 +- .../src/types/response/ChatUnfurlResponse.ts | 9 +- .../src/types/response/ChatUpdateResponse.ts | 1027 ++--- ...ConversationsAcceptSharedInviteResponse.ts | 17 +- ...onversationsApproveSharedInviteResponse.ts | 9 +- .../response/ConversationsArchiveResponse.ts | 9 +- .../ConversationsCanvasesCreateResponse.ts | 15 +- .../response/ConversationsCloseResponse.ts | 13 +- .../response/ConversationsCreateResponse.ts | 77 +- ...onversationsDeclineSharedInviteResponse.ts | 9 +- ...onsExternalInvitePermissionsSetResponse.ts | 9 +- .../response/ConversationsHistoryResponse.ts | 2034 ++++----- .../response/ConversationsInfoResponse.ts | 91 +- .../response/ConversationsInviteResponse.ts | 79 +- .../ConversationsInviteSharedResponse.ts | 17 +- .../response/ConversationsJoinResponse.ts | 91 +- .../response/ConversationsKickResponse.ts | 9 +- .../response/ConversationsLeaveResponse.ts | 9 +- ...ConversationsListConnectInvitesResponse.ts | 153 +- .../response/ConversationsListResponse.ts | 101 +- .../response/ConversationsMarkResponse.ts | 9 +- .../response/ConversationsMembersResponse.ts | 13 +- .../response/ConversationsOpenResponse.ts | 981 ++--- .../response/ConversationsRenameResponse.ts | 73 +- .../response/ConversationsRepliesResponse.ts | 1984 ++++----- ...tionsRequestSharedInviteApproveResponse.ts | 8 +- ...rsationsRequestSharedInviteDenyResponse.ts | 9 +- .../ConversationsSetPurposeResponse.ts | 67 +- .../response/ConversationsSetTopicResponse.ts | 67 +- .../ConversationsUnarchiveResponse.ts | 9 +- .../src/types/response/DialogOpenResponse.ts | 13 +- .../src/types/response/DndEndDndResponse.ts | 9 +- .../types/response/DndEndSnoozeResponse.ts | 17 +- .../src/types/response/DndInfoResponse.ts | 15 +- .../types/response/DndSetSnoozeResponse.ts | 17 +- .../src/types/response/DndTeamInfoResponse.ts | 15 +- .../src/types/response/EmojiListResponse.ts | 19 +- .../response/FilesCommentsAddResponse.ts | 11 +- .../response/FilesCommentsDeleteResponse.ts | 9 +- .../response/FilesCommentsEditResponse.ts | 21 +- .../FilesCompleteUploadExternalResponse.ts | 139 +- .../src/types/response/FilesDeleteResponse.ts | 9 +- .../FilesGetUploadURLExternalResponse.ts | 15 +- .../src/types/response/FilesInfoResponse.ts | 747 ++-- .../src/types/response/FilesListResponse.ts | 735 ++-- .../types/response/FilesRemoteAddResponse.ts | 731 ++-- .../types/response/FilesRemoteInfoResponse.ts | 731 ++-- .../types/response/FilesRemoteListResponse.ts | 733 ++-- .../response/FilesRemoteRemoveResponse.ts | 9 +- .../response/FilesRemoteShareResponse.ts | 731 ++-- .../response/FilesRemoteUpdateResponse.ts | 731 ++-- .../response/FilesRevokePublicURLResponse.ts | 731 ++-- .../response/FilesSharedPublicURLResponse.ts | 731 ++-- .../src/types/response/FilesUploadResponse.ts | 731 ++-- .../FunctionsCompleteErrorResponse.ts | 9 +- .../FunctionsCompleteSuccessResponse.ts | 9 +- .../types/response/GroupsArchiveResponse.ts | 13 +- .../src/types/response/GroupsCloseResponse.ts | 9 +- .../response/GroupsCreateChildResponse.ts | 59 +- .../types/response/GroupsCreateResponse.ts | 49 +- .../types/response/GroupsHistoryResponse.ts | 27 +- .../src/types/response/GroupsInfoResponse.ts | 57 +- .../types/response/GroupsInviteResponse.ts | 59 +- .../src/types/response/GroupsKickResponse.ts | 13 +- .../src/types/response/GroupsLeaveResponse.ts | 13 +- .../src/types/response/GroupsListResponse.ts | 47 +- .../src/types/response/GroupsMarkResponse.ts | 13 +- .../src/types/response/GroupsOpenResponse.ts | 17 +- .../types/response/GroupsRenameResponse.ts | 39 +- .../types/response/GroupsRepliesResponse.ts | 53 +- .../response/GroupsSetPurposeResponse.ts | 15 +- .../types/response/GroupsSetTopicResponse.ts | 15 +- .../types/response/GroupsUnarchiveResponse.ts | 13 +- .../src/types/response/ImCloseResponse.ts | 13 +- .../src/types/response/ImHistoryResponse.ts | 161 +- .../src/types/response/ImListResponse.ts | 33 +- .../src/types/response/ImMarkResponse.ts | 13 +- .../src/types/response/ImOpenResponse.ts | 19 +- .../src/types/response/ImRepliesResponse.ts | 53 +- .../response/MigrationExchangeResponse.ts | 19 +- .../src/types/response/MpimCloseResponse.ts | 13 +- .../src/types/response/MpimHistoryResponse.ts | 57 +- .../src/types/response/MpimListResponse.ts | 45 +- .../src/types/response/MpimMarkResponse.ts | 13 +- .../src/types/response/MpimOpenResponse.ts | 75 +- .../src/types/response/MpimRepliesResponse.ts | 53 +- .../src/types/response/OauthAccessResponse.ts | 55 +- .../src/types/response/OauthTokenResponse.ts | 11 +- .../types/response/OauthV2AccessResponse.ts | 53 +- .../types/response/OauthV2ExchangeResponse.ts | 55 +- .../response/OpenIDConnectTokenResponse.ts | 21 +- .../response/OpenIDConnectUserInfoResponse.ts | 71 +- .../src/types/response/PinsAddResponse.ts | 9 +- .../src/types/response/PinsListResponse.ts | 739 ++-- .../src/types/response/PinsRemoveResponse.ts | 9 +- .../types/response/ReactionsAddResponse.ts | 9 +- .../types/response/ReactionsGetResponse.ts | 1024 ++--- .../types/response/ReactionsListResponse.ts | 2004 ++++----- .../types/response/ReactionsRemoveResponse.ts | 9 +- .../types/response/RemindersAddResponse.ts | 25 +- .../response/RemindersCompleteResponse.ts | 9 +- .../types/response/RemindersDeleteResponse.ts | 9 +- .../types/response/RemindersInfoResponse.ts | 21 +- .../types/response/RemindersListResponse.ts | 29 +- .../src/types/response/RtmConnectResponse.ts | 21 +- .../src/types/response/RtmStartResponse.ts | 3649 +++++++++-------- .../src/types/response/SearchAllResponse.ts | 2131 +++++----- .../src/types/response/SearchFilesResponse.ts | 2045 ++++----- .../types/response/SearchMessagesResponse.ts | 1911 ++++----- .../src/types/response/StarsAddResponse.ts | 9 +- .../src/types/response/StarsListResponse.ts | 1107 +++-- .../src/types/response/StarsRemoveResponse.ts | 9 +- .../types/response/TeamAccessLogsResponse.ts | 33 +- .../response/TeamBillableInfoResponse.ts | 13 +- .../types/response/TeamBillingInfoResponse.ts | 11 +- .../TeamExternalTeamsDisconnectResponse.ts | 11 +- .../response/TeamExternalTeamsListResponse.ts | 127 +- .../src/types/response/TeamInfoResponse.ts | 51 +- .../response/TeamIntegrationLogsResponse.ts | 45 +- .../response/TeamPreferencesListResponse.ts | 19 +- .../types/response/TeamProfileGetResponse.ts | 51 +- .../response/ToolingTokensRotateResponse.ts | 23 +- .../response/UsergroupsCreateResponse.ts | 47 +- .../response/UsergroupsDisableResponse.ts | 49 +- .../response/UsergroupsEnableResponse.ts | 47 +- .../types/response/UsergroupsListResponse.ts | 49 +- .../response/UsergroupsUpdateResponse.ts | 47 +- .../response/UsergroupsUsersListResponse.ts | 11 +- .../response/UsergroupsUsersUpdateResponse.ts | 47 +- .../response/UsersConversationsResponse.ts | 107 +- .../response/UsersDeletePhotoResponse.ts | 9 +- ...UsersDiscoverableContactsLookupResponse.ts | 13 +- .../response/UsersGetPresenceResponse.ts | 23 +- .../types/response/UsersIdentityResponse.ts | 31 +- .../src/types/response/UsersInfoResponse.ts | 145 +- .../src/types/response/UsersListResponse.ts | 160 +- .../response/UsersLookupByEmailResponse.ts | 121 +- .../types/response/UsersProfileGetResponse.ts | 77 +- .../types/response/UsersProfileSetResponse.ts | 77 +- .../types/response/UsersSetActiveResponse.ts | 9 +- .../types/response/UsersSetPhotoResponse.ts | 27 +- .../response/UsersSetPresenceResponse.ts | 9 +- .../src/types/response/ViewsOpenResponse.ts | 362 +- .../types/response/ViewsPublishResponse.ts | 362 +- .../src/types/response/ViewsPushResponse.ts | 362 +- .../src/types/response/ViewsUpdateResponse.ts | 362 +- .../WorkflowsStepCompletedResponse.ts | 9 +- .../response/WorkflowsStepFailedResponse.ts | 9 +- .../response/WorkflowsUpdateStepResponse.ts | 9 +- packages/web-api/src/types/response/index.ts | 10 +- 309 files changed, 20404 insertions(+), 20485 deletions(-) create mode 100644 packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts create mode 100644 packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts create mode 100644 packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index ae7799458..40b4f7827 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -360,6 +360,9 @@ import type { AppsManifestUpdateResponse, AppsManifestValidateResponse, AppsUninstallResponse, + AssistantThreadsSetStatusResponse, + AssistantThreadsSetSuggestedPromptsResponse, + AssistantThreadsSetTitleResponse, AuthRevokeResponse, AuthTeamsListResponse, AuthTestResponse, diff --git a/packages/web-api/src/types/request/assistant.ts b/packages/web-api/src/types/request/assistant.ts index bcbfd6320..86925c689 100644 --- a/packages/web-api/src/types/request/assistant.ts +++ b/packages/web-api/src/types/request/assistant.ts @@ -2,25 +2,25 @@ import type { TokenOverridable } from './common'; // https://api.slack.com/methods/assistant.threads.setStatus export interface AssistantThreadsSetStatusArguments extends TokenOverridable { - status: string; channel_id: string; + status: string; thread_ts: string; } // https://api.slack.com/methods/assistant.threads.setSuggestedPrompts export interface AssistantThreadsSetSuggestedPromptsArguments extends TokenOverridable { channel_id: string; - thread_ts: string; - title: string; prompts: { title: string; message: string; }[]; + thread_ts: string; + title?: string; } // https://api.slack.com/methods/assistant.threads.setTitle export interface AssistantThreadsSetTitleArguments extends TokenOverridable { - title: string; channel_id: string; thread_ts: string; + title: string; } diff --git a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts index 5e91160e7..5efd7744e 100644 --- a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,80 +7,81 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsActivitiesListResponse = WebAPICallResult & { - activities?: Activity[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + activities?: Activity[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Activity { - app_id?: string; - component_id?: string; + app_id?: string; + component_id?: string; component_type?: string; - created?: number; - enterprise_id?: string; - event_type?: string; - level?: string; - payload?: Payload; - source?: string; - team_id?: string; - trace_id?: string; + created?: number; + enterprise_id?: string; + event_type?: string; + level?: string; + payload?: Payload; + source?: string; + team_id?: string; + trace_id?: string; } export interface Payload { - action?: string; - actor?: string; - billing_reason?: string[]; - bot_user_id?: string; - bundle_size_kb?: number; - channel_id?: string; - current_step?: number; - datastore_name?: string; - details?: string; - error?: string; - exec_outcome?: string; + action?: string; + actor?: string; + billing_reason?: string[]; + bot_user_id?: string; + bundle_size_kb?: number; + channel_id?: string; + current_step?: number; + datastore_name?: string; + details?: string; + error?: string; + exec_outcome?: string; function_execution_id?: string; - function_id?: string; - function_name?: string; - function_type?: string; - inputs?: Inputs; - is_billing_excluded?: boolean; - log?: string; - request_type?: string; - team_id?: string; - total_steps?: number; - trigger?: Trigger; - type?: string; - user_id?: string; - workflow_name?: string; + function_id?: string; + function_name?: string; + function_type?: string; + inputs?: Inputs; + is_billing_excluded?: boolean; + log?: string; + request_type?: string; + team_id?: string; + total_steps?: number; + trigger?: Trigger; + type?: string; + user_id?: string; + workflow_name?: string; } -export type Inputs = {}; +export interface Inputs { +} export interface Trigger { - config?: Config; - id?: string; + config?: Config; + id?: string; trip_information?: TripInformation; - type?: string; + type?: string; } export interface Config { description?: string; - event_type?: string; - name?: string; - schema?: Inputs; + event_type?: string; + name?: string; + schema?: Inputs; } export interface TripInformation { channel_id?: string; - list_id?: string; + list_id?: string; message_ts?: string; - reaction?: string; - user_id?: string; + reaction?: string; + user_id?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminAppsApproveResponse.ts b/packages/web-api/src/types/response/AdminAppsApproveResponse.ts index 26c8aabb6..3054690eb 100644 --- a/packages/web-api/src/types/response/AdminAppsApproveResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsApproveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsApproveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts b/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts index 65a1ab773..8730bf0e2 100644 --- a/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,66 +7,67 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsApprovedListResponse = WebAPICallResult & { - approved_apps?: ApprovedApp[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + approved_apps?: ApprovedApp[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ApprovedApp { - app?: App; - date_updated?: number; + app?: App; + date_updated?: number; last_resolved_by?: LastResolvedBy; - scopes?: Scope[]; + scopes?: Scope[]; } export interface App { - additional_info?: string; - app_directory_url?: string; - app_homepage_url?: string; - description?: string; - help_url?: string; - icons?: Icons; - id?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; + description?: string; + help_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; - is_internal?: boolean; - name?: string; - privacy_policy_url?: string; + is_granular_bot_app?: boolean; + is_internal?: boolean; + name?: string; + privacy_policy_url?: string; } export interface Icons { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface LastResolvedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface Scope { - description?: string; + description?: string; is_sensitive?: boolean; - name?: string; - token_type?: string; + name?: string; + token_type?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts b/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts index 9969d3391..8fdefbd39 100644 --- a/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsClearResolutionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts b/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts index 7688f0a37..43d7fafda 100644 --- a/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsConfigLookupResponse = WebAPICallResult & { - configs?: Config[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + configs?: Config[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Config { - app_id?: string; - domain_restrictions?: DomainRestrictions; + app_id?: string; + domain_restrictions?: DomainRestrictions; workflow_auth_strategy?: string; } export interface DomainRestrictions { emails?: string[]; - urls?: string[]; + urls?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts b/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts index dfbd7ee1f..f817c1081 100644 --- a/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsConfigSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts b/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts index d502b399c..633ce8c02 100644 --- a/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsRequestsCancelResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts b/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts index 842301a5e..e9c215262 100644 --- a/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,54 +7,55 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsRequestsListResponse = WebAPICallResult & { - app_requests?: AppRequest[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + app_requests?: AppRequest[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface AppRequest { - app?: App; - date_created?: number; - id?: string; + app?: App; + date_created?: number; + id?: string; is_user_app_collaborator?: boolean; - message?: string; - previous_resolution?: PreviousResolution; - scopes?: any[]; - team?: Team; - user?: User; + message?: string; + previous_resolution?: PreviousResolution; + scopes?: any[]; + team?: Team; + user?: User; } export interface App { - additional_info?: string; - app_directory_url?: string; - app_homepage_url?: string; - description?: string; - help_url?: string; - icons?: Icons; - id?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; + description?: string; + help_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; - is_internal?: boolean; - name?: string; - privacy_policy_url?: string; + is_granular_bot_app?: boolean; + is_internal?: boolean; + name?: string; + privacy_policy_url?: string; } export interface Icons { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } @@ -66,18 +66,18 @@ export interface PreviousResolution { export interface Team { domain?: string; - id?: string; - name?: string; + id?: string; + name?: string; } export interface User { email?: string; - id?: string; - name?: string; + id?: string; + name?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts b/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts index 7593761b4..1755908e8 100644 --- a/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsRestrictResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts b/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts index e98131e47..43b520c97 100644 --- a/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,66 +7,67 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsRestrictedListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - restricted_apps?: RestrictedApp[]; - warning?: string; + restricted_apps?: RestrictedApp[]; + warning?: string; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } export interface RestrictedApp { - app?: App; - date_updated?: number; + app?: App; + date_updated?: number; last_resolved_by?: LastResolvedBy; - scopes?: Scope[]; + scopes?: Scope[]; } export interface App { - additional_info?: string; - app_directory_url?: string; - app_homepage_url?: string; - description?: string; - help_url?: string; - icons?: Icons; - id?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; + description?: string; + help_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; - is_internal?: boolean; - name?: string; - privacy_policy_url?: string; + is_granular_bot_app?: boolean; + is_internal?: boolean; + name?: string; + privacy_policy_url?: string; } export interface Icons { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface LastResolvedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface Scope { - description?: string; + description?: string; is_sensitive?: boolean; - name?: string; - token_type?: string; + name?: string; + token_type?: string; } diff --git a/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts b/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts index a770b4500..d0991cbc0 100644 --- a/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAppsUninstallResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts b/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts index 9ae00b34a..5af4cdfac 100644 --- a/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts +++ b/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAuthPolicyAssignEntitiesResponse = WebAPICallResult & { entity_total_count?: number; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts b/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts index b578126fb..9901353a1 100644 --- a/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts +++ b/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,18 +7,18 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAuthPolicyGetEntitiesResponse = WebAPICallResult & { - entities?: Entity[]; + entities?: Entity[]; entity_total_count?: number; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface Entity { - date_added?: number; - entity_id?: string; + date_added?: number; + entity_id?: string; entity_type?: string; } diff --git a/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts b/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts index 9cf735dde..5495d1ce2 100644 --- a/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts +++ b/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminAuthPolicyRemoveEntitiesResponse = WebAPICallResult & { entity_total_count?: number; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts b/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts index 5f1b60750..d4c94c601 100644 --- a/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,27 +7,27 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminBarriersCreateResponse = WebAPICallResult & { - barrier?: Barrier; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + barrier?: Barrier; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Barrier { barriered_from_usergroups?: Usergroup[]; - date_update?: number; - enterprise_id?: string; - id?: string; - primary_usergroup?: Usergroup; - restricted_subjects?: string[]; + date_update?: number; + enterprise_id?: string; + id?: string; + primary_usergroup?: Usergroup; + restricted_subjects?: string[]; } export interface Usergroup { - id?: string; + id?: string; name?: string; } diff --git a/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts b/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts index 139889ddc..07461e239 100644 --- a/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminBarriersDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminBarriersListResponse.ts b/packages/web-api/src/types/response/AdminBarriersListResponse.ts index ae1028f71..4a46183f8 100644 --- a/packages/web-api/src/types/response/AdminBarriersListResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminBarriersListResponse = WebAPICallResult & { barriers?: Barrier[]; - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Barrier { barriered_from_usergroups?: Usergroup[]; - date_update?: number; - enterprise_id?: string; - id?: string; - primary_usergroup?: Usergroup; - restricted_subjects?: string[]; + date_update?: number; + enterprise_id?: string; + id?: string; + primary_usergroup?: Usergroup; + restricted_subjects?: string[]; } export interface Usergroup { - id?: string; + id?: string; name?: string; } diff --git a/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts b/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts index 5dba23010..541ba11fc 100644 --- a/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminBarriersUpdateResponse = WebAPICallResult & { - barrier?: Barrier; - error?: string; - needed?: string; - ok?: boolean; + barrier?: Barrier; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Barrier { barriered_from_usergroups?: Usergroup[]; - date_update?: number; - enterprise_id?: string; - id?: string; - primary_usergroup?: Usergroup; - restricted_subjects?: string[]; + date_update?: number; + enterprise_id?: string; + id?: string; + primary_usergroup?: Usergroup; + restricted_subjects?: string[]; } export interface Usergroup { - id?: string; + id?: string; name?: string; } diff --git a/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts b/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts index 612c36ea8..886536917 100644 --- a/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts b/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts index e48bac324..842d22369 100644 --- a/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsBulkArchiveResponse = WebAPICallResult & { - bulk_action_id?: string; - error?: string; - needed?: string; - not_added?: NotAdded[]; - ok?: boolean; - provided?: string; + bulk_action_id?: string; + error?: string; + needed?: string; + not_added?: NotAdded[]; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface NotAdded { channel_id?: string; - errors?: string[]; + errors?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts b/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts index 269bedfcf..808346217 100644 --- a/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsBulkDeleteResponse = WebAPICallResult & { - bulk_action_id?: string; - error?: string; - needed?: string; - not_added?: NotAdded[]; - ok?: boolean; - provided?: string; + bulk_action_id?: string; + error?: string; + needed?: string; + not_added?: NotAdded[]; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface NotAdded { channel_id?: string; - errors?: string[]; + errors?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts b/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts index 2c445ba9f..d30794206 100644 --- a/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsBulkMoveResponse = WebAPICallResult & { - bulk_action_id?: string; - error?: string; - needed?: string; - not_added?: NotAdded[]; - ok?: boolean; - provided?: string; + bulk_action_id?: string; + error?: string; + needed?: string; + not_added?: NotAdded[]; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface NotAdded { channel_id?: string; - errors?: string[]; + errors?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts b/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts index 9a48cd1a4..52474dd2c 100644 --- a/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsConvertToPrivateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts b/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts index 7ae0e22a5..537b695a6 100644 --- a/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsConvertToPublicResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts b/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts index 51add775a..26a1dd198 100644 --- a/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsCreateResponse = WebAPICallResult & { - channel_id?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel_id?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts b/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts index ad9174537..a2c1e4031 100644 --- a/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts b/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts index 02df35a5b..e2b7c1116 100644 --- a/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsDisconnectSharedResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts b/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts index ded6cdf1f..5a848611e 100644 --- a/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsEkmListOriginalConnectedChannelInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts index bc9f69cc4..9e0dd363f 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,22 +7,22 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsGetConversationPrefsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - prefs?: Prefs; + error?: string; + needed?: string; + ok?: boolean; + prefs?: Prefs; provided?: string; }; export interface Prefs { - can_huddle?: CanHuddle; - can_thread?: CanThread; + can_huddle?: CanHuddle; + can_thread?: CanThread; enable_at_channel?: CanHuddle; - enable_at_here?: CanHuddle; - membership_limit?: MembershipLimit; - who_can_post?: CanThread; + enable_at_here?: CanHuddle; + membership_limit?: MembershipLimit; + who_can_post?: CanThread; } export interface CanHuddle { diff --git a/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts index f13113736..494b0bc3c 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsGetCustomRetentionResponse = WebAPICallResult & { - duration_days?: number; - error?: string; + duration_days?: number; + error?: string; is_policy_enabled?: boolean; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts index 5a0391143..75f6f12e5 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsGetTeamsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; team_ids?: string[]; }; diff --git a/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts b/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts index c319d4b38..9f0462774 100644 --- a/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsInviteResponse = WebAPICallResult & { - error?: string; + error?: string; failed_user_ids?: FailedUserids; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface FailedUserids { diff --git a/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts b/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts index e6a2619ed..3008e206c 100644 --- a/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsLookupResponse = WebAPICallResult & { - channel_ids?: string[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel_ids?: string[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts b/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts index 251cdadeb..b71d95ef9 100644 --- a/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRemoveCustomRetentionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts b/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts index 416ad3ad8..842033ed4 100644 --- a/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRenameResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts b/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts index 846c969d7..015ea2e91 100644 --- a/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRestrictAccessAddGroupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts b/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts index 13c39f8d7..3a51d3451 100644 --- a/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRestrictAccessListGroupsResponse = WebAPICallResult & { - error?: string; - group_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts b/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts index d3369691a..41d02c145 100644 --- a/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRestrictAccessRemoveGroupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts b/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts index 5b59cf233..546f6b639 100644 --- a/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,71 +7,71 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSearchResponse = WebAPICallResult & { - conversations?: Conversation[]; - error?: string; - needed?: string; - next_cursor?: string; - ok?: boolean; - provided?: string; + conversations?: Conversation[]; + error?: string; + needed?: string; + next_cursor?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - total_count?: number; + total_count?: number; }; export interface Conversation { - canvas?: ListsClass; - channel_email_addresses?: ChannelEmailAddress[]; - channel_manager_count?: number; - connected_limited_team_ids?: string[]; - connected_team_ids?: string[]; - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator_id?: string; - external_user_count?: number; - id?: string; - internal_team_ids?: string[]; - internal_team_ids_count?: number; + canvas?: ListsClass; + channel_email_addresses?: ChannelEmailAddress[]; + channel_manager_count?: number; + connected_limited_team_ids?: string[]; + connected_team_ids?: string[]; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator_id?: string; + external_user_count?: number; + id?: string; + internal_team_ids?: string[]; + internal_team_ids_count?: number; internal_team_ids_sample_team?: string; - is_archived?: boolean; - is_disconnect_in_progress?: boolean; - is_ext_shared?: boolean; - is_frozen?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - last_activity_ts?: number; - lists?: ListsClass; - member_count?: number; - name?: string; - pending_connected_team_ids?: string[]; - properties?: Properties; - purpose?: string; + is_archived?: boolean; + is_disconnect_in_progress?: boolean; + is_ext_shared?: boolean; + is_frozen?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + last_activity_ts?: number; + lists?: ListsClass; + member_count?: number; + name?: string; + pending_connected_team_ids?: string[]; + properties?: Properties; + purpose?: string; } export interface ListsClass { ownership_details?: OwnershipDetail[]; - total_count?: number; + total_count?: number; } export interface OwnershipDetail { - count?: number; + count?: number; team_id?: string; } export interface ChannelEmailAddress { - address?: string; + address?: string; conversation_id?: string; - date_created?: number; - icons?: Icons; - name?: string; - team_id?: string; - user_id?: string; + date_created?: number; + icons?: Icons; + name?: string; + team_id?: string; + user_id?: string; } export interface Icons { @@ -83,17 +82,17 @@ export interface Icons { export interface Properties { at_channel_restricted?: boolean; - at_here_restricted?: boolean; - canvas?: PropertiesCanvas; - huddles_restricted?: boolean; + at_here_restricted?: boolean; + canvas?: PropertiesCanvas; + huddles_restricted?: boolean; posting_restricted_to?: PostingRestrictedTo; - tabs?: Tab[]; + tabs?: Tab[]; threads_restricted_to?: ThreadsRestrictedTo; } export interface PropertiesCanvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } @@ -103,9 +102,9 @@ export interface PostingRestrictedTo { } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface ThreadsRestrictedTo { diff --git a/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts b/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts index 2500fb022..3997e97bb 100644 --- a/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSetConversationPrefsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts b/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts index b647b1228..6bf406c89 100644 --- a/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSetCustomRetentionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts b/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts index 19355c55f..2b3199a84 100644 --- a/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSetTeamsResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts b/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts index 4f35a1c24..56868ebd4 100644 --- a/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts b/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts index 8d0c267b7..a5dea1ac5 100644 --- a/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsWhitelistAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts b/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts index 66847eec6..ed235fbc9 100644 --- a/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsWhitelistListGroupsLinkedToChannelResponse = WebAPICallResult & { - error?: string; - group_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts b/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts index b0f5bc74c..468d9bd73 100644 --- a/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminConversationsWhitelistRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts b/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts index 8a9bf8a08..d84da9992 100644 --- a/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminEmojiAddAliasResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminEmojiAddResponse.ts b/packages/web-api/src/types/response/AdminEmojiAddResponse.ts index e6b39beda..e1c46fbe9 100644 --- a/packages/web-api/src/types/response/AdminEmojiAddResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminEmojiAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminEmojiListResponse.ts b/packages/web-api/src/types/response/AdminEmojiListResponse.ts index 99841e58b..4826eed90 100644 --- a/packages/web-api/src/types/response/AdminEmojiListResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminEmojiListResponse = WebAPICallResult & { - emoji?: { [key: string]: Emoji }; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + emoji?: { [key: string]: Emoji }; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Emoji { date_created?: number; - uploaded_by?: string; - url?: string; + uploaded_by?: string; + url?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts b/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts index 99518ea39..803f7bea4 100644 --- a/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminEmojiRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts b/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts index e01cb8703..e8683c272 100644 --- a/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminEmojiRenameResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts index 5f05f614d..ca6f206b5 100644 --- a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,41 +7,41 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminFunctionsListResponse = WebAPICallResult & { - error?: string; - functions?: Function[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + functions?: Function[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Function { - app_id?: string; - callback_id?: string; - date_created?: number; - date_deleted?: number; - date_released?: number; - date_updated?: number; - description?: string; - form_enabled?: boolean; - id?: string; - input_parameters?: PutParameter[]; + app_id?: string; + callback_id?: string; + date_created?: number; + date_deleted?: number; + date_released?: number; + date_updated?: number; + description?: string; + form_enabled?: boolean; + id?: string; + input_parameters?: PutParameter[]; output_parameters?: PutParameter[]; - title?: string; - type?: string; + title?: string; + type?: string; } export interface PutParameter { description?: string; is_required?: boolean; - name?: string; - title?: string; - type?: string; + name?: string; + title?: string; + type?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } diff --git a/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts b/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts index ba667606d..45fdbe8aa 100644 --- a/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,36 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminFunctionsPermissionsLookupResponse = WebAPICallResult & { - error?: string; - errors?: Errors; - needed?: string; - ok?: boolean; - permissions?: { [key: string]: Permission }; - provided?: string; + error?: string; + errors?: Errors; + needed?: string; + ok?: boolean; + permissions?: { [key: string]: Permission }; + provided?: string; response_metadata?: ResponseMetadata; }; -export type Errors = {}; +export interface Errors { +} export interface Permission { allowed_by_admin?: AllowedByAdmin; allowed_entities?: AllowedEntities; - distribution?: AllowedByAdmin; + distribution?: AllowedByAdmin; } export interface AllowedByAdmin { - type?: string; + type?: string; user_ids?: string[]; } export interface AllowedEntities { channel_ids?: string[]; - org_ids?: string[]; - team_ids?: string[]; - type?: string; - user_ids?: string[]; + org_ids?: string[]; + team_ids?: string[]; + type?: string; + user_ids?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts b/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts index 0a892b975..24c77b044 100644 --- a/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminFunctionsPermissionsSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts index be799baac..11f9fbe25 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsApproveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts index 9c8245e1a..47b325f43 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,49 +7,49 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsApprovedListResponse = WebAPICallResult & { approved_requests?: ApprovedRequest[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface ApprovedRequest { - approved_by?: ApprovedBy; - invite?: Invite; + approved_by?: ApprovedBy; + invite?: Invite; invite_request?: InviteRequest; } export interface ApprovedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface Invite { - date_created?: number; - email?: string; - id?: string; + date_created?: number; + email?: string; + id?: string; invite_preferences?: InvitePreferences; - inviter_id?: string; - is_bouncing?: boolean; + inviter_id?: string; + is_bouncing?: boolean; } export interface InvitePreferences { - channel_ids?: string[]; - is_domain_matched?: boolean; - is_restricted?: boolean; + channel_ids?: string[]; + is_domain_matched?: boolean; + is_restricted?: boolean; is_ultra_restricted?: boolean; } export interface InviteRequest { - channel_ids?: string[]; - date_created?: number; - email?: string; - id?: string; - invite_type?: string; + channel_ids?: string[]; + date_created?: number; + email?: string; + id?: string; + invite_type?: string; requester_ids?: string[]; } diff --git a/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts index 5639f6a91..069a39a5d 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,34 +7,34 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsDeniedListResponse = WebAPICallResult & { - denied_requests?: DeniedRequest[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + denied_requests?: DeniedRequest[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface DeniedRequest { - denied_by?: DeniedBy; + denied_by?: DeniedBy; invite_request?: InviteRequest; } export interface DeniedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface InviteRequest { - channel_ids?: string[]; - date_created?: number; - email?: string; - id?: string; - invite_type?: string; + channel_ids?: string[]; + date_created?: number; + email?: string; + id?: string; + invite_type?: string; request_reason?: string; - requester_ids?: string[]; + requester_ids?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts index 2948970b9..233c6b806 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsDenyResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts index 949a33229..2d8f42e5a 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsListResponse = WebAPICallResult & { - error?: string; - invite_requests?: InviteRequest[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + invite_requests?: InviteRequest[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface InviteRequest { - channel_ids?: string[]; - date_created?: number; - date_expire?: number; - email?: string; - id?: string; - invite_type?: string; + channel_ids?: string[]; + date_created?: number; + date_expire?: number; + email?: string; + id?: string; + invite_type?: string; request_reason?: string; - requester_ids?: string[]; + requester_ids?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts b/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts index dfb93cc17..76e6661bd 100644 --- a/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts +++ b/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminRolesAddAssignmentsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; rejected_users?: RejectedUser[]; }; export interface RejectedUser { error?: string; - id?: string; + id?: string; } diff --git a/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts b/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts index 36a6f3272..a1ad86d26 100644 --- a/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts +++ b/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminRolesListAssignmentsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - role_assignments?: RoleAssignment[]; + role_assignments?: RoleAssignment[]; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } export interface RoleAssignment { date_create?: number; - entity_id?: string; - role_id?: string; - user_id?: string; + entity_id?: string; + role_id?: string; + user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts b/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts index b3064d003..c9b3af8ce 100644 --- a/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts +++ b/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminRolesRemoveAssignmentsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts b/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts index 4a45c1a97..7dd6a17d3 100644 --- a/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsAdminsListResponse = WebAPICallResult & { - admin_ids?: string[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + admin_ids?: string[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts b/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts index 3875d9028..e44a497b1 100644 --- a/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsCreateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - team?: string; + team?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminTeamsListResponse.ts b/packages/web-api/src/types/response/AdminTeamsListResponse.ts index 358d62683..f8f0f8fae 100644 --- a/packages/web-api/src/types/response/AdminTeamsListResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - teams?: Team[]; + teams?: Team[]; }; export interface ResponseMetadata { @@ -24,13 +23,13 @@ export interface ResponseMetadata { export interface Team { discoverability?: string; - id?: string; - name?: string; - primary_owner?: PrimaryOwner; - team_url?: string; + id?: string; + name?: string; + primary_owner?: PrimaryOwner; + team_url?: string; } export interface PrimaryOwner { - email?: string; + email?: string; user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts b/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts index 153273dfc..4d279e976 100644 --- a/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsOwnersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - owner_ids?: string[]; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + owner_ids?: string[]; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts index 1c6f7041a..9d44a6fad 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - team?: Team; + team?: Team; }; export interface Team { - avatar_base_url?: string; - default_channels?: string[]; - domain?: string; - email_domain?: string; + avatar_base_url?: string; + default_channels?: string[]; + domain?: string; + email_domain?: string; enterprise_domain?: string; - enterprise_id?: string; - enterprise_name?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - name?: string; - url?: string; + enterprise_id?: string; + enterprise_name?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + name?: string; + url?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; - image_default?: boolean; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; + image_default?: boolean; image_original?: string; } diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts index c8973cb99..28e4cf0b4 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetDefaultChannelsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts index 2db89c5cc..6195770ff 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetDescriptionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts index 3a5789f0b..0f156ef32 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetDiscoverabilityResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts index 03e4977a6..f52a54921 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetIconResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts index c9651235f..a9133f92f 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetNameResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts index ba7f9a63a..b1d46ea93 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsAddChannelsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts index 657954303..112bc20dd 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsAddTeamsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts index 3ada32177..a39c41bac 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,48 +7,48 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsListChannelsResponse = WebAPICallResult & { channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - date_connected?: number; - enterprise_id?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + date_connected?: number; + enterprise_id?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - properties?: Properties; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + properties?: Properties; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Properties { @@ -62,7 +61,7 @@ export interface RestrictedTo { } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts index 62d4b4b71..b1b1cc2f7 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsRemoveChannelsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersAssignResponse.ts b/packages/web-api/src/types/response/AdminUsersAssignResponse.ts index 3f7562c42..4366195b2 100644 --- a/packages/web-api/src/types/response/AdminUsersAssignResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersAssignResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersAssignResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersInviteResponse.ts b/packages/web-api/src/types/response/AdminUsersInviteResponse.ts index fe364686e..03c343cd7 100644 --- a/packages/web-api/src/types/response/AdminUsersInviteResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersInviteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminUsersListResponse.ts b/packages/web-api/src/types/response/AdminUsersListResponse.ts index 7e515812e..00f25d168 100644 --- a/packages/web-api/src/types/response/AdminUsersListResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - users?: User[]; + users?: User[]; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } export interface User { - date_created?: number; - email?: string; - expiration_ts?: number; - full_name?: string; - has_2fa?: boolean; - has_sso?: boolean; - id?: string; - is_active?: boolean; - is_admin?: boolean; - is_bot?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; + date_created?: number; + email?: string; + expiration_ts?: number; + full_name?: string; + has_2fa?: boolean; + has_sso?: boolean; + id?: string; + is_active?: boolean; + is_admin?: boolean; + is_bot?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; is_ultra_restricted?: boolean; - roles?: string[]; - username?: string; - workspaces?: string[]; + roles?: string[]; + username?: string; + workspaces?: string[]; } diff --git a/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts b/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts index ce75ed672..903d0ad39 100644 --- a/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts index fa47de786..47851f788 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionClearSettingsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts index f431b07d3..dd58d5e2d 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,18 +7,18 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionGetSettingsResponse = WebAPICallResult & { - error?: string; - needed?: string; + error?: string; + needed?: string; no_settings_applied?: string[]; - ok?: boolean; - provided?: string; - session_settings?: SessionSetting[]; + ok?: boolean; + provided?: string; + session_settings?: SessionSetting[]; }; export interface SessionSetting { desktop_app_browser_quit?: boolean; - duration?: number; - user_id?: string; + duration?: number; + user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts index a799f8afe..a1df5db59 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionInvalidateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts index 6fbeb2998..1b4caf974 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,29 +7,29 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionListResponse = WebAPICallResult & { - active_sessions?: ActiveSession[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + active_sessions?: ActiveSession[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface ActiveSession { - created?: Created; - recent?: Created; + created?: Created; + recent?: Created; session_id?: number; - team_id?: string; - user_id?: string; + team_id?: string; + user_id?: string; } export interface Created { - device_hardware?: string; - ip?: string; - os?: string; - os_version?: string; + device_hardware?: string; + ip?: string; + os?: string; + os_version?: string; slack_client_version?: string; } diff --git a/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts index 3396d9bd4..b1cfc1886 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionResetBulkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts index 275023cda..b0ad7311c 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionResetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts index 843b9a325..fb5ee8e20 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionSetSettingsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts b/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts index c4241c804..9e7469a02 100644 --- a/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetAdminResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts b/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts index cc49cd5d4..da2c21fb6 100644 --- a/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetExpirationResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts b/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts index 093a181af..5f9c77821 100644 --- a/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetOwnerResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts b/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts index a02e7b39e..c30a4deb4 100644 --- a/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetRegularResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts b/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts index 2ff942ec9..d22d6a821 100644 --- a/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminUsersUnsupportedVersionsExportResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts index 57872f59b..d50bc1fdf 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsCollaboratorsAddResponse = WebAPICallResult & { - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Error { - message?: string; - user?: string; + message?: string; + user?: string; workflow?: string; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts index 8624b1556..1264c3cdc 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsCollaboratorsRemoveResponse = WebAPICallResult & { - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; provided?: string; }; export interface Error { - message?: string; - user?: string; + message?: string; + user?: string; workflow?: string; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts index 826e245eb..2a9b4ac18 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsPermissionsLookupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; permissions?: { [key: string]: Permission }; - provided?: string; + provided?: string; }; export interface Permission { - complete?: boolean; + complete?: boolean; who_can_run?: WhoCanRun; } export interface WhoCanRun { - channel_ids?: string[]; - org_ids?: string[]; + channel_ids?: string[]; + org_ids?: string[]; permission_type?: string; - team_ids?: string[]; - user_ids?: string[]; + team_ids?: string[]; + user_ids?: string[]; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts index 8a93a335b..f8199c072 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,65 +7,65 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsSearchResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - total_found?: number; - workflows?: Workflow[]; + total_found?: number; + workflows?: Workflow[]; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } export interface Workflow { - app_id?: string; - billing_type?: string; - callback_id?: string; - collaborators?: string[]; - date_updated?: number; - description?: string; - icons?: Icons; - id?: string; - input_parameters?: { [key: string]: InputParameter }; - is_billable?: boolean; - is_published?: boolean; - is_sales_home_workflow?: boolean; - last_published_date?: string; + app_id?: string; + billing_type?: string; + callback_id?: string; + collaborators?: string[]; + date_updated?: number; + description?: string; + icons?: Icons; + id?: string; + input_parameters?: { [key: string]: InputParameter }; + is_billable?: boolean; + is_published?: boolean; + is_sales_home_workflow?: boolean; + last_published_date?: string; last_published_version_id?: string; - last_updated_by?: string; - source?: string; - steps?: Step[]; - team_id?: string; - title?: string; - trigger_ids?: string[]; - unpublished_change_count?: number; - workflow_function_id?: string; + last_updated_by?: string; + source?: string; + steps?: Step[]; + team_id?: string; + title?: string; + trigger_ids?: string[]; + unpublished_change_count?: number; + workflow_function_id?: string; } export interface Icons { image_192?: string; - image_96?: string; + image_96?: string; } export interface InputParameter { description?: string; - is_hidden?: boolean; + is_hidden?: boolean; is_required?: boolean; - name?: string; - title?: string; - type?: string; + name?: string; + title?: string; + type?: string; } export interface Step { function_id?: string; - id?: string; - inputs?: { [key: string]: Input }; + id?: string; + inputs?: { [key: string]: Input }; is_pristine?: boolean; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts index 84d671166..250c7e258 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsUnpublishResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/ApiTestResponse.ts b/packages/web-api/src/types/response/ApiTestResponse.ts index ed1d9c1f8..27c2889ae 100644 --- a/packages/web-api/src/types/response/ApiTestResponse.ts +++ b/packages/web-api/src/types/response/ApiTestResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ApiTestResponse = WebAPICallResult & { - args?: Args; - error?: string; - needed?: string; - ok?: boolean; + args?: Args; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Args { error?: string; - foo?: string; + foo?: string; } diff --git a/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts b/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts index fcfc4064a..e66312bd1 100644 --- a/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts +++ b/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsConnectionsOpenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - url?: string; + url?: string; }; diff --git a/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts b/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts index 72e2b9cb9..c83daa319 100644 --- a/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts +++ b/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsEventAuthorizationsListResponse = WebAPICallResult & { authorizations?: Authorization[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface Authorization { - enterprise_id?: string; - is_bot?: boolean; + enterprise_id?: string; + is_bot?: boolean; is_enterprise_install?: boolean; - team_id?: string; - user_id?: string; + team_id?: string; + user_id?: string; } diff --git a/packages/web-api/src/types/response/AppsManifestCreateResponse.ts b/packages/web-api/src/types/response/AppsManifestCreateResponse.ts index 53fe91ee2..0f11dd0a0 100644 --- a/packages/web-api/src/types/response/AppsManifestCreateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestCreateResponse = WebAPICallResult & { - app_id?: string; - credentials?: Credentials; - error?: string; - errors?: Error[]; - needed?: string; + app_id?: string; + credentials?: Credentials; + error?: string; + errors?: Error[]; + needed?: string; oauth_authorize_url?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; }; export interface Credentials { - client_id?: string; - client_secret?: string; - signing_secret?: string; + client_id?: string; + client_secret?: string; + signing_secret?: string; verification_token?: string; } export interface Error { - code?: string; - message?: string; - pointer?: string; + code?: string; + message?: string; + pointer?: string; related_component?: string; } diff --git a/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts b/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts index 3e9159f69..203d32659 100644 --- a/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsManifestExportResponse.ts b/packages/web-api/src/types/response/AppsManifestExportResponse.ts index fea8539bf..7fc173b49 100644 --- a/packages/web-api/src/types/response/AppsManifestExportResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestExportResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,22 +7,22 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestExportResponse = WebAPICallResult & { - error?: string; + error?: string; manifest?: Manifest; - needed?: string; - ok?: boolean; + needed?: string; + ok?: boolean; provided?: string; }; export interface Manifest { - _metadata?: Metadata; + _metadata?: Metadata; display_information?: DisplayInformation; - features?: Features; - functions?: { [key: string]: Function }; - oauth_config?: OauthConfig; - settings?: Settings; + features?: Features; + functions?: { [key: string]: Function }; + oauth_config?: OauthConfig; + settings?: Settings; } export interface Metadata { @@ -33,98 +32,98 @@ export interface Metadata { export interface DisplayInformation { background_color?: string; - description?: string; + description?: string; long_description?: string; - name?: string; + name?: string; } export interface Features { - app_home?: AppHome; - bot_user?: BotUser; - shortcuts?: Shortcut[]; + app_home?: AppHome; + bot_user?: BotUser; + shortcuts?: Shortcut[]; slash_commands?: SlashCommand[]; unfurl_domains?: string[]; } export interface AppHome { - home_tab_enabled?: boolean; - messages_tab_enabled?: boolean; + home_tab_enabled?: boolean; + messages_tab_enabled?: boolean; messages_tab_read_only_enabled?: boolean; } export interface BotUser { always_online?: boolean; - display_name?: string; + display_name?: string; } export interface Shortcut { callback_id?: string; description?: string; - name?: string; - type?: string; + name?: string; + type?: string; } export interface SlashCommand { - command?: string; - description?: string; + command?: string; + description?: string; should_escape?: boolean; - url?: string; - usage_hint?: string; + url?: string; + usage_hint?: string; } export interface Function { - description?: string; - input_parameters?: { [key: string]: PutParameter }; + description?: string; + input_parameters?: { [key: string]: PutParameter }; output_parameters?: { [key: string]: PutParameter }; - title?: string; + title?: string; } export interface PutParameter { description?: string; - hint?: string; + hint?: string; is_required?: boolean; - maxLength?: number; - maximum?: number; - minLength?: number; - minimum?: number; - name?: string; - title?: string; - type?: string; + maxLength?: number; + maximum?: number; + minLength?: number; + minimum?: number; + name?: string; + title?: string; + type?: string; } export interface OauthConfig { - redirect_urls?: string[]; - scopes?: Scopes; + redirect_urls?: string[]; + scopes?: Scopes; token_management_enabled?: boolean; } export interface Scopes { - bot?: string[]; + bot?: string[]; user?: string[]; } export interface Settings { allowed_ip_address_ranges?: string[]; - background_color?: string; - description?: string; - event_subscriptions?: EventSubscriptions; - function_runtime?: string; - hermes_app_type?: string; - interactivity?: Interactivity; - long_description?: string; - org_deploy_enabled?: boolean; - socket_mode_enabled?: boolean; - token_rotation_enabled?: boolean; + background_color?: string; + description?: string; + event_subscriptions?: EventSubscriptions; + function_runtime?: string; + hermes_app_type?: string; + interactivity?: Interactivity; + long_description?: string; + org_deploy_enabled?: boolean; + socket_mode_enabled?: boolean; + token_rotation_enabled?: boolean; } export interface EventSubscriptions { - bot_events?: string[]; + bot_events?: string[]; request_url?: string; user_events?: string[]; } export interface Interactivity { - is_enabled?: boolean; + is_enabled?: boolean; message_menu_options_url?: string; - request_url?: string; + request_url?: string; } diff --git a/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts b/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts index c6e198f3e..1b5ca8dc6 100644 --- a/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestUpdateResponse = WebAPICallResult & { - app_id?: string; - error?: string; - needed?: string; - ok?: boolean; + app_id?: string; + error?: string; + needed?: string; + ok?: boolean; permissions_updated?: boolean; - provided?: string; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsManifestValidateResponse.ts b/packages/web-api/src/types/response/AppsManifestValidateResponse.ts index e32053a3d..f62f888de 100644 --- a/packages/web-api/src/types/response/AppsManifestValidateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestValidateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestValidateResponse = WebAPICallResult & { - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Error { - code?: string; - message?: string; - pointer?: string; + code?: string; + message?: string; + pointer?: string; related_component?: string; } diff --git a/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts b/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts index 64c6355e5..0567262f4 100644 --- a/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts b/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts index 50d9618af..a1a3d452f 100644 --- a/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsRequestResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts b/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts index 4794fbe72..c461b040e 100644 --- a/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsResourcesListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts b/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts index 7a8e0883b..5885720b5 100644 --- a/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsScopesListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts b/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts index 241df6d79..a447935d7 100644 --- a/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsUsersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts b/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts index dac179505..4016e6373 100644 --- a/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsUsersRequestResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsUninstallResponse.ts b/packages/web-api/src/types/response/AppsUninstallResponse.ts index 704b645e8..580a31751 100644 --- a/packages/web-api/src/types/response/AppsUninstallResponse.ts +++ b/packages/web-api/src/types/response/AppsUninstallResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsUninstallResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts b/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts new file mode 100644 index 000000000..687c5500b --- /dev/null +++ b/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts @@ -0,0 +1,17 @@ +///////////////////////////////////////////////////////////////////////////////////////// +// // +// !!! DO NOT EDIT THIS FILE !!! // +// // +// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // +// Please refer to the script code to learn how to update the source data. // +// // +///////////////////////////////////////////////////////////////////////////////////////// + +import { WebAPICallResult } from '../../WebClient'; +export type AssistantThreadsSetStatusResponse = WebAPICallResult & { + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + warning?: string; +}; diff --git a/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts b/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts new file mode 100644 index 000000000..eb6220c73 --- /dev/null +++ b/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts @@ -0,0 +1,17 @@ +///////////////////////////////////////////////////////////////////////////////////////// +// // +// !!! DO NOT EDIT THIS FILE !!! // +// // +// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // +// Please refer to the script code to learn how to update the source data. // +// // +///////////////////////////////////////////////////////////////////////////////////////// + +import { WebAPICallResult } from '../../WebClient'; +export type AssistantThreadsSetSuggestedPromptsResponse = WebAPICallResult & { + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + warning?: string; +}; diff --git a/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts b/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts new file mode 100644 index 000000000..12e808136 --- /dev/null +++ b/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts @@ -0,0 +1,17 @@ +///////////////////////////////////////////////////////////////////////////////////////// +// // +// !!! DO NOT EDIT THIS FILE !!! // +// // +// This file is auto-generated by scripts/generate-web-api-types.sh in the repository. // +// Please refer to the script code to learn how to update the source data. // +// // +///////////////////////////////////////////////////////////////////////////////////////// + +import { WebAPICallResult } from '../../WebClient'; +export type AssistantThreadsSetTitleResponse = WebAPICallResult & { + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + warning?: string; +}; diff --git a/packages/web-api/src/types/response/AuthRevokeResponse.ts b/packages/web-api/src/types/response/AuthRevokeResponse.ts index d85462076..0a534bf36 100644 --- a/packages/web-api/src/types/response/AuthRevokeResponse.ts +++ b/packages/web-api/src/types/response/AuthRevokeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AuthRevokeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AuthTeamsListResponse.ts b/packages/web-api/src/types/response/AuthTeamsListResponse.ts index 2b4b4b1ba..05d740c55 100644 --- a/packages/web-api/src/types/response/AuthTeamsListResponse.ts +++ b/packages/web-api/src/types/response/AuthTeamsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AuthTeamsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - teams?: Team[]; + teams?: Team[]; }; export interface ResponseMetadata { @@ -24,17 +23,17 @@ export interface ResponseMetadata { export interface Team { icon?: Icon; - id?: string; + id?: string; name?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; image_default?: boolean; } diff --git a/packages/web-api/src/types/response/AuthTestResponse.ts b/packages/web-api/src/types/response/AuthTestResponse.ts index 5d4a92840..9942311bb 100644 --- a/packages/web-api/src/types/response/AuthTestResponse.ts +++ b/packages/web-api/src/types/response/AuthTestResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,21 +7,21 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AuthTestResponse = WebAPICallResult & { - app_id?: string; - app_name?: string; - bot_id?: string; - enterprise_id?: string; - error?: string; - expires_in?: number; + app_id?: string; + app_name?: string; + bot_id?: string; + enterprise_id?: string; + error?: string; + expires_in?: number; is_enterprise_install?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - team?: string; - team_id?: string; - url?: string; - user?: string; - user_id?: string; + needed?: string; + ok?: boolean; + provided?: string; + team?: string; + team_id?: string; + url?: string; + user?: string; + user_id?: string; }; diff --git a/packages/web-api/src/types/response/BookmarksAddResponse.ts b/packages/web-api/src/types/response/BookmarksAddResponse.ts index 771766a3f..9e491c3ed 100644 --- a/packages/web-api/src/types/response/BookmarksAddResponse.ts +++ b/packages/web-api/src/types/response/BookmarksAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type BookmarksAddResponse = WebAPICallResult & { - bookmark?: Bookmark; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + bookmark?: Bookmark; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Bookmark { - app_action_id?: string; - app_id?: string; - channel_id?: string; - date_created?: number; - date_updated?: number; - emoji?: string; - entity_id?: string; - icon_url?: string; - id?: string; + app_action_id?: string; + app_id?: string; + channel_id?: string; + date_created?: number; + date_updated?: number; + emoji?: string; + entity_id?: string; + icon_url?: string; + id?: string; last_updated_by_team_id?: string; last_updated_by_user_id?: string; - link?: string; - rank?: string; - shortcut_id?: string; - title?: string; - type?: string; + link?: string; + rank?: string; + shortcut_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/BookmarksEditResponse.ts b/packages/web-api/src/types/response/BookmarksEditResponse.ts index d4849cb0d..1daccfcba 100644 --- a/packages/web-api/src/types/response/BookmarksEditResponse.ts +++ b/packages/web-api/src/types/response/BookmarksEditResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type BookmarksEditResponse = WebAPICallResult & { - bookmark?: Bookmark; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + bookmark?: Bookmark; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Bookmark { - app_action_id?: string; - app_id?: string; - channel_id?: string; - date_created?: number; - date_updated?: number; - emoji?: string; - entity_id?: string; - icon_url?: string; - id?: string; + app_action_id?: string; + app_id?: string; + channel_id?: string; + date_created?: number; + date_updated?: number; + emoji?: string; + entity_id?: string; + icon_url?: string; + id?: string; last_updated_by_team_id?: string; last_updated_by_user_id?: string; - link?: string; - rank?: string; - shortcut_id?: string; - title?: string; - type?: string; + link?: string; + rank?: string; + shortcut_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/BookmarksListResponse.ts b/packages/web-api/src/types/response/BookmarksListResponse.ts index e840c8bc0..730389d5b 100644 --- a/packages/web-api/src/types/response/BookmarksListResponse.ts +++ b/packages/web-api/src/types/response/BookmarksListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type BookmarksListResponse = WebAPICallResult & { - bookmarks?: Bookmark[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + bookmarks?: Bookmark[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Bookmark { - app_action_id?: string; - app_id?: string; - channel_id?: string; - date_created?: number; - date_updated?: number; - emoji?: string; - entity_id?: string; - icon_url?: string; - id?: string; + app_action_id?: string; + app_id?: string; + channel_id?: string; + date_created?: number; + date_updated?: number; + emoji?: string; + entity_id?: string; + icon_url?: string; + id?: string; last_updated_by_team_id?: string; last_updated_by_user_id?: string; - link?: string; - rank?: string; - shortcut_id?: string; - title?: string; - type?: string; + link?: string; + rank?: string; + shortcut_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/BookmarksRemoveResponse.ts b/packages/web-api/src/types/response/BookmarksRemoveResponse.ts index 8be7594dd..5c738d3b9 100644 --- a/packages/web-api/src/types/response/BookmarksRemoveResponse.ts +++ b/packages/web-api/src/types/response/BookmarksRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type BookmarksRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/BotsInfoResponse.ts b/packages/web-api/src/types/response/BotsInfoResponse.ts index fff20b635..7a310cb0e 100644 --- a/packages/web-api/src/types/response/BotsInfoResponse.ts +++ b/packages/web-api/src/types/response/BotsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,21 +7,21 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type BotsInfoResponse = WebAPICallResult & { - bot?: Bot; - error?: string; - needed?: string; - ok?: boolean; + bot?: Bot; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Bot { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; updated?: number; user_id?: string; } diff --git a/packages/web-api/src/types/response/CallsAddResponse.ts b/packages/web-api/src/types/response/CallsAddResponse.ts index 8635d66ac..393a9d953 100644 --- a/packages/web-api/src/types/response/CallsAddResponse.ts +++ b/packages/web-api/src/types/response/CallsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,32 +7,32 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CallsAddResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Call { - date_start?: number; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/CallsEndResponse.ts b/packages/web-api/src/types/response/CallsEndResponse.ts index ce1605c05..3d8e73ee6 100644 --- a/packages/web-api/src/types/response/CallsEndResponse.ts +++ b/packages/web-api/src/types/response/CallsEndResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,31 +7,31 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CallsEndResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_end?: number; - date_start?: number; + channels?: string[]; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsInfoResponse.ts b/packages/web-api/src/types/response/CallsInfoResponse.ts index 5e224247b..0d4b03273 100644 --- a/packages/web-api/src/types/response/CallsInfoResponse.ts +++ b/packages/web-api/src/types/response/CallsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CallsInfoResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts b/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts index c742b2992..7ea2840ad 100644 --- a/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts +++ b/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CallsParticipantsAddResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts b/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts index 5e0429b6e..3ce6ed6a9 100644 --- a/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts +++ b/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CallsParticipantsRemoveResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsUpdateResponse.ts b/packages/web-api/src/types/response/CallsUpdateResponse.ts index ab333357e..985504639 100644 --- a/packages/web-api/src/types/response/CallsUpdateResponse.ts +++ b/packages/web-api/src/types/response/CallsUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CallsUpdateResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts b/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts index e0d6538ff..8c42abc7e 100644 --- a/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts +++ b/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CanvasesAccessDeleteResponse = WebAPICallResult & { - error?: string; + error?: string; failed_to_update_channel_ids?: string[]; - failed_to_update_user_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + failed_to_update_user_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; }; -export type ResponseMetadata = {}; +export interface ResponseMetadata { +} diff --git a/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts b/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts index 9bb5031f8..c6976ffcd 100644 --- a/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts +++ b/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CanvasesAccessSetResponse = WebAPICallResult & { - error?: string; + error?: string; failed_to_update_channel_ids?: string[]; - failed_to_update_user_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + failed_to_update_user_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; }; -export type ResponseMetadata = {}; +export interface ResponseMetadata { +} diff --git a/packages/web-api/src/types/response/CanvasesCreateResponse.ts b/packages/web-api/src/types/response/CanvasesCreateResponse.ts index 9fffa5c58..2fc78e226 100644 --- a/packages/web-api/src/types/response/CanvasesCreateResponse.ts +++ b/packages/web-api/src/types/response/CanvasesCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CanvasesCreateResponse = WebAPICallResult & { - canvas_id?: string; - detail?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + canvas_id?: string; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/CanvasesDeleteResponse.ts b/packages/web-api/src/types/response/CanvasesDeleteResponse.ts index f7ccdff63..be9162532 100644 --- a/packages/web-api/src/types/response/CanvasesDeleteResponse.ts +++ b/packages/web-api/src/types/response/CanvasesDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CanvasesDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; -export type ResponseMetadata = {}; +export interface ResponseMetadata { +} diff --git a/packages/web-api/src/types/response/CanvasesEditResponse.ts b/packages/web-api/src/types/response/CanvasesEditResponse.ts index 7e409e303..3236a809f 100644 --- a/packages/web-api/src/types/response/CanvasesEditResponse.ts +++ b/packages/web-api/src/types/response/CanvasesEditResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CanvasesEditResponse = WebAPICallResult & { - detail?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts b/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts index c70953d44..5aae6818d 100644 --- a/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts +++ b/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type CanvasesSectionsLookupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - sections?: Section[]; + sections?: Section[]; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChannelsArchiveResponse.ts b/packages/web-api/src/types/response/ChannelsArchiveResponse.ts index 2d00c89cb..a46a1bd88 100644 --- a/packages/web-api/src/types/response/ChannelsArchiveResponse.ts +++ b/packages/web-api/src/types/response/ChannelsArchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsCreateResponse.ts b/packages/web-api/src/types/response/ChannelsCreateResponse.ts index a27f94dae..d6b4d731e 100644 --- a/packages/web-api/src/types/response/ChannelsCreateResponse.ts +++ b/packages/web-api/src/types/response/ChannelsCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsCreateResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsHistoryResponse.ts b/packages/web-api/src/types/response/ChannelsHistoryResponse.ts index 757b13a04..4bb8182e1 100644 --- a/packages/web-api/src/types/response/ChannelsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ChannelsHistoryResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,125 +7,125 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - channel_actions_ts?: number; - error?: string; - has_more?: boolean; - latest?: string; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + channel_actions_ts?: number; + error?: string; + has_more?: boolean; + latest?: string; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - attachments?: Attachment[]; - blocks?: Block[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: File[]; - icons?: MessageIcons; - inviter?: string; - latest_reply?: string; - parent_user_id?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; + attachments?: Attachment[]; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: File[]; + icons?: MessageIcons; + inviter?: string; + latest_reply?: string; + parent_user_id?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface Attachment { - actions?: Action[]; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - color?: string; - fallback?: string; - fields?: Field[]; - filename?: string; - footer?: string; - footer_icon?: string; - from_url?: string; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - metadata?: Metadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: OptionGroup[]; - options?: Option[]; + name?: string; + option_groups?: OptionGroup[]; + options?: Option[]; selected_options?: Option[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface OptionGroup { @@ -134,7 +133,7 @@ export interface OptionGroup { } export interface Option { - text?: string; + text?: string; value?: string; } @@ -145,104 +144,104 @@ export interface Field { } export interface Metadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - block_id?: string; - elements?: Element[]; - fallback?: string; - fields?: Text[]; - image_bytes?: number; + accessory?: Accessory; + alt_text?: string; + block_id?: string; + elements?: Element[]; + fallback?: string; + fields?: Text[]; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - text?: Text; - title?: Text; - type?: string; + image_url?: string; + image_width?: number; + text?: Text; + title?: Text; + type?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - type?: string; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - action_id?: string; - alt_text?: string; - confirm?: ElementConfirm; + action_id?: string; + alt_text?: string; + confirm?: ElementConfirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_option?: InitialOption; - initial_user?: string; - min_query_length?: number; - placeholder?: Text; - response_url_enabled?: boolean; - style?: string; - text?: Text; - type?: string; - url?: string; - value?: string; + fallback?: string; + filter?: Filter; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_option?: InitialOption; + initial_user?: string; + min_query_length?: number; + placeholder?: Text; + response_url_enabled?: boolean; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface ElementConfirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; } export interface InitialOption { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -254,100 +253,100 @@ export interface BotProfileIcons { } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface File { - created?: number; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_id?: string; - external_type?: string; - external_url?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - image_exif_rotation?: number; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - mimetype?: string; - mode?: string; - name?: string; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + created?: number; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + image_exif_rotation?: number; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + mimetype?: string; + mode?: string; + name?: string; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_tiny?: string; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_tiny?: string; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - user?: string; - username?: string; + user?: string; + username?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_64?: string; } export interface Reaction { count?: number; - name?: string; + name?: string; users?: string[]; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChannelsInfoResponse.ts b/packages/web-api/src/types/response/ChannelsInfoResponse.ts index 37a788a21..e49852ad4 100644 --- a/packages/web-api/src/types/response/ChannelsInfoResponse.ts +++ b/packages/web-api/src/types/response/ChannelsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,129 +7,129 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsInfoResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Latest { - attachments?: Attachment[]; - blocks?: Block[]; - bot_id?: string; + attachments?: Attachment[]; + blocks?: Block[]; + bot_id?: string; display_as_bot?: boolean; - edited?: Edited; - files?: File[]; - subtype?: string; - text?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + edited?: Edited; + files?: File[]; + subtype?: string; + text?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface Attachment { - actions?: Action[]; - app_unfurl_url?: string; - author_icon?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - color?: string; - fallback?: string; - fields?: Field[]; - filename?: string; - footer?: string; - footer_icon?: string; - from_url?: string; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_unfurl_url?: string; + author_icon?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - metadata?: Metadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: OptionGroup[]; - options?: Option[]; + name?: string; + option_groups?: OptionGroup[]; + options?: Option[]; selected_options?: Option[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface OptionGroup { @@ -138,7 +137,7 @@ export interface OptionGroup { } export interface Option { - text?: string; + text?: string; value?: string; } @@ -149,129 +148,129 @@ export interface Field { } export interface Metadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - block_id?: string; - elements?: Element[]; - fallback?: string; - fields?: Text[]; - image_bytes?: number; + accessory?: Accessory; + alt_text?: string; + block_id?: string; + elements?: Element[]; + fallback?: string; + fields?: Text[]; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - text?: Text; - title?: Text; - type?: string; + image_url?: string; + image_width?: number; + text?: Text; + title?: Text; + type?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - type?: string; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - action_id?: string; - alt_text?: string; - confirm?: ElementConfirm; - fallback?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; + action_id?: string; + alt_text?: string; + confirm?: ElementConfirm; + fallback?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; initial_conversation?: string; - initial_date?: string; - initial_option?: InitialOption; - initial_user?: string; - min_query_length?: number; - placeholder?: Text; - style?: string; - text?: Text; - type?: string; - url?: string; - value?: string; + initial_date?: string; + initial_option?: InitialOption; + initial_user?: string; + min_query_length?: number; + placeholder?: Text; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface ElementConfirm { confirm?: Text; - deny?: Text; - text?: Text; - title?: Text; + deny?: Text; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface InitialOption { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface File { - created?: number; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + created?: number; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsInviteResponse.ts b/packages/web-api/src/types/response/ChannelsInviteResponse.ts index a6f1549af..057f078e4 100644 --- a/packages/web-api/src/types/response/ChannelsInviteResponse.ts +++ b/packages/web-api/src/types/response/ChannelsInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,51 +7,51 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsInviteResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsJoinResponse.ts b/packages/web-api/src/types/response/ChannelsJoinResponse.ts index ef3f85021..58698be39 100644 --- a/packages/web-api/src/types/response/ChannelsJoinResponse.ts +++ b/packages/web-api/src/types/response/ChannelsJoinResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,51 +7,51 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsJoinResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsKickResponse.ts b/packages/web-api/src/types/response/ChannelsKickResponse.ts index fe1f27bdc..434bb257d 100644 --- a/packages/web-api/src/types/response/ChannelsKickResponse.ts +++ b/packages/web-api/src/types/response/ChannelsKickResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsKickResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsLeaveResponse.ts b/packages/web-api/src/types/response/ChannelsLeaveResponse.ts index 824776970..19892a0bd 100644 --- a/packages/web-api/src/types/response/ChannelsLeaveResponse.ts +++ b/packages/web-api/src/types/response/ChannelsLeaveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsLeaveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsListResponse.ts b/packages/web-api/src/types/response/ChannelsListResponse.ts index 83a5e4701..a5585f406 100644 --- a/packages/web-api/src/types/response/ChannelsListResponse.ts +++ b/packages/web-api/src/types/response/ChannelsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsListResponse = WebAPICallResult & { - channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channels?: Channel[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + members?: string[]; + name?: string; name_normalized?: string; - num_members?: number; - previous_names?: string[]; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; + num_members?: number; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/ChannelsMarkResponse.ts b/packages/web-api/src/types/response/ChannelsMarkResponse.ts index bd40fb10b..4d0c98868 100644 --- a/packages/web-api/src/types/response/ChannelsMarkResponse.ts +++ b/packages/web-api/src/types/response/ChannelsMarkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsRenameResponse.ts b/packages/web-api/src/types/response/ChannelsRenameResponse.ts index 3c94373c0..b8aff76cf 100644 --- a/packages/web-api/src/types/response/ChannelsRenameResponse.ts +++ b/packages/web-api/src/types/response/ChannelsRenameResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsRenameResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + members?: string[]; + name?: string; name_normalized?: string; - previous_names?: string[]; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsRepliesResponse.ts b/packages/web-api/src/types/response/ChannelsRepliesResponse.ts index 2a988c788..f666c4629 100644 --- a/packages/web-api/src/types/response/ChannelsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ChannelsRepliesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,41 +7,41 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts b/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts index 814736a90..a5d81bbbf 100644 --- a/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsSetPurposeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - purpose?: string; + purpose?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts b/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts index 0218b1d71..d99a6c47b 100644 --- a/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsSetTopicResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - topic?: string; + topic?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts b/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts index 5f088382b..95f6f7bb0 100644 --- a/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChannelsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatDeleteResponse.ts b/packages/web-api/src/types/response/ChatDeleteResponse.ts index 4484433f1..b0cb1b0c5 100644 --- a/packages/web-api/src/types/response/ChatDeleteResponse.ts +++ b/packages/web-api/src/types/response/ChatDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatDeleteResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - ts?: string; + ts?: string; }; diff --git a/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts b/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts index a453f8d73..fdb8064c0 100644 --- a/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatDeleteScheduledMessageResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts b/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts index 2251e7b17..22c6de8cc 100644 --- a/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts +++ b/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatGetPermalinkResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; permalink?: string; - provided?: string; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatMeMessageResponse.ts b/packages/web-api/src/types/response/ChatMeMessageResponse.ts index 5b074a108..2dfbbea39 100644 --- a/packages/web-api/src/types/response/ChatMeMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatMeMessageResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatMeMessageResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - ts?: string; + ts?: string; }; diff --git a/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts b/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts index e8b5a5154..5226a515a 100644 --- a/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts +++ b/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatPostEphemeralResponse = WebAPICallResult & { - error?: string; + error?: string; message_ts?: string; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatPostMessageResponse.ts b/packages/web-api/src/types/response/ChatPostMessageResponse.ts index 2fd73a2b9..36bbe1acf 100644 --- a/packages/web-api/src/types/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatPostMessageResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,239 +7,155 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatPostMessageResponse = WebAPICallResult & { - channel?: string; + channel?: string; deprecated_argument?: string; - error?: string; - errors?: string[]; - message?: ChatPostMessageResponseMessage; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - ts?: string; + error?: string; + errors?: string[]; + message?: ChatPostMessageResponseMessage; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + ts?: string; }; export interface ChatPostMessageResponseMessage { - app_id?: string; - attachments?: Attachment[]; - blocks?: PurpleBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - icons?: FluffyIcons; - metadata?: FluffyMetadata; - parent_user_id?: string; - room?: Room; - root?: FluffyRoot; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; - username?: string; -} - -export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; - is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; -} - -export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; - min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; -} - -export interface ActionConfirm { - dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; -} - -export interface ActionOptionGroup { - options?: SelectedOptionElement[]; - text?: string; -} - -export interface SelectedOptionElement { - text?: string; - value?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + icons?: FluffyIcons; + metadata?: FluffyMetadata; + parent_user_id?: string; + room?: Room; + root?: FluffyRoot; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; + username?: string; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -250,42 +165,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -309,25 +224,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -337,14 +252,260 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } +export interface Call { + media_backend_type?: string; + v1?: V1; +} + +export interface V1 { + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Participant { + avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; +} + +export interface AppIconUrls { + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; + image_original?: string; +} + +export interface FileElement { + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; + sales_home_workflow_app_type?: number; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + export enum BlockType { Actions = 'actions', Context = 'context', @@ -356,270 +517,104 @@ export enum BlockType { Video = 'video', } -export interface AttachmentField { - short?: boolean; - title?: string; - value?: string; -} - -export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -634,64 +629,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -699,48 +694,158 @@ export interface Transcription { status?: string; } +export interface Attachment { + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; + is_thread_root_unfurl?: boolean; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; +} + +export interface Action { + confirm?: ActionConfirm; + data_source?: string; + id?: string; + min_query_length?: number; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; + selected_options?: SelectedOptionElement[]; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; +} + +export interface ActionConfirm { + dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; +} + +export interface ActionOptionGroup { + options?: SelectedOptionElement[]; + text?: string; +} + +export interface SelectedOptionElement { + text?: string; + value?: string; +} + +export interface AttachmentField { + short?: boolean; + title?: string; + value?: string; +} + export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: EventPayload; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: EventPayload; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type EventPayload = {}; +export interface EventPayload { +} export interface PurpleListRecord { record?: Record; @@ -748,90 +853,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: PurpleIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: PurpleMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: PurpleRoot; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: PurpleIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: PurpleMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: PurpleRoot; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -843,208 +949,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: EventPayload; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: EventPayload; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface PurpleIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1056,80 +1162,80 @@ export interface PurpleMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: EventPayload; - last_invite_status_by_user?: EventPayload; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: EventPayload; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: EventPayload; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface PurpleRoot { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: PurpleIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: PurpleIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1142,155 +1248,57 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; -} - -export interface PurpleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; - sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; -} - -export interface Call { - media_backend_type?: string; - v1?: V1; -} - -export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; -} - -export interface Participant { - avatar_url?: string; - display_name?: string; - external_id?: string; - slack_id?: string; -} - -export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; - image_original?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface FluffyIcons { - emoji?: string; + emoji?: string; image_64?: string; } export interface FluffyMetadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } export interface FluffyRoot { - bot_id?: string; - icons?: FluffyIcons; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + icons?: FluffyIcons; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + username?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts index ca906d779..3df22e325 100644 --- a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,139 +7,146 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatScheduleMessageResponse = WebAPICallResult & { - channel?: string; - error?: string; - message?: Message; - needed?: string; - ok?: boolean; - post_at?: number; - provided?: string; - response_metadata?: ResponseMetadata; + channel?: string; + error?: string; + message?: Message; + needed?: string; + ok?: boolean; + post_at?: number; + provided?: string; + response_metadata?: ResponseMetadata; scheduled_message_id?: string; }; export interface Message { - app_id?: string; - blocks?: MessageBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - metadata?: Metadata; - room?: Room; - team?: string; - text?: string; - type?: string; - user?: string; -} - -export interface MessageBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + metadata?: Metadata; + room?: Room; + team?: string; + text?: string; + type?: string; + user?: string; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -150,42 +156,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -209,25 +215,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -237,358 +243,369 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + +export enum BlockType { + Actions = 'actions', + Context = 'context', + Divider = 'divider', + Image = 'image', + RichText = 'rich_text', + Section = 'section', + ShareShortcut = 'share_shortcut', + Video = 'video', } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -603,64 +620,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -669,11 +686,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -686,45 +703,46 @@ export interface Icons { export interface Metadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } -export type EventPayload = {}; +export interface EventPayload { +} export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: EventPayload; - last_invite_status_by_user?: EventPayload; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: EventPayload; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: EventPayload; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts b/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts index 9d4591c26..210fe39a8 100644 --- a/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatScheduledMessagesListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; scheduled_messages?: ScheduledMessage[]; }; @@ -23,9 +22,9 @@ export interface ResponseMetadata { } export interface ScheduledMessage { - channel_id?: string; + channel_id?: string; date_created?: number; - id?: string; - post_at?: number; - text?: string; + id?: string; + post_at?: number; + text?: string; } diff --git a/packages/web-api/src/types/response/ChatUnfurlResponse.ts b/packages/web-api/src/types/response/ChatUnfurlResponse.ts index 98d7eaf5a..6bc62f237 100644 --- a/packages/web-api/src/types/response/ChatUnfurlResponse.ts +++ b/packages/web-api/src/types/response/ChatUnfurlResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatUnfurlResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatUpdateResponse.ts b/packages/web-api/src/types/response/ChatUpdateResponse.ts index fff0b2227..4da6871fe 100644 --- a/packages/web-api/src/types/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/types/response/ChatUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,144 +7,151 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ChatUpdateResponse = WebAPICallResult & { - channel?: string; - error?: string; - message?: Message; - needed?: string; - ok?: boolean; - provided?: string; + channel?: string; + error?: string; + message?: Message; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - text?: string; - ts?: string; + text?: string; + ts?: string; }; export interface Message { - app_id?: string; - blocks?: MessageBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - display_as_bot?: boolean; - edited?: Edited; - files?: File[]; - metadata?: Metadata; - room?: Room; - team?: string; - text?: string; - type?: string; - upload?: boolean; - user?: string; - x_files?: string[]; -} - -export interface MessageBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + display_as_bot?: boolean; + edited?: Edited; + files?: File[]; + metadata?: Metadata; + room?: Room; + team?: string; + text?: string; + type?: string; + upload?: boolean; + user?: string; + x_files?: string[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -155,42 +161,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -214,25 +220,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -242,258 +248,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -508,103 +514,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -619,64 +625,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -685,11 +691,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -701,51 +707,52 @@ export interface Icons { } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface Metadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } -export type EventPayload = {}; +export interface EventPayload { +} export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: EventPayload; - last_invite_status_by_user?: EventPayload; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: EventPayload; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: EventPayload; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts b/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts index af8194284..62647fdbd 100644 --- a/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsAcceptSharedInviteResponse = WebAPICallResult & { - can_open_scdm?: boolean; - channel_id?: string; - error?: string; + can_open_scdm?: boolean; + channel_id?: string; + error?: string; implicit_approval?: boolean; - invite_id?: string; - needed?: string; - ok?: boolean; - provided?: string; + invite_id?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts b/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts index a23d00463..eb8b27210 100644 --- a/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsApproveSharedInviteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsArchiveResponse.ts b/packages/web-api/src/types/response/ConversationsArchiveResponse.ts index 0785835b9..b257465ad 100644 --- a/packages/web-api/src/types/response/ConversationsArchiveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsArchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts b/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts index 3e3e6c249..a00280b46 100644 --- a/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsCanvasesCreateResponse = WebAPICallResult & { - canvas_id?: string; - detail?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + canvas_id?: string; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/ConversationsCloseResponse.ts b/packages/web-api/src/types/response/ConversationsCloseResponse.ts index cd335b2f0..dc6702cf3 100644 --- a/packages/web-api/src/types/response/ConversationsCloseResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCloseResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsCloseResponse = WebAPICallResult & { already_closed?: boolean; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsCreateResponse.ts b/packages/web-api/src/types/response/ConversationsCreateResponse.ts index 13fa83102..47ba7a8e1 100644 --- a/packages/web-api/src/types/response/ConversationsCreateResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,52 +7,52 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsCreateResponse = WebAPICallResult & { - channel?: Channel; - detail?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts b/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts index 7b713a9b8..ee251dc0e 100644 --- a/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsDeclineSharedInviteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts b/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts index 355938abf..cb2eb6c43 100644 --- a/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts +++ b/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsExternalInvitePermissionsSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts index 81f499520..ff9610452 100644 --- a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,255 +7,171 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - channel_actions_ts?: number; - error?: string; - has_more?: boolean; - messages?: MessageElement[]; - needed?: string; - ok?: boolean; - oldest?: string; - pin_count?: number; - provided?: string; - response_metadata?: ResponseMetadata; + channel_actions_ts?: number; + error?: string; + has_more?: boolean; + messages?: MessageElement[]; + needed?: string; + ok?: boolean; + oldest?: string; + pin_count?: number; + provided?: string; + response_metadata?: ResponseMetadata; }; export interface MessageElement { - app_id?: string; - attachments?: Attachment[]; - blocks?: PurpleBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - icons?: MessageIcons; - inviter?: string; - is_locked?: boolean; - latest_reply?: string; - metadata?: FluffyMetadata; - parent_user_id?: string; - purpose?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - root?: FluffyRoot; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; -} - -export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; - is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; -} - -export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; - min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; -} - -export interface ActionConfirm { - dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; -} - -export interface ActionOptionGroup { - options?: SelectedOptionElement[]; - text?: string; -} - -export interface SelectedOptionElement { - text?: string; - value?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + icons?: MessageIcons; + inviter?: string; + is_locked?: boolean; + latest_reply?: string; + metadata?: FluffyMetadata; + parent_user_id?: string; + purpose?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + root?: FluffyRoot; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -266,42 +181,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -325,25 +240,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -353,14 +268,260 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } +export interface Call { + media_backend_type?: string; + v1?: V1; +} + +export interface V1 { + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Participant { + avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; +} + +export interface AppIconUrls { + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; + image_original?: string; +} + +export interface FileElement { + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; + sales_home_workflow_app_type?: number; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + export enum BlockType { Actions = 'actions', Context = 'context', @@ -372,270 +533,104 @@ export enum BlockType { Video = 'video', } -export interface AttachmentField { - short?: boolean; - title?: string; - value?: string; -} - -export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -650,64 +645,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -715,48 +710,158 @@ export interface Transcription { status?: string; } +export interface Attachment { + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; + is_thread_root_unfurl?: boolean; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; +} + +export interface Action { + confirm?: ActionConfirm; + data_source?: string; + id?: string; + min_query_length?: number; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; + selected_options?: SelectedOptionElement[]; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; +} + +export interface ActionConfirm { + dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; +} + +export interface ActionOptionGroup { + options?: SelectedOptionElement[]; + text?: string; +} + +export interface SelectedOptionElement { + text?: string; + value?: string; +} + +export interface AttachmentField { + short?: boolean; + title?: string; + value?: string; +} + export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: EventPayload; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: EventPayload; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type EventPayload = {}; +export interface EventPayload { +} export interface PurpleListRecord { record?: Record; @@ -764,90 +869,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: PurpleFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: PurpleMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: PurpleRoot; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: PurpleFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: PurpleMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: PurpleRoot; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -859,208 +965,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface PurpleFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: EventPayload; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: EventPayload; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1072,77 +1178,77 @@ export interface PurpleMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface PurpleRoot { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1155,154 +1261,56 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; -} - -export interface PurpleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; - sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; -} - -export interface Call { - media_backend_type?: string; - v1?: V1; -} - -export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; -} - -export interface Participant { - avatar_url?: string; - display_name?: string; - external_id?: string; - slack_id?: string; -} - -export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; - image_original?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface FluffyMetadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } export interface FluffyRoot { - bot_id?: string; - icons?: PurpleIcons; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + icons?: PurpleIcons; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + username?: string; } export interface PurpleIcons { - emoji?: string; + emoji?: string; image_64?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInfoResponse.ts b/packages/web-api/src/types/response/ConversationsInfoResponse.ts index ccaa461a2..f5c75611d 100644 --- a/packages/web-api/src/types/response/ConversationsInfoResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,60 +7,60 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsInfoResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { connected_limited_team_ids?: string[]; - connected_team_ids?: string[]; - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_non_threadable?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_read_only?: boolean; - is_shared?: boolean; - is_thread_only?: boolean; - last_read?: string; - locale?: string; - name?: string; - name_normalized?: string; - num_members?: number; + connected_team_ids?: string[]; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_non_threadable?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_read_only?: boolean; + is_shared?: boolean; + is_thread_only?: boolean; + last_read?: string; + locale?: string; + name?: string; + name_normalized?: string; + num_members?: number; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInviteResponse.ts b/packages/web-api/src/types/response/ConversationsInviteResponse.ts index 632455e12..59f4997dd 100644 --- a/packages/web-api/src/types/response/ConversationsInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,57 +7,57 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsInviteResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface Error { error?: string; - ok?: boolean; - user?: string; + ok?: boolean; + user?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts b/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts index ef5c9523b..a030d01fe 100644 --- a/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsInviteSharedResponse = WebAPICallResult & { - conf_code?: string; - error?: string; - invite_id?: string; + conf_code?: string; + error?: string; + invite_id?: string; is_legacy_shared_channel?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - url?: string; + needed?: string; + ok?: boolean; + provided?: string; + url?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsJoinResponse.ts b/packages/web-api/src/types/response/ConversationsJoinResponse.ts index 76f856c01..fe7942f4c 100644 --- a/packages/web-api/src/types/response/ConversationsJoinResponse.ts +++ b/packages/web-api/src/types/response/ConversationsJoinResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,73 +7,73 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsJoinResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - is_starred?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_starred?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - properties?: Properties; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + properties?: Properties; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Properties { canvas?: Canvas; - tabs?: Tab[]; + tabs?: Tab[]; } export interface Canvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsKickResponse.ts b/packages/web-api/src/types/response/ConversationsKickResponse.ts index 18510ca0a..1b227483a 100644 --- a/packages/web-api/src/types/response/ConversationsKickResponse.ts +++ b/packages/web-api/src/types/response/ConversationsKickResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsKickResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsLeaveResponse.ts b/packages/web-api/src/types/response/ConversationsLeaveResponse.ts index db6acb1f0..7e2c2cad6 100644 --- a/packages/web-api/src/types/response/ConversationsLeaveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsLeaveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsLeaveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts b/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts index 77f252277..56746e4d5 100644 --- a/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,112 +7,130 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsListConnectInvitesResponse = WebAPICallResult & { - arg?: string; - error?: string; - invites?: InviteElement[]; - needed?: string; - ok?: boolean; - provided?: string; + arg?: string; + error?: string; + invites?: InviteElement[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface InviteElement { - acceptances?: Acceptance[]; - channel?: Channel; + acceptances?: Acceptance[]; + channel?: Channel; + date_created?: number; + date_invalid?: number; date_last_updated?: number; - direction?: string; - invite?: InviteInvite; - invite_type?: string; - status?: string; + direction?: string; + id?: string; + invite?: InviteInvite; + invite_payload?: InvitePayload; + invite_type?: string; + inviting_team?: IngTeam; + inviting_user?: TingUser; + link?: string; + recipient_user_id?: string; + sig?: string; + status?: string; } export interface Acceptance { - accepting_team?: IngTeam; - accepting_user?: TingUser; - approval_status?: string; - date_accepted?: number; - date_invalid?: number; + accepting_team?: IngTeam; + accepting_user?: TingUser; + approval_status?: string; + date_accepted?: number; + date_invalid?: number; date_last_updated?: number; - reviews?: Review[]; + reviews?: Review[]; } export interface IngTeam { - avatar_base_url?: string; - date_created?: number; - domain?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - name?: string; + avatar_base_url?: string; + date_created?: number; + domain?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + name?: string; + requires_sponsorship?: boolean; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; - image_default?: boolean; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; + image_default?: boolean; image_original?: string; } export interface TingUser { - id?: string; - name?: string; - profile?: Profile; - team_id?: string; - updated?: number; + id?: string; + name?: string; + profile?: Profile; + team_id?: string; + updated?: number; who_can_share_contact_card?: string; } export interface Profile { - avatar_hash?: string; - display_name?: string; + avatar_hash?: string; + display_name?: string; display_name_normalized?: string; - email?: string; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - real_name?: string; - real_name_normalized?: string; - team?: string; + email?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + real_name?: string; + real_name_normalized?: string; + team?: string; } export interface Review { - date_review?: number; + date_review?: number; reviewing_team?: IngTeam; - type?: string; + type?: string; } export interface Channel { - id?: string; - is_im?: boolean; + id?: string; + is_im?: boolean; is_private?: boolean; - name?: string; + name?: string; } export interface InviteInvite { - date_created?: number; - date_invalid?: number; - id?: string; - inviting_team?: IngTeam; - inviting_user?: TingUser; - link?: string; - recipient_email?: string; + date_created?: number; + date_invalid?: number; + id?: string; + inviting_team?: IngTeam; + inviting_user?: TingUser; + link?: string; + recipient_email?: string; recipient_user_id?: string; + sig?: string; +} + +export interface InvitePayload { + channel?: Channel; + invite_type?: string; + is_external_limited?: boolean; + is_sponsored?: boolean; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } diff --git a/packages/web-api/src/types/response/ConversationsListResponse.ts b/packages/web-api/src/types/response/ConversationsListResponse.ts index 135967fdb..5cfc8d61c 100644 --- a/packages/web-api/src/types/response/ConversationsListResponse.ts +++ b/packages/web-api/src/types/response/ConversationsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,66 +7,66 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsListResponse = WebAPICallResult & { - channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channels?: Channel[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Channel { - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - is_user_deleted?: boolean; - name?: string; - name_normalized?: string; - num_members?: number; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_user_deleted?: boolean; + name?: string; + name_normalized?: string; + num_members?: number; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - properties?: Properties; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; - user?: string; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + properties?: Properties; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; + user?: string; } export interface Properties { - canvas?: Canvas; + canvas?: Canvas; posting_restricted_to?: RestrictedTo; - tabs?: Tab[]; + tabs?: Tab[]; threads_restricted_to?: RestrictedTo; } export interface Canvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } @@ -77,15 +76,15 @@ export interface RestrictedTo { } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsMarkResponse.ts b/packages/web-api/src/types/response/ConversationsMarkResponse.ts index 160d5dde2..beac127d2 100644 --- a/packages/web-api/src/types/response/ConversationsMarkResponse.ts +++ b/packages/web-api/src/types/response/ConversationsMarkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsMembersResponse.ts b/packages/web-api/src/types/response/ConversationsMembersResponse.ts index 1681230c7..0e4dd6a03 100644 --- a/packages/web-api/src/types/response/ConversationsMembersResponse.ts +++ b/packages/web-api/src/types/response/ConversationsMembersResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsMembersResponse = WebAPICallResult & { - error?: string; - members?: string[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + members?: string[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/ConversationsOpenResponse.ts b/packages/web-api/src/types/response/ConversationsOpenResponse.ts index 660e3debf..66326c9d5 100644 --- a/packages/web-api/src/types/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/types/response/ConversationsOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,155 +7,162 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsOpenResponse = WebAPICallResult & { already_open?: boolean; - channel?: Channel; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + channel?: Channel; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - id?: string; - is_archived?: boolean; - is_im?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - last_read?: string; - latest?: Latest; - priority?: number; - unread_count?: number; + context_team_id?: string; + created?: number; + id?: string; + is_archived?: boolean; + is_im?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + last_read?: string; + latest?: Latest; + priority?: number; + unread_count?: number; unread_count_display?: number; - updated?: number; - user?: string; + updated?: number; + user?: string; } export interface Latest { - app_id?: string; - blocks?: LatestBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - subtype?: string; - team?: string; - text?: string; - ts?: string; - type?: string; - user?: string; -} - -export interface LatestBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + subtype?: string; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -166,42 +172,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -225,25 +231,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -253,358 +259,369 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + +export enum BlockType { + Actions = 'actions', + Context = 'context', + Divider = 'divider', + Image = 'image', + RichText = 'rich_text', + Section = 'section', + ShareShortcut = 'share_shortcut', + Video = 'video', } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -619,64 +636,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -685,11 +702,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/ConversationsRenameResponse.ts b/packages/web-api/src/types/response/ConversationsRenameResponse.ts index 3ff4d9eee..8212cd616 100644 --- a/packages/web-api/src/types/response/ConversationsRenameResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRenameResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,50 +7,50 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsRenameResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts index cc7c7ff92..49ff96af6 100644 --- a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,244 +7,160 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: MessageElement[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: MessageElement[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface MessageElement { - app_id?: string; - attachments?: Attachment[]; - blocks?: PurpleBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - is_locked?: boolean; - last_read?: string; - latest_reply?: string; - metadata?: FluffyMetadata; - parent_user_id?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - x_files?: string[]; -} - -export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; - is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; -} - -export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; - min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; -} - -export interface ActionConfirm { - dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; -} - -export interface ActionOptionGroup { - options?: SelectedOptionElement[]; - text?: string; -} - -export interface SelectedOptionElement { - text?: string; - value?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + is_locked?: boolean; + last_read?: string; + latest_reply?: string; + metadata?: FluffyMetadata; + parent_user_id?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + x_files?: string[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -255,42 +170,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -314,25 +229,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -342,14 +257,260 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } +export interface Call { + media_backend_type?: string; + v1?: V1; +} + +export interface V1 { + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Participant { + avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; +} + +export interface AppIconUrls { + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; + image_original?: string; +} + +export interface FileElement { + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; + sales_home_workflow_app_type?: number; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + export enum BlockType { Actions = 'actions', Context = 'context', @@ -361,270 +522,104 @@ export enum BlockType { Video = 'video', } -export interface AttachmentField { - short?: boolean; - title?: string; - value?: string; -} - -export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -639,64 +634,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -704,48 +699,158 @@ export interface Transcription { status?: string; } +export interface Attachment { + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; + is_thread_root_unfurl?: boolean; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; +} + +export interface Action { + confirm?: ActionConfirm; + data_source?: string; + id?: string; + min_query_length?: number; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; + selected_options?: SelectedOptionElement[]; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; +} + +export interface ActionConfirm { + dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; +} + +export interface ActionOptionGroup { + options?: SelectedOptionElement[]; + text?: string; +} + +export interface SelectedOptionElement { + text?: string; + value?: string; +} + +export interface AttachmentField { + short?: boolean; + title?: string; + value?: string; +} + export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: EventPayload; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: EventPayload; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type EventPayload = {}; +export interface EventPayload { +} export interface PurpleListRecord { record?: Record; @@ -753,90 +858,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: PurpleFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: PurpleMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: PurpleFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: PurpleMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -848,208 +954,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface PurpleFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: EventPayload; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: EventPayload; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1061,77 +1167,77 @@ export interface PurpleMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1144,133 +1250,35 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; -} - -export interface PurpleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; - sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; -} - -export interface Call { - media_backend_type?: string; - v1?: V1; -} - -export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; -} - -export interface Participant { - avatar_url?: string; - display_name?: string; - external_id?: string; - slack_id?: string; -} - -export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; - image_original?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface FluffyMetadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts b/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts index e84bfaefe..63e343ade 100644 --- a/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,8 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsRequestSharedInviteApproveResponse = WebAPICallResult & { + error?: string; invite_id?: string; - ok?: boolean; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts b/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts index fecde6448..a619d0530 100644 --- a/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,7 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsRequestSharedInviteDenyResponse = WebAPICallResult & { - ok?: boolean; + error?: string; + invite_id?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts b/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts index e81281ad6..9492f51d9 100644 --- a/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsSetPurposeResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts b/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts index dcfb28ead..be5e96bdf 100644 --- a/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsSetTopicResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts b/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts index 8651cbac2..5b1754d3d 100644 --- a/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ConversationsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/DialogOpenResponse.ts b/packages/web-api/src/types/response/DialogOpenResponse.ts index 14b2a79aa..537637783 100644 --- a/packages/web-api/src/types/response/DialogOpenResponse.ts +++ b/packages/web-api/src/types/response/DialogOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type DialogOpenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/DndEndDndResponse.ts b/packages/web-api/src/types/response/DndEndDndResponse.ts index 0ba686df9..896894730 100644 --- a/packages/web-api/src/types/response/DndEndDndResponse.ts +++ b/packages/web-api/src/types/response/DndEndDndResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type DndEndDndResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/DndEndSnoozeResponse.ts b/packages/web-api/src/types/response/DndEndSnoozeResponse.ts index 5c8fe4545..ba210015c 100644 --- a/packages/web-api/src/types/response/DndEndSnoozeResponse.ts +++ b/packages/web-api/src/types/response/DndEndSnoozeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type DndEndSnoozeResponse = WebAPICallResult & { - dnd_enabled?: boolean; - error?: string; - needed?: string; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + error?: string; + needed?: string; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; - ok?: boolean; - provided?: string; - snooze_enabled?: boolean; + ok?: boolean; + provided?: string; + snooze_enabled?: boolean; }; diff --git a/packages/web-api/src/types/response/DndInfoResponse.ts b/packages/web-api/src/types/response/DndInfoResponse.ts index 161d3f267..80c687b3c 100644 --- a/packages/web-api/src/types/response/DndInfoResponse.ts +++ b/packages/web-api/src/types/response/DndInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type DndInfoResponse = WebAPICallResult & { - dnd_enabled?: boolean; - error?: string; - needed?: string; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + error?: string; + needed?: string; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; - ok?: boolean; - provided?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/DndSetSnoozeResponse.ts b/packages/web-api/src/types/response/DndSetSnoozeResponse.ts index f41688d79..bd82d7d7c 100644 --- a/packages/web-api/src/types/response/DndSetSnoozeResponse.ts +++ b/packages/web-api/src/types/response/DndSetSnoozeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type DndSetSnoozeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - snooze_enabled?: boolean; - snooze_endtime?: number; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + snooze_enabled?: boolean; + snooze_endtime?: number; snooze_is_indefinite?: boolean; - snooze_remaining?: number; + snooze_remaining?: number; }; diff --git a/packages/web-api/src/types/response/DndTeamInfoResponse.ts b/packages/web-api/src/types/response/DndTeamInfoResponse.ts index e9578937d..1bc598539 100644 --- a/packages/web-api/src/types/response/DndTeamInfoResponse.ts +++ b/packages/web-api/src/types/response/DndTeamInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type DndTeamInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - users?: { [key: string]: User }; + users?: { [key: string]: User }; }; export interface User { - dnd_enabled?: boolean; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; } diff --git a/packages/web-api/src/types/response/EmojiListResponse.ts b/packages/web-api/src/types/response/EmojiListResponse.ts index 009729324..687860413 100644 --- a/packages/web-api/src/types/response/EmojiListResponse.ts +++ b/packages/web-api/src/types/response/EmojiListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type EmojiListResponse = WebAPICallResult & { - cache_ts?: string; - categories?: Category[]; + cache_ts?: string; + categories?: Category[]; categories_version?: string; - emoji?: { [key: string]: string }; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + emoji?: { [key: string]: string }; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface Category { emoji_names?: string[]; - name?: string; + name?: string; } diff --git a/packages/web-api/src/types/response/FilesCommentsAddResponse.ts b/packages/web-api/src/types/response/FilesCommentsAddResponse.ts index 83abd022d..916457c0a 100644 --- a/packages/web-api/src/types/response/FilesCommentsAddResponse.ts +++ b/packages/web-api/src/types/response/FilesCommentsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesCommentsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; req_method?: string; }; diff --git a/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts b/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts index 93da8faa3..afbffabc8 100644 --- a/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts +++ b/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesCommentsDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FilesCommentsEditResponse.ts b/packages/web-api/src/types/response/FilesCommentsEditResponse.ts index e403da128..a3d4d4910 100644 --- a/packages/web-api/src/types/response/FilesCommentsEditResponse.ts +++ b/packages/web-api/src/types/response/FilesCommentsEditResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesCommentsEditResponse = WebAPICallResult & { - comment?: Comment; - error?: string; - needed?: string; - ok?: boolean; + comment?: Comment; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Comment { - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } diff --git a/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts b/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts index 0920b68c4..f4362be58 100644 --- a/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts +++ b/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,73 +7,73 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesCompleteUploadExternalResponse = WebAPICallResult & { - error?: string; - files?: File[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + files?: File[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface File { - alt_txt?: string; - channels?: string[]; - comments_count?: number; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + alt_txt?: string; + channels?: string[]; + comments_count?: number; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - shares?: Shares; - size?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_80?: string; - thumb_tiny?: string; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + shares?: Shares; + size?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_80?: string; + thumb_tiny?: string; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + user?: string; + user_team?: string; + username?: string; } export interface Shares { @@ -82,16 +81,16 @@ export interface Shares { } export interface Public { - channel_name?: string; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + channel_name?: string; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/FilesDeleteResponse.ts b/packages/web-api/src/types/response/FilesDeleteResponse.ts index a6c45de67..58c18e218 100644 --- a/packages/web-api/src/types/response/FilesDeleteResponse.ts +++ b/packages/web-api/src/types/response/FilesDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts b/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts index 6fcaea5cd..ebc5d1f1e 100644 --- a/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts +++ b/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesGetUploadURLExternalResponse = WebAPICallResult & { - error?: string; - file_id?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + file_id?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - upload_url?: string; + upload_url?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/FilesInfoResponse.ts b/packages/web-api/src/types/response/FilesInfoResponse.ts index 862351957..7c4e88514 100644 --- a/packages/web-api/src/types/response/FilesInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,278 +7,278 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesInfoResponse = WebAPICallResult & { - comments?: Comment[]; - content?: string; - content_highlight_css?: string; - content_highlight_html?: string; + comments?: Comment[]; + content?: string; + content_highlight_css?: string; + content_highlight_html?: string; content_highlight_html_truncated?: boolean; - error?: string; - file?: File; - is_truncated?: boolean; - needed?: string; - ok?: boolean; - paging?: Paging; - provided?: string; + error?: string; + file?: File; + is_truncated?: boolean; + needed?: string; + ok?: boolean; + paging?: Paging; + provided?: string; }; export interface Comment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: Comment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -294,161 +293,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -458,42 +457,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -510,25 +509,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -538,11 +537,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -553,7 +552,7 @@ export interface Transcription { export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/FilesListResponse.ts b/packages/web-api/src/types/response/FilesListResponse.ts index 286bbacf5..ba6dbcd50 100644 --- a/packages/web-api/src/types/response/FilesListResponse.ts +++ b/packages/web-api/src/types/response/FilesListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,272 +7,272 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesListResponse = WebAPICallResult & { - error?: string; - files?: File[]; - needed?: string; - ok?: boolean; - paging?: Paging; + error?: string; + files?: File[]; + needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -288,161 +287,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -452,42 +451,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -504,25 +503,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -532,11 +531,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -547,7 +546,7 @@ export interface Transcription { export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts index a277c165f..a796baa3e 100644 --- a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRemoteAddResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts index a2ec38c93..6bf10645e 100644 --- a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRemoteInfoResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteListResponse.ts b/packages/web-api/src/types/response/FilesRemoteListResponse.ts index 700c4f591..7b03b1214 100644 --- a/packages/web-api/src/types/response/FilesRemoteListResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,272 +7,272 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRemoteListResponse = WebAPICallResult & { - error?: string; - files?: File[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + files?: File[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -288,161 +287,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -452,42 +451,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -504,25 +503,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -532,11 +531,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts b/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts index b86e44f11..51a6f931b 100644 --- a/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRemoteRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts index 01b9e3b2a..76f705f8f 100644 --- a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRemoteShareResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts index c8012873a..3f0af8c24 100644 --- a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRemoteUpdateResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts index e9215cc89..e42dcc593 100644 --- a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesRevokePublicURLResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts index 8310c4b2f..bc750e32f 100644 --- a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesSharedPublicURLResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesUploadResponse.ts b/packages/web-api/src/types/response/FilesUploadResponse.ts index fd3d5a6af..75394ad14 100644 --- a/packages/web-api/src/types/response/FilesUploadResponse.ts +++ b/packages/web-api/src/types/response/FilesUploadResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FilesUploadResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts b/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts index d8cb63748..91afb8195 100644 --- a/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts +++ b/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FunctionsCompleteErrorResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts b/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts index 260322ef7..ece202c2d 100644 --- a/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts +++ b/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type FunctionsCompleteSuccessResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/GroupsArchiveResponse.ts b/packages/web-api/src/types/response/GroupsArchiveResponse.ts index 083942caf..016842cbd 100644 --- a/packages/web-api/src/types/response/GroupsArchiveResponse.ts +++ b/packages/web-api/src/types/response/GroupsArchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsCloseResponse.ts b/packages/web-api/src/types/response/GroupsCloseResponse.ts index 3003ff938..e34006362 100644 --- a/packages/web-api/src/types/response/GroupsCloseResponse.ts +++ b/packages/web-api/src/types/response/GroupsCloseResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsCloseResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/GroupsCreateChildResponse.ts b/packages/web-api/src/types/response/GroupsCreateChildResponse.ts index 639bf8095..c4865bca2 100644 --- a/packages/web-api/src/types/response/GroupsCreateChildResponse.ts +++ b/packages/web-api/src/types/response/GroupsCreateChildResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,49 +7,49 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsCreateChildResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - parent_group?: string; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + parent_group?: string; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsCreateResponse.ts b/packages/web-api/src/types/response/GroupsCreateResponse.ts index 7fc3703cb..2ef93bc53 100644 --- a/packages/web-api/src/types/response/GroupsCreateResponse.ts +++ b/packages/web-api/src/types/response/GroupsCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,40 +7,40 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsCreateResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - members?: string[]; - name?: string; - name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + members?: string[]; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsHistoryResponse.ts b/packages/web-api/src/types/response/GroupsHistoryResponse.ts index 0020147b1..5a4455d9b 100644 --- a/packages/web-api/src/types/response/GroupsHistoryResponse.ts +++ b/packages/web-api/src/types/response/GroupsHistoryResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsInfoResponse.ts b/packages/web-api/src/types/response/GroupsInfoResponse.ts index babc4263d..52002f2d7 100644 --- a/packages/web-api/src/types/response/GroupsInfoResponse.ts +++ b/packages/web-api/src/types/response/GroupsInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,48 +7,48 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsInfoResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsInviteResponse.ts b/packages/web-api/src/types/response/GroupsInviteResponse.ts index c842eb1b4..b8209bd69 100644 --- a/packages/web-api/src/types/response/GroupsInviteResponse.ts +++ b/packages/web-api/src/types/response/GroupsInviteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,49 +7,49 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsInviteResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - name?: string; - name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - topic?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + topic?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsKickResponse.ts b/packages/web-api/src/types/response/GroupsKickResponse.ts index 27271a0a0..977c79c79 100644 --- a/packages/web-api/src/types/response/GroupsKickResponse.ts +++ b/packages/web-api/src/types/response/GroupsKickResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsKickResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsLeaveResponse.ts b/packages/web-api/src/types/response/GroupsLeaveResponse.ts index a11c43fa3..77b18ac8d 100644 --- a/packages/web-api/src/types/response/GroupsLeaveResponse.ts +++ b/packages/web-api/src/types/response/GroupsLeaveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsLeaveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsListResponse.ts b/packages/web-api/src/types/response/GroupsListResponse.ts index 7c34d49c1..45b3d2937 100644 --- a/packages/web-api/src/types/response/GroupsListResponse.ts +++ b/packages/web-api/src/types/response/GroupsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,39 +7,39 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsListResponse = WebAPICallResult & { - error?: string; - groups?: Group[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + groups?: Group[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + members?: string[]; + name?: string; name_normalized?: string; - parent_group?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; + parent_group?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsMarkResponse.ts b/packages/web-api/src/types/response/GroupsMarkResponse.ts index 3f2f12721..3a3a9a4ad 100644 --- a/packages/web-api/src/types/response/GroupsMarkResponse.ts +++ b/packages/web-api/src/types/response/GroupsMarkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsOpenResponse.ts b/packages/web-api/src/types/response/GroupsOpenResponse.ts index 0201d23b8..3ff292b60 100644 --- a/packages/web-api/src/types/response/GroupsOpenResponse.ts +++ b/packages/web-api/src/types/response/GroupsOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsOpenResponse = WebAPICallResult & { - already_open?: boolean; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + already_open?: boolean; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsRenameResponse.ts b/packages/web-api/src/types/response/GroupsRenameResponse.ts index c0ded3f75..0444e9f45 100644 --- a/packages/web-api/src/types/response/GroupsRenameResponse.ts +++ b/packages/web-api/src/types/response/GroupsRenameResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,35 +7,35 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsRenameResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + members?: string[]; + name?: string; name_normalized?: string; - purpose?: Purpose; - topic?: Purpose; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsRepliesResponse.ts b/packages/web-api/src/types/response/GroupsRepliesResponse.ts index d514681f5..6bb67ef0a 100644 --- a/packages/web-api/src/types/response/GroupsRepliesResponse.ts +++ b/packages/web-api/src/types/response/GroupsRepliesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts b/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts index 518eb1ac1..d4807a022 100644 --- a/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsSetPurposeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - purpose?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + purpose?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsSetTopicResponse.ts b/packages/web-api/src/types/response/GroupsSetTopicResponse.ts index 38f284567..8c145fb36 100644 --- a/packages/web-api/src/types/response/GroupsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/GroupsSetTopicResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsSetTopicResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - topic?: string; - warning?: string; + topic?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts b/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts index adf80c2fd..5e3a0b245 100644 --- a/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type GroupsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ImCloseResponse.ts b/packages/web-api/src/types/response/ImCloseResponse.ts index 53f3ed5a9..c32cd6288 100644 --- a/packages/web-api/src/types/response/ImCloseResponse.ts +++ b/packages/web-api/src/types/response/ImCloseResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ImCloseResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ImHistoryResponse.ts b/packages/web-api/src/types/response/ImHistoryResponse.ts index 351eb60b6..448e599ab 100644 --- a/packages/web-api/src/types/response/ImHistoryResponse.ts +++ b/packages/web-api/src/types/response/ImHistoryResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,124 +7,124 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ImHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - blocks?: Block[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - block_id?: string; - elements?: Element[]; - fallback?: string; - fields?: Text[]; - image_bytes?: number; + accessory?: Accessory; + alt_text?: string; + block_id?: string; + elements?: Element[]; + fallback?: string; + fields?: Text[]; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - text?: Text; - title?: Text; - type?: string; + image_url?: string; + image_width?: number; + text?: Text; + title?: Text; + type?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - type?: string; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - action_id?: string; - alt_text?: string; - confirm?: Confirm; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_option?: InitialOption; - initial_user?: string; - min_query_length?: number; - placeholder?: Text; - response_url_enabled?: boolean; - style?: string; - text?: Text; - type?: string; - url?: string; - value?: string; + fallback?: string; + filter?: Filter; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_option?: InitialOption; + initial_user?: string; + min_query_length?: number; + placeholder?: Text; + response_url_enabled?: boolean; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; } export interface InitialOption { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/ImListResponse.ts b/packages/web-api/src/types/response/ImListResponse.ts index a50fd3946..50ab29217 100644 --- a/packages/web-api/src/types/response/ImListResponse.ts +++ b/packages/web-api/src/types/response/ImListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ImListResponse = WebAPICallResult & { - error?: string; - ims?: Im[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + ims?: Im[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Im { - created?: number; - id?: string; - is_archived?: boolean; - is_im?: boolean; - is_org_shared?: boolean; + created?: number; + id?: string; + is_archived?: boolean; + is_im?: boolean; + is_org_shared?: boolean; is_user_deleted?: boolean; - priority?: number; - user?: string; + priority?: number; + user?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/ImMarkResponse.ts b/packages/web-api/src/types/response/ImMarkResponse.ts index 2c2681eed..37823caee 100644 --- a/packages/web-api/src/types/response/ImMarkResponse.ts +++ b/packages/web-api/src/types/response/ImMarkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ImMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ImOpenResponse.ts b/packages/web-api/src/types/response/ImOpenResponse.ts index 0815b5932..ad7d99fa1 100644 --- a/packages/web-api/src/types/response/ImOpenResponse.ts +++ b/packages/web-api/src/types/response/ImOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ImOpenResponse = WebAPICallResult & { - already_open?: boolean; - channel?: Channel; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + already_open?: boolean; + channel?: Channel; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { diff --git a/packages/web-api/src/types/response/ImRepliesResponse.ts b/packages/web-api/src/types/response/ImRepliesResponse.ts index 4f7836e8a..45ec9d8f1 100644 --- a/packages/web-api/src/types/response/ImRepliesResponse.ts +++ b/packages/web-api/src/types/response/ImRepliesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ImRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/MigrationExchangeResponse.ts b/packages/web-api/src/types/response/MigrationExchangeResponse.ts index d9cbd18a9..8aef633c7 100644 --- a/packages/web-api/src/types/response/MigrationExchangeResponse.ts +++ b/packages/web-api/src/types/response/MigrationExchangeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MigrationExchangeResponse = WebAPICallResult & { - enterprise_id?: string; - error?: string; + enterprise_id?: string; + error?: string; invalid_user_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; - team_id?: string; - user_id_map?: { [key: string]: string }; - warning?: string; + needed?: string; + ok?: boolean; + provided?: string; + team_id?: string; + user_id_map?: { [key: string]: string }; + warning?: string; }; diff --git a/packages/web-api/src/types/response/MpimCloseResponse.ts b/packages/web-api/src/types/response/MpimCloseResponse.ts index 39d6c5004..5bf278204 100644 --- a/packages/web-api/src/types/response/MpimCloseResponse.ts +++ b/packages/web-api/src/types/response/MpimCloseResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MpimCloseResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimHistoryResponse.ts b/packages/web-api/src/types/response/MpimHistoryResponse.ts index 4dd70bfe3..b1aaf65a6 100644 --- a/packages/web-api/src/types/response/MpimHistoryResponse.ts +++ b/packages/web-api/src/types/response/MpimHistoryResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,44 +7,44 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MpimHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - is_starred?: boolean; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + is_starred?: boolean; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/MpimListResponse.ts b/packages/web-api/src/types/response/MpimListResponse.ts index ee8f1dcc8..4cfca7eb9 100644 --- a/packages/web-api/src/types/response/MpimListResponse.ts +++ b/packages/web-api/src/types/response/MpimListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MpimListResponse = WebAPICallResult & { - error?: string; - groups?: Group[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + groups?: Group[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + members?: string[]; + name?: string; name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; + priority?: number; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimMarkResponse.ts b/packages/web-api/src/types/response/MpimMarkResponse.ts index c3481a31d..be118eab2 100644 --- a/packages/web-api/src/types/response/MpimMarkResponse.ts +++ b/packages/web-api/src/types/response/MpimMarkResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MpimMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimOpenResponse.ts b/packages/web-api/src/types/response/MpimOpenResponse.ts index a0915df20..8fe98f761 100644 --- a/packages/web-api/src/types/response/MpimOpenResponse.ts +++ b/packages/web-api/src/types/response/MpimOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,55 +7,55 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MpimOpenResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { - bot_id?: string; - bot_profile?: BotProfile; + bot_id?: string; + bot_profile?: BotProfile; parent_user_id?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -68,9 +67,9 @@ export interface Icons { } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimRepliesResponse.ts b/packages/web-api/src/types/response/MpimRepliesResponse.ts index 14d6c14af..9ef9b5b3b 100644 --- a/packages/web-api/src/types/response/MpimRepliesResponse.ts +++ b/packages/web-api/src/types/response/MpimRepliesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type MpimRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/OauthAccessResponse.ts b/packages/web-api/src/types/response/OauthAccessResponse.ts index 572b5bc60..4207ba3c5 100644 --- a/packages/web-api/src/types/response/OauthAccessResponse.ts +++ b/packages/web-api/src/types/response/OauthAccessResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,50 +7,50 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type OauthAccessResponse = WebAPICallResult & { - access_token?: string; + access_token?: string; authorizing_user?: User; - bot?: Bot; - enterprise_id?: string; - error?: string; + bot?: Bot; + enterprise_id?: string; + error?: string; incoming_webhook?: IncomingWebhook; - installer_user?: User; - needed?: string; - ok?: boolean; - provided?: string; - scope?: string; - scopes?: Scopes; - team_id?: string; - team_name?: string; - token_type?: string; - user_id?: string; - warning?: string; + installer_user?: User; + needed?: string; + ok?: boolean; + provided?: string; + scope?: string; + scopes?: Scopes; + team_id?: string; + team_name?: string; + token_type?: string; + user_id?: string; + warning?: string; }; export interface User { app_home?: string; - user_id?: string; + user_id?: string; } export interface Bot { bot_access_token?: string; - bot_user_id?: string; + bot_user_id?: string; } export interface IncomingWebhook { - channel?: string; - channel_id?: string; + channel?: string; + channel_id?: string; configuration_url?: string; - url?: string; + url?: string; } export interface Scopes { app_home?: string[]; - channel?: string[]; - group?: string[]; - im?: string[]; - mpim?: string[]; - team?: string[]; - user?: string[]; + channel?: string[]; + group?: string[]; + im?: string[]; + mpim?: string[]; + team?: string[]; + user?: string[]; } diff --git a/packages/web-api/src/types/response/OauthTokenResponse.ts b/packages/web-api/src/types/response/OauthTokenResponse.ts index 14c45762d..e9937283c 100644 --- a/packages/web-api/src/types/response/OauthTokenResponse.ts +++ b/packages/web-api/src/types/response/OauthTokenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type OauthTokenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; req_method?: string; }; diff --git a/packages/web-api/src/types/response/OauthV2AccessResponse.ts b/packages/web-api/src/types/response/OauthV2AccessResponse.ts index 13e973883..d799e571b 100644 --- a/packages/web-api/src/types/response/OauthV2AccessResponse.ts +++ b/packages/web-api/src/types/response/OauthV2AccessResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,44 +7,44 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type OauthV2AccessResponse = WebAPICallResult & { - access_token?: string; - app_id?: string; - authed_user?: AuthedUser; - bot_user_id?: string; - enterprise?: Enterprise; - error?: string; - expires_in?: number; - incoming_webhook?: IncomingWebhook; + access_token?: string; + app_id?: string; + authed_user?: AuthedUser; + bot_user_id?: string; + enterprise?: Enterprise; + error?: string; + expires_in?: number; + incoming_webhook?: IncomingWebhook; is_enterprise_install?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - refresh_token?: string; - scope?: string; - team?: Enterprise; - token_type?: string; - warning?: string; + needed?: string; + ok?: boolean; + provided?: string; + refresh_token?: string; + scope?: string; + team?: Enterprise; + token_type?: string; + warning?: string; }; export interface AuthedUser { - access_token?: string; - expires_in?: number; - id?: string; + access_token?: string; + expires_in?: number; + id?: string; refresh_token?: string; - scope?: string; - token_type?: string; + scope?: string; + token_type?: string; } export interface Enterprise { - id?: string; + id?: string; name?: string; } export interface IncomingWebhook { - channel?: string; - channel_id?: string; + channel?: string; + channel_id?: string; configuration_url?: string; - url?: string; + url?: string; } diff --git a/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts b/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts index cdd3398c4..2f7048e42 100644 --- a/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts +++ b/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type OauthV2ExchangeResponse = WebAPICallResult & { - access_token?: string; - app_id?: string; - authed_user?: AuthedUser; - bot_user_id?: string; - enterprise?: Enterprise; - error?: string; - expires_in?: number; - incoming_webhook?: IncomingWebhook; + access_token?: string; + app_id?: string; + authed_user?: AuthedUser; + bot_user_id?: string; + enterprise?: Enterprise; + error?: string; + expires_in?: number; + incoming_webhook?: IncomingWebhook; is_enterprise_install?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - refresh_token?: string; - response_metadata?: ResponseMetadata; - scope?: string; - team?: Enterprise; - token_type?: string; - warning?: string; + needed?: string; + ok?: boolean; + provided?: string; + refresh_token?: string; + response_metadata?: ResponseMetadata; + scope?: string; + team?: Enterprise; + token_type?: string; + warning?: string; }; export interface AuthedUser { - access_token?: string; - expires_in?: number; - id?: string; + access_token?: string; + expires_in?: number; + id?: string; refresh_token?: string; - scope?: string; - token_type?: string; + scope?: string; + token_type?: string; } export interface Enterprise { - id?: string; + id?: string; name?: string; } export interface IncomingWebhook { - channel?: string; - channel_id?: string; + channel?: string; + channel_id?: string; configuration_url?: string; - url?: string; + url?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts b/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts index 3010c5dfb..e4baf1cac 100644 --- a/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts +++ b/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type OpenIDConnectTokenResponse = WebAPICallResult & { - access_token?: string; - error?: string; - expires_in?: number; - id_token?: string; - needed?: string; - ok?: boolean; - provided?: string; + access_token?: string; + error?: string; + expires_in?: number; + id_token?: string; + needed?: string; + ok?: boolean; + provided?: string; refresh_token?: string; - token_type?: string; - warning?: string; + token_type?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts b/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts index 4932c740d..303fcba31 100644 --- a/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts +++ b/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,41 +7,41 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type OpenIDConnectUserInfoResponse = WebAPICallResult & { - date_email_verified?: number; - email?: string; - email_verified?: boolean; - error?: string; - family_name?: string; - given_name?: string; + date_email_verified?: number; + email?: string; + email_verified?: boolean; + error?: string; + family_name?: string; + given_name?: string; 'https://slack.com/enterprise_domain'?: string; - 'https://slack.com/enterprise_id'?: string; - 'https://slack.com/enterprise_name'?: string; - 'https://slack.com/team_domain'?: string; - 'https://slack.com/team_id'?: string; - 'https://slack.com/team_image_102'?: string; - 'https://slack.com/team_image_132'?: string; - 'https://slack.com/team_image_230'?: string; - 'https://slack.com/team_image_34'?: string; - 'https://slack.com/team_image_44'?: string; - 'https://slack.com/team_image_68'?: string; - 'https://slack.com/team_image_88'?: string; - 'https://slack.com/team_name'?: string; - 'https://slack.com/user_id'?: string; - 'https://slack.com/user_image_1024'?: string; - 'https://slack.com/user_image_192'?: string; - 'https://slack.com/user_image_24'?: string; - 'https://slack.com/user_image_32'?: string; - 'https://slack.com/user_image_48'?: string; - 'https://slack.com/user_image_512'?: string; - 'https://slack.com/user_image_72'?: string; - locale?: string; - name?: string; - needed?: string; - ok?: boolean; - picture?: string; - provided?: string; - sub?: string; - warning?: string; + 'https://slack.com/enterprise_id'?: string; + 'https://slack.com/enterprise_name'?: string; + 'https://slack.com/team_domain'?: string; + 'https://slack.com/team_id'?: string; + 'https://slack.com/team_image_102'?: string; + 'https://slack.com/team_image_132'?: string; + 'https://slack.com/team_image_230'?: string; + 'https://slack.com/team_image_34'?: string; + 'https://slack.com/team_image_44'?: string; + 'https://slack.com/team_image_68'?: string; + 'https://slack.com/team_image_88'?: string; + 'https://slack.com/team_name'?: string; + 'https://slack.com/user_id'?: string; + 'https://slack.com/user_image_1024'?: string; + 'https://slack.com/user_image_192'?: string; + 'https://slack.com/user_image_24'?: string; + 'https://slack.com/user_image_32'?: string; + 'https://slack.com/user_image_48'?: string; + 'https://slack.com/user_image_512'?: string; + 'https://slack.com/user_image_72'?: string; + locale?: string; + name?: string; + needed?: string; + ok?: boolean; + picture?: string; + provided?: string; + sub?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/PinsAddResponse.ts b/packages/web-api/src/types/response/PinsAddResponse.ts index ff681dd1a..3112a54d0 100644 --- a/packages/web-api/src/types/response/PinsAddResponse.ts +++ b/packages/web-api/src/types/response/PinsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type PinsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/PinsListResponse.ts b/packages/web-api/src/types/response/PinsListResponse.ts index 37e47d4be..47f530450 100644 --- a/packages/web-api/src/types/response/PinsListResponse.ts +++ b/packages/web-api/src/types/response/PinsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,279 +7,279 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type PinsListResponse = WebAPICallResult & { - error?: string; - items?: Item[]; - needed?: string; - ok?: boolean; + error?: string; + items?: Item[]; + needed?: string; + ok?: boolean; provided?: string; }; export interface Item { - comment?: string; - created?: number; + comment?: string; + created?: number; created_by?: string; - file?: File; - type?: string; + file?: File; + type?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -295,161 +294,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -459,42 +458,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -511,25 +510,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -539,11 +538,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/PinsRemoveResponse.ts b/packages/web-api/src/types/response/PinsRemoveResponse.ts index 19841744e..c4e54ed52 100644 --- a/packages/web-api/src/types/response/PinsRemoveResponse.ts +++ b/packages/web-api/src/types/response/PinsRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type PinsRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ReactionsAddResponse.ts b/packages/web-api/src/types/response/ReactionsAddResponse.ts index 12dd75b20..c9633c72d 100644 --- a/packages/web-api/src/types/response/ReactionsAddResponse.ts +++ b/packages/web-api/src/types/response/ReactionsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ReactionsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ReactionsGetResponse.ts b/packages/web-api/src/types/response/ReactionsGetResponse.ts index 7dd19593a..df705c677 100644 --- a/packages/web-api/src/types/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/types/response/ReactionsGetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,139 +7,146 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ReactionsGetResponse = WebAPICallResult & { - channel?: string; - error?: string; - message?: Message; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + message?: Message; + needed?: string; + ok?: boolean; provided?: string; - type?: string; + type?: string; }; export interface Message { - app_id?: string; - blocks?: MessageBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - permalink?: string; - reactions?: Reaction[]; - room?: Room; - team?: string; - text?: string; - ts?: string; - type?: string; - user?: string; -} - -export interface MessageBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + permalink?: string; + reactions?: Reaction[]; + room?: Room; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -150,42 +156,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -209,25 +215,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -237,358 +243,369 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + +export enum BlockType { + Actions = 'actions', + Context = 'context', + Divider = 'divider', + Image = 'image', + RichText = 'rich_text', + Section = 'section', + ShareShortcut = 'share_shortcut', + Video = 'video', } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -603,64 +620,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -669,11 +686,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -685,39 +702,40 @@ export interface Icons { } export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: Knocks; - last_invite_status_by_user?: Knocks; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: Knocks; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: Knocks; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } -export type Knocks = {}; +export interface Knocks { +} diff --git a/packages/web-api/src/types/response/ReactionsListResponse.ts b/packages/web-api/src/types/response/ReactionsListResponse.ts index d0f5566a1..b9a83f4e8 100644 --- a/packages/web-api/src/types/response/ReactionsListResponse.ts +++ b/packages/web-api/src/types/response/ReactionsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,256 +7,172 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ReactionsListResponse = WebAPICallResult & { - error?: string; - items?: Item[]; - needed?: string; - ok?: boolean; - paging?: Paging; - provided?: string; + error?: string; + items?: Item[]; + needed?: string; + ok?: boolean; + paging?: Paging; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Item { channel?: string; message?: ItemMessage; - type?: string; + type?: string; } export interface ItemMessage { - app_id?: string; - attachments?: Attachment[]; - blocks?: PurpleBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - icons?: BotProfileIcons; - inviter?: string; - is_locked?: boolean; - latest_reply?: string; - no_notifications?: boolean; - parent_user_id?: string; - permalink?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; -} - -export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; - is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; -} - -export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; - min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; -} - -export interface ActionConfirm { - dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; -} - -export interface ActionOptionGroup { - options?: SelectedOptionElement[]; - text?: string; -} - -export interface SelectedOptionElement { - text?: string; - value?: string; -} - -export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + icons?: BotProfileIcons; + inviter?: string; + is_locked?: boolean; + latest_reply?: string; + no_notifications?: boolean; + parent_user_id?: string; + permalink?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; +} + +export interface AssistantAppThreadBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -267,42 +182,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number | string; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -326,25 +241,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -354,14 +269,260 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } +export interface Call { + media_backend_type?: string; + v1?: V1; +} + +export interface V1 { + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; +} + +export interface Participant { + avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; +} + +export interface AppIconUrls { + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; + image_original?: string; +} + +export interface FileElement { + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + private_channels_with_file_access_count?: number; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; +} + +export interface FileBlock { + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; + sales_home_workflow_app_type?: number; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; +} + export enum BlockType { Actions = 'actions', Context = 'context', @@ -373,270 +534,104 @@ export enum BlockType { Video = 'video', } -export interface AttachmentField { - short?: boolean; - title?: string; - value?: string; -} - -export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; -} - export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -651,64 +646,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -716,48 +711,158 @@ export interface Transcription { status?: string; } +export interface Attachment { + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; + is_thread_root_unfurl?: boolean; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; +} + +export interface Action { + confirm?: ActionConfirm; + data_source?: string; + id?: string; + min_query_length?: number; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; + selected_options?: SelectedOptionElement[]; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; +} + +export interface ActionConfirm { + dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; +} + +export interface ActionOptionGroup { + options?: SelectedOptionElement[]; + text?: string; +} + +export interface SelectedOptionElement { + text?: string; + value?: string; +} + +export interface AttachmentField { + short?: boolean; + title?: string; + value?: string; +} + export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: Knocks; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: Knocks; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type Knocks = {}; +export interface Knocks { +} export interface PurpleListRecord { record?: Record; @@ -765,90 +870,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: PurpleFile; - files?: any[]; - hidden?: boolean; - icons?: RootIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: PurpleFile; + files?: any[]; + hidden?: boolean; + icons?: RootIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -860,208 +966,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface PurpleFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Knocks; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Knocks; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface RootIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1073,80 +1179,80 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: Knocks; - last_invite_status_by_user?: Knocks; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: Knocks; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: Knocks; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: RootIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: RootIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1159,133 +1265,35 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; -} - -export interface PurpleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; - sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; -} - -export interface Call { - media_backend_type?: string; - v1?: V1; -} - -export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; -} - -export interface Participant { - avatar_url?: string; - display_name?: string; - external_id?: string; - slack_id?: string; -} - -export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; - image_original?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/ReactionsRemoveResponse.ts b/packages/web-api/src/types/response/ReactionsRemoveResponse.ts index 3d82a32dc..5515a40a3 100644 --- a/packages/web-api/src/types/response/ReactionsRemoveResponse.ts +++ b/packages/web-api/src/types/response/ReactionsRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ReactionsRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/RemindersAddResponse.ts b/packages/web-api/src/types/response/RemindersAddResponse.ts index b3d2b0c71..91206db53 100644 --- a/packages/web-api/src/types/response/RemindersAddResponse.ts +++ b/packages/web-api/src/types/response/RemindersAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RemindersAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - reminder?: Reminder; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + reminder?: Reminder; response_metadata?: ResponseMetadata; }; export interface Reminder { complete_ts?: number; - creator?: string; - id?: string; - recurring?: boolean; - text?: string; - time?: number; - user?: string; + creator?: string; + id?: string; + recurring?: boolean; + text?: string; + time?: number; + user?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/RemindersCompleteResponse.ts b/packages/web-api/src/types/response/RemindersCompleteResponse.ts index 9c7f20ce1..b230f8d0c 100644 --- a/packages/web-api/src/types/response/RemindersCompleteResponse.ts +++ b/packages/web-api/src/types/response/RemindersCompleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RemindersCompleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/RemindersDeleteResponse.ts b/packages/web-api/src/types/response/RemindersDeleteResponse.ts index f8caa4433..47d2fa355 100644 --- a/packages/web-api/src/types/response/RemindersDeleteResponse.ts +++ b/packages/web-api/src/types/response/RemindersDeleteResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RemindersDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/RemindersInfoResponse.ts b/packages/web-api/src/types/response/RemindersInfoResponse.ts index c6e332826..e869d13dc 100644 --- a/packages/web-api/src/types/response/RemindersInfoResponse.ts +++ b/packages/web-api/src/types/response/RemindersInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,21 +7,21 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RemindersInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; reminder?: Reminder; }; export interface Reminder { complete_ts?: number; - creator?: string; - id?: string; - recurring?: boolean; - text?: string; - time?: number; - user?: string; + creator?: string; + id?: string; + recurring?: boolean; + text?: string; + time?: number; + user?: string; } diff --git a/packages/web-api/src/types/response/RemindersListResponse.ts b/packages/web-api/src/types/response/RemindersListResponse.ts index ea0137967..cca70f586 100644 --- a/packages/web-api/src/types/response/RemindersListResponse.ts +++ b/packages/web-api/src/types/response/RemindersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,28 +7,28 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RemindersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; reminders?: Reminder[]; }; export interface Reminder { - channel?: string; + channel?: string; complete_ts?: number; - creator?: string; - id?: string; - recurrence?: Recurrence; - recurring?: boolean; - text?: string; - time?: number; - user?: string; + creator?: string; + id?: string; + recurrence?: Recurrence; + recurring?: boolean; + text?: string; + time?: number; + user?: string; } export interface Recurrence { frequency?: string; - weekdays?: string[]; + weekdays?: string[]; } diff --git a/packages/web-api/src/types/response/RtmConnectResponse.ts b/packages/web-api/src/types/response/RtmConnectResponse.ts index c3d14745e..f1d99862c 100644 --- a/packages/web-api/src/types/response/RtmConnectResponse.ts +++ b/packages/web-api/src/types/response/RtmConnectResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RtmConnectResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - self?: Self; - team?: Team; - url?: string; + self?: Self; + team?: Team; + url?: string; }; export interface Self { - id?: string; + id?: string; name?: string; } export interface Team { domain?: string; - id?: string; - name?: string; + id?: string; + name?: string; } diff --git a/packages/web-api/src/types/response/RtmStartResponse.ts b/packages/web-api/src/types/response/RtmStartResponse.ts index d72e5cec7..783d7bf5c 100644 --- a/packages/web-api/src/types/response/RtmStartResponse.ts +++ b/packages/web-api/src/types/response/RtmStartResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,46 +7,46 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type RtmStartResponse = WebAPICallResult & { - accept_tos_url?: string; - bots?: Bot[]; - cache_ts?: number; - cache_ts_version?: string; - cache_version?: string; - can_manage_shared_channels?: boolean; - channels?: Channel[]; - dnd?: Dnd; - error?: string; - groups?: Group[]; - ims?: Im[]; - is_europe?: boolean; - latest_event_ts?: string; - links?: Links; + accept_tos_url?: string; + bots?: Bot[]; + cache_ts?: number; + cache_ts_version?: string; + cache_version?: string; + can_manage_shared_channels?: boolean; + channels?: Channel[]; + dnd?: Dnd; + error?: string; + groups?: Group[]; + ims?: Im[]; + is_europe?: boolean; + latest_event_ts?: string; + links?: Links; mobile_app_requires_upgrade?: boolean; - needed?: string; - non_threadable_channels?: string[]; - ok?: boolean; - provided?: string; - read_only_channels?: string[]; - response_metadata?: ResponseMetadata; - self?: Self; - subteams?: Subteams; - team?: Team; - thread_only_channels?: string[]; - url?: string; - users?: User[]; + needed?: string; + non_threadable_channels?: string[]; + ok?: boolean; + provided?: string; + read_only_channels?: string[]; + response_metadata?: ResponseMetadata; + self?: Self; + subteams?: Subteams; + team?: Team; + thread_only_channels?: string[]; + url?: string; + users?: User[]; }; export interface Bot { - app_id?: Appid; - deleted?: boolean; - icons?: BotIcons; - id?: Id; + app_id?: Appid; + deleted?: boolean; + icons?: BotIcons; + id?: Id; is_workflow_bot?: boolean; - name?: string; - team_id?: string; - updated?: number; + name?: string; + team_id?: string; + updated?: number; } export enum Appid { @@ -68,202 +67,202 @@ export enum Id { export interface Channel { connected_limited_team_ids?: string[]; - connected_team_ids?: string[]; - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - has_pins?: boolean; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + connected_team_ids?: string[]; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + has_pins?: boolean; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface Dnd { - dnd_enabled?: boolean; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; - snooze_enabled?: boolean; + snooze_enabled?: boolean; } export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - is_read_only?: boolean; - is_thread_only?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - parent_group?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + is_read_only?: boolean; + is_thread_only?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + parent_group?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { - attachments?: Attachment[]; - blocks?: LatestBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: Bot; - client_msg_id?: string; + attachments?: Attachment[]; + blocks?: LatestBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: Bot; + client_msg_id?: string; display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - icons?: MessageIcons; + edited?: Edited; + files?: FileElement[]; + icons?: MessageIcons; parent_user_id?: string; - reactions?: string[]; - root?: Root; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + reactions?: string[]; + root?: Root; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: TitleBlockElement[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: ActionType; - url?: string; - value?: string; + style?: string; + text?: string; + type?: ActionType; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -294,100 +293,100 @@ export enum ActionType { } export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: ActionType; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: ActionType; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -397,42 +396,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: ActionType; + indent?: number; + offset?: number; + style?: string; + type?: ActionType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -449,25 +448,25 @@ export enum PurpleType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -477,11 +476,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -503,263 +502,263 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlockElement[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -774,64 +773,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -840,47 +839,48 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type ListShares = {}; +export interface ListShares { +} export interface PurpleListRecord { record?: Record; @@ -888,287 +888,294 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: Bot; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + bot_link?: string; + bot_profile?: Bot; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: any[]; } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1180,77 +1187,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: Bot; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: Edited[]; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: Bot; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: Edited[]; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1263,142 +1270,142 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface LatestBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Im { context_team_id?: string; - created?: number; - has_pins?: boolean; - id?: string; - is_archived?: boolean; - is_im?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - last_read?: string; - priority?: number; - user?: string; + created?: number; + has_pins?: boolean; + id?: string; + is_archived?: boolean; + is_im?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + last_read?: string; + priority?: number; + user?: string; } export interface Links { @@ -1410,493 +1417,493 @@ export interface ResponseMetadata { } export interface Self { - created?: number; - first_login?: number; - id?: string; + created?: number; + first_login?: number; + id?: string; manual_presence?: string; - name?: string; - prefs?: SelfPrefs; + name?: string; + prefs?: SelfPrefs; } export interface SelfPrefs { - a11y_animations?: boolean; - a11y_dyslexic?: boolean; - a11y_play_sound_for_incoming_dm?: boolean; - a11y_play_sound_for_incoming_dm_choice?: string; - a11y_play_sound_for_sent_dm?: boolean; - a11y_play_sound_for_sent_dm_choice?: string; - a11y_read_out_incoming_dm?: boolean; - a11y_screen_reader_message_label_date_time_first?: boolean; - activity_view?: string; - add_apps_prompt_dismissed?: boolean; - add_channel_prompt_dismissed?: boolean; - add_prompt_interacted?: boolean; - all_channels_loud?: boolean; - all_notifications_prefs?: string; - all_unreads_section_filter?: string; - all_unreads_sort_order?: string; - allow_calls_to_set_current_status?: boolean; - allow_cmd_tab_iss?: boolean; - allowed_unfurl_senders?: string; - analytics_upsell_coachmark_seen?: boolean; - app_manifest_schema_format?: string; - app_subdomain_check_completed?: number; - arrow_history?: boolean; - at_channel_suppressed_channels?: string; - box_enabled?: boolean; - browsers_dismissed_channels_low_results_education?: boolean; - browsers_dismissed_files_low_results_education?: boolean; - browsers_dismissed_initial_activity_education?: boolean; - browsers_dismissed_initial_drafts_education?: boolean; - browsers_dismissed_initial_saved_education?: boolean; - browsers_dismissed_people_low_results_education?: boolean; - browsers_dismissed_user_groups_low_results_education?: boolean; - browsers_seen_initial_activity_education?: boolean; - browsers_seen_initial_channels_education?: boolean; - browsers_seen_initial_drafts_education?: boolean; - browsers_seen_initial_files_education?: boolean; - browsers_seen_initial_people_education?: boolean; - browsers_seen_initial_saved_education?: boolean; - browsers_seen_initial_user_groups_education?: boolean; - calls_disconnect_on_lock?: boolean; - calls_survey_last_seen?: string; - channel_canvas_variant?: number; - channel_sections?: string; - channel_sidebar_hide_browse_dms_link?: boolean; - channel_sidebar_hide_invite?: boolean; - channel_sort?: string; - chime_access_check_completed?: number; - clicked_close_onboarding_synth_view_banner?: boolean; - client_logs_pri?: string; - clips_feedback_survey_last_trigger_attempt?: number; - color_names_in_list?: boolean; - composer_nux?: string; - confirm_clear_all_unreads?: boolean; - confirm_sh_call_start?: boolean; - confirm_user_marked_away?: boolean; - connect_dm_early_access?: boolean; - contextual_help_reset_count?: number; - contextual_message_shortcuts_modal_was_seen?: boolean; - convert_emoticons?: boolean; - deprecation_banner_last_seen?: number; - deprecation_modal_last_seen?: number; - deprecation_toast_last_seen?: number; - desktop_client_ids?: string; - dismissed_app_config_redesign_coachmark?: boolean; - dismissed_app_launcher_atlassian_promo?: boolean; - dismissed_app_launcher_limit?: boolean; - dismissed_app_launcher_welcome?: boolean; - dismissed_app_manifest_coachmark?: boolean; - dismissed_app_manifest_description?: boolean; - dismissed_banner_download_ssb_prompt?: boolean; - dismissed_connect_auto_approval_modal?: string; - dismissed_fullscreen_download_ssb_prompt?: boolean; - dismissed_gov_slack_first_time_popup?: boolean; - dismissed_installed_app_dm_suggestions?: string; - dismissed_scdm_education?: boolean; - dismissed_scroll_search_tooltip_count?: number; - dismissed_sent_page_education?: boolean; - display_display_names?: boolean; - display_real_names_override?: number; - dnd_after_friday?: string; - dnd_after_monday?: string; - dnd_after_saturday?: string; - dnd_after_sunday?: string; - dnd_after_thursday?: string; - dnd_after_tuesday?: string; - dnd_after_wednesday?: string; - dnd_before_friday?: string; - dnd_before_monday?: string; - dnd_before_saturday?: string; - dnd_before_sunday?: string; - dnd_before_thursday?: string; - dnd_before_tuesday?: string; - dnd_before_wednesday?: string; - dnd_custom_new_badge_seen?: boolean; - dnd_days?: string; - dnd_enabled?: boolean; - dnd_enabled_friday?: string; - dnd_enabled_monday?: string; - dnd_enabled_saturday?: string; - dnd_enabled_sunday?: string; - dnd_enabled_thursday?: string; - dnd_enabled_tuesday?: string; - dnd_enabled_wednesday?: string; - dnd_end_hour?: string; - dnd_notification_schedule_new_badge_seen?: boolean; - dnd_start_hour?: string; - dnd_weekdays_off_allday?: boolean; - dropbox_enabled?: boolean; - edge_upload_proxy_check_completed?: number; - email_alerts?: string; - email_alerts_sleep_until?: number; - email_developer?: boolean; - email_offers?: boolean; - email_research?: boolean; - email_tips?: boolean; - email_weekly?: boolean; - emoji_autocomplete_big?: boolean; - emoji_mode?: string; - emoji_packs_clicked_collection_cta?: boolean; - emoji_packs_clicked_picker_cta?: boolean; - emoji_packs_clicked_picker_post_install_cta?: boolean; - emoji_packs_most_recent_available_time?: number; - emoji_use?: string; - emoji_use_org?: string; - enable_all_dms_view?: boolean; - enable_app_browser_view?: boolean; - enable_app_config_redesign?: boolean; - enable_channel_browser_view?: boolean; - enable_drafts_view?: boolean; - enable_file_browser_view?: boolean; - enable_file_browser_view_for_docs?: boolean; - enable_hq_view?: boolean; - enable_later_view?: boolean; - enable_media_captions?: boolean; - enable_mentions_and_reactions_view?: boolean; - enable_people_browser_view?: boolean; - enable_quip_file_browser_view?: boolean; - enable_react_emoji_picker?: boolean; - enable_reminders_view?: boolean; - enable_saved_items_view?: boolean; - enable_scheduled_view?: boolean; - enable_sent_view?: boolean; - enable_shortcuts_view?: boolean; - enable_slack_connect_view?: boolean; - enable_slack_connect_view_2?: number; - enable_streamline_view?: boolean; - enable_unread_view?: boolean; - ent_org_wide_channels_sidebar?: boolean; - enter_is_special_in_tbt?: boolean; - enterprise_mdm_custom_msg?: string; - enterprise_migration_seen?: boolean; - expand_inline_imgs?: boolean; - expand_internal_inline_imgs?: boolean; - expand_non_media_attachments?: boolean; - expand_snippets?: boolean; - f_key_search?: boolean; - failover_proxy_check_completed?: number; - file_picker_variant?: number; - first_seen_new_badge_in_more_menu_sidebar?: number; - first_seen_sent_page_in_sidebar?: number; - flannel_server_pool?: string; - folder_data?: string; - folders_enabled?: boolean; - frecency?: string; - frecency_ent_jumper?: string; - frecency_jumper?: string; - fuller_timestamps?: boolean; - graphic_emoticons?: boolean; - growls_enabled?: boolean; - growth_all_banners_prefs?: string; - growth_msg_limit_approaching_cta_count?: number; - growth_msg_limit_approaching_cta_ts?: number; - growth_msg_limit_long_reached_cta_count?: number; - growth_msg_limit_long_reached_cta_last_ts?: number; - growth_msg_limit_reached_cta_count?: number; - growth_msg_limit_reached_cta_last_ts?: number; - growth_msg_limit_sixty_day_banner_cta_count?: number; - growth_msg_limit_sixty_day_banner_cta_last_ts?: number; - has_acknowledged_shortcut_speedbump?: boolean; - has_created_channel?: boolean; - has_created_channel_section?: boolean; - has_dismissed_google_directory_coachmark?: boolean; - has_drafted_message?: boolean; - has_invited?: boolean; - has_joined_huddle?: boolean; - has_received_mention_or_reaction?: boolean; - has_received_threaded_message?: boolean; - has_recently_shared_a_channel?: boolean; - has_searched?: boolean; - has_sent_ten_messages?: number; - has_starred_item?: boolean; - has_uploaded?: boolean; - has_used_quickswitcher_shortcut?: boolean; - help_flexpane_clips_card_seen?: boolean; - help_flexpane_slack_connect_card_seen?: boolean; - help_menu_open_timestamp?: number; - help_modal_consult_banner_dismissed?: boolean; - help_modal_open_timestamp?: number; - hidden_users?: string; - hide_external_members_sharing_speed_bump?: boolean; - hide_hex_swatch?: boolean; - hide_user_group_info_pane?: boolean; - highlight_words?: string; - huddle_invite_sound?: string; - huddle_survey_last_seen?: string; - huddles_allow_smart_notif?: boolean; - huddles_cc_by_default?: boolean; - huddles_chime_new_endpoints_check_completed?: number; - huddles_disconnect_on_lock?: boolean; - huddles_global_mute?: boolean; - huddles_mini_panel?: boolean; - huddles_mute_by_default?: boolean; - huddles_play_music_when_last?: boolean; - huddles_reactions_play_sound?: boolean; - huddles_reactions_read_out_loud?: boolean; - huddles_set_status?: boolean; - huddles_show_shouty_rooster?: boolean; - huddles_variant?: number; - ia_details_coachmark_seen?: boolean; - ia_platform_actions_lab?: number; - ia_slackbot_survey_timestamp_48h?: number; - ia_slackbot_survey_timestamp_7d?: number; - ia_top_nav_theme?: string; - iap1_lab?: number; - identity_links_global_prefs?: string; - identity_links_prefs?: string; - in_interactive_mas_migration_flow?: boolean; - in_prod_surveys_enabled?: boolean; - inbox_views_workspace_filter?: string; - invite_accepted_notifications_muted?: boolean; - join_calls_device_settings?: string; - joiner_message_suggestion_dismissed?: boolean; - joiner_notifications_muted?: boolean; - jumbomoji?: boolean; - k_key_omnibox?: boolean; - k_key_omnibox_auto_hide_count?: number; - last_dismissed_scroll_search_tooltip_timestamp?: number; - last_seen_at_channel_warning?: number; - last_seen_sections_unreads_only_prompt_timestamp?: number; - last_snippet_type?: string; - lessons_enabled?: boolean; - load_lato_2?: boolean; - locale?: string; - locales_enabled?: LocalesEnabled; - loud_channels?: string; - loud_channels_set?: string; - ls_disabled?: boolean; - mac_ssb_bounce?: string; - mac_ssb_bullet?: boolean; - mark_msgs_read_immediately?: boolean; - media_muted?: boolean; - media_playback_speed?: number; - media_volume?: number; - mentions_exclude_at_channels?: boolean; - mentions_exclude_at_user_groups?: boolean; - mentions_exclude_reactions?: boolean; - message_navigation_toast_was_seen?: boolean; - messages_theme?: string; - mobile_channel_list_show_all_dms?: boolean; - mobile_channel_list_sort?: string; - msg_input_send_btn?: boolean; - msg_input_send_btn_auto_set?: boolean; - msg_input_sticky_composer?: boolean; - mute_sounds?: boolean; - muted_channels?: string; - mx_calendar_type?: string; - needs_initial_password_set?: boolean; - never_channels?: string; - new_msg_snd?: string; - newxp_seen_help_message?: number; - newxp_seen_last_message?: number; - newxp_suggested_channels?: string; - no_created_overlays?: boolean; - no_invites_widget_in_sidebar?: boolean; - no_joined_overlays?: boolean; - no_macelectron_banner?: boolean; - no_macssb1_banner?: boolean; - no_macssb2_banner?: boolean; - no_omnibox_in_channels?: boolean; - no_text_in_notifications?: boolean; - no_winssb1_banner?: boolean; - notification_center_filters?: string; - notifications_view?: string; - obey_inline_img_limit?: boolean; - onboarding_cancelled?: boolean; - onboarding_complete?: boolean; - onboarding_slackbot_conversation_step?: number; - onboarding_state?: number; - onboarding_tip_opt_out?: boolean; - open_quip_doc_in_flexpane?: boolean; - opened_slackbot_dm?: boolean; - overloaded_message_enabled?: boolean; - pagekeys_handled?: boolean; - phc_dismissed?: string; - phc_viewed?: string; - plain_text_mode?: boolean; - posts_formatting_guide?: boolean; - preferred_skin_tone?: string; - privacy_policy_seen?: boolean; - progressive_disclosure_state?: string; - prompted_for_email_disabling?: boolean; - purchaser?: boolean; - push_at_channel_suppressed_channels?: string; - push_dm_alert?: boolean; - push_everything?: boolean; - push_idle_wait?: number; - push_loud_channels?: string; - push_loud_channels_set?: string; - push_mention_alert?: boolean; - push_mention_channels?: string; - push_show_preview?: boolean; - push_sound?: string; - reached_all_dms_disclosure?: boolean; - reaction_notifications?: string; - reminder_notification_time?: string; - require_at?: boolean; - saved_searches?: string; - saved_view?: string; - scdm_trial_offer_banner?: string; - search_channel_sort?: string; - search_exclude_bots?: boolean; - search_exclude_channels?: string; - search_file_sort?: string; - search_hide_deactivated_users?: boolean; - search_hide_my_channels?: boolean; - search_only_current_team?: boolean; - search_only_my_channels?: boolean; - search_only_show_online?: boolean; - search_people_sort?: string; - search_sort?: string; - seen_a11y_pref_setup_coachmark?: boolean; - seen_administration_menu?: boolean; - seen_app_space_coachmark?: boolean; - seen_app_space_tutorial?: boolean; - seen_bookmarks_intro?: boolean; - seen_calls_interactive_coachmark?: boolean; - seen_channel_browser_admin_coachmark?: boolean; - seen_channel_email_tooltip?: boolean; - seen_channel_search?: boolean; - seen_connect_dm_coachmark?: boolean; - seen_connect_section_coachmark?: boolean; - seen_contextual_message_shortcuts_modal?: boolean; - seen_corporate_export_alert?: boolean; - seen_custom_status_badge?: boolean; - seen_custom_status_callout?: boolean; - seen_custom_status_expiration_badge?: boolean; - seen_domain_invite_reminder?: boolean; - seen_drafts_section_coachmark?: boolean; - seen_edit_mode?: boolean; - seen_edit_mode_edu?: boolean; - seen_emoji_pack_cta?: number; - seen_emoji_pack_dialog?: boolean; - seen_emoji_update_overlay_coachmark?: boolean; - seen_existing_install_coachmark?: boolean; - seen_first_install_coachmark?: boolean; - seen_floating_sidebar_coachmark?: boolean; - seen_gdrive_coachmark?: boolean; - seen_guest_admin_slackbot_announcement?: boolean; - seen_highlights_arrows_coachmark?: boolean; - seen_highlights_coachmark?: boolean; - seen_highlights_warm_welcome?: boolean; - seen_ia_education?: boolean; - seen_intl_channel_names_coachmark?: boolean; - seen_japanese_locale_change_message?: boolean; - seen_keyboard_shortcuts_coachmark?: boolean; - seen_link_unfurl_coachmark?: boolean; - seen_locale_change_message?: number; - seen_markdown_paste_shortcut?: number; - seen_markdown_paste_toast?: number; - seen_member_invite_reminder?: boolean; - seen_message_navigation_educational_toast?: boolean; - seen_name_tagging_coachmark?: boolean; - seen_new_badge_in_more_menu_sidebar?: boolean; - seen_new_search_ui?: boolean; - seen_onboarding_banner?: boolean; - seen_onboarding_channels?: boolean; - seen_onboarding_direct_messages?: boolean; - seen_onboarding_invites?: boolean; - seen_onboarding_private_groups?: boolean; - seen_onboarding_recent_mentions?: boolean; - seen_onboarding_search?: boolean; - seen_onboarding_slackbot_conversation?: boolean; - seen_onboarding_starred_items?: boolean; - seen_onboarding_start?: boolean; - seen_onboarding_synth_view?: boolean; - seen_onboarding_synth_view_count?: number; - seen_onboarding_synth_view_count_v2?: number; - seen_onboarding_synth_view_v2?: boolean; - seen_p3_locale_change_message_ko_kr?: number; - seen_people_search?: boolean; - seen_people_search_count?: number; - seen_quickswitcher_shortcut_tip_count?: number; - seen_sc_menu_coachmark?: boolean; - seen_sc_page?: boolean; - seen_sc_page_banner?: boolean; - seen_schedule_send_coachmark?: boolean; - seen_sections_unreads_only_prompt_count?: number; - seen_sent_page_in_sidebar?: boolean; - seen_shared_channels_coachmark?: boolean; - seen_shared_channels_opt_in_change_message?: boolean; - seen_shdep_slackbot_message?: boolean; - seen_single_emoji_msg?: boolean; - seen_sonic_deluxe_toast?: number; - seen_ssb_prompt?: boolean; - seen_threads_notification_banner?: boolean; - seen_toast_new_locale_launch?: string; - seen_toast_new_locale_launch_ts?: number; - seen_unread_view_coachmark?: boolean; - seen_welcome_2?: boolean; - seen_workflow_builder_deluxe_toast?: boolean; - seen_wysiwyg_deluxe_toast?: boolean; - separate_private_channels?: boolean; - separate_shared_channels?: boolean; - set_a11y_prefs_new_user?: boolean; - set_tz_automatically?: boolean; - shdep_promo_code_submitted?: boolean; - should_show_connect_section?: boolean; - should_show_contextual_help_for_conversation_navigation?: boolean; - should_show_contextual_help_for_jump_to_conversation?: boolean; - should_show_contextual_help_for_section_navigation?: boolean; - should_show_contextual_help_for_thread_navigation?: boolean; - should_show_unsend_message_confirmation?: boolean; - show_all_skin_tones?: boolean; - show_autocomplete_help?: number; - show_ent_onboarding?: boolean; - show_gov_slack_context_bar_banner?: boolean; - show_ia_tour_relaunch?: number; - show_jumper_scores?: boolean; - show_memory_instrument?: boolean; - show_quick_reactions?: boolean; - show_shared_channels_education_banner?: boolean; - show_sidebar_avatars?: boolean; - show_sidebar_quickswitcher_button?: boolean; - show_typing?: boolean; - sidebar_behavior?: string; - sidebar_pref_dismissed_tip?: boolean; - sidebar_theme?: string; - sidebar_theme_custom_values?: string; - slack_connect_invite_should_badge_sidebar?: boolean; - snippet_editor_wrap_long_lines?: boolean; - spaces_new_xp_banner_dismissed?: boolean; - ss_emojis?: boolean; - ssb_space_window?: string; - start_scroll_at_oldest?: boolean; - suggestions_request_id?: string; - sunset_interactive_message_views?: number; - suppress_external_invites_from_compose_warning?: boolean; - suppress_link_warning?: boolean; - suppress_thread_mention_warning?: boolean; - synth_view_prefs?: string; - tab_ui_return_selects?: boolean; - tasks_view?: string; - threads_everything?: boolean; - time24?: boolean; - tractor_enabled?: boolean; - tractor_experiment_group?: string; - two_factor_auth_enabled?: boolean; - tz?: string; - underline_links?: boolean; - up_to_browse_kb_shortcut?: boolean; - used_custom_status_kb_shortcut?: boolean; - user_colors?: string; - user_customized_quick_reactions_display_feature?: number; - user_customized_quick_reactions_has_customized?: boolean; + a11y_animations?: boolean; + a11y_dyslexic?: boolean; + a11y_play_sound_for_incoming_dm?: boolean; + a11y_play_sound_for_incoming_dm_choice?: string; + a11y_play_sound_for_sent_dm?: boolean; + a11y_play_sound_for_sent_dm_choice?: string; + a11y_read_out_incoming_dm?: boolean; + a11y_screen_reader_message_label_date_time_first?: boolean; + activity_view?: string; + add_apps_prompt_dismissed?: boolean; + add_channel_prompt_dismissed?: boolean; + add_prompt_interacted?: boolean; + all_channels_loud?: boolean; + all_notifications_prefs?: string; + all_unreads_section_filter?: string; + all_unreads_sort_order?: string; + allow_calls_to_set_current_status?: boolean; + allow_cmd_tab_iss?: boolean; + allowed_unfurl_senders?: string; + analytics_upsell_coachmark_seen?: boolean; + app_manifest_schema_format?: string; + app_subdomain_check_completed?: number; + arrow_history?: boolean; + at_channel_suppressed_channels?: string; + box_enabled?: boolean; + browsers_dismissed_channels_low_results_education?: boolean; + browsers_dismissed_files_low_results_education?: boolean; + browsers_dismissed_initial_activity_education?: boolean; + browsers_dismissed_initial_drafts_education?: boolean; + browsers_dismissed_initial_saved_education?: boolean; + browsers_dismissed_people_low_results_education?: boolean; + browsers_dismissed_user_groups_low_results_education?: boolean; + browsers_seen_initial_activity_education?: boolean; + browsers_seen_initial_channels_education?: boolean; + browsers_seen_initial_drafts_education?: boolean; + browsers_seen_initial_files_education?: boolean; + browsers_seen_initial_people_education?: boolean; + browsers_seen_initial_saved_education?: boolean; + browsers_seen_initial_user_groups_education?: boolean; + calls_disconnect_on_lock?: boolean; + calls_survey_last_seen?: string; + channel_canvas_variant?: number; + channel_sections?: string; + channel_sidebar_hide_browse_dms_link?: boolean; + channel_sidebar_hide_invite?: boolean; + channel_sort?: string; + chime_access_check_completed?: number; + clicked_close_onboarding_synth_view_banner?: boolean; + client_logs_pri?: string; + clips_feedback_survey_last_trigger_attempt?: number; + color_names_in_list?: boolean; + composer_nux?: string; + confirm_clear_all_unreads?: boolean; + confirm_sh_call_start?: boolean; + confirm_user_marked_away?: boolean; + connect_dm_early_access?: boolean; + contextual_help_reset_count?: number; + contextual_message_shortcuts_modal_was_seen?: boolean; + convert_emoticons?: boolean; + deprecation_banner_last_seen?: number; + deprecation_modal_last_seen?: number; + deprecation_toast_last_seen?: number; + desktop_client_ids?: string; + dismissed_app_config_redesign_coachmark?: boolean; + dismissed_app_launcher_atlassian_promo?: boolean; + dismissed_app_launcher_limit?: boolean; + dismissed_app_launcher_welcome?: boolean; + dismissed_app_manifest_coachmark?: boolean; + dismissed_app_manifest_description?: boolean; + dismissed_banner_download_ssb_prompt?: boolean; + dismissed_connect_auto_approval_modal?: string; + dismissed_fullscreen_download_ssb_prompt?: boolean; + dismissed_gov_slack_first_time_popup?: boolean; + dismissed_installed_app_dm_suggestions?: string; + dismissed_scdm_education?: boolean; + dismissed_scroll_search_tooltip_count?: number; + dismissed_sent_page_education?: boolean; + display_display_names?: boolean; + display_real_names_override?: number; + dnd_after_friday?: string; + dnd_after_monday?: string; + dnd_after_saturday?: string; + dnd_after_sunday?: string; + dnd_after_thursday?: string; + dnd_after_tuesday?: string; + dnd_after_wednesday?: string; + dnd_before_friday?: string; + dnd_before_monday?: string; + dnd_before_saturday?: string; + dnd_before_sunday?: string; + dnd_before_thursday?: string; + dnd_before_tuesday?: string; + dnd_before_wednesday?: string; + dnd_custom_new_badge_seen?: boolean; + dnd_days?: string; + dnd_enabled?: boolean; + dnd_enabled_friday?: string; + dnd_enabled_monday?: string; + dnd_enabled_saturday?: string; + dnd_enabled_sunday?: string; + dnd_enabled_thursday?: string; + dnd_enabled_tuesday?: string; + dnd_enabled_wednesday?: string; + dnd_end_hour?: string; + dnd_notification_schedule_new_badge_seen?: boolean; + dnd_start_hour?: string; + dnd_weekdays_off_allday?: boolean; + dropbox_enabled?: boolean; + edge_upload_proxy_check_completed?: number; + email_alerts?: string; + email_alerts_sleep_until?: number; + email_developer?: boolean; + email_offers?: boolean; + email_research?: boolean; + email_tips?: boolean; + email_weekly?: boolean; + emoji_autocomplete_big?: boolean; + emoji_mode?: string; + emoji_packs_clicked_collection_cta?: boolean; + emoji_packs_clicked_picker_cta?: boolean; + emoji_packs_clicked_picker_post_install_cta?: boolean; + emoji_packs_most_recent_available_time?: number; + emoji_use?: string; + emoji_use_org?: string; + enable_all_dms_view?: boolean; + enable_app_browser_view?: boolean; + enable_app_config_redesign?: boolean; + enable_channel_browser_view?: boolean; + enable_drafts_view?: boolean; + enable_file_browser_view?: boolean; + enable_file_browser_view_for_docs?: boolean; + enable_hq_view?: boolean; + enable_later_view?: boolean; + enable_media_captions?: boolean; + enable_mentions_and_reactions_view?: boolean; + enable_people_browser_view?: boolean; + enable_quip_file_browser_view?: boolean; + enable_react_emoji_picker?: boolean; + enable_reminders_view?: boolean; + enable_saved_items_view?: boolean; + enable_scheduled_view?: boolean; + enable_sent_view?: boolean; + enable_shortcuts_view?: boolean; + enable_slack_connect_view?: boolean; + enable_slack_connect_view_2?: number; + enable_streamline_view?: boolean; + enable_unread_view?: boolean; + ent_org_wide_channels_sidebar?: boolean; + enter_is_special_in_tbt?: boolean; + enterprise_mdm_custom_msg?: string; + enterprise_migration_seen?: boolean; + expand_inline_imgs?: boolean; + expand_internal_inline_imgs?: boolean; + expand_non_media_attachments?: boolean; + expand_snippets?: boolean; + f_key_search?: boolean; + failover_proxy_check_completed?: number; + file_picker_variant?: number; + first_seen_new_badge_in_more_menu_sidebar?: number; + first_seen_sent_page_in_sidebar?: number; + flannel_server_pool?: string; + folder_data?: string; + folders_enabled?: boolean; + frecency?: string; + frecency_ent_jumper?: string; + frecency_jumper?: string; + fuller_timestamps?: boolean; + graphic_emoticons?: boolean; + growls_enabled?: boolean; + growth_all_banners_prefs?: string; + growth_msg_limit_approaching_cta_count?: number; + growth_msg_limit_approaching_cta_ts?: number; + growth_msg_limit_long_reached_cta_count?: number; + growth_msg_limit_long_reached_cta_last_ts?: number; + growth_msg_limit_reached_cta_count?: number; + growth_msg_limit_reached_cta_last_ts?: number; + growth_msg_limit_sixty_day_banner_cta_count?: number; + growth_msg_limit_sixty_day_banner_cta_last_ts?: number; + has_acknowledged_shortcut_speedbump?: boolean; + has_created_channel?: boolean; + has_created_channel_section?: boolean; + has_dismissed_google_directory_coachmark?: boolean; + has_drafted_message?: boolean; + has_invited?: boolean; + has_joined_huddle?: boolean; + has_received_mention_or_reaction?: boolean; + has_received_threaded_message?: boolean; + has_recently_shared_a_channel?: boolean; + has_searched?: boolean; + has_sent_ten_messages?: number; + has_starred_item?: boolean; + has_uploaded?: boolean; + has_used_quickswitcher_shortcut?: boolean; + help_flexpane_clips_card_seen?: boolean; + help_flexpane_slack_connect_card_seen?: boolean; + help_menu_open_timestamp?: number; + help_modal_consult_banner_dismissed?: boolean; + help_modal_open_timestamp?: number; + hidden_users?: string; + hide_external_members_sharing_speed_bump?: boolean; + hide_hex_swatch?: boolean; + hide_user_group_info_pane?: boolean; + highlight_words?: string; + huddle_invite_sound?: string; + huddle_survey_last_seen?: string; + huddles_allow_smart_notif?: boolean; + huddles_cc_by_default?: boolean; + huddles_chime_new_endpoints_check_completed?: number; + huddles_disconnect_on_lock?: boolean; + huddles_global_mute?: boolean; + huddles_mini_panel?: boolean; + huddles_mute_by_default?: boolean; + huddles_play_music_when_last?: boolean; + huddles_reactions_play_sound?: boolean; + huddles_reactions_read_out_loud?: boolean; + huddles_set_status?: boolean; + huddles_show_shouty_rooster?: boolean; + huddles_variant?: number; + ia_details_coachmark_seen?: boolean; + ia_platform_actions_lab?: number; + ia_slackbot_survey_timestamp_48h?: number; + ia_slackbot_survey_timestamp_7d?: number; + ia_top_nav_theme?: string; + iap1_lab?: number; + identity_links_global_prefs?: string; + identity_links_prefs?: string; + in_interactive_mas_migration_flow?: boolean; + in_prod_surveys_enabled?: boolean; + inbox_views_workspace_filter?: string; + invite_accepted_notifications_muted?: boolean; + join_calls_device_settings?: string; + joiner_message_suggestion_dismissed?: boolean; + joiner_notifications_muted?: boolean; + jumbomoji?: boolean; + k_key_omnibox?: boolean; + k_key_omnibox_auto_hide_count?: number; + last_dismissed_scroll_search_tooltip_timestamp?: number; + last_seen_at_channel_warning?: number; + last_seen_sections_unreads_only_prompt_timestamp?: number; + last_snippet_type?: string; + lessons_enabled?: boolean; + load_lato_2?: boolean; + locale?: string; + locales_enabled?: LocalesEnabled; + loud_channels?: string; + loud_channels_set?: string; + ls_disabled?: boolean; + mac_ssb_bounce?: string; + mac_ssb_bullet?: boolean; + mark_msgs_read_immediately?: boolean; + media_muted?: boolean; + media_playback_speed?: number; + media_volume?: number; + mentions_exclude_at_channels?: boolean; + mentions_exclude_at_user_groups?: boolean; + mentions_exclude_reactions?: boolean; + message_navigation_toast_was_seen?: boolean; + messages_theme?: string; + mobile_channel_list_show_all_dms?: boolean; + mobile_channel_list_sort?: string; + msg_input_send_btn?: boolean; + msg_input_send_btn_auto_set?: boolean; + msg_input_sticky_composer?: boolean; + mute_sounds?: boolean; + muted_channels?: string; + mx_calendar_type?: string; + needs_initial_password_set?: boolean; + never_channels?: string; + new_msg_snd?: string; + newxp_seen_help_message?: number; + newxp_seen_last_message?: number; + newxp_suggested_channels?: string; + no_created_overlays?: boolean; + no_invites_widget_in_sidebar?: boolean; + no_joined_overlays?: boolean; + no_macelectron_banner?: boolean; + no_macssb1_banner?: boolean; + no_macssb2_banner?: boolean; + no_omnibox_in_channels?: boolean; + no_text_in_notifications?: boolean; + no_winssb1_banner?: boolean; + notification_center_filters?: string; + notifications_view?: string; + obey_inline_img_limit?: boolean; + onboarding_cancelled?: boolean; + onboarding_complete?: boolean; + onboarding_slackbot_conversation_step?: number; + onboarding_state?: number; + onboarding_tip_opt_out?: boolean; + open_quip_doc_in_flexpane?: boolean; + opened_slackbot_dm?: boolean; + overloaded_message_enabled?: boolean; + pagekeys_handled?: boolean; + phc_dismissed?: string; + phc_viewed?: string; + plain_text_mode?: boolean; + posts_formatting_guide?: boolean; + preferred_skin_tone?: string; + privacy_policy_seen?: boolean; + progressive_disclosure_state?: string; + prompted_for_email_disabling?: boolean; + purchaser?: boolean; + push_at_channel_suppressed_channels?: string; + push_dm_alert?: boolean; + push_everything?: boolean; + push_idle_wait?: number; + push_loud_channels?: string; + push_loud_channels_set?: string; + push_mention_alert?: boolean; + push_mention_channels?: string; + push_show_preview?: boolean; + push_sound?: string; + reached_all_dms_disclosure?: boolean; + reaction_notifications?: string; + reminder_notification_time?: string; + require_at?: boolean; + saved_searches?: string; + saved_view?: string; + scdm_trial_offer_banner?: string; + search_channel_sort?: string; + search_exclude_bots?: boolean; + search_exclude_channels?: string; + search_file_sort?: string; + search_hide_deactivated_users?: boolean; + search_hide_my_channels?: boolean; + search_only_current_team?: boolean; + search_only_my_channels?: boolean; + search_only_show_online?: boolean; + search_people_sort?: string; + search_sort?: string; + seen_a11y_pref_setup_coachmark?: boolean; + seen_administration_menu?: boolean; + seen_app_space_coachmark?: boolean; + seen_app_space_tutorial?: boolean; + seen_bookmarks_intro?: boolean; + seen_calls_interactive_coachmark?: boolean; + seen_channel_browser_admin_coachmark?: boolean; + seen_channel_email_tooltip?: boolean; + seen_channel_search?: boolean; + seen_connect_dm_coachmark?: boolean; + seen_connect_section_coachmark?: boolean; + seen_contextual_message_shortcuts_modal?: boolean; + seen_corporate_export_alert?: boolean; + seen_custom_status_badge?: boolean; + seen_custom_status_callout?: boolean; + seen_custom_status_expiration_badge?: boolean; + seen_domain_invite_reminder?: boolean; + seen_drafts_section_coachmark?: boolean; + seen_edit_mode?: boolean; + seen_edit_mode_edu?: boolean; + seen_emoji_pack_cta?: number; + seen_emoji_pack_dialog?: boolean; + seen_emoji_update_overlay_coachmark?: boolean; + seen_existing_install_coachmark?: boolean; + seen_first_install_coachmark?: boolean; + seen_floating_sidebar_coachmark?: boolean; + seen_gdrive_coachmark?: boolean; + seen_guest_admin_slackbot_announcement?: boolean; + seen_highlights_arrows_coachmark?: boolean; + seen_highlights_coachmark?: boolean; + seen_highlights_warm_welcome?: boolean; + seen_ia_education?: boolean; + seen_intl_channel_names_coachmark?: boolean; + seen_japanese_locale_change_message?: boolean; + seen_keyboard_shortcuts_coachmark?: boolean; + seen_link_unfurl_coachmark?: boolean; + seen_locale_change_message?: number; + seen_markdown_paste_shortcut?: number; + seen_markdown_paste_toast?: number; + seen_member_invite_reminder?: boolean; + seen_message_navigation_educational_toast?: boolean; + seen_name_tagging_coachmark?: boolean; + seen_new_badge_in_more_menu_sidebar?: boolean; + seen_new_search_ui?: boolean; + seen_onboarding_banner?: boolean; + seen_onboarding_channels?: boolean; + seen_onboarding_direct_messages?: boolean; + seen_onboarding_invites?: boolean; + seen_onboarding_private_groups?: boolean; + seen_onboarding_recent_mentions?: boolean; + seen_onboarding_search?: boolean; + seen_onboarding_slackbot_conversation?: boolean; + seen_onboarding_starred_items?: boolean; + seen_onboarding_start?: boolean; + seen_onboarding_synth_view?: boolean; + seen_onboarding_synth_view_count?: number; + seen_onboarding_synth_view_count_v2?: number; + seen_onboarding_synth_view_v2?: boolean; + seen_p3_locale_change_message_ko_kr?: number; + seen_people_search?: boolean; + seen_people_search_count?: number; + seen_quickswitcher_shortcut_tip_count?: number; + seen_sc_menu_coachmark?: boolean; + seen_sc_page?: boolean; + seen_sc_page_banner?: boolean; + seen_schedule_send_coachmark?: boolean; + seen_sections_unreads_only_prompt_count?: number; + seen_sent_page_in_sidebar?: boolean; + seen_shared_channels_coachmark?: boolean; + seen_shared_channels_opt_in_change_message?: boolean; + seen_shdep_slackbot_message?: boolean; + seen_single_emoji_msg?: boolean; + seen_sonic_deluxe_toast?: number; + seen_ssb_prompt?: boolean; + seen_threads_notification_banner?: boolean; + seen_toast_new_locale_launch?: string; + seen_toast_new_locale_launch_ts?: number; + seen_unread_view_coachmark?: boolean; + seen_welcome_2?: boolean; + seen_workflow_builder_deluxe_toast?: boolean; + seen_wysiwyg_deluxe_toast?: boolean; + separate_private_channels?: boolean; + separate_shared_channels?: boolean; + set_a11y_prefs_new_user?: boolean; + set_tz_automatically?: boolean; + shdep_promo_code_submitted?: boolean; + should_show_connect_section?: boolean; + should_show_contextual_help_for_conversation_navigation?: boolean; + should_show_contextual_help_for_jump_to_conversation?: boolean; + should_show_contextual_help_for_section_navigation?: boolean; + should_show_contextual_help_for_thread_navigation?: boolean; + should_show_unsend_message_confirmation?: boolean; + show_all_skin_tones?: boolean; + show_autocomplete_help?: number; + show_ent_onboarding?: boolean; + show_gov_slack_context_bar_banner?: boolean; + show_ia_tour_relaunch?: number; + show_jumper_scores?: boolean; + show_memory_instrument?: boolean; + show_quick_reactions?: boolean; + show_shared_channels_education_banner?: boolean; + show_sidebar_avatars?: boolean; + show_sidebar_quickswitcher_button?: boolean; + show_typing?: boolean; + sidebar_behavior?: string; + sidebar_pref_dismissed_tip?: boolean; + sidebar_theme?: string; + sidebar_theme_custom_values?: string; + slack_connect_invite_should_badge_sidebar?: boolean; + snippet_editor_wrap_long_lines?: boolean; + spaces_new_xp_banner_dismissed?: boolean; + ss_emojis?: boolean; + ssb_space_window?: string; + start_scroll_at_oldest?: boolean; + suggestions_request_id?: string; + sunset_interactive_message_views?: number; + suppress_external_invites_from_compose_warning?: boolean; + suppress_link_warning?: boolean; + suppress_thread_mention_warning?: boolean; + synth_view_prefs?: string; + tab_ui_return_selects?: boolean; + tasks_view?: string; + threads_everything?: boolean; + time24?: boolean; + tractor_enabled?: boolean; + tractor_experiment_group?: string; + two_factor_auth_enabled?: boolean; + tz?: string; + underline_links?: boolean; + up_to_browse_kb_shortcut?: boolean; + used_custom_status_kb_shortcut?: boolean; + user_colors?: string; + user_customized_quick_reactions_display_feature?: number; + user_customized_quick_reactions_has_customized?: boolean; user_customized_quick_reactions_use_frequently_used_emoji?: boolean; - user_expectations_survey_last_trigger_attempt?: number; - webapp_spellcheck?: boolean; - welcome_message_hidden?: boolean; - welcome_place_state?: string; - whats_new_read?: number; - who_can_see_account_by_searching_email?: string; - who_can_share_contact_card?: string; - whocanseethis_dm_mpdm_badge?: boolean; - workflow_builder_coachmarks?: string; - workflow_builder_intro_modal_clicked_through?: boolean; - xws_dismissed_education?: boolean; - xws_seen_education?: number; - xws_sidebar_variant?: number; + user_expectations_survey_last_trigger_attempt?: number; + webapp_spellcheck?: boolean; + welcome_message_hidden?: boolean; + welcome_place_state?: string; + whats_new_read?: number; + who_can_see_account_by_searching_email?: string; + who_can_share_contact_card?: string; + whocanseethis_dm_mpdm_badge?: boolean; + workflow_builder_coachmarks?: string; + workflow_builder_intro_modal_clicked_through?: boolean; + xws_dismissed_education?: boolean; + xws_seen_education?: number; + xws_sidebar_variant?: number; } export interface LocalesEnabled { @@ -1916,288 +1923,288 @@ export interface LocalesEnabled { } export interface Subteams { - all?: All[]; + all?: All[]; self?: string[]; } export interface All { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: AllPrefs; - team_id?: string; - updated_by?: string; - user_count?: number; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: AllPrefs; + team_id?: string; + updated_by?: string; + user_count?: number; } export interface AllPrefs { channels?: string[]; - groups?: Group[]; + groups?: Group[]; } export interface Team { - avatar_base_url?: string; - date_create?: number; - domain?: string; - email_domain?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - limit_ts?: number; - messages_count?: number; - msg_edit_window_mins?: number; - name?: string; + avatar_base_url?: string; + date_create?: number; + domain?: string; + email_domain?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + limit_ts?: number; + messages_count?: number; + msg_edit_window_mins?: number; + name?: string; onboarding_channel_id?: string; - over_storage_limit?: boolean; - plan?: string; - prefs?: TeamPrefs; - url?: string; + over_storage_limit?: boolean; + plan?: string; + prefs?: TeamPrefs; + url?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; image_original?: string; } export interface TeamPrefs { - admin_customized_quick_reactions?: string[]; - all_users_can_purchase?: boolean; - allow_admin_retention_override?: number; - allow_audio_clip_sharing_slack_connect?: boolean; - allow_audio_clips?: boolean; - allow_box_cfs?: boolean; - allow_calls?: boolean; - allow_calls_interactive_screen_sharing?: boolean; - allow_clip_downloads?: string; - allow_free_automated_trials?: boolean; - allow_huddles?: boolean; - allow_huddles_transcriptions?: boolean; - allow_huddles_video?: boolean; - allow_media_transcriptions?: boolean; - allow_message_deletion?: boolean; - allow_retention_override?: boolean; - allow_spaceship?: string; - allow_sponsored_slack_connections?: boolean; - allow_video_clip_sharing_slack_connect?: boolean; - allow_video_clips?: boolean; - app_dir_only?: boolean; - app_management_apps?: string[]; - app_whitelist_enabled?: boolean; - auth_mode?: string; - block_file_download?: boolean; - box_app_installed?: boolean; - calls_apps?: CallsApps; - calls_locations?: string[]; - can_accept_slack_connect_channel_invites?: boolean; - can_create_external_limited_invite?: boolean; - can_create_slack_connect_channel_invite?: boolean; - can_receive_shared_channels_invites?: boolean; - channel_email_addresses_enabled?: boolean; - compliance_export_start?: number; - content_review_enabled?: boolean; - created_with_google?: boolean; - custom_status_default_emoji?: string; - custom_status_presets?: Array; - daily_prompts_enabled?: boolean; - default_channel_creation_enabled?: boolean; - default_channels?: string[]; - default_create_private_channel?: boolean; - default_rxns?: string[]; - disable_email_ingestion?: boolean; - disable_file_deleting?: boolean; - disable_file_editing?: boolean; - disable_file_uploads?: string; - disable_sidebar_connect_prompts?: string[]; - disable_sidebar_install_prompts?: string[]; - disallow_public_file_urls?: boolean; - discoverable?: string; - display_anniversary_celebration?: boolean; - display_default_phone?: boolean; - display_email_addresses?: boolean; - display_external_email_addresses?: boolean; - display_name_pronunciation?: boolean; - display_new_hire_celebration?: boolean; - display_pronouns?: boolean; - display_real_names?: boolean; - dm_retention_duration?: number; - dm_retention_redaction_duration?: number; - dm_retention_type?: number; - dnd_after_friday?: string; - dnd_after_monday?: string; - dnd_after_saturday?: string; - dnd_after_sunday?: string; - dnd_after_thursday?: string; - dnd_after_tuesday?: string; - dnd_after_wednesday?: string; - dnd_before_friday?: string; - dnd_before_monday?: string; - dnd_before_saturday?: string; - dnd_before_sunday?: string; - dnd_before_thursday?: string; - dnd_before_tuesday?: string; - dnd_before_wednesday?: string; - dnd_days?: string; - dnd_enabled?: boolean; - dnd_enabled_friday?: string; - dnd_enabled_monday?: string; - dnd_enabled_saturday?: string; - dnd_enabled_sunday?: string; - dnd_enabled_thursday?: string; - dnd_enabled_tuesday?: string; - dnd_enabled_wednesday?: string; - dnd_end_hour?: string; - dnd_start_hour?: string; - dnd_weekdays_off_allday?: boolean; - dropbox_legacy_picker?: boolean; - emoji_only_admins?: boolean; - enable_connect_dm_early_access?: boolean; - enable_domain_allowlist_for_cea?: boolean; - enable_info_barriers?: boolean; - enable_mpdm_to_private_channel_conversion?: boolean; - enable_shared_channels?: number; - enterprise_default_channels?: string[]; - enterprise_has_corporate_exports?: boolean; - enterprise_intune_enabled?: boolean; - enterprise_mandatory_channels?: string[]; - enterprise_mdm_date_enabled?: number; - enterprise_mdm_disable_file_download?: boolean; - enterprise_mdm_level?: number; - enterprise_mdm_token?: string; - enterprise_mobile_device_check?: boolean; - enterprise_team_creation_request?: EnterpriseTeamCreationRequest; - ext_audit_log_retention_duration?: number; - ext_audit_log_retention_type?: number; - file_limit_whitelisted?: boolean; - file_retention_duration?: number; - file_retention_type?: number; - filepicker_app_first_install?: boolean; - gdrive_enabled_team?: boolean; - gg_enabled?: boolean; - group_retention_duration?: number; - group_retention_type?: number; - has_compliance_export?: boolean; - has_hipaa_compliance?: boolean; - has_seen_partner_promo?: boolean; - hermes_has_accepted_tos?: boolean; + admin_customized_quick_reactions?: string[]; + all_users_can_purchase?: boolean; + allow_admin_retention_override?: number; + allow_audio_clip_sharing_slack_connect?: boolean; + allow_audio_clips?: boolean; + allow_box_cfs?: boolean; + allow_calls?: boolean; + allow_calls_interactive_screen_sharing?: boolean; + allow_clip_downloads?: string; + allow_free_automated_trials?: boolean; + allow_huddles?: boolean; + allow_huddles_transcriptions?: boolean; + allow_huddles_video?: boolean; + allow_media_transcriptions?: boolean; + allow_message_deletion?: boolean; + allow_retention_override?: boolean; + allow_spaceship?: string; + allow_sponsored_slack_connections?: boolean; + allow_video_clip_sharing_slack_connect?: boolean; + allow_video_clips?: boolean; + app_dir_only?: boolean; + app_management_apps?: string[]; + app_whitelist_enabled?: boolean; + auth_mode?: string; + block_file_download?: boolean; + box_app_installed?: boolean; + calls_apps?: CallsApps; + calls_locations?: string[]; + can_accept_slack_connect_channel_invites?: boolean; + can_create_external_limited_invite?: boolean; + can_create_slack_connect_channel_invite?: boolean; + can_receive_shared_channels_invites?: boolean; + channel_email_addresses_enabled?: boolean; + compliance_export_start?: number; + content_review_enabled?: boolean; + created_with_google?: boolean; + custom_status_default_emoji?: string; + custom_status_presets?: Array; + daily_prompts_enabled?: boolean; + default_channel_creation_enabled?: boolean; + default_channels?: string[]; + default_create_private_channel?: boolean; + default_rxns?: string[]; + disable_email_ingestion?: boolean; + disable_file_deleting?: boolean; + disable_file_editing?: boolean; + disable_file_uploads?: string; + disable_sidebar_connect_prompts?: string[]; + disable_sidebar_install_prompts?: string[]; + disallow_public_file_urls?: boolean; + discoverable?: string; + display_anniversary_celebration?: boolean; + display_default_phone?: boolean; + display_email_addresses?: boolean; + display_external_email_addresses?: boolean; + display_name_pronunciation?: boolean; + display_new_hire_celebration?: boolean; + display_pronouns?: boolean; + display_real_names?: boolean; + dm_retention_duration?: number; + dm_retention_redaction_duration?: number; + dm_retention_type?: number; + dnd_after_friday?: string; + dnd_after_monday?: string; + dnd_after_saturday?: string; + dnd_after_sunday?: string; + dnd_after_thursday?: string; + dnd_after_tuesday?: string; + dnd_after_wednesday?: string; + dnd_before_friday?: string; + dnd_before_monday?: string; + dnd_before_saturday?: string; + dnd_before_sunday?: string; + dnd_before_thursday?: string; + dnd_before_tuesday?: string; + dnd_before_wednesday?: string; + dnd_days?: string; + dnd_enabled?: boolean; + dnd_enabled_friday?: string; + dnd_enabled_monday?: string; + dnd_enabled_saturday?: string; + dnd_enabled_sunday?: string; + dnd_enabled_thursday?: string; + dnd_enabled_tuesday?: string; + dnd_enabled_wednesday?: string; + dnd_end_hour?: string; + dnd_start_hour?: string; + dnd_weekdays_off_allday?: boolean; + dropbox_legacy_picker?: boolean; + emoji_only_admins?: boolean; + enable_connect_dm_early_access?: boolean; + enable_domain_allowlist_for_cea?: boolean; + enable_info_barriers?: boolean; + enable_mpdm_to_private_channel_conversion?: boolean; + enable_shared_channels?: number; + enterprise_default_channels?: string[]; + enterprise_has_corporate_exports?: boolean; + enterprise_intune_enabled?: boolean; + enterprise_mandatory_channels?: string[]; + enterprise_mdm_date_enabled?: number; + enterprise_mdm_disable_file_download?: boolean; + enterprise_mdm_level?: number; + enterprise_mdm_token?: string; + enterprise_mobile_device_check?: boolean; + enterprise_team_creation_request?: EnterpriseTeamCreationRequest; + ext_audit_log_retention_duration?: number; + ext_audit_log_retention_type?: number; + file_limit_whitelisted?: boolean; + file_retention_duration?: number; + file_retention_type?: number; + filepicker_app_first_install?: boolean; + gdrive_enabled_team?: boolean; + gg_enabled?: boolean; + group_retention_duration?: number; + group_retention_type?: number; + has_compliance_export?: boolean; + has_hipaa_compliance?: boolean; + has_seen_partner_promo?: boolean; + hermes_has_accepted_tos?: boolean; hermes_triggers_trippable_by_slack_connected_teams?: boolean; - hide_gsuite_invite_option?: boolean; - hide_referers?: boolean; - identity_links_prefs?: EnterpriseTeamCreationRequest; - invite_requests_enabled?: boolean; - invited_user_preset?: InvitedUserPreset; - invites_limit?: boolean; - invites_only_admins?: boolean; - joiner_notifications_enabled?: boolean; - loading_only_admins?: boolean; - locale?: string; - loud_channel_mentions_limit?: number; - magic_unfurls_enabled?: boolean; - member_analytics_disabled?: boolean; - ml_opt_out?: boolean; - mobile_passcode_timeout_in_seconds?: number; - mobile_session_duration?: number; - msg_edit_window_mins?: number; - notification_redaction_type?: string; - notify_pending_enabled?: boolean; - ntlm_credential_domains?: string; - onedrive_app_installed?: boolean; - onedrive_enabled_team?: boolean; - private_channel_membership_limit?: number; - private_retention_redaction_duration?: number; - public_retention_redaction_duration?: number; - received_esc_route_to_channel_awareness_message?: boolean; - retention_duration?: number; - retention_type?: number; - rich_previews_default?: string; - saml_enable?: boolean; - search_feedback_opt_out?: boolean; - self_serve_select?: boolean; - session_duration?: number; - session_duration_type?: number; - show_join_leave?: boolean; - show_legacy_paid_benefits_page?: boolean; - show_mobile_promos?: boolean; - sign_in_with_slack_default?: string; - sign_in_with_slack_disabled?: boolean; - single_user_exports?: boolean; - slack_connect_account_visibility?: string; - slack_connect_allowed_workspaces?: SlackConnectAllowedWorkspaces; - slack_connect_approval_type?: string; - slack_connect_dm_only_verified_orgs?: boolean; - slack_connect_file_upload_sharing_enabled?: boolean; - slackbot_responses_disabled?: boolean; - slackbot_responses_only_admins?: boolean; - spaceship_workspace_setting_visible?: boolean; - sso_disable_emails?: boolean; - sso_optional?: boolean; - sso_signup_restrictions?: number; - sso_sync_with_provider?: boolean; - stats_only_admins?: boolean; - subteams_auto_create_admin?: boolean; - subteams_auto_create_owner?: boolean; - thorn_safer_scan?: boolean; - two_factor_auth_required?: number; - uneditable_user_profile_fields?: string[]; - use_browser_picker?: boolean; - uses_customized_custom_status_presets?: boolean; - warn_before_at_channel?: string; - warn_user_before_logout?: boolean; - warn_user_before_logout_desktop?: boolean; - warn_user_before_logout_mobile?: boolean; - welcome_place_enabled?: boolean; - who_can_accept_slack_connect_channel_invites?: SlackConnectAllowedWorkspaces; - who_can_archive_channels?: string; - who_can_at_channel?: string; - who_can_at_everyone?: string; - who_can_change_team_profile?: string; - who_can_create_channel_email_addresses?: SlackConnectAllowedWorkspaces; - who_can_create_channels?: string; - who_can_create_delete_user_groups?: string; - who_can_create_external_limited_invite?: SlackConnectAllowedWorkspaces; - who_can_create_groups?: string; - who_can_create_shared_channels?: string; - who_can_create_slack_connect_channel_invite?: SlackConnectAllowedWorkspaces; - who_can_create_workflows?: SlackConnectAllowedWorkspaces; - who_can_dm_anyone?: SlackConnectAllowedWorkspaces; - who_can_edit_user_groups?: string; - who_can_kick_channels?: string; - who_can_kick_groups?: string; - who_can_manage_channel_posting_prefs?: string; - who_can_manage_ext_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_manage_guests?: SlackConnectAllowedWorkspaces; - who_can_manage_integrations?: SlackConnectAllowedWorkspaces; - who_can_manage_private_channels?: WhoCanManageP; + hide_gsuite_invite_option?: boolean; + hide_referers?: boolean; + identity_links_prefs?: EnterpriseTeamCreationRequest; + invite_requests_enabled?: boolean; + invited_user_preset?: InvitedUserPreset; + invites_limit?: boolean; + invites_only_admins?: boolean; + joiner_notifications_enabled?: boolean; + loading_only_admins?: boolean; + locale?: string; + loud_channel_mentions_limit?: number; + magic_unfurls_enabled?: boolean; + member_analytics_disabled?: boolean; + ml_opt_out?: boolean; + mobile_passcode_timeout_in_seconds?: number; + mobile_session_duration?: number; + msg_edit_window_mins?: number; + notification_redaction_type?: string; + notify_pending_enabled?: boolean; + ntlm_credential_domains?: string; + onedrive_app_installed?: boolean; + onedrive_enabled_team?: boolean; + private_channel_membership_limit?: number; + private_retention_redaction_duration?: number; + public_retention_redaction_duration?: number; + received_esc_route_to_channel_awareness_message?: boolean; + retention_duration?: number; + retention_type?: number; + rich_previews_default?: string; + saml_enable?: boolean; + search_feedback_opt_out?: boolean; + self_serve_select?: boolean; + session_duration?: number; + session_duration_type?: number; + show_join_leave?: boolean; + show_legacy_paid_benefits_page?: boolean; + show_mobile_promos?: boolean; + sign_in_with_slack_default?: string; + sign_in_with_slack_disabled?: boolean; + single_user_exports?: boolean; + slack_connect_account_visibility?: string; + slack_connect_allowed_workspaces?: SlackConnectAllowedWorkspaces; + slack_connect_approval_type?: string; + slack_connect_dm_only_verified_orgs?: boolean; + slack_connect_file_upload_sharing_enabled?: boolean; + slackbot_responses_disabled?: boolean; + slackbot_responses_only_admins?: boolean; + spaceship_workspace_setting_visible?: boolean; + sso_disable_emails?: boolean; + sso_optional?: boolean; + sso_signup_restrictions?: number; + sso_sync_with_provider?: boolean; + stats_only_admins?: boolean; + subteams_auto_create_admin?: boolean; + subteams_auto_create_owner?: boolean; + thorn_safer_scan?: boolean; + two_factor_auth_required?: number; + uneditable_user_profile_fields?: string[]; + use_browser_picker?: boolean; + uses_customized_custom_status_presets?: boolean; + warn_before_at_channel?: string; + warn_user_before_logout?: boolean; + warn_user_before_logout_desktop?: boolean; + warn_user_before_logout_mobile?: boolean; + welcome_place_enabled?: boolean; + who_can_accept_slack_connect_channel_invites?: SlackConnectAllowedWorkspaces; + who_can_archive_channels?: string; + who_can_at_channel?: string; + who_can_at_everyone?: string; + who_can_change_team_profile?: string; + who_can_create_channel_email_addresses?: SlackConnectAllowedWorkspaces; + who_can_create_channels?: string; + who_can_create_delete_user_groups?: string; + who_can_create_external_limited_invite?: SlackConnectAllowedWorkspaces; + who_can_create_groups?: string; + who_can_create_shared_channels?: string; + who_can_create_slack_connect_channel_invite?: SlackConnectAllowedWorkspaces; + who_can_create_workflows?: SlackConnectAllowedWorkspaces; + who_can_dm_anyone?: SlackConnectAllowedWorkspaces; + who_can_edit_user_groups?: string; + who_can_kick_channels?: string; + who_can_kick_groups?: string; + who_can_manage_channel_posting_prefs?: string; + who_can_manage_ext_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_manage_guests?: SlackConnectAllowedWorkspaces; + who_can_manage_integrations?: SlackConnectAllowedWorkspaces; + who_can_manage_private_channels?: WhoCanManageP; who_can_manage_private_channels_at_workspace_level?: WhoCanManageP; - who_can_manage_public_channels?: WhoCanManageP; - who_can_manage_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_post_general?: string; - who_can_post_in_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_request_ext_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_review_flagged_content?: SlackConnectAllowedWorkspaces; - who_can_use_hermes?: WhoCanUseHermes; - who_can_view_message_activity?: SlackConnectAllowedWorkspaces; - workflow_builder_enabled?: boolean; - workflow_extension_steps_beta_opt_in?: boolean; - workflow_extension_steps_enabled?: boolean; - workflows_export_csv_enabled?: boolean; - workflows_webhook_trigger_enabled?: boolean; + who_can_manage_public_channels?: WhoCanManageP; + who_can_manage_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_post_general?: string; + who_can_post_in_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_request_ext_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_review_flagged_content?: SlackConnectAllowedWorkspaces; + who_can_use_hermes?: WhoCanUseHermes; + who_can_view_message_activity?: SlackConnectAllowedWorkspaces; + workflow_builder_enabled?: boolean; + workflow_extension_steps_beta_opt_in?: boolean; + workflow_extension_steps_enabled?: boolean; + workflows_export_csv_enabled?: boolean; + workflows_webhook_trigger_enabled?: boolean; } export interface CallsApps { @@ -2206,9 +2213,9 @@ export interface CallsApps { } export interface Video { - id?: string; + id?: string; image?: string; - name?: string; + name?: string; } export interface EnterpriseTeamCreationRequest { @@ -2230,71 +2237,71 @@ export interface WhoCanManageP { export interface WhoCanUseHermes { subteam?: string[]; - type?: string[]; - user?: string[]; + type?: string[]; + user?: string[]; } export interface User { - color?: string; - deleted?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_ultra_restricted?: boolean; - is_workflow_bot?: boolean; - name?: string; - presence?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + is_workflow_bot?: boolean; + name?: string; + presence?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface Profile { - always_active?: boolean; - api_app_id?: string; - avatar_hash?: string; - bot_id?: Id; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: Fields; - first_name?: string; - guest_invited_by?: string; - huddle_state?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: Id; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: Fields; + first_name?: string; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface Fields { @@ -2302,13 +2309,13 @@ export interface Fields { } export interface Xf019LT13Z16 { - alt?: string; + alt?: string; value?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index d79529263..2be8c03a7 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,233 +7,233 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type SearchAllResponse = WebAPICallResult & { - error?: string; - files?: Files; + error?: string; + files?: Files; messages?: Messages; - needed?: string; - ok?: boolean; - posts?: Posts; + needed?: string; + ok?: boolean; + posts?: Posts; provided?: string; - query?: string; + query?: string; }; export interface Files { - matches?: FilesMatch[]; + matches?: FilesMatch[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface FilesMatch { - access?: string; - attachments?: Attachment[]; - bot_id?: string; - cc?: Cc[]; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - edit_link?: string; - editable?: boolean; - editors?: LastEditor[]; - editors_count?: number; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: MatchHeaders; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: LastEditor; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - non_owner_editable?: boolean; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + attachments?: Attachment[]; + bot_id?: string; + cc?: Cc[]; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + edit_link?: string; + editable?: boolean; + editors?: string[]; + editors_count?: number; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: MatchHeaders; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - sent_to_self?: boolean; - shares?: MatchShares; - size?: number; - subject?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: string[]; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_pdf?: string; - thumb_pdf_h?: number; - thumb_pdf_w?: number; - thumb_tiny?: string; - thumb_video?: string; - timestamp?: number; - title?: string; - title_blocks?: MatchTitleBlock[]; - to?: Cc[]; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: LastEditor; - user_team?: UserTeam; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + sent_to_self?: boolean; + shares?: MatchShares; + size?: number; + subject?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: string[]; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_pdf?: string; + thumb_pdf_h?: number; + thumb_pdf_w?: number; + thumb_tiny?: string; + thumb_video?: string; + timestamp?: number; + title?: string; + title_blocks?: MatchTitleBlock[]; + to?: Cc[]; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: LastEditor; + user_team?: UserTeam; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: AttachmentBlock[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: AttachmentBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: ActionType; - url?: string; - value?: string; + style?: string; + text?: string; + type?: ActionType; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -265,100 +264,100 @@ export enum ActionType { } export interface AttachmentBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: ActionType; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: ActionType; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -368,42 +367,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: ActionType; + indent?: number; + offset?: number; + style?: string; + type?: ActionType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -420,25 +419,25 @@ export enum PurpleType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -448,11 +447,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -474,173 +473,173 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: AttachmentBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: AttachmentBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: AttachmentBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: AttachmentBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: LastEditor; } @@ -650,92 +649,92 @@ export enum LastEditor { } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface FileHeaders { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -750,64 +749,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Public[] }; - public?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } export interface Public { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: LastEditor; - source?: string; - team_id?: UserTeam; - thread_ts?: string; - ts?: Ts; + share_user_id?: LastEditor; + source?: string; + team_id?: UserTeam; + thread_ts?: string; + ts?: Ts; } export enum UserTeam { @@ -826,47 +825,48 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type ListShares = {}; +export interface ListShares { +} export interface PurpleListRecord { record?: Record; @@ -874,90 +874,97 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; - attachments?: any[]; - blocks?: AttachmentBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: AttachmentBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -969,208 +976,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1182,77 +1189,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1265,30 +1272,30 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface MatchHeaders { @@ -1300,177 +1307,177 @@ export interface MatchShares { } export interface MatchTitleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; total_count?: number; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } export interface Messages { - matches?: MessagesMatch[]; + matches?: MessagesMatch[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface MessagesMatch { - attachments?: Attachment[]; - blocks?: MatchTitleBlock[]; - channel?: Channel; - files?: FileElement[]; - iid?: string; - is_mpim?: boolean; + attachments?: Attachment[]; + blocks?: MatchTitleBlock[]; + channel?: Channel; + files?: FileElement[]; + iid?: string; + is_mpim?: boolean; no_reactions?: boolean; - permalink?: string; - previous?: Previous; - previous_2?: Previous; - score?: number; - team?: UserTeam; - text?: string; - ts?: Ts; - type?: string; - user?: LastEditor; - username?: string; + permalink?: string; + previous?: Previous; + previous_2?: Previous; + score?: number; + team?: UserTeam; + text?: string; + ts?: Ts; + type?: string; + user?: LastEditor; + username?: string; } export interface Channel { - id?: string; - is_channel?: boolean; - is_ext_shared?: boolean; - is_file?: boolean; - is_group?: boolean; - is_im?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; + id?: string; + is_channel?: boolean; + is_ext_shared?: boolean; + is_file?: boolean; + is_group?: boolean; + is_im?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - name?: string; - name_normalized?: string; - pending_shared?: string[]; - user?: LastEditor; + is_private?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; + pending_shared?: string[]; + user?: LastEditor; } export interface Previous { attachments?: Attachment[]; - blocks?: MatchTitleBlock[]; - iid?: string; - permalink?: string; - text?: string; - ts?: Ts; - type?: string; - user?: LastEditor; - username?: string; + blocks?: MatchTitleBlock[]; + iid?: string; + permalink?: string; + text?: string; + ts?: Ts; + type?: string; + user?: LastEditor; + username?: string; } export interface Posts { matches?: string[]; - total?: number; + total?: number; } diff --git a/packages/web-api/src/types/response/SearchFilesResponse.ts b/packages/web-api/src/types/response/SearchFilesResponse.ts index b72c691b1..c3731f390 100644 --- a/packages/web-api/src/types/response/SearchFilesResponse.ts +++ b/packages/web-api/src/types/response/SearchFilesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,329 +7,329 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type SearchFilesResponse = WebAPICallResult & { - error?: string; - files?: Files; - needed?: string; - ok?: boolean; + error?: string; + files?: Files; + needed?: string; + ok?: boolean; provided?: string; - query?: string; + query?: string; }; export interface Files { - matches?: Match[]; + matches?: Match[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface Match { - access?: string; - attachments?: Attachment[]; - bot_id?: string; - cc?: Cc[]; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - edit_link?: string; - editable?: boolean; - editors?: LastEditor[]; - editors_count?: number; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: MatchHeaders; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: LastEditor; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - non_owner_editable?: boolean; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + attachments?: Attachment[]; + bot_id?: string; + cc?: Cc[]; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + edit_link?: string; + editable?: boolean; + editors?: string[]; + editors_count?: number; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: MatchHeaders; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - sent_to_self?: boolean; - shares?: MatchShares; - size?: number; - subject?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: string[]; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_pdf?: string; - thumb_pdf_h?: number; - thumb_pdf_w?: number; - thumb_tiny?: string; - thumb_video?: string; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: LastEditor; - user_team?: UserTeam; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + sent_to_self?: boolean; + shares?: MatchShares; + size?: number; + subject?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: string[]; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_pdf?: string; + thumb_pdf_h?: number; + thumb_pdf_w?: number; + thumb_tiny?: string; + thumb_video?: string; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: LastEditor; + user_team?: UserTeam; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -340,42 +339,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -399,25 +398,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -427,11 +426,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -453,173 +452,173 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: Block[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: Block[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: Block[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: Block[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: LastEditor; } @@ -629,92 +628,92 @@ export enum LastEditor { } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface FileHeaders { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -729,64 +728,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Public[] }; - public?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } export interface Public { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: LastEditor; - source?: string; - team_id?: UserTeam; - thread_ts?: string; - ts?: Ts; + share_user_id?: LastEditor; + source?: string; + team_id?: UserTeam; + thread_ts?: string; + ts?: Ts; } export enum UserTeam { @@ -805,47 +804,48 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type ListShares = {}; +export interface ListShares { +} export interface PurpleListRecord { record?: Record; @@ -853,90 +853,97 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; - attachments?: any[]; - blocks?: Block[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: Block[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -948,208 +955,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1161,77 +1168,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1244,30 +1251,30 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface MatchHeaders { @@ -1279,115 +1286,115 @@ export interface MatchShares { } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; total_count?: number; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/SearchMessagesResponse.ts b/packages/web-api/src/types/response/SearchMessagesResponse.ts index 1de72cf18..08710a32d 100644 --- a/packages/web-api/src/types/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/types/response/SearchMessagesResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,143 +7,143 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type SearchMessagesResponse = WebAPICallResult & { - error?: string; + error?: string; messages?: Messages; - needed?: string; - ok?: boolean; + needed?: string; + ok?: boolean; provided?: string; - query?: string; + query?: string; }; export interface Messages { - matches?: Match[]; + matches?: Match[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface Match { - attachments?: Attachment[]; - blocks?: MatchBlock[]; - channel?: Channel; - files?: FileElement[]; - iid?: string; - is_mpim?: boolean; + attachments?: Attachment[]; + blocks?: MatchBlock[]; + channel?: Channel; + files?: FileElement[]; + iid?: string; + is_mpim?: boolean; no_reactions?: boolean; - permalink?: string; - previous?: Previous; - previous_2?: Previous; - score?: number; - team?: string; - text?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + permalink?: string; + previous?: Previous; + previous_2?: Previous; + score?: number; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: TitleBlockElement[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: ActionType; - url?: string; - value?: string; + style?: string; + text?: string; + type?: ActionType; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -175,100 +174,100 @@ export enum ActionType { } export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: ActionType; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: ActionType; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -278,42 +277,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: ActionType; + indent?: number; + offset?: number; + style?: string; + type?: ActionType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -330,25 +329,25 @@ export enum PurpleType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -358,11 +357,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -384,263 +383,263 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlockElement[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -655,64 +654,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -721,47 +720,48 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export type ListShares = {}; +export interface ListShares { +} export interface PurpleListRecord { record?: Record; @@ -769,90 +769,97 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + app_id?: string; + assistant_app_thread?: AssistantAppThread; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; +} + +export interface AssistantAppThread { + first_user_thread_reply?: string; + title?: string; + title_blocks?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -864,208 +871,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1077,77 +1084,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1160,172 +1167,172 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface MatchBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Channel { - id?: string; - is_channel?: boolean; - is_ext_shared?: boolean; - is_file?: boolean; - is_group?: boolean; - is_im?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; + id?: string; + is_channel?: boolean; + is_ext_shared?: boolean; + is_file?: boolean; + is_group?: boolean; + is_im?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - name?: string; - name_normalized?: string; - pending_shared?: string[]; - user?: string; + is_private?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; + pending_shared?: string[]; + user?: string; } export interface Previous { attachments?: Attachment[]; - blocks?: MatchBlock[]; - iid?: string; - permalink?: string; - text?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + blocks?: MatchBlock[]; + iid?: string; + permalink?: string; + text?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; total_count?: number; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/StarsAddResponse.ts b/packages/web-api/src/types/response/StarsAddResponse.ts index c32e94c9a..392b8a8a5 100644 --- a/packages/web-api/src/types/response/StarsAddResponse.ts +++ b/packages/web-api/src/types/response/StarsAddResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type StarsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/StarsListResponse.ts b/packages/web-api/src/types/response/StarsListResponse.ts index 45d532ea8..01e8662ec 100644 --- a/packages/web-api/src/types/response/StarsListResponse.ts +++ b/packages/web-api/src/types/response/StarsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,216 +7,216 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type StarsListResponse = WebAPICallResult & { - error?: string; - items?: Item[]; - needed?: string; - ok?: boolean; - paging?: Paging; + error?: string; + items?: Item[]; + needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Item { - channel?: string; - comment?: Comment; + channel?: string; + comment?: Comment; date_create?: number; - file?: ItemFile; - message?: Message; - type?: string; + file?: ItemFile; + message?: Message; + type?: string; } export interface Comment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; is_starred?: boolean; - num_stars?: number; - timestamp?: number; - user?: string; + num_stars?: number; + timestamp?: number; + user?: string; } export interface ItemFile { - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - duration_ms?: number; - edit_link?: string; - editable?: boolean; - editor?: string; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: Comment; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - lines?: number; - lines_more?: number; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; + editable?: boolean; + editor?: string; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - public_url_shared?: boolean; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - to?: Cc[]; - transcription?: Transcription; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + public_url_shared?: boolean; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + to?: Cc[]; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - channel_name?: string; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + channel_name?: string; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -226,321 +225,321 @@ export interface Transcription { } export interface Message { - attachments?: Attachment[]; - blocks?: Block[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - inviter?: string; - is_locked?: boolean; - is_starred?: boolean; - last_read?: string; - latest_reply?: string; - permalink?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; + attachments?: Attachment[]; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + inviter?: string; + is_locked?: boolean; + is_starred?: boolean; + last_read?: string; + latest_reply?: string; + permalink?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: Field[]; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - metadata?: Metadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: Description; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: Description[]; - file?: ItemFile; - file_id?: string; - function_trigger_id?: string; - hint?: Description; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_workflow_app?: boolean; - label?: Description; - optional?: boolean; - provider_icon_url?: string; - provider_name?: string; - source?: string; - text?: Description; - thumbnail_url?: string; - title?: Description; - title_url?: string; - type?: string; - url?: string; - video_url?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: Description; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: Description[]; + file?: ItemFile; + file_id?: string; + function_trigger_id?: string; + hint?: Description; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_workflow_app?: boolean; + label?: Description; + optional?: boolean; + provider_icon_url?: string; + provider_name?: string; + source?: string; + text?: Description; + thumbnail_url?: string; + title?: Description; + title_url?: string; + type?: string; + url?: string; + video_url?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: Description; - response_url_enabled?: boolean; - style?: string; - text?: Description; - timezone?: string; - type?: string; - url?: string; - value?: string; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Description; + response_url_enabled?: boolean; + style?: string; + text?: Description; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { confirm?: Description; - deny?: Description; - style?: string; - text?: Description; - title?: Description; + deny?: Description; + style?: string; + text?: Description; + title?: Description; } export interface Description { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: string; - unicode?: string; - url?: string; - user_id?: string; + channel_id?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: string; + type?: string; + unicode?: string; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; - code?: boolean; + bold?: boolean; + code?: boolean; italic?: boolean; strike?: boolean; } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: string[]; + include?: string[]; } export interface InitialOptionElement { description?: Description; - text?: Description; - url?: string; - value?: string; + text?: Description; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: Description; + label?: Description; options?: InitialOptionElement[]; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } @@ -551,164 +550,164 @@ export interface Field { } export interface FileElement { - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - duration_ms?: number; - edit_link?: string; - editable?: boolean; - editor?: string; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: Comment; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - lines?: number; - lines_more?: number; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; + editable?: boolean; + editor?: string; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - public_url_shared?: boolean; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - to?: Cc[]; - transcription?: Transcription; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + public_url_shared?: boolean; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + to?: Cc[]; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Metadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: Description; - title?: Description; - type?: string; + icon_url?: string; + subtitle?: Description; + title?: Description; + type?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -720,14 +719,14 @@ export interface Icons { } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface Paging { - page?: number; - pages?: number; + page?: number; + pages?: number; per_page?: number; - spill?: number; - total?: number; + spill?: number; + total?: number; } diff --git a/packages/web-api/src/types/response/StarsRemoveResponse.ts b/packages/web-api/src/types/response/StarsRemoveResponse.ts index 73fb46223..3f7856ec6 100644 --- a/packages/web-api/src/types/response/StarsRemoveResponse.ts +++ b/packages/web-api/src/types/response/StarsRemoveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type StarsRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/TeamAccessLogsResponse.ts b/packages/web-api/src/types/response/TeamAccessLogsResponse.ts index 6a6c9de7c..028a9b9af 100644 --- a/packages/web-api/src/types/response/TeamAccessLogsResponse.ts +++ b/packages/web-api/src/types/response/TeamAccessLogsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamAccessLogsResponse = WebAPICallResult & { - error?: string; - logins?: Login[]; - needed?: string; - ok?: boolean; - paging?: Paging; - provided?: string; + error?: string; + logins?: Login[]; + needed?: string; + ok?: boolean; + paging?: Paging; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Login { - count?: number; - country?: string; + count?: number; + country?: string; date_first?: number; - date_last?: number; - ip?: string; - isp?: string; - region?: string; + date_last?: number; + ip?: string; + isp?: string; + region?: string; user_agent?: string; - user_id?: string; - username?: string; + user_id?: string; + username?: string; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/TeamBillableInfoResponse.ts b/packages/web-api/src/types/response/TeamBillableInfoResponse.ts index bf8a5839a..89c76df53 100644 --- a/packages/web-api/src/types/response/TeamBillableInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamBillableInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamBillableInfoResponse = WebAPICallResult & { - billable_info?: { [key: string]: BillableInfo }; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + billable_info?: { [key: string]: BillableInfo }; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/TeamBillingInfoResponse.ts b/packages/web-api/src/types/response/TeamBillingInfoResponse.ts index c8ae0e599..77ffe0c5e 100644 --- a/packages/web-api/src/types/response/TeamBillingInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamBillingInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamBillingInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - plan?: string; + error?: string; + needed?: string; + ok?: boolean; + plan?: string; provided?: string; }; diff --git a/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts b/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts index 2318bf471..fbf1cd48a 100644 --- a/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts +++ b/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamExternalTeamsDisconnectResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts b/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts index e53d21f7d..9539c6eb8 100644 --- a/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts +++ b/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,124 +7,124 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamExternalTeamsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - organizations?: Organization[]; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + organizations?: Organization[]; + provided?: string; response_metadata?: ResponseMetadata; - total_count?: number; + total_count?: number; }; export interface Organization { - canvas?: Canvas; - connected_workspaces?: ConnectedWorkspace[]; - connection_status?: string; - im_channel_count?: number; - is_sponsored?: boolean; + canvas?: Canvas; + connected_workspaces?: ConnectedWorkspace[]; + connection_status?: string; + im_channel_count?: number; + is_sponsored?: boolean; last_active_timestamp?: number; - lists?: Canvas; - mpim_channel_count?: number; + lists?: Canvas; + mpim_channel_count?: number; private_channel_count?: number; - public_channel_count?: number; - slack_connect_prefs?: SlackConnectPrefs; - team_domain?: string; - team_id?: string; - team_name?: string; + public_channel_count?: number; + slack_connect_prefs?: SlackConnectPrefs; + team_domain?: string; + team_id?: string; + team_name?: string; } export interface Canvas { ownership_details?: OwnershipDetail[]; - total_count?: number; + total_count?: number; } export interface OwnershipDetail { - count?: number; + count?: number; team_id?: string; } export interface ConnectedWorkspace { - workspace_id?: string; + workspace_id?: string; workspace_name?: string; } export interface SlackConnectPrefs { - accept_sc_invites?: AcceptScInvites; - allow_sc_file_uploads?: AllowScFileUploads; - allowed_canvas_sharing?: AllowScFileUploads; - allowed_list_sharing?: AllowScFileUploads; - allowed_workspaces?: AllowedWorkspaces; - approved_org_info?: AllowScFileUploads; + accept_sc_invites?: AcceptScInvites; + allow_sc_file_uploads?: AllowScFileUploads; + allowed_canvas_sharing?: AllowScFileUploads; + allowed_list_sharing?: AllowScFileUploads; + allowed_workspaces?: AllowedWorkspaces; + approved_org_info?: AllowScFileUploads; away_team_sc_invite_permissions?: AllowedWorkspaces; away_team_sc_invite_require_2fa?: AllowScFileUploads; - external_awareness_context_bar?: AllowScFileUploads; - profile_visibility?: AllowScFileUploads; - require_sc_channel_for_sc_dm?: AllowScFileUploads; - sc_channel_limited_access?: AllowScFileUploads; - sc_mpdm_to_private?: ScMpdmToPrivate; + external_awareness_context_bar?: AllowScFileUploads; + profile_visibility?: AllowScFileUploads; + require_sc_channel_for_sc_dm?: AllowScFileUploads; + sc_channel_limited_access?: AllowScFileUploads; + sc_mpdm_to_private?: ScMpdmToPrivate; shared_channel_invite_requested?: SharedChannelInviteRequested; } export interface AcceptScInvites { accept_in_workspace_ids?: string[]; - accept_private?: boolean; - actor?: string; - date_update?: number; - invalid_workspace_ids?: string[]; - source?: string; - type?: string; - use_allowed_workspaces?: boolean; + accept_private?: boolean; + actor?: string; + date_update?: number; + invalid_workspace_ids?: string[]; + source?: string; + type?: string; + use_allowed_workspaces?: boolean; } export interface AllowScFileUploads { - actor?: string; + actor?: string; approval_type?: string; - date_update?: number; - source?: string; - type?: boolean | string; - value?: boolean; + date_update?: number; + source?: string; + type?: boolean | string; + value?: boolean; } export interface AllowedWorkspaces { - actor?: string; + actor?: string; date_update?: number; - source?: string; - team_ids?: string[]; - type?: string; + source?: string; + team_ids?: string[]; + type?: string; } export interface ScMpdmToPrivate { accept_in_workspace_id?: string; - actor?: string; - date_update?: number; - invalid_workspace_ids?: string[]; - source?: string; - type?: string; + actor?: string; + date_update?: number; + invalid_workspace_ids?: string[]; + source?: string; + type?: string; } export interface SharedChannelInviteRequested { - actor?: string; + actor?: string; approval_destination?: ApprovalDestination; - date_update?: number; - enabled?: boolean; - source?: string; - usergroup_exclude?: UsergroupClude; - usergroup_include?: UsergroupClude; + date_update?: number; + enabled?: boolean; + source?: string; + usergroup_exclude?: UsergroupClude; + usergroup_include?: UsergroupClude; } export interface ApprovalDestination { all_who_can_manage_shared_channels?: boolean; - channel_id?: string; + channel_id?: string; } export interface UsergroupClude { - id?: string; + id?: string; team_id?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } diff --git a/packages/web-api/src/types/response/TeamInfoResponse.ts b/packages/web-api/src/types/response/TeamInfoResponse.ts index dc05a3992..56ba7a006 100644 --- a/packages/web-api/src/types/response/TeamInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,39 +7,39 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - team?: Team; + team?: Team; }; export interface Team { - avatar_base_url?: string; - discoverable?: string; - domain?: string; - email_domain?: string; - enterprise_domain?: string; - enterprise_id?: string; - enterprise_name?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; + avatar_base_url?: string; + discoverable?: string; + domain?: string; + email_domain?: string; + enterprise_domain?: string; + enterprise_id?: string; + enterprise_name?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; lob_sales_home_enabled?: boolean; - name?: string; - url?: string; + name?: string; + url?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; - image_default?: boolean; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; + image_default?: boolean; image_original?: string; } diff --git a/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts b/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts index 06cdc0379..6141bbbb3 100644 --- a/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts +++ b/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamIntegrationLogsResponse = WebAPICallResult & { - error?: string; - logs?: Log[]; - needed?: string; - ok?: boolean; - paging?: Paging; + error?: string; + logs?: Log[]; + needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Log { - app_id?: string; - app_type?: string; - change_type?: string; - channel?: string; - date?: string; - reason?: string; - resolution?: string; - rss_feed?: boolean; + app_id?: string; + app_type?: string; + change_type?: string; + channel?: string; + date?: string; + reason?: string; + resolution?: string; + rss_feed?: boolean; rss_feed_change_type?: string; - rss_feed_title?: string; - rss_feed_url?: string; - scope?: string; - service_id?: number; - service_type?: string; - user_id?: string; - user_name?: string; + rss_feed_title?: string; + rss_feed_url?: string; + scope?: string; + service_id?: number; + service_type?: string; + user_id?: string; + user_name?: string; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/TeamPreferencesListResponse.ts b/packages/web-api/src/types/response/TeamPreferencesListResponse.ts index ea7e4d885..1c4949e9a 100644 --- a/packages/web-api/src/types/response/TeamPreferencesListResponse.ts +++ b/packages/web-api/src/types/response/TeamPreferencesListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamPreferencesListResponse = WebAPICallResult & { allow_message_deletion?: boolean; - disable_file_uploads?: string; - display_real_names?: boolean; - error?: string; - msg_edit_window_mins?: number; - needed?: string; - ok?: boolean; - provided?: string; - who_can_post_general?: string; + disable_file_uploads?: string; + display_real_names?: boolean; + error?: string; + msg_edit_window_mins?: number; + needed?: string; + ok?: boolean; + provided?: string; + who_can_post_general?: string; }; diff --git a/packages/web-api/src/types/response/TeamProfileGetResponse.ts b/packages/web-api/src/types/response/TeamProfileGetResponse.ts index 7a3d02b5a..15e23bc15 100644 --- a/packages/web-api/src/types/response/TeamProfileGetResponse.ts +++ b/packages/web-api/src/types/response/TeamProfileGetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,51 +7,51 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type TeamProfileGetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - fields?: Field[]; + fields?: Field[]; sections?: Section[]; } export interface Field { - field_name?: string; - hint?: string; - id?: string; - is_hidden?: boolean; - is_inverse?: boolean; - label?: string; - options?: Options; - ordering?: number; - permissions?: Permissions; + field_name?: string; + hint?: string; + id?: string; + is_hidden?: boolean; + is_inverse?: boolean; + label?: string; + options?: Options; + ordering?: number; + permissions?: Permissions; possible_values?: string[]; - section_id?: string; - type?: string; + section_id?: string; + type?: string; } export interface Options { is_protected?: boolean; - is_scim?: boolean; + is_scim?: boolean; } export interface Permissions { - api?: string[]; + api?: string[]; scim?: boolean; - ui?: boolean; + ui?: boolean; } export interface Section { - id?: string; - is_hidden?: boolean; - label?: string; - order?: number; + id?: string; + is_hidden?: boolean; + label?: string; + order?: number; section_type?: string; - team_id?: string; + team_id?: string; } diff --git a/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts b/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts index 711d25020..83226d08f 100644 --- a/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts +++ b/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ToolingTokensRotateResponse = WebAPICallResult & { - error?: string; - exp?: number; - iat?: number; - needed?: string; - ok?: boolean; - provided?: string; - refresh_token?: string; + error?: string; + exp?: number; + iat?: number; + needed?: string; + ok?: boolean; + provided?: string; + refresh_token?: string; response_metadata?: ResponseMetadata; - team_id?: string; - token?: string; - user_id?: string; + team_id?: string; + token?: string; + user_id?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/UsergroupsCreateResponse.ts b/packages/web-api/src/types/response/UsergroupsCreateResponse.ts index da8f8cc62..4781b12ea 100644 --- a/packages/web-api/src/types/response/UsergroupsCreateResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsCreateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsCreateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsDisableResponse.ts b/packages/web-api/src/types/response/UsergroupsDisableResponse.ts index 001e20ea0..0b19672ef 100644 --- a/packages/web-api/src/types/response/UsergroupsDisableResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsDisableResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsDisableResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - deleted_by?: string; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + deleted_by?: string; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsEnableResponse.ts b/packages/web-api/src/types/response/UsergroupsEnableResponse.ts index 6e45241d8..cdc7f34a9 100644 --- a/packages/web-api/src/types/response/UsergroupsEnableResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsEnableResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsEnableResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsListResponse.ts b/packages/web-api/src/types/response/UsergroupsListResponse.ts index 6a87313bc..c6c254423 100644 --- a/packages/web-api/src/types/response/UsergroupsListResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroups?: Usergroup[]; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - user_count?: number; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + user_count?: number; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts b/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts index 3fc507ca5..920fcf427 100644 --- a/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsUpdateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts b/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts index 32a9d0ab5..25c3106ee 100644 --- a/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsUsersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - users?: string[]; + users?: string[]; }; diff --git a/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts b/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts index 542a81a6b..fcbbdf03f 100644 --- a/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsergroupsUsersUpdateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsersConversationsResponse.ts b/packages/web-api/src/types/response/UsersConversationsResponse.ts index 143906ed8..a1d47ef95 100644 --- a/packages/web-api/src/types/response/UsersConversationsResponse.ts +++ b/packages/web-api/src/types/response/UsersConversationsResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,69 +7,69 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersConversationsResponse = WebAPICallResult & { - channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channels?: Channel[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Channel { - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - enterprise_id?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - is_user_deleted?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; - parent_conversation?: string; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + enterprise_id?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_user_deleted?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; + parent_conversation?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - properties?: Properties; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; - user?: string; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + properties?: Properties; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; + user?: string; } export interface Properties { - canvas?: Canvas; - huddles_restricted?: boolean; + canvas?: Canvas; + huddles_restricted?: boolean; posting_restricted_to?: PostingRestrictedTo; - tabs?: Tab[]; + tabs?: Tab[]; threads_restricted_to?: ThreadsRestrictedTo; } export interface Canvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } @@ -80,9 +79,9 @@ export interface PostingRestrictedTo { } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface ThreadsRestrictedTo { @@ -90,9 +89,9 @@ export interface ThreadsRestrictedTo { } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts b/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts index ce940b023..6e07c585d 100644 --- a/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts +++ b/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersDeletePhotoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts b/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts index 6ea47e1bf..a43e9e4fc 100644 --- a/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts +++ b/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersDiscoverableContactsLookupResponse = WebAPICallResult & { - error?: string; - is_discoverable?: boolean; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + is_discoverable?: boolean; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/UsersGetPresenceResponse.ts b/packages/web-api/src/types/response/UsersGetPresenceResponse.ts index 9ccd29150..3630421fd 100644 --- a/packages/web-api/src/types/response/UsersGetPresenceResponse.ts +++ b/packages/web-api/src/types/response/UsersGetPresenceResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersGetPresenceResponse = WebAPICallResult & { - auto_away?: boolean; + auto_away?: boolean; connection_count?: number; - error?: string; - last_activity?: number; - manual_away?: boolean; - needed?: string; - ok?: boolean; - online?: boolean; - presence?: string; - provided?: string; - warning?: string; + error?: string; + last_activity?: number; + manual_away?: boolean; + needed?: string; + ok?: boolean; + online?: boolean; + presence?: string; + provided?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/UsersIdentityResponse.ts b/packages/web-api/src/types/response/UsersIdentityResponse.ts index f476cfe37..69f1b7dd5 100644 --- a/packages/web-api/src/types/response/UsersIdentityResponse.ts +++ b/packages/web-api/src/types/response/UsersIdentityResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersIdentityResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - team?: Team; - user?: User; - warning?: string; + team?: Team; + user?: User; + warning?: string; }; export interface Team { - id?: string; + id?: string; name?: string; } export interface User { - email?: string; - id?: string; + email?: string; + id?: string; image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; + image_24?: string; + image_32?: string; + image_48?: string; image_512?: string; - image_72?: string; - name?: string; + image_72?: string; + name?: string; } diff --git a/packages/web-api/src/types/response/UsersInfoResponse.ts b/packages/web-api/src/types/response/UsersInfoResponse.ts index a95de8fa2..7f3d0b664 100644 --- a/packages/web-api/src/types/response/UsersInfoResponse.ts +++ b/packages/web-api/src/types/response/UsersInfoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,94 +7,94 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - user?: User; + user?: User; }; export interface User { - color?: string; - deleted?: boolean; - enterprise_user?: EnterpriseUser; - has_2fa?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_connector_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_stranger?: boolean; - is_ultra_restricted?: boolean; - is_workflow_bot?: boolean; - locale?: string; - name?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + enterprise_user?: EnterpriseUser; + has_2fa?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_connector_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_stranger?: boolean; + is_ultra_restricted?: boolean; + is_workflow_bot?: boolean; + locale?: string; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface EnterpriseUser { - enterprise_id?: string; + enterprise_id?: string; enterprise_name?: string; - id?: string; - is_admin?: boolean; - is_owner?: boolean; - teams?: string[]; + id?: string; + is_admin?: boolean; + is_owner?: boolean; + teams?: string[]; } export interface Profile { - always_active?: boolean; - api_app_id?: string; - avatar_hash?: string; - bot_id?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - first_name?: string; - guest_invited_by?: string; - huddle_state?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + first_name?: string; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersListResponse.ts b/packages/web-api/src/types/response/UsersListResponse.ts index 5365ed57e..88e87c08e 100644 --- a/packages/web-api/src/types/response/UsersListResponse.ts +++ b/packages/web-api/src/types/response/UsersListResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,104 +7,105 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersListResponse = WebAPICallResult & { - arg?: string; - cache_ts?: number; - error?: string; - members?: Member[]; - needed?: string; - offset?: string; - ok?: boolean; - provided?: string; + arg?: string; + cache_ts?: number; + error?: string; + members?: Member[]; + needed?: string; + offset?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Member { - color?: string; - deleted?: boolean; - enterprise_user?: EnterpriseUser; - has_2fa?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_connector_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_ultra_restricted?: boolean; - is_workflow_bot?: boolean; - locale?: string; - name?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - two_factor_type?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + enterprise_user?: EnterpriseUser; + has_2fa?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_connector_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + is_workflow_bot?: boolean; + locale?: string; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + two_factor_type?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface EnterpriseUser { - enterprise_id?: string; - enterprise_name?: string; - id?: string; - is_admin?: boolean; - is_owner?: boolean; + enterprise_id?: string; + enterprise_name?: string; + id?: string; + is_admin?: boolean; + is_owner?: boolean; is_primary_owner?: boolean; - teams?: string[]; + teams?: string[]; } export interface Profile { - always_active?: boolean; - api_app_id?: string; - avatar_hash?: string; - bot_id?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: Fields; - first_name?: string; - guest_expiration_ts?: number; - guest_invited_by?: string; - huddle_state?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: Fields; + first_name?: string; + guest_expiration_ts?: number; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } -export type Fields = {}; +export interface Fields { +} export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts b/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts index fb1829ba4..72edba818 100644 --- a/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts +++ b/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersLookupByEmailResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - user?: User; + user?: User; }; export interface ResponseMetadata { @@ -23,67 +22,67 @@ export interface ResponseMetadata { } export interface User { - color?: string; - deleted?: boolean; - has_2fa?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_ultra_restricted?: boolean; - name?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + has_2fa?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface Profile { - avatar_hash?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - first_name?: string; - guest_invited_by?: string; - huddle_state?: string; + avatar_hash?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + first_name?: string; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersProfileGetResponse.ts b/packages/web-api/src/types/response/UsersProfileGetResponse.ts index 957231a74..72ae4357e 100644 --- a/packages/web-api/src/types/response/UsersProfileGetResponse.ts +++ b/packages/web-api/src/types/response/UsersProfileGetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,57 +7,57 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersProfileGetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - avatar_hash?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: { [key: string]: Field }; - first_name?: string; - huddle_state?: string; + avatar_hash?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: { [key: string]: Field }; + first_name?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + title?: string; } export interface Field { - alt?: string; + alt?: string; label?: string; value?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersProfileSetResponse.ts b/packages/web-api/src/types/response/UsersProfileSetResponse.ts index ba65ece3a..e54e9c2f8 100644 --- a/packages/web-api/src/types/response/UsersProfileSetResponse.ts +++ b/packages/web-api/src/types/response/UsersProfileSetResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,57 +7,57 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersProfileSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; username?: string; }; export interface Profile { - avatar_hash?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: { [key: string]: Field }; - first_name?: string; - huddle_state?: string; + avatar_hash?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: { [key: string]: Field }; + first_name?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + title?: string; } export interface Field { - alt?: string; + alt?: string; value?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersSetActiveResponse.ts b/packages/web-api/src/types/response/UsersSetActiveResponse.ts index d3252658d..2a9cb8820 100644 --- a/packages/web-api/src/types/response/UsersSetActiveResponse.ts +++ b/packages/web-api/src/types/response/UsersSetActiveResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersSetActiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/UsersSetPhotoResponse.ts b/packages/web-api/src/types/response/UsersSetPhotoResponse.ts index 1c273a88c..11268ed52 100644 --- a/packages/web-api/src/types/response/UsersSetPhotoResponse.ts +++ b/packages/web-api/src/types/response/UsersSetPhotoResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,23 +7,23 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersSetPhotoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - avatar_hash?: string; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; + avatar_hash?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; image_original?: string; } diff --git a/packages/web-api/src/types/response/UsersSetPresenceResponse.ts b/packages/web-api/src/types/response/UsersSetPresenceResponse.ts index 2bd4955e2..4225291e5 100644 --- a/packages/web-api/src/types/response/UsersSetPresenceResponse.ts +++ b/packages/web-api/src/types/response/UsersSetPresenceResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type UsersSetPresenceResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ViewsOpenResponse.ts b/packages/web-api/src/types/response/ViewsOpenResponse.ts index 813ebe4d5..da12b569b 100644 --- a/packages/web-api/src/types/response/ViewsOpenResponse.ts +++ b/packages/web-api/src/types/response/ViewsOpenResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ViewsOpenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -106,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -157,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -237,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -287,12 +286,13 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export type State = {}; +export interface State { +} diff --git a/packages/web-api/src/types/response/ViewsPublishResponse.ts b/packages/web-api/src/types/response/ViewsPublishResponse.ts index e9f3fc753..cae852ed0 100644 --- a/packages/web-api/src/types/response/ViewsPublishResponse.ts +++ b/packages/web-api/src/types/response/ViewsPublishResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ViewsPublishResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -106,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -157,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -237,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -287,12 +286,13 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export type State = {}; +export interface State { +} diff --git a/packages/web-api/src/types/response/ViewsPushResponse.ts b/packages/web-api/src/types/response/ViewsPushResponse.ts index 056536cdf..3d83ccc10 100644 --- a/packages/web-api/src/types/response/ViewsPushResponse.ts +++ b/packages/web-api/src/types/response/ViewsPushResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ViewsPushResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -106,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -157,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -237,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -287,12 +286,13 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export type State = {}; +export interface State { +} diff --git a/packages/web-api/src/types/response/ViewsUpdateResponse.ts b/packages/web-api/src/types/response/ViewsUpdateResponse.ts index 7de19bf79..a0beb221b 100644 --- a/packages/web-api/src/types/response/ViewsUpdateResponse.ts +++ b/packages/web-api/src/types/response/ViewsUpdateResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ViewsUpdateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -106,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -157,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -237,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -287,12 +286,13 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export type State = {}; +export interface State { +} diff --git a/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts b/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts index 717f73928..250adf7a4 100644 --- a/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts +++ b/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type WorkflowsStepCompletedResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts b/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts index f203382fb..42e8e5c70 100644 --- a/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts +++ b/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type WorkflowsStepFailedResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts b/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts index de11fa37a..fc77a65f1 100644 --- a/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts +++ b/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts @@ -1,4 +1,3 @@ -/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // @@ -8,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import type { WebAPICallResult } from '../../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type WorkflowsUpdateStepResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/index.ts b/packages/web-api/src/types/response/index.ts index 8b621daeb..2f97b15bf 100644 --- a/packages/web-api/src/types/response/index.ts +++ b/packages/web-api/src/types/response/index.ts @@ -1,9 +1,4 @@ -export { - AdminAnalyticsGetFileResponse, - AdminAnalyticsMemberDetails, - AdminAnalyticsPublicChannelDetails, - AdminAnalyticsPublicChannelMetadataDetails, -} from './AdminAnalyticsGetFileResponse'; +export { AdminAnalyticsGetFileResponse, AdminAnalyticsMemberDetails, AdminAnalyticsPublicChannelDetails, AdminAnalyticsPublicChannelMetadataDetails } from './AdminAnalyticsGetFileResponse'; export { AdminAppsActivitiesListResponse } from './AdminAppsActivitiesListResponse'; export { AdminAppsApproveResponse } from './AdminAppsApproveResponse'; export { AdminAppsApprovedListResponse } from './AdminAppsApprovedListResponse'; @@ -116,6 +111,9 @@ export { AppsPermissionsScopesListResponse } from './AppsPermissionsScopesListRe export { AppsPermissionsUsersListResponse } from './AppsPermissionsUsersListResponse'; export { AppsPermissionsUsersRequestResponse } from './AppsPermissionsUsersRequestResponse'; export { AppsUninstallResponse } from './AppsUninstallResponse'; +export { AssistantThreadsSetStatusResponse } from './AssistantThreadsSetStatusResponse'; +export { AssistantThreadsSetSuggestedPromptsResponse } from './AssistantThreadsSetSuggestedPromptsResponse'; +export { AssistantThreadsSetTitleResponse } from './AssistantThreadsSetTitleResponse'; export { AuthRevokeResponse } from './AuthRevokeResponse'; export { AuthTeamsListResponse } from './AuthTeamsListResponse'; export { AuthTestResponse } from './AuthTestResponse'; From cfaf1d6630004bd5c6d0215ddd1ccd1399952f0f Mon Sep 17 00:00:00 2001 From: Alissa Renz Date: Mon, 16 Sep 2024 22:23:49 -0700 Subject: [PATCH 5/6] Run linter to undo previous styling changes --- packages/web-api/package.json | 16 +- packages/web-api/src/methods.ts | 23 +- packages/web-api/src/types/request/index.ts | 6 +- .../AdminAppsActivitiesListResponse.ts | 101 +- .../response/AdminAppsApproveResponse.ts | 10 +- .../response/AdminAppsApprovedListResponse.ts | 74 +- .../AdminAppsClearResolutionResponse.ts | 10 +- .../response/AdminAppsConfigLookupResponse.ts | 18 +- .../response/AdminAppsConfigSetResponse.ts | 8 +- .../AdminAppsRequestsCancelResponse.ts | 10 +- .../response/AdminAppsRequestsListResponse.ts | 84 +- .../response/AdminAppsRestrictResponse.ts | 10 +- .../AdminAppsRestrictedListResponse.ts | 74 +- .../response/AdminAppsUninstallResponse.ts | 10 +- .../AdminAuthPolicyAssignEntitiesResponse.ts | 10 +- .../AdminAuthPolicyGetEntitiesResponse.ts | 16 +- .../AdminAuthPolicyRemoveEntitiesResponse.ts | 10 +- .../response/AdminBarriersCreateResponse.ts | 24 +- .../response/AdminBarriersDeleteResponse.ts | 8 +- .../response/AdminBarriersListResponse.ts | 20 +- .../response/AdminBarriersUpdateResponse.ts | 22 +- .../AdminConversationsArchiveResponse.ts | 8 +- .../AdminConversationsBulkArchiveResponse.ts | 16 +- .../AdminConversationsBulkDeleteResponse.ts | 16 +- .../AdminConversationsBulkMoveResponse.ts | 16 +- ...inConversationsConvertToPrivateResponse.ts | 8 +- ...minConversationsConvertToPublicResponse.ts | 10 +- .../AdminConversationsCreateResponse.ts | 12 +- .../AdminConversationsDeleteResponse.ts | 8 +- ...inConversationsDisconnectSharedResponse.ts | 8 +- ...istOriginalConnectedChannelInfoResponse.ts | 8 +- ...nversationsGetConversationPrefsResponse.ts | 20 +- ...ConversationsGetCustomRetentionResponse.ts | 12 +- .../AdminConversationsGetTeamsResponse.ts | 8 +- .../AdminConversationsInviteResponse.ts | 10 +- .../AdminConversationsLookupResponse.ts | 12 +- ...versationsRemoveCustomRetentionResponse.ts | 8 +- .../AdminConversationsRenameResponse.ts | 8 +- ...ersationsRestrictAccessAddGroupResponse.ts | 10 +- ...sationsRestrictAccessListGroupsResponse.ts | 12 +- ...ationsRestrictAccessRemoveGroupResponse.ts | 10 +- .../AdminConversationsSearchResponse.ts | 110 +- ...nversationsSetConversationPrefsResponse.ts | 8 +- ...ConversationsSetCustomRetentionResponse.ts | 8 +- .../AdminConversationsSetTeamsResponse.ts | 10 +- .../AdminConversationsUnarchiveResponse.ts | 8 +- .../AdminConversationsWhitelistAddResponse.ts | 12 +- ...telistListGroupsLinkedToChannelResponse.ts | 14 +- ...minConversationsWhitelistRemoveResponse.ts | 12 +- .../response/AdminEmojiAddAliasResponse.ts | 10 +- .../types/response/AdminEmojiAddResponse.ts | 10 +- .../types/response/AdminEmojiListResponse.ts | 16 +- .../response/AdminEmojiRemoveResponse.ts | 10 +- .../response/AdminEmojiRenameResponse.ts | 10 +- .../response/AdminFunctionsListResponse.ts | 44 +- ...AdminFunctionsPermissionsLookupResponse.ts | 29 +- .../AdminFunctionsPermissionsSetResponse.ts | 10 +- .../AdminInviteRequestsApproveResponse.ts | 8 +- ...AdminInviteRequestsApprovedListResponse.ts | 42 +- .../AdminInviteRequestsDeniedListResponse.ts | 28 +- .../AdminInviteRequestsDenyResponse.ts | 8 +- .../AdminInviteRequestsListResponse.ts | 26 +- .../AdminRolesAddAssignmentsResponse.ts | 12 +- .../AdminRolesListAssignmentsResponse.ts | 20 +- .../AdminRolesRemoveAssignmentsResponse.ts | 8 +- .../response/AdminTeamsAdminsListResponse.ts | 12 +- .../response/AdminTeamsCreateResponse.ts | 12 +- .../types/response/AdminTeamsListResponse.ts | 22 +- .../response/AdminTeamsOwnersListResponse.ts | 12 +- .../AdminTeamsSettingsInfoResponse.ts | 48 +- ...TeamsSettingsSetDefaultChannelsResponse.ts | 10 +- ...dminTeamsSettingsSetDescriptionResponse.ts | 8 +- ...TeamsSettingsSetDiscoverabilityResponse.ts | 8 +- .../AdminTeamsSettingsSetIconResponse.ts | 10 +- .../AdminTeamsSettingsSetNameResponse.ts | 8 +- .../AdminUsergroupsAddChannelsResponse.ts | 8 +- .../AdminUsergroupsAddTeamsResponse.ts | 8 +- .../AdminUsergroupsListChannelsResponse.ts | 74 +- .../AdminUsergroupsRemoveChannelsResponse.ts | 8 +- .../response/AdminUsersAssignResponse.ts | 8 +- .../response/AdminUsersInviteResponse.ts | 10 +- .../types/response/AdminUsersListResponse.ts | 46 +- .../response/AdminUsersRemoveResponse.ts | 8 +- .../AdminUsersSessionClearSettingsResponse.ts | 8 +- .../AdminUsersSessionGetSettingsResponse.ts | 16 +- .../AdminUsersSessionInvalidateResponse.ts | 10 +- .../response/AdminUsersSessionListResponse.ts | 28 +- .../AdminUsersSessionResetBulkResponse.ts | 8 +- .../AdminUsersSessionResetResponse.ts | 8 +- .../AdminUsersSessionSetSettingsResponse.ts | 8 +- .../response/AdminUsersSetAdminResponse.ts | 8 +- .../AdminUsersSetExpirationResponse.ts | 8 +- .../response/AdminUsersSetOwnerResponse.ts | 8 +- .../response/AdminUsersSetRegularResponse.ts | 8 +- ...nUsersUnsupportedVersionsExportResponse.ts | 8 +- .../AdminWorkflowsCollaboratorsAddResponse.ts | 16 +- ...minWorkflowsCollaboratorsRemoveResponse.ts | 14 +- ...AdminWorkflowsPermissionsLookupResponse.ts | 20 +- .../response/AdminWorkflowsSearchResponse.ts | 72 +- .../AdminWorkflowsUnpublishResponse.ts | 10 +- .../src/types/response/ApiTestResponse.ts | 12 +- .../response/AppsConnectionsOpenResponse.ts | 10 +- .../AppsEventAuthorizationsListResponse.ts | 18 +- .../response/AppsManifestCreateResponse.ts | 30 +- .../response/AppsManifestDeleteResponse.ts | 8 +- .../response/AppsManifestExportResponse.ts | 100 +- .../response/AppsManifestUpdateResponse.ts | 12 +- .../response/AppsManifestValidateResponse.ts | 18 +- .../response/AppsPermissionsInfoResponse.ts | 8 +- .../AppsPermissionsRequestResponse.ts | 8 +- .../AppsPermissionsResourcesListResponse.ts | 8 +- .../AppsPermissionsScopesListResponse.ts | 8 +- .../AppsPermissionsUsersListResponse.ts | 8 +- .../AppsPermissionsUsersRequestResponse.ts | 8 +- .../types/response/AppsUninstallResponse.ts | 10 +- .../AssistantThreadsSetStatusResponse.ts | 10 +- ...stantThreadsSetSuggestedPromptsResponse.ts | 10 +- .../AssistantThreadsSetTitleResponse.ts | 10 +- .../src/types/response/AuthRevokeResponse.ts | 8 +- .../types/response/AuthTeamsListResponse.ts | 28 +- .../src/types/response/AuthTestResponse.ts | 30 +- .../types/response/BookmarksAddResponse.ts | 40 +- .../types/response/BookmarksEditResponse.ts | 40 +- .../types/response/BookmarksListResponse.ts | 40 +- .../types/response/BookmarksRemoveResponse.ts | 10 +- .../src/types/response/BotsInfoResponse.ts | 18 +- .../src/types/response/CallsAddResponse.ts | 32 +- .../src/types/response/CallsEndResponse.ts | 34 +- .../src/types/response/CallsInfoResponse.ts | 32 +- .../response/CallsParticipantsAddResponse.ts | 32 +- .../CallsParticipantsRemoveResponse.ts | 32 +- .../src/types/response/CallsUpdateResponse.ts | 32 +- .../response/CanvasesAccessDeleteResponse.ts | 17 +- .../response/CanvasesAccessSetResponse.ts | 17 +- .../types/response/CanvasesCreateResponse.ts | 14 +- .../types/response/CanvasesDeleteResponse.ts | 13 +- .../types/response/CanvasesEditResponse.ts | 12 +- .../CanvasesSectionsLookupResponse.ts | 12 +- .../types/response/ChannelsArchiveResponse.ts | 8 +- .../types/response/ChannelsCreateResponse.ts | 56 +- .../types/response/ChannelsHistoryResponse.ts | 480 +-- .../types/response/ChannelsInfoResponse.ts | 374 +- .../types/response/ChannelsInviteResponse.ts | 66 +- .../types/response/ChannelsJoinResponse.ts | 66 +- .../types/response/ChannelsKickResponse.ts | 8 +- .../types/response/ChannelsLeaveResponse.ts | 8 +- .../types/response/ChannelsListResponse.ts | 58 +- .../types/response/ChannelsMarkResponse.ts | 8 +- .../types/response/ChannelsRenameResponse.ts | 48 +- .../types/response/ChannelsRepliesResponse.ts | 50 +- .../response/ChannelsSetPurposeResponse.ts | 10 +- .../response/ChannelsSetTopicResponse.ts | 10 +- .../response/ChannelsUnarchiveResponse.ts | 8 +- .../src/types/response/ChatDeleteResponse.ts | 12 +- .../ChatDeleteScheduledMessageResponse.ts | 8 +- .../response/ChatGetPermalinkResponse.ts | 12 +- .../types/response/ChatMeMessageResponse.ts | 12 +- .../response/ChatPostEphemeralResponse.ts | 10 +- .../types/response/ChatPostMessageResponse.ts | 1895 +++++---- .../response/ChatScheduleMessageResponse.ts | 999 +++-- .../ChatScheduledMessagesListResponse.ts | 20 +- .../src/types/response/ChatUnfurlResponse.ts | 8 +- .../src/types/response/ChatUpdateResponse.ts | 1011 +++-- ...ConversationsAcceptSharedInviteResponse.ts | 16 +- ...onversationsApproveSharedInviteResponse.ts | 8 +- .../response/ConversationsArchiveResponse.ts | 8 +- .../ConversationsCanvasesCreateResponse.ts | 14 +- .../response/ConversationsCloseResponse.ts | 12 +- .../response/ConversationsCreateResponse.ts | 76 +- ...onversationsDeclineSharedInviteResponse.ts | 8 +- ...onsExternalInvitePermissionsSetResponse.ts | 8 +- .../response/ConversationsHistoryResponse.ts | 1921 +++++---- .../response/ConversationsInfoResponse.ts | 90 +- .../response/ConversationsInviteResponse.ts | 78 +- .../ConversationsInviteSharedResponse.ts | 16 +- .../response/ConversationsJoinResponse.ts | 90 +- .../response/ConversationsKickResponse.ts | 8 +- .../response/ConversationsLeaveResponse.ts | 8 +- ...ConversationsListConnectInvitesResponse.ts | 158 +- .../response/ConversationsListResponse.ts | 100 +- .../response/ConversationsMarkResponse.ts | 8 +- .../response/ConversationsMembersResponse.ts | 12 +- .../response/ConversationsOpenResponse.ts | 954 ++--- .../response/ConversationsRenameResponse.ts | 72 +- .../response/ConversationsRepliesResponse.ts | 1871 +++++---- ...tionsRequestSharedInviteApproveResponse.ts | 10 +- ...rsationsRequestSharedInviteDenyResponse.ts | 10 +- .../ConversationsSetPurposeResponse.ts | 66 +- .../response/ConversationsSetTopicResponse.ts | 66 +- .../ConversationsUnarchiveResponse.ts | 8 +- .../src/types/response/DialogOpenResponse.ts | 12 +- .../src/types/response/DndEndDndResponse.ts | 8 +- .../types/response/DndEndSnoozeResponse.ts | 16 +- .../src/types/response/DndInfoResponse.ts | 14 +- .../types/response/DndSetSnoozeResponse.ts | 16 +- .../src/types/response/DndTeamInfoResponse.ts | 14 +- .../src/types/response/EmojiListResponse.ts | 18 +- .../response/FilesCommentsAddResponse.ts | 10 +- .../response/FilesCommentsDeleteResponse.ts | 8 +- .../response/FilesCommentsEditResponse.ts | 20 +- .../FilesCompleteUploadExternalResponse.ts | 138 +- .../src/types/response/FilesDeleteResponse.ts | 8 +- .../FilesGetUploadURLExternalResponse.ts | 14 +- .../src/types/response/FilesInfoResponse.ts | 746 ++-- .../src/types/response/FilesListResponse.ts | 734 ++-- .../types/response/FilesRemoteAddResponse.ts | 730 ++-- .../types/response/FilesRemoteInfoResponse.ts | 730 ++-- .../types/response/FilesRemoteListResponse.ts | 732 ++-- .../response/FilesRemoteRemoveResponse.ts | 8 +- .../response/FilesRemoteShareResponse.ts | 730 ++-- .../response/FilesRemoteUpdateResponse.ts | 730 ++-- .../response/FilesRevokePublicURLResponse.ts | 730 ++-- .../response/FilesSharedPublicURLResponse.ts | 730 ++-- .../src/types/response/FilesUploadResponse.ts | 730 ++-- .../FunctionsCompleteErrorResponse.ts | 8 +- .../FunctionsCompleteSuccessResponse.ts | 8 +- .../types/response/GroupsArchiveResponse.ts | 12 +- .../src/types/response/GroupsCloseResponse.ts | 8 +- .../response/GroupsCreateChildResponse.ts | 58 +- .../types/response/GroupsCreateResponse.ts | 48 +- .../types/response/GroupsHistoryResponse.ts | 26 +- .../src/types/response/GroupsInfoResponse.ts | 56 +- .../types/response/GroupsInviteResponse.ts | 58 +- .../src/types/response/GroupsKickResponse.ts | 12 +- .../src/types/response/GroupsLeaveResponse.ts | 12 +- .../src/types/response/GroupsListResponse.ts | 46 +- .../src/types/response/GroupsMarkResponse.ts | 12 +- .../src/types/response/GroupsOpenResponse.ts | 16 +- .../types/response/GroupsRenameResponse.ts | 38 +- .../types/response/GroupsRepliesResponse.ts | 52 +- .../response/GroupsSetPurposeResponse.ts | 14 +- .../types/response/GroupsSetTopicResponse.ts | 14 +- .../types/response/GroupsUnarchiveResponse.ts | 12 +- .../src/types/response/ImCloseResponse.ts | 12 +- .../src/types/response/ImHistoryResponse.ts | 160 +- .../src/types/response/ImListResponse.ts | 32 +- .../src/types/response/ImMarkResponse.ts | 12 +- .../src/types/response/ImOpenResponse.ts | 18 +- .../src/types/response/ImRepliesResponse.ts | 52 +- .../response/MigrationExchangeResponse.ts | 18 +- .../src/types/response/MpimCloseResponse.ts | 12 +- .../src/types/response/MpimHistoryResponse.ts | 56 +- .../src/types/response/MpimListResponse.ts | 44 +- .../src/types/response/MpimMarkResponse.ts | 12 +- .../src/types/response/MpimOpenResponse.ts | 74 +- .../src/types/response/MpimRepliesResponse.ts | 52 +- .../src/types/response/OauthAccessResponse.ts | 54 +- .../src/types/response/OauthTokenResponse.ts | 10 +- .../types/response/OauthV2AccessResponse.ts | 52 +- .../types/response/OauthV2ExchangeResponse.ts | 54 +- .../response/OpenIDConnectTokenResponse.ts | 20 +- .../response/OpenIDConnectUserInfoResponse.ts | 70 +- .../src/types/response/PinsAddResponse.ts | 8 +- .../src/types/response/PinsListResponse.ts | 738 ++-- .../src/types/response/PinsRemoveResponse.ts | 8 +- .../types/response/ReactionsAddResponse.ts | 8 +- .../types/response/ReactionsGetResponse.ts | 997 +++-- .../types/response/ReactionsListResponse.ts | 1891 +++++---- .../types/response/ReactionsRemoveResponse.ts | 8 +- .../types/response/RemindersAddResponse.ts | 24 +- .../response/RemindersCompleteResponse.ts | 8 +- .../types/response/RemindersDeleteResponse.ts | 8 +- .../types/response/RemindersInfoResponse.ts | 20 +- .../types/response/RemindersListResponse.ts | 28 +- .../src/types/response/RtmConnectResponse.ts | 20 +- .../src/types/response/RtmStartResponse.ts | 3645 ++++++++--------- .../src/types/response/SearchAllResponse.ts | 2127 +++++----- .../src/types/response/SearchFilesResponse.ts | 2041 +++++---- .../types/response/SearchMessagesResponse.ts | 1907 +++++---- .../src/types/response/StarsAddResponse.ts | 8 +- .../src/types/response/StarsListResponse.ts | 1106 ++--- .../src/types/response/StarsRemoveResponse.ts | 8 +- .../types/response/TeamAccessLogsResponse.ts | 32 +- .../response/TeamBillableInfoResponse.ts | 12 +- .../types/response/TeamBillingInfoResponse.ts | 10 +- .../TeamExternalTeamsDisconnectResponse.ts | 10 +- .../response/TeamExternalTeamsListResponse.ts | 126 +- .../src/types/response/TeamInfoResponse.ts | 50 +- .../response/TeamIntegrationLogsResponse.ts | 44 +- .../response/TeamPreferencesListResponse.ts | 18 +- .../types/response/TeamProfileGetResponse.ts | 50 +- .../response/ToolingTokensRotateResponse.ts | 22 +- .../response/UsergroupsCreateResponse.ts | 46 +- .../response/UsergroupsDisableResponse.ts | 48 +- .../response/UsergroupsEnableResponse.ts | 46 +- .../types/response/UsergroupsListResponse.ts | 48 +- .../response/UsergroupsUpdateResponse.ts | 46 +- .../response/UsergroupsUsersListResponse.ts | 10 +- .../response/UsergroupsUsersUpdateResponse.ts | 46 +- .../response/UsersConversationsResponse.ts | 106 +- .../response/UsersDeletePhotoResponse.ts | 8 +- ...UsersDiscoverableContactsLookupResponse.ts | 12 +- .../response/UsersGetPresenceResponse.ts | 22 +- .../types/response/UsersIdentityResponse.ts | 30 +- .../src/types/response/UsersInfoResponse.ts | 144 +- .../src/types/response/UsersListResponse.ts | 159 +- .../response/UsersLookupByEmailResponse.ts | 120 +- .../types/response/UsersProfileGetResponse.ts | 76 +- .../types/response/UsersProfileSetResponse.ts | 76 +- .../types/response/UsersSetActiveResponse.ts | 8 +- .../types/response/UsersSetPhotoResponse.ts | 26 +- .../response/UsersSetPresenceResponse.ts | 8 +- .../src/types/response/ViewsOpenResponse.ts | 361 +- .../types/response/ViewsPublishResponse.ts | 361 +- .../src/types/response/ViewsPushResponse.ts | 361 +- .../src/types/response/ViewsUpdateResponse.ts | 361 +- .../WorkflowsStepCompletedResponse.ts | 8 +- .../response/WorkflowsStepFailedResponse.ts | 8 +- .../response/WorkflowsUpdateStepResponse.ts | 8 +- packages/web-api/src/types/response/index.ts | 7 +- 310 files changed, 20021 insertions(+), 20036 deletions(-) diff --git a/packages/web-api/package.json b/packages/web-api/package.json index f0d90858a..4d4806f91 100644 --- a/packages/web-api/package.json +++ b/packages/web-api/package.json @@ -4,22 +4,10 @@ "description": "Official library for using the Slack Platform's Web API", "author": "Slack Technologies, LLC", "license": "MIT", - "keywords": [ - "slack", - "web-api", - "bot", - "client", - "http", - "api", - "proxy", - "rate-limiting", - "pagination" - ], + "keywords": ["slack", "web-api", "bot", "client", "http", "api", "proxy", "rate-limiting", "pagination"], "main": "dist/index.js", "types": "./dist/index.d.ts", - "files": [ - "dist/**/*" - ], + "files": ["dist/**/*"], "engines": { "node": ">= 18", "npm": ">= 8.6.0" diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index 40b4f7827..8675ba739 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -100,9 +100,6 @@ import type { AdminWorkflowsPermissionsLookupArguments, AdminWorkflowsSearchArguments, AdminWorkflowsUnpublishArguments, - AssistantThreadsSetStatusArguments, - AssistantThreadsSetSuggestedPromptsArguments, - AssistantThreadsSetTitleArguments, AppsConnectionsOpenArguments, AppsEventAuthorizationsListArguments, AppsManifestCreateArguments, @@ -111,6 +108,9 @@ import type { AppsManifestUpdateArguments, AppsManifestValidateArguments, AppsUninstallArguments, + AssistantThreadsSetStatusArguments, + AssistantThreadsSetSuggestedPromptsArguments, + AssistantThreadsSetTitleArguments, AuthRevokeArguments, AuthTeamsListArguments, AuthTestArguments, @@ -1344,18 +1344,27 @@ export abstract class Methods extends EventEmitter { * @description Set loading status to indicate that the app is building a response. * @see {@link https://api.slack.com/methods/assistant.threads.setStatus `assistant.threads.setStatus` API reference}. */ - setStatus: bindApiCall(this, 'assistant.threads.setStatus'), + setStatus: bindApiCall( + this, + 'assistant.threads.setStatus', + ), /** * @description Set suggested prompts for the user. Can suggest up to four prompts. * @see {@link https://api.slack.com/methods/assistant.threads.setSuggestedPrompts `assistant.threads.setSuggestedPrompts` API reference}. */ - setSuggestedPrompts: bindApiCall(this, 'assistant.threads.setSuggestedPrompts'), + setSuggestedPrompts: bindApiCall< + AssistantThreadsSetSuggestedPromptsArguments, + AssistantThreadsSetSuggestedPromptsResponse + >(this, 'assistant.threads.setSuggestedPrompts'), /** * @description Set the title of the thread. This is shown when a user views the app's chat history. * @see {@link https://api.slack.com/methods/assistant.threads.setTitle `assistant.threads.setTitle` API reference}. */ - setTitle: bindApiCall(this, 'assistant.threads.setTitle'), - } + setTitle: bindApiCall( + this, + 'assistant.threads.setTitle', + ), + }, }; public readonly apps = { diff --git a/packages/web-api/src/types/request/index.ts b/packages/web-api/src/types/request/index.ts index 948a4881b..ebef7cdac 100644 --- a/packages/web-api/src/types/request/index.ts +++ b/packages/web-api/src/types/request/index.ts @@ -162,7 +162,11 @@ export type { AppsUninstallArguments, } from './apps'; export type { APITestArguments } from './api'; -export type { AssistantThreadsSetStatusArguments, AssistantThreadsSetSuggestedPromptsArguments, AssistantThreadsSetTitleArguments } from './assistant'; +export type { + AssistantThreadsSetStatusArguments, + AssistantThreadsSetSuggestedPromptsArguments, + AssistantThreadsSetTitleArguments, +} from './assistant'; export type { AdminAnalyticsGetFileArguments } from './admin/analytics'; export type { AdminAppsActivitiesListArguments, diff --git a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts index 5efd7744e..bb4fe5e53 100644 --- a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts @@ -7,81 +7,80 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsActivitiesListResponse = WebAPICallResult & { - activities?: Activity[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + activities?: Activity[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Activity { - app_id?: string; - component_id?: string; + app_id?: string; + component_id?: string; component_type?: string; - created?: number; - enterprise_id?: string; - event_type?: string; - level?: string; - payload?: Payload; - source?: string; - team_id?: string; - trace_id?: string; + created?: number; + enterprise_id?: string; + event_type?: string; + level?: string; + payload?: Payload; + source?: string; + team_id?: string; + trace_id?: string; } export interface Payload { - action?: string; - actor?: string; - billing_reason?: string[]; - bot_user_id?: string; - bundle_size_kb?: number; - channel_id?: string; - current_step?: number; - datastore_name?: string; - details?: string; - error?: string; - exec_outcome?: string; + action?: string; + actor?: string; + billing_reason?: string[]; + bot_user_id?: string; + bundle_size_kb?: number; + channel_id?: string; + current_step?: number; + datastore_name?: string; + details?: string; + error?: string; + exec_outcome?: string; function_execution_id?: string; - function_id?: string; - function_name?: string; - function_type?: string; - inputs?: Inputs; - is_billing_excluded?: boolean; - log?: string; - request_type?: string; - team_id?: string; - total_steps?: number; - trigger?: Trigger; - type?: string; - user_id?: string; - workflow_name?: string; + function_id?: string; + function_name?: string; + function_type?: string; + inputs?: Inputs; + is_billing_excluded?: boolean; + log?: string; + request_type?: string; + team_id?: string; + total_steps?: number; + trigger?: Trigger; + type?: string; + user_id?: string; + workflow_name?: string; } -export interface Inputs { -} +export type Inputs = {}; export interface Trigger { - config?: Config; - id?: string; + config?: Config; + id?: string; trip_information?: TripInformation; - type?: string; + type?: string; } export interface Config { description?: string; - event_type?: string; - name?: string; - schema?: Inputs; + event_type?: string; + name?: string; + schema?: Inputs; } export interface TripInformation { channel_id?: string; - list_id?: string; + list_id?: string; message_ts?: string; - reaction?: string; - user_id?: string; + reaction?: string; + user_id?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminAppsApproveResponse.ts b/packages/web-api/src/types/response/AdminAppsApproveResponse.ts index 3054690eb..c2d5f5b02 100644 --- a/packages/web-api/src/types/response/AdminAppsApproveResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsApproveResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsApproveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts b/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts index 8730bf0e2..a03db2e7d 100644 --- a/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsApprovedListResponse.ts @@ -7,67 +7,67 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsApprovedListResponse = WebAPICallResult & { - approved_apps?: ApprovedApp[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + approved_apps?: ApprovedApp[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ApprovedApp { - app?: App; - date_updated?: number; + app?: App; + date_updated?: number; last_resolved_by?: LastResolvedBy; - scopes?: Scope[]; + scopes?: Scope[]; } export interface App { - additional_info?: string; - app_directory_url?: string; - app_homepage_url?: string; - description?: string; - help_url?: string; - icons?: Icons; - id?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; + description?: string; + help_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; - is_granular_bot_app?: boolean; - is_internal?: boolean; - name?: string; - privacy_policy_url?: string; + is_granular_bot_app?: boolean; + is_internal?: boolean; + name?: string; + privacy_policy_url?: string; } export interface Icons { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface LastResolvedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface Scope { - description?: string; + description?: string; is_sensitive?: boolean; - name?: string; - token_type?: string; + name?: string; + token_type?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts b/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts index 8fdefbd39..123b663a2 100644 --- a/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsClearResolutionResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsClearResolutionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts b/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts index 43d7fafda..181d06fe1 100644 --- a/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsConfigLookupResponse.ts @@ -7,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsConfigLookupResponse = WebAPICallResult & { - configs?: Config[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + configs?: Config[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Config { - app_id?: string; - domain_restrictions?: DomainRestrictions; + app_id?: string; + domain_restrictions?: DomainRestrictions; workflow_auth_strategy?: string; } export interface DomainRestrictions { emails?: string[]; - urls?: string[]; + urls?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts b/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts index f817c1081..a78a5da7c 100644 --- a/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsConfigSetResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsConfigSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts b/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts index 633ce8c02..cdbfb779a 100644 --- a/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRequestsCancelResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsRequestsCancelResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts b/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts index e9c215262..0cbb91c7e 100644 --- a/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRequestsListResponse.ts @@ -7,55 +7,55 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsRequestsListResponse = WebAPICallResult & { - app_requests?: AppRequest[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + app_requests?: AppRequest[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface AppRequest { - app?: App; - date_created?: number; - id?: string; + app?: App; + date_created?: number; + id?: string; is_user_app_collaborator?: boolean; - message?: string; - previous_resolution?: PreviousResolution; - scopes?: any[]; - team?: Team; - user?: User; + message?: string; + previous_resolution?: PreviousResolution; + scopes?: any[]; + team?: Team; + user?: User; } export interface App { - additional_info?: string; - app_directory_url?: string; - app_homepage_url?: string; - description?: string; - help_url?: string; - icons?: Icons; - id?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; + description?: string; + help_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; - is_granular_bot_app?: boolean; - is_internal?: boolean; - name?: string; - privacy_policy_url?: string; + is_granular_bot_app?: boolean; + is_internal?: boolean; + name?: string; + privacy_policy_url?: string; } export interface Icons { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } @@ -66,18 +66,18 @@ export interface PreviousResolution { export interface Team { domain?: string; - id?: string; - name?: string; + id?: string; + name?: string; } export interface User { email?: string; - id?: string; - name?: string; + id?: string; + name?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts b/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts index 1755908e8..333401c4f 100644 --- a/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRestrictResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsRestrictResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts b/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts index 43b520c97..28b699399 100644 --- a/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsRestrictedListResponse.ts @@ -7,67 +7,67 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsRestrictedListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - restricted_apps?: RestrictedApp[]; - warning?: string; + restricted_apps?: RestrictedApp[]; + warning?: string; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } export interface RestrictedApp { - app?: App; - date_updated?: number; + app?: App; + date_updated?: number; last_resolved_by?: LastResolvedBy; - scopes?: Scope[]; + scopes?: Scope[]; } export interface App { - additional_info?: string; - app_directory_url?: string; - app_homepage_url?: string; - description?: string; - help_url?: string; - icons?: Icons; - id?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; + description?: string; + help_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; - is_granular_bot_app?: boolean; - is_internal?: boolean; - name?: string; - privacy_policy_url?: string; + is_granular_bot_app?: boolean; + is_internal?: boolean; + name?: string; + privacy_policy_url?: string; } export interface Icons { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface LastResolvedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface Scope { - description?: string; + description?: string; is_sensitive?: boolean; - name?: string; - token_type?: string; + name?: string; + token_type?: string; } diff --git a/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts b/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts index d0991cbc0..df7ca0b57 100644 --- a/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsUninstallResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAppsUninstallResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts b/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts index 5af4cdfac..267d60626 100644 --- a/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts +++ b/packages/web-api/src/types/response/AdminAuthPolicyAssignEntitiesResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAuthPolicyAssignEntitiesResponse = WebAPICallResult & { entity_total_count?: number; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts b/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts index 9901353a1..9eaf1f170 100644 --- a/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts +++ b/packages/web-api/src/types/response/AdminAuthPolicyGetEntitiesResponse.ts @@ -7,18 +7,18 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAuthPolicyGetEntitiesResponse = WebAPICallResult & { - entities?: Entity[]; + entities?: Entity[]; entity_total_count?: number; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface Entity { - date_added?: number; - entity_id?: string; + date_added?: number; + entity_id?: string; entity_type?: string; } diff --git a/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts b/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts index 5495d1ce2..4924d0dab 100644 --- a/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts +++ b/packages/web-api/src/types/response/AdminAuthPolicyRemoveEntitiesResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminAuthPolicyRemoveEntitiesResponse = WebAPICallResult & { entity_total_count?: number; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts b/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts index d4c94c601..b339266c3 100644 --- a/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersCreateResponse.ts @@ -7,27 +7,27 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminBarriersCreateResponse = WebAPICallResult & { - barrier?: Barrier; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + barrier?: Barrier; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Barrier { barriered_from_usergroups?: Usergroup[]; - date_update?: number; - enterprise_id?: string; - id?: string; - primary_usergroup?: Usergroup; - restricted_subjects?: string[]; + date_update?: number; + enterprise_id?: string; + id?: string; + primary_usergroup?: Usergroup; + restricted_subjects?: string[]; } export interface Usergroup { - id?: string; + id?: string; name?: string; } diff --git a/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts b/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts index 07461e239..d0a42d1a6 100644 --- a/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersDeleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminBarriersDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminBarriersListResponse.ts b/packages/web-api/src/types/response/AdminBarriersListResponse.ts index 4a46183f8..9ccb88670 100644 --- a/packages/web-api/src/types/response/AdminBarriersListResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersListResponse.ts @@ -7,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminBarriersListResponse = WebAPICallResult & { barriers?: Barrier[]; - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Barrier { barriered_from_usergroups?: Usergroup[]; - date_update?: number; - enterprise_id?: string; - id?: string; - primary_usergroup?: Usergroup; - restricted_subjects?: string[]; + date_update?: number; + enterprise_id?: string; + id?: string; + primary_usergroup?: Usergroup; + restricted_subjects?: string[]; } export interface Usergroup { - id?: string; + id?: string; name?: string; } diff --git a/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts b/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts index 541ba11fc..2f4277044 100644 --- a/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts +++ b/packages/web-api/src/types/response/AdminBarriersUpdateResponse.ts @@ -7,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminBarriersUpdateResponse = WebAPICallResult & { - barrier?: Barrier; - error?: string; - needed?: string; - ok?: boolean; + barrier?: Barrier; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Barrier { barriered_from_usergroups?: Usergroup[]; - date_update?: number; - enterprise_id?: string; - id?: string; - primary_usergroup?: Usergroup; - restricted_subjects?: string[]; + date_update?: number; + enterprise_id?: string; + id?: string; + primary_usergroup?: Usergroup; + restricted_subjects?: string[]; } export interface Usergroup { - id?: string; + id?: string; name?: string; } diff --git a/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts b/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts index 886536917..2c738a6a0 100644 --- a/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsArchiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts b/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts index 842d22369..1608e1247 100644 --- a/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsBulkArchiveResponse.ts @@ -7,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsBulkArchiveResponse = WebAPICallResult & { - bulk_action_id?: string; - error?: string; - needed?: string; - not_added?: NotAdded[]; - ok?: boolean; - provided?: string; + bulk_action_id?: string; + error?: string; + needed?: string; + not_added?: NotAdded[]; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface NotAdded { channel_id?: string; - errors?: string[]; + errors?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts b/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts index 808346217..e790a0008 100644 --- a/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsBulkDeleteResponse.ts @@ -7,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsBulkDeleteResponse = WebAPICallResult & { - bulk_action_id?: string; - error?: string; - needed?: string; - not_added?: NotAdded[]; - ok?: boolean; - provided?: string; + bulk_action_id?: string; + error?: string; + needed?: string; + not_added?: NotAdded[]; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface NotAdded { channel_id?: string; - errors?: string[]; + errors?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts b/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts index d30794206..311e4d5f8 100644 --- a/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsBulkMoveResponse.ts @@ -7,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsBulkMoveResponse = WebAPICallResult & { - bulk_action_id?: string; - error?: string; - needed?: string; - not_added?: NotAdded[]; - ok?: boolean; - provided?: string; + bulk_action_id?: string; + error?: string; + needed?: string; + not_added?: NotAdded[]; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface NotAdded { channel_id?: string; - errors?: string[]; + errors?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts b/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts index 52474dd2c..58ef1a4b5 100644 --- a/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsConvertToPrivateResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsConvertToPrivateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts b/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts index 537b695a6..30dae6974 100644 --- a/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsConvertToPublicResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsConvertToPublicResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts b/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts index 26a1dd198..b33791d18 100644 --- a/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsCreateResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsCreateResponse = WebAPICallResult & { - channel_id?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel_id?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts b/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts index a2c1e4031..637a4c692 100644 --- a/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsDeleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts b/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts index e2b7c1116..cc02360f0 100644 --- a/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsDisconnectSharedResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsDisconnectSharedResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts b/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts index 5a848611e..6b7fd2bd6 100644 --- a/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsEkmListOriginalConnectedChannelInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts index 9e0dd363f..c17076636 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetConversationPrefsResponse.ts @@ -7,22 +7,22 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsGetConversationPrefsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - prefs?: Prefs; + error?: string; + needed?: string; + ok?: boolean; + prefs?: Prefs; provided?: string; }; export interface Prefs { - can_huddle?: CanHuddle; - can_thread?: CanThread; + can_huddle?: CanHuddle; + can_thread?: CanThread; enable_at_channel?: CanHuddle; - enable_at_here?: CanHuddle; - membership_limit?: MembershipLimit; - who_can_post?: CanThread; + enable_at_here?: CanHuddle; + membership_limit?: MembershipLimit; + who_can_post?: CanThread; } export interface CanHuddle { diff --git a/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts index 494b0bc3c..9d0a1a3ce 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetCustomRetentionResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsGetCustomRetentionResponse = WebAPICallResult & { - duration_days?: number; - error?: string; + duration_days?: number; + error?: string; is_policy_enabled?: boolean; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts b/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts index 75f6f12e5..9d6ef0136 100644 --- a/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsGetTeamsResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsGetTeamsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; team_ids?: string[]; }; diff --git a/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts b/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts index 9f0462774..c8acf08d5 100644 --- a/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsInviteResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsInviteResponse = WebAPICallResult & { - error?: string; + error?: string; failed_user_ids?: FailedUserids; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface FailedUserids { diff --git a/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts b/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts index 3008e206c..88b16526f 100644 --- a/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsLookupResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsLookupResponse = WebAPICallResult & { - channel_ids?: string[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel_ids?: string[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts b/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts index b71d95ef9..c35ecc452 100644 --- a/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRemoveCustomRetentionResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRemoveCustomRetentionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts b/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts index 842033ed4..7f7143fa3 100644 --- a/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRenameResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRenameResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts b/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts index 015ea2e91..834adf7c8 100644 --- a/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRestrictAccessAddGroupResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRestrictAccessAddGroupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts b/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts index 3a51d3451..da82bb48b 100644 --- a/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRestrictAccessListGroupsResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRestrictAccessListGroupsResponse = WebAPICallResult & { - error?: string; - group_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts b/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts index 41d02c145..76a446c3c 100644 --- a/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsRestrictAccessRemoveGroupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts b/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts index 546f6b639..6afd97347 100644 --- a/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSearchResponse.ts @@ -7,71 +7,71 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSearchResponse = WebAPICallResult & { - conversations?: Conversation[]; - error?: string; - needed?: string; - next_cursor?: string; - ok?: boolean; - provided?: string; + conversations?: Conversation[]; + error?: string; + needed?: string; + next_cursor?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - total_count?: number; + total_count?: number; }; export interface Conversation { - canvas?: ListsClass; - channel_email_addresses?: ChannelEmailAddress[]; - channel_manager_count?: number; - connected_limited_team_ids?: string[]; - connected_team_ids?: string[]; - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator_id?: string; - external_user_count?: number; - id?: string; - internal_team_ids?: string[]; - internal_team_ids_count?: number; + canvas?: ListsClass; + channel_email_addresses?: ChannelEmailAddress[]; + channel_manager_count?: number; + connected_limited_team_ids?: string[]; + connected_team_ids?: string[]; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator_id?: string; + external_user_count?: number; + id?: string; + internal_team_ids?: string[]; + internal_team_ids_count?: number; internal_team_ids_sample_team?: string; - is_archived?: boolean; - is_disconnect_in_progress?: boolean; - is_ext_shared?: boolean; - is_frozen?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - last_activity_ts?: number; - lists?: ListsClass; - member_count?: number; - name?: string; - pending_connected_team_ids?: string[]; - properties?: Properties; - purpose?: string; + is_archived?: boolean; + is_disconnect_in_progress?: boolean; + is_ext_shared?: boolean; + is_frozen?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + last_activity_ts?: number; + lists?: ListsClass; + member_count?: number; + name?: string; + pending_connected_team_ids?: string[]; + properties?: Properties; + purpose?: string; } export interface ListsClass { ownership_details?: OwnershipDetail[]; - total_count?: number; + total_count?: number; } export interface OwnershipDetail { - count?: number; + count?: number; team_id?: string; } export interface ChannelEmailAddress { - address?: string; + address?: string; conversation_id?: string; - date_created?: number; - icons?: Icons; - name?: string; - team_id?: string; - user_id?: string; + date_created?: number; + icons?: Icons; + name?: string; + team_id?: string; + user_id?: string; } export interface Icons { @@ -82,17 +82,17 @@ export interface Icons { export interface Properties { at_channel_restricted?: boolean; - at_here_restricted?: boolean; - canvas?: PropertiesCanvas; - huddles_restricted?: boolean; + at_here_restricted?: boolean; + canvas?: PropertiesCanvas; + huddles_restricted?: boolean; posting_restricted_to?: PostingRestrictedTo; - tabs?: Tab[]; + tabs?: Tab[]; threads_restricted_to?: ThreadsRestrictedTo; } export interface PropertiesCanvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } @@ -102,9 +102,9 @@ export interface PostingRestrictedTo { } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface ThreadsRestrictedTo { diff --git a/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts b/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts index 3997e97bb..f6d4d509d 100644 --- a/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSetConversationPrefsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSetConversationPrefsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts b/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts index 6bf406c89..18f529108 100644 --- a/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSetCustomRetentionResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSetCustomRetentionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts b/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts index 2b3199a84..b92e01600 100644 --- a/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsSetTeamsResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsSetTeamsResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts b/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts index 56868ebd4..0bc938903 100644 --- a/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsUnarchiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts b/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts index a5dea1ac5..f83f5373c 100644 --- a/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsWhitelistAddResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsWhitelistAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts b/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts index ed235fbc9..831e6235b 100644 --- a/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsWhitelistListGroupsLinkedToChannelResponse = WebAPICallResult & { - error?: string; - group_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts b/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts index 468d9bd73..dbecbba29 100644 --- a/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminConversationsWhitelistRemoveResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminConversationsWhitelistRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts b/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts index d84da9992..cd40272fd 100644 --- a/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiAddAliasResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminEmojiAddAliasResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminEmojiAddResponse.ts b/packages/web-api/src/types/response/AdminEmojiAddResponse.ts index e1c46fbe9..e0e2802b1 100644 --- a/packages/web-api/src/types/response/AdminEmojiAddResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiAddResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminEmojiAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminEmojiListResponse.ts b/packages/web-api/src/types/response/AdminEmojiListResponse.ts index 4826eed90..8fa0d095a 100644 --- a/packages/web-api/src/types/response/AdminEmojiListResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiListResponse.ts @@ -7,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminEmojiListResponse = WebAPICallResult & { - emoji?: { [key: string]: Emoji }; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + emoji?: { [key: string]: Emoji }; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Emoji { date_created?: number; - uploaded_by?: string; - url?: string; + uploaded_by?: string; + url?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts b/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts index 803f7bea4..16496df5c 100644 --- a/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiRemoveResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminEmojiRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts b/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts index e8683c272..cabb2c279 100644 --- a/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts +++ b/packages/web-api/src/types/response/AdminEmojiRenameResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminEmojiRenameResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts index ca6f206b5..c46f40c94 100644 --- a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts @@ -7,41 +7,41 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminFunctionsListResponse = WebAPICallResult & { - error?: string; - functions?: Function[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + functions?: Function[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Function { - app_id?: string; - callback_id?: string; - date_created?: number; - date_deleted?: number; - date_released?: number; - date_updated?: number; - description?: string; - form_enabled?: boolean; - id?: string; - input_parameters?: PutParameter[]; + app_id?: string; + callback_id?: string; + date_created?: number; + date_deleted?: number; + date_released?: number; + date_updated?: number; + description?: string; + form_enabled?: boolean; + id?: string; + input_parameters?: PutParameter[]; output_parameters?: PutParameter[]; - title?: string; - type?: string; + title?: string; + type?: string; } export interface PutParameter { description?: string; is_required?: boolean; - name?: string; - title?: string; - type?: string; + name?: string; + title?: string; + type?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } diff --git a/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts b/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts index 45fdbe8aa..e61e1d2fb 100644 --- a/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsPermissionsLookupResponse.ts @@ -7,37 +7,36 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminFunctionsPermissionsLookupResponse = WebAPICallResult & { - error?: string; - errors?: Errors; - needed?: string; - ok?: boolean; - permissions?: { [key: string]: Permission }; - provided?: string; + error?: string; + errors?: Errors; + needed?: string; + ok?: boolean; + permissions?: { [key: string]: Permission }; + provided?: string; response_metadata?: ResponseMetadata; }; -export interface Errors { -} +export type Errors = {}; export interface Permission { allowed_by_admin?: AllowedByAdmin; allowed_entities?: AllowedEntities; - distribution?: AllowedByAdmin; + distribution?: AllowedByAdmin; } export interface AllowedByAdmin { - type?: string; + type?: string; user_ids?: string[]; } export interface AllowedEntities { channel_ids?: string[]; - org_ids?: string[]; - team_ids?: string[]; - type?: string; - user_ids?: string[]; + org_ids?: string[]; + team_ids?: string[]; + type?: string; + user_ids?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts b/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts index 24c77b044..234a90bb7 100644 --- a/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsPermissionsSetResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminFunctionsPermissionsSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts index 11f9fbe25..5b9ff605f 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsApproveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsApproveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts index 47b325f43..999f7621d 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsApprovedListResponse.ts @@ -7,49 +7,49 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsApprovedListResponse = WebAPICallResult & { approved_requests?: ApprovedRequest[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface ApprovedRequest { - approved_by?: ApprovedBy; - invite?: Invite; + approved_by?: ApprovedBy; + invite?: Invite; invite_request?: InviteRequest; } export interface ApprovedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface Invite { - date_created?: number; - email?: string; - id?: string; + date_created?: number; + email?: string; + id?: string; invite_preferences?: InvitePreferences; - inviter_id?: string; - is_bouncing?: boolean; + inviter_id?: string; + is_bouncing?: boolean; } export interface InvitePreferences { - channel_ids?: string[]; - is_domain_matched?: boolean; - is_restricted?: boolean; + channel_ids?: string[]; + is_domain_matched?: boolean; + is_restricted?: boolean; is_ultra_restricted?: boolean; } export interface InviteRequest { - channel_ids?: string[]; - date_created?: number; - email?: string; - id?: string; - invite_type?: string; + channel_ids?: string[]; + date_created?: number; + email?: string; + id?: string; + invite_type?: string; requester_ids?: string[]; } diff --git a/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts index 069a39a5d..ca8504b23 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsDeniedListResponse.ts @@ -7,34 +7,34 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsDeniedListResponse = WebAPICallResult & { - denied_requests?: DeniedRequest[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + denied_requests?: DeniedRequest[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface DeniedRequest { - denied_by?: DeniedBy; + denied_by?: DeniedBy; invite_request?: InviteRequest; } export interface DeniedBy { - actor_id?: string; + actor_id?: string; actor_type?: string; } export interface InviteRequest { - channel_ids?: string[]; - date_created?: number; - email?: string; - id?: string; - invite_type?: string; + channel_ids?: string[]; + date_created?: number; + email?: string; + id?: string; + invite_type?: string; request_reason?: string; - requester_ids?: string[]; + requester_ids?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts index 233c6b806..87e27c8e3 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsDenyResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsDenyResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts b/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts index 2d8f42e5a..28e7bc88a 100644 --- a/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts +++ b/packages/web-api/src/types/response/AdminInviteRequestsListResponse.ts @@ -7,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminInviteRequestsListResponse = WebAPICallResult & { - error?: string; - invite_requests?: InviteRequest[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + invite_requests?: InviteRequest[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface InviteRequest { - channel_ids?: string[]; - date_created?: number; - date_expire?: number; - email?: string; - id?: string; - invite_type?: string; + channel_ids?: string[]; + date_created?: number; + date_expire?: number; + email?: string; + id?: string; + invite_type?: string; request_reason?: string; - requester_ids?: string[]; + requester_ids?: string[]; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts b/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts index 76e6661bd..0bd464814 100644 --- a/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts +++ b/packages/web-api/src/types/response/AdminRolesAddAssignmentsResponse.ts @@ -7,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminRolesAddAssignmentsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; rejected_users?: RejectedUser[]; }; export interface RejectedUser { error?: string; - id?: string; + id?: string; } diff --git a/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts b/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts index a1ad86d26..4d9d4c02c 100644 --- a/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts +++ b/packages/web-api/src/types/response/AdminRolesListAssignmentsResponse.ts @@ -7,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminRolesListAssignmentsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - role_assignments?: RoleAssignment[]; + role_assignments?: RoleAssignment[]; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } export interface RoleAssignment { date_create?: number; - entity_id?: string; - role_id?: string; - user_id?: string; + entity_id?: string; + role_id?: string; + user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts b/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts index c9b3af8ce..04ee6eaa3 100644 --- a/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts +++ b/packages/web-api/src/types/response/AdminRolesRemoveAssignmentsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminRolesRemoveAssignmentsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts b/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts index 7dd6a17d3..fdbafd6d6 100644 --- a/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsAdminsListResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsAdminsListResponse = WebAPICallResult & { - admin_ids?: string[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + admin_ids?: string[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts b/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts index e44a497b1..9ed2ef56d 100644 --- a/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsCreateResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsCreateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - team?: string; + team?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/AdminTeamsListResponse.ts b/packages/web-api/src/types/response/AdminTeamsListResponse.ts index f8f0f8fae..9daca1213 100644 --- a/packages/web-api/src/types/response/AdminTeamsListResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsListResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - teams?: Team[]; + teams?: Team[]; }; export interface ResponseMetadata { @@ -23,13 +23,13 @@ export interface ResponseMetadata { export interface Team { discoverability?: string; - id?: string; - name?: string; - primary_owner?: PrimaryOwner; - team_url?: string; + id?: string; + name?: string; + primary_owner?: PrimaryOwner; + team_url?: string; } export interface PrimaryOwner { - email?: string; + email?: string; user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts b/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts index 4d279e976..703fcffad 100644 --- a/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsOwnersListResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsOwnersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - owner_ids?: string[]; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + owner_ids?: string[]; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts index 9d44a6fad..d68aa6a3d 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsInfoResponse.ts @@ -7,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - team?: Team; + team?: Team; }; export interface Team { - avatar_base_url?: string; - default_channels?: string[]; - domain?: string; - email_domain?: string; + avatar_base_url?: string; + default_channels?: string[]; + domain?: string; + email_domain?: string; enterprise_domain?: string; - enterprise_id?: string; - enterprise_name?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - name?: string; - url?: string; + enterprise_id?: string; + enterprise_name?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + name?: string; + url?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; - image_default?: boolean; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; + image_default?: boolean; image_original?: string; } diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts index 28e4cf0b4..63799892f 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetDefaultChannelsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts index 6195770ff..6c85bbfe6 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetDescriptionResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetDescriptionResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts index 0f156ef32..c86a44b1c 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetDiscoverabilityResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts index f52a54921..660476125 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetIconResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetIconResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts b/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts index a9133f92f..485967d2e 100644 --- a/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts +++ b/packages/web-api/src/types/response/AdminTeamsSettingsSetNameResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminTeamsSettingsSetNameResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts index b1d46ea93..38e7a36bb 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsAddChannelsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsAddChannelsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts index 112bc20dd..83316fcd9 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsAddTeamsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsAddTeamsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts index a39c41bac..2ad5a1d65 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsListChannelsResponse.ts @@ -7,48 +7,48 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsListChannelsResponse = WebAPICallResult & { channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - date_connected?: number; - enterprise_id?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + date_connected?: number; + enterprise_id?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - properties?: Properties; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + properties?: Properties; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Properties { @@ -61,7 +61,7 @@ export interface RestrictedTo { } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts b/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts index b1b1cc2f7..0bb529d17 100644 --- a/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsergroupsRemoveChannelsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsergroupsRemoveChannelsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersAssignResponse.ts b/packages/web-api/src/types/response/AdminUsersAssignResponse.ts index 4366195b2..c2beb02f4 100644 --- a/packages/web-api/src/types/response/AdminUsersAssignResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersAssignResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersAssignResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersInviteResponse.ts b/packages/web-api/src/types/response/AdminUsersInviteResponse.ts index 03c343cd7..b61c3d935 100644 --- a/packages/web-api/src/types/response/AdminUsersInviteResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersInviteResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersInviteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminUsersListResponse.ts b/packages/web-api/src/types/response/AdminUsersListResponse.ts index 00f25d168..5be5073a5 100644 --- a/packages/web-api/src/types/response/AdminUsersListResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersListResponse.ts @@ -7,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - users?: User[]; + users?: User[]; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } export interface User { - date_created?: number; - email?: string; - expiration_ts?: number; - full_name?: string; - has_2fa?: boolean; - has_sso?: boolean; - id?: string; - is_active?: boolean; - is_admin?: boolean; - is_bot?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; + date_created?: number; + email?: string; + expiration_ts?: number; + full_name?: string; + has_2fa?: boolean; + has_sso?: boolean; + id?: string; + is_active?: boolean; + is_admin?: boolean; + is_bot?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; is_ultra_restricted?: boolean; - roles?: string[]; - username?: string; - workspaces?: string[]; + roles?: string[]; + username?: string; + workspaces?: string[]; } diff --git a/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts b/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts index 903d0ad39..6a1f28597 100644 --- a/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersRemoveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts index 47851f788..176a86e1e 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionClearSettingsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionClearSettingsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts index dd58d5e2d..b4e42196c 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionGetSettingsResponse.ts @@ -7,18 +7,18 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionGetSettingsResponse = WebAPICallResult & { - error?: string; - needed?: string; + error?: string; + needed?: string; no_settings_applied?: string[]; - ok?: boolean; - provided?: string; - session_settings?: SessionSetting[]; + ok?: boolean; + provided?: string; + session_settings?: SessionSetting[]; }; export interface SessionSetting { desktop_app_browser_quit?: boolean; - duration?: number; - user_id?: string; + duration?: number; + user_id?: string; } diff --git a/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts index a1df5db59..5662a798f 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionInvalidateResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionInvalidateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts index 1b4caf974..105ccc92c 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionListResponse.ts @@ -7,29 +7,29 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionListResponse = WebAPICallResult & { - active_sessions?: ActiveSession[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + active_sessions?: ActiveSession[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface ActiveSession { - created?: Created; - recent?: Created; + created?: Created; + recent?: Created; session_id?: number; - team_id?: string; - user_id?: string; + team_id?: string; + user_id?: string; } export interface Created { - device_hardware?: string; - ip?: string; - os?: string; - os_version?: string; + device_hardware?: string; + ip?: string; + os?: string; + os_version?: string; slack_client_version?: string; } diff --git a/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts index b1cfc1886..4255a5b43 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionResetBulkResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionResetBulkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts index b0ad7311c..6d0aa70e9 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionResetResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionResetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts b/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts index fb5ee8e20..e75a54d69 100644 --- a/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSessionSetSettingsResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSessionSetSettingsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts b/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts index 9e7469a02..19e76a6d4 100644 --- a/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetAdminResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetAdminResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts b/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts index da2c21fb6..ce7e44026 100644 --- a/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetExpirationResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetExpirationResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts b/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts index 5f9c77821..952ff5211 100644 --- a/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetOwnerResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetOwnerResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts b/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts index c30a4deb4..a6c0c762f 100644 --- a/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersSetRegularResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersSetRegularResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts b/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts index d22d6a821..09d9cd0de 100644 --- a/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersUnsupportedVersionsExportResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminUsersUnsupportedVersionsExportResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts index d50bc1fdf..496ab7723 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsAddResponse.ts @@ -7,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsCollaboratorsAddResponse = WebAPICallResult & { - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Error { - message?: string; - user?: string; + message?: string; + user?: string; workflow?: string; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts index 1264c3cdc..ac2e1916f 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsCollaboratorsRemoveResponse.ts @@ -7,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsCollaboratorsRemoveResponse = WebAPICallResult & { - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; provided?: string; }; export interface Error { - message?: string; - user?: string; + message?: string; + user?: string; workflow?: string; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts index 2a9b4ac18..8014b4b0a 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsPermissionsLookupResponse.ts @@ -7,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsPermissionsLookupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; permissions?: { [key: string]: Permission }; - provided?: string; + provided?: string; }; export interface Permission { - complete?: boolean; + complete?: boolean; who_can_run?: WhoCanRun; } export interface WhoCanRun { - channel_ids?: string[]; - org_ids?: string[]; + channel_ids?: string[]; + org_ids?: string[]; permission_type?: string; - team_ids?: string[]; - user_ids?: string[]; + team_ids?: string[]; + user_ids?: string[]; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts index f8199c072..08dc31881 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsSearchResponse.ts @@ -7,65 +7,65 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsSearchResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - total_found?: number; - workflows?: Workflow[]; + total_found?: number; + workflows?: Workflow[]; }; export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } export interface Workflow { - app_id?: string; - billing_type?: string; - callback_id?: string; - collaborators?: string[]; - date_updated?: number; - description?: string; - icons?: Icons; - id?: string; - input_parameters?: { [key: string]: InputParameter }; - is_billable?: boolean; - is_published?: boolean; - is_sales_home_workflow?: boolean; - last_published_date?: string; + app_id?: string; + billing_type?: string; + callback_id?: string; + collaborators?: string[]; + date_updated?: number; + description?: string; + icons?: Icons; + id?: string; + input_parameters?: { [key: string]: InputParameter }; + is_billable?: boolean; + is_published?: boolean; + is_sales_home_workflow?: boolean; + last_published_date?: string; last_published_version_id?: string; - last_updated_by?: string; - source?: string; - steps?: Step[]; - team_id?: string; - title?: string; - trigger_ids?: string[]; - unpublished_change_count?: number; - workflow_function_id?: string; + last_updated_by?: string; + source?: string; + steps?: Step[]; + team_id?: string; + title?: string; + trigger_ids?: string[]; + unpublished_change_count?: number; + workflow_function_id?: string; } export interface Icons { image_192?: string; - image_96?: string; + image_96?: string; } export interface InputParameter { description?: string; - is_hidden?: boolean; + is_hidden?: boolean; is_required?: boolean; - name?: string; - title?: string; - type?: string; + name?: string; + title?: string; + type?: string; } export interface Step { function_id?: string; - id?: string; - inputs?: { [key: string]: Input }; + id?: string; + inputs?: { [key: string]: Input }; is_pristine?: boolean; } diff --git a/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts b/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts index 250c7e258..c58f612f1 100644 --- a/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts +++ b/packages/web-api/src/types/response/AdminWorkflowsUnpublishResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AdminWorkflowsUnpublishResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/ApiTestResponse.ts b/packages/web-api/src/types/response/ApiTestResponse.ts index 27c2889ae..f0b95f8a6 100644 --- a/packages/web-api/src/types/response/ApiTestResponse.ts +++ b/packages/web-api/src/types/response/ApiTestResponse.ts @@ -7,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ApiTestResponse = WebAPICallResult & { - args?: Args; - error?: string; - needed?: string; - ok?: boolean; + args?: Args; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Args { error?: string; - foo?: string; + foo?: string; } diff --git a/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts b/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts index e66312bd1..fdb26668a 100644 --- a/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts +++ b/packages/web-api/src/types/response/AppsConnectionsOpenResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsConnectionsOpenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - url?: string; + url?: string; }; diff --git a/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts b/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts index c83daa319..f4e959703 100644 --- a/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts +++ b/packages/web-api/src/types/response/AppsEventAuthorizationsListResponse.ts @@ -7,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsEventAuthorizationsListResponse = WebAPICallResult & { authorizations?: Authorization[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface Authorization { - enterprise_id?: string; - is_bot?: boolean; + enterprise_id?: string; + is_bot?: boolean; is_enterprise_install?: boolean; - team_id?: string; - user_id?: string; + team_id?: string; + user_id?: string; } diff --git a/packages/web-api/src/types/response/AppsManifestCreateResponse.ts b/packages/web-api/src/types/response/AppsManifestCreateResponse.ts index 0f11dd0a0..37e8a31cf 100644 --- a/packages/web-api/src/types/response/AppsManifestCreateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestCreateResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsManifestCreateResponse = WebAPICallResult & { - app_id?: string; - credentials?: Credentials; - error?: string; - errors?: Error[]; - needed?: string; + app_id?: string; + credentials?: Credentials; + error?: string; + errors?: Error[]; + needed?: string; oauth_authorize_url?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; }; export interface Credentials { - client_id?: string; - client_secret?: string; - signing_secret?: string; + client_id?: string; + client_secret?: string; + signing_secret?: string; verification_token?: string; } export interface Error { - code?: string; - message?: string; - pointer?: string; + code?: string; + message?: string; + pointer?: string; related_component?: string; } diff --git a/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts b/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts index 203d32659..fa1728d0d 100644 --- a/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsManifestDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsManifestExportResponse.ts b/packages/web-api/src/types/response/AppsManifestExportResponse.ts index 7fc173b49..8db500e29 100644 --- a/packages/web-api/src/types/response/AppsManifestExportResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestExportResponse.ts @@ -7,22 +7,22 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsManifestExportResponse = WebAPICallResult & { - error?: string; + error?: string; manifest?: Manifest; - needed?: string; - ok?: boolean; + needed?: string; + ok?: boolean; provided?: string; }; export interface Manifest { - _metadata?: Metadata; + _metadata?: Metadata; display_information?: DisplayInformation; - features?: Features; - functions?: { [key: string]: Function }; - oauth_config?: OauthConfig; - settings?: Settings; + features?: Features; + functions?: { [key: string]: Function }; + oauth_config?: OauthConfig; + settings?: Settings; } export interface Metadata { @@ -32,98 +32,98 @@ export interface Metadata { export interface DisplayInformation { background_color?: string; - description?: string; + description?: string; long_description?: string; - name?: string; + name?: string; } export interface Features { - app_home?: AppHome; - bot_user?: BotUser; - shortcuts?: Shortcut[]; + app_home?: AppHome; + bot_user?: BotUser; + shortcuts?: Shortcut[]; slash_commands?: SlashCommand[]; unfurl_domains?: string[]; } export interface AppHome { - home_tab_enabled?: boolean; - messages_tab_enabled?: boolean; + home_tab_enabled?: boolean; + messages_tab_enabled?: boolean; messages_tab_read_only_enabled?: boolean; } export interface BotUser { always_online?: boolean; - display_name?: string; + display_name?: string; } export interface Shortcut { callback_id?: string; description?: string; - name?: string; - type?: string; + name?: string; + type?: string; } export interface SlashCommand { - command?: string; - description?: string; + command?: string; + description?: string; should_escape?: boolean; - url?: string; - usage_hint?: string; + url?: string; + usage_hint?: string; } export interface Function { - description?: string; - input_parameters?: { [key: string]: PutParameter }; + description?: string; + input_parameters?: { [key: string]: PutParameter }; output_parameters?: { [key: string]: PutParameter }; - title?: string; + title?: string; } export interface PutParameter { description?: string; - hint?: string; + hint?: string; is_required?: boolean; - maxLength?: number; - maximum?: number; - minLength?: number; - minimum?: number; - name?: string; - title?: string; - type?: string; + maxLength?: number; + maximum?: number; + minLength?: number; + minimum?: number; + name?: string; + title?: string; + type?: string; } export interface OauthConfig { - redirect_urls?: string[]; - scopes?: Scopes; + redirect_urls?: string[]; + scopes?: Scopes; token_management_enabled?: boolean; } export interface Scopes { - bot?: string[]; + bot?: string[]; user?: string[]; } export interface Settings { allowed_ip_address_ranges?: string[]; - background_color?: string; - description?: string; - event_subscriptions?: EventSubscriptions; - function_runtime?: string; - hermes_app_type?: string; - interactivity?: Interactivity; - long_description?: string; - org_deploy_enabled?: boolean; - socket_mode_enabled?: boolean; - token_rotation_enabled?: boolean; + background_color?: string; + description?: string; + event_subscriptions?: EventSubscriptions; + function_runtime?: string; + hermes_app_type?: string; + interactivity?: Interactivity; + long_description?: string; + org_deploy_enabled?: boolean; + socket_mode_enabled?: boolean; + token_rotation_enabled?: boolean; } export interface EventSubscriptions { - bot_events?: string[]; + bot_events?: string[]; request_url?: string; user_events?: string[]; } export interface Interactivity { - is_enabled?: boolean; + is_enabled?: boolean; message_menu_options_url?: string; - request_url?: string; + request_url?: string; } diff --git a/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts b/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts index 1b5ca8dc6..a775e3bdc 100644 --- a/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsManifestUpdateResponse = WebAPICallResult & { - app_id?: string; - error?: string; - needed?: string; - ok?: boolean; + app_id?: string; + error?: string; + needed?: string; + ok?: boolean; permissions_updated?: boolean; - provided?: string; + provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsManifestValidateResponse.ts b/packages/web-api/src/types/response/AppsManifestValidateResponse.ts index f62f888de..eb1233b78 100644 --- a/packages/web-api/src/types/response/AppsManifestValidateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestValidateResponse.ts @@ -7,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsManifestValidateResponse = WebAPICallResult & { - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Error { - code?: string; - message?: string; - pointer?: string; + code?: string; + message?: string; + pointer?: string; related_component?: string; } diff --git a/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts b/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts index 0567262f4..0a81ba1c4 100644 --- a/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsInfoResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts b/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts index a1a3d452f..4c24f9b7b 100644 --- a/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsRequestResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsRequestResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts b/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts index c461b040e..2e6ccdc55 100644 --- a/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsResourcesListResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsResourcesListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts b/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts index 5885720b5..95b81d291 100644 --- a/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsScopesListResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsScopesListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts b/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts index a447935d7..5b5772860 100644 --- a/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsUsersListResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsUsersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts b/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts index 4016e6373..47473a3ea 100644 --- a/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts +++ b/packages/web-api/src/types/response/AppsPermissionsUsersRequestResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsPermissionsUsersRequestResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AppsUninstallResponse.ts b/packages/web-api/src/types/response/AppsUninstallResponse.ts index 580a31751..b7c252570 100644 --- a/packages/web-api/src/types/response/AppsUninstallResponse.ts +++ b/packages/web-api/src/types/response/AppsUninstallResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AppsUninstallResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts b/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts index 687c5500b..2808bf70a 100644 --- a/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts +++ b/packages/web-api/src/types/response/AssistantThreadsSetStatusResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AssistantThreadsSetStatusResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts b/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts index eb6220c73..cc6a3d291 100644 --- a/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts +++ b/packages/web-api/src/types/response/AssistantThreadsSetSuggestedPromptsResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AssistantThreadsSetSuggestedPromptsResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts b/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts index 12e808136..1c823c505 100644 --- a/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts +++ b/packages/web-api/src/types/response/AssistantThreadsSetTitleResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AssistantThreadsSetTitleResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - warning?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/AuthRevokeResponse.ts b/packages/web-api/src/types/response/AuthRevokeResponse.ts index 0a534bf36..fcb8f1294 100644 --- a/packages/web-api/src/types/response/AuthRevokeResponse.ts +++ b/packages/web-api/src/types/response/AuthRevokeResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AuthRevokeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/AuthTeamsListResponse.ts b/packages/web-api/src/types/response/AuthTeamsListResponse.ts index 05d740c55..156cbddd7 100644 --- a/packages/web-api/src/types/response/AuthTeamsListResponse.ts +++ b/packages/web-api/src/types/response/AuthTeamsListResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AuthTeamsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - teams?: Team[]; + teams?: Team[]; }; export interface ResponseMetadata { @@ -23,17 +23,17 @@ export interface ResponseMetadata { export interface Team { icon?: Icon; - id?: string; + id?: string; name?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; image_default?: boolean; } diff --git a/packages/web-api/src/types/response/AuthTestResponse.ts b/packages/web-api/src/types/response/AuthTestResponse.ts index 9942311bb..094d5dfd1 100644 --- a/packages/web-api/src/types/response/AuthTestResponse.ts +++ b/packages/web-api/src/types/response/AuthTestResponse.ts @@ -7,21 +7,21 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type AuthTestResponse = WebAPICallResult & { - app_id?: string; - app_name?: string; - bot_id?: string; - enterprise_id?: string; - error?: string; - expires_in?: number; + app_id?: string; + app_name?: string; + bot_id?: string; + enterprise_id?: string; + error?: string; + expires_in?: number; is_enterprise_install?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - team?: string; - team_id?: string; - url?: string; - user?: string; - user_id?: string; + needed?: string; + ok?: boolean; + provided?: string; + team?: string; + team_id?: string; + url?: string; + user?: string; + user_id?: string; }; diff --git a/packages/web-api/src/types/response/BookmarksAddResponse.ts b/packages/web-api/src/types/response/BookmarksAddResponse.ts index 9e491c3ed..bc88bacaf 100644 --- a/packages/web-api/src/types/response/BookmarksAddResponse.ts +++ b/packages/web-api/src/types/response/BookmarksAddResponse.ts @@ -7,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type BookmarksAddResponse = WebAPICallResult & { - bookmark?: Bookmark; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + bookmark?: Bookmark; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Bookmark { - app_action_id?: string; - app_id?: string; - channel_id?: string; - date_created?: number; - date_updated?: number; - emoji?: string; - entity_id?: string; - icon_url?: string; - id?: string; + app_action_id?: string; + app_id?: string; + channel_id?: string; + date_created?: number; + date_updated?: number; + emoji?: string; + entity_id?: string; + icon_url?: string; + id?: string; last_updated_by_team_id?: string; last_updated_by_user_id?: string; - link?: string; - rank?: string; - shortcut_id?: string; - title?: string; - type?: string; + link?: string; + rank?: string; + shortcut_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/BookmarksEditResponse.ts b/packages/web-api/src/types/response/BookmarksEditResponse.ts index 1daccfcba..387decd14 100644 --- a/packages/web-api/src/types/response/BookmarksEditResponse.ts +++ b/packages/web-api/src/types/response/BookmarksEditResponse.ts @@ -7,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type BookmarksEditResponse = WebAPICallResult & { - bookmark?: Bookmark; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + bookmark?: Bookmark; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Bookmark { - app_action_id?: string; - app_id?: string; - channel_id?: string; - date_created?: number; - date_updated?: number; - emoji?: string; - entity_id?: string; - icon_url?: string; - id?: string; + app_action_id?: string; + app_id?: string; + channel_id?: string; + date_created?: number; + date_updated?: number; + emoji?: string; + entity_id?: string; + icon_url?: string; + id?: string; last_updated_by_team_id?: string; last_updated_by_user_id?: string; - link?: string; - rank?: string; - shortcut_id?: string; - title?: string; - type?: string; + link?: string; + rank?: string; + shortcut_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/BookmarksListResponse.ts b/packages/web-api/src/types/response/BookmarksListResponse.ts index 730389d5b..a3b2e47fb 100644 --- a/packages/web-api/src/types/response/BookmarksListResponse.ts +++ b/packages/web-api/src/types/response/BookmarksListResponse.ts @@ -7,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type BookmarksListResponse = WebAPICallResult & { - bookmarks?: Bookmark[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + bookmarks?: Bookmark[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Bookmark { - app_action_id?: string; - app_id?: string; - channel_id?: string; - date_created?: number; - date_updated?: number; - emoji?: string; - entity_id?: string; - icon_url?: string; - id?: string; + app_action_id?: string; + app_id?: string; + channel_id?: string; + date_created?: number; + date_updated?: number; + emoji?: string; + entity_id?: string; + icon_url?: string; + id?: string; last_updated_by_team_id?: string; last_updated_by_user_id?: string; - link?: string; - rank?: string; - shortcut_id?: string; - title?: string; - type?: string; + link?: string; + rank?: string; + shortcut_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/BookmarksRemoveResponse.ts b/packages/web-api/src/types/response/BookmarksRemoveResponse.ts index 5c738d3b9..61a4d5807 100644 --- a/packages/web-api/src/types/response/BookmarksRemoveResponse.ts +++ b/packages/web-api/src/types/response/BookmarksRemoveResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type BookmarksRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/BotsInfoResponse.ts b/packages/web-api/src/types/response/BotsInfoResponse.ts index 7a310cb0e..2845d92dc 100644 --- a/packages/web-api/src/types/response/BotsInfoResponse.ts +++ b/packages/web-api/src/types/response/BotsInfoResponse.ts @@ -7,21 +7,21 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type BotsInfoResponse = WebAPICallResult & { - bot?: Bot; - error?: string; - needed?: string; - ok?: boolean; + bot?: Bot; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Bot { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; updated?: number; user_id?: string; } diff --git a/packages/web-api/src/types/response/CallsAddResponse.ts b/packages/web-api/src/types/response/CallsAddResponse.ts index 393a9d953..6e287dbd1 100644 --- a/packages/web-api/src/types/response/CallsAddResponse.ts +++ b/packages/web-api/src/types/response/CallsAddResponse.ts @@ -7,32 +7,32 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CallsAddResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Call { - date_start?: number; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/CallsEndResponse.ts b/packages/web-api/src/types/response/CallsEndResponse.ts index 3d8e73ee6..8cef4034a 100644 --- a/packages/web-api/src/types/response/CallsEndResponse.ts +++ b/packages/web-api/src/types/response/CallsEndResponse.ts @@ -7,31 +7,31 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CallsEndResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_end?: number; - date_start?: number; + channels?: string[]; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsInfoResponse.ts b/packages/web-api/src/types/response/CallsInfoResponse.ts index 0d4b03273..bdc05ce70 100644 --- a/packages/web-api/src/types/response/CallsInfoResponse.ts +++ b/packages/web-api/src/types/response/CallsInfoResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CallsInfoResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts b/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts index 7ea2840ad..c19051330 100644 --- a/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts +++ b/packages/web-api/src/types/response/CallsParticipantsAddResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CallsParticipantsAddResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts b/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts index 3ce6ed6a9..ac197b808 100644 --- a/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts +++ b/packages/web-api/src/types/response/CallsParticipantsRemoveResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CallsParticipantsRemoveResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CallsUpdateResponse.ts b/packages/web-api/src/types/response/CallsUpdateResponse.ts index 985504639..e95234b7d 100644 --- a/packages/web-api/src/types/response/CallsUpdateResponse.ts +++ b/packages/web-api/src/types/response/CallsUpdateResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CallsUpdateResponse = WebAPICallResult & { - call?: Call; - error?: string; - needed?: string; - ok?: boolean; + call?: Call; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - channels?: string[]; - date_start?: number; + channels?: string[]; + date_start?: number; desktop_app_join_url?: string; - external_display_id?: string; - external_unique_id?: string; - id?: string; - join_url?: string; - title?: string; - users?: User[]; + external_display_id?: string; + external_unique_id?: string; + id?: string; + join_url?: string; + title?: string; + users?: User[]; } export interface User { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } diff --git a/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts b/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts index 8c42abc7e..857dac724 100644 --- a/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts +++ b/packages/web-api/src/types/response/CanvasesAccessDeleteResponse.ts @@ -7,16 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CanvasesAccessDeleteResponse = WebAPICallResult & { - error?: string; + error?: string; failed_to_update_channel_ids?: string[]; - failed_to_update_user_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + failed_to_update_user_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; }; -export interface ResponseMetadata { -} +export type ResponseMetadata = {}; diff --git a/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts b/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts index c6976ffcd..93ff87255 100644 --- a/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts +++ b/packages/web-api/src/types/response/CanvasesAccessSetResponse.ts @@ -7,16 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CanvasesAccessSetResponse = WebAPICallResult & { - error?: string; + error?: string; failed_to_update_channel_ids?: string[]; - failed_to_update_user_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + failed_to_update_user_ids?: string[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; }; -export interface ResponseMetadata { -} +export type ResponseMetadata = {}; diff --git a/packages/web-api/src/types/response/CanvasesCreateResponse.ts b/packages/web-api/src/types/response/CanvasesCreateResponse.ts index 2fc78e226..690948a3e 100644 --- a/packages/web-api/src/types/response/CanvasesCreateResponse.ts +++ b/packages/web-api/src/types/response/CanvasesCreateResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CanvasesCreateResponse = WebAPICallResult & { - canvas_id?: string; - detail?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + canvas_id?: string; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/CanvasesDeleteResponse.ts b/packages/web-api/src/types/response/CanvasesDeleteResponse.ts index be9162532..9501ea18b 100644 --- a/packages/web-api/src/types/response/CanvasesDeleteResponse.ts +++ b/packages/web-api/src/types/response/CanvasesDeleteResponse.ts @@ -7,14 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CanvasesDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; -export interface ResponseMetadata { -} +export type ResponseMetadata = {}; diff --git a/packages/web-api/src/types/response/CanvasesEditResponse.ts b/packages/web-api/src/types/response/CanvasesEditResponse.ts index 3236a809f..27813864f 100644 --- a/packages/web-api/src/types/response/CanvasesEditResponse.ts +++ b/packages/web-api/src/types/response/CanvasesEditResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CanvasesEditResponse = WebAPICallResult & { - detail?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts b/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts index 5aae6818d..e58d13d58 100644 --- a/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts +++ b/packages/web-api/src/types/response/CanvasesSectionsLookupResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type CanvasesSectionsLookupResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - sections?: Section[]; + sections?: Section[]; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChannelsArchiveResponse.ts b/packages/web-api/src/types/response/ChannelsArchiveResponse.ts index a46a1bd88..aa0f46d5d 100644 --- a/packages/web-api/src/types/response/ChannelsArchiveResponse.ts +++ b/packages/web-api/src/types/response/ChannelsArchiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsCreateResponse.ts b/packages/web-api/src/types/response/ChannelsCreateResponse.ts index d6b4d731e..52366c938 100644 --- a/packages/web-api/src/types/response/ChannelsCreateResponse.ts +++ b/packages/web-api/src/types/response/ChannelsCreateResponse.ts @@ -7,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsCreateResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsHistoryResponse.ts b/packages/web-api/src/types/response/ChannelsHistoryResponse.ts index 4bb8182e1..6aa5789cd 100644 --- a/packages/web-api/src/types/response/ChannelsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ChannelsHistoryResponse.ts @@ -7,125 +7,125 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - channel_actions_ts?: number; - error?: string; - has_more?: boolean; - latest?: string; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + channel_actions_ts?: number; + error?: string; + has_more?: boolean; + latest?: string; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - attachments?: Attachment[]; - blocks?: Block[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: File[]; - icons?: MessageIcons; - inviter?: string; - latest_reply?: string; - parent_user_id?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; + attachments?: Attachment[]; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: File[]; + icons?: MessageIcons; + inviter?: string; + latest_reply?: string; + parent_user_id?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface Attachment { - actions?: Action[]; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - color?: string; - fallback?: string; - fields?: Field[]; - filename?: string; - footer?: string; - footer_icon?: string; - from_url?: string; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - metadata?: Metadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: OptionGroup[]; - options?: Option[]; + name?: string; + option_groups?: OptionGroup[]; + options?: Option[]; selected_options?: Option[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface OptionGroup { @@ -133,7 +133,7 @@ export interface OptionGroup { } export interface Option { - text?: string; + text?: string; value?: string; } @@ -144,104 +144,104 @@ export interface Field { } export interface Metadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - block_id?: string; - elements?: Element[]; - fallback?: string; - fields?: Text[]; - image_bytes?: number; + accessory?: Accessory; + alt_text?: string; + block_id?: string; + elements?: Element[]; + fallback?: string; + fields?: Text[]; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - text?: Text; - title?: Text; - type?: string; + image_url?: string; + image_width?: number; + text?: Text; + title?: Text; + type?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - type?: string; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - action_id?: string; - alt_text?: string; - confirm?: ElementConfirm; + action_id?: string; + alt_text?: string; + confirm?: ElementConfirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_option?: InitialOption; - initial_user?: string; - min_query_length?: number; - placeholder?: Text; - response_url_enabled?: boolean; - style?: string; - text?: Text; - type?: string; - url?: string; - value?: string; + fallback?: string; + filter?: Filter; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_option?: InitialOption; + initial_user?: string; + min_query_length?: number; + placeholder?: Text; + response_url_enabled?: boolean; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface ElementConfirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; } export interface InitialOption { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -253,100 +253,100 @@ export interface BotProfileIcons { } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface File { - created?: number; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_id?: string; - external_type?: string; - external_url?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - image_exif_rotation?: number; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - mimetype?: string; - mode?: string; - name?: string; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + created?: number; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + image_exif_rotation?: number; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + mimetype?: string; + mode?: string; + name?: string; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_tiny?: string; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_tiny?: string; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - user?: string; - username?: string; + user?: string; + username?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_64?: string; } export interface Reaction { count?: number; - name?: string; + name?: string; users?: string[]; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChannelsInfoResponse.ts b/packages/web-api/src/types/response/ChannelsInfoResponse.ts index e49852ad4..293a8b83a 100644 --- a/packages/web-api/src/types/response/ChannelsInfoResponse.ts +++ b/packages/web-api/src/types/response/ChannelsInfoResponse.ts @@ -7,129 +7,129 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsInfoResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Latest { - attachments?: Attachment[]; - blocks?: Block[]; - bot_id?: string; + attachments?: Attachment[]; + blocks?: Block[]; + bot_id?: string; display_as_bot?: boolean; - edited?: Edited; - files?: File[]; - subtype?: string; - text?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + edited?: Edited; + files?: File[]; + subtype?: string; + text?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface Attachment { - actions?: Action[]; - app_unfurl_url?: string; - author_icon?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - color?: string; - fallback?: string; - fields?: Field[]; - filename?: string; - footer?: string; - footer_icon?: string; - from_url?: string; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_unfurl_url?: string; + author_icon?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - metadata?: Metadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: OptionGroup[]; - options?: Option[]; + name?: string; + option_groups?: OptionGroup[]; + options?: Option[]; selected_options?: Option[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface OptionGroup { @@ -137,7 +137,7 @@ export interface OptionGroup { } export interface Option { - text?: string; + text?: string; value?: string; } @@ -148,129 +148,129 @@ export interface Field { } export interface Metadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - block_id?: string; - elements?: Element[]; - fallback?: string; - fields?: Text[]; - image_bytes?: number; + accessory?: Accessory; + alt_text?: string; + block_id?: string; + elements?: Element[]; + fallback?: string; + fields?: Text[]; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - text?: Text; - title?: Text; - type?: string; + image_url?: string; + image_width?: number; + text?: Text; + title?: Text; + type?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - type?: string; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - action_id?: string; - alt_text?: string; - confirm?: ElementConfirm; - fallback?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; + action_id?: string; + alt_text?: string; + confirm?: ElementConfirm; + fallback?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; initial_conversation?: string; - initial_date?: string; - initial_option?: InitialOption; - initial_user?: string; - min_query_length?: number; - placeholder?: Text; - style?: string; - text?: Text; - type?: string; - url?: string; - value?: string; + initial_date?: string; + initial_option?: InitialOption; + initial_user?: string; + min_query_length?: number; + placeholder?: Text; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface ElementConfirm { confirm?: Text; - deny?: Text; - text?: Text; - title?: Text; + deny?: Text; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface InitialOption { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface File { - created?: number; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + created?: number; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsInviteResponse.ts b/packages/web-api/src/types/response/ChannelsInviteResponse.ts index 057f078e4..d4e6a57cd 100644 --- a/packages/web-api/src/types/response/ChannelsInviteResponse.ts +++ b/packages/web-api/src/types/response/ChannelsInviteResponse.ts @@ -7,51 +7,51 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsInviteResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsJoinResponse.ts b/packages/web-api/src/types/response/ChannelsJoinResponse.ts index 58698be39..c19ba50a2 100644 --- a/packages/web-api/src/types/response/ChannelsJoinResponse.ts +++ b/packages/web-api/src/types/response/ChannelsJoinResponse.ts @@ -7,51 +7,51 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsJoinResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsKickResponse.ts b/packages/web-api/src/types/response/ChannelsKickResponse.ts index 434bb257d..77fccac4c 100644 --- a/packages/web-api/src/types/response/ChannelsKickResponse.ts +++ b/packages/web-api/src/types/response/ChannelsKickResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsKickResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsLeaveResponse.ts b/packages/web-api/src/types/response/ChannelsLeaveResponse.ts index 19892a0bd..74d6f1aa0 100644 --- a/packages/web-api/src/types/response/ChannelsLeaveResponse.ts +++ b/packages/web-api/src/types/response/ChannelsLeaveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsLeaveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsListResponse.ts b/packages/web-api/src/types/response/ChannelsListResponse.ts index a5585f406..1a3cc214e 100644 --- a/packages/web-api/src/types/response/ChannelsListResponse.ts +++ b/packages/web-api/src/types/response/ChannelsListResponse.ts @@ -7,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsListResponse = WebAPICallResult & { - channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channels?: Channel[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + members?: string[]; + name?: string; name_normalized?: string; - num_members?: number; - previous_names?: string[]; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; + num_members?: number; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/ChannelsMarkResponse.ts b/packages/web-api/src/types/response/ChannelsMarkResponse.ts index 4d0c98868..6646d8ae6 100644 --- a/packages/web-api/src/types/response/ChannelsMarkResponse.ts +++ b/packages/web-api/src/types/response/ChannelsMarkResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsRenameResponse.ts b/packages/web-api/src/types/response/ChannelsRenameResponse.ts index b8aff76cf..3db295775 100644 --- a/packages/web-api/src/types/response/ChannelsRenameResponse.ts +++ b/packages/web-api/src/types/response/ChannelsRenameResponse.ts @@ -7,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsRenameResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_general?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_general?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + members?: string[]; + name?: string; name_normalized?: string; - previous_names?: string[]; - purpose?: Purpose; - topic?: Purpose; - unlinked?: number; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ChannelsRepliesResponse.ts b/packages/web-api/src/types/response/ChannelsRepliesResponse.ts index f666c4629..7d2830ffd 100644 --- a/packages/web-api/src/types/response/ChannelsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ChannelsRepliesResponse.ts @@ -7,41 +7,41 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts b/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts index a5d81bbbf..2af9f6a13 100644 --- a/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/ChannelsSetPurposeResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsSetPurposeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - purpose?: string; + purpose?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts b/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts index d99a6c47b..4a744e38a 100644 --- a/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/ChannelsSetTopicResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsSetTopicResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - topic?: string; + topic?: string; }; diff --git a/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts b/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts index 95f6f7bb0..4ca8d7a72 100644 --- a/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/ChannelsUnarchiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChannelsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatDeleteResponse.ts b/packages/web-api/src/types/response/ChatDeleteResponse.ts index b0cb1b0c5..339dec26f 100644 --- a/packages/web-api/src/types/response/ChatDeleteResponse.ts +++ b/packages/web-api/src/types/response/ChatDeleteResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatDeleteResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - ts?: string; + ts?: string; }; diff --git a/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts b/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts index fdb8064c0..23cf8cf6f 100644 --- a/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatDeleteScheduledMessageResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatDeleteScheduledMessageResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts b/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts index 22c6de8cc..b0979fcd9 100644 --- a/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts +++ b/packages/web-api/src/types/response/ChatGetPermalinkResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatGetPermalinkResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; permalink?: string; - provided?: string; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatMeMessageResponse.ts b/packages/web-api/src/types/response/ChatMeMessageResponse.ts index 2dfbbea39..257715c97 100644 --- a/packages/web-api/src/types/response/ChatMeMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatMeMessageResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatMeMessageResponse = WebAPICallResult & { - channel?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - ts?: string; + ts?: string; }; diff --git a/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts b/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts index 5226a515a..6959f69fb 100644 --- a/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts +++ b/packages/web-api/src/types/response/ChatPostEphemeralResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatPostEphemeralResponse = WebAPICallResult & { - error?: string; + error?: string; message_ts?: string; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatPostMessageResponse.ts b/packages/web-api/src/types/response/ChatPostMessageResponse.ts index 36bbe1acf..a591ace6f 100644 --- a/packages/web-api/src/types/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatPostMessageResponse.ts @@ -7,155 +7,155 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatPostMessageResponse = WebAPICallResult & { - channel?: string; + channel?: string; deprecated_argument?: string; - error?: string; - errors?: string[]; - message?: ChatPostMessageResponseMessage; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - ts?: string; + error?: string; + errors?: string[]; + message?: ChatPostMessageResponseMessage; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + ts?: string; }; export interface ChatPostMessageResponseMessage { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: Attachment[]; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - icons?: FluffyIcons; - metadata?: FluffyMetadata; - parent_user_id?: string; - room?: Room; - root?: FluffyRoot; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + icons?: FluffyIcons; + metadata?: FluffyMetadata; + parent_user_id?: string; + room?: Room; + root?: FluffyRoot; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -165,42 +165,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -224,25 +224,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -252,258 +252,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -518,103 +518,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -629,64 +629,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -695,105 +695,105 @@ export interface Transcription { } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: FileBlock[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -804,48 +804,47 @@ export interface AttachmentField { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: EventPayload; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: EventPayload; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface EventPayload { -} +export type EventPayload = {}; export interface PurpleListRecord { record?: Record; @@ -853,91 +852,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: PurpleIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: PurpleMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: PurpleRoot; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: PurpleIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: PurpleMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: PurpleRoot; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -949,208 +948,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: EventPayload; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: EventPayload; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface PurpleIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1162,80 +1161,80 @@ export interface PurpleMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: EventPayload; - last_invite_status_by_user?: EventPayload; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: EventPayload; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: EventPayload; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface PurpleRoot { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: PurpleIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: PurpleIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1248,57 +1247,57 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface FluffyIcons { - emoji?: string; + emoji?: string; image_64?: string; } export interface FluffyMetadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } export interface FluffyRoot { - bot_id?: string; - icons?: FluffyIcons; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + icons?: FluffyIcons; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + username?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts index 3df22e325..71d79247a 100644 --- a/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduleMessageResponse.ts @@ -7,146 +7,146 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatScheduleMessageResponse = WebAPICallResult & { - channel?: string; - error?: string; - message?: Message; - needed?: string; - ok?: boolean; - post_at?: number; - provided?: string; - response_metadata?: ResponseMetadata; + channel?: string; + error?: string; + message?: Message; + needed?: string; + ok?: boolean; + post_at?: number; + provided?: string; + response_metadata?: ResponseMetadata; scheduled_message_id?: string; }; export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - metadata?: Metadata; - room?: Room; - team?: string; - text?: string; - type?: string; - user?: string; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + metadata?: Metadata; + room?: Room; + team?: string; + text?: string; + type?: string; + user?: string; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -156,42 +156,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -215,25 +215,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -243,258 +243,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -509,103 +509,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -620,64 +620,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -686,11 +686,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -703,46 +703,45 @@ export interface Icons { export interface Metadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } -export interface EventPayload { -} +export type EventPayload = {}; export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: EventPayload; - last_invite_status_by_user?: EventPayload; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: EventPayload; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: EventPayload; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts b/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts index 210fe39a8..0f0f37a3b 100644 --- a/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts +++ b/packages/web-api/src/types/response/ChatScheduledMessagesListResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatScheduledMessagesListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; scheduled_messages?: ScheduledMessage[]; }; @@ -22,9 +22,9 @@ export interface ResponseMetadata { } export interface ScheduledMessage { - channel_id?: string; + channel_id?: string; date_created?: number; - id?: string; - post_at?: number; - text?: string; + id?: string; + post_at?: number; + text?: string; } diff --git a/packages/web-api/src/types/response/ChatUnfurlResponse.ts b/packages/web-api/src/types/response/ChatUnfurlResponse.ts index 6bc62f237..92c1b7b85 100644 --- a/packages/web-api/src/types/response/ChatUnfurlResponse.ts +++ b/packages/web-api/src/types/response/ChatUnfurlResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatUnfurlResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ChatUpdateResponse.ts b/packages/web-api/src/types/response/ChatUpdateResponse.ts index 4da6871fe..7a04b0b9a 100644 --- a/packages/web-api/src/types/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/types/response/ChatUpdateResponse.ts @@ -7,151 +7,151 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ChatUpdateResponse = WebAPICallResult & { - channel?: string; - error?: string; - message?: Message; - needed?: string; - ok?: boolean; - provided?: string; + channel?: string; + error?: string; + message?: Message; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - text?: string; - ts?: string; + text?: string; + ts?: string; }; export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - display_as_bot?: boolean; - edited?: Edited; - files?: File[]; - metadata?: Metadata; - room?: Room; - team?: string; - text?: string; - type?: string; - upload?: boolean; - user?: string; - x_files?: string[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + display_as_bot?: boolean; + edited?: Edited; + files?: File[]; + metadata?: Metadata; + room?: Room; + team?: string; + text?: string; + type?: string; + upload?: boolean; + user?: string; + x_files?: string[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -161,42 +161,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -220,25 +220,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -248,258 +248,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -514,103 +514,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -625,64 +625,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -691,11 +691,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -707,52 +707,51 @@ export interface Icons { } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface Metadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } -export interface EventPayload { -} +export type EventPayload = {}; export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: EventPayload; - last_invite_status_by_user?: EventPayload; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: EventPayload; + last_invite_status_by_user?: EventPayload; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: EventPayload; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: EventPayload; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts b/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts index 62647fdbd..e25197433 100644 --- a/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsAcceptSharedInviteResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsAcceptSharedInviteResponse = WebAPICallResult & { - can_open_scdm?: boolean; - channel_id?: string; - error?: string; + can_open_scdm?: boolean; + channel_id?: string; + error?: string; implicit_approval?: boolean; - invite_id?: string; - needed?: string; - ok?: boolean; - provided?: string; + invite_id?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts b/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts index eb8b27210..81c13ca2a 100644 --- a/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsApproveSharedInviteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsApproveSharedInviteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsArchiveResponse.ts b/packages/web-api/src/types/response/ConversationsArchiveResponse.ts index b257465ad..74dc024a3 100644 --- a/packages/web-api/src/types/response/ConversationsArchiveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsArchiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts b/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts index a00280b46..09a146e39 100644 --- a/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCanvasesCreateResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsCanvasesCreateResponse = WebAPICallResult & { - canvas_id?: string; - detail?: string; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + canvas_id?: string; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/ConversationsCloseResponse.ts b/packages/web-api/src/types/response/ConversationsCloseResponse.ts index dc6702cf3..cdf7a757e 100644 --- a/packages/web-api/src/types/response/ConversationsCloseResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCloseResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsCloseResponse = WebAPICallResult & { already_closed?: boolean; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsCreateResponse.ts b/packages/web-api/src/types/response/ConversationsCreateResponse.ts index 47ba7a8e1..21c500028 100644 --- a/packages/web-api/src/types/response/ConversationsCreateResponse.ts +++ b/packages/web-api/src/types/response/ConversationsCreateResponse.ts @@ -7,52 +7,52 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsCreateResponse = WebAPICallResult & { - channel?: Channel; - detail?: string; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + detail?: string; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts b/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts index ee251dc0e..d3fbf602d 100644 --- a/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsDeclineSharedInviteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsDeclineSharedInviteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts b/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts index cb2eb6c43..6a6dd761f 100644 --- a/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts +++ b/packages/web-api/src/types/response/ConversationsExternalInvitePermissionsSetResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsExternalInvitePermissionsSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts index ff9610452..ac43f3b14 100644 --- a/packages/web-api/src/types/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/types/response/ConversationsHistoryResponse.ts @@ -7,171 +7,171 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - channel_actions_ts?: number; - error?: string; - has_more?: boolean; - messages?: MessageElement[]; - needed?: string; - ok?: boolean; - oldest?: string; - pin_count?: number; - provided?: string; - response_metadata?: ResponseMetadata; + channel_actions_ts?: number; + error?: string; + has_more?: boolean; + messages?: MessageElement[]; + needed?: string; + ok?: boolean; + oldest?: string; + pin_count?: number; + provided?: string; + response_metadata?: ResponseMetadata; }; export interface MessageElement { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: Attachment[]; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - icons?: MessageIcons; - inviter?: string; - is_locked?: boolean; - latest_reply?: string; - metadata?: FluffyMetadata; - parent_user_id?: string; - purpose?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - root?: FluffyRoot; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + icons?: MessageIcons; + inviter?: string; + is_locked?: boolean; + latest_reply?: string; + metadata?: FluffyMetadata; + parent_user_id?: string; + purpose?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + root?: FluffyRoot; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -181,42 +181,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -240,25 +240,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -268,258 +268,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -534,103 +534,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -645,64 +645,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -711,105 +711,105 @@ export interface Transcription { } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: FileBlock[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -820,48 +820,47 @@ export interface AttachmentField { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: EventPayload; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: EventPayload; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface EventPayload { -} +export type EventPayload = {}; export interface PurpleListRecord { record?: Record; @@ -869,91 +868,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: PurpleFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: PurpleMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: PurpleRoot; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: PurpleFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: PurpleMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: PurpleRoot; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -965,208 +964,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface PurpleFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: EventPayload; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: EventPayload; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1178,77 +1177,77 @@ export interface PurpleMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface PurpleRoot { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1261,56 +1260,56 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface FluffyMetadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } export interface FluffyRoot { - bot_id?: string; - icons?: PurpleIcons; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + icons?: PurpleIcons; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + username?: string; } export interface PurpleIcons { - emoji?: string; + emoji?: string; image_64?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInfoResponse.ts b/packages/web-api/src/types/response/ConversationsInfoResponse.ts index f5c75611d..cbfedd4f5 100644 --- a/packages/web-api/src/types/response/ConversationsInfoResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInfoResponse.ts @@ -7,60 +7,60 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsInfoResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { connected_limited_team_ids?: string[]; - connected_team_ids?: string[]; - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_non_threadable?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_read_only?: boolean; - is_shared?: boolean; - is_thread_only?: boolean; - last_read?: string; - locale?: string; - name?: string; - name_normalized?: string; - num_members?: number; + connected_team_ids?: string[]; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_non_threadable?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_read_only?: boolean; + is_shared?: boolean; + is_thread_only?: boolean; + last_read?: string; + locale?: string; + name?: string; + name_normalized?: string; + num_members?: number; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInviteResponse.ts b/packages/web-api/src/types/response/ConversationsInviteResponse.ts index 59f4997dd..fc8fa3d15 100644 --- a/packages/web-api/src/types/response/ConversationsInviteResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInviteResponse.ts @@ -7,57 +7,57 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsInviteResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - errors?: Error[]; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + errors?: Error[]; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface Error { error?: string; - ok?: boolean; - user?: string; + ok?: boolean; + user?: string; } diff --git a/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts b/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts index a030d01fe..0c3856f7c 100644 --- a/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts +++ b/packages/web-api/src/types/response/ConversationsInviteSharedResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsInviteSharedResponse = WebAPICallResult & { - conf_code?: string; - error?: string; - invite_id?: string; + conf_code?: string; + error?: string; + invite_id?: string; is_legacy_shared_channel?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - url?: string; + needed?: string; + ok?: boolean; + provided?: string; + url?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsJoinResponse.ts b/packages/web-api/src/types/response/ConversationsJoinResponse.ts index fe7942f4c..4c7822811 100644 --- a/packages/web-api/src/types/response/ConversationsJoinResponse.ts +++ b/packages/web-api/src/types/response/ConversationsJoinResponse.ts @@ -7,73 +7,73 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsJoinResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - is_starred?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_starred?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - properties?: Properties; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + properties?: Properties; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Properties { canvas?: Canvas; - tabs?: Tab[]; + tabs?: Tab[]; } export interface Canvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsKickResponse.ts b/packages/web-api/src/types/response/ConversationsKickResponse.ts index 1b227483a..d92c65c99 100644 --- a/packages/web-api/src/types/response/ConversationsKickResponse.ts +++ b/packages/web-api/src/types/response/ConversationsKickResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsKickResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsLeaveResponse.ts b/packages/web-api/src/types/response/ConversationsLeaveResponse.ts index 7e2c2cad6..86444aed7 100644 --- a/packages/web-api/src/types/response/ConversationsLeaveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsLeaveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsLeaveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts b/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts index 56746e4d5..3723fc617 100644 --- a/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsListConnectInvitesResponse.ts @@ -7,130 +7,130 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsListConnectInvitesResponse = WebAPICallResult & { - arg?: string; - error?: string; - invites?: InviteElement[]; - needed?: string; - ok?: boolean; - provided?: string; + arg?: string; + error?: string; + invites?: InviteElement[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface InviteElement { - acceptances?: Acceptance[]; - channel?: Channel; - date_created?: number; - date_invalid?: number; + acceptances?: Acceptance[]; + channel?: Channel; + date_created?: number; + date_invalid?: number; date_last_updated?: number; - direction?: string; - id?: string; - invite?: InviteInvite; - invite_payload?: InvitePayload; - invite_type?: string; - inviting_team?: IngTeam; - inviting_user?: TingUser; - link?: string; + direction?: string; + id?: string; + invite?: InviteInvite; + invite_payload?: InvitePayload; + invite_type?: string; + inviting_team?: IngTeam; + inviting_user?: TingUser; + link?: string; recipient_user_id?: string; - sig?: string; - status?: string; + sig?: string; + status?: string; } export interface Acceptance { - accepting_team?: IngTeam; - accepting_user?: TingUser; - approval_status?: string; - date_accepted?: number; - date_invalid?: number; + accepting_team?: IngTeam; + accepting_user?: TingUser; + approval_status?: string; + date_accepted?: number; + date_invalid?: number; date_last_updated?: number; - reviews?: Review[]; + reviews?: Review[]; } export interface IngTeam { - avatar_base_url?: string; - date_created?: number; - domain?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - name?: string; + avatar_base_url?: string; + date_created?: number; + domain?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + name?: string; requires_sponsorship?: boolean; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; - image_default?: boolean; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; + image_default?: boolean; image_original?: string; } export interface TingUser { - id?: string; - name?: string; - profile?: Profile; - team_id?: string; - updated?: number; + id?: string; + name?: string; + profile?: Profile; + team_id?: string; + updated?: number; who_can_share_contact_card?: string; } export interface Profile { - avatar_hash?: string; - display_name?: string; + avatar_hash?: string; + display_name?: string; display_name_normalized?: string; - email?: string; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - real_name?: string; - real_name_normalized?: string; - team?: string; + email?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + real_name?: string; + real_name_normalized?: string; + team?: string; } export interface Review { - date_review?: number; + date_review?: number; reviewing_team?: IngTeam; - type?: string; + type?: string; } export interface Channel { - id?: string; - is_im?: boolean; + id?: string; + is_im?: boolean; is_private?: boolean; - name?: string; + name?: string; } export interface InviteInvite { - date_created?: number; - date_invalid?: number; - id?: string; - inviting_team?: IngTeam; - inviting_user?: TingUser; - link?: string; - recipient_email?: string; + date_created?: number; + date_invalid?: number; + id?: string; + inviting_team?: IngTeam; + inviting_user?: TingUser; + link?: string; + recipient_email?: string; recipient_user_id?: string; - sig?: string; + sig?: string; } export interface InvitePayload { - channel?: Channel; - invite_type?: string; + channel?: Channel; + invite_type?: string; is_external_limited?: boolean; - is_sponsored?: boolean; + is_sponsored?: boolean; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } diff --git a/packages/web-api/src/types/response/ConversationsListResponse.ts b/packages/web-api/src/types/response/ConversationsListResponse.ts index 5cfc8d61c..68f5e8a9c 100644 --- a/packages/web-api/src/types/response/ConversationsListResponse.ts +++ b/packages/web-api/src/types/response/ConversationsListResponse.ts @@ -7,66 +7,66 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsListResponse = WebAPICallResult & { - channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channels?: Channel[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Channel { - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - is_user_deleted?: boolean; - name?: string; - name_normalized?: string; - num_members?: number; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_user_deleted?: boolean; + name?: string; + name_normalized?: string; + num_members?: number; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - properties?: Properties; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; - user?: string; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + properties?: Properties; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; + user?: string; } export interface Properties { - canvas?: Canvas; + canvas?: Canvas; posting_restricted_to?: RestrictedTo; - tabs?: Tab[]; + tabs?: Tab[]; threads_restricted_to?: RestrictedTo; } export interface Canvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } @@ -76,15 +76,15 @@ export interface RestrictedTo { } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsMarkResponse.ts b/packages/web-api/src/types/response/ConversationsMarkResponse.ts index beac127d2..96e22713a 100644 --- a/packages/web-api/src/types/response/ConversationsMarkResponse.ts +++ b/packages/web-api/src/types/response/ConversationsMarkResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsMembersResponse.ts b/packages/web-api/src/types/response/ConversationsMembersResponse.ts index 0e4dd6a03..402a2ceed 100644 --- a/packages/web-api/src/types/response/ConversationsMembersResponse.ts +++ b/packages/web-api/src/types/response/ConversationsMembersResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsMembersResponse = WebAPICallResult & { - error?: string; - members?: string[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + members?: string[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/ConversationsOpenResponse.ts b/packages/web-api/src/types/response/ConversationsOpenResponse.ts index 66326c9d5..3eed11cc2 100644 --- a/packages/web-api/src/types/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/types/response/ConversationsOpenResponse.ts @@ -7,162 +7,162 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsOpenResponse = WebAPICallResult & { already_open?: boolean; - channel?: Channel; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + channel?: Channel; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - id?: string; - is_archived?: boolean; - is_im?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - last_read?: string; - latest?: Latest; - priority?: number; - unread_count?: number; + context_team_id?: string; + created?: number; + id?: string; + is_archived?: boolean; + is_im?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + last_read?: string; + latest?: Latest; + priority?: number; + unread_count?: number; unread_count_display?: number; - updated?: number; - user?: string; + updated?: number; + user?: string; } export interface Latest { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - subtype?: string; - team?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + subtype?: string; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -172,42 +172,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -231,25 +231,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -259,258 +259,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -525,103 +525,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -636,64 +636,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -702,11 +702,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/ConversationsRenameResponse.ts b/packages/web-api/src/types/response/ConversationsRenameResponse.ts index 8212cd616..64bad0774 100644 --- a/packages/web-api/src/types/response/ConversationsRenameResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRenameResponse.ts @@ -7,50 +7,50 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsRenameResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts index 49ff96af6..cd3e2c279 100644 --- a/packages/web-api/src/types/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRepliesResponse.ts @@ -7,160 +7,160 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: MessageElement[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: MessageElement[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface MessageElement { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: Attachment[]; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - is_locked?: boolean; - last_read?: string; - latest_reply?: string; - metadata?: FluffyMetadata; - parent_user_id?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - x_files?: string[]; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + is_locked?: boolean; + last_read?: string; + latest_reply?: string; + metadata?: FluffyMetadata; + parent_user_id?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + x_files?: string[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -170,42 +170,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -229,25 +229,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -257,258 +257,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -523,103 +523,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -634,64 +634,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -700,105 +700,105 @@ export interface Transcription { } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: FileBlock[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -809,48 +809,47 @@ export interface AttachmentField { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: EventPayload; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: EventPayload; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface EventPayload { -} +export type EventPayload = {}; export interface PurpleListRecord { record?: Record; @@ -858,91 +857,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: PurpleFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: PurpleMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: PurpleFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: PurpleMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -954,208 +953,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface PurpleFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: EventPayload; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: EventPayload; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1167,77 +1166,77 @@ export interface PurpleMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1250,35 +1249,35 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface FluffyMetadata { event_payload?: EventPayload; - event_type?: string; + event_type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts b/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts index 63e343ade..9afa5ec22 100644 --- a/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRequestSharedInviteApproveResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsRequestSharedInviteApproveResponse = WebAPICallResult & { - error?: string; + error?: string; invite_id?: string; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts b/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts index a619d0530..8ffb1c8b8 100644 --- a/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts +++ b/packages/web-api/src/types/response/ConversationsRequestSharedInviteDenyResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsRequestSharedInviteDenyResponse = WebAPICallResult & { - error?: string; + error?: string; invite_id?: string; - needed?: string; - ok?: boolean; - provided?: string; + needed?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts b/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts index 9492f51d9..8f01ff584 100644 --- a/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/ConversationsSetPurposeResponse.ts @@ -7,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsSetPurposeResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts b/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts index be5e96bdf..d6e543158 100644 --- a/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/ConversationsSetTopicResponse.ts @@ -7,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsSetTopicResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - context_team_id?: string; - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + context_team_id?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } diff --git a/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts b/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts index 5b1754d3d..0e7c69b92 100644 --- a/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/ConversationsUnarchiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ConversationsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/DialogOpenResponse.ts b/packages/web-api/src/types/response/DialogOpenResponse.ts index 537637783..71c285fa9 100644 --- a/packages/web-api/src/types/response/DialogOpenResponse.ts +++ b/packages/web-api/src/types/response/DialogOpenResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type DialogOpenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/DndEndDndResponse.ts b/packages/web-api/src/types/response/DndEndDndResponse.ts index 896894730..a395aeb55 100644 --- a/packages/web-api/src/types/response/DndEndDndResponse.ts +++ b/packages/web-api/src/types/response/DndEndDndResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type DndEndDndResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/DndEndSnoozeResponse.ts b/packages/web-api/src/types/response/DndEndSnoozeResponse.ts index ba210015c..9c91e126c 100644 --- a/packages/web-api/src/types/response/DndEndSnoozeResponse.ts +++ b/packages/web-api/src/types/response/DndEndSnoozeResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type DndEndSnoozeResponse = WebAPICallResult & { - dnd_enabled?: boolean; - error?: string; - needed?: string; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + error?: string; + needed?: string; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; - ok?: boolean; - provided?: string; - snooze_enabled?: boolean; + ok?: boolean; + provided?: string; + snooze_enabled?: boolean; }; diff --git a/packages/web-api/src/types/response/DndInfoResponse.ts b/packages/web-api/src/types/response/DndInfoResponse.ts index 80c687b3c..0bea4044a 100644 --- a/packages/web-api/src/types/response/DndInfoResponse.ts +++ b/packages/web-api/src/types/response/DndInfoResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type DndInfoResponse = WebAPICallResult & { - dnd_enabled?: boolean; - error?: string; - needed?: string; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + error?: string; + needed?: string; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; - ok?: boolean; - provided?: string; + ok?: boolean; + provided?: string; }; diff --git a/packages/web-api/src/types/response/DndSetSnoozeResponse.ts b/packages/web-api/src/types/response/DndSetSnoozeResponse.ts index bd82d7d7c..ab26a48ae 100644 --- a/packages/web-api/src/types/response/DndSetSnoozeResponse.ts +++ b/packages/web-api/src/types/response/DndSetSnoozeResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type DndSetSnoozeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - snooze_enabled?: boolean; - snooze_endtime?: number; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + snooze_enabled?: boolean; + snooze_endtime?: number; snooze_is_indefinite?: boolean; - snooze_remaining?: number; + snooze_remaining?: number; }; diff --git a/packages/web-api/src/types/response/DndTeamInfoResponse.ts b/packages/web-api/src/types/response/DndTeamInfoResponse.ts index 1bc598539..5e35928ce 100644 --- a/packages/web-api/src/types/response/DndTeamInfoResponse.ts +++ b/packages/web-api/src/types/response/DndTeamInfoResponse.ts @@ -7,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type DndTeamInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - users?: { [key: string]: User }; + users?: { [key: string]: User }; }; export interface User { - dnd_enabled?: boolean; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; } diff --git a/packages/web-api/src/types/response/EmojiListResponse.ts b/packages/web-api/src/types/response/EmojiListResponse.ts index 687860413..26a61eddc 100644 --- a/packages/web-api/src/types/response/EmojiListResponse.ts +++ b/packages/web-api/src/types/response/EmojiListResponse.ts @@ -7,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type EmojiListResponse = WebAPICallResult & { - cache_ts?: string; - categories?: Category[]; + cache_ts?: string; + categories?: Category[]; categories_version?: string; - emoji?: { [key: string]: string }; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + emoji?: { [key: string]: string }; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; }; export interface Category { emoji_names?: string[]; - name?: string; + name?: string; } diff --git a/packages/web-api/src/types/response/FilesCommentsAddResponse.ts b/packages/web-api/src/types/response/FilesCommentsAddResponse.ts index 916457c0a..6874598e3 100644 --- a/packages/web-api/src/types/response/FilesCommentsAddResponse.ts +++ b/packages/web-api/src/types/response/FilesCommentsAddResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesCommentsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; req_method?: string; }; diff --git a/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts b/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts index afbffabc8..79cea86a2 100644 --- a/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts +++ b/packages/web-api/src/types/response/FilesCommentsDeleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesCommentsDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FilesCommentsEditResponse.ts b/packages/web-api/src/types/response/FilesCommentsEditResponse.ts index a3d4d4910..2047d96eb 100644 --- a/packages/web-api/src/types/response/FilesCommentsEditResponse.ts +++ b/packages/web-api/src/types/response/FilesCommentsEditResponse.ts @@ -7,20 +7,20 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesCommentsEditResponse = WebAPICallResult & { - comment?: Comment; - error?: string; - needed?: string; - ok?: boolean; + comment?: Comment; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; export interface Comment { - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } diff --git a/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts b/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts index f4362be58..d15ab5da1 100644 --- a/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts +++ b/packages/web-api/src/types/response/FilesCompleteUploadExternalResponse.ts @@ -7,73 +7,73 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesCompleteUploadExternalResponse = WebAPICallResult & { - error?: string; - files?: File[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + files?: File[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface File { - alt_txt?: string; - channels?: string[]; - comments_count?: number; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + alt_txt?: string; + channels?: string[]; + comments_count?: number; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - shares?: Shares; - size?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_80?: string; - thumb_tiny?: string; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + shares?: Shares; + size?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_80?: string; + thumb_tiny?: string; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + user?: string; + user_team?: string; + username?: string; } export interface Shares { @@ -81,16 +81,16 @@ export interface Shares { } export interface Public { - channel_name?: string; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + channel_name?: string; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/FilesDeleteResponse.ts b/packages/web-api/src/types/response/FilesDeleteResponse.ts index 58c18e218..1dd039275 100644 --- a/packages/web-api/src/types/response/FilesDeleteResponse.ts +++ b/packages/web-api/src/types/response/FilesDeleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts b/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts index ebc5d1f1e..b6b1adadf 100644 --- a/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts +++ b/packages/web-api/src/types/response/FilesGetUploadURLExternalResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesGetUploadURLExternalResponse = WebAPICallResult & { - error?: string; - file_id?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + file_id?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - upload_url?: string; + upload_url?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/FilesInfoResponse.ts b/packages/web-api/src/types/response/FilesInfoResponse.ts index 7c4e88514..e810b6747 100644 --- a/packages/web-api/src/types/response/FilesInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesInfoResponse.ts @@ -7,278 +7,278 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesInfoResponse = WebAPICallResult & { - comments?: Comment[]; - content?: string; - content_highlight_css?: string; - content_highlight_html?: string; + comments?: Comment[]; + content?: string; + content_highlight_css?: string; + content_highlight_html?: string; content_highlight_html_truncated?: boolean; - error?: string; - file?: File; - is_truncated?: boolean; - needed?: string; - ok?: boolean; - paging?: Paging; - provided?: string; + error?: string; + file?: File; + is_truncated?: boolean; + needed?: string; + ok?: boolean; + paging?: Paging; + provided?: string; }; export interface Comment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: Comment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -293,161 +293,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -457,42 +457,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -509,25 +509,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -537,11 +537,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -552,7 +552,7 @@ export interface Transcription { export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/FilesListResponse.ts b/packages/web-api/src/types/response/FilesListResponse.ts index ba6dbcd50..44969599b 100644 --- a/packages/web-api/src/types/response/FilesListResponse.ts +++ b/packages/web-api/src/types/response/FilesListResponse.ts @@ -7,272 +7,272 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesListResponse = WebAPICallResult & { - error?: string; - files?: File[]; - needed?: string; - ok?: boolean; - paging?: Paging; + error?: string; + files?: File[]; + needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +287,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +451,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +503,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +531,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -546,7 +546,7 @@ export interface Transcription { export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts index a796baa3e..cea891642 100644 --- a/packages/web-api/src/types/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteAddResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRemoteAddResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts index 6bf10645e..5936bfbe8 100644 --- a/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteInfoResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRemoteInfoResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteListResponse.ts b/packages/web-api/src/types/response/FilesRemoteListResponse.ts index 7b03b1214..2fa197b96 100644 --- a/packages/web-api/src/types/response/FilesRemoteListResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteListResponse.ts @@ -7,272 +7,272 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRemoteListResponse = WebAPICallResult & { - error?: string; - files?: File[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + files?: File[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -287,161 +287,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -451,42 +451,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -503,25 +503,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -531,11 +531,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts b/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts index 51a6f931b..3d9f47e80 100644 --- a/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteRemoveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRemoteRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts index 76f705f8f..5ca48fc30 100644 --- a/packages/web-api/src/types/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteShareResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRemoteShareResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts index 3f0af8c24..fc01a4e8f 100644 --- a/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/types/response/FilesRemoteUpdateResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRemoteUpdateResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts index e42dcc593..202ff9402 100644 --- a/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesRevokePublicURLResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesRevokePublicURLResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts index bc750e32f..6cc07937b 100644 --- a/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts +++ b/packages/web-api/src/types/response/FilesSharedPublicURLResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesSharedPublicURLResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FilesUploadResponse.ts b/packages/web-api/src/types/response/FilesUploadResponse.ts index 75394ad14..c162594b3 100644 --- a/packages/web-api/src/types/response/FilesUploadResponse.ts +++ b/packages/web-api/src/types/response/FilesUploadResponse.ts @@ -7,271 +7,271 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FilesUploadResponse = WebAPICallResult & { - error?: string; - file?: File; - needed?: string; - ok?: boolean; + error?: string; + file?: File; + needed?: string; + ok?: boolean; provided?: string; }; export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -286,161 +286,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -450,42 +450,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -502,25 +502,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -530,11 +530,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts b/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts index 91afb8195..b05a65716 100644 --- a/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts +++ b/packages/web-api/src/types/response/FunctionsCompleteErrorResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FunctionsCompleteErrorResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts b/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts index ece202c2d..e36a7c131 100644 --- a/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts +++ b/packages/web-api/src/types/response/FunctionsCompleteSuccessResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type FunctionsCompleteSuccessResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/GroupsArchiveResponse.ts b/packages/web-api/src/types/response/GroupsArchiveResponse.ts index 016842cbd..7beb10da0 100644 --- a/packages/web-api/src/types/response/GroupsArchiveResponse.ts +++ b/packages/web-api/src/types/response/GroupsArchiveResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsArchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsCloseResponse.ts b/packages/web-api/src/types/response/GroupsCloseResponse.ts index e34006362..cfdaa5e9a 100644 --- a/packages/web-api/src/types/response/GroupsCloseResponse.ts +++ b/packages/web-api/src/types/response/GroupsCloseResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsCloseResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/GroupsCreateChildResponse.ts b/packages/web-api/src/types/response/GroupsCreateChildResponse.ts index c4865bca2..f9632289f 100644 --- a/packages/web-api/src/types/response/GroupsCreateChildResponse.ts +++ b/packages/web-api/src/types/response/GroupsCreateChildResponse.ts @@ -7,49 +7,49 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsCreateChildResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - parent_group?: string; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + parent_group?: string; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsCreateResponse.ts b/packages/web-api/src/types/response/GroupsCreateResponse.ts index 2ef93bc53..d8ce8b1b5 100644 --- a/packages/web-api/src/types/response/GroupsCreateResponse.ts +++ b/packages/web-api/src/types/response/GroupsCreateResponse.ts @@ -7,40 +7,40 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsCreateResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - members?: string[]; - name?: string; - name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + members?: string[]; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsHistoryResponse.ts b/packages/web-api/src/types/response/GroupsHistoryResponse.ts index 5a4455d9b..f7681e343 100644 --- a/packages/web-api/src/types/response/GroupsHistoryResponse.ts +++ b/packages/web-api/src/types/response/GroupsHistoryResponse.ts @@ -7,25 +7,25 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsInfoResponse.ts b/packages/web-api/src/types/response/GroupsInfoResponse.ts index 52002f2d7..be41d184f 100644 --- a/packages/web-api/src/types/response/GroupsInfoResponse.ts +++ b/packages/web-api/src/types/response/GroupsInfoResponse.ts @@ -7,48 +7,48 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsInfoResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsInviteResponse.ts b/packages/web-api/src/types/response/GroupsInviteResponse.ts index b8209bd69..000b74f2f 100644 --- a/packages/web-api/src/types/response/GroupsInviteResponse.ts +++ b/packages/web-api/src/types/response/GroupsInviteResponse.ts @@ -7,49 +7,49 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsInviteResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - name?: string; - name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { subtype?: string; - text?: string; - topic?: string; - ts?: string; - type?: string; - user?: string; + text?: string; + topic?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsKickResponse.ts b/packages/web-api/src/types/response/GroupsKickResponse.ts index 977c79c79..ec6e44a12 100644 --- a/packages/web-api/src/types/response/GroupsKickResponse.ts +++ b/packages/web-api/src/types/response/GroupsKickResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsKickResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsLeaveResponse.ts b/packages/web-api/src/types/response/GroupsLeaveResponse.ts index 77b18ac8d..4c815e187 100644 --- a/packages/web-api/src/types/response/GroupsLeaveResponse.ts +++ b/packages/web-api/src/types/response/GroupsLeaveResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsLeaveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsListResponse.ts b/packages/web-api/src/types/response/GroupsListResponse.ts index 45b3d2937..07c37b2b3 100644 --- a/packages/web-api/src/types/response/GroupsListResponse.ts +++ b/packages/web-api/src/types/response/GroupsListResponse.ts @@ -7,39 +7,39 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsListResponse = WebAPICallResult & { - error?: string; - groups?: Group[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + groups?: Group[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + members?: string[]; + name?: string; name_normalized?: string; - parent_group?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; + parent_group?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsMarkResponse.ts b/packages/web-api/src/types/response/GroupsMarkResponse.ts index 3a3a9a4ad..3b2815cca 100644 --- a/packages/web-api/src/types/response/GroupsMarkResponse.ts +++ b/packages/web-api/src/types/response/GroupsMarkResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsOpenResponse.ts b/packages/web-api/src/types/response/GroupsOpenResponse.ts index 3ff292b60..d15d2a601 100644 --- a/packages/web-api/src/types/response/GroupsOpenResponse.ts +++ b/packages/web-api/src/types/response/GroupsOpenResponse.ts @@ -7,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsOpenResponse = WebAPICallResult & { - already_open?: boolean; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + already_open?: boolean; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsRenameResponse.ts b/packages/web-api/src/types/response/GroupsRenameResponse.ts index 0444e9f45..91a2fadce 100644 --- a/packages/web-api/src/types/response/GroupsRenameResponse.ts +++ b/packages/web-api/src/types/response/GroupsRenameResponse.ts @@ -7,35 +7,35 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsRenameResponse = WebAPICallResult & { - channel?: Channel; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channel?: Channel; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + members?: string[]; + name?: string; name_normalized?: string; - purpose?: Purpose; - topic?: Purpose; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsRepliesResponse.ts b/packages/web-api/src/types/response/GroupsRepliesResponse.ts index 6bb67ef0a..3738f27a3 100644 --- a/packages/web-api/src/types/response/GroupsRepliesResponse.ts +++ b/packages/web-api/src/types/response/GroupsRepliesResponse.ts @@ -7,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts b/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts index d4807a022..523446dd2 100644 --- a/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts +++ b/packages/web-api/src/types/response/GroupsSetPurposeResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsSetPurposeResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - purpose?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + purpose?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsSetTopicResponse.ts b/packages/web-api/src/types/response/GroupsSetTopicResponse.ts index 8c145fb36..3f2523192 100644 --- a/packages/web-api/src/types/response/GroupsSetTopicResponse.ts +++ b/packages/web-api/src/types/response/GroupsSetTopicResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsSetTopicResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - topic?: string; - warning?: string; + topic?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts b/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts index 5e3a0b245..0f0b4d29a 100644 --- a/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts +++ b/packages/web-api/src/types/response/GroupsUnarchiveResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type GroupsUnarchiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ImCloseResponse.ts b/packages/web-api/src/types/response/ImCloseResponse.ts index c32cd6288..b0593efce 100644 --- a/packages/web-api/src/types/response/ImCloseResponse.ts +++ b/packages/web-api/src/types/response/ImCloseResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ImCloseResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ImHistoryResponse.ts b/packages/web-api/src/types/response/ImHistoryResponse.ts index 448e599ab..3b39c2b8a 100644 --- a/packages/web-api/src/types/response/ImHistoryResponse.ts +++ b/packages/web-api/src/types/response/ImHistoryResponse.ts @@ -7,124 +7,124 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ImHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - blocks?: Block[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - block_id?: string; - elements?: Element[]; - fallback?: string; - fields?: Text[]; - image_bytes?: number; + accessory?: Accessory; + alt_text?: string; + block_id?: string; + elements?: Element[]; + fallback?: string; + fields?: Text[]; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - text?: Text; - title?: Text; - type?: string; + image_url?: string; + image_width?: number; + text?: Text; + title?: Text; + type?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - type?: string; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - action_id?: string; - alt_text?: string; - confirm?: Confirm; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_option?: InitialOption; - initial_user?: string; - min_query_length?: number; - placeholder?: Text; - response_url_enabled?: boolean; - style?: string; - text?: Text; - type?: string; - url?: string; - value?: string; + fallback?: string; + filter?: Filter; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_option?: InitialOption; + initial_user?: string; + min_query_length?: number; + placeholder?: Text; + response_url_enabled?: boolean; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; } export interface InitialOption { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/ImListResponse.ts b/packages/web-api/src/types/response/ImListResponse.ts index 50ab29217..ec9bbc5e6 100644 --- a/packages/web-api/src/types/response/ImListResponse.ts +++ b/packages/web-api/src/types/response/ImListResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ImListResponse = WebAPICallResult & { - error?: string; - ims?: Im[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + ims?: Im[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Im { - created?: number; - id?: string; - is_archived?: boolean; - is_im?: boolean; - is_org_shared?: boolean; + created?: number; + id?: string; + is_archived?: boolean; + is_im?: boolean; + is_org_shared?: boolean; is_user_deleted?: boolean; - priority?: number; - user?: string; + priority?: number; + user?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; - warnings?: string[]; + warnings?: string[]; } diff --git a/packages/web-api/src/types/response/ImMarkResponse.ts b/packages/web-api/src/types/response/ImMarkResponse.ts index 37823caee..e77f57a49 100644 --- a/packages/web-api/src/types/response/ImMarkResponse.ts +++ b/packages/web-api/src/types/response/ImMarkResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ImMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/ImOpenResponse.ts b/packages/web-api/src/types/response/ImOpenResponse.ts index ad7d99fa1..c03e50201 100644 --- a/packages/web-api/src/types/response/ImOpenResponse.ts +++ b/packages/web-api/src/types/response/ImOpenResponse.ts @@ -7,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ImOpenResponse = WebAPICallResult & { - already_open?: boolean; - channel?: Channel; - error?: string; - needed?: string; - no_op?: boolean; - ok?: boolean; - provided?: string; + already_open?: boolean; + channel?: Channel; + error?: string; + needed?: string; + no_op?: boolean; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Channel { diff --git a/packages/web-api/src/types/response/ImRepliesResponse.ts b/packages/web-api/src/types/response/ImRepliesResponse.ts index 45ec9d8f1..6fda8da46 100644 --- a/packages/web-api/src/types/response/ImRepliesResponse.ts +++ b/packages/web-api/src/types/response/ImRepliesResponse.ts @@ -7,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ImRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/MigrationExchangeResponse.ts b/packages/web-api/src/types/response/MigrationExchangeResponse.ts index 8aef633c7..7e9263b41 100644 --- a/packages/web-api/src/types/response/MigrationExchangeResponse.ts +++ b/packages/web-api/src/types/response/MigrationExchangeResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MigrationExchangeResponse = WebAPICallResult & { - enterprise_id?: string; - error?: string; + enterprise_id?: string; + error?: string; invalid_user_ids?: string[]; - needed?: string; - ok?: boolean; - provided?: string; - team_id?: string; - user_id_map?: { [key: string]: string }; - warning?: string; + needed?: string; + ok?: boolean; + provided?: string; + team_id?: string; + user_id_map?: { [key: string]: string }; + warning?: string; }; diff --git a/packages/web-api/src/types/response/MpimCloseResponse.ts b/packages/web-api/src/types/response/MpimCloseResponse.ts index 5bf278204..14796d777 100644 --- a/packages/web-api/src/types/response/MpimCloseResponse.ts +++ b/packages/web-api/src/types/response/MpimCloseResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MpimCloseResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimHistoryResponse.ts b/packages/web-api/src/types/response/MpimHistoryResponse.ts index b1aaf65a6..001c684fc 100644 --- a/packages/web-api/src/types/response/MpimHistoryResponse.ts +++ b/packages/web-api/src/types/response/MpimHistoryResponse.ts @@ -7,44 +7,44 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MpimHistoryResponse = WebAPICallResult & { channel_actions_count?: number; - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; - response_metadata?: ResponseMetadata; - warning?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - is_starred?: boolean; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + is_starred?: boolean; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/MpimListResponse.ts b/packages/web-api/src/types/response/MpimListResponse.ts index 4cfca7eb9..bf878b790 100644 --- a/packages/web-api/src/types/response/MpimListResponse.ts +++ b/packages/web-api/src/types/response/MpimListResponse.ts @@ -7,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MpimListResponse = WebAPICallResult & { - error?: string; - groups?: Group[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + groups?: Group[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - members?: string[]; - name?: string; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + members?: string[]; + name?: string; name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; + priority?: number; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimMarkResponse.ts b/packages/web-api/src/types/response/MpimMarkResponse.ts index be118eab2..1a78e6170 100644 --- a/packages/web-api/src/types/response/MpimMarkResponse.ts +++ b/packages/web-api/src/types/response/MpimMarkResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MpimMarkResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimOpenResponse.ts b/packages/web-api/src/types/response/MpimOpenResponse.ts index 8fe98f761..6d6bf6cb2 100644 --- a/packages/web-api/src/types/response/MpimOpenResponse.ts +++ b/packages/web-api/src/types/response/MpimOpenResponse.ts @@ -7,55 +7,55 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MpimOpenResponse = WebAPICallResult & { - error?: string; - group?: Group; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + group?: Group; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { - bot_id?: string; - bot_profile?: BotProfile; + bot_id?: string; + bot_profile?: BotProfile; parent_user_id?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -67,9 +67,9 @@ export interface Icons { } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/MpimRepliesResponse.ts b/packages/web-api/src/types/response/MpimRepliesResponse.ts index 9ef9b5b3b..a963510f0 100644 --- a/packages/web-api/src/types/response/MpimRepliesResponse.ts +++ b/packages/web-api/src/types/response/MpimRepliesResponse.ts @@ -7,42 +7,42 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type MpimRepliesResponse = WebAPICallResult & { - error?: string; - has_more?: boolean; - messages?: Message[]; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + has_more?: boolean; + messages?: Message[]; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - warning?: string; + warning?: string; }; export interface Message { - bot_id?: string; - bot_profile?: BotProfile; - last_read?: string; - latest_reply?: string; - parent_user_id?: string; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: BotProfile; + last_read?: string; + latest_reply?: string; + parent_user_id?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - user?: string; + subscribed?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } diff --git a/packages/web-api/src/types/response/OauthAccessResponse.ts b/packages/web-api/src/types/response/OauthAccessResponse.ts index 4207ba3c5..7c75bfeb5 100644 --- a/packages/web-api/src/types/response/OauthAccessResponse.ts +++ b/packages/web-api/src/types/response/OauthAccessResponse.ts @@ -7,50 +7,50 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type OauthAccessResponse = WebAPICallResult & { - access_token?: string; + access_token?: string; authorizing_user?: User; - bot?: Bot; - enterprise_id?: string; - error?: string; + bot?: Bot; + enterprise_id?: string; + error?: string; incoming_webhook?: IncomingWebhook; - installer_user?: User; - needed?: string; - ok?: boolean; - provided?: string; - scope?: string; - scopes?: Scopes; - team_id?: string; - team_name?: string; - token_type?: string; - user_id?: string; - warning?: string; + installer_user?: User; + needed?: string; + ok?: boolean; + provided?: string; + scope?: string; + scopes?: Scopes; + team_id?: string; + team_name?: string; + token_type?: string; + user_id?: string; + warning?: string; }; export interface User { app_home?: string; - user_id?: string; + user_id?: string; } export interface Bot { bot_access_token?: string; - bot_user_id?: string; + bot_user_id?: string; } export interface IncomingWebhook { - channel?: string; - channel_id?: string; + channel?: string; + channel_id?: string; configuration_url?: string; - url?: string; + url?: string; } export interface Scopes { app_home?: string[]; - channel?: string[]; - group?: string[]; - im?: string[]; - mpim?: string[]; - team?: string[]; - user?: string[]; + channel?: string[]; + group?: string[]; + im?: string[]; + mpim?: string[]; + team?: string[]; + user?: string[]; } diff --git a/packages/web-api/src/types/response/OauthTokenResponse.ts b/packages/web-api/src/types/response/OauthTokenResponse.ts index e9937283c..ee49fcc85 100644 --- a/packages/web-api/src/types/response/OauthTokenResponse.ts +++ b/packages/web-api/src/types/response/OauthTokenResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type OauthTokenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; req_method?: string; }; diff --git a/packages/web-api/src/types/response/OauthV2AccessResponse.ts b/packages/web-api/src/types/response/OauthV2AccessResponse.ts index d799e571b..15d1beb0d 100644 --- a/packages/web-api/src/types/response/OauthV2AccessResponse.ts +++ b/packages/web-api/src/types/response/OauthV2AccessResponse.ts @@ -7,44 +7,44 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type OauthV2AccessResponse = WebAPICallResult & { - access_token?: string; - app_id?: string; - authed_user?: AuthedUser; - bot_user_id?: string; - enterprise?: Enterprise; - error?: string; - expires_in?: number; - incoming_webhook?: IncomingWebhook; + access_token?: string; + app_id?: string; + authed_user?: AuthedUser; + bot_user_id?: string; + enterprise?: Enterprise; + error?: string; + expires_in?: number; + incoming_webhook?: IncomingWebhook; is_enterprise_install?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - refresh_token?: string; - scope?: string; - team?: Enterprise; - token_type?: string; - warning?: string; + needed?: string; + ok?: boolean; + provided?: string; + refresh_token?: string; + scope?: string; + team?: Enterprise; + token_type?: string; + warning?: string; }; export interface AuthedUser { - access_token?: string; - expires_in?: number; - id?: string; + access_token?: string; + expires_in?: number; + id?: string; refresh_token?: string; - scope?: string; - token_type?: string; + scope?: string; + token_type?: string; } export interface Enterprise { - id?: string; + id?: string; name?: string; } export interface IncomingWebhook { - channel?: string; - channel_id?: string; + channel?: string; + channel_id?: string; configuration_url?: string; - url?: string; + url?: string; } diff --git a/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts b/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts index 2f7048e42..820d19131 100644 --- a/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts +++ b/packages/web-api/src/types/response/OauthV2ExchangeResponse.ts @@ -7,47 +7,47 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type OauthV2ExchangeResponse = WebAPICallResult & { - access_token?: string; - app_id?: string; - authed_user?: AuthedUser; - bot_user_id?: string; - enterprise?: Enterprise; - error?: string; - expires_in?: number; - incoming_webhook?: IncomingWebhook; + access_token?: string; + app_id?: string; + authed_user?: AuthedUser; + bot_user_id?: string; + enterprise?: Enterprise; + error?: string; + expires_in?: number; + incoming_webhook?: IncomingWebhook; is_enterprise_install?: boolean; - needed?: string; - ok?: boolean; - provided?: string; - refresh_token?: string; - response_metadata?: ResponseMetadata; - scope?: string; - team?: Enterprise; - token_type?: string; - warning?: string; + needed?: string; + ok?: boolean; + provided?: string; + refresh_token?: string; + response_metadata?: ResponseMetadata; + scope?: string; + team?: Enterprise; + token_type?: string; + warning?: string; }; export interface AuthedUser { - access_token?: string; - expires_in?: number; - id?: string; + access_token?: string; + expires_in?: number; + id?: string; refresh_token?: string; - scope?: string; - token_type?: string; + scope?: string; + token_type?: string; } export interface Enterprise { - id?: string; + id?: string; name?: string; } export interface IncomingWebhook { - channel?: string; - channel_id?: string; + channel?: string; + channel_id?: string; configuration_url?: string; - url?: string; + url?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts b/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts index e4baf1cac..f35030255 100644 --- a/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts +++ b/packages/web-api/src/types/response/OpenIDConnectTokenResponse.ts @@ -7,16 +7,16 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type OpenIDConnectTokenResponse = WebAPICallResult & { - access_token?: string; - error?: string; - expires_in?: number; - id_token?: string; - needed?: string; - ok?: boolean; - provided?: string; + access_token?: string; + error?: string; + expires_in?: number; + id_token?: string; + needed?: string; + ok?: boolean; + provided?: string; refresh_token?: string; - token_type?: string; - warning?: string; + token_type?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts b/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts index 303fcba31..5c4d16781 100644 --- a/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts +++ b/packages/web-api/src/types/response/OpenIDConnectUserInfoResponse.ts @@ -7,41 +7,41 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type OpenIDConnectUserInfoResponse = WebAPICallResult & { - date_email_verified?: number; - email?: string; - email_verified?: boolean; - error?: string; - family_name?: string; - given_name?: string; + date_email_verified?: number; + email?: string; + email_verified?: boolean; + error?: string; + family_name?: string; + given_name?: string; 'https://slack.com/enterprise_domain'?: string; - 'https://slack.com/enterprise_id'?: string; - 'https://slack.com/enterprise_name'?: string; - 'https://slack.com/team_domain'?: string; - 'https://slack.com/team_id'?: string; - 'https://slack.com/team_image_102'?: string; - 'https://slack.com/team_image_132'?: string; - 'https://slack.com/team_image_230'?: string; - 'https://slack.com/team_image_34'?: string; - 'https://slack.com/team_image_44'?: string; - 'https://slack.com/team_image_68'?: string; - 'https://slack.com/team_image_88'?: string; - 'https://slack.com/team_name'?: string; - 'https://slack.com/user_id'?: string; - 'https://slack.com/user_image_1024'?: string; - 'https://slack.com/user_image_192'?: string; - 'https://slack.com/user_image_24'?: string; - 'https://slack.com/user_image_32'?: string; - 'https://slack.com/user_image_48'?: string; - 'https://slack.com/user_image_512'?: string; - 'https://slack.com/user_image_72'?: string; - locale?: string; - name?: string; - needed?: string; - ok?: boolean; - picture?: string; - provided?: string; - sub?: string; - warning?: string; + 'https://slack.com/enterprise_id'?: string; + 'https://slack.com/enterprise_name'?: string; + 'https://slack.com/team_domain'?: string; + 'https://slack.com/team_id'?: string; + 'https://slack.com/team_image_102'?: string; + 'https://slack.com/team_image_132'?: string; + 'https://slack.com/team_image_230'?: string; + 'https://slack.com/team_image_34'?: string; + 'https://slack.com/team_image_44'?: string; + 'https://slack.com/team_image_68'?: string; + 'https://slack.com/team_image_88'?: string; + 'https://slack.com/team_name'?: string; + 'https://slack.com/user_id'?: string; + 'https://slack.com/user_image_1024'?: string; + 'https://slack.com/user_image_192'?: string; + 'https://slack.com/user_image_24'?: string; + 'https://slack.com/user_image_32'?: string; + 'https://slack.com/user_image_48'?: string; + 'https://slack.com/user_image_512'?: string; + 'https://slack.com/user_image_72'?: string; + locale?: string; + name?: string; + needed?: string; + ok?: boolean; + picture?: string; + provided?: string; + sub?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/PinsAddResponse.ts b/packages/web-api/src/types/response/PinsAddResponse.ts index 3112a54d0..9f9faec25 100644 --- a/packages/web-api/src/types/response/PinsAddResponse.ts +++ b/packages/web-api/src/types/response/PinsAddResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type PinsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/PinsListResponse.ts b/packages/web-api/src/types/response/PinsListResponse.ts index 47f530450..4a828d781 100644 --- a/packages/web-api/src/types/response/PinsListResponse.ts +++ b/packages/web-api/src/types/response/PinsListResponse.ts @@ -7,279 +7,279 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type PinsListResponse = WebAPICallResult & { - error?: string; - items?: Item[]; - needed?: string; - ok?: boolean; + error?: string; + items?: Item[]; + needed?: string; + ok?: boolean; provided?: string; }; export interface Item { - comment?: string; - created?: number; + comment?: string; + created?: number; created_by?: string; - file?: File; - type?: string; + file?: File; + type?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -294,161 +294,161 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: Text | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: Text[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: Text | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: Text[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: Text; - thumbnail_url?: string; - title?: Text | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: string; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: Text; + thumbnail_url?: string; + title?: Text | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: string; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Text; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Text; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Text; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Text; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: Text; - deny?: Text; - style?: string; - text?: Text; - title?: Text; + deny?: Text; + style?: string; + text?: Text; + title?: Text; } export interface Text { - emoji?: boolean; - text?: string; - type?: TextType; + emoji?: boolean; + text?: string; + type?: TextType; verbatim?: boolean; } @@ -458,42 +458,42 @@ export enum TextType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -510,25 +510,25 @@ export enum ElementType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Text; - text?: Text; - url?: string; - value?: string; + text?: Text; + url?: string; + value?: string; } export interface OptionGroup { - label?: Text; + label?: Text; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -538,11 +538,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } diff --git a/packages/web-api/src/types/response/PinsRemoveResponse.ts b/packages/web-api/src/types/response/PinsRemoveResponse.ts index c4e54ed52..8c2b2738e 100644 --- a/packages/web-api/src/types/response/PinsRemoveResponse.ts +++ b/packages/web-api/src/types/response/PinsRemoveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type PinsRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ReactionsAddResponse.ts b/packages/web-api/src/types/response/ReactionsAddResponse.ts index c9633c72d..df09bf79e 100644 --- a/packages/web-api/src/types/response/ReactionsAddResponse.ts +++ b/packages/web-api/src/types/response/ReactionsAddResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ReactionsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ReactionsGetResponse.ts b/packages/web-api/src/types/response/ReactionsGetResponse.ts index df705c677..3003f59ae 100644 --- a/packages/web-api/src/types/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/types/response/ReactionsGetResponse.ts @@ -7,146 +7,146 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ReactionsGetResponse = WebAPICallResult & { - channel?: string; - error?: string; - message?: Message; - needed?: string; - ok?: boolean; + channel?: string; + error?: string; + message?: Message; + needed?: string; + ok?: boolean; provided?: string; - type?: string; + type?: string; }; export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - permalink?: string; - reactions?: Reaction[]; - room?: Room; - team?: string; - text?: string; - ts?: string; - type?: string; - user?: string; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + permalink?: string; + reactions?: Reaction[]; + room?: Room; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: File; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: File; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: Confirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Confirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -156,42 +156,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -215,25 +215,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface OptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: Option[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -243,258 +243,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface File { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -509,103 +509,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -620,64 +620,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -686,11 +686,11 @@ export interface Transcription { } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -702,40 +702,39 @@ export interface Icons { } export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: Knocks; - last_invite_status_by_user?: Knocks; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: Knocks; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: Knocks; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } -export interface Knocks { -} +export type Knocks = {}; diff --git a/packages/web-api/src/types/response/ReactionsListResponse.ts b/packages/web-api/src/types/response/ReactionsListResponse.ts index b9a83f4e8..06158352f 100644 --- a/packages/web-api/src/types/response/ReactionsListResponse.ts +++ b/packages/web-api/src/types/response/ReactionsListResponse.ts @@ -7,172 +7,172 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ReactionsListResponse = WebAPICallResult & { - error?: string; - items?: Item[]; - needed?: string; - ok?: boolean; - paging?: Paging; - provided?: string; + error?: string; + items?: Item[]; + needed?: string; + ok?: boolean; + paging?: Paging; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Item { channel?: string; message?: ItemMessage; - type?: string; + type?: string; } export interface ItemMessage { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: Attachment[]; - blocks?: AssistantAppThreadBlock[]; - bot_id?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - icons?: BotProfileIcons; - inviter?: string; - is_locked?: boolean; - latest_reply?: string; - no_notifications?: boolean; - parent_user_id?: string; - permalink?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; - reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; + attachments?: Attachment[]; + blocks?: AssistantAppThreadBlock[]; + bot_id?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + icons?: BotProfileIcons; + inviter?: string; + is_locked?: boolean; + latest_reply?: string; + no_notifications?: boolean; + parent_user_id?: string; + permalink?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; + reply_users_count?: number; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: AssistantAppThreadBlock[]; + title?: string; + title_blocks?: AssistantAppThreadBlock[]; } export interface AssistantAppThreadBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -182,42 +182,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number | string; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -241,25 +241,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -269,258 +269,258 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: FileBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: FileBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface FileBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export enum BlockType { @@ -535,103 +535,103 @@ export enum BlockType { } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -646,64 +646,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -712,105 +712,105 @@ export interface Transcription { } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: FileBlock[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: FileBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -821,48 +821,47 @@ export interface AttachmentField { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: Knocks; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: Knocks; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface Knocks { -} +export type Knocks = {}; export interface PurpleListRecord { record?: Record; @@ -870,91 +869,91 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: FieldMessage; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: FieldMessage; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface FieldMessage { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: FileBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: PurpleFile; - files?: any[]; - hidden?: boolean; - icons?: RootIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: FileBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: PurpleFile; + files?: any[]; + hidden?: boolean; + icons?: RootIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -966,208 +965,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: number; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface PurpleFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Knocks; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Knocks; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface RootIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1179,80 +1178,80 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: string[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - knocks?: Knocks; - last_invite_status_by_user?: Knocks; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: string[]; - participants?: string[]; - participants_camera_off?: string[]; - participants_camera_on?: string[]; + app_id?: string; + attached_file_ids?: string[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + knocks?: Knocks; + last_invite_status_by_user?: Knocks; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: string[]; + participants?: string[]; + participants_camera_off?: string[]; + participants_camera_on?: string[]; participants_screenshare_off?: string[]; - participants_screenshare_on?: string[]; - pending_invitees?: Knocks; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: string[]; + pending_invitees?: Knocks; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: RootIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: RootIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1265,35 +1264,35 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: FieldMessage; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/ReactionsRemoveResponse.ts b/packages/web-api/src/types/response/ReactionsRemoveResponse.ts index 5515a40a3..e1febc8c7 100644 --- a/packages/web-api/src/types/response/ReactionsRemoveResponse.ts +++ b/packages/web-api/src/types/response/ReactionsRemoveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ReactionsRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/RemindersAddResponse.ts b/packages/web-api/src/types/response/RemindersAddResponse.ts index 91206db53..e6e41fd3f 100644 --- a/packages/web-api/src/types/response/RemindersAddResponse.ts +++ b/packages/web-api/src/types/response/RemindersAddResponse.ts @@ -7,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RemindersAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; - reminder?: Reminder; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; + reminder?: Reminder; response_metadata?: ResponseMetadata; }; export interface Reminder { complete_ts?: number; - creator?: string; - id?: string; - recurring?: boolean; - text?: string; - time?: number; - user?: string; + creator?: string; + id?: string; + recurring?: boolean; + text?: string; + time?: number; + user?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/RemindersCompleteResponse.ts b/packages/web-api/src/types/response/RemindersCompleteResponse.ts index b230f8d0c..3b8073f26 100644 --- a/packages/web-api/src/types/response/RemindersCompleteResponse.ts +++ b/packages/web-api/src/types/response/RemindersCompleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RemindersCompleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/RemindersDeleteResponse.ts b/packages/web-api/src/types/response/RemindersDeleteResponse.ts index 47d2fa355..87ef2f6c2 100644 --- a/packages/web-api/src/types/response/RemindersDeleteResponse.ts +++ b/packages/web-api/src/types/response/RemindersDeleteResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RemindersDeleteResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/RemindersInfoResponse.ts b/packages/web-api/src/types/response/RemindersInfoResponse.ts index e869d13dc..eead879d0 100644 --- a/packages/web-api/src/types/response/RemindersInfoResponse.ts +++ b/packages/web-api/src/types/response/RemindersInfoResponse.ts @@ -7,21 +7,21 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RemindersInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; reminder?: Reminder; }; export interface Reminder { complete_ts?: number; - creator?: string; - id?: string; - recurring?: boolean; - text?: string; - time?: number; - user?: string; + creator?: string; + id?: string; + recurring?: boolean; + text?: string; + time?: number; + user?: string; } diff --git a/packages/web-api/src/types/response/RemindersListResponse.ts b/packages/web-api/src/types/response/RemindersListResponse.ts index cca70f586..98894b757 100644 --- a/packages/web-api/src/types/response/RemindersListResponse.ts +++ b/packages/web-api/src/types/response/RemindersListResponse.ts @@ -7,28 +7,28 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RemindersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; reminders?: Reminder[]; }; export interface Reminder { - channel?: string; + channel?: string; complete_ts?: number; - creator?: string; - id?: string; - recurrence?: Recurrence; - recurring?: boolean; - text?: string; - time?: number; - user?: string; + creator?: string; + id?: string; + recurrence?: Recurrence; + recurring?: boolean; + text?: string; + time?: number; + user?: string; } export interface Recurrence { frequency?: string; - weekdays?: string[]; + weekdays?: string[]; } diff --git a/packages/web-api/src/types/response/RtmConnectResponse.ts b/packages/web-api/src/types/response/RtmConnectResponse.ts index f1d99862c..f10966184 100644 --- a/packages/web-api/src/types/response/RtmConnectResponse.ts +++ b/packages/web-api/src/types/response/RtmConnectResponse.ts @@ -7,24 +7,24 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RtmConnectResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - self?: Self; - team?: Team; - url?: string; + self?: Self; + team?: Team; + url?: string; }; export interface Self { - id?: string; + id?: string; name?: string; } export interface Team { domain?: string; - id?: string; - name?: string; + id?: string; + name?: string; } diff --git a/packages/web-api/src/types/response/RtmStartResponse.ts b/packages/web-api/src/types/response/RtmStartResponse.ts index 783d7bf5c..c7be070b6 100644 --- a/packages/web-api/src/types/response/RtmStartResponse.ts +++ b/packages/web-api/src/types/response/RtmStartResponse.ts @@ -7,46 +7,46 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type RtmStartResponse = WebAPICallResult & { - accept_tos_url?: string; - bots?: Bot[]; - cache_ts?: number; - cache_ts_version?: string; - cache_version?: string; - can_manage_shared_channels?: boolean; - channels?: Channel[]; - dnd?: Dnd; - error?: string; - groups?: Group[]; - ims?: Im[]; - is_europe?: boolean; - latest_event_ts?: string; - links?: Links; + accept_tos_url?: string; + bots?: Bot[]; + cache_ts?: number; + cache_ts_version?: string; + cache_version?: string; + can_manage_shared_channels?: boolean; + channels?: Channel[]; + dnd?: Dnd; + error?: string; + groups?: Group[]; + ims?: Im[]; + is_europe?: boolean; + latest_event_ts?: string; + links?: Links; mobile_app_requires_upgrade?: boolean; - needed?: string; - non_threadable_channels?: string[]; - ok?: boolean; - provided?: string; - read_only_channels?: string[]; - response_metadata?: ResponseMetadata; - self?: Self; - subteams?: Subteams; - team?: Team; - thread_only_channels?: string[]; - url?: string; - users?: User[]; + needed?: string; + non_threadable_channels?: string[]; + ok?: boolean; + provided?: string; + read_only_channels?: string[]; + response_metadata?: ResponseMetadata; + self?: Self; + subteams?: Subteams; + team?: Team; + thread_only_channels?: string[]; + url?: string; + users?: User[]; }; export interface Bot { - app_id?: Appid; - deleted?: boolean; - icons?: BotIcons; - id?: Id; + app_id?: Appid; + deleted?: boolean; + icons?: BotIcons; + id?: Id; is_workflow_bot?: boolean; - name?: string; - team_id?: string; - updated?: number; + name?: string; + team_id?: string; + updated?: number; } export enum Appid { @@ -67,202 +67,202 @@ export enum Id { export interface Channel { connected_limited_team_ids?: string[]; - connected_team_ids?: string[]; - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - has_pins?: boolean; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_group?: boolean; - is_im?: boolean; - is_member?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; + connected_team_ids?: string[]; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + has_pins?: boolean; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_group?: boolean; + is_im?: boolean; + is_member?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface Dnd { - dnd_enabled?: boolean; - next_dnd_end_ts?: number; + dnd_enabled?: boolean; + next_dnd_end_ts?: number; next_dnd_start_ts?: number; - snooze_enabled?: boolean; + snooze_enabled?: boolean; } export interface Group { - created?: number; - creator?: string; - id?: string; - is_archived?: boolean; - is_group?: boolean; - is_mpim?: boolean; - is_open?: boolean; - is_read_only?: boolean; - is_thread_only?: boolean; - last_read?: string; - latest?: Latest; - members?: string[]; - name?: string; - name_normalized?: string; - parent_group?: string; - priority?: number; - purpose?: Purpose; - topic?: Purpose; - unread_count?: number; + created?: number; + creator?: string; + id?: string; + is_archived?: boolean; + is_group?: boolean; + is_mpim?: boolean; + is_open?: boolean; + is_read_only?: boolean; + is_thread_only?: boolean; + last_read?: string; + latest?: Latest; + members?: string[]; + name?: string; + name_normalized?: string; + parent_group?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; unread_count_display?: number; } export interface Latest { - attachments?: Attachment[]; - blocks?: LatestBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: Bot; - client_msg_id?: string; + attachments?: Attachment[]; + blocks?: LatestBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: Bot; + client_msg_id?: string; display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - icons?: MessageIcons; + edited?: Edited; + files?: FileElement[]; + icons?: MessageIcons; parent_user_id?: string; - reactions?: string[]; - root?: Root; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; - x_files?: string[]; + reactions?: string[]; + root?: Root; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; + x_files?: string[]; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: TitleBlockElement[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: ActionType; - url?: string; - value?: string; + style?: string; + text?: string; + type?: ActionType; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -293,100 +293,100 @@ export enum ActionType { } export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: ActionType; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: ActionType; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -396,42 +396,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: ActionType; + indent?: number; + offset?: number; + style?: string; + type?: ActionType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -448,25 +448,25 @@ export enum PurpleType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -476,11 +476,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -502,263 +502,263 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlockElement[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -773,64 +773,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -839,48 +839,47 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface ListShares { -} +export type ListShares = {}; export interface PurpleListRecord { record?: Record; @@ -888,294 +887,294 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: Bot; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + bot_link?: string; + bot_profile?: Bot; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: any[]; + title?: string; + title_blocks?: any[]; } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1187,77 +1186,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: Bot; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: Edited[]; - reply_count?: number; - reply_users?: string[]; + bot_id?: string; + bot_profile?: Bot; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: Edited[]; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1270,142 +1269,142 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface LatestBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Im { context_team_id?: string; - created?: number; - has_pins?: boolean; - id?: string; - is_archived?: boolean; - is_im?: boolean; - is_open?: boolean; - is_org_shared?: boolean; - last_read?: string; - priority?: number; - user?: string; + created?: number; + has_pins?: boolean; + id?: string; + is_archived?: boolean; + is_im?: boolean; + is_open?: boolean; + is_org_shared?: boolean; + last_read?: string; + priority?: number; + user?: string; } export interface Links { @@ -1417,493 +1416,493 @@ export interface ResponseMetadata { } export interface Self { - created?: number; - first_login?: number; - id?: string; + created?: number; + first_login?: number; + id?: string; manual_presence?: string; - name?: string; - prefs?: SelfPrefs; + name?: string; + prefs?: SelfPrefs; } export interface SelfPrefs { - a11y_animations?: boolean; - a11y_dyslexic?: boolean; - a11y_play_sound_for_incoming_dm?: boolean; - a11y_play_sound_for_incoming_dm_choice?: string; - a11y_play_sound_for_sent_dm?: boolean; - a11y_play_sound_for_sent_dm_choice?: string; - a11y_read_out_incoming_dm?: boolean; - a11y_screen_reader_message_label_date_time_first?: boolean; - activity_view?: string; - add_apps_prompt_dismissed?: boolean; - add_channel_prompt_dismissed?: boolean; - add_prompt_interacted?: boolean; - all_channels_loud?: boolean; - all_notifications_prefs?: string; - all_unreads_section_filter?: string; - all_unreads_sort_order?: string; - allow_calls_to_set_current_status?: boolean; - allow_cmd_tab_iss?: boolean; - allowed_unfurl_senders?: string; - analytics_upsell_coachmark_seen?: boolean; - app_manifest_schema_format?: string; - app_subdomain_check_completed?: number; - arrow_history?: boolean; - at_channel_suppressed_channels?: string; - box_enabled?: boolean; - browsers_dismissed_channels_low_results_education?: boolean; - browsers_dismissed_files_low_results_education?: boolean; - browsers_dismissed_initial_activity_education?: boolean; - browsers_dismissed_initial_drafts_education?: boolean; - browsers_dismissed_initial_saved_education?: boolean; - browsers_dismissed_people_low_results_education?: boolean; - browsers_dismissed_user_groups_low_results_education?: boolean; - browsers_seen_initial_activity_education?: boolean; - browsers_seen_initial_channels_education?: boolean; - browsers_seen_initial_drafts_education?: boolean; - browsers_seen_initial_files_education?: boolean; - browsers_seen_initial_people_education?: boolean; - browsers_seen_initial_saved_education?: boolean; - browsers_seen_initial_user_groups_education?: boolean; - calls_disconnect_on_lock?: boolean; - calls_survey_last_seen?: string; - channel_canvas_variant?: number; - channel_sections?: string; - channel_sidebar_hide_browse_dms_link?: boolean; - channel_sidebar_hide_invite?: boolean; - channel_sort?: string; - chime_access_check_completed?: number; - clicked_close_onboarding_synth_view_banner?: boolean; - client_logs_pri?: string; - clips_feedback_survey_last_trigger_attempt?: number; - color_names_in_list?: boolean; - composer_nux?: string; - confirm_clear_all_unreads?: boolean; - confirm_sh_call_start?: boolean; - confirm_user_marked_away?: boolean; - connect_dm_early_access?: boolean; - contextual_help_reset_count?: number; - contextual_message_shortcuts_modal_was_seen?: boolean; - convert_emoticons?: boolean; - deprecation_banner_last_seen?: number; - deprecation_modal_last_seen?: number; - deprecation_toast_last_seen?: number; - desktop_client_ids?: string; - dismissed_app_config_redesign_coachmark?: boolean; - dismissed_app_launcher_atlassian_promo?: boolean; - dismissed_app_launcher_limit?: boolean; - dismissed_app_launcher_welcome?: boolean; - dismissed_app_manifest_coachmark?: boolean; - dismissed_app_manifest_description?: boolean; - dismissed_banner_download_ssb_prompt?: boolean; - dismissed_connect_auto_approval_modal?: string; - dismissed_fullscreen_download_ssb_prompt?: boolean; - dismissed_gov_slack_first_time_popup?: boolean; - dismissed_installed_app_dm_suggestions?: string; - dismissed_scdm_education?: boolean; - dismissed_scroll_search_tooltip_count?: number; - dismissed_sent_page_education?: boolean; - display_display_names?: boolean; - display_real_names_override?: number; - dnd_after_friday?: string; - dnd_after_monday?: string; - dnd_after_saturday?: string; - dnd_after_sunday?: string; - dnd_after_thursday?: string; - dnd_after_tuesday?: string; - dnd_after_wednesday?: string; - dnd_before_friday?: string; - dnd_before_monday?: string; - dnd_before_saturday?: string; - dnd_before_sunday?: string; - dnd_before_thursday?: string; - dnd_before_tuesday?: string; - dnd_before_wednesday?: string; - dnd_custom_new_badge_seen?: boolean; - dnd_days?: string; - dnd_enabled?: boolean; - dnd_enabled_friday?: string; - dnd_enabled_monday?: string; - dnd_enabled_saturday?: string; - dnd_enabled_sunday?: string; - dnd_enabled_thursday?: string; - dnd_enabled_tuesday?: string; - dnd_enabled_wednesday?: string; - dnd_end_hour?: string; - dnd_notification_schedule_new_badge_seen?: boolean; - dnd_start_hour?: string; - dnd_weekdays_off_allday?: boolean; - dropbox_enabled?: boolean; - edge_upload_proxy_check_completed?: number; - email_alerts?: string; - email_alerts_sleep_until?: number; - email_developer?: boolean; - email_offers?: boolean; - email_research?: boolean; - email_tips?: boolean; - email_weekly?: boolean; - emoji_autocomplete_big?: boolean; - emoji_mode?: string; - emoji_packs_clicked_collection_cta?: boolean; - emoji_packs_clicked_picker_cta?: boolean; - emoji_packs_clicked_picker_post_install_cta?: boolean; - emoji_packs_most_recent_available_time?: number; - emoji_use?: string; - emoji_use_org?: string; - enable_all_dms_view?: boolean; - enable_app_browser_view?: boolean; - enable_app_config_redesign?: boolean; - enable_channel_browser_view?: boolean; - enable_drafts_view?: boolean; - enable_file_browser_view?: boolean; - enable_file_browser_view_for_docs?: boolean; - enable_hq_view?: boolean; - enable_later_view?: boolean; - enable_media_captions?: boolean; - enable_mentions_and_reactions_view?: boolean; - enable_people_browser_view?: boolean; - enable_quip_file_browser_view?: boolean; - enable_react_emoji_picker?: boolean; - enable_reminders_view?: boolean; - enable_saved_items_view?: boolean; - enable_scheduled_view?: boolean; - enable_sent_view?: boolean; - enable_shortcuts_view?: boolean; - enable_slack_connect_view?: boolean; - enable_slack_connect_view_2?: number; - enable_streamline_view?: boolean; - enable_unread_view?: boolean; - ent_org_wide_channels_sidebar?: boolean; - enter_is_special_in_tbt?: boolean; - enterprise_mdm_custom_msg?: string; - enterprise_migration_seen?: boolean; - expand_inline_imgs?: boolean; - expand_internal_inline_imgs?: boolean; - expand_non_media_attachments?: boolean; - expand_snippets?: boolean; - f_key_search?: boolean; - failover_proxy_check_completed?: number; - file_picker_variant?: number; - first_seen_new_badge_in_more_menu_sidebar?: number; - first_seen_sent_page_in_sidebar?: number; - flannel_server_pool?: string; - folder_data?: string; - folders_enabled?: boolean; - frecency?: string; - frecency_ent_jumper?: string; - frecency_jumper?: string; - fuller_timestamps?: boolean; - graphic_emoticons?: boolean; - growls_enabled?: boolean; - growth_all_banners_prefs?: string; - growth_msg_limit_approaching_cta_count?: number; - growth_msg_limit_approaching_cta_ts?: number; - growth_msg_limit_long_reached_cta_count?: number; - growth_msg_limit_long_reached_cta_last_ts?: number; - growth_msg_limit_reached_cta_count?: number; - growth_msg_limit_reached_cta_last_ts?: number; - growth_msg_limit_sixty_day_banner_cta_count?: number; - growth_msg_limit_sixty_day_banner_cta_last_ts?: number; - has_acknowledged_shortcut_speedbump?: boolean; - has_created_channel?: boolean; - has_created_channel_section?: boolean; - has_dismissed_google_directory_coachmark?: boolean; - has_drafted_message?: boolean; - has_invited?: boolean; - has_joined_huddle?: boolean; - has_received_mention_or_reaction?: boolean; - has_received_threaded_message?: boolean; - has_recently_shared_a_channel?: boolean; - has_searched?: boolean; - has_sent_ten_messages?: number; - has_starred_item?: boolean; - has_uploaded?: boolean; - has_used_quickswitcher_shortcut?: boolean; - help_flexpane_clips_card_seen?: boolean; - help_flexpane_slack_connect_card_seen?: boolean; - help_menu_open_timestamp?: number; - help_modal_consult_banner_dismissed?: boolean; - help_modal_open_timestamp?: number; - hidden_users?: string; - hide_external_members_sharing_speed_bump?: boolean; - hide_hex_swatch?: boolean; - hide_user_group_info_pane?: boolean; - highlight_words?: string; - huddle_invite_sound?: string; - huddle_survey_last_seen?: string; - huddles_allow_smart_notif?: boolean; - huddles_cc_by_default?: boolean; - huddles_chime_new_endpoints_check_completed?: number; - huddles_disconnect_on_lock?: boolean; - huddles_global_mute?: boolean; - huddles_mini_panel?: boolean; - huddles_mute_by_default?: boolean; - huddles_play_music_when_last?: boolean; - huddles_reactions_play_sound?: boolean; - huddles_reactions_read_out_loud?: boolean; - huddles_set_status?: boolean; - huddles_show_shouty_rooster?: boolean; - huddles_variant?: number; - ia_details_coachmark_seen?: boolean; - ia_platform_actions_lab?: number; - ia_slackbot_survey_timestamp_48h?: number; - ia_slackbot_survey_timestamp_7d?: number; - ia_top_nav_theme?: string; - iap1_lab?: number; - identity_links_global_prefs?: string; - identity_links_prefs?: string; - in_interactive_mas_migration_flow?: boolean; - in_prod_surveys_enabled?: boolean; - inbox_views_workspace_filter?: string; - invite_accepted_notifications_muted?: boolean; - join_calls_device_settings?: string; - joiner_message_suggestion_dismissed?: boolean; - joiner_notifications_muted?: boolean; - jumbomoji?: boolean; - k_key_omnibox?: boolean; - k_key_omnibox_auto_hide_count?: number; - last_dismissed_scroll_search_tooltip_timestamp?: number; - last_seen_at_channel_warning?: number; - last_seen_sections_unreads_only_prompt_timestamp?: number; - last_snippet_type?: string; - lessons_enabled?: boolean; - load_lato_2?: boolean; - locale?: string; - locales_enabled?: LocalesEnabled; - loud_channels?: string; - loud_channels_set?: string; - ls_disabled?: boolean; - mac_ssb_bounce?: string; - mac_ssb_bullet?: boolean; - mark_msgs_read_immediately?: boolean; - media_muted?: boolean; - media_playback_speed?: number; - media_volume?: number; - mentions_exclude_at_channels?: boolean; - mentions_exclude_at_user_groups?: boolean; - mentions_exclude_reactions?: boolean; - message_navigation_toast_was_seen?: boolean; - messages_theme?: string; - mobile_channel_list_show_all_dms?: boolean; - mobile_channel_list_sort?: string; - msg_input_send_btn?: boolean; - msg_input_send_btn_auto_set?: boolean; - msg_input_sticky_composer?: boolean; - mute_sounds?: boolean; - muted_channels?: string; - mx_calendar_type?: string; - needs_initial_password_set?: boolean; - never_channels?: string; - new_msg_snd?: string; - newxp_seen_help_message?: number; - newxp_seen_last_message?: number; - newxp_suggested_channels?: string; - no_created_overlays?: boolean; - no_invites_widget_in_sidebar?: boolean; - no_joined_overlays?: boolean; - no_macelectron_banner?: boolean; - no_macssb1_banner?: boolean; - no_macssb2_banner?: boolean; - no_omnibox_in_channels?: boolean; - no_text_in_notifications?: boolean; - no_winssb1_banner?: boolean; - notification_center_filters?: string; - notifications_view?: string; - obey_inline_img_limit?: boolean; - onboarding_cancelled?: boolean; - onboarding_complete?: boolean; - onboarding_slackbot_conversation_step?: number; - onboarding_state?: number; - onboarding_tip_opt_out?: boolean; - open_quip_doc_in_flexpane?: boolean; - opened_slackbot_dm?: boolean; - overloaded_message_enabled?: boolean; - pagekeys_handled?: boolean; - phc_dismissed?: string; - phc_viewed?: string; - plain_text_mode?: boolean; - posts_formatting_guide?: boolean; - preferred_skin_tone?: string; - privacy_policy_seen?: boolean; - progressive_disclosure_state?: string; - prompted_for_email_disabling?: boolean; - purchaser?: boolean; - push_at_channel_suppressed_channels?: string; - push_dm_alert?: boolean; - push_everything?: boolean; - push_idle_wait?: number; - push_loud_channels?: string; - push_loud_channels_set?: string; - push_mention_alert?: boolean; - push_mention_channels?: string; - push_show_preview?: boolean; - push_sound?: string; - reached_all_dms_disclosure?: boolean; - reaction_notifications?: string; - reminder_notification_time?: string; - require_at?: boolean; - saved_searches?: string; - saved_view?: string; - scdm_trial_offer_banner?: string; - search_channel_sort?: string; - search_exclude_bots?: boolean; - search_exclude_channels?: string; - search_file_sort?: string; - search_hide_deactivated_users?: boolean; - search_hide_my_channels?: boolean; - search_only_current_team?: boolean; - search_only_my_channels?: boolean; - search_only_show_online?: boolean; - search_people_sort?: string; - search_sort?: string; - seen_a11y_pref_setup_coachmark?: boolean; - seen_administration_menu?: boolean; - seen_app_space_coachmark?: boolean; - seen_app_space_tutorial?: boolean; - seen_bookmarks_intro?: boolean; - seen_calls_interactive_coachmark?: boolean; - seen_channel_browser_admin_coachmark?: boolean; - seen_channel_email_tooltip?: boolean; - seen_channel_search?: boolean; - seen_connect_dm_coachmark?: boolean; - seen_connect_section_coachmark?: boolean; - seen_contextual_message_shortcuts_modal?: boolean; - seen_corporate_export_alert?: boolean; - seen_custom_status_badge?: boolean; - seen_custom_status_callout?: boolean; - seen_custom_status_expiration_badge?: boolean; - seen_domain_invite_reminder?: boolean; - seen_drafts_section_coachmark?: boolean; - seen_edit_mode?: boolean; - seen_edit_mode_edu?: boolean; - seen_emoji_pack_cta?: number; - seen_emoji_pack_dialog?: boolean; - seen_emoji_update_overlay_coachmark?: boolean; - seen_existing_install_coachmark?: boolean; - seen_first_install_coachmark?: boolean; - seen_floating_sidebar_coachmark?: boolean; - seen_gdrive_coachmark?: boolean; - seen_guest_admin_slackbot_announcement?: boolean; - seen_highlights_arrows_coachmark?: boolean; - seen_highlights_coachmark?: boolean; - seen_highlights_warm_welcome?: boolean; - seen_ia_education?: boolean; - seen_intl_channel_names_coachmark?: boolean; - seen_japanese_locale_change_message?: boolean; - seen_keyboard_shortcuts_coachmark?: boolean; - seen_link_unfurl_coachmark?: boolean; - seen_locale_change_message?: number; - seen_markdown_paste_shortcut?: number; - seen_markdown_paste_toast?: number; - seen_member_invite_reminder?: boolean; - seen_message_navigation_educational_toast?: boolean; - seen_name_tagging_coachmark?: boolean; - seen_new_badge_in_more_menu_sidebar?: boolean; - seen_new_search_ui?: boolean; - seen_onboarding_banner?: boolean; - seen_onboarding_channels?: boolean; - seen_onboarding_direct_messages?: boolean; - seen_onboarding_invites?: boolean; - seen_onboarding_private_groups?: boolean; - seen_onboarding_recent_mentions?: boolean; - seen_onboarding_search?: boolean; - seen_onboarding_slackbot_conversation?: boolean; - seen_onboarding_starred_items?: boolean; - seen_onboarding_start?: boolean; - seen_onboarding_synth_view?: boolean; - seen_onboarding_synth_view_count?: number; - seen_onboarding_synth_view_count_v2?: number; - seen_onboarding_synth_view_v2?: boolean; - seen_p3_locale_change_message_ko_kr?: number; - seen_people_search?: boolean; - seen_people_search_count?: number; - seen_quickswitcher_shortcut_tip_count?: number; - seen_sc_menu_coachmark?: boolean; - seen_sc_page?: boolean; - seen_sc_page_banner?: boolean; - seen_schedule_send_coachmark?: boolean; - seen_sections_unreads_only_prompt_count?: number; - seen_sent_page_in_sidebar?: boolean; - seen_shared_channels_coachmark?: boolean; - seen_shared_channels_opt_in_change_message?: boolean; - seen_shdep_slackbot_message?: boolean; - seen_single_emoji_msg?: boolean; - seen_sonic_deluxe_toast?: number; - seen_ssb_prompt?: boolean; - seen_threads_notification_banner?: boolean; - seen_toast_new_locale_launch?: string; - seen_toast_new_locale_launch_ts?: number; - seen_unread_view_coachmark?: boolean; - seen_welcome_2?: boolean; - seen_workflow_builder_deluxe_toast?: boolean; - seen_wysiwyg_deluxe_toast?: boolean; - separate_private_channels?: boolean; - separate_shared_channels?: boolean; - set_a11y_prefs_new_user?: boolean; - set_tz_automatically?: boolean; - shdep_promo_code_submitted?: boolean; - should_show_connect_section?: boolean; - should_show_contextual_help_for_conversation_navigation?: boolean; - should_show_contextual_help_for_jump_to_conversation?: boolean; - should_show_contextual_help_for_section_navigation?: boolean; - should_show_contextual_help_for_thread_navigation?: boolean; - should_show_unsend_message_confirmation?: boolean; - show_all_skin_tones?: boolean; - show_autocomplete_help?: number; - show_ent_onboarding?: boolean; - show_gov_slack_context_bar_banner?: boolean; - show_ia_tour_relaunch?: number; - show_jumper_scores?: boolean; - show_memory_instrument?: boolean; - show_quick_reactions?: boolean; - show_shared_channels_education_banner?: boolean; - show_sidebar_avatars?: boolean; - show_sidebar_quickswitcher_button?: boolean; - show_typing?: boolean; - sidebar_behavior?: string; - sidebar_pref_dismissed_tip?: boolean; - sidebar_theme?: string; - sidebar_theme_custom_values?: string; - slack_connect_invite_should_badge_sidebar?: boolean; - snippet_editor_wrap_long_lines?: boolean; - spaces_new_xp_banner_dismissed?: boolean; - ss_emojis?: boolean; - ssb_space_window?: string; - start_scroll_at_oldest?: boolean; - suggestions_request_id?: string; - sunset_interactive_message_views?: number; - suppress_external_invites_from_compose_warning?: boolean; - suppress_link_warning?: boolean; - suppress_thread_mention_warning?: boolean; - synth_view_prefs?: string; - tab_ui_return_selects?: boolean; - tasks_view?: string; - threads_everything?: boolean; - time24?: boolean; - tractor_enabled?: boolean; - tractor_experiment_group?: string; - two_factor_auth_enabled?: boolean; - tz?: string; - underline_links?: boolean; - up_to_browse_kb_shortcut?: boolean; - used_custom_status_kb_shortcut?: boolean; - user_colors?: string; - user_customized_quick_reactions_display_feature?: number; - user_customized_quick_reactions_has_customized?: boolean; + a11y_animations?: boolean; + a11y_dyslexic?: boolean; + a11y_play_sound_for_incoming_dm?: boolean; + a11y_play_sound_for_incoming_dm_choice?: string; + a11y_play_sound_for_sent_dm?: boolean; + a11y_play_sound_for_sent_dm_choice?: string; + a11y_read_out_incoming_dm?: boolean; + a11y_screen_reader_message_label_date_time_first?: boolean; + activity_view?: string; + add_apps_prompt_dismissed?: boolean; + add_channel_prompt_dismissed?: boolean; + add_prompt_interacted?: boolean; + all_channels_loud?: boolean; + all_notifications_prefs?: string; + all_unreads_section_filter?: string; + all_unreads_sort_order?: string; + allow_calls_to_set_current_status?: boolean; + allow_cmd_tab_iss?: boolean; + allowed_unfurl_senders?: string; + analytics_upsell_coachmark_seen?: boolean; + app_manifest_schema_format?: string; + app_subdomain_check_completed?: number; + arrow_history?: boolean; + at_channel_suppressed_channels?: string; + box_enabled?: boolean; + browsers_dismissed_channels_low_results_education?: boolean; + browsers_dismissed_files_low_results_education?: boolean; + browsers_dismissed_initial_activity_education?: boolean; + browsers_dismissed_initial_drafts_education?: boolean; + browsers_dismissed_initial_saved_education?: boolean; + browsers_dismissed_people_low_results_education?: boolean; + browsers_dismissed_user_groups_low_results_education?: boolean; + browsers_seen_initial_activity_education?: boolean; + browsers_seen_initial_channels_education?: boolean; + browsers_seen_initial_drafts_education?: boolean; + browsers_seen_initial_files_education?: boolean; + browsers_seen_initial_people_education?: boolean; + browsers_seen_initial_saved_education?: boolean; + browsers_seen_initial_user_groups_education?: boolean; + calls_disconnect_on_lock?: boolean; + calls_survey_last_seen?: string; + channel_canvas_variant?: number; + channel_sections?: string; + channel_sidebar_hide_browse_dms_link?: boolean; + channel_sidebar_hide_invite?: boolean; + channel_sort?: string; + chime_access_check_completed?: number; + clicked_close_onboarding_synth_view_banner?: boolean; + client_logs_pri?: string; + clips_feedback_survey_last_trigger_attempt?: number; + color_names_in_list?: boolean; + composer_nux?: string; + confirm_clear_all_unreads?: boolean; + confirm_sh_call_start?: boolean; + confirm_user_marked_away?: boolean; + connect_dm_early_access?: boolean; + contextual_help_reset_count?: number; + contextual_message_shortcuts_modal_was_seen?: boolean; + convert_emoticons?: boolean; + deprecation_banner_last_seen?: number; + deprecation_modal_last_seen?: number; + deprecation_toast_last_seen?: number; + desktop_client_ids?: string; + dismissed_app_config_redesign_coachmark?: boolean; + dismissed_app_launcher_atlassian_promo?: boolean; + dismissed_app_launcher_limit?: boolean; + dismissed_app_launcher_welcome?: boolean; + dismissed_app_manifest_coachmark?: boolean; + dismissed_app_manifest_description?: boolean; + dismissed_banner_download_ssb_prompt?: boolean; + dismissed_connect_auto_approval_modal?: string; + dismissed_fullscreen_download_ssb_prompt?: boolean; + dismissed_gov_slack_first_time_popup?: boolean; + dismissed_installed_app_dm_suggestions?: string; + dismissed_scdm_education?: boolean; + dismissed_scroll_search_tooltip_count?: number; + dismissed_sent_page_education?: boolean; + display_display_names?: boolean; + display_real_names_override?: number; + dnd_after_friday?: string; + dnd_after_monday?: string; + dnd_after_saturday?: string; + dnd_after_sunday?: string; + dnd_after_thursday?: string; + dnd_after_tuesday?: string; + dnd_after_wednesday?: string; + dnd_before_friday?: string; + dnd_before_monday?: string; + dnd_before_saturday?: string; + dnd_before_sunday?: string; + dnd_before_thursday?: string; + dnd_before_tuesday?: string; + dnd_before_wednesday?: string; + dnd_custom_new_badge_seen?: boolean; + dnd_days?: string; + dnd_enabled?: boolean; + dnd_enabled_friday?: string; + dnd_enabled_monday?: string; + dnd_enabled_saturday?: string; + dnd_enabled_sunday?: string; + dnd_enabled_thursday?: string; + dnd_enabled_tuesday?: string; + dnd_enabled_wednesday?: string; + dnd_end_hour?: string; + dnd_notification_schedule_new_badge_seen?: boolean; + dnd_start_hour?: string; + dnd_weekdays_off_allday?: boolean; + dropbox_enabled?: boolean; + edge_upload_proxy_check_completed?: number; + email_alerts?: string; + email_alerts_sleep_until?: number; + email_developer?: boolean; + email_offers?: boolean; + email_research?: boolean; + email_tips?: boolean; + email_weekly?: boolean; + emoji_autocomplete_big?: boolean; + emoji_mode?: string; + emoji_packs_clicked_collection_cta?: boolean; + emoji_packs_clicked_picker_cta?: boolean; + emoji_packs_clicked_picker_post_install_cta?: boolean; + emoji_packs_most_recent_available_time?: number; + emoji_use?: string; + emoji_use_org?: string; + enable_all_dms_view?: boolean; + enable_app_browser_view?: boolean; + enable_app_config_redesign?: boolean; + enable_channel_browser_view?: boolean; + enable_drafts_view?: boolean; + enable_file_browser_view?: boolean; + enable_file_browser_view_for_docs?: boolean; + enable_hq_view?: boolean; + enable_later_view?: boolean; + enable_media_captions?: boolean; + enable_mentions_and_reactions_view?: boolean; + enable_people_browser_view?: boolean; + enable_quip_file_browser_view?: boolean; + enable_react_emoji_picker?: boolean; + enable_reminders_view?: boolean; + enable_saved_items_view?: boolean; + enable_scheduled_view?: boolean; + enable_sent_view?: boolean; + enable_shortcuts_view?: boolean; + enable_slack_connect_view?: boolean; + enable_slack_connect_view_2?: number; + enable_streamline_view?: boolean; + enable_unread_view?: boolean; + ent_org_wide_channels_sidebar?: boolean; + enter_is_special_in_tbt?: boolean; + enterprise_mdm_custom_msg?: string; + enterprise_migration_seen?: boolean; + expand_inline_imgs?: boolean; + expand_internal_inline_imgs?: boolean; + expand_non_media_attachments?: boolean; + expand_snippets?: boolean; + f_key_search?: boolean; + failover_proxy_check_completed?: number; + file_picker_variant?: number; + first_seen_new_badge_in_more_menu_sidebar?: number; + first_seen_sent_page_in_sidebar?: number; + flannel_server_pool?: string; + folder_data?: string; + folders_enabled?: boolean; + frecency?: string; + frecency_ent_jumper?: string; + frecency_jumper?: string; + fuller_timestamps?: boolean; + graphic_emoticons?: boolean; + growls_enabled?: boolean; + growth_all_banners_prefs?: string; + growth_msg_limit_approaching_cta_count?: number; + growth_msg_limit_approaching_cta_ts?: number; + growth_msg_limit_long_reached_cta_count?: number; + growth_msg_limit_long_reached_cta_last_ts?: number; + growth_msg_limit_reached_cta_count?: number; + growth_msg_limit_reached_cta_last_ts?: number; + growth_msg_limit_sixty_day_banner_cta_count?: number; + growth_msg_limit_sixty_day_banner_cta_last_ts?: number; + has_acknowledged_shortcut_speedbump?: boolean; + has_created_channel?: boolean; + has_created_channel_section?: boolean; + has_dismissed_google_directory_coachmark?: boolean; + has_drafted_message?: boolean; + has_invited?: boolean; + has_joined_huddle?: boolean; + has_received_mention_or_reaction?: boolean; + has_received_threaded_message?: boolean; + has_recently_shared_a_channel?: boolean; + has_searched?: boolean; + has_sent_ten_messages?: number; + has_starred_item?: boolean; + has_uploaded?: boolean; + has_used_quickswitcher_shortcut?: boolean; + help_flexpane_clips_card_seen?: boolean; + help_flexpane_slack_connect_card_seen?: boolean; + help_menu_open_timestamp?: number; + help_modal_consult_banner_dismissed?: boolean; + help_modal_open_timestamp?: number; + hidden_users?: string; + hide_external_members_sharing_speed_bump?: boolean; + hide_hex_swatch?: boolean; + hide_user_group_info_pane?: boolean; + highlight_words?: string; + huddle_invite_sound?: string; + huddle_survey_last_seen?: string; + huddles_allow_smart_notif?: boolean; + huddles_cc_by_default?: boolean; + huddles_chime_new_endpoints_check_completed?: number; + huddles_disconnect_on_lock?: boolean; + huddles_global_mute?: boolean; + huddles_mini_panel?: boolean; + huddles_mute_by_default?: boolean; + huddles_play_music_when_last?: boolean; + huddles_reactions_play_sound?: boolean; + huddles_reactions_read_out_loud?: boolean; + huddles_set_status?: boolean; + huddles_show_shouty_rooster?: boolean; + huddles_variant?: number; + ia_details_coachmark_seen?: boolean; + ia_platform_actions_lab?: number; + ia_slackbot_survey_timestamp_48h?: number; + ia_slackbot_survey_timestamp_7d?: number; + ia_top_nav_theme?: string; + iap1_lab?: number; + identity_links_global_prefs?: string; + identity_links_prefs?: string; + in_interactive_mas_migration_flow?: boolean; + in_prod_surveys_enabled?: boolean; + inbox_views_workspace_filter?: string; + invite_accepted_notifications_muted?: boolean; + join_calls_device_settings?: string; + joiner_message_suggestion_dismissed?: boolean; + joiner_notifications_muted?: boolean; + jumbomoji?: boolean; + k_key_omnibox?: boolean; + k_key_omnibox_auto_hide_count?: number; + last_dismissed_scroll_search_tooltip_timestamp?: number; + last_seen_at_channel_warning?: number; + last_seen_sections_unreads_only_prompt_timestamp?: number; + last_snippet_type?: string; + lessons_enabled?: boolean; + load_lato_2?: boolean; + locale?: string; + locales_enabled?: LocalesEnabled; + loud_channels?: string; + loud_channels_set?: string; + ls_disabled?: boolean; + mac_ssb_bounce?: string; + mac_ssb_bullet?: boolean; + mark_msgs_read_immediately?: boolean; + media_muted?: boolean; + media_playback_speed?: number; + media_volume?: number; + mentions_exclude_at_channels?: boolean; + mentions_exclude_at_user_groups?: boolean; + mentions_exclude_reactions?: boolean; + message_navigation_toast_was_seen?: boolean; + messages_theme?: string; + mobile_channel_list_show_all_dms?: boolean; + mobile_channel_list_sort?: string; + msg_input_send_btn?: boolean; + msg_input_send_btn_auto_set?: boolean; + msg_input_sticky_composer?: boolean; + mute_sounds?: boolean; + muted_channels?: string; + mx_calendar_type?: string; + needs_initial_password_set?: boolean; + never_channels?: string; + new_msg_snd?: string; + newxp_seen_help_message?: number; + newxp_seen_last_message?: number; + newxp_suggested_channels?: string; + no_created_overlays?: boolean; + no_invites_widget_in_sidebar?: boolean; + no_joined_overlays?: boolean; + no_macelectron_banner?: boolean; + no_macssb1_banner?: boolean; + no_macssb2_banner?: boolean; + no_omnibox_in_channels?: boolean; + no_text_in_notifications?: boolean; + no_winssb1_banner?: boolean; + notification_center_filters?: string; + notifications_view?: string; + obey_inline_img_limit?: boolean; + onboarding_cancelled?: boolean; + onboarding_complete?: boolean; + onboarding_slackbot_conversation_step?: number; + onboarding_state?: number; + onboarding_tip_opt_out?: boolean; + open_quip_doc_in_flexpane?: boolean; + opened_slackbot_dm?: boolean; + overloaded_message_enabled?: boolean; + pagekeys_handled?: boolean; + phc_dismissed?: string; + phc_viewed?: string; + plain_text_mode?: boolean; + posts_formatting_guide?: boolean; + preferred_skin_tone?: string; + privacy_policy_seen?: boolean; + progressive_disclosure_state?: string; + prompted_for_email_disabling?: boolean; + purchaser?: boolean; + push_at_channel_suppressed_channels?: string; + push_dm_alert?: boolean; + push_everything?: boolean; + push_idle_wait?: number; + push_loud_channels?: string; + push_loud_channels_set?: string; + push_mention_alert?: boolean; + push_mention_channels?: string; + push_show_preview?: boolean; + push_sound?: string; + reached_all_dms_disclosure?: boolean; + reaction_notifications?: string; + reminder_notification_time?: string; + require_at?: boolean; + saved_searches?: string; + saved_view?: string; + scdm_trial_offer_banner?: string; + search_channel_sort?: string; + search_exclude_bots?: boolean; + search_exclude_channels?: string; + search_file_sort?: string; + search_hide_deactivated_users?: boolean; + search_hide_my_channels?: boolean; + search_only_current_team?: boolean; + search_only_my_channels?: boolean; + search_only_show_online?: boolean; + search_people_sort?: string; + search_sort?: string; + seen_a11y_pref_setup_coachmark?: boolean; + seen_administration_menu?: boolean; + seen_app_space_coachmark?: boolean; + seen_app_space_tutorial?: boolean; + seen_bookmarks_intro?: boolean; + seen_calls_interactive_coachmark?: boolean; + seen_channel_browser_admin_coachmark?: boolean; + seen_channel_email_tooltip?: boolean; + seen_channel_search?: boolean; + seen_connect_dm_coachmark?: boolean; + seen_connect_section_coachmark?: boolean; + seen_contextual_message_shortcuts_modal?: boolean; + seen_corporate_export_alert?: boolean; + seen_custom_status_badge?: boolean; + seen_custom_status_callout?: boolean; + seen_custom_status_expiration_badge?: boolean; + seen_domain_invite_reminder?: boolean; + seen_drafts_section_coachmark?: boolean; + seen_edit_mode?: boolean; + seen_edit_mode_edu?: boolean; + seen_emoji_pack_cta?: number; + seen_emoji_pack_dialog?: boolean; + seen_emoji_update_overlay_coachmark?: boolean; + seen_existing_install_coachmark?: boolean; + seen_first_install_coachmark?: boolean; + seen_floating_sidebar_coachmark?: boolean; + seen_gdrive_coachmark?: boolean; + seen_guest_admin_slackbot_announcement?: boolean; + seen_highlights_arrows_coachmark?: boolean; + seen_highlights_coachmark?: boolean; + seen_highlights_warm_welcome?: boolean; + seen_ia_education?: boolean; + seen_intl_channel_names_coachmark?: boolean; + seen_japanese_locale_change_message?: boolean; + seen_keyboard_shortcuts_coachmark?: boolean; + seen_link_unfurl_coachmark?: boolean; + seen_locale_change_message?: number; + seen_markdown_paste_shortcut?: number; + seen_markdown_paste_toast?: number; + seen_member_invite_reminder?: boolean; + seen_message_navigation_educational_toast?: boolean; + seen_name_tagging_coachmark?: boolean; + seen_new_badge_in_more_menu_sidebar?: boolean; + seen_new_search_ui?: boolean; + seen_onboarding_banner?: boolean; + seen_onboarding_channels?: boolean; + seen_onboarding_direct_messages?: boolean; + seen_onboarding_invites?: boolean; + seen_onboarding_private_groups?: boolean; + seen_onboarding_recent_mentions?: boolean; + seen_onboarding_search?: boolean; + seen_onboarding_slackbot_conversation?: boolean; + seen_onboarding_starred_items?: boolean; + seen_onboarding_start?: boolean; + seen_onboarding_synth_view?: boolean; + seen_onboarding_synth_view_count?: number; + seen_onboarding_synth_view_count_v2?: number; + seen_onboarding_synth_view_v2?: boolean; + seen_p3_locale_change_message_ko_kr?: number; + seen_people_search?: boolean; + seen_people_search_count?: number; + seen_quickswitcher_shortcut_tip_count?: number; + seen_sc_menu_coachmark?: boolean; + seen_sc_page?: boolean; + seen_sc_page_banner?: boolean; + seen_schedule_send_coachmark?: boolean; + seen_sections_unreads_only_prompt_count?: number; + seen_sent_page_in_sidebar?: boolean; + seen_shared_channels_coachmark?: boolean; + seen_shared_channels_opt_in_change_message?: boolean; + seen_shdep_slackbot_message?: boolean; + seen_single_emoji_msg?: boolean; + seen_sonic_deluxe_toast?: number; + seen_ssb_prompt?: boolean; + seen_threads_notification_banner?: boolean; + seen_toast_new_locale_launch?: string; + seen_toast_new_locale_launch_ts?: number; + seen_unread_view_coachmark?: boolean; + seen_welcome_2?: boolean; + seen_workflow_builder_deluxe_toast?: boolean; + seen_wysiwyg_deluxe_toast?: boolean; + separate_private_channels?: boolean; + separate_shared_channels?: boolean; + set_a11y_prefs_new_user?: boolean; + set_tz_automatically?: boolean; + shdep_promo_code_submitted?: boolean; + should_show_connect_section?: boolean; + should_show_contextual_help_for_conversation_navigation?: boolean; + should_show_contextual_help_for_jump_to_conversation?: boolean; + should_show_contextual_help_for_section_navigation?: boolean; + should_show_contextual_help_for_thread_navigation?: boolean; + should_show_unsend_message_confirmation?: boolean; + show_all_skin_tones?: boolean; + show_autocomplete_help?: number; + show_ent_onboarding?: boolean; + show_gov_slack_context_bar_banner?: boolean; + show_ia_tour_relaunch?: number; + show_jumper_scores?: boolean; + show_memory_instrument?: boolean; + show_quick_reactions?: boolean; + show_shared_channels_education_banner?: boolean; + show_sidebar_avatars?: boolean; + show_sidebar_quickswitcher_button?: boolean; + show_typing?: boolean; + sidebar_behavior?: string; + sidebar_pref_dismissed_tip?: boolean; + sidebar_theme?: string; + sidebar_theme_custom_values?: string; + slack_connect_invite_should_badge_sidebar?: boolean; + snippet_editor_wrap_long_lines?: boolean; + spaces_new_xp_banner_dismissed?: boolean; + ss_emojis?: boolean; + ssb_space_window?: string; + start_scroll_at_oldest?: boolean; + suggestions_request_id?: string; + sunset_interactive_message_views?: number; + suppress_external_invites_from_compose_warning?: boolean; + suppress_link_warning?: boolean; + suppress_thread_mention_warning?: boolean; + synth_view_prefs?: string; + tab_ui_return_selects?: boolean; + tasks_view?: string; + threads_everything?: boolean; + time24?: boolean; + tractor_enabled?: boolean; + tractor_experiment_group?: string; + two_factor_auth_enabled?: boolean; + tz?: string; + underline_links?: boolean; + up_to_browse_kb_shortcut?: boolean; + used_custom_status_kb_shortcut?: boolean; + user_colors?: string; + user_customized_quick_reactions_display_feature?: number; + user_customized_quick_reactions_has_customized?: boolean; user_customized_quick_reactions_use_frequently_used_emoji?: boolean; - user_expectations_survey_last_trigger_attempt?: number; - webapp_spellcheck?: boolean; - welcome_message_hidden?: boolean; - welcome_place_state?: string; - whats_new_read?: number; - who_can_see_account_by_searching_email?: string; - who_can_share_contact_card?: string; - whocanseethis_dm_mpdm_badge?: boolean; - workflow_builder_coachmarks?: string; - workflow_builder_intro_modal_clicked_through?: boolean; - xws_dismissed_education?: boolean; - xws_seen_education?: number; - xws_sidebar_variant?: number; + user_expectations_survey_last_trigger_attempt?: number; + webapp_spellcheck?: boolean; + welcome_message_hidden?: boolean; + welcome_place_state?: string; + whats_new_read?: number; + who_can_see_account_by_searching_email?: string; + who_can_share_contact_card?: string; + whocanseethis_dm_mpdm_badge?: boolean; + workflow_builder_coachmarks?: string; + workflow_builder_intro_modal_clicked_through?: boolean; + xws_dismissed_education?: boolean; + xws_seen_education?: number; + xws_sidebar_variant?: number; } export interface LocalesEnabled { @@ -1923,288 +1922,288 @@ export interface LocalesEnabled { } export interface Subteams { - all?: All[]; + all?: All[]; self?: string[]; } export interface All { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: AllPrefs; - team_id?: string; - updated_by?: string; - user_count?: number; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: AllPrefs; + team_id?: string; + updated_by?: string; + user_count?: number; } export interface AllPrefs { channels?: string[]; - groups?: Group[]; + groups?: Group[]; } export interface Team { - avatar_base_url?: string; - date_create?: number; - domain?: string; - email_domain?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; - limit_ts?: number; - messages_count?: number; - msg_edit_window_mins?: number; - name?: string; + avatar_base_url?: string; + date_create?: number; + domain?: string; + email_domain?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; + limit_ts?: number; + messages_count?: number; + msg_edit_window_mins?: number; + name?: string; onboarding_channel_id?: string; - over_storage_limit?: boolean; - plan?: string; - prefs?: TeamPrefs; - url?: string; + over_storage_limit?: boolean; + plan?: string; + prefs?: TeamPrefs; + url?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; image_original?: string; } export interface TeamPrefs { - admin_customized_quick_reactions?: string[]; - all_users_can_purchase?: boolean; - allow_admin_retention_override?: number; - allow_audio_clip_sharing_slack_connect?: boolean; - allow_audio_clips?: boolean; - allow_box_cfs?: boolean; - allow_calls?: boolean; - allow_calls_interactive_screen_sharing?: boolean; - allow_clip_downloads?: string; - allow_free_automated_trials?: boolean; - allow_huddles?: boolean; - allow_huddles_transcriptions?: boolean; - allow_huddles_video?: boolean; - allow_media_transcriptions?: boolean; - allow_message_deletion?: boolean; - allow_retention_override?: boolean; - allow_spaceship?: string; - allow_sponsored_slack_connections?: boolean; - allow_video_clip_sharing_slack_connect?: boolean; - allow_video_clips?: boolean; - app_dir_only?: boolean; - app_management_apps?: string[]; - app_whitelist_enabled?: boolean; - auth_mode?: string; - block_file_download?: boolean; - box_app_installed?: boolean; - calls_apps?: CallsApps; - calls_locations?: string[]; - can_accept_slack_connect_channel_invites?: boolean; - can_create_external_limited_invite?: boolean; - can_create_slack_connect_channel_invite?: boolean; - can_receive_shared_channels_invites?: boolean; - channel_email_addresses_enabled?: boolean; - compliance_export_start?: number; - content_review_enabled?: boolean; - created_with_google?: boolean; - custom_status_default_emoji?: string; - custom_status_presets?: Array; - daily_prompts_enabled?: boolean; - default_channel_creation_enabled?: boolean; - default_channels?: string[]; - default_create_private_channel?: boolean; - default_rxns?: string[]; - disable_email_ingestion?: boolean; - disable_file_deleting?: boolean; - disable_file_editing?: boolean; - disable_file_uploads?: string; - disable_sidebar_connect_prompts?: string[]; - disable_sidebar_install_prompts?: string[]; - disallow_public_file_urls?: boolean; - discoverable?: string; - display_anniversary_celebration?: boolean; - display_default_phone?: boolean; - display_email_addresses?: boolean; - display_external_email_addresses?: boolean; - display_name_pronunciation?: boolean; - display_new_hire_celebration?: boolean; - display_pronouns?: boolean; - display_real_names?: boolean; - dm_retention_duration?: number; - dm_retention_redaction_duration?: number; - dm_retention_type?: number; - dnd_after_friday?: string; - dnd_after_monday?: string; - dnd_after_saturday?: string; - dnd_after_sunday?: string; - dnd_after_thursday?: string; - dnd_after_tuesday?: string; - dnd_after_wednesday?: string; - dnd_before_friday?: string; - dnd_before_monday?: string; - dnd_before_saturday?: string; - dnd_before_sunday?: string; - dnd_before_thursday?: string; - dnd_before_tuesday?: string; - dnd_before_wednesday?: string; - dnd_days?: string; - dnd_enabled?: boolean; - dnd_enabled_friday?: string; - dnd_enabled_monday?: string; - dnd_enabled_saturday?: string; - dnd_enabled_sunday?: string; - dnd_enabled_thursday?: string; - dnd_enabled_tuesday?: string; - dnd_enabled_wednesday?: string; - dnd_end_hour?: string; - dnd_start_hour?: string; - dnd_weekdays_off_allday?: boolean; - dropbox_legacy_picker?: boolean; - emoji_only_admins?: boolean; - enable_connect_dm_early_access?: boolean; - enable_domain_allowlist_for_cea?: boolean; - enable_info_barriers?: boolean; - enable_mpdm_to_private_channel_conversion?: boolean; - enable_shared_channels?: number; - enterprise_default_channels?: string[]; - enterprise_has_corporate_exports?: boolean; - enterprise_intune_enabled?: boolean; - enterprise_mandatory_channels?: string[]; - enterprise_mdm_date_enabled?: number; - enterprise_mdm_disable_file_download?: boolean; - enterprise_mdm_level?: number; - enterprise_mdm_token?: string; - enterprise_mobile_device_check?: boolean; - enterprise_team_creation_request?: EnterpriseTeamCreationRequest; - ext_audit_log_retention_duration?: number; - ext_audit_log_retention_type?: number; - file_limit_whitelisted?: boolean; - file_retention_duration?: number; - file_retention_type?: number; - filepicker_app_first_install?: boolean; - gdrive_enabled_team?: boolean; - gg_enabled?: boolean; - group_retention_duration?: number; - group_retention_type?: number; - has_compliance_export?: boolean; - has_hipaa_compliance?: boolean; - has_seen_partner_promo?: boolean; - hermes_has_accepted_tos?: boolean; + admin_customized_quick_reactions?: string[]; + all_users_can_purchase?: boolean; + allow_admin_retention_override?: number; + allow_audio_clip_sharing_slack_connect?: boolean; + allow_audio_clips?: boolean; + allow_box_cfs?: boolean; + allow_calls?: boolean; + allow_calls_interactive_screen_sharing?: boolean; + allow_clip_downloads?: string; + allow_free_automated_trials?: boolean; + allow_huddles?: boolean; + allow_huddles_transcriptions?: boolean; + allow_huddles_video?: boolean; + allow_media_transcriptions?: boolean; + allow_message_deletion?: boolean; + allow_retention_override?: boolean; + allow_spaceship?: string; + allow_sponsored_slack_connections?: boolean; + allow_video_clip_sharing_slack_connect?: boolean; + allow_video_clips?: boolean; + app_dir_only?: boolean; + app_management_apps?: string[]; + app_whitelist_enabled?: boolean; + auth_mode?: string; + block_file_download?: boolean; + box_app_installed?: boolean; + calls_apps?: CallsApps; + calls_locations?: string[]; + can_accept_slack_connect_channel_invites?: boolean; + can_create_external_limited_invite?: boolean; + can_create_slack_connect_channel_invite?: boolean; + can_receive_shared_channels_invites?: boolean; + channel_email_addresses_enabled?: boolean; + compliance_export_start?: number; + content_review_enabled?: boolean; + created_with_google?: boolean; + custom_status_default_emoji?: string; + custom_status_presets?: Array; + daily_prompts_enabled?: boolean; + default_channel_creation_enabled?: boolean; + default_channels?: string[]; + default_create_private_channel?: boolean; + default_rxns?: string[]; + disable_email_ingestion?: boolean; + disable_file_deleting?: boolean; + disable_file_editing?: boolean; + disable_file_uploads?: string; + disable_sidebar_connect_prompts?: string[]; + disable_sidebar_install_prompts?: string[]; + disallow_public_file_urls?: boolean; + discoverable?: string; + display_anniversary_celebration?: boolean; + display_default_phone?: boolean; + display_email_addresses?: boolean; + display_external_email_addresses?: boolean; + display_name_pronunciation?: boolean; + display_new_hire_celebration?: boolean; + display_pronouns?: boolean; + display_real_names?: boolean; + dm_retention_duration?: number; + dm_retention_redaction_duration?: number; + dm_retention_type?: number; + dnd_after_friday?: string; + dnd_after_monday?: string; + dnd_after_saturday?: string; + dnd_after_sunday?: string; + dnd_after_thursday?: string; + dnd_after_tuesday?: string; + dnd_after_wednesday?: string; + dnd_before_friday?: string; + dnd_before_monday?: string; + dnd_before_saturday?: string; + dnd_before_sunday?: string; + dnd_before_thursday?: string; + dnd_before_tuesday?: string; + dnd_before_wednesday?: string; + dnd_days?: string; + dnd_enabled?: boolean; + dnd_enabled_friday?: string; + dnd_enabled_monday?: string; + dnd_enabled_saturday?: string; + dnd_enabled_sunday?: string; + dnd_enabled_thursday?: string; + dnd_enabled_tuesday?: string; + dnd_enabled_wednesday?: string; + dnd_end_hour?: string; + dnd_start_hour?: string; + dnd_weekdays_off_allday?: boolean; + dropbox_legacy_picker?: boolean; + emoji_only_admins?: boolean; + enable_connect_dm_early_access?: boolean; + enable_domain_allowlist_for_cea?: boolean; + enable_info_barriers?: boolean; + enable_mpdm_to_private_channel_conversion?: boolean; + enable_shared_channels?: number; + enterprise_default_channels?: string[]; + enterprise_has_corporate_exports?: boolean; + enterprise_intune_enabled?: boolean; + enterprise_mandatory_channels?: string[]; + enterprise_mdm_date_enabled?: number; + enterprise_mdm_disable_file_download?: boolean; + enterprise_mdm_level?: number; + enterprise_mdm_token?: string; + enterprise_mobile_device_check?: boolean; + enterprise_team_creation_request?: EnterpriseTeamCreationRequest; + ext_audit_log_retention_duration?: number; + ext_audit_log_retention_type?: number; + file_limit_whitelisted?: boolean; + file_retention_duration?: number; + file_retention_type?: number; + filepicker_app_first_install?: boolean; + gdrive_enabled_team?: boolean; + gg_enabled?: boolean; + group_retention_duration?: number; + group_retention_type?: number; + has_compliance_export?: boolean; + has_hipaa_compliance?: boolean; + has_seen_partner_promo?: boolean; + hermes_has_accepted_tos?: boolean; hermes_triggers_trippable_by_slack_connected_teams?: boolean; - hide_gsuite_invite_option?: boolean; - hide_referers?: boolean; - identity_links_prefs?: EnterpriseTeamCreationRequest; - invite_requests_enabled?: boolean; - invited_user_preset?: InvitedUserPreset; - invites_limit?: boolean; - invites_only_admins?: boolean; - joiner_notifications_enabled?: boolean; - loading_only_admins?: boolean; - locale?: string; - loud_channel_mentions_limit?: number; - magic_unfurls_enabled?: boolean; - member_analytics_disabled?: boolean; - ml_opt_out?: boolean; - mobile_passcode_timeout_in_seconds?: number; - mobile_session_duration?: number; - msg_edit_window_mins?: number; - notification_redaction_type?: string; - notify_pending_enabled?: boolean; - ntlm_credential_domains?: string; - onedrive_app_installed?: boolean; - onedrive_enabled_team?: boolean; - private_channel_membership_limit?: number; - private_retention_redaction_duration?: number; - public_retention_redaction_duration?: number; - received_esc_route_to_channel_awareness_message?: boolean; - retention_duration?: number; - retention_type?: number; - rich_previews_default?: string; - saml_enable?: boolean; - search_feedback_opt_out?: boolean; - self_serve_select?: boolean; - session_duration?: number; - session_duration_type?: number; - show_join_leave?: boolean; - show_legacy_paid_benefits_page?: boolean; - show_mobile_promos?: boolean; - sign_in_with_slack_default?: string; - sign_in_with_slack_disabled?: boolean; - single_user_exports?: boolean; - slack_connect_account_visibility?: string; - slack_connect_allowed_workspaces?: SlackConnectAllowedWorkspaces; - slack_connect_approval_type?: string; - slack_connect_dm_only_verified_orgs?: boolean; - slack_connect_file_upload_sharing_enabled?: boolean; - slackbot_responses_disabled?: boolean; - slackbot_responses_only_admins?: boolean; - spaceship_workspace_setting_visible?: boolean; - sso_disable_emails?: boolean; - sso_optional?: boolean; - sso_signup_restrictions?: number; - sso_sync_with_provider?: boolean; - stats_only_admins?: boolean; - subteams_auto_create_admin?: boolean; - subteams_auto_create_owner?: boolean; - thorn_safer_scan?: boolean; - two_factor_auth_required?: number; - uneditable_user_profile_fields?: string[]; - use_browser_picker?: boolean; - uses_customized_custom_status_presets?: boolean; - warn_before_at_channel?: string; - warn_user_before_logout?: boolean; - warn_user_before_logout_desktop?: boolean; - warn_user_before_logout_mobile?: boolean; - welcome_place_enabled?: boolean; - who_can_accept_slack_connect_channel_invites?: SlackConnectAllowedWorkspaces; - who_can_archive_channels?: string; - who_can_at_channel?: string; - who_can_at_everyone?: string; - who_can_change_team_profile?: string; - who_can_create_channel_email_addresses?: SlackConnectAllowedWorkspaces; - who_can_create_channels?: string; - who_can_create_delete_user_groups?: string; - who_can_create_external_limited_invite?: SlackConnectAllowedWorkspaces; - who_can_create_groups?: string; - who_can_create_shared_channels?: string; - who_can_create_slack_connect_channel_invite?: SlackConnectAllowedWorkspaces; - who_can_create_workflows?: SlackConnectAllowedWorkspaces; - who_can_dm_anyone?: SlackConnectAllowedWorkspaces; - who_can_edit_user_groups?: string; - who_can_kick_channels?: string; - who_can_kick_groups?: string; - who_can_manage_channel_posting_prefs?: string; - who_can_manage_ext_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_manage_guests?: SlackConnectAllowedWorkspaces; - who_can_manage_integrations?: SlackConnectAllowedWorkspaces; - who_can_manage_private_channels?: WhoCanManageP; + hide_gsuite_invite_option?: boolean; + hide_referers?: boolean; + identity_links_prefs?: EnterpriseTeamCreationRequest; + invite_requests_enabled?: boolean; + invited_user_preset?: InvitedUserPreset; + invites_limit?: boolean; + invites_only_admins?: boolean; + joiner_notifications_enabled?: boolean; + loading_only_admins?: boolean; + locale?: string; + loud_channel_mentions_limit?: number; + magic_unfurls_enabled?: boolean; + member_analytics_disabled?: boolean; + ml_opt_out?: boolean; + mobile_passcode_timeout_in_seconds?: number; + mobile_session_duration?: number; + msg_edit_window_mins?: number; + notification_redaction_type?: string; + notify_pending_enabled?: boolean; + ntlm_credential_domains?: string; + onedrive_app_installed?: boolean; + onedrive_enabled_team?: boolean; + private_channel_membership_limit?: number; + private_retention_redaction_duration?: number; + public_retention_redaction_duration?: number; + received_esc_route_to_channel_awareness_message?: boolean; + retention_duration?: number; + retention_type?: number; + rich_previews_default?: string; + saml_enable?: boolean; + search_feedback_opt_out?: boolean; + self_serve_select?: boolean; + session_duration?: number; + session_duration_type?: number; + show_join_leave?: boolean; + show_legacy_paid_benefits_page?: boolean; + show_mobile_promos?: boolean; + sign_in_with_slack_default?: string; + sign_in_with_slack_disabled?: boolean; + single_user_exports?: boolean; + slack_connect_account_visibility?: string; + slack_connect_allowed_workspaces?: SlackConnectAllowedWorkspaces; + slack_connect_approval_type?: string; + slack_connect_dm_only_verified_orgs?: boolean; + slack_connect_file_upload_sharing_enabled?: boolean; + slackbot_responses_disabled?: boolean; + slackbot_responses_only_admins?: boolean; + spaceship_workspace_setting_visible?: boolean; + sso_disable_emails?: boolean; + sso_optional?: boolean; + sso_signup_restrictions?: number; + sso_sync_with_provider?: boolean; + stats_only_admins?: boolean; + subteams_auto_create_admin?: boolean; + subteams_auto_create_owner?: boolean; + thorn_safer_scan?: boolean; + two_factor_auth_required?: number; + uneditable_user_profile_fields?: string[]; + use_browser_picker?: boolean; + uses_customized_custom_status_presets?: boolean; + warn_before_at_channel?: string; + warn_user_before_logout?: boolean; + warn_user_before_logout_desktop?: boolean; + warn_user_before_logout_mobile?: boolean; + welcome_place_enabled?: boolean; + who_can_accept_slack_connect_channel_invites?: SlackConnectAllowedWorkspaces; + who_can_archive_channels?: string; + who_can_at_channel?: string; + who_can_at_everyone?: string; + who_can_change_team_profile?: string; + who_can_create_channel_email_addresses?: SlackConnectAllowedWorkspaces; + who_can_create_channels?: string; + who_can_create_delete_user_groups?: string; + who_can_create_external_limited_invite?: SlackConnectAllowedWorkspaces; + who_can_create_groups?: string; + who_can_create_shared_channels?: string; + who_can_create_slack_connect_channel_invite?: SlackConnectAllowedWorkspaces; + who_can_create_workflows?: SlackConnectAllowedWorkspaces; + who_can_dm_anyone?: SlackConnectAllowedWorkspaces; + who_can_edit_user_groups?: string; + who_can_kick_channels?: string; + who_can_kick_groups?: string; + who_can_manage_channel_posting_prefs?: string; + who_can_manage_ext_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_manage_guests?: SlackConnectAllowedWorkspaces; + who_can_manage_integrations?: SlackConnectAllowedWorkspaces; + who_can_manage_private_channels?: WhoCanManageP; who_can_manage_private_channels_at_workspace_level?: WhoCanManageP; - who_can_manage_public_channels?: WhoCanManageP; - who_can_manage_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_post_general?: string; - who_can_post_in_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_request_ext_shared_channels?: SlackConnectAllowedWorkspaces; - who_can_review_flagged_content?: SlackConnectAllowedWorkspaces; - who_can_use_hermes?: WhoCanUseHermes; - who_can_view_message_activity?: SlackConnectAllowedWorkspaces; - workflow_builder_enabled?: boolean; - workflow_extension_steps_beta_opt_in?: boolean; - workflow_extension_steps_enabled?: boolean; - workflows_export_csv_enabled?: boolean; - workflows_webhook_trigger_enabled?: boolean; + who_can_manage_public_channels?: WhoCanManageP; + who_can_manage_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_post_general?: string; + who_can_post_in_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_request_ext_shared_channels?: SlackConnectAllowedWorkspaces; + who_can_review_flagged_content?: SlackConnectAllowedWorkspaces; + who_can_use_hermes?: WhoCanUseHermes; + who_can_view_message_activity?: SlackConnectAllowedWorkspaces; + workflow_builder_enabled?: boolean; + workflow_extension_steps_beta_opt_in?: boolean; + workflow_extension_steps_enabled?: boolean; + workflows_export_csv_enabled?: boolean; + workflows_webhook_trigger_enabled?: boolean; } export interface CallsApps { @@ -2213,9 +2212,9 @@ export interface CallsApps { } export interface Video { - id?: string; + id?: string; image?: string; - name?: string; + name?: string; } export interface EnterpriseTeamCreationRequest { @@ -2237,71 +2236,71 @@ export interface WhoCanManageP { export interface WhoCanUseHermes { subteam?: string[]; - type?: string[]; - user?: string[]; + type?: string[]; + user?: string[]; } export interface User { - color?: string; - deleted?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_ultra_restricted?: boolean; - is_workflow_bot?: boolean; - name?: string; - presence?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + is_workflow_bot?: boolean; + name?: string; + presence?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface Profile { - always_active?: boolean; - api_app_id?: string; - avatar_hash?: string; - bot_id?: Id; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: Fields; - first_name?: string; - guest_invited_by?: string; - huddle_state?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: Id; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: Fields; + first_name?: string; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface Fields { @@ -2309,13 +2308,13 @@ export interface Fields { } export interface Xf019LT13Z16 { - alt?: string; + alt?: string; value?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/SearchAllResponse.ts b/packages/web-api/src/types/response/SearchAllResponse.ts index 2be8c03a7..bcf55a281 100644 --- a/packages/web-api/src/types/response/SearchAllResponse.ts +++ b/packages/web-api/src/types/response/SearchAllResponse.ts @@ -7,233 +7,233 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type SearchAllResponse = WebAPICallResult & { - error?: string; - files?: Files; + error?: string; + files?: Files; messages?: Messages; - needed?: string; - ok?: boolean; - posts?: Posts; + needed?: string; + ok?: boolean; + posts?: Posts; provided?: string; - query?: string; + query?: string; }; export interface Files { - matches?: FilesMatch[]; + matches?: FilesMatch[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface FilesMatch { - access?: string; - attachments?: Attachment[]; - bot_id?: string; - cc?: Cc[]; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - edit_link?: string; - editable?: boolean; - editors?: string[]; - editors_count?: number; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: MatchHeaders; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: LastEditor; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - non_owner_editable?: boolean; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + attachments?: Attachment[]; + bot_id?: string; + cc?: Cc[]; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + edit_link?: string; + editable?: boolean; + editors?: LastEditor[]; + editors_count?: number; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: MatchHeaders; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - sent_to_self?: boolean; - shares?: MatchShares; - size?: number; - subject?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: string[]; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_pdf?: string; - thumb_pdf_h?: number; - thumb_pdf_w?: number; - thumb_tiny?: string; - thumb_video?: string; - timestamp?: number; - title?: string; - title_blocks?: MatchTitleBlock[]; - to?: Cc[]; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: LastEditor; - user_team?: UserTeam; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + sent_to_self?: boolean; + shares?: MatchShares; + size?: number; + subject?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: string[]; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_pdf?: string; + thumb_pdf_h?: number; + thumb_pdf_w?: number; + thumb_tiny?: string; + thumb_video?: string; + timestamp?: number; + title?: string; + title_blocks?: MatchTitleBlock[]; + to?: Cc[]; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: LastEditor; + user_team?: UserTeam; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: AttachmentBlock[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: AttachmentBlock[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: ActionType; - url?: string; - value?: string; + style?: string; + text?: string; + type?: ActionType; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -264,100 +264,100 @@ export enum ActionType { } export interface AttachmentBlock { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: ActionType; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: ActionType; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -367,42 +367,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: ActionType; + indent?: number; + offset?: number; + style?: string; + type?: ActionType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -419,25 +419,25 @@ export enum PurpleType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -447,11 +447,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -473,173 +473,173 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: AttachmentBlock[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: AttachmentBlock[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: AttachmentBlock[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: AttachmentBlock[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: LastEditor; } @@ -649,92 +649,92 @@ export enum LastEditor { } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface FileHeaders { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -749,64 +749,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Public[] }; - public?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } export interface Public { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: LastEditor; - source?: string; - team_id?: UserTeam; - thread_ts?: string; - ts?: Ts; + share_user_id?: LastEditor; + source?: string; + team_id?: UserTeam; + thread_ts?: string; + ts?: Ts; } export enum UserTeam { @@ -825,48 +825,47 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface ListShares { -} +export type ListShares = {}; export interface PurpleListRecord { record?: Record; @@ -874,97 +873,97 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: AttachmentBlock[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: AttachmentBlock[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: any[]; + title?: string; + title_blocks?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -976,208 +975,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1189,77 +1188,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1272,30 +1271,30 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface MatchHeaders { @@ -1307,177 +1306,177 @@ export interface MatchShares { } export interface MatchTitleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; total_count?: number; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } export interface Messages { - matches?: MessagesMatch[]; + matches?: MessagesMatch[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface MessagesMatch { - attachments?: Attachment[]; - blocks?: MatchTitleBlock[]; - channel?: Channel; - files?: FileElement[]; - iid?: string; - is_mpim?: boolean; + attachments?: Attachment[]; + blocks?: MatchTitleBlock[]; + channel?: Channel; + files?: FileElement[]; + iid?: string; + is_mpim?: boolean; no_reactions?: boolean; - permalink?: string; - previous?: Previous; - previous_2?: Previous; - score?: number; - team?: UserTeam; - text?: string; - ts?: Ts; - type?: string; - user?: LastEditor; - username?: string; + permalink?: string; + previous?: Previous; + previous_2?: Previous; + score?: number; + team?: UserTeam; + text?: string; + ts?: Ts; + type?: string; + user?: LastEditor; + username?: string; } export interface Channel { - id?: string; - is_channel?: boolean; - is_ext_shared?: boolean; - is_file?: boolean; - is_group?: boolean; - is_im?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; + id?: string; + is_channel?: boolean; + is_ext_shared?: boolean; + is_file?: boolean; + is_group?: boolean; + is_im?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - name?: string; - name_normalized?: string; - pending_shared?: string[]; - user?: LastEditor; + is_private?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; + pending_shared?: string[]; + user?: LastEditor; } export interface Previous { attachments?: Attachment[]; - blocks?: MatchTitleBlock[]; - iid?: string; - permalink?: string; - text?: string; - ts?: Ts; - type?: string; - user?: LastEditor; - username?: string; + blocks?: MatchTitleBlock[]; + iid?: string; + permalink?: string; + text?: string; + ts?: Ts; + type?: string; + user?: LastEditor; + username?: string; } export interface Posts { matches?: string[]; - total?: number; + total?: number; } diff --git a/packages/web-api/src/types/response/SearchFilesResponse.ts b/packages/web-api/src/types/response/SearchFilesResponse.ts index c3731f390..7ae6e2ea2 100644 --- a/packages/web-api/src/types/response/SearchFilesResponse.ts +++ b/packages/web-api/src/types/response/SearchFilesResponse.ts @@ -7,329 +7,329 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type SearchFilesResponse = WebAPICallResult & { - error?: string; - files?: Files; - needed?: string; - ok?: boolean; + error?: string; + files?: Files; + needed?: string; + ok?: boolean; provided?: string; - query?: string; + query?: string; }; export interface Files { - matches?: Match[]; + matches?: Match[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface Match { - access?: string; - attachments?: Attachment[]; - bot_id?: string; - cc?: Cc[]; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - edit_link?: string; - editable?: boolean; - editors?: string[]; - editors_count?: number; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: MatchHeaders; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: LastEditor; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - non_owner_editable?: boolean; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: number; - original_w?: number; - permalink?: string; - permalink_public?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + attachments?: Attachment[]; + bot_id?: string; + cc?: Cc[]; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + edit_link?: string; + editable?: boolean; + editors?: LastEditor[]; + editors_count?: number; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: MatchHeaders; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: number; + original_w?: number; + permalink?: string; + permalink_public?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - sent_to_self?: boolean; - shares?: MatchShares; - size?: number; - subject?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: string[]; - thumb_1024?: string; - thumb_1024_h?: number; - thumb_1024_w?: number; - thumb_160?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: number; - thumb_360_w?: number; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: number; - thumb_480_w?: number; - thumb_64?: string; - thumb_720?: string; - thumb_720_h?: number; - thumb_720_w?: number; - thumb_80?: string; - thumb_800?: string; - thumb_800_h?: number; - thumb_800_w?: number; - thumb_960?: string; - thumb_960_h?: number; - thumb_960_w?: number; - thumb_pdf?: string; - thumb_pdf_h?: number; - thumb_pdf_w?: number; - thumb_tiny?: string; - thumb_video?: string; - timestamp?: number; - title?: string; - title_blocks?: TitleBlock[]; - to?: Cc[]; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: LastEditor; - user_team?: UserTeam; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + sent_to_self?: boolean; + shares?: MatchShares; + size?: number; + subject?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: string[]; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: number; + thumb_360_w?: number; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_720?: string; + thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; + thumb_800?: string; + thumb_800_h?: number; + thumb_800_w?: number; + thumb_960?: string; + thumb_960_h?: number; + thumb_960_w?: number; + thumb_pdf?: string; + thumb_pdf_h?: number; + thumb_pdf_w?: number; + thumb_tiny?: string; + thumb_video?: string; + timestamp?: number; + title?: string; + title_blocks?: TitleBlock[]; + to?: Cc[]; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: LastEditor; + user_team?: UserTeam; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -339,42 +339,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: FluffyType; + indent?: number; + offset?: number; + style?: string; + type?: FluffyType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -398,25 +398,25 @@ export enum FluffyType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -426,11 +426,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -452,173 +452,173 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: Block[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: Block[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: Block[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: Block[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: LastEditor; } @@ -628,92 +628,92 @@ export enum LastEditor { } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface FileHeaders { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -728,64 +728,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Public[] }; - public?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } export interface Public { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: LastEditor; - source?: string; - team_id?: UserTeam; - thread_ts?: string; - ts?: Ts; + share_user_id?: LastEditor; + source?: string; + team_id?: UserTeam; + thread_ts?: string; + ts?: Ts; } export enum UserTeam { @@ -804,48 +804,47 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface ListShares { -} +export type ListShares = {}; export interface PurpleListRecord { record?: Record; @@ -853,97 +852,97 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: Block[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: Block[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: any[]; + title?: string; + title_blocks?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -955,208 +954,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: FileHeaders; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: FileHeaders; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1168,77 +1167,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1251,30 +1250,30 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface MatchHeaders { @@ -1286,115 +1285,115 @@ export interface MatchShares { } export interface TitleBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; total_count?: number; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/SearchMessagesResponse.ts b/packages/web-api/src/types/response/SearchMessagesResponse.ts index 08710a32d..932d87db5 100644 --- a/packages/web-api/src/types/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/types/response/SearchMessagesResponse.ts @@ -7,143 +7,143 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type SearchMessagesResponse = WebAPICallResult & { - error?: string; + error?: string; messages?: Messages; - needed?: string; - ok?: boolean; + needed?: string; + ok?: boolean; provided?: string; - query?: string; + query?: string; }; export interface Messages { - matches?: Match[]; + matches?: Match[]; pagination?: Pagination; - paging?: Paging; - total?: number; + paging?: Paging; + total?: number; } export interface Match { - attachments?: Attachment[]; - blocks?: MatchBlock[]; - channel?: Channel; - files?: FileElement[]; - iid?: string; - is_mpim?: boolean; + attachments?: Attachment[]; + blocks?: MatchBlock[]; + channel?: Channel; + files?: FileElement[]; + iid?: string; + is_mpim?: boolean; no_reactions?: boolean; - permalink?: string; - previous?: Previous; - previous_2?: Previous; - score?: number; - team?: string; - text?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + permalink?: string; + previous?: Previous; + previous_2?: Previous; + score?: number; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: TitleBlockElement[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: AttachmentField[]; - file_id?: string; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - hide_border?: boolean; - hide_color?: boolean; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_file_attachment?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: TitleBlockElement[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: AttachmentField[]; + file_id?: string; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + hide_border?: boolean; + hide_color?: boolean; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_file_attachment?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - list?: List; - list_record?: PurpleListRecord; - list_record_id?: string; - list_records?: ListRecordElement[]; - list_schema?: Schema[]; - list_view?: View; - list_view_id?: string; - message_blocks?: MessageBlock[]; - metadata?: AttachmentMetadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + list?: List; + list_record?: PurpleListRecord; + list_record_id?: string; + list_records?: ListRecordElement[]; + list_schema?: Schema[]; + list_view?: View; + list_view_id?: string; + message_blocks?: MessageBlock[]; + metadata?: AttachmentMetadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: ActionType; - url?: string; - value?: string; + style?: string; + text?: string; + type?: ActionType; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } @@ -174,100 +174,100 @@ export enum ActionType { } export interface TitleBlockElement { - accessory?: Accessory; - alt_text?: string; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - description?: DescriptionElement | string; - developer_trace_id?: string; - elements?: Accessory[]; - fallback?: string; - fields?: DescriptionElement[]; - function_trigger_id?: string; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + description?: DescriptionElement | string; + developer_trace_id?: string; + elements?: Accessory[]; + fallback?: string; + fields?: DescriptionElement[]; + function_trigger_id?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement | string; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement | string; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: DescriptionElement; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: DescriptionElement; - timezone?: string; - type?: ActionType; - url?: string; - value?: string; - workflow?: Workflow; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: DescriptionElement; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: DescriptionElement; + timezone?: string; + type?: ActionType; + url?: string; + value?: string; + workflow?: Workflow; } export interface AccessoryConfirm { confirm?: DescriptionElement; - deny?: DescriptionElement; - style?: string; - text?: DescriptionElement; - title?: DescriptionElement; + deny?: DescriptionElement; + style?: string; + text?: DescriptionElement; + title?: DescriptionElement; } export interface DescriptionElement { - emoji?: boolean; - text?: string; - type?: DescriptionType; + emoji?: boolean; + text?: string; + type?: DescriptionType; verbatim?: boolean; } @@ -277,42 +277,42 @@ export enum DescriptionType { } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: ActionType; + indent?: number; + offset?: number; + style?: string; + type?: ActionType; } export interface PurpleElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: PurpleType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: PurpleType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum PurpleType { @@ -329,25 +329,25 @@ export enum PurpleType { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface InitialOptionElement { description?: DescriptionElement; - text?: DescriptionElement; - url?: string; - value?: string; + text?: DescriptionElement; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: DescriptionElement; + label?: DescriptionElement; options?: InitialOptionElement[]; } export interface SlackFile { - id?: string; + id?: string; url?: string; } @@ -357,11 +357,11 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } @@ -383,263 +383,263 @@ export interface AttachmentField { } export interface FileElement { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: string[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: Favorite[]; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: string[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: Favorite[]; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: PurpleShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: TitleBlockElement[]; - to?: Cc[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: PurpleShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: TitleBlockElement[]; + to?: Cc[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface DmMpdmUsersWithFileAccess { - access?: string; + access?: string; user_id?: string; } export interface Favorite { - collection_id?: string; + collection_id?: string; collection_name?: string; - position?: string; + position?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface InitialComment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; - user?: string; + user?: string; } export interface ListLimits { - column_count?: number; - column_count_limit?: number; + column_count?: number; + column_count_limit?: number; over_column_maximum?: boolean; - over_row_maximum?: boolean; - over_view_maximum?: boolean; - row_count?: number; - row_count_limit?: number; - view_count?: number; - view_count_limit?: number; + over_row_maximum?: boolean; + over_view_maximum?: boolean; + row_count?: number; + row_count_limit?: number; + view_count?: number; + view_count_limit?: number; } export interface ListMetadata { creation_source?: CreationSource; - description?: string; - icon?: string; - icon_team_id?: string; - icon_url?: string; - integrations?: string[]; - is_trial?: boolean; - schema?: Schema[]; - views?: View[]; + description?: string; + icon?: string; + icon_team_id?: string; + icon_url?: string; + integrations?: string[]; + is_trial?: boolean; + schema?: Schema[]; + views?: View[]; } export interface CreationSource { - reference_id?: string; - type?: string; + reference_id?: string; + type?: string; workflow_function_id?: string; } export interface Schema { - id?: string; + id?: string; is_primary_column?: boolean; - key?: string; - name?: string; - options?: Options; - type?: string; + key?: string; + name?: string; + options?: Options; + type?: string; } export interface Options { - canvas_id?: string; + canvas_id?: string; canvas_placeholder_mapping?: CanvasPlaceholderMapping[]; - choices?: Choice[]; - currency?: string; - currency_format?: string; - date_format?: string; - default_value?: string; - default_value_typed?: DefaultValueTyped; - emoji?: string; - emoji_team_id?: string; - for_assignment?: boolean; - format?: string; - linked_to?: string[]; - mark_as_done_when_checked?: boolean; - max?: number; - notify_users?: boolean; - precision?: number; - rounding?: string; - show_member_name?: boolean; - time_format?: string; + choices?: Choice[]; + currency?: string; + currency_format?: string; + date_format?: string; + default_value?: string; + default_value_typed?: DefaultValueTyped; + emoji?: string; + emoji_team_id?: string; + for_assignment?: boolean; + format?: string; + linked_to?: string[]; + mark_as_done_when_checked?: boolean; + max?: number; + notify_users?: boolean; + precision?: number; + rounding?: string; + show_member_name?: boolean; + time_format?: string; } export interface CanvasPlaceholderMapping { - column?: string; + column?: string; variable?: string; } @@ -654,64 +654,64 @@ export interface DefaultValueTyped { } export interface View { - columns?: Column[]; - created_by?: string; - date_created?: number; - id?: string; + columns?: Column[]; + created_by?: string; + date_created?: number; + id?: string; is_all_items_view?: boolean; - is_locked?: boolean; - name?: string; - position?: string; + is_locked?: boolean; + name?: string; + position?: string; stick_column_left?: boolean; - type?: string; + type?: string; } export interface Column { - id?: string; - key?: string; + id?: string; + key?: string; position?: string; - visible?: boolean; - width?: number; + visible?: boolean; + width?: number; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface PurpleShares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - access?: string; - channel_name?: string; - date_last_shared?: number; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + access?: string; + channel_name?: string; + date_last_shared?: number; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - source?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + source?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -720,48 +720,47 @@ export interface Transcription { } export interface List { - channels?: string[]; - comments_count?: number; - created?: number; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; - editable?: boolean; - external_type?: string; - file_access?: string; - filetype?: string; - groups?: string[]; - has_more_shares?: boolean; - has_rich_preview?: boolean; - id?: string; - ims?: string[]; - is_external?: boolean; - is_public?: boolean; - last_editor?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: string; - pretty_type?: string; + channels?: string[]; + comments_count?: number; + created?: number; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[]; + editable?: boolean; + external_type?: string; + file_access?: string; + filetype?: string; + groups?: string[]; + has_more_shares?: boolean; + has_rich_preview?: boolean; + id?: string; + ims?: string[]; + is_external?: boolean; + is_public?: boolean; + last_editor?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: string; + pretty_type?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - shares?: ListShares; - size?: number; - timestamp?: number; - title?: string; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + shares?: ListShares; + size?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; } -export interface ListShares { -} +export type ListShares = {}; export interface PurpleListRecord { record?: Record; @@ -769,97 +768,97 @@ export interface PurpleListRecord { } export interface Record { - fields?: RecordField[]; + fields?: RecordField[]; record_id?: string; } export interface RecordField { attachment?: any[]; - channel?: any[]; - checkbox?: boolean; - column_id?: string; - date?: any[]; - email?: any[]; - key?: string; - message?: Message; - number?: any[]; - phone?: any[]; - rating?: any[]; - rich_text?: any[]; - select?: any[]; - text?: string; - timestamp?: any[]; - user?: any[]; - value?: string; + channel?: any[]; + checkbox?: boolean; + column_id?: string; + date?: any[]; + email?: any[]; + key?: string; + message?: Message; + number?: any[]; + phone?: any[]; + rating?: any[]; + rich_text?: any[]; + select?: any[]; + text?: string; + timestamp?: any[]; + user?: any[]; + value?: string; } export interface Message { - app_id?: string; + app_id?: string; assistant_app_thread?: AssistantAppThread; - attachments?: any[]; - blocks?: TitleBlockElement[]; - bot_id?: string; - bot_link?: string; - bot_profile?: BotProfile; - channel?: string; - client_msg_id?: string; - comment?: Comment; - display_as_bot?: boolean; - edited?: Edited; - file?: MessageFile; - files?: any[]; - hidden?: boolean; - icons?: MessageIcons; - inviter?: string; - is_intro?: boolean; - is_locked?: boolean; - is_starred?: boolean; - is_thread_broadcast?: boolean; - item?: Comment; - item_type?: string; - last_read?: string; - latest_reply?: string; - metadata?: MessageMetadata; - no_notifications?: boolean; - parent_user_id?: string; - pinned_to?: any[]; - purpose?: string; - reactions?: any[]; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; - reply_users_count?: number; - room?: Room; - root?: Root; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - topic?: string; - ts?: string; - type?: string; - unfurl_links?: boolean; - unfurl_media?: boolean; - upload?: boolean; - user?: string; - username?: string; - wibblr?: boolean; - x_files?: any[]; + attachments?: any[]; + blocks?: TitleBlockElement[]; + bot_id?: string; + bot_link?: string; + bot_profile?: BotProfile; + channel?: string; + client_msg_id?: string; + comment?: Comment; + display_as_bot?: boolean; + edited?: Edited; + file?: MessageFile; + files?: any[]; + hidden?: boolean; + icons?: MessageIcons; + inviter?: string; + is_intro?: boolean; + is_locked?: boolean; + is_starred?: boolean; + is_thread_broadcast?: boolean; + item?: Comment; + item_type?: string; + last_read?: string; + latest_reply?: string; + metadata?: MessageMetadata; + no_notifications?: boolean; + parent_user_id?: string; + pinned_to?: any[]; + purpose?: string; + reactions?: any[]; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; + reply_users_count?: number; + room?: Room; + root?: Root; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; + unfurl_links?: boolean; + unfurl_media?: boolean; + upload?: boolean; + user?: string; + username?: string; + wibblr?: boolean; + x_files?: any[]; } export interface AssistantAppThread { first_user_thread_reply?: string; - title?: string; - title_blocks?: any[]; + title?: string; + title_blocks?: any[]; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: BotProfileIcons; - id?: string; - name?: string; + icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -871,208 +870,208 @@ export interface BotProfileIcons { } export interface Comment { - comment?: string; - created?: string; - display_as_bot?: boolean; - edit_link?: string; - editable?: boolean; - external_type?: string; - filetype?: string; - has_rich_preview?: boolean; - id?: string; - is_external?: boolean; - is_intro?: boolean; - is_public?: boolean; - is_starred?: boolean; - lines?: number; - lines_more?: number; - media_display_type?: string; - mimetype?: string; - mode?: string; - name?: string; - permalink?: string; - permalink_public?: boolean; - pretty_type?: string; - preview?: string; - preview_highlight?: string; + comment?: string; + created?: string; + display_as_bot?: boolean; + edit_link?: string; + editable?: boolean; + external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; + is_intro?: boolean; + is_public?: boolean; + is_starred?: boolean; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + permalink?: string; + permalink_public?: boolean; + pretty_type?: string; + preview?: string; + preview_highlight?: string; preview_is_truncated?: boolean; - public_url_shared?: boolean; - size?: number; - timestamp?: string; - title?: string; - url_private?: string; + public_url_shared?: boolean; + size?: number; + timestamp?: string; + title?: string; + url_private?: string; url_private_download?: boolean; - user?: string; - username?: string; + user?: string; + username?: string; } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface MessageFile { - access?: string; - alt_txt?: string; - app_id?: string; - app_name?: string; - attachments?: any[]; - blocks?: any[]; - bot_id?: string; - can_toggle_canvas_lock?: boolean; - canvas_template_mode?: string; - cc?: any[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: any[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - dm_mpdm_users_with_file_access?: any[]; - duration_ms?: number; - edit_link?: string; - edit_timestamp?: number; - editable?: boolean; - editor?: string; - editors?: any[]; - external_id?: string; - external_type?: string; - external_url?: string; - favorites?: any[]; - file_access?: string; - filetype?: string; - from?: any[]; - groups?: any[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: any[]; - initial_comment?: InitialComment; - is_channel_space?: boolean; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - last_read?: number; - lines?: number; - lines_more?: number; - linked_channel_id?: string; - list_limits?: ListLimits; - list_metadata?: ListMetadata; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; - org_or_workspace_access?: string; - original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: any[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; + access?: string; + alt_txt?: string; + app_id?: string; + app_name?: string; + attachments?: any[]; + blocks?: any[]; + bot_id?: string; + can_toggle_canvas_lock?: boolean; + canvas_template_mode?: string; + cc?: any[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: any[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + dm_mpdm_users_with_file_access?: any[]; + duration_ms?: number; + edit_link?: string; + edit_timestamp?: number; + editable?: boolean; + editor?: string; + editors?: any[]; + external_id?: string; + external_type?: string; + external_url?: string; + favorites?: any[]; + file_access?: string; + filetype?: string; + from?: any[]; + groups?: any[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: any[]; + initial_comment?: InitialComment; + is_channel_space?: boolean; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + last_read?: number; + lines?: number; + lines_more?: number; + linked_channel_id?: string; + list_limits?: ListLimits; + list_metadata?: ListMetadata; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + org_or_workspace_access?: string; + original_attachment_count?: number; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: any[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; private_channels_with_file_access_count?: number; - private_file_with_access_count?: number; - public_url_shared?: boolean; - quip_thread_id?: string; - reactions?: any[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: ListShares; - show_badge?: boolean; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - team_pref_version_history_enabled?: boolean; - teams_shared_with?: any[]; - template_conversion_ts?: number; - template_description?: string; - template_icon?: string; - template_name?: string; - template_title?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - title_blocks?: any[]; - to?: any[]; - transcription?: Transcription; - update_notification?: number; - updated?: number; - url_private?: string; - url_private_download?: string; - url_static_preview?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + private_file_with_access_count?: number; + public_url_shared?: boolean; + quip_thread_id?: string; + reactions?: any[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: ListShares; + show_badge?: boolean; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + team_pref_version_history_enabled?: boolean; + teams_shared_with?: any[]; + template_conversion_ts?: number; + template_description?: string; + template_icon?: string; + template_name?: string; + template_title?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + title_blocks?: any[]; + to?: any[]; + transcription?: Transcription; + update_notification?: number; + updated?: number; + url_private?: string; + url_private_download?: string; + url_static_preview?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface MessageIcons { - emoji?: string; + emoji?: string; image_36?: string; image_48?: string; image_64?: string; @@ -1084,77 +1083,77 @@ export interface MessageMetadata { } export interface Room { - app_id?: string; - attached_file_ids?: any[]; - background_id?: string; - call_family?: string; - canvas_background?: string; - canvas_thread_ts?: string; - channels?: any[]; - created_by?: string; - date_end?: number; - date_start?: number; - display_id?: string; - external_unique_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - is_prewarmed?: boolean; - is_scheduled?: boolean; - media_backend_type?: string; - media_server?: string; - name?: string; - participant_history?: any[]; - participants?: any[]; - participants_camera_off?: any[]; - participants_camera_on?: any[]; + app_id?: string; + attached_file_ids?: any[]; + background_id?: string; + call_family?: string; + canvas_background?: string; + canvas_thread_ts?: string; + channels?: any[]; + created_by?: string; + date_end?: number; + date_start?: number; + display_id?: string; + external_unique_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + is_prewarmed?: boolean; + is_scheduled?: boolean; + media_backend_type?: string; + media_server?: string; + name?: string; + participant_history?: any[]; + participants?: any[]; + participants_camera_off?: any[]; + participants_camera_on?: any[]; participants_screenshare_off?: any[]; - participants_screenshare_on?: any[]; - thread_root_ts?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + participants_screenshare_on?: any[]; + thread_root_ts?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Root { - bot_id?: string; - bot_profile?: BotProfile; - edited?: Edited; - icons?: MessageIcons; - last_read?: string; - latest_reply?: string; - mrkdwn?: boolean; - no_notifications?: boolean; - parent_user_id?: string; - replies?: any[]; - reply_count?: number; - reply_users?: any[]; + bot_id?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + no_notifications?: boolean; + parent_user_id?: string; + replies?: any[]; + reply_count?: number; + reply_users?: any[]; reply_users_count?: number; - room?: Room; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - unread_count?: number; - user?: string; - username?: string; + room?: Room; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface ListRecordElement { - created_by?: string; - date_created?: number; - fields?: RecordField[]; - id?: string; - is_subscribed?: boolean; - list_id?: string; - platform_refs?: PlatformRefs; - position?: string; - saved?: Saved; - thread_ts?: string; - updated_by?: string; + created_by?: string; + date_created?: number; + fields?: RecordField[]; + id?: string; + is_subscribed?: boolean; + list_id?: string; + platform_refs?: PlatformRefs; + position?: string; + saved?: Saved; + thread_ts?: string; + updated_by?: string; updated_timestamp?: string; } @@ -1167,172 +1166,172 @@ export interface PlatformRefs { export interface MessageBlock { channel?: string; message?: Message; - team?: string; - ts?: string; + team?: string; + ts?: string; } export interface AttachmentMetadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: DescriptionElement; - title?: DescriptionElement; - type?: string; + icon_url?: string; + subtitle?: DescriptionElement; + title?: DescriptionElement; + type?: string; } export interface MatchBlock { - accessory?: Accessory; - alt_text?: string; - api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: DescriptionElement; - developer_trace_id?: string; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: DescriptionElement[]; - file?: FileElement; - file_id?: string; - function_trigger_id?: string; - hint?: DescriptionElement; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - is_workflow_app?: boolean; - label?: DescriptionElement; - optional?: boolean; - owning_team_id?: string; - provider_icon_url?: string; - provider_name?: string; + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: DescriptionElement; + developer_trace_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: DescriptionElement[]; + file?: FileElement; + file_id?: string; + function_trigger_id?: string; + hint?: DescriptionElement; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + is_workflow_app?: boolean; + label?: DescriptionElement; + optional?: boolean; + owning_team_id?: string; + provider_icon_url?: string; + provider_name?: string; sales_home_workflow_app_type?: number; - share_url?: string; - slack_file?: SlackFile; - source?: string; - text?: DescriptionElement; - thumbnail_url?: string; - title?: DescriptionElement; - title_url?: string; - trigger_subtype?: string; - trigger_type?: string; - type?: BlockType; - url?: string; - video_url?: string; - workflow_id?: string; + share_url?: string; + slack_file?: SlackFile; + source?: string; + text?: DescriptionElement; + thumbnail_url?: string; + title?: DescriptionElement; + title_url?: string; + trigger_subtype?: string; + trigger_type?: string; + type?: BlockType; + url?: string; + video_url?: string; + workflow_id?: string; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } export interface Channel { - id?: string; - is_channel?: boolean; - is_ext_shared?: boolean; - is_file?: boolean; - is_group?: boolean; - is_im?: boolean; - is_mpim?: boolean; - is_org_shared?: boolean; + id?: string; + is_channel?: boolean; + is_ext_shared?: boolean; + is_file?: boolean; + is_group?: boolean; + is_im?: boolean; + is_mpim?: boolean; + is_org_shared?: boolean; is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - name?: string; - name_normalized?: string; - pending_shared?: string[]; - user?: string; + is_private?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; + pending_shared?: string[]; + user?: string; } export interface Previous { attachments?: Attachment[]; - blocks?: MatchBlock[]; - iid?: string; - permalink?: string; - text?: string; - ts?: string; - type?: string; - user?: string; - username?: string; + blocks?: MatchBlock[]; + iid?: string; + permalink?: string; + text?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface Pagination { - first?: number; - last?: number; - page?: number; - page_count?: number; - per_page?: number; + first?: number; + last?: number; + page?: number; + page_count?: number; + per_page?: number; total_count?: number; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/StarsAddResponse.ts b/packages/web-api/src/types/response/StarsAddResponse.ts index 392b8a8a5..d9ac3f1e7 100644 --- a/packages/web-api/src/types/response/StarsAddResponse.ts +++ b/packages/web-api/src/types/response/StarsAddResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type StarsAddResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/StarsListResponse.ts b/packages/web-api/src/types/response/StarsListResponse.ts index 01e8662ec..412d6f87f 100644 --- a/packages/web-api/src/types/response/StarsListResponse.ts +++ b/packages/web-api/src/types/response/StarsListResponse.ts @@ -7,216 +7,216 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type StarsListResponse = WebAPICallResult & { - error?: string; - items?: Item[]; - needed?: string; - ok?: boolean; - paging?: Paging; + error?: string; + items?: Item[]; + needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Item { - channel?: string; - comment?: Comment; + channel?: string; + comment?: Comment; date_create?: number; - file?: ItemFile; - message?: Message; - type?: string; + file?: ItemFile; + message?: Message; + type?: string; } export interface Comment { - channel?: string; - comment?: string; - created?: number; - id?: string; - is_intro?: boolean; + channel?: string; + comment?: string; + created?: number; + id?: string; + is_intro?: boolean; is_starred?: boolean; - num_stars?: number; - timestamp?: number; - user?: string; + num_stars?: number; + timestamp?: number; + user?: string; } export interface ItemFile { - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - duration_ms?: number; - edit_link?: string; - editable?: boolean; - editor?: string; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: Comment; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - lines?: number; - lines_more?: number; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; + editable?: boolean; + editor?: string; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - public_url_shared?: boolean; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - to?: Cc[]; - transcription?: Transcription; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + public_url_shared?: boolean; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + to?: Cc[]; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Cc { - address?: string; - name?: string; + address?: string; + name?: string; original?: string; } export interface Headers { - date?: string; + date?: string; in_reply_to?: string; - message_id?: string; - reply_to?: string; + message_id?: string; + reply_to?: string; } export interface MediaProgress { - duration_ms?: number; + duration_ms?: number; max_offset_ms?: number; - offset_ms?: number; + offset_ms?: number; } export interface Reaction { count?: number; - name?: string; - url?: string; + name?: string; + url?: string; users?: string[]; } export interface Saved { date_completed?: number; - date_due?: number; - is_archived?: boolean; - state?: string; + date_due?: number; + is_archived?: boolean; + state?: string; } export interface Shares { private?: { [key: string]: Private[] }; - public?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - channel_name?: string; - latest_reply?: string; - reply_count?: number; - reply_users?: string[]; + channel_name?: string; + latest_reply?: string; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - share_user_id?: string; - team_id?: string; - thread_ts?: string; - ts?: string; + share_user_id?: string; + team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { @@ -225,321 +225,321 @@ export interface Transcription { } export interface Message { - attachments?: Attachment[]; - blocks?: Block[]; - bot_id?: string; - bot_profile?: BotProfile; - client_msg_id?: string; - display_as_bot?: boolean; - edited?: Edited; - files?: FileElement[]; - inviter?: string; - is_locked?: boolean; - is_starred?: boolean; - last_read?: string; - latest_reply?: string; - permalink?: string; - reactions?: Reaction[]; - reply_count?: number; - reply_users?: string[]; + attachments?: Attachment[]; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + inviter?: string; + is_locked?: boolean; + is_starred?: boolean; + last_read?: string; + latest_reply?: string; + permalink?: string; + reactions?: Reaction[]; + reply_count?: number; + reply_users?: string[]; reply_users_count?: number; - subscribed?: boolean; - subtype?: string; - team?: string; - text?: string; - thread_ts?: string; - ts?: string; - type?: string; - upload?: boolean; - user?: string; - username?: string; + subscribed?: boolean; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + upload?: boolean; + user?: string; + username?: string; } export interface Attachment { - actions?: Action[]; - app_id?: string; - app_unfurl_url?: string; - author_icon?: string; - author_id?: string; - author_link?: string; - author_name?: string; - author_subname?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - channel_id?: string; - channel_name?: string; - channel_team?: string; - color?: string; - fallback?: string; - fields?: Field[]; - filename?: string; - files?: FileElement[]; - footer?: string; - footer_icon?: string; - from_url?: string; - id?: number; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: boolean; - is_app_unfurl?: boolean; - is_msg_unfurl?: boolean; - is_reply_unfurl?: boolean; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; + author_id?: string; + author_link?: string; + author_name?: string; + author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + channel_id?: string; + channel_name?: string; + channel_team?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; + id?: number; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: boolean; + is_app_unfurl?: boolean; + is_msg_unfurl?: boolean; + is_reply_unfurl?: boolean; is_thread_root_unfurl?: boolean; - metadata?: Metadata; - mimetype?: string; - mrkdwn_in?: string[]; - msg_subtype?: string; - original_url?: string; - pretext?: string; - preview?: Preview; - service_icon?: string; - service_name?: string; - service_url?: string; - size?: number; - text?: string; - thumb_height?: number; - thumb_url?: string; - thumb_width?: number; - title?: string; - title_link?: string; - ts?: string; - url?: string; - video_html?: string; - video_html_height?: number; - video_html_width?: number; - video_url?: string; + metadata?: Metadata; + mimetype?: string; + mrkdwn_in?: string[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; + preview?: Preview; + service_icon?: string; + service_name?: string; + service_url?: string; + size?: number; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; + url?: string; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - confirm?: ActionConfirm; - data_source?: string; - id?: string; + confirm?: ActionConfirm; + data_source?: string; + id?: string; min_query_length?: number; - name?: string; - option_groups?: ActionOptionGroup[]; - options?: SelectedOptionElement[]; + name?: string; + option_groups?: ActionOptionGroup[]; + options?: SelectedOptionElement[]; selected_options?: SelectedOptionElement[]; - style?: string; - text?: string; - type?: string; - url?: string; - value?: string; + style?: string; + text?: string; + type?: string; + url?: string; + value?: string; } export interface ActionConfirm { dismiss_text?: string; - ok_text?: string; - text?: string; - title?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { options?: SelectedOptionElement[]; - text?: string; + text?: string; } export interface SelectedOptionElement { - text?: string; + text?: string; value?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; - app_collaborators?: string[]; - app_id?: string; - author_name?: string; - block_id?: string; - bot_user_id?: string; - button_label?: string; - call?: Call; - call_id?: string; - description?: Description; - dispatch_action?: boolean; - element?: Accessory; - elements?: Accessory[]; - external_id?: string; - fallback?: string; - fields?: Description[]; - file?: ItemFile; - file_id?: string; - function_trigger_id?: string; - hint?: Description; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_workflow_app?: boolean; - label?: Description; - optional?: boolean; - provider_icon_url?: string; - provider_name?: string; - source?: string; - text?: Description; - thumbnail_url?: string; - title?: Description; - title_url?: string; - type?: string; - url?: string; - video_url?: string; + app_collaborators?: string[]; + app_id?: string; + author_name?: string; + block_id?: string; + bot_user_id?: string; + button_label?: string; + call?: Call; + call_id?: string; + description?: Description; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: Description[]; + file?: ItemFile; + file_id?: string; + function_trigger_id?: string; + hint?: Description; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_workflow_app?: boolean; + label?: Description; + optional?: boolean; + provider_icon_url?: string; + provider_name?: string; + source?: string; + text?: Description; + thumbnail_url?: string; + title?: Description; + title_url?: string; + type?: string; + url?: string; + video_url?: string; } export interface Accessory { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - border?: number; - confirm?: AccessoryConfirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + border?: number; + confirm?: AccessoryConfirm; default_to_current_conversation?: boolean; - elements?: AccessoryElement[]; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - indent?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: InitialOptionElement; - initial_options?: InitialOptionElement[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - offset?: number; - option_groups?: AccessoryOptionGroup[]; - options?: InitialOptionElement[]; - placeholder?: Description; - response_url_enabled?: boolean; - style?: string; - text?: Description; - timezone?: string; - type?: string; - url?: string; - value?: string; + elements?: AccessoryElement[]; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + indent?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + offset?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Description; + response_url_enabled?: boolean; + style?: string; + text?: Description; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { confirm?: Description; - deny?: Description; - style?: string; - text?: Description; - title?: Description; + deny?: Description; + style?: string; + text?: Description; + title?: Description; } export interface Description { - emoji?: boolean; - text?: string; - type?: string; + emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface AccessoryElement { - border?: number; + border?: number; elements?: PurpleElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface PurpleElement { - channel_id?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: string; - type?: string; - unicode?: string; - url?: string; - user_id?: string; + channel_id?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: string; + unicode?: string; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; - code?: boolean; + bold?: boolean; + code?: boolean; italic?: boolean; strike?: boolean; } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: string[]; + include?: string[]; } export interface InitialOptionElement { description?: Description; - text?: Description; - url?: string; - value?: string; + text?: Description; + url?: string; + value?: string; } export interface AccessoryOptionGroup { - label?: Description; + label?: Description; options?: InitialOptionElement[]; } export interface Call { media_backend_type?: string; - v1?: V1; + v1?: V1; } export interface V1 { - active_participants?: Participant[]; - all_participants?: Participant[]; - app_icon_urls?: AppIconUrls; - app_id?: string; - channels?: string[]; - created_by?: string; - date_end?: number; - date_start?: number; + active_participants?: Participant[]; + all_participants?: Participant[]; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; + created_by?: string; + date_end?: number; + date_start?: number; desktop_app_join_url?: string; - display_id?: string; - has_ended?: boolean; - id?: string; - is_dm_call?: boolean; - join_url?: string; - name?: string; - was_accepted?: boolean; - was_missed?: boolean; - was_rejected?: boolean; + display_id?: string; + has_ended?: boolean; + id?: string; + is_dm_call?: boolean; + join_url?: string; + name?: string; + was_accepted?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - avatar_url?: string; + avatar_url?: string; display_name?: string; - external_id?: string; - slack_id?: string; + external_id?: string; + slack_id?: string; } export interface AppIconUrls { - image_1024?: string; - image_128?: string; - image_192?: string; - image_32?: string; - image_36?: string; - image_48?: string; - image_512?: string; - image_64?: string; - image_72?: string; - image_96?: string; + image_1024?: string; + image_128?: string; + image_192?: string; + image_32?: string; + image_36?: string; + image_48?: string; + image_512?: string; + image_64?: string; + image_72?: string; + image_96?: string; image_original?: string; } @@ -550,164 +550,164 @@ export interface Field { } export interface FileElement { - alt_txt?: string; - app_id?: string; - app_name?: string; - bot_id?: string; - cc?: Cc[]; - channel_actions_count?: number; - channel_actions_ts?: string; - channels?: string[]; - comments_count?: number; - converted_pdf?: string; - created?: number; - deanimate?: string; - deanimate_gif?: string; - display_as_bot?: boolean; - duration_ms?: number; - edit_link?: string; - editable?: boolean; - editor?: string; - external_id?: string; - external_type?: string; - external_url?: string; - file_access?: string; - filetype?: string; - from?: Cc[]; - groups?: string[]; - has_more?: boolean; - has_more_shares?: boolean; - has_rich_preview?: boolean; - headers?: Headers; - hls?: string; - hls_embed?: string; - id?: string; - image_exif_rotation?: number; - ims?: string[]; - initial_comment?: Comment; - is_external?: boolean; - is_public?: boolean; - is_starred?: boolean; - last_editor?: string; - lines?: number; - lines_more?: number; - media_display_type?: string; - media_progress?: MediaProgress; - mimetype?: string; - mode?: string; - mp4?: string; - mp4_low?: string; - name?: string; - non_owner_editable?: boolean; - num_stars?: number; + alt_txt?: string; + app_id?: string; + app_name?: string; + bot_id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; + created?: number; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; + editable?: boolean; + editor?: string; + external_id?: string; + external_type?: string; + external_url?: string; + file_access?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_more_shares?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + media_progress?: MediaProgress; + mimetype?: string; + mode?: string; + mp4?: string; + mp4_low?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; original_attachment_count?: number; - original_h?: string; - original_w?: string; - permalink?: string; - permalink_public?: string; - pinned_to?: string[]; - pjpeg?: string; - plain_text?: string; - pretty_type?: string; - preview?: string; - preview_highlight?: string; - preview_is_truncated?: boolean; - preview_plain_text?: string; - public_url_shared?: boolean; - reactions?: Reaction[]; - saved?: Saved; - sent_to_self?: boolean; - shares?: Shares; - simplified_html?: string; - size?: number; - source_team?: string; - subject?: string; - subtype?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_h?: string; - thumb_1024_w?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_h?: string; - thumb_160_w?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_h?: string; - thumb_360_w?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_h?: string; - thumb_480_w?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_h?: string; - thumb_64_w?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_h?: string; - thumb_720_w?: string; - thumb_80?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_h?: string; - thumb_800_w?: string; - thumb_80_gif?: string; - thumb_80_h?: string; - thumb_80_w?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_h?: string; - thumb_960_w?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_h?: string; - thumb_pdf_w?: string; - thumb_tiny?: string; - thumb_video?: string; - thumb_video_h?: number; - thumb_video_w?: number; - timestamp?: number; - title?: string; - to?: Cc[]; - transcription?: Transcription; - updated?: number; - url_private?: string; - url_private_download?: string; - user?: string; - user_team?: string; - username?: string; - vtt?: string; + original_h?: string; + original_w?: string; + permalink?: string; + permalink_public?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; + preview?: string; + preview_highlight?: string; + preview_is_truncated?: boolean; + preview_plain_text?: string; + public_url_shared?: boolean; + reactions?: Reaction[]; + saved?: Saved; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + source_team?: string; + subject?: string; + subtype?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; + thumb_360?: string; + thumb_360_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_h?: string; + thumb_480_w?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_720?: string; + thumb_720_gif?: string; + thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; + thumb_800_h?: string; + thumb_800_w?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; + thumb_960?: string; + thumb_960_gif?: string; + thumb_960_h?: string; + thumb_960_w?: string; + thumb_gif?: string; + thumb_pdf?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; + to?: Cc[]; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + user_team?: string; + username?: string; + vtt?: string; } export interface Metadata { - extension?: string; - format?: string; - original_h?: number; - original_w?: number; - rotation?: number; - thumb_160?: boolean; + extension?: string; + format?: string; + original_h?: number; + original_w?: number; + rotation?: number; + thumb_160?: boolean; thumb_360_h?: number; thumb_360_w?: number; - thumb_64?: boolean; - thumb_80?: boolean; - thumb_tiny?: string; + thumb_64?: boolean; + thumb_80?: boolean; + thumb_tiny?: string; } export interface Preview { can_remove?: boolean; - icon_url?: string; - subtitle?: Description; - title?: Description; - type?: string; + icon_url?: string; + subtitle?: Description; + title?: Description; + type?: string; } export interface BotProfile { - app_id?: string; + app_id?: string; deleted?: boolean; - icons?: Icons; - id?: string; - name?: string; + icons?: Icons; + id?: string; + name?: string; team_id?: string; updated?: number; } @@ -719,14 +719,14 @@ export interface Icons { } export interface Edited { - ts?: string; + ts?: string; user?: string; } export interface Paging { - page?: number; - pages?: number; + page?: number; + pages?: number; per_page?: number; - spill?: number; - total?: number; + spill?: number; + total?: number; } diff --git a/packages/web-api/src/types/response/StarsRemoveResponse.ts b/packages/web-api/src/types/response/StarsRemoveResponse.ts index 3f7856ec6..4f0eb6847 100644 --- a/packages/web-api/src/types/response/StarsRemoveResponse.ts +++ b/packages/web-api/src/types/response/StarsRemoveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type StarsRemoveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/TeamAccessLogsResponse.ts b/packages/web-api/src/types/response/TeamAccessLogsResponse.ts index 028a9b9af..bc02478df 100644 --- a/packages/web-api/src/types/response/TeamAccessLogsResponse.ts +++ b/packages/web-api/src/types/response/TeamAccessLogsResponse.ts @@ -7,33 +7,33 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamAccessLogsResponse = WebAPICallResult & { - error?: string; - logins?: Login[]; - needed?: string; - ok?: boolean; - paging?: Paging; - provided?: string; + error?: string; + logins?: Login[]; + needed?: string; + ok?: boolean; + paging?: Paging; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Login { - count?: number; - country?: string; + count?: number; + country?: string; date_first?: number; - date_last?: number; - ip?: string; - isp?: string; - region?: string; + date_last?: number; + ip?: string; + isp?: string; + region?: string; user_agent?: string; - user_id?: string; - username?: string; + user_id?: string; + username?: string; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/TeamBillableInfoResponse.ts b/packages/web-api/src/types/response/TeamBillableInfoResponse.ts index 89c76df53..5d0f440d4 100644 --- a/packages/web-api/src/types/response/TeamBillableInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamBillableInfoResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamBillableInfoResponse = WebAPICallResult & { - billable_info?: { [key: string]: BillableInfo }; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + billable_info?: { [key: string]: BillableInfo }; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/TeamBillingInfoResponse.ts b/packages/web-api/src/types/response/TeamBillingInfoResponse.ts index 77ffe0c5e..f455d614e 100644 --- a/packages/web-api/src/types/response/TeamBillingInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamBillingInfoResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamBillingInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - plan?: string; + error?: string; + needed?: string; + ok?: boolean; + plan?: string; provided?: string; }; diff --git a/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts b/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts index fbf1cd48a..3951b3a03 100644 --- a/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts +++ b/packages/web-api/src/types/response/TeamExternalTeamsDisconnectResponse.ts @@ -7,12 +7,12 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamExternalTeamsDisconnectResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts b/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts index 9539c6eb8..cc56542fd 100644 --- a/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts +++ b/packages/web-api/src/types/response/TeamExternalTeamsListResponse.ts @@ -7,124 +7,124 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamExternalTeamsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - organizations?: Organization[]; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + organizations?: Organization[]; + provided?: string; response_metadata?: ResponseMetadata; - total_count?: number; + total_count?: number; }; export interface Organization { - canvas?: Canvas; - connected_workspaces?: ConnectedWorkspace[]; - connection_status?: string; - im_channel_count?: number; - is_sponsored?: boolean; + canvas?: Canvas; + connected_workspaces?: ConnectedWorkspace[]; + connection_status?: string; + im_channel_count?: number; + is_sponsored?: boolean; last_active_timestamp?: number; - lists?: Canvas; - mpim_channel_count?: number; + lists?: Canvas; + mpim_channel_count?: number; private_channel_count?: number; - public_channel_count?: number; - slack_connect_prefs?: SlackConnectPrefs; - team_domain?: string; - team_id?: string; - team_name?: string; + public_channel_count?: number; + slack_connect_prefs?: SlackConnectPrefs; + team_domain?: string; + team_id?: string; + team_name?: string; } export interface Canvas { ownership_details?: OwnershipDetail[]; - total_count?: number; + total_count?: number; } export interface OwnershipDetail { - count?: number; + count?: number; team_id?: string; } export interface ConnectedWorkspace { - workspace_id?: string; + workspace_id?: string; workspace_name?: string; } export interface SlackConnectPrefs { - accept_sc_invites?: AcceptScInvites; - allow_sc_file_uploads?: AllowScFileUploads; - allowed_canvas_sharing?: AllowScFileUploads; - allowed_list_sharing?: AllowScFileUploads; - allowed_workspaces?: AllowedWorkspaces; - approved_org_info?: AllowScFileUploads; + accept_sc_invites?: AcceptScInvites; + allow_sc_file_uploads?: AllowScFileUploads; + allowed_canvas_sharing?: AllowScFileUploads; + allowed_list_sharing?: AllowScFileUploads; + allowed_workspaces?: AllowedWorkspaces; + approved_org_info?: AllowScFileUploads; away_team_sc_invite_permissions?: AllowedWorkspaces; away_team_sc_invite_require_2fa?: AllowScFileUploads; - external_awareness_context_bar?: AllowScFileUploads; - profile_visibility?: AllowScFileUploads; - require_sc_channel_for_sc_dm?: AllowScFileUploads; - sc_channel_limited_access?: AllowScFileUploads; - sc_mpdm_to_private?: ScMpdmToPrivate; + external_awareness_context_bar?: AllowScFileUploads; + profile_visibility?: AllowScFileUploads; + require_sc_channel_for_sc_dm?: AllowScFileUploads; + sc_channel_limited_access?: AllowScFileUploads; + sc_mpdm_to_private?: ScMpdmToPrivate; shared_channel_invite_requested?: SharedChannelInviteRequested; } export interface AcceptScInvites { accept_in_workspace_ids?: string[]; - accept_private?: boolean; - actor?: string; - date_update?: number; - invalid_workspace_ids?: string[]; - source?: string; - type?: string; - use_allowed_workspaces?: boolean; + accept_private?: boolean; + actor?: string; + date_update?: number; + invalid_workspace_ids?: string[]; + source?: string; + type?: string; + use_allowed_workspaces?: boolean; } export interface AllowScFileUploads { - actor?: string; + actor?: string; approval_type?: string; - date_update?: number; - source?: string; - type?: boolean | string; - value?: boolean; + date_update?: number; + source?: string; + type?: boolean | string; + value?: boolean; } export interface AllowedWorkspaces { - actor?: string; + actor?: string; date_update?: number; - source?: string; - team_ids?: string[]; - type?: string; + source?: string; + team_ids?: string[]; + type?: string; } export interface ScMpdmToPrivate { accept_in_workspace_id?: string; - actor?: string; - date_update?: number; - invalid_workspace_ids?: string[]; - source?: string; - type?: string; + actor?: string; + date_update?: number; + invalid_workspace_ids?: string[]; + source?: string; + type?: string; } export interface SharedChannelInviteRequested { - actor?: string; + actor?: string; approval_destination?: ApprovalDestination; - date_update?: number; - enabled?: boolean; - source?: string; - usergroup_exclude?: UsergroupClude; - usergroup_include?: UsergroupClude; + date_update?: number; + enabled?: boolean; + source?: string; + usergroup_exclude?: UsergroupClude; + usergroup_include?: UsergroupClude; } export interface ApprovalDestination { all_who_can_manage_shared_channels?: boolean; - channel_id?: string; + channel_id?: string; } export interface UsergroupClude { - id?: string; + id?: string; team_id?: string; } export interface ResponseMetadata { - messages?: string[]; + messages?: string[]; next_cursor?: string; } diff --git a/packages/web-api/src/types/response/TeamInfoResponse.ts b/packages/web-api/src/types/response/TeamInfoResponse.ts index 56ba7a006..2bcd1a92a 100644 --- a/packages/web-api/src/types/response/TeamInfoResponse.ts +++ b/packages/web-api/src/types/response/TeamInfoResponse.ts @@ -7,39 +7,39 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - team?: Team; + team?: Team; }; export interface Team { - avatar_base_url?: string; - discoverable?: string; - domain?: string; - email_domain?: string; - enterprise_domain?: string; - enterprise_id?: string; - enterprise_name?: string; - icon?: Icon; - id?: string; - is_verified?: boolean; + avatar_base_url?: string; + discoverable?: string; + domain?: string; + email_domain?: string; + enterprise_domain?: string; + enterprise_id?: string; + enterprise_name?: string; + icon?: Icon; + id?: string; + is_verified?: boolean; lob_sales_home_enabled?: boolean; - name?: string; - url?: string; + name?: string; + url?: string; } export interface Icon { - image_102?: string; - image_132?: string; - image_230?: string; - image_34?: string; - image_44?: string; - image_68?: string; - image_88?: string; - image_default?: boolean; + image_102?: string; + image_132?: string; + image_230?: string; + image_34?: string; + image_44?: string; + image_68?: string; + image_88?: string; + image_default?: boolean; image_original?: string; } diff --git a/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts b/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts index 6141bbbb3..e616c8ac4 100644 --- a/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts +++ b/packages/web-api/src/types/response/TeamIntegrationLogsResponse.ts @@ -7,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamIntegrationLogsResponse = WebAPICallResult & { - error?: string; - logs?: Log[]; - needed?: string; - ok?: boolean; - paging?: Paging; + error?: string; + logs?: Log[]; + needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Log { - app_id?: string; - app_type?: string; - change_type?: string; - channel?: string; - date?: string; - reason?: string; - resolution?: string; - rss_feed?: boolean; + app_id?: string; + app_type?: string; + change_type?: string; + channel?: string; + date?: string; + reason?: string; + resolution?: string; + rss_feed?: boolean; rss_feed_change_type?: string; - rss_feed_title?: string; - rss_feed_url?: string; - scope?: string; - service_id?: number; - service_type?: string; - user_id?: string; - user_name?: string; + rss_feed_title?: string; + rss_feed_url?: string; + scope?: string; + service_id?: number; + service_type?: string; + user_id?: string; + user_name?: string; } export interface Paging { count?: number; - page?: number; + page?: number; pages?: number; total?: number; } diff --git a/packages/web-api/src/types/response/TeamPreferencesListResponse.ts b/packages/web-api/src/types/response/TeamPreferencesListResponse.ts index 1c4949e9a..24b5a2dcf 100644 --- a/packages/web-api/src/types/response/TeamPreferencesListResponse.ts +++ b/packages/web-api/src/types/response/TeamPreferencesListResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamPreferencesListResponse = WebAPICallResult & { allow_message_deletion?: boolean; - disable_file_uploads?: string; - display_real_names?: boolean; - error?: string; - msg_edit_window_mins?: number; - needed?: string; - ok?: boolean; - provided?: string; - who_can_post_general?: string; + disable_file_uploads?: string; + display_real_names?: boolean; + error?: string; + msg_edit_window_mins?: number; + needed?: string; + ok?: boolean; + provided?: string; + who_can_post_general?: string; }; diff --git a/packages/web-api/src/types/response/TeamProfileGetResponse.ts b/packages/web-api/src/types/response/TeamProfileGetResponse.ts index 15e23bc15..f0af40d56 100644 --- a/packages/web-api/src/types/response/TeamProfileGetResponse.ts +++ b/packages/web-api/src/types/response/TeamProfileGetResponse.ts @@ -7,51 +7,51 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type TeamProfileGetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - fields?: Field[]; + fields?: Field[]; sections?: Section[]; } export interface Field { - field_name?: string; - hint?: string; - id?: string; - is_hidden?: boolean; - is_inverse?: boolean; - label?: string; - options?: Options; - ordering?: number; - permissions?: Permissions; + field_name?: string; + hint?: string; + id?: string; + is_hidden?: boolean; + is_inverse?: boolean; + label?: string; + options?: Options; + ordering?: number; + permissions?: Permissions; possible_values?: string[]; - section_id?: string; - type?: string; + section_id?: string; + type?: string; } export interface Options { is_protected?: boolean; - is_scim?: boolean; + is_scim?: boolean; } export interface Permissions { - api?: string[]; + api?: string[]; scim?: boolean; - ui?: boolean; + ui?: boolean; } export interface Section { - id?: string; - is_hidden?: boolean; - label?: string; - order?: number; + id?: string; + is_hidden?: boolean; + label?: string; + order?: number; section_type?: string; - team_id?: string; + team_id?: string; } diff --git a/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts b/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts index 83226d08f..0fe10f7b6 100644 --- a/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts +++ b/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts @@ -7,19 +7,19 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ToolingTokensRotateResponse = WebAPICallResult & { - error?: string; - exp?: number; - iat?: number; - needed?: string; - ok?: boolean; - provided?: string; - refresh_token?: string; + error?: string; + exp?: number; + iat?: number; + needed?: string; + ok?: boolean; + provided?: string; + refresh_token?: string; response_metadata?: ResponseMetadata; - team_id?: string; - token?: string; - user_id?: string; + team_id?: string; + token?: string; + user_id?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/UsergroupsCreateResponse.ts b/packages/web-api/src/types/response/UsergroupsCreateResponse.ts index 4781b12ea..1fe5905a6 100644 --- a/packages/web-api/src/types/response/UsergroupsCreateResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsCreateResponse.ts @@ -7,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsCreateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsDisableResponse.ts b/packages/web-api/src/types/response/UsergroupsDisableResponse.ts index 0b19672ef..c679f98c9 100644 --- a/packages/web-api/src/types/response/UsergroupsDisableResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsDisableResponse.ts @@ -7,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsDisableResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - deleted_by?: string; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + deleted_by?: string; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsEnableResponse.ts b/packages/web-api/src/types/response/UsergroupsEnableResponse.ts index cdc7f34a9..0bafcf72f 100644 --- a/packages/web-api/src/types/response/UsergroupsEnableResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsEnableResponse.ts @@ -7,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsEnableResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsListResponse.ts b/packages/web-api/src/types/response/UsergroupsListResponse.ts index c6c254423..7f79bf52e 100644 --- a/packages/web-api/src/types/response/UsergroupsListResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsListResponse.ts @@ -7,38 +7,38 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroups?: Usergroup[]; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - user_count?: number; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + user_count?: number; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts b/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts index 920fcf427..050113316 100644 --- a/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsUpdateResponse.ts @@ -7,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsUpdateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts b/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts index 25c3106ee..3f65510dd 100644 --- a/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsUsersListResponse.ts @@ -7,11 +7,11 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsUsersListResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - users?: string[]; + users?: string[]; }; diff --git a/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts b/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts index fcbbdf03f..78462953d 100644 --- a/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts +++ b/packages/web-api/src/types/response/UsergroupsUsersUpdateResponse.ts @@ -7,37 +7,37 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsergroupsUsersUpdateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; usergroup?: Usergroup; }; export interface Usergroup { - auto_provision?: boolean; - channel_count?: number; - created_by?: string; - date_create?: number; - date_delete?: number; - date_update?: number; - description?: string; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; + date_create?: number; + date_delete?: number; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - handle?: string; - id?: string; - is_external?: boolean; - is_subteam?: boolean; - is_usergroup?: boolean; - name?: string; - prefs?: Prefs; - team_id?: string; - updated_by?: string; - users?: string[]; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; + prefs?: Prefs; + team_id?: string; + updated_by?: string; + users?: string[]; } export interface Prefs { channels?: string[]; - groups?: string[]; + groups?: string[]; } diff --git a/packages/web-api/src/types/response/UsersConversationsResponse.ts b/packages/web-api/src/types/response/UsersConversationsResponse.ts index a1d47ef95..f31fd842b 100644 --- a/packages/web-api/src/types/response/UsersConversationsResponse.ts +++ b/packages/web-api/src/types/response/UsersConversationsResponse.ts @@ -7,69 +7,69 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersConversationsResponse = WebAPICallResult & { - channels?: Channel[]; - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + channels?: Channel[]; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Channel { - context_team_id?: string; - conversation_host_id?: string; - created?: number; - creator?: string; - enterprise_id?: string; - id?: string; - internal_team_ids?: string[]; - is_archived?: boolean; - is_channel?: boolean; - is_ext_shared?: boolean; - is_general?: boolean; - is_global_shared?: boolean; - is_group?: boolean; - is_im?: boolean; - is_moved?: number; - is_mpim?: boolean; - is_open?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - is_org_shared?: boolean; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_shared?: boolean; - is_user_deleted?: boolean; - last_read?: string; - name?: string; - name_normalized?: string; - parent_conversation?: string; + context_team_id?: string; + conversation_host_id?: string; + created?: number; + creator?: string; + enterprise_id?: string; + id?: string; + internal_team_ids?: string[]; + is_archived?: boolean; + is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; + is_group?: boolean; + is_im?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; + is_org_default?: boolean; + is_org_mandatory?: boolean; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_user_deleted?: boolean; + last_read?: string; + name?: string; + name_normalized?: string; + parent_conversation?: string; pending_connected_team_ids?: string[]; - pending_shared?: string[]; - previous_names?: string[]; - priority?: number; - properties?: Properties; - purpose?: Purpose; - shared_team_ids?: string[]; - topic?: Purpose; - unlinked?: number; - updated?: number; - user?: string; + pending_shared?: string[]; + previous_names?: string[]; + priority?: number; + properties?: Properties; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; + updated?: number; + user?: string; } export interface Properties { - canvas?: Canvas; - huddles_restricted?: boolean; + canvas?: Canvas; + huddles_restricted?: boolean; posting_restricted_to?: PostingRestrictedTo; - tabs?: Tab[]; + tabs?: Tab[]; threads_restricted_to?: ThreadsRestrictedTo; } export interface Canvas { - file_id?: string; - is_empty?: boolean; + file_id?: string; + is_empty?: boolean; quip_thread_id?: string; } @@ -79,9 +79,9 @@ export interface PostingRestrictedTo { } export interface Tab { - id?: string; + id?: string; label?: string; - type?: string; + type?: string; } export interface ThreadsRestrictedTo { @@ -89,9 +89,9 @@ export interface ThreadsRestrictedTo { } export interface Purpose { - creator?: string; + creator?: string; last_set?: number; - value?: string; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts b/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts index 6e07c585d..b097deb96 100644 --- a/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts +++ b/packages/web-api/src/types/response/UsersDeletePhotoResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersDeletePhotoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts b/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts index a43e9e4fc..41d1e176e 100644 --- a/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts +++ b/packages/web-api/src/types/response/UsersDiscoverableContactsLookupResponse.ts @@ -7,13 +7,13 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersDiscoverableContactsLookupResponse = WebAPICallResult & { - error?: string; - is_discoverable?: boolean; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + is_discoverable?: boolean; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/types/response/UsersGetPresenceResponse.ts b/packages/web-api/src/types/response/UsersGetPresenceResponse.ts index 3630421fd..871809215 100644 --- a/packages/web-api/src/types/response/UsersGetPresenceResponse.ts +++ b/packages/web-api/src/types/response/UsersGetPresenceResponse.ts @@ -7,17 +7,17 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersGetPresenceResponse = WebAPICallResult & { - auto_away?: boolean; + auto_away?: boolean; connection_count?: number; - error?: string; - last_activity?: number; - manual_away?: boolean; - needed?: string; - ok?: boolean; - online?: boolean; - presence?: string; - provided?: string; - warning?: string; + error?: string; + last_activity?: number; + manual_away?: boolean; + needed?: string; + ok?: boolean; + online?: boolean; + presence?: string; + provided?: string; + warning?: string; }; diff --git a/packages/web-api/src/types/response/UsersIdentityResponse.ts b/packages/web-api/src/types/response/UsersIdentityResponse.ts index 69f1b7dd5..d09dc78a4 100644 --- a/packages/web-api/src/types/response/UsersIdentityResponse.ts +++ b/packages/web-api/src/types/response/UsersIdentityResponse.ts @@ -7,30 +7,30 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersIdentityResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - team?: Team; - user?: User; - warning?: string; + team?: Team; + user?: User; + warning?: string; }; export interface Team { - id?: string; + id?: string; name?: string; } export interface User { - email?: string; - id?: string; + email?: string; + id?: string; image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; + image_24?: string; + image_32?: string; + image_48?: string; image_512?: string; - image_72?: string; - name?: string; + image_72?: string; + name?: string; } diff --git a/packages/web-api/src/types/response/UsersInfoResponse.ts b/packages/web-api/src/types/response/UsersInfoResponse.ts index 7f3d0b664..678ace962 100644 --- a/packages/web-api/src/types/response/UsersInfoResponse.ts +++ b/packages/web-api/src/types/response/UsersInfoResponse.ts @@ -7,94 +7,94 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersInfoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; - user?: User; + user?: User; }; export interface User { - color?: string; - deleted?: boolean; - enterprise_user?: EnterpriseUser; - has_2fa?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_connector_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_stranger?: boolean; - is_ultra_restricted?: boolean; - is_workflow_bot?: boolean; - locale?: string; - name?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + enterprise_user?: EnterpriseUser; + has_2fa?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_connector_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_stranger?: boolean; + is_ultra_restricted?: boolean; + is_workflow_bot?: boolean; + locale?: string; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface EnterpriseUser { - enterprise_id?: string; + enterprise_id?: string; enterprise_name?: string; - id?: string; - is_admin?: boolean; - is_owner?: boolean; - teams?: string[]; + id?: string; + is_admin?: boolean; + is_owner?: boolean; + teams?: string[]; } export interface Profile { - always_active?: boolean; - api_app_id?: string; - avatar_hash?: string; - bot_id?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - first_name?: string; - guest_invited_by?: string; - huddle_state?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + first_name?: string; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersListResponse.ts b/packages/web-api/src/types/response/UsersListResponse.ts index 88e87c08e..0d2908494 100644 --- a/packages/web-api/src/types/response/UsersListResponse.ts +++ b/packages/web-api/src/types/response/UsersListResponse.ts @@ -7,105 +7,104 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersListResponse = WebAPICallResult & { - arg?: string; - cache_ts?: number; - error?: string; - members?: Member[]; - needed?: string; - offset?: string; - ok?: boolean; - provided?: string; + arg?: string; + cache_ts?: number; + error?: string; + members?: Member[]; + needed?: string; + offset?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; }; export interface Member { - color?: string; - deleted?: boolean; - enterprise_user?: EnterpriseUser; - has_2fa?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_connector_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_ultra_restricted?: boolean; - is_workflow_bot?: boolean; - locale?: string; - name?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - two_factor_type?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + enterprise_user?: EnterpriseUser; + has_2fa?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_connector_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + is_workflow_bot?: boolean; + locale?: string; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + two_factor_type?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface EnterpriseUser { - enterprise_id?: string; - enterprise_name?: string; - id?: string; - is_admin?: boolean; - is_owner?: boolean; + enterprise_id?: string; + enterprise_name?: string; + id?: string; + is_admin?: boolean; + is_owner?: boolean; is_primary_owner?: boolean; - teams?: string[]; + teams?: string[]; } export interface Profile { - always_active?: boolean; - api_app_id?: string; - avatar_hash?: string; - bot_id?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: Fields; - first_name?: string; - guest_expiration_ts?: number; - guest_invited_by?: string; - huddle_state?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: Fields; + first_name?: string; + guest_expiration_ts?: number; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } -export interface Fields { -} +export type Fields = {}; export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts b/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts index 72edba818..6e9ab8e37 100644 --- a/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts +++ b/packages/web-api/src/types/response/UsersLookupByEmailResponse.ts @@ -7,14 +7,14 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersLookupByEmailResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - user?: User; + user?: User; }; export interface ResponseMetadata { @@ -22,67 +22,67 @@ export interface ResponseMetadata { } export interface User { - color?: string; - deleted?: boolean; - has_2fa?: boolean; - id?: string; - is_admin?: boolean; - is_app_user?: boolean; - is_bot?: boolean; - is_email_confirmed?: boolean; - is_invited_user?: boolean; - is_owner?: boolean; - is_primary_owner?: boolean; - is_restricted?: boolean; - is_ultra_restricted?: boolean; - name?: string; - profile?: Profile; - real_name?: string; - team_id?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - updated?: number; + color?: string; + deleted?: boolean; + has_2fa?: boolean; + id?: string; + is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; + is_invited_user?: boolean; + is_owner?: boolean; + is_primary_owner?: boolean; + is_restricted?: boolean; + is_ultra_restricted?: boolean; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; + updated?: number; who_can_share_contact_card?: string; } export interface Profile { - avatar_hash?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - first_name?: string; - guest_invited_by?: string; - huddle_state?: string; + avatar_hash?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + first_name?: string; + guest_invited_by?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - team?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersProfileGetResponse.ts b/packages/web-api/src/types/response/UsersProfileGetResponse.ts index 72ae4357e..7111d8310 100644 --- a/packages/web-api/src/types/response/UsersProfileGetResponse.ts +++ b/packages/web-api/src/types/response/UsersProfileGetResponse.ts @@ -7,57 +7,57 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersProfileGetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - avatar_hash?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: { [key: string]: Field }; - first_name?: string; - huddle_state?: string; + avatar_hash?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: { [key: string]: Field }; + first_name?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + title?: string; } export interface Field { - alt?: string; + alt?: string; label?: string; value?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersProfileSetResponse.ts b/packages/web-api/src/types/response/UsersProfileSetResponse.ts index e54e9c2f8..b83d4fee6 100644 --- a/packages/web-api/src/types/response/UsersProfileSetResponse.ts +++ b/packages/web-api/src/types/response/UsersProfileSetResponse.ts @@ -7,57 +7,57 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersProfileSetResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; username?: string; }; export interface Profile { - avatar_hash?: string; - display_name?: string; - display_name_normalized?: string; - email?: string; - fields?: { [key: string]: Field }; - first_name?: string; - huddle_state?: string; + avatar_hash?: string; + display_name?: string; + display_name_normalized?: string; + email?: string; + fields?: { [key: string]: Field }; + first_name?: string; + huddle_state?: string; huddle_state_expiration_ts?: number; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; - image_original?: string; - is_custom_image?: boolean; - last_name?: string; - phone?: string; - pronouns?: string; - real_name?: string; - real_name_normalized?: string; - skype?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_emoji_url?: string; - status_expiration?: number; - status_text?: string; - status_text_canonical?: string; - title?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; + image_original?: string; + is_custom_image?: boolean; + last_name?: string; + phone?: string; + pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; + status_emoji_display_info?: StatusEmojiDisplayInfo[]; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + title?: string; } export interface Field { - alt?: string; + alt?: string; value?: string; } export interface StatusEmojiDisplayInfo { display_alias?: string; - display_url?: string; - emoji_name?: string; - unicode?: string; + display_url?: string; + emoji_name?: string; + unicode?: string; } diff --git a/packages/web-api/src/types/response/UsersSetActiveResponse.ts b/packages/web-api/src/types/response/UsersSetActiveResponse.ts index 2a9cb8820..ad472a2f6 100644 --- a/packages/web-api/src/types/response/UsersSetActiveResponse.ts +++ b/packages/web-api/src/types/response/UsersSetActiveResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersSetActiveResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/UsersSetPhotoResponse.ts b/packages/web-api/src/types/response/UsersSetPhotoResponse.ts index 11268ed52..e6d7506b0 100644 --- a/packages/web-api/src/types/response/UsersSetPhotoResponse.ts +++ b/packages/web-api/src/types/response/UsersSetPhotoResponse.ts @@ -7,23 +7,23 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersSetPhotoResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - profile?: Profile; + error?: string; + needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - avatar_hash?: string; - image_1024?: string; - image_192?: string; - image_24?: string; - image_32?: string; - image_48?: string; - image_512?: string; - image_72?: string; + avatar_hash?: string; + image_1024?: string; + image_192?: string; + image_24?: string; + image_32?: string; + image_48?: string; + image_512?: string; + image_72?: string; image_original?: string; } diff --git a/packages/web-api/src/types/response/UsersSetPresenceResponse.ts b/packages/web-api/src/types/response/UsersSetPresenceResponse.ts index 4225291e5..179d04a19 100644 --- a/packages/web-api/src/types/response/UsersSetPresenceResponse.ts +++ b/packages/web-api/src/types/response/UsersSetPresenceResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type UsersSetPresenceResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/ViewsOpenResponse.ts b/packages/web-api/src/types/response/ViewsOpenResponse.ts index da12b569b..ab7af7eef 100644 --- a/packages/web-api/src/types/response/ViewsOpenResponse.ts +++ b/packages/web-api/src/types/response/ViewsOpenResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ViewsOpenResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -23,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -105,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -156,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -236,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -286,13 +286,12 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export interface State { -} +export type State = {}; diff --git a/packages/web-api/src/types/response/ViewsPublishResponse.ts b/packages/web-api/src/types/response/ViewsPublishResponse.ts index cae852ed0..d11e63129 100644 --- a/packages/web-api/src/types/response/ViewsPublishResponse.ts +++ b/packages/web-api/src/types/response/ViewsPublishResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ViewsPublishResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -23,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -105,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -156,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -236,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -286,13 +286,12 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export interface State { -} +export type State = {}; diff --git a/packages/web-api/src/types/response/ViewsPushResponse.ts b/packages/web-api/src/types/response/ViewsPushResponse.ts index 3d83ccc10..402bc6db5 100644 --- a/packages/web-api/src/types/response/ViewsPushResponse.ts +++ b/packages/web-api/src/types/response/ViewsPushResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ViewsPushResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -23,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -105,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -156,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -236,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -286,13 +286,12 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export interface State { -} +export type State = {}; diff --git a/packages/web-api/src/types/response/ViewsUpdateResponse.ts b/packages/web-api/src/types/response/ViewsUpdateResponse.ts index a0beb221b..55dc1913a 100644 --- a/packages/web-api/src/types/response/ViewsUpdateResponse.ts +++ b/packages/web-api/src/types/response/ViewsUpdateResponse.ts @@ -7,15 +7,15 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type ViewsUpdateResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; - provided?: string; + error?: string; + needed?: string; + ok?: boolean; + provided?: string; response_metadata?: ResponseMetadata; - view?: View; - warning?: string; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -23,78 +23,78 @@ export interface ResponseMetadata { } export interface View { - app_id?: string; + app_id?: string; app_installed_team_id?: string; - blocks?: Block[]; - bot_id?: string; - callback_id?: string; - clear_on_close?: boolean; - close?: Close; - external_id?: string; - hash?: string; - id?: string; - notify_on_close?: boolean; - previous_view_id?: string; - private_metadata?: string; - root_view_id?: string; - state?: State; - submit?: Close; - submit_disabled?: boolean; - team_id?: string; - title?: Close; - type?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; + clear_on_close?: boolean; + close?: Close; + external_id?: string; + hash?: string; + id?: string; + notify_on_close?: boolean; + previous_view_id?: string; + private_metadata?: string; + root_view_id?: string; + state?: State; + submit?: Close; + submit_disabled?: boolean; + team_id?: string; + title?: Close; + type?: string; } export interface Block { - accessory?: Accessory; - alt_text?: string; - author_name?: string; - block_id?: string; - description?: Close; - dispatch_action?: boolean; - element?: PurpleElement; - elements?: StickyElement[]; - fallback?: string; - fields?: Close[]; - hint?: Close; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - is_animated?: boolean; - label?: Close; - optional?: boolean; + accessory?: Accessory; + alt_text?: string; + author_name?: string; + block_id?: string; + description?: Close; + dispatch_action?: boolean; + element?: PurpleElement; + elements?: StickyElement[]; + fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + is_animated?: boolean; + label?: Close; + optional?: boolean; provider_icon_url?: string; - provider_name?: string; - slack_file?: SlackFile; - text?: Close; - thumbnail_url?: string; - title?: Close; - title_url?: string; - type?: string; - video_url?: string; + provider_name?: string; + slack_file?: SlackFile; + text?: Close; + thumbnail_url?: string; + title?: Close; + title_url?: string; + type?: string; + video_url?: string; } export interface Accessory { - alt_text?: string; - fallback?: string; - image_bytes?: number; + alt_text?: string; + fallback?: string; + image_bytes?: number; image_height?: number; - image_url?: string; - image_width?: number; - slack_file?: SlackFile; - type?: string; + image_url?: string; + image_width?: number; + slack_file?: SlackFile; + type?: string; } export interface SlackFile { - id?: string; + id?: string; url?: string; } export interface Close { - emoji?: boolean; - text?: string; - type?: CloseType; + emoji?: boolean; + text?: string; + type?: CloseType; verbatim?: boolean; } @@ -105,50 +105,50 @@ export enum CloseType { } export interface PurpleElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - dispatch_action_config?: DispatchActionConfig; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_conversation?: string; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_time?: string; - initial_user?: string; - initial_value?: InitialValueClass | string; - max_length?: number; - min_length?: number; - min_query_length?: number; - multiline?: boolean; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; + dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_conversation?: string; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_time?: string; + initial_user?: string; + initial_value?: InitialValueClass | string; + max_length?: number; + min_length?: number; + min_query_length?: number; + multiline?: boolean; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; } export interface Confirm { confirm?: Close; - deny?: Close; - style?: string; - text?: Close; - title?: Close; + deny?: Close; + style?: string; + text?: Close; + title?: Close; } export interface DispatchActionConfig { @@ -156,70 +156,70 @@ export interface DispatchActionConfig { } export interface Filter { - exclude_bot_users?: boolean; + exclude_bot_users?: boolean; exclude_external_shared_channels?: boolean; - include?: any[]; + include?: any[]; } export interface Option { description?: Close; - text?: Close; - url?: string; - value?: string; + text?: Close; + url?: string; + value?: string; } export interface InitialValueClass { block_id?: string; elements?: InitialValueElement[]; - type?: string; + type?: string; } export interface InitialValueElement { - border?: number; + border?: number; elements?: FluffyElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface FluffyElement { - border?: number; + border?: number; elements?: TentacledElement[]; - indent?: number; - offset?: number; - style?: string; - type?: string; + indent?: number; + offset?: number; + style?: string; + type?: string; } export interface TentacledElement { - channel_id?: string; - fallback?: string; - format?: string; - name?: string; - range?: string; - skin_tone?: number; - style?: Style; - team_id?: string; - text?: string; - timestamp?: number; - type?: ElementType; - unicode?: string; - unsafe?: boolean; - url?: string; - user_id?: string; + channel_id?: string; + fallback?: string; + format?: string; + name?: string; + range?: string; + skin_tone?: number; + style?: Style; + team_id?: string; + text?: string; + timestamp?: number; + type?: ElementType; + unicode?: string; + unsafe?: boolean; + url?: string; + user_id?: string; usergroup_id?: string; - value?: string; + value?: string; } export interface Style { - bold?: boolean; + bold?: boolean; client_highlight?: boolean; - code?: boolean; - highlight?: boolean; - italic?: boolean; - strike?: boolean; - unlink?: boolean; + code?: boolean; + highlight?: boolean; + italic?: boolean; + strike?: boolean; + unlink?: boolean; } export enum ElementType { @@ -236,48 +236,48 @@ export enum ElementType { } export interface OptionGroup { - label?: Close; + label?: Close; options?: Option[]; } export interface StickyElement { - accessibility_label?: string; - action_id?: string; - alt_text?: string; - confirm?: Confirm; + accessibility_label?: string; + action_id?: string; + alt_text?: string; + confirm?: Confirm; default_to_current_conversation?: boolean; - fallback?: string; - filter?: Filter; - focus_on_load?: boolean; - image_bytes?: number; - image_height?: number; - image_url?: string; - image_width?: number; - initial_channel?: string; - initial_channels?: string[]; - initial_conversation?: string; - initial_conversations?: string[]; - initial_date?: string; - initial_date_time?: number; - initial_option?: Option; - initial_options?: Option[]; - initial_time?: string; - initial_user?: string; - initial_users?: string[]; - max_selected_items?: number; - min_query_length?: number; - option_groups?: OptionGroup[]; - options?: Option[]; - placeholder?: Close; - response_url_enabled?: boolean; - slack_file?: SlackFile; - style?: string; - text?: Close; - timezone?: string; - type?: string; - url?: string; - value?: string; - workflow?: Workflow; + fallback?: string; + filter?: Filter; + focus_on_load?: boolean; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + initial_channel?: string; + initial_channels?: string[]; + initial_conversation?: string; + initial_conversations?: string[]; + initial_date?: string; + initial_date_time?: number; + initial_option?: Option; + initial_options?: Option[]; + initial_time?: string; + initial_user?: string; + initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + slack_file?: SlackFile; + style?: string; + text?: Close; + timezone?: string; + type?: string; + url?: string; + value?: string; + workflow?: Workflow; } export interface Workflow { @@ -286,13 +286,12 @@ export interface Workflow { export interface Trigger { customizable_input_parameters?: CustomizableInputParameter[]; - url?: string; + url?: string; } export interface CustomizableInputParameter { - name?: string; + name?: string; value?: string; } -export interface State { -} +export type State = {}; diff --git a/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts b/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts index 250adf7a4..9655af76d 100644 --- a/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts +++ b/packages/web-api/src/types/response/WorkflowsStepCompletedResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type WorkflowsStepCompletedResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts b/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts index 42e8e5c70..c0dabb751 100644 --- a/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts +++ b/packages/web-api/src/types/response/WorkflowsStepFailedResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type WorkflowsStepFailedResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts b/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts index fc77a65f1..43dfbc30e 100644 --- a/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts +++ b/packages/web-api/src/types/response/WorkflowsUpdateStepResponse.ts @@ -7,10 +7,10 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../../WebClient'; +import type { WebAPICallResult } from '../../WebClient'; export type WorkflowsUpdateStepResponse = WebAPICallResult & { - error?: string; - needed?: string; - ok?: boolean; + error?: string; + needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/types/response/index.ts b/packages/web-api/src/types/response/index.ts index 2f97b15bf..37216c3f1 100644 --- a/packages/web-api/src/types/response/index.ts +++ b/packages/web-api/src/types/response/index.ts @@ -1,4 +1,9 @@ -export { AdminAnalyticsGetFileResponse, AdminAnalyticsMemberDetails, AdminAnalyticsPublicChannelDetails, AdminAnalyticsPublicChannelMetadataDetails } from './AdminAnalyticsGetFileResponse'; +export { + AdminAnalyticsGetFileResponse, + AdminAnalyticsMemberDetails, + AdminAnalyticsPublicChannelDetails, + AdminAnalyticsPublicChannelMetadataDetails, +} from './AdminAnalyticsGetFileResponse'; export { AdminAppsActivitiesListResponse } from './AdminAppsActivitiesListResponse'; export { AdminAppsApproveResponse } from './AdminAppsApproveResponse'; export { AdminAppsApprovedListResponse } from './AdminAppsApprovedListResponse'; From 2bfcfa3bf2b91c332a4d8183e0c5237af6700290 Mon Sep 17 00:00:00 2001 From: Alissa Renz Date: Tue, 17 Sep 2024 10:49:28 -0700 Subject: [PATCH 6/6] Incorporate PR feedback --- packages/types/src/events/assistant.ts | 30 +++++++++---------- packages/types/src/events/index.ts | 5 +--- .../web-api/src/types/request/assistant.ts | 22 +++++++++++--- 3 files changed, 34 insertions(+), 23 deletions(-) diff --git a/packages/types/src/events/assistant.ts b/packages/types/src/events/assistant.ts index 1548510e2..9a1ac7600 100644 --- a/packages/types/src/events/assistant.ts +++ b/packages/types/src/events/assistant.ts @@ -1,29 +1,29 @@ export interface AssistantThreadStartedEvent { - type: "assistant_thread_started"; + type: 'assistant_thread_started'; assistant_thread: { - user_id: string; - context: { - channel_id: string; - team_id: string; - enterprise_id: string; - }; - channel_id: string; - thread_ts: string; + user_id: string; + context: { + channel_id?: string; + team_id?: string; + enterprise_id?: string | null; + }; + channel_id: string; + thread_ts: string; }; event_ts: string; } export interface AssistantThreadContextChangedEvent { - type: "assistant_thread_context_changed"; + type: 'assistant_thread_context_changed'; assistant_thread: { user_id: string; - context: { - channel_id: string; - team_id: string; - enterprise_id: string; + context: { + channel_id?: string; + team_id?: string; + enterprise_id?: string | null; }; channel_id: string; thread_ts: string; }; event_ts: string; -} \ No newline at end of file +} diff --git a/packages/types/src/events/index.ts b/packages/types/src/events/index.ts index fd959d822..72e4ad1e8 100644 --- a/packages/types/src/events/index.ts +++ b/packages/types/src/events/index.ts @@ -8,10 +8,7 @@ import type { AppUninstalledEvent, AppUninstalledTeamEvent, } from './app'; -import type { - AssistantThreadContextChangedEvent, - AssistantThreadStartedEvent, -} from './assistant'; +import type { AssistantThreadContextChangedEvent, AssistantThreadStartedEvent } from './assistant'; import type { CallRejectedEvent } from './call'; import type { ChannelArchiveEvent, diff --git a/packages/web-api/src/types/request/assistant.ts b/packages/web-api/src/types/request/assistant.ts index 86925c689..e50dc9497 100644 --- a/packages/web-api/src/types/request/assistant.ts +++ b/packages/web-api/src/types/request/assistant.ts @@ -2,25 +2,39 @@ import type { TokenOverridable } from './common'; // https://api.slack.com/methods/assistant.threads.setStatus export interface AssistantThreadsSetStatusArguments extends TokenOverridable { + /** @description Channel ID containing the assistant thread. */ channel_id: string; + /** @description Status of the assistant (e.g. 'is thinking...') */ status: string; + /** @description Message timestamp of the thread. */ thread_ts: string; } // https://api.slack.com/methods/assistant.threads.setSuggestedPrompts export interface AssistantThreadsSetSuggestedPromptsArguments extends TokenOverridable { + /** @description Channel ID containing the assistant thread. */ channel_id: string; - prompts: { - title: string; - message: string; - }[]; + /** @description Prompt suggestions that appear when opening assistant thread. */ + prompts: [AssistantPrompt, ...AssistantPrompt[]]; + /** @description Message timestamp of the thread. */ thread_ts: string; + /** @description Title for the prompts. */ title?: string; } +interface AssistantPrompt { + /** @description Title of the prompt. */ + title: string; + /** @description Message of the prompt. */ + message: string; +} + // https://api.slack.com/methods/assistant.threads.setTitle export interface AssistantThreadsSetTitleArguments extends TokenOverridable { + /** @description Channel ID containing the assistant thread. */ channel_id: string; + /** @description Message timestamp of the thread. */ thread_ts: string; + /** @description Title of the thread. */ title: string; }