From 0fb388adade7f9330c244c7c67d453c7dc1e4158 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 20 May 2022 10:21:24 +0900 Subject: [PATCH] Update the web-api response types using the latest source Also, since this version, the order of fields are alphanumeric. This makes checking the diff much easier for maintainers. --- .../response/AdminAnalyticsGetFileResponse.ts | 2 +- .../src/response/AdminAppsApproveResponse.ts | 4 +- .../response/AdminAppsApprovedListResponse.ts | 34 +- .../AdminAppsClearResolutionResponse.ts | 4 +- .../AdminAppsRequestsCancelResponse.ts | 2 +- .../response/AdminAppsRequestsListResponse.ts | 48 +- .../src/response/AdminAppsRestrictResponse.ts | 4 +- .../AdminAppsRestrictedListResponse.ts | 34 +- .../response/AdminAppsUninstallResponse.ts | 4 +- .../AdminAuthPolicyAssignEntitiesResponse.ts | 2 +- .../AdminAuthPolicyGetEntitiesResponse.ts | 6 +- .../AdminAuthPolicyRemoveEntitiesResponse.ts | 2 +- .../response/AdminBarriersCreateResponse.ts | 10 +- .../response/AdminBarriersDeleteResponse.ts | 2 +- .../src/response/AdminBarriersListResponse.ts | 8 +- .../response/AdminBarriersUpdateResponse.ts | 10 +- .../AdminConversationsArchiveResponse.ts | 2 +- ...inConversationsConvertToPrivateResponse.ts | 2 +- .../AdminConversationsCreateResponse.ts | 2 +- .../AdminConversationsDeleteResponse.ts | 2 +- ...inConversationsDisconnectSharedResponse.ts | 2 +- ...istOriginalConnectedChannelInfoResponse.ts | 2 +- ...nversationsGetConversationPrefsResponse.ts | 6 +- ...ConversationsGetCustomRetentionResponse.ts | 6 +- .../AdminConversationsGetTeamsResponse.ts | 4 +- .../AdminConversationsInviteResponse.ts | 2 +- ...versationsRemoveCustomRetentionResponse.ts | 2 +- .../AdminConversationsRenameResponse.ts | 2 +- ...ersationsRestrictAccessAddGroupResponse.ts | 4 +- ...sationsRestrictAccessListGroupsResponse.ts | 6 +- ...ationsRestrictAccessRemoveGroupResponse.ts | 4 +- .../AdminConversationsSearchResponse.ts | 34 +- ...nversationsSetConversationPrefsResponse.ts | 2 +- ...ConversationsSetCustomRetentionResponse.ts | 2 +- .../AdminConversationsSetTeamsResponse.ts | 2 +- .../AdminConversationsUnarchiveResponse.ts | 2 +- .../AdminConversationsWhitelistAddResponse.ts | 6 +- ...telistListGroupsLinkedToChannelResponse.ts | 6 +- ...minConversationsWhitelistRemoveResponse.ts | 6 +- .../response/AdminEmojiAddAliasResponse.ts | 4 +- .../src/response/AdminEmojiAddResponse.ts | 4 +- .../src/response/AdminEmojiListResponse.ts | 6 +- .../src/response/AdminEmojiRemoveResponse.ts | 4 +- .../src/response/AdminEmojiRenameResponse.ts | 4 +- .../AdminInviteRequestsApproveResponse.ts | 2 +- ...AdminInviteRequestsApprovedListResponse.ts | 2 +- .../AdminInviteRequestsDeniedListResponse.ts | 2 +- .../AdminInviteRequestsDenyResponse.ts | 2 +- .../AdminInviteRequestsListResponse.ts | 4 +- .../response/AdminTeamsAdminsListResponse.ts | 4 +- .../src/response/AdminTeamsCreateResponse.ts | 6 +- .../src/response/AdminTeamsListResponse.ts | 10 +- .../response/AdminTeamsOwnersListResponse.ts | 6 +- .../AdminTeamsSettingsInfoResponse.ts | 22 +- ...TeamsSettingsSetDefaultChannelsResponse.ts | 4 +- ...dminTeamsSettingsSetDescriptionResponse.ts | 2 +- ...TeamsSettingsSetDiscoverabilityResponse.ts | 2 +- .../AdminTeamsSettingsSetIconResponse.ts | 4 +- .../AdminTeamsSettingsSetNameResponse.ts | 2 +- .../AdminUsergroupsAddChannelsResponse.ts | 2 +- .../AdminUsergroupsAddTeamsResponse.ts | 2 +- .../AdminUsergroupsListChannelsResponse.ts | 40 +- .../AdminUsergroupsRemoveChannelsResponse.ts | 2 +- .../src/response/AdminUsersAssignResponse.ts | 2 +- .../src/response/AdminUsersInviteResponse.ts | 4 +- .../src/response/AdminUsersListResponse.ts | 14 +- .../src/response/AdminUsersRemoveResponse.ts | 2 +- .../AdminUsersSessionClearSettingsResponse.ts | 2 +- .../AdminUsersSessionGetSettingsResponse.ts | 8 +- .../AdminUsersSessionInvalidateResponse.ts | 4 +- .../response/AdminUsersSessionListResponse.ts | 14 +- .../AdminUsersSessionResetBulkResponse.ts | 2 +- .../AdminUsersSessionResetResponse.ts | 2 +- .../AdminUsersSessionSetSettingsResponse.ts | 2 +- .../response/AdminUsersSetAdminResponse.ts | 2 +- .../AdminUsersSetExpirationResponse.ts | 2 +- .../response/AdminUsersSetOwnerResponse.ts | 2 +- .../response/AdminUsersSetRegularResponse.ts | 2 +- ...nUsersUnsupportedVersionsExportResponse.ts | 2 +- .../web-api/src/response/ApiTestResponse.ts | 4 +- .../response/AppsConnectionsOpenResponse.ts | 2 +- .../AppsEventAuthorizationsListResponse.ts | 8 +- .../response/AppsPermissionsInfoResponse.ts | 2 +- .../AppsPermissionsRequestResponse.ts | 2 +- .../AppsPermissionsResourcesListResponse.ts | 2 +- .../AppsPermissionsScopesListResponse.ts | 2 +- .../AppsPermissionsUsersListResponse.ts | 2 +- .../AppsPermissionsUsersRequestResponse.ts | 2 +- .../src/response/AppsUninstallResponse.ts | 4 +- .../src/response/AuthRevokeResponse.ts | 2 +- .../src/response/AuthTeamsListResponse.ts | 6 +- .../web-api/src/response/AuthTestResponse.ts | 18 +- .../src/response/BookmarksAddResponse.ts | 26 +- .../src/response/BookmarksEditResponse.ts | 26 +- .../src/response/BookmarksListResponse.ts | 26 +- .../src/response/BookmarksRemoveResponse.ts | 4 +- .../web-api/src/response/BotsInfoResponse.ts | 8 +- .../web-api/src/response/CallsAddResponse.ts | 16 +- .../web-api/src/response/CallsEndResponse.ts | 14 +- .../web-api/src/response/CallsInfoResponse.ts | 12 +- .../response/CallsParticipantsAddResponse.ts | 12 +- .../CallsParticipantsRemoveResponse.ts | 12 +- .../src/response/CallsUpdateResponse.ts | 12 +- .../src/response/ChannelsArchiveResponse.ts | 2 +- .../src/response/ChannelsCreateResponse.ts | 30 +- .../src/response/ChannelsHistoryResponse.ts | 348 +-- .../src/response/ChannelsInfoResponse.ts | 258 +-- .../src/response/ChannelsInviteResponse.ts | 36 +- .../src/response/ChannelsJoinResponse.ts | 34 +- .../src/response/ChannelsKickResponse.ts | 2 +- .../src/response/ChannelsLeaveResponse.ts | 2 +- .../src/response/ChannelsListResponse.ts | 34 +- .../src/response/ChannelsMarkResponse.ts | 2 +- .../src/response/ChannelsRenameResponse.ts | 26 +- .../src/response/ChannelsRepliesResponse.ts | 36 +- .../response/ChannelsSetPurposeResponse.ts | 4 +- .../src/response/ChannelsSetTopicResponse.ts | 4 +- .../src/response/ChannelsUnarchiveResponse.ts | 2 +- .../src/response/ChatDeleteResponse.ts | 4 +- .../ChatDeleteScheduledMessageResponse.ts | 2 +- .../src/response/ChatGetPermalinkResponse.ts | 4 +- .../src/response/ChatMeMessageResponse.ts | 4 +- .../src/response/ChatPostEphemeralResponse.ts | 4 +- .../src/response/ChatPostMessageResponse.ts | 724 +++---- .../response/ChatScheduleMessageResponse.ts | 378 ++-- .../ChatScheduledMessagesListResponse.ts | 10 +- .../src/response/ChatUnfurlResponse.ts | 2 +- .../src/response/ChatUpdateResponse.ts | 562 ++--- ...ConversationsAcceptSharedInviteResponse.ts | 6 +- ...onversationsApproveSharedInviteResponse.ts | 2 +- .../response/ConversationsArchiveResponse.ts | 2 +- .../response/ConversationsCloseResponse.ts | 4 +- .../response/ConversationsCreateResponse.ts | 44 +- ...onversationsDeclineSharedInviteResponse.ts | 2 +- .../response/ConversationsHistoryResponse.ts | 736 +++---- .../src/response/ConversationsInfoResponse.ts | 60 +- .../response/ConversationsInviteResponse.ts | 42 +- .../ConversationsInviteSharedResponse.ts | 6 +- .../src/response/ConversationsJoinResponse.ts | 48 +- .../src/response/ConversationsKickResponse.ts | 2 +- .../response/ConversationsLeaveResponse.ts | 2 +- ...ConversationsListConnectInvitesResponse.ts | 56 +- .../src/response/ConversationsListResponse.ts | 54 +- .../src/response/ConversationsMarkResponse.ts | 2 +- .../response/ConversationsMembersResponse.ts | 6 +- .../src/response/ConversationsOpenResponse.ts | 360 ++-- .../response/ConversationsRenameResponse.ts | 42 +- .../response/ConversationsRepliesResponse.ts | 715 +++--- .../ConversationsSetPurposeResponse.ts | 36 +- .../response/ConversationsSetTopicResponse.ts | 36 +- .../ConversationsUnarchiveResponse.ts | 2 +- .../src/response/DialogOpenResponse.ts | 4 +- .../web-api/src/response/DndEndDndResponse.ts | 2 +- .../src/response/DndEndSnoozeResponse.ts | 10 +- .../web-api/src/response/DndInfoResponse.ts | 6 +- .../src/response/DndSetSnoozeResponse.ts | 8 +- .../src/response/DndTeamInfoResponse.ts | 6 +- .../web-api/src/response/EmojiListResponse.ts | 4 +- .../src/response/FilesCommentsAddResponse.ts | 4 +- .../response/FilesCommentsDeleteResponse.ts | 2 +- .../src/response/FilesCommentsEditResponse.ts | 8 +- .../src/response/FilesDeleteResponse.ts | 2 +- .../web-api/src/response/FilesInfoResponse.ts | 224 +- .../web-api/src/response/FilesListResponse.ts | 230 +- .../src/response/FilesRemoteAddResponse.ts | 214 +- .../src/response/FilesRemoteInfoResponse.ts | 214 +- .../src/response/FilesRemoteListResponse.ts | 216 +- .../src/response/FilesRemoteRemoveResponse.ts | 2 +- .../src/response/FilesRemoteShareResponse.ts | 214 +- .../src/response/FilesRemoteUpdateResponse.ts | 214 +- .../response/FilesRevokePublicURLResponse.ts | 214 +- .../response/FilesSharedPublicURLResponse.ts | 214 +- .../src/response/FilesUploadResponse.ts | 214 +- .../src/response/GroupsArchiveResponse.ts | 6 +- .../src/response/GroupsCloseResponse.ts | 2 +- .../src/response/GroupsCreateChildResponse.ts | 30 +- .../src/response/GroupsCreateResponse.ts | 26 +- .../src/response/GroupsHistoryResponse.ts | 14 +- .../src/response/GroupsInfoResponse.ts | 28 +- .../src/response/GroupsInviteResponse.ts | 30 +- .../src/response/GroupsKickResponse.ts | 6 +- .../src/response/GroupsLeaveResponse.ts | 6 +- .../src/response/GroupsListResponse.ts | 26 +- .../src/response/GroupsMarkResponse.ts | 6 +- .../src/response/GroupsOpenResponse.ts | 8 +- .../src/response/GroupsRenameResponse.ts | 18 +- .../src/response/GroupsRepliesResponse.ts | 38 +- .../src/response/GroupsSetPurposeResponse.ts | 8 +- .../src/response/GroupsSetTopicResponse.ts | 8 +- .../src/response/GroupsUnarchiveResponse.ts | 6 +- .../web-api/src/response/ImCloseResponse.ts | 6 +- .../web-api/src/response/ImHistoryResponse.ts | 110 +- .../web-api/src/response/ImListResponse.ts | 14 +- .../web-api/src/response/ImMarkResponse.ts | 6 +- .../web-api/src/response/ImOpenResponse.ts | 10 +- .../web-api/src/response/ImRepliesResponse.ts | 38 +- .../src/response/MigrationExchangeResponse.ts | 8 +- .../web-api/src/response/MpimCloseResponse.ts | 6 +- .../src/response/MpimHistoryResponse.ts | 38 +- .../web-api/src/response/MpimListResponse.ts | 26 +- .../web-api/src/response/MpimMarkResponse.ts | 6 +- .../web-api/src/response/MpimOpenResponse.ts | 46 +- .../src/response/MpimRepliesResponse.ts | 38 +- .../src/response/OauthAccessResponse.ts | 32 +- .../src/response/OauthTokenResponse.ts | 4 +- .../src/response/OauthV2AccessResponse.ts | 32 +- .../src/response/OauthV2ExchangeResponse.ts | 32 +- .../response/OpenIDConnectTokenResponse.ts | 12 +- .../response/OpenIDConnectUserInfoResponse.ts | 54 +- .../web-api/src/response/PinsAddResponse.ts | 2 +- .../web-api/src/response/PinsListResponse.ts | 218 +- .../src/response/PinsRemoveResponse.ts | 2 +- .../src/response/ReactionsAddResponse.ts | 2 +- .../src/response/ReactionsGetResponse.ts | 376 ++-- .../src/response/ReactionsListResponse.ts | 558 ++--- .../src/response/ReactionsRemoveResponse.ts | 2 +- .../src/response/RemindersAddResponse.ts | 14 +- .../src/response/RemindersCompleteResponse.ts | 2 +- .../src/response/RemindersDeleteResponse.ts | 2 +- .../src/response/RemindersInfoResponse.ts | 12 +- .../src/response/RemindersListResponse.ts | 16 +- .../src/response/RtmConnectResponse.ts | 10 +- .../web-api/src/response/RtmStartResponse.ts | 1914 ++++++++--------- .../web-api/src/response/SearchAllResponse.ts | 699 +++--- .../src/response/SearchFilesResponse.ts | 128 +- .../src/response/SearchMessagesResponse.ts | 718 +++---- .../web-api/src/response/StarsAddResponse.ts | 2 +- .../web-api/src/response/StarsListResponse.ts | 676 +++--- .../src/response/StarsRemoveResponse.ts | 2 +- .../src/response/TeamAccessLogsResponse.ts | 18 +- .../src/response/TeamBillableInfoResponse.ts | 2 +- .../src/response/TeamBillingInfoResponse.ts | 4 +- .../web-api/src/response/TeamInfoResponse.ts | 24 +- .../response/TeamIntegrationLogsResponse.ts | 26 +- .../response/TeamPreferencesListResponse.ts | 8 +- .../src/response/TeamProfileGetResponse.ts | 18 +- .../src/response/UsergroupsCreateResponse.ts | 30 +- .../src/response/UsergroupsDisableResponse.ts | 32 +- .../src/response/UsergroupsEnableResponse.ts | 30 +- .../src/response/UsergroupsListResponse.ts | 30 +- .../src/response/UsergroupsUpdateResponse.ts | 30 +- .../response/UsergroupsUsersListResponse.ts | 4 +- .../response/UsergroupsUsersUpdateResponse.ts | 30 +- .../response/UsersConversationsResponse.ts | 58 +- .../src/response/UsersDeletePhotoResponse.ts | 2 +- .../src/response/UsersGetPresenceResponse.ts | 16 +- .../src/response/UsersIdentityResponse.ts | 16 +- .../web-api/src/response/UsersInfoResponse.ts | 84 +- .../web-api/src/response/UsersListResponse.ts | 94 +- .../response/UsersLookupByEmailResponse.ts | 72 +- .../src/response/UsersProfileGetResponse.ts | 48 +- .../src/response/UsersProfileSetResponse.ts | 50 +- .../src/response/UsersSetActiveResponse.ts | 2 +- .../src/response/UsersSetPhotoResponse.ts | 12 +- .../src/response/UsersSetPresenceResponse.ts | 2 +- .../web-api/src/response/ViewsOpenResponse.ts | 172 +- .../src/response/ViewsPublishResponse.ts | 172 +- .../web-api/src/response/ViewsPushResponse.ts | 172 +- .../src/response/ViewsUpdateResponse.ts | 172 +- .../WorkflowsStepCompletedResponse.ts | 2 +- .../response/WorkflowsStepFailedResponse.ts | 2 +- .../response/WorkflowsUpdateStepResponse.ts | 2 +- scripts/code_generator.rb | 3 +- 263 files changed, 7469 insertions(+), 7830 deletions(-) diff --git a/packages/web-api/src/response/AdminAnalyticsGetFileResponse.ts b/packages/web-api/src/response/AdminAnalyticsGetFileResponse.ts index 7a8a0d7a6..aaab3d88d 100644 --- a/packages/web-api/src/response/AdminAnalyticsGetFileResponse.ts +++ b/packages/web-api/src/response/AdminAnalyticsGetFileResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAnalyticsGetFileResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; response_metadata?: ResponseMetadata; }; diff --git a/packages/web-api/src/response/AdminAppsApproveResponse.ts b/packages/web-api/src/response/AdminAppsApproveResponse.ts index 83b23ba2d..1dfa667cb 100644 --- a/packages/web-api/src/response/AdminAppsApproveResponse.ts +++ b/packages/web-api/src/response/AdminAppsApproveResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsApproveResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; + warning?: string; }; diff --git a/packages/web-api/src/response/AdminAppsApprovedListResponse.ts b/packages/web-api/src/response/AdminAppsApprovedListResponse.ts index ec760cf95..eda0f2cd4 100644 --- a/packages/web-api/src/response/AdminAppsApprovedListResponse.ts +++ b/packages/web-api/src/response/AdminAppsApprovedListResponse.ts @@ -10,47 +10,47 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsApprovedListResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; + approved_apps?: ApprovedApp[]; error?: string; needed?: string; + ok?: boolean; provided?: string; - approved_apps?: ApprovedApp[]; response_metadata?: ResponseMetadata; + warning?: string; }; export interface ApprovedApp { app?: App; - scopes?: Scope[]; date_updated?: number; last_resolved_by?: LastResolvedBy; + scopes?: Scope[]; } export interface App { - id?: string; - name?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; description?: string; help_url?: string; - privacy_policy_url?: string; - app_homepage_url?: string; - app_directory_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; is_internal?: boolean; - additional_info?: string; - icons?: Icons; + 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } @@ -60,14 +60,14 @@ export interface LastResolvedBy { } export interface Scope { - name?: string; description?: string; is_sensitive?: boolean; + name?: string; token_type?: string; } export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; warnings?: string[]; } diff --git a/packages/web-api/src/response/AdminAppsClearResolutionResponse.ts b/packages/web-api/src/response/AdminAppsClearResolutionResponse.ts index fa4a4a158..3b61c2e93 100644 --- a/packages/web-api/src/response/AdminAppsClearResolutionResponse.ts +++ b/packages/web-api/src/response/AdminAppsClearResolutionResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsClearResolutionResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; + warning?: string; }; diff --git a/packages/web-api/src/response/AdminAppsRequestsCancelResponse.ts b/packages/web-api/src/response/AdminAppsRequestsCancelResponse.ts index 4b3944a77..ac4d05e1a 100644 --- a/packages/web-api/src/response/AdminAppsRequestsCancelResponse.ts +++ b/packages/web-api/src/response/AdminAppsRequestsCancelResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsRequestsCancelResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminAppsRequestsListResponse.ts b/packages/web-api/src/response/AdminAppsRequestsListResponse.ts index efd39771e..a9b46e40f 100644 --- a/packages/web-api/src/response/AdminAppsRequestsListResponse.ts +++ b/packages/web-api/src/response/AdminAppsRequestsListResponse.ts @@ -10,74 +10,74 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsRequestsListResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; + app_requests?: AppRequest[]; error?: string; needed?: string; + ok?: boolean; provided?: string; - app_requests?: AppRequest[]; response_metadata?: ResponseMetadata; + warning?: string; }; export interface AppRequest { - id?: string; app?: App; - user?: User; - team?: Team; - scopes?: any[]; - previous_resolution?: PreviousResolution; + date_created?: number; + id?: string; is_user_app_collaborator?: boolean; message?: string; - date_created?: number; + previous_resolution?: PreviousResolution; + scopes?: any[]; + team?: Team; + user?: User; } export interface App { - id?: string; - name?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; description?: string; help_url?: string; - privacy_policy_url?: string; - app_homepage_url?: string; - app_directory_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; is_internal?: boolean; - additional_info?: string; - icons?: Icons; + 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface PreviousResolution { - status?: string; scopes?: any[]; + status?: string; } export interface Team { + domain?: string; id?: string; name?: string; - domain?: string; } export interface User { + email?: string; id?: string; name?: string; - email?: string; } export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; warnings?: string[]; } diff --git a/packages/web-api/src/response/AdminAppsRestrictResponse.ts b/packages/web-api/src/response/AdminAppsRestrictResponse.ts index fd4b91b0e..c8641fe3e 100644 --- a/packages/web-api/src/response/AdminAppsRestrictResponse.ts +++ b/packages/web-api/src/response/AdminAppsRestrictResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsRestrictResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; + warning?: string; }; diff --git a/packages/web-api/src/response/AdminAppsRestrictedListResponse.ts b/packages/web-api/src/response/AdminAppsRestrictedListResponse.ts index 84fe647e3..65bb454df 100644 --- a/packages/web-api/src/response/AdminAppsRestrictedListResponse.ts +++ b/packages/web-api/src/response/AdminAppsRestrictedListResponse.ts @@ -10,53 +10,53 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsRestrictedListResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; - restricted_apps?: RestrictedApp[]; response_metadata?: ResponseMetadata; + restricted_apps?: RestrictedApp[]; + warning?: string; }; export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; warnings?: string[]; } export interface RestrictedApp { app?: App; - scopes?: Scope[]; date_updated?: number; last_resolved_by?: LastResolvedBy; + scopes?: Scope[]; } export interface App { - id?: string; - name?: string; + additional_info?: string; + app_directory_url?: string; + app_homepage_url?: string; description?: string; help_url?: string; - privacy_policy_url?: string; - app_homepage_url?: string; - app_directory_url?: string; + icons?: Icons; + id?: string; is_app_directory_approved?: boolean; is_internal?: boolean; - additional_info?: string; - icons?: Icons; + 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } @@ -66,8 +66,8 @@ export interface LastResolvedBy { } export interface Scope { - name?: string; description?: string; is_sensitive?: boolean; + name?: string; token_type?: string; } diff --git a/packages/web-api/src/response/AdminAppsUninstallResponse.ts b/packages/web-api/src/response/AdminAppsUninstallResponse.ts index c13562661..9d3c17779 100644 --- a/packages/web-api/src/response/AdminAppsUninstallResponse.ts +++ b/packages/web-api/src/response/AdminAppsUninstallResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAppsUninstallResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; + warning?: string; }; diff --git a/packages/web-api/src/response/AdminAuthPolicyAssignEntitiesResponse.ts b/packages/web-api/src/response/AdminAuthPolicyAssignEntitiesResponse.ts index f6bce7893..d43f9dd10 100644 --- a/packages/web-api/src/response/AdminAuthPolicyAssignEntitiesResponse.ts +++ b/packages/web-api/src/response/AdminAuthPolicyAssignEntitiesResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAuthPolicyAssignEntitiesResponse = WebAPICallResult & { - ok?: boolean; entity_total_count?: number; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminAuthPolicyGetEntitiesResponse.ts b/packages/web-api/src/response/AdminAuthPolicyGetEntitiesResponse.ts index 390fa36e8..cdbd16175 100644 --- a/packages/web-api/src/response/AdminAuthPolicyGetEntitiesResponse.ts +++ b/packages/web-api/src/response/AdminAuthPolicyGetEntitiesResponse.ts @@ -10,16 +10,16 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAuthPolicyGetEntitiesResponse = WebAPICallResult & { - ok?: boolean; - error?: string; entities?: Entity[]; entity_total_count?: number; + error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Entity { + date_added?: number; entity_id?: string; entity_type?: string; - date_added?: number; } diff --git a/packages/web-api/src/response/AdminAuthPolicyRemoveEntitiesResponse.ts b/packages/web-api/src/response/AdminAuthPolicyRemoveEntitiesResponse.ts index 647afbe48..baa60b6c1 100644 --- a/packages/web-api/src/response/AdminAuthPolicyRemoveEntitiesResponse.ts +++ b/packages/web-api/src/response/AdminAuthPolicyRemoveEntitiesResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminAuthPolicyRemoveEntitiesResponse = WebAPICallResult & { - ok?: boolean; entity_total_count?: number; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminBarriersCreateResponse.ts b/packages/web-api/src/response/AdminBarriersCreateResponse.ts index c1ccc9f90..81f263492 100644 --- a/packages/web-api/src/response/AdminBarriersCreateResponse.ts +++ b/packages/web-api/src/response/AdminBarriersCreateResponse.ts @@ -10,21 +10,21 @@ import { WebAPICallResult } from '../WebClient'; export type AdminBarriersCreateResponse = WebAPICallResult & { - ok?: boolean; + barrier?: Barrier; error?: string; needed?: string; + ok?: boolean; provided?: string; response_metadata?: ResponseMetadata; - barrier?: Barrier; }; export interface Barrier { - id?: string; + barriered_from_usergroups?: Usergroup[]; + date_update?: number; enterprise_id?: string; + id?: string; primary_usergroup?: Usergroup; - barriered_from_usergroups?: Usergroup[]; restricted_subjects?: string[]; - date_update?: number; } export interface Usergroup { diff --git a/packages/web-api/src/response/AdminBarriersDeleteResponse.ts b/packages/web-api/src/response/AdminBarriersDeleteResponse.ts index 5a3edc7f9..f45d25d56 100644 --- a/packages/web-api/src/response/AdminBarriersDeleteResponse.ts +++ b/packages/web-api/src/response/AdminBarriersDeleteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminBarriersDeleteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminBarriersListResponse.ts b/packages/web-api/src/response/AdminBarriersListResponse.ts index 4f1f922a8..ad1150d93 100644 --- a/packages/web-api/src/response/AdminBarriersListResponse.ts +++ b/packages/web-api/src/response/AdminBarriersListResponse.ts @@ -10,20 +10,20 @@ import { WebAPICallResult } from '../WebClient'; export type AdminBarriersListResponse = WebAPICallResult & { - ok?: boolean; barriers?: Barrier[]; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Barrier { - id?: string; + barriered_from_usergroups?: Usergroup[]; + date_update?: number; enterprise_id?: string; + id?: string; primary_usergroup?: Usergroup; - barriered_from_usergroups?: Usergroup[]; restricted_subjects?: string[]; - date_update?: number; } export interface Usergroup { diff --git a/packages/web-api/src/response/AdminBarriersUpdateResponse.ts b/packages/web-api/src/response/AdminBarriersUpdateResponse.ts index 9c90d695a..8d0bd460c 100644 --- a/packages/web-api/src/response/AdminBarriersUpdateResponse.ts +++ b/packages/web-api/src/response/AdminBarriersUpdateResponse.ts @@ -10,20 +10,20 @@ import { WebAPICallResult } from '../WebClient'; export type AdminBarriersUpdateResponse = WebAPICallResult & { - ok?: boolean; - error?: string; barrier?: Barrier; + error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Barrier { - id?: string; + barriered_from_usergroups?: Usergroup[]; + date_update?: number; enterprise_id?: string; + id?: string; primary_usergroup?: Usergroup; - barriered_from_usergroups?: Usergroup[]; restricted_subjects?: string[]; - date_update?: number; } export interface Usergroup { diff --git a/packages/web-api/src/response/AdminConversationsArchiveResponse.ts b/packages/web-api/src/response/AdminConversationsArchiveResponse.ts index 3a8a12d5c..5f3245166 100644 --- a/packages/web-api/src/response/AdminConversationsArchiveResponse.ts +++ b/packages/web-api/src/response/AdminConversationsArchiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsArchiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsConvertToPrivateResponse.ts b/packages/web-api/src/response/AdminConversationsConvertToPrivateResponse.ts index 5f0a300ff..0daf955f0 100644 --- a/packages/web-api/src/response/AdminConversationsConvertToPrivateResponse.ts +++ b/packages/web-api/src/response/AdminConversationsConvertToPrivateResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsConvertToPrivateResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsCreateResponse.ts b/packages/web-api/src/response/AdminConversationsCreateResponse.ts index c3a039908..087028fe8 100644 --- a/packages/web-api/src/response/AdminConversationsCreateResponse.ts +++ b/packages/web-api/src/response/AdminConversationsCreateResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsCreateResponse = WebAPICallResult & { - ok?: boolean; channel_id?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsDeleteResponse.ts b/packages/web-api/src/response/AdminConversationsDeleteResponse.ts index 4f79084db..85413b007 100644 --- a/packages/web-api/src/response/AdminConversationsDeleteResponse.ts +++ b/packages/web-api/src/response/AdminConversationsDeleteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsDeleteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsDisconnectSharedResponse.ts b/packages/web-api/src/response/AdminConversationsDisconnectSharedResponse.ts index 49ed1a97b..a9bca7b2c 100644 --- a/packages/web-api/src/response/AdminConversationsDisconnectSharedResponse.ts +++ b/packages/web-api/src/response/AdminConversationsDisconnectSharedResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsDisconnectSharedResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts b/packages/web-api/src/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts index 25ee07e12..d2bf68c8d 100644 --- a/packages/web-api/src/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts +++ b/packages/web-api/src/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsEkmListOriginalConnectedChannelInfoResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsGetConversationPrefsResponse.ts b/packages/web-api/src/response/AdminConversationsGetConversationPrefsResponse.ts index b81af3921..89596ab1c 100644 --- a/packages/web-api/src/response/AdminConversationsGetConversationPrefsResponse.ts +++ b/packages/web-api/src/response/AdminConversationsGetConversationPrefsResponse.ts @@ -10,16 +10,16 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsGetConversationPrefsResponse = WebAPICallResult & { - ok?: boolean; - prefs?: Prefs; error?: string; needed?: string; + ok?: boolean; + prefs?: Prefs; provided?: string; }; export interface Prefs { - who_can_post?: CanThread; can_thread?: CanThread; + who_can_post?: CanThread; } export interface CanThread { diff --git a/packages/web-api/src/response/AdminConversationsGetCustomRetentionResponse.ts b/packages/web-api/src/response/AdminConversationsGetCustomRetentionResponse.ts index e68786fb0..658fd098e 100644 --- a/packages/web-api/src/response/AdminConversationsGetCustomRetentionResponse.ts +++ b/packages/web-api/src/response/AdminConversationsGetCustomRetentionResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsGetCustomRetentionResponse = WebAPICallResult & { - ok?: boolean; + duration_days?: number; error?: string; + is_policy_enabled?: boolean; needed?: string; + ok?: boolean; provided?: string; - is_policy_enabled?: boolean; - duration_days?: number; }; diff --git a/packages/web-api/src/response/AdminConversationsGetTeamsResponse.ts b/packages/web-api/src/response/AdminConversationsGetTeamsResponse.ts index 902115653..2e2c0e1d2 100644 --- a/packages/web-api/src/response/AdminConversationsGetTeamsResponse.ts +++ b/packages/web-api/src/response/AdminConversationsGetTeamsResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsGetTeamsResponse = WebAPICallResult & { - ok?: boolean; - team_ids?: string[]; error?: string; needed?: string; + ok?: boolean; provided?: string; + team_ids?: string[]; }; diff --git a/packages/web-api/src/response/AdminConversationsInviteResponse.ts b/packages/web-api/src/response/AdminConversationsInviteResponse.ts index 23d5c24b0..9120de636 100644 --- a/packages/web-api/src/response/AdminConversationsInviteResponse.ts +++ b/packages/web-api/src/response/AdminConversationsInviteResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsInviteResponse = WebAPICallResult & { - ok?: boolean; error?: string; failed_user_ids?: FailedUserids; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsRemoveCustomRetentionResponse.ts b/packages/web-api/src/response/AdminConversationsRemoveCustomRetentionResponse.ts index 2a9ac5ca0..8ae943165 100644 --- a/packages/web-api/src/response/AdminConversationsRemoveCustomRetentionResponse.ts +++ b/packages/web-api/src/response/AdminConversationsRemoveCustomRetentionResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsRemoveCustomRetentionResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsRenameResponse.ts b/packages/web-api/src/response/AdminConversationsRenameResponse.ts index 48e67f4df..f9ea33e15 100644 --- a/packages/web-api/src/response/AdminConversationsRenameResponse.ts +++ b/packages/web-api/src/response/AdminConversationsRenameResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsRenameResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsRestrictAccessAddGroupResponse.ts b/packages/web-api/src/response/AdminConversationsRestrictAccessAddGroupResponse.ts index 43c3d90aa..50e347e5f 100644 --- a/packages/web-api/src/response/AdminConversationsRestrictAccessAddGroupResponse.ts +++ b/packages/web-api/src/response/AdminConversationsRestrictAccessAddGroupResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsRestrictAccessAddGroupResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminConversationsRestrictAccessListGroupsResponse.ts b/packages/web-api/src/response/AdminConversationsRestrictAccessListGroupsResponse.ts index 972f6763c..19a66370e 100644 --- a/packages/web-api/src/response/AdminConversationsRestrictAccessListGroupsResponse.ts +++ b/packages/web-api/src/response/AdminConversationsRestrictAccessListGroupsResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsRestrictAccessListGroupsResponse = WebAPICallResult & { - ok?: boolean; - group_ids?: string[]; error?: string; - response_metadata?: ResponseMetadata; + group_ids?: string[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts b/packages/web-api/src/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts index 6aa524082..a6af9fc0c 100644 --- a/packages/web-api/src/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts +++ b/packages/web-api/src/response/AdminConversationsRestrictAccessRemoveGroupResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsRestrictAccessRemoveGroupResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminConversationsSearchResponse.ts b/packages/web-api/src/response/AdminConversationsSearchResponse.ts index 13354af52..cbb15537a 100644 --- a/packages/web-api/src/response/AdminConversationsSearchResponse.ts +++ b/packages/web-api/src/response/AdminConversationsSearchResponse.ts @@ -10,37 +10,37 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsSearchResponse = WebAPICallResult & { - ok?: boolean; conversations?: Conversation[]; - next_cursor?: string; error?: string; needed?: string; + next_cursor?: string; + ok?: boolean; provided?: string; }; export interface Conversation { - id?: string; - name?: string; - purpose?: string; - member_count?: number; + channel_email_addresses?: string[]; + connected_limited_team_ids?: string[]; + connected_team_ids?: string[]; + conversation_host_id?: string; created?: number; creator_id?: string; - is_private?: boolean; + id?: string; + internal_team_ids_count?: number; + internal_team_ids_sample_team?: string; is_archived?: boolean; - is_general?: boolean; - last_activity_ts?: number; 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_frozen?: boolean; - internal_team_ids_count?: number; - internal_team_ids_sample_team?: string; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - connected_team_ids?: string[]; - conversation_host_id?: string; - channel_email_addresses?: string[]; - connected_limited_team_ids?: string[]; + is_private?: boolean; + last_activity_ts?: number; + member_count?: number; + name?: string; + pending_connected_team_ids?: string[]; + purpose?: string; } diff --git a/packages/web-api/src/response/AdminConversationsSetConversationPrefsResponse.ts b/packages/web-api/src/response/AdminConversationsSetConversationPrefsResponse.ts index 5b12ca826..cc0a0ccac 100644 --- a/packages/web-api/src/response/AdminConversationsSetConversationPrefsResponse.ts +++ b/packages/web-api/src/response/AdminConversationsSetConversationPrefsResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsSetConversationPrefsResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsSetCustomRetentionResponse.ts b/packages/web-api/src/response/AdminConversationsSetCustomRetentionResponse.ts index 21410b61e..c1dca9823 100644 --- a/packages/web-api/src/response/AdminConversationsSetCustomRetentionResponse.ts +++ b/packages/web-api/src/response/AdminConversationsSetCustomRetentionResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsSetCustomRetentionResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsSetTeamsResponse.ts b/packages/web-api/src/response/AdminConversationsSetTeamsResponse.ts index b315d1b78..18ba8b188 100644 --- a/packages/web-api/src/response/AdminConversationsSetTeamsResponse.ts +++ b/packages/web-api/src/response/AdminConversationsSetTeamsResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsSetTeamsResponse = WebAPICallResult & { - ok?: boolean; channel?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsUnarchiveResponse.ts b/packages/web-api/src/response/AdminConversationsUnarchiveResponse.ts index 1b5d2be42..d09e5822e 100644 --- a/packages/web-api/src/response/AdminConversationsUnarchiveResponse.ts +++ b/packages/web-api/src/response/AdminConversationsUnarchiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsUnarchiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminConversationsWhitelistAddResponse.ts b/packages/web-api/src/response/AdminConversationsWhitelistAddResponse.ts index c7dbefe1f..d61b9870d 100644 --- a/packages/web-api/src/response/AdminConversationsWhitelistAddResponse.ts +++ b/packages/web-api/src/response/AdminConversationsWhitelistAddResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsWhitelistAddResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; - warning?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts b/packages/web-api/src/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts index 792f185f0..5bff9ba7a 100644 --- a/packages/web-api/src/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts +++ b/packages/web-api/src/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsWhitelistListGroupsLinkedToChannelResponse = WebAPICallResult & { - ok?: boolean; error?: string; group_ids?: string[]; - response_metadata?: ResponseMetadata; - warning?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminConversationsWhitelistRemoveResponse.ts b/packages/web-api/src/response/AdminConversationsWhitelistRemoveResponse.ts index 66d62f38b..6c0a6b285 100644 --- a/packages/web-api/src/response/AdminConversationsWhitelistRemoveResponse.ts +++ b/packages/web-api/src/response/AdminConversationsWhitelistRemoveResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminConversationsWhitelistRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; - warning?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminEmojiAddAliasResponse.ts b/packages/web-api/src/response/AdminEmojiAddAliasResponse.ts index ba5a45f61..860840cc6 100644 --- a/packages/web-api/src/response/AdminEmojiAddAliasResponse.ts +++ b/packages/web-api/src/response/AdminEmojiAddAliasResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminEmojiAddAliasResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminEmojiAddResponse.ts b/packages/web-api/src/response/AdminEmojiAddResponse.ts index 183744752..9f521c3f0 100644 --- a/packages/web-api/src/response/AdminEmojiAddResponse.ts +++ b/packages/web-api/src/response/AdminEmojiAddResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminEmojiAddResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminEmojiListResponse.ts b/packages/web-api/src/response/AdminEmojiListResponse.ts index fdf2b1e26..244603910 100644 --- a/packages/web-api/src/response/AdminEmojiListResponse.ts +++ b/packages/web-api/src/response/AdminEmojiListResponse.ts @@ -10,18 +10,18 @@ import { WebAPICallResult } from '../WebClient'; export type AdminEmojiListResponse = WebAPICallResult & { - ok?: boolean; emoji?: { [key: string]: Emoji }; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface Emoji { - url?: string; date_created?: number; uploaded_by?: string; + url?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminEmojiRemoveResponse.ts b/packages/web-api/src/response/AdminEmojiRemoveResponse.ts index 29747643a..ed5ea1a26 100644 --- a/packages/web-api/src/response/AdminEmojiRemoveResponse.ts +++ b/packages/web-api/src/response/AdminEmojiRemoveResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminEmojiRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminEmojiRenameResponse.ts b/packages/web-api/src/response/AdminEmojiRenameResponse.ts index e23914553..9d389e245 100644 --- a/packages/web-api/src/response/AdminEmojiRenameResponse.ts +++ b/packages/web-api/src/response/AdminEmojiRenameResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminEmojiRenameResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminInviteRequestsApproveResponse.ts b/packages/web-api/src/response/AdminInviteRequestsApproveResponse.ts index b2bd9da93..f44d12410 100644 --- a/packages/web-api/src/response/AdminInviteRequestsApproveResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsApproveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsApproveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts b/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts index 46bbde59c..359a12161 100644 --- a/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsApprovedListResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsApprovedListResponse = WebAPICallResult & { - ok?: boolean; approved_requests?: string[]; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts b/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts index 047a44eae..5b2300251 100644 --- a/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsDeniedListResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsDeniedListResponse = WebAPICallResult & { - ok?: boolean; denied_requests?: string[]; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminInviteRequestsDenyResponse.ts b/packages/web-api/src/response/AdminInviteRequestsDenyResponse.ts index 264fcc983..836e8021e 100644 --- a/packages/web-api/src/response/AdminInviteRequestsDenyResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsDenyResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsDenyResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminInviteRequestsListResponse.ts b/packages/web-api/src/response/AdminInviteRequestsListResponse.ts index 5b5c9f836..cb4828d95 100644 --- a/packages/web-api/src/response/AdminInviteRequestsListResponse.ts +++ b/packages/web-api/src/response/AdminInviteRequestsListResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AdminInviteRequestsListResponse = WebAPICallResult & { - ok?: boolean; - invite_requests?: string[]; error?: string; + invite_requests?: string[]; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminTeamsAdminsListResponse.ts b/packages/web-api/src/response/AdminTeamsAdminsListResponse.ts index 435720fb1..089b56cd3 100644 --- a/packages/web-api/src/response/AdminTeamsAdminsListResponse.ts +++ b/packages/web-api/src/response/AdminTeamsAdminsListResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsAdminsListResponse = WebAPICallResult & { - ok?: boolean; admin_ids?: string[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminTeamsCreateResponse.ts b/packages/web-api/src/response/AdminTeamsCreateResponse.ts index 20fb74635..1bbdc66f6 100644 --- a/packages/web-api/src/response/AdminTeamsCreateResponse.ts +++ b/packages/web-api/src/response/AdminTeamsCreateResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsCreateResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; - team?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + team?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminTeamsListResponse.ts b/packages/web-api/src/response/AdminTeamsListResponse.ts index aaf68a7f8..4df5ccc3f 100644 --- a/packages/web-api/src/response/AdminTeamsListResponse.ts +++ b/packages/web-api/src/response/AdminTeamsListResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsListResponse = WebAPICallResult & { - ok?: boolean; - teams?: Team[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + teams?: Team[]; }; export interface ResponseMetadata { @@ -23,14 +23,14 @@ export interface ResponseMetadata { } export interface Team { + discoverability?: string; id?: string; name?: string; - discoverability?: string; primary_owner?: PrimaryOwner; team_url?: string; } export interface PrimaryOwner { - user_id?: string; email?: string; + user_id?: string; } diff --git a/packages/web-api/src/response/AdminTeamsOwnersListResponse.ts b/packages/web-api/src/response/AdminTeamsOwnersListResponse.ts index aad06f770..1ae0ec2a2 100644 --- a/packages/web-api/src/response/AdminTeamsOwnersListResponse.ts +++ b/packages/web-api/src/response/AdminTeamsOwnersListResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsOwnersListResponse = WebAPICallResult & { - ok?: boolean; - owner_ids?: string[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; + owner_ids?: string[]; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminTeamsSettingsInfoResponse.ts b/packages/web-api/src/response/AdminTeamsSettingsInfoResponse.ts index 78d4c9ac8..899ec98b9 100644 --- a/packages/web-api/src/response/AdminTeamsSettingsInfoResponse.ts +++ b/packages/web-api/src/response/AdminTeamsSettingsInfoResponse.ts @@ -10,35 +10,35 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsSettingsInfoResponse = WebAPICallResult & { - ok?: boolean; - team?: Team; error?: string; needed?: string; + ok?: boolean; provided?: string; + team?: Team; }; export interface Team { - id?: string; - name?: string; + avatar_base_url?: string; + default_channels?: string[]; domain?: string; email_domain?: string; - icon?: Icon; + enterprise_domain?: string; enterprise_id?: string; enterprise_name?: string; - default_channels?: string[]; + icon?: Icon; + id?: string; is_verified?: boolean; - enterprise_domain?: string; + name?: string; url?: string; - avatar_base_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_original?: string; } diff --git a/packages/web-api/src/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts b/packages/web-api/src/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts index ded1f496f..c77e03725 100644 --- a/packages/web-api/src/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts +++ b/packages/web-api/src/response/AdminTeamsSettingsSetDefaultChannelsResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsSettingsSetDefaultChannelsResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminTeamsSettingsSetDescriptionResponse.ts b/packages/web-api/src/response/AdminTeamsSettingsSetDescriptionResponse.ts index 1d0fcbfbe..29e787c13 100644 --- a/packages/web-api/src/response/AdminTeamsSettingsSetDescriptionResponse.ts +++ b/packages/web-api/src/response/AdminTeamsSettingsSetDescriptionResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsSettingsSetDescriptionResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts b/packages/web-api/src/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts index 883330aaf..bb0d54400 100644 --- a/packages/web-api/src/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts +++ b/packages/web-api/src/response/AdminTeamsSettingsSetDiscoverabilityResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsSettingsSetDiscoverabilityResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminTeamsSettingsSetIconResponse.ts b/packages/web-api/src/response/AdminTeamsSettingsSetIconResponse.ts index 643551ae3..3e73ca3f6 100644 --- a/packages/web-api/src/response/AdminTeamsSettingsSetIconResponse.ts +++ b/packages/web-api/src/response/AdminTeamsSettingsSetIconResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsSettingsSetIconResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminTeamsSettingsSetNameResponse.ts b/packages/web-api/src/response/AdminTeamsSettingsSetNameResponse.ts index fa70b2f69..e3f8aaed8 100644 --- a/packages/web-api/src/response/AdminTeamsSettingsSetNameResponse.ts +++ b/packages/web-api/src/response/AdminTeamsSettingsSetNameResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminTeamsSettingsSetNameResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsergroupsAddChannelsResponse.ts b/packages/web-api/src/response/AdminUsergroupsAddChannelsResponse.ts index 71e8fc16d..f3dcc7600 100644 --- a/packages/web-api/src/response/AdminUsergroupsAddChannelsResponse.ts +++ b/packages/web-api/src/response/AdminUsergroupsAddChannelsResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsergroupsAddChannelsResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsergroupsAddTeamsResponse.ts b/packages/web-api/src/response/AdminUsergroupsAddTeamsResponse.ts index 4f51c22f2..d27ffa4d9 100644 --- a/packages/web-api/src/response/AdminUsergroupsAddTeamsResponse.ts +++ b/packages/web-api/src/response/AdminUsergroupsAddTeamsResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsergroupsAddTeamsResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsergroupsListChannelsResponse.ts b/packages/web-api/src/response/AdminUsergroupsListChannelsResponse.ts index dbe677fab..6b3d22fd6 100644 --- a/packages/web-api/src/response/AdminUsergroupsListChannelsResponse.ts +++ b/packages/web-api/src/response/AdminUsergroupsListChannelsResponse.ts @@ -10,47 +10,47 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsergroupsListChannelsResponse = WebAPICallResult & { - ok?: boolean; channels?: Channel[]; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + created?: number; + creator?: string; + date_connected?: number; + enterprise_id?: string; id?: string; - name?: string; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; + is_global_shared?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; + is_member?: boolean; is_moved?: number; - is_ext_shared?: boolean; - enterprise_id?: string; - is_global_shared?: boolean; + is_mpim?: boolean; is_org_default?: boolean; is_org_mandatory?: boolean; is_org_shared?: boolean; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; - topic?: Purpose; - purpose?: Purpose; + is_shared?: boolean; + name?: string; + name_normalized?: string; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; previous_names?: string[]; - date_connected?: number; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/AdminUsergroupsRemoveChannelsResponse.ts b/packages/web-api/src/response/AdminUsergroupsRemoveChannelsResponse.ts index 8404f3651..b01e4fb6b 100644 --- a/packages/web-api/src/response/AdminUsergroupsRemoveChannelsResponse.ts +++ b/packages/web-api/src/response/AdminUsergroupsRemoveChannelsResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsergroupsRemoveChannelsResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersAssignResponse.ts b/packages/web-api/src/response/AdminUsersAssignResponse.ts index 1c02f3dac..d9b31063d 100644 --- a/packages/web-api/src/response/AdminUsersAssignResponse.ts +++ b/packages/web-api/src/response/AdminUsersAssignResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersAssignResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersInviteResponse.ts b/packages/web-api/src/response/AdminUsersInviteResponse.ts index 3ccee48f0..4ffabc5e1 100644 --- a/packages/web-api/src/response/AdminUsersInviteResponse.ts +++ b/packages/web-api/src/response/AdminUsersInviteResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersInviteResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminUsersListResponse.ts b/packages/web-api/src/response/AdminUsersListResponse.ts index 1dec8ae21..d4b294f60 100644 --- a/packages/web-api/src/response/AdminUsersListResponse.ts +++ b/packages/web-api/src/response/AdminUsersListResponse.ts @@ -10,27 +10,27 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersListResponse = WebAPICallResult & { - ok?: boolean; - users?: User[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + users?: User[]; }; export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; } export interface User { - id?: string; email?: string; + expiration_ts?: number; + id?: string; is_admin?: boolean; + is_bot?: boolean; is_owner?: boolean; is_primary_owner?: boolean; is_restricted?: boolean; is_ultra_restricted?: boolean; - is_bot?: boolean; - expiration_ts?: number; } diff --git a/packages/web-api/src/response/AdminUsersRemoveResponse.ts b/packages/web-api/src/response/AdminUsersRemoveResponse.ts index 3e4e46ce2..609343492 100644 --- a/packages/web-api/src/response/AdminUsersRemoveResponse.ts +++ b/packages/web-api/src/response/AdminUsersRemoveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSessionClearSettingsResponse.ts b/packages/web-api/src/response/AdminUsersSessionClearSettingsResponse.ts index 90eea6f83..0a73982d3 100644 --- a/packages/web-api/src/response/AdminUsersSessionClearSettingsResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionClearSettingsResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionClearSettingsResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSessionGetSettingsResponse.ts b/packages/web-api/src/response/AdminUsersSessionGetSettingsResponse.ts index 8dd9311bc..3eaffcc23 100644 --- a/packages/web-api/src/response/AdminUsersSessionGetSettingsResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionGetSettingsResponse.ts @@ -10,16 +10,16 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionGetSettingsResponse = WebAPICallResult & { - ok?: boolean; - session_settings?: SessionSetting[]; - no_settings_applied?: string[]; error?: string; needed?: string; + no_settings_applied?: string[]; + ok?: boolean; provided?: string; + session_settings?: SessionSetting[]; }; export interface SessionSetting { - user_id?: string; desktop_app_browser_quit?: boolean; duration?: number; + user_id?: string; } diff --git a/packages/web-api/src/response/AdminUsersSessionInvalidateResponse.ts b/packages/web-api/src/response/AdminUsersSessionInvalidateResponse.ts index d5ca50754..c5415f6cf 100644 --- a/packages/web-api/src/response/AdminUsersSessionInvalidateResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionInvalidateResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionInvalidateResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminUsersSessionListResponse.ts b/packages/web-api/src/response/AdminUsersSessionListResponse.ts index dd4cb9c05..0aef7512a 100644 --- a/packages/web-api/src/response/AdminUsersSessionListResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionListResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionListResponse = WebAPICallResult & { - ok?: boolean; - error?: string; active_sessions?: ActiveSession[]; - response_metadata?: ResponseMetadata; + error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ActiveSession { - user_id?: string; - session_id?: number; - team_id?: string; created?: Created; recent?: Created; + session_id?: number; + team_id?: string; + user_id?: string; } export interface Created { device_hardware?: string; + ip?: string; os?: string; os_version?: string; slack_client_version?: string; - ip?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AdminUsersSessionResetBulkResponse.ts b/packages/web-api/src/response/AdminUsersSessionResetBulkResponse.ts index bd8cd54bc..6ee4392db 100644 --- a/packages/web-api/src/response/AdminUsersSessionResetBulkResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionResetBulkResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionResetBulkResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSessionResetResponse.ts b/packages/web-api/src/response/AdminUsersSessionResetResponse.ts index e376d5592..b70ac590d 100644 --- a/packages/web-api/src/response/AdminUsersSessionResetResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionResetResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionResetResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSessionSetSettingsResponse.ts b/packages/web-api/src/response/AdminUsersSessionSetSettingsResponse.ts index d84548ec8..1439313a0 100644 --- a/packages/web-api/src/response/AdminUsersSessionSetSettingsResponse.ts +++ b/packages/web-api/src/response/AdminUsersSessionSetSettingsResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSessionSetSettingsResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSetAdminResponse.ts b/packages/web-api/src/response/AdminUsersSetAdminResponse.ts index 2df9e884c..010ad3ca6 100644 --- a/packages/web-api/src/response/AdminUsersSetAdminResponse.ts +++ b/packages/web-api/src/response/AdminUsersSetAdminResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSetAdminResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSetExpirationResponse.ts b/packages/web-api/src/response/AdminUsersSetExpirationResponse.ts index f06d2ca80..616de852c 100644 --- a/packages/web-api/src/response/AdminUsersSetExpirationResponse.ts +++ b/packages/web-api/src/response/AdminUsersSetExpirationResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSetExpirationResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSetOwnerResponse.ts b/packages/web-api/src/response/AdminUsersSetOwnerResponse.ts index 589888b95..0064d265b 100644 --- a/packages/web-api/src/response/AdminUsersSetOwnerResponse.ts +++ b/packages/web-api/src/response/AdminUsersSetOwnerResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSetOwnerResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersSetRegularResponse.ts b/packages/web-api/src/response/AdminUsersSetRegularResponse.ts index 005285319..4f5171469 100644 --- a/packages/web-api/src/response/AdminUsersSetRegularResponse.ts +++ b/packages/web-api/src/response/AdminUsersSetRegularResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersSetRegularResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AdminUsersUnsupportedVersionsExportResponse.ts b/packages/web-api/src/response/AdminUsersUnsupportedVersionsExportResponse.ts index 4df4b6877..4f3bd0fac 100644 --- a/packages/web-api/src/response/AdminUsersUnsupportedVersionsExportResponse.ts +++ b/packages/web-api/src/response/AdminUsersUnsupportedVersionsExportResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AdminUsersUnsupportedVersionsExportResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ApiTestResponse.ts b/packages/web-api/src/response/ApiTestResponse.ts index f2221817c..46c759c3a 100644 --- a/packages/web-api/src/response/ApiTestResponse.ts +++ b/packages/web-api/src/response/ApiTestResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type ApiTestResponse = WebAPICallResult & { - ok?: boolean; - error?: string; args?: Args; + error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsConnectionsOpenResponse.ts b/packages/web-api/src/response/AppsConnectionsOpenResponse.ts index 6edb04061..72f1dfd32 100644 --- a/packages/web-api/src/response/AppsConnectionsOpenResponse.ts +++ b/packages/web-api/src/response/AppsConnectionsOpenResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type AppsConnectionsOpenResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; url?: string; }; diff --git a/packages/web-api/src/response/AppsEventAuthorizationsListResponse.ts b/packages/web-api/src/response/AppsEventAuthorizationsListResponse.ts index 35db74508..5489ad0a4 100644 --- a/packages/web-api/src/response/AppsEventAuthorizationsListResponse.ts +++ b/packages/web-api/src/response/AppsEventAuthorizationsListResponse.ts @@ -10,17 +10,17 @@ import { WebAPICallResult } from '../WebClient'; export type AppsEventAuthorizationsListResponse = WebAPICallResult & { - ok?: boolean; - error?: string; authorizations?: Authorization[]; + error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Authorization { enterprise_id?: string; - team_id?: string; - user_id?: string; is_bot?: boolean; is_enterprise_install?: boolean; + team_id?: string; + user_id?: string; } diff --git a/packages/web-api/src/response/AppsPermissionsInfoResponse.ts b/packages/web-api/src/response/AppsPermissionsInfoResponse.ts index f95db9eae..20233b18e 100644 --- a/packages/web-api/src/response/AppsPermissionsInfoResponse.ts +++ b/packages/web-api/src/response/AppsPermissionsInfoResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AppsPermissionsInfoResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsPermissionsRequestResponse.ts b/packages/web-api/src/response/AppsPermissionsRequestResponse.ts index 379bbe43d..5c49656f9 100644 --- a/packages/web-api/src/response/AppsPermissionsRequestResponse.ts +++ b/packages/web-api/src/response/AppsPermissionsRequestResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AppsPermissionsRequestResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsPermissionsResourcesListResponse.ts b/packages/web-api/src/response/AppsPermissionsResourcesListResponse.ts index e101b3b90..23174fd15 100644 --- a/packages/web-api/src/response/AppsPermissionsResourcesListResponse.ts +++ b/packages/web-api/src/response/AppsPermissionsResourcesListResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AppsPermissionsResourcesListResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsPermissionsScopesListResponse.ts b/packages/web-api/src/response/AppsPermissionsScopesListResponse.ts index a697e1b3f..daa9efcae 100644 --- a/packages/web-api/src/response/AppsPermissionsScopesListResponse.ts +++ b/packages/web-api/src/response/AppsPermissionsScopesListResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AppsPermissionsScopesListResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsPermissionsUsersListResponse.ts b/packages/web-api/src/response/AppsPermissionsUsersListResponse.ts index db230df3d..f9d0c9e9b 100644 --- a/packages/web-api/src/response/AppsPermissionsUsersListResponse.ts +++ b/packages/web-api/src/response/AppsPermissionsUsersListResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AppsPermissionsUsersListResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsPermissionsUsersRequestResponse.ts b/packages/web-api/src/response/AppsPermissionsUsersRequestResponse.ts index 002ad85be..9ce0e5783 100644 --- a/packages/web-api/src/response/AppsPermissionsUsersRequestResponse.ts +++ b/packages/web-api/src/response/AppsPermissionsUsersRequestResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AppsPermissionsUsersRequestResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AppsUninstallResponse.ts b/packages/web-api/src/response/AppsUninstallResponse.ts index 4167920a7..8cb22c2cc 100644 --- a/packages/web-api/src/response/AppsUninstallResponse.ts +++ b/packages/web-api/src/response/AppsUninstallResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type AppsUninstallResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AuthRevokeResponse.ts b/packages/web-api/src/response/AuthRevokeResponse.ts index 703d5f753..1c87610f9 100644 --- a/packages/web-api/src/response/AuthRevokeResponse.ts +++ b/packages/web-api/src/response/AuthRevokeResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type AuthRevokeResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/AuthTeamsListResponse.ts b/packages/web-api/src/response/AuthTeamsListResponse.ts index 560003c1c..343a39231 100644 --- a/packages/web-api/src/response/AuthTeamsListResponse.ts +++ b/packages/web-api/src/response/AuthTeamsListResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type AuthTeamsListResponse = WebAPICallResult & { - ok?: boolean; - teams?: Team[]; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + teams?: Team[]; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/AuthTestResponse.ts b/packages/web-api/src/response/AuthTestResponse.ts index 77b12e05f..0c0365bed 100644 --- a/packages/web-api/src/response/AuthTestResponse.ts +++ b/packages/web-api/src/response/AuthTestResponse.ts @@ -10,18 +10,18 @@ import { WebAPICallResult } from '../WebClient'; export type AuthTestResponse = WebAPICallResult & { - ok?: boolean; - url?: string; - team?: string; - user?: string; - team_id?: string; - user_id?: string; - bot_id?: string; - is_enterprise_install?: boolean; - app_name?: string; app_id?: string; + app_name?: string; + bot_id?: string; enterprise_id?: string; error?: string; + is_enterprise_install?: boolean; 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/response/BookmarksAddResponse.ts b/packages/web-api/src/response/BookmarksAddResponse.ts index 1afd0f12c..91f3438b6 100644 --- a/packages/web-api/src/response/BookmarksAddResponse.ts +++ b/packages/web-api/src/response/BookmarksAddResponse.ts @@ -10,30 +10,30 @@ import { WebAPICallResult } from '../WebClient'; export type BookmarksAddResponse = WebAPICallResult & { - ok?: boolean; + bookmark?: Bookmark; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; - bookmark?: Bookmark; + response_metadata?: ResponseMetadata; }; export interface Bookmark { - id?: string; + app_id?: string; channel_id?: string; - title?: string; - link?: string; - emoji?: string; - icon_url?: string; - entity_id?: string; - type?: string; date_created?: number; date_updated?: number; - rank?: string; - last_updated_by_user_id?: string; + 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; - app_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/BookmarksEditResponse.ts b/packages/web-api/src/response/BookmarksEditResponse.ts index b0b338974..687dbeabf 100644 --- a/packages/web-api/src/response/BookmarksEditResponse.ts +++ b/packages/web-api/src/response/BookmarksEditResponse.ts @@ -10,30 +10,30 @@ import { WebAPICallResult } from '../WebClient'; export type BookmarksEditResponse = WebAPICallResult & { - ok?: boolean; + bookmark?: Bookmark; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; - bookmark?: Bookmark; + response_metadata?: ResponseMetadata; }; export interface Bookmark { - id?: string; + app_id?: string; channel_id?: string; - title?: string; - link?: string; - emoji?: string; - icon_url?: string; - entity_id?: string; - type?: string; date_created?: number; date_updated?: number; - rank?: string; - last_updated_by_user_id?: string; + 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; - app_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/BookmarksListResponse.ts b/packages/web-api/src/response/BookmarksListResponse.ts index b57a64886..cbf693f54 100644 --- a/packages/web-api/src/response/BookmarksListResponse.ts +++ b/packages/web-api/src/response/BookmarksListResponse.ts @@ -10,30 +10,30 @@ import { WebAPICallResult } from '../WebClient'; export type BookmarksListResponse = WebAPICallResult & { - ok?: boolean; + bookmarks?: Bookmark[]; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; - bookmarks?: Bookmark[]; + response_metadata?: ResponseMetadata; }; export interface Bookmark { - id?: string; + app_id?: string; channel_id?: string; - title?: string; - link?: string; - emoji?: string; - icon_url?: string; - entity_id?: string; - type?: string; date_created?: number; date_updated?: number; - rank?: string; - last_updated_by_user_id?: string; + 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; - app_id?: string; + title?: string; + type?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/BookmarksRemoveResponse.ts b/packages/web-api/src/response/BookmarksRemoveResponse.ts index 926c47ccc..2076e3be5 100644 --- a/packages/web-api/src/response/BookmarksRemoveResponse.ts +++ b/packages/web-api/src/response/BookmarksRemoveResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type BookmarksRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/BotsInfoResponse.ts b/packages/web-api/src/response/BotsInfoResponse.ts index dcf8bfac0..7d4f6e499 100644 --- a/packages/web-api/src/response/BotsInfoResponse.ts +++ b/packages/web-api/src/response/BotsInfoResponse.ts @@ -10,21 +10,21 @@ import { WebAPICallResult } from '../WebClient'; export type BotsInfoResponse = WebAPICallResult & { - ok?: boolean; bot?: Bot; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Bot { - id?: string; + app_id?: string; deleted?: boolean; + icons?: Icons; + id?: string; name?: string; updated?: number; - app_id?: string; user_id?: string; - icons?: Icons; } export interface Icons { diff --git a/packages/web-api/src/response/CallsAddResponse.ts b/packages/web-api/src/response/CallsAddResponse.ts index 14858c223..3984349ae 100644 --- a/packages/web-api/src/response/CallsAddResponse.ts +++ b/packages/web-api/src/response/CallsAddResponse.ts @@ -10,30 +10,30 @@ import { WebAPICallResult } from '../WebClient'; export type CallsAddResponse = WebAPICallResult & { - ok?: boolean; call?: Call; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface Call { - id?: string; date_start?: number; + desktop_app_join_url?: string; + external_display_id?: string; external_unique_id?: string; + id?: string; join_url?: string; - external_display_id?: string; title?: string; users?: User[]; - desktop_app_join_url?: string; } export interface User { - slack_id?: string; - external_id?: string; - display_name?: string; avatar_url?: string; + display_name?: string; + external_id?: string; + slack_id?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/CallsEndResponse.ts b/packages/web-api/src/response/CallsEndResponse.ts index 48e537487..44004267b 100644 --- a/packages/web-api/src/response/CallsEndResponse.ts +++ b/packages/web-api/src/response/CallsEndResponse.ts @@ -10,29 +10,29 @@ import { WebAPICallResult } from '../WebClient'; export type CallsEndResponse = WebAPICallResult & { - ok?: boolean; call?: Call; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - id?: string; + 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; - date_end?: number; - channels?: string[]; - external_display_id?: string; title?: string; - desktop_app_join_url?: string; users?: User[]; } export interface User { - external_id?: string; avatar_url?: string; display_name?: string; + external_id?: string; slack_id?: string; } diff --git a/packages/web-api/src/response/CallsInfoResponse.ts b/packages/web-api/src/response/CallsInfoResponse.ts index 6c5ad5968..5c535607c 100644 --- a/packages/web-api/src/response/CallsInfoResponse.ts +++ b/packages/web-api/src/response/CallsInfoResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type CallsInfoResponse = WebAPICallResult & { - ok?: boolean; call?: Call; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - id?: string; + channels?: string[]; date_start?: number; + desktop_app_join_url?: string; + external_display_id?: string; external_unique_id?: string; + id?: string; join_url?: string; - channels?: string[]; - external_display_id?: string; title?: string; - desktop_app_join_url?: string; users?: User[]; } export interface User { - external_id?: string; avatar_url?: string; display_name?: string; + external_id?: string; slack_id?: string; } diff --git a/packages/web-api/src/response/CallsParticipantsAddResponse.ts b/packages/web-api/src/response/CallsParticipantsAddResponse.ts index b555a999e..c62900f4c 100644 --- a/packages/web-api/src/response/CallsParticipantsAddResponse.ts +++ b/packages/web-api/src/response/CallsParticipantsAddResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type CallsParticipantsAddResponse = WebAPICallResult & { - ok?: boolean; call?: Call; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - id?: string; + channels?: string[]; date_start?: number; + desktop_app_join_url?: string; + external_display_id?: string; external_unique_id?: string; + id?: string; join_url?: string; - channels?: string[]; - external_display_id?: string; title?: string; - desktop_app_join_url?: string; users?: User[]; } export interface User { - external_id?: string; avatar_url?: string; display_name?: string; + external_id?: string; slack_id?: string; } diff --git a/packages/web-api/src/response/CallsParticipantsRemoveResponse.ts b/packages/web-api/src/response/CallsParticipantsRemoveResponse.ts index 39c71df27..203014423 100644 --- a/packages/web-api/src/response/CallsParticipantsRemoveResponse.ts +++ b/packages/web-api/src/response/CallsParticipantsRemoveResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type CallsParticipantsRemoveResponse = WebAPICallResult & { - ok?: boolean; call?: Call; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - id?: string; + channels?: string[]; date_start?: number; + desktop_app_join_url?: string; + external_display_id?: string; external_unique_id?: string; + id?: string; join_url?: string; - channels?: string[]; - external_display_id?: string; title?: string; - desktop_app_join_url?: string; users?: User[]; } export interface User { - external_id?: string; avatar_url?: string; display_name?: string; + external_id?: string; slack_id?: string; } diff --git a/packages/web-api/src/response/CallsUpdateResponse.ts b/packages/web-api/src/response/CallsUpdateResponse.ts index 298c5379a..bd0206d65 100644 --- a/packages/web-api/src/response/CallsUpdateResponse.ts +++ b/packages/web-api/src/response/CallsUpdateResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type CallsUpdateResponse = WebAPICallResult & { - ok?: boolean; call?: Call; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Call { - id?: string; + channels?: string[]; date_start?: number; + desktop_app_join_url?: string; + external_display_id?: string; external_unique_id?: string; + id?: string; join_url?: string; - channels?: string[]; - external_display_id?: string; title?: string; - desktop_app_join_url?: string; users?: User[]; } export interface User { - external_id?: string; avatar_url?: string; display_name?: string; + external_id?: string; slack_id?: string; } diff --git a/packages/web-api/src/response/ChannelsArchiveResponse.ts b/packages/web-api/src/response/ChannelsArchiveResponse.ts index 415aaa1df..9c9bb92b7 100644 --- a/packages/web-api/src/response/ChannelsArchiveResponse.ts +++ b/packages/web-api/src/response/ChannelsArchiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsArchiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChannelsCreateResponse.ts b/packages/web-api/src/response/ChannelsCreateResponse.ts index 0df7fbd97..d71f2584f 100644 --- a/packages/web-api/src/response/ChannelsCreateResponse.ts +++ b/packages/web-api/src/response/ChannelsCreateResponse.ts @@ -10,40 +10,40 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsCreateResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - id?: string; - name?: string; - is_channel?: boolean; created?: number; + creator?: string; + id?: string; is_archived?: boolean; + is_channel?: boolean; is_general?: boolean; - unlinked?: number; - creator?: string; - name_normalized?: string; - is_shared?: boolean; - is_org_shared?: boolean; is_member?: boolean; - is_private?: boolean; is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; last_read?: string; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; - purpose?: Purpose; + 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 { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ChannelsHistoryResponse.ts b/packages/web-api/src/response/ChannelsHistoryResponse.ts index e3f6e2cf5..47d8677ca 100644 --- a/packages/web-api/src/response/ChannelsHistoryResponse.ts +++ b/packages/web-api/src/response/ChannelsHistoryResponse.ts @@ -10,123 +10,123 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsHistoryResponse = WebAPICallResult & { - ok?: boolean; - messages?: Message[]; - has_more?: boolean; - channel_actions_ts?: number; channel_actions_count?: number; - warning?: string; - response_metadata?: ResponseMetadata; - latest?: 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 { - type?: string; - text?: string; - files?: File[]; - upload?: boolean; - user?: string; - display_as_bot?: boolean; - ts?: string; - x_files?: string[]; + attachments?: Attachment[]; + blocks?: Block[]; bot_id?: string; - edited?: Edited; - team?: string; bot_profile?: BotProfile; - blocks?: Block[]; - attachments?: Attachment[]; - subtype?: string; - thread_ts?: string; - root?: Root; - username?: string; + 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_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; + root?: Root; subscribed?: boolean; - client_msg_id?: string; - inviter?: string; - reactions?: Reaction[]; + 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 { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: 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; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: string; + 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: Option[]; - selected_options?: Option[]; data_source?: string; + id?: string; min_query_length?: number; + name?: string; option_groups?: OptionGroup[]; + options?: Option[]; + selected_options?: Option[]; + style?: string; + text?: string; + type?: string; url?: string; + value?: string; } export interface ActionConfirm { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface OptionGroup { @@ -139,112 +139,112 @@ export interface Option { } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Block { - type?: string; + accessory?: Accessory; + alt_text?: string; block_id?: string; - text?: Text; elements?: Element[]; fallback?: string; + fields?: Text[]; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; + text?: Text; title?: Text; - fields?: Text[]; - accessory?: Accessory; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; alt_text?: string; fallback?: string; - image_width?: number; - image_height?: number; image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - type?: string; - text?: Text; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: ElementConfirm; - placeholder?: Text; - initial_channel?: string; - response_url_enabled?: boolean; - initial_conversation?: string; default_to_current_conversation?: boolean; + fallback?: string; filter?: Filter; - initial_date?: string; - initial_option?: InitialOption; - min_query_length?: number; + image_bytes?: number; + image_height?: number; image_url?: string; - alt_text?: string; - fallback?: string; image_width?: number; - image_height?: number; - image_bytes?: 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 { - title?: Text; - text?: Text; confirm?: Text; deny?: Text; style?: string; + text?: Text; + title?: Text; } export interface Text { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; } export interface InitialOption { - text?: Text; - value?: string; description?: Text; + text?: Text; url?: string; + value?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface BotProfileIcons { @@ -254,68 +254,68 @@ export interface BotProfileIcons { } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface File { - id?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; + display_as_bot?: boolean; + edit_link?: string; editable?: boolean; - size?: number; - mode?: string; - is_external?: 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; - display_as_bot?: boolean; - username?: string; - url_private?: string; - thumb_64?: string; - thumb_80?: string; + size?: number; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; thumb_360?: string; - thumb_360_w?: number; thumb_360_h?: number; + thumb_360_w?: number; thumb_480?: string; - thumb_480_w?: number; thumb_480_h?: number; - thumb_160?: string; + thumb_480_w?: number; + thumb_64?: string; thumb_720?: string; - thumb_720_w?: number; thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; thumb_800?: string; - thumb_800_w?: number; thumb_800_h?: number; + thumb_800_w?: number; thumb_960?: string; - thumb_960_w?: number; thumb_960_h?: number; - thumb_1024?: string; - thumb_1024_w?: number; - thumb_1024_h?: number; - original_w?: number; - original_h?: number; + thumb_960_w?: number; thumb_tiny?: string; - permalink?: string; - is_starred?: boolean; - external_id?: string; - external_url?: string; - has_rich_preview?: boolean; + timestamp?: number; + title?: string; + url_private?: string; url_private_download?: string; - permalink_public?: string; - edit_link?: string; - preview?: string; - preview_highlight?: string; - lines?: number; - lines_more?: number; - preview_is_truncated?: boolean; - image_exif_rotation?: number; + user?: string; + username?: string; } export interface MessageIcons { @@ -324,30 +324,30 @@ export interface MessageIcons { } export interface Reaction { + count?: number; name?: string; users?: string[]; - count?: number; } export interface Root { - type?: string; - subtype?: string; - text?: string; - ts?: string; - username?: string; - icons?: MessageIcons; bot_id?: string; - thread_ts?: string; + bot_profile?: BotProfile; + edited?: Edited; + icons?: MessageIcons; + latest_reply?: string; parent_user_id?: string; reply_count?: number; - reply_users_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - user?: string; + subtype?: string; team?: string; - bot_profile?: BotProfile; - edited?: Edited; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ChannelsInfoResponse.ts b/packages/web-api/src/response/ChannelsInfoResponse.ts index 0120279da..133250df4 100644 --- a/packages/web-api/src/response/ChannelsInfoResponse.ts +++ b/packages/web-api/src/response/ChannelsInfoResponse.ts @@ -10,127 +10,127 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsInfoResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - id?: string; - name?: string; - is_channel?: boolean; created?: number; + creator?: string; + id?: string; is_archived?: boolean; + is_channel?: boolean; is_general?: boolean; - unlinked?: number; - creator?: string; - name_normalized?: string; - is_shared?: boolean; - is_org_shared?: boolean; is_member?: boolean; - is_private?: boolean; is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; last_read?: string; latest?: Latest; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; + unread_count?: number; + unread_count_display?: number; } export interface Latest { - type?: string; - text?: 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; - display_as_bot?: boolean; - ts?: string; - subtype?: string; username?: string; - bot_id?: string; - blocks?: Block[]; x_files?: string[]; - attachments?: Attachment[]; - edited?: Edited; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; - author_name?: string; - author_link?: string; + actions?: Action[]; + app_unfurl_url?: string; author_icon?: string; - from_url?: string; - original_url?: 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; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: string; + 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: Option[]; - selected_options?: Option[]; data_source?: string; + id?: string; min_query_length?: number; + name?: string; option_groups?: OptionGroup[]; + options?: Option[]; + selected_options?: Option[]; + style?: string; + text?: string; + type?: string; url?: string; + value?: string; } export interface ActionConfirm { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface OptionGroup { @@ -143,135 +143,135 @@ export interface Option { } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Block { - type?: string; - block_id?: string; - text?: Text; 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; - image_height?: number; - image_bytes?: number; - alt_text?: string; + text?: Text; title?: Text; - fields?: Text[]; + type?: string; } export interface Accessory { + alt_text?: string; fallback?: string; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; type?: string; - alt_text?: string; } export interface Element { - type?: string; action_id?: string; - text?: Text; - value?: string; - url?: string; - style?: string; + alt_text?: string; confirm?: ElementConfirm; - placeholder?: Text; + 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; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; initial_user?: string; + min_query_length?: number; + placeholder?: Text; + style?: string; + text?: Text; + type?: string; + url?: string; + value?: string; } export interface ElementConfirm { - title?: Text; - text?: Text; confirm?: Text; deny?: Text; + text?: Text; + title?: Text; } export interface Text { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface InitialOption { - text?: Text; - value?: string; description?: Text; + text?: Text; url?: string; + value?: string; } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface File { - id?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; + display_as_bot?: boolean; + edit_link?: string; editable?: boolean; - size?: number; - mode?: string; - is_external?: boolean; external_type?: string; + filetype?: string; + has_rich_preview?: boolean; + id?: string; + is_external?: boolean; is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - username?: string; - url_private?: string; - url_private_download?: string; + is_starred?: boolean; + lines?: number; + lines_more?: number; + mimetype?: string; + mode?: string; + name?: string; permalink?: string; permalink_public?: string; - edit_link?: string; + pretty_type?: string; preview?: string; preview_highlight?: string; - lines?: number; - lines_more?: number; preview_is_truncated?: boolean; - is_starred?: boolean; - has_rich_preview?: boolean; + public_url_shared?: boolean; + size?: number; + timestamp?: number; + title?: string; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ChannelsInviteResponse.ts b/packages/web-api/src/response/ChannelsInviteResponse.ts index 3b62cceeb..86b54c781 100644 --- a/packages/web-api/src/response/ChannelsInviteResponse.ts +++ b/packages/web-api/src/response/ChannelsInviteResponse.ts @@ -10,49 +10,49 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsInviteResponse = WebAPICallResult & { - ok?: boolean; - error?: string; channel?: Channel; + error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - id?: string; - name?: string; - is_channel?: boolean; created?: number; + creator?: string; + id?: string; is_archived?: boolean; + is_channel?: boolean; is_general?: boolean; - unlinked?: number; - creator?: string; - name_normalized?: string; - is_shared?: boolean; - is_org_shared?: boolean; is_member?: boolean; - is_private?: boolean; is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; last_read?: string; latest?: Latest; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; - purpose?: Purpose; + 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 { - type?: string; subtype?: string; + text?: string; ts?: string; + type?: string; user?: string; - text?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ChannelsJoinResponse.ts b/packages/web-api/src/response/ChannelsJoinResponse.ts index 2caf4e94c..a63617446 100644 --- a/packages/web-api/src/response/ChannelsJoinResponse.ts +++ b/packages/web-api/src/response/ChannelsJoinResponse.ts @@ -10,49 +10,49 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsJoinResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - id?: string; - name?: string; - is_channel?: boolean; created?: number; + creator?: string; + id?: string; is_archived?: boolean; + is_channel?: boolean; is_general?: boolean; - unlinked?: number; - creator?: string; - name_normalized?: string; - is_shared?: boolean; - is_org_shared?: boolean; is_member?: boolean; - is_private?: boolean; is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; last_read?: string; latest?: Latest; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; - purpose?: Purpose; + 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 { - type?: string; subtype?: string; + text?: string; ts?: string; + type?: string; user?: string; - text?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ChannelsKickResponse.ts b/packages/web-api/src/response/ChannelsKickResponse.ts index 071f35c42..bd70952e9 100644 --- a/packages/web-api/src/response/ChannelsKickResponse.ts +++ b/packages/web-api/src/response/ChannelsKickResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsKickResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChannelsLeaveResponse.ts b/packages/web-api/src/response/ChannelsLeaveResponse.ts index 094e3c677..45e1611d6 100644 --- a/packages/web-api/src/response/ChannelsLeaveResponse.ts +++ b/packages/web-api/src/response/ChannelsLeaveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsLeaveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChannelsListResponse.ts b/packages/web-api/src/response/ChannelsListResponse.ts index a1598a3b7..fdd170961 100644 --- a/packages/web-api/src/response/ChannelsListResponse.ts +++ b/packages/web-api/src/response/ChannelsListResponse.ts @@ -10,45 +10,45 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsListResponse = WebAPICallResult & { - ok?: boolean; channels?: Channel[]; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Channel { - id?: string; - name?: string; - is_channel?: boolean; created?: number; + creator?: string; + id?: string; is_archived?: boolean; + is_channel?: boolean; is_general?: boolean; - unlinked?: number; - creator?: string; - name_normalized?: string; - is_shared?: boolean; - is_org_shared?: boolean; is_member?: boolean; - is_private?: boolean; is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; members?: string[]; - topic?: Purpose; - purpose?: Purpose; - previous_names?: string[]; + name?: string; + name_normalized?: string; num_members?: number; + previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; warnings?: string[]; } diff --git a/packages/web-api/src/response/ChannelsMarkResponse.ts b/packages/web-api/src/response/ChannelsMarkResponse.ts index 6341855ad..bbf9c8ba5 100644 --- a/packages/web-api/src/response/ChannelsMarkResponse.ts +++ b/packages/web-api/src/response/ChannelsMarkResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsMarkResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChannelsRenameResponse.ts b/packages/web-api/src/response/ChannelsRenameResponse.ts index 3f7a13eb9..1986ec9e5 100644 --- a/packages/web-api/src/response/ChannelsRenameResponse.ts +++ b/packages/web-api/src/response/ChannelsRenameResponse.ts @@ -11,35 +11,35 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsRenameResponse = WebAPICallResult & { channel?: Channel; - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { - id?: string; - name?: string; - is_channel?: boolean; created?: number; + creator?: string; + id?: string; is_archived?: boolean; + is_channel?: boolean; is_general?: boolean; - unlinked?: number; - creator?: string; - name_normalized?: string; - is_shared?: boolean; - is_org_shared?: boolean; is_member?: boolean; - is_private?: boolean; is_mpim?: boolean; + is_org_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; members?: string[]; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; previous_names?: string[]; + purpose?: Purpose; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ChannelsRepliesResponse.ts b/packages/web-api/src/response/ChannelsRepliesResponse.ts index b4ccf34d8..324e61eac 100644 --- a/packages/web-api/src/response/ChannelsRepliesResponse.ts +++ b/packages/web-api/src/response/ChannelsRepliesResponse.ts @@ -10,41 +10,41 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsRepliesResponse = WebAPICallResult & { - messages?: Message[]; - has_more?: boolean; - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; - reply_count?: number; - reply_users_count?: number; latest_reply?: string; + parent_user_id?: string; + reply_count?: number; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - parent_user_id?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/ChannelsSetPurposeResponse.ts b/packages/web-api/src/response/ChannelsSetPurposeResponse.ts index a750946f1..f726e6dbb 100644 --- a/packages/web-api/src/response/ChannelsSetPurposeResponse.ts +++ b/packages/web-api/src/response/ChannelsSetPurposeResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsSetPurposeResponse = WebAPICallResult & { - ok?: boolean; - purpose?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; + purpose?: string; }; diff --git a/packages/web-api/src/response/ChannelsSetTopicResponse.ts b/packages/web-api/src/response/ChannelsSetTopicResponse.ts index eadb4fae7..9c3665b3b 100644 --- a/packages/web-api/src/response/ChannelsSetTopicResponse.ts +++ b/packages/web-api/src/response/ChannelsSetTopicResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsSetTopicResponse = WebAPICallResult & { - topic?: string; - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; + topic?: string; }; diff --git a/packages/web-api/src/response/ChannelsUnarchiveResponse.ts b/packages/web-api/src/response/ChannelsUnarchiveResponse.ts index 4b6756741..12726c6d4 100644 --- a/packages/web-api/src/response/ChannelsUnarchiveResponse.ts +++ b/packages/web-api/src/response/ChannelsUnarchiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChannelsUnarchiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChatDeleteResponse.ts b/packages/web-api/src/response/ChatDeleteResponse.ts index 9173c2d65..1b763e31d 100644 --- a/packages/web-api/src/response/ChatDeleteResponse.ts +++ b/packages/web-api/src/response/ChatDeleteResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type ChatDeleteResponse = WebAPICallResult & { - ok?: boolean; channel?: string; - ts?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; + ts?: string; }; diff --git a/packages/web-api/src/response/ChatDeleteScheduledMessageResponse.ts b/packages/web-api/src/response/ChatDeleteScheduledMessageResponse.ts index 542ad2fba..6ed14437e 100644 --- a/packages/web-api/src/response/ChatDeleteScheduledMessageResponse.ts +++ b/packages/web-api/src/response/ChatDeleteScheduledMessageResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChatDeleteScheduledMessageResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChatGetPermalinkResponse.ts b/packages/web-api/src/response/ChatGetPermalinkResponse.ts index f77bb0e2b..ceed1cdfa 100644 --- a/packages/web-api/src/response/ChatGetPermalinkResponse.ts +++ b/packages/web-api/src/response/ChatGetPermalinkResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type ChatGetPermalinkResponse = WebAPICallResult & { - ok?: boolean; - permalink?: string; channel?: string; error?: string; needed?: string; + ok?: boolean; + permalink?: string; provided?: string; }; diff --git a/packages/web-api/src/response/ChatMeMessageResponse.ts b/packages/web-api/src/response/ChatMeMessageResponse.ts index 3862eae68..c24462617 100644 --- a/packages/web-api/src/response/ChatMeMessageResponse.ts +++ b/packages/web-api/src/response/ChatMeMessageResponse.ts @@ -11,9 +11,9 @@ import { WebAPICallResult } from '../WebClient'; export type ChatMeMessageResponse = WebAPICallResult & { channel?: string; - ts?: string; - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; + ts?: string; }; diff --git a/packages/web-api/src/response/ChatPostEphemeralResponse.ts b/packages/web-api/src/response/ChatPostEphemeralResponse.ts index 993bb57a4..93f48bcb3 100644 --- a/packages/web-api/src/response/ChatPostEphemeralResponse.ts +++ b/packages/web-api/src/response/ChatPostEphemeralResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type ChatPostEphemeralResponse = WebAPICallResult & { - ok?: boolean; - message_ts?: string; error?: string; + message_ts?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChatPostMessageResponse.ts b/packages/web-api/src/response/ChatPostMessageResponse.ts index 2ea3b7892..ae9413744 100644 --- a/packages/web-api/src/response/ChatPostMessageResponse.ts +++ b/packages/web-api/src/response/ChatPostMessageResponse.ts @@ -10,121 +10,121 @@ import { WebAPICallResult } from '../WebClient'; export type ChatPostMessageResponse = WebAPICallResult & { - ok?: boolean; channel?: string; - ts?: string; - message?: Message; - error?: string; deprecated_argument?: string; - response_metadata?: ResponseMetadata; + error?: string; + errors?: string[]; + message?: Message; needed?: string; + ok?: boolean; provided?: string; - errors?: string[]; + response_metadata?: ResponseMetadata; + ts?: string; }; export interface Message { + app_id?: string; + attachments?: Attachment[]; + blocks?: Block[]; bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; + icons?: MessageIcons; + metadata?: MessageMetadata; parent_user_id?: string; + root?: Root; subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; username?: string; - icons?: MessageIcons; - root?: Root; - blocks?: Block[]; - attachments?: Attachment[]; - app_id?: string; - metadata?: MessageMetadata; } export interface Attachment { - id?: number; - fallback?: string; - text?: string; - callback_id?: string; - footer?: string; - blocks?: Block[]; - color?: string; - msg_subtype?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; - app_id?: string; - bot_id?: 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: string; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - thumb_url?: string; - thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer_icon?: string; - ts?: string; + metadata?: AttachmentMetadata; + mimetype?: string; mrkdwn_in?: string[]; - actions?: Action[]; + msg_subtype?: string; + original_url?: string; + pretext?: string; preview?: Preview; - files?: FileElement[]; - filename?: string; + service_icon?: string; + service_name?: string; + service_url?: string; size?: number; - mimetype?: string; + text?: string; + thumb_height?: number; + thumb_url?: string; + thumb_width?: number; + title?: string; + title_link?: string; + ts?: string; url?: string; - metadata?: AttachmentMetadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -133,105 +133,105 @@ export interface SelectedOptionElement { } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: AccessoryConfirm; - accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + default_to_current_conversation?: boolean; + elements?: Element[]; + emoji?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; verbatim?: boolean; - emoji?: boolean; - elements?: Element[]; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Element { - type?: string; + name?: string; text?: string; + type?: string; url?: string; - name?: string; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -240,173 +240,173 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; - created_by?: string; - date_end?: number; + 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; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - updated?: number; + app_id?: string; + app_name?: string; bot_id?: string; - id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -418,208 +418,208 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; } export interface FileElement { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface AttachmentMetadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface BotProfileIcons { @@ -642,20 +642,20 @@ export interface EventPayload { } export interface Root { - type?: string; - subtype?: string; - text?: string; - ts?: string; - username?: string; - icons?: MessageIcons; bot_id?: string; - thread_ts?: string; + icons?: MessageIcons; + latest_reply?: string; parent_user_id?: string; reply_count?: number; - reply_users_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; 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/response/ChatScheduleMessageResponse.ts b/packages/web-api/src/response/ChatScheduleMessageResponse.ts index dffde9382..750fa9cd6 100644 --- a/packages/web-api/src/response/ChatScheduleMessageResponse.ts +++ b/packages/web-api/src/response/ChatScheduleMessageResponse.ts @@ -10,125 +10,125 @@ import { WebAPICallResult } from '../WebClient'; export type ChatScheduleMessageResponse = WebAPICallResult & { - ok?: boolean; - scheduled_message_id?: string; channel?: string; - post_at?: number; - message?: Message; error?: string; - response_metadata?: ResponseMetadata; + 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?: Block[]; bot_id?: string; - type?: string; - text?: string; - user?: string; - team?: string; bot_profile?: BotProfile; - blocks?: Block[]; - app_id?: string; metadata?: Metadata; + team?: string; + text?: string; + type?: string; + user?: string; } export interface Block { - type?: string; - block_id?: string; - text?: Hint; - elements?: Accessory[]; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: File; fallback?: string; + fields?: Hint[]; + file?: File; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + elements?: Element[]; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; initial_user?: string; initial_users?: string[]; - elements?: Element[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Element { - type?: string; text?: string; + type?: string; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface Option { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface OptionGroup { @@ -137,173 +137,173 @@ export interface OptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -315,57 +315,57 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/ChatScheduledMessagesListResponse.ts b/packages/web-api/src/response/ChatScheduledMessagesListResponse.ts index 15eb98e09..f85c27247 100644 --- a/packages/web-api/src/response/ChatScheduledMessagesListResponse.ts +++ b/packages/web-api/src/response/ChatScheduledMessagesListResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type ChatScheduledMessagesListResponse = WebAPICallResult & { - ok?: boolean; - scheduled_messages?: ScheduledMessage[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + scheduled_messages?: ScheduledMessage[]; }; export interface ResponseMetadata { @@ -23,9 +23,9 @@ export interface ResponseMetadata { } export interface ScheduledMessage { - id?: string; channel_id?: string; - post_at?: number; date_created?: number; + id?: string; + post_at?: number; text?: string; } diff --git a/packages/web-api/src/response/ChatUnfurlResponse.ts b/packages/web-api/src/response/ChatUnfurlResponse.ts index 8d6159b13..3567b6f0a 100644 --- a/packages/web-api/src/response/ChatUnfurlResponse.ts +++ b/packages/web-api/src/response/ChatUnfurlResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ChatUnfurlResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ChatUpdateResponse.ts b/packages/web-api/src/response/ChatUpdateResponse.ts index 02d35c19f..3b5654ac6 100644 --- a/packages/web-api/src/response/ChatUpdateResponse.ts +++ b/packages/web-api/src/response/ChatUpdateResponse.ts @@ -10,131 +10,131 @@ import { WebAPICallResult } from '../WebClient'; export type ChatUpdateResponse = WebAPICallResult & { - ok?: boolean; channel?: string; - ts?: string; - text?: string; - message?: Message; error?: string; + message?: Message; needed?: string; + ok?: boolean; provided?: string; response_metadata?: ResponseMetadata; + text?: string; + ts?: string; }; export interface Message { + app_id?: string; + blocks?: Block[]; bot_id?: string; - type?: string; - text?: string; - user?: string; - team?: string; bot_profile?: BotProfile; - blocks?: Block[]; + display_as_bot?: boolean; edited?: Edited; files?: FileElement[]; + metadata?: Metadata; + team?: string; + text?: string; + type?: string; upload?: boolean; - display_as_bot?: boolean; + user?: string; x_files?: string[]; - app_id?: string; - metadata?: Metadata; } export interface Block { - type?: string; - block_id?: string; - text?: Hint; accessory?: Accessory; - elements?: Accessory[]; - external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - call_id?: string; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; - alt_text?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + elements?: Element[]; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; initial_user?: string; initial_users?: string[]; - elements?: Element[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Element { - type?: string; text?: string; + type?: string; url?: string; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface Option { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface OptionGroup { @@ -143,173 +143,173 @@ export interface OptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -321,57 +321,57 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { @@ -381,131 +381,131 @@ export interface Icons { } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface FileElement { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Metadata { diff --git a/packages/web-api/src/response/ConversationsAcceptSharedInviteResponse.ts b/packages/web-api/src/response/ConversationsAcceptSharedInviteResponse.ts index 9bba2c2bc..9b6b1f300 100644 --- a/packages/web-api/src/response/ConversationsAcceptSharedInviteResponse.ts +++ b/packages/web-api/src/response/ConversationsAcceptSharedInviteResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsAcceptSharedInviteResponse = WebAPICallResult & { - ok?: boolean; + can_open_scdm?: boolean; + channel_id?: string; error?: string; implicit_approval?: boolean; - channel_id?: string; invite_id?: string; - can_open_scdm?: boolean; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsApproveSharedInviteResponse.ts b/packages/web-api/src/response/ConversationsApproveSharedInviteResponse.ts index 6453ddcd5..05a5cb61e 100644 --- a/packages/web-api/src/response/ConversationsApproveSharedInviteResponse.ts +++ b/packages/web-api/src/response/ConversationsApproveSharedInviteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsApproveSharedInviteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsArchiveResponse.ts b/packages/web-api/src/response/ConversationsArchiveResponse.ts index f953d0a7b..d8447886c 100644 --- a/packages/web-api/src/response/ConversationsArchiveResponse.ts +++ b/packages/web-api/src/response/ConversationsArchiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsArchiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsCloseResponse.ts b/packages/web-api/src/response/ConversationsCloseResponse.ts index 5c59c332b..234bf153e 100644 --- a/packages/web-api/src/response/ConversationsCloseResponse.ts +++ b/packages/web-api/src/response/ConversationsCloseResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsCloseResponse = WebAPICallResult & { - ok?: boolean; already_closed?: boolean; - no_op?: boolean; error?: string; needed?: string; + no_op?: boolean; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsCreateResponse.ts b/packages/web-api/src/response/ConversationsCreateResponse.ts index e7c95c9a4..7980e0fd5 100644 --- a/packages/web-api/src/response/ConversationsCreateResponse.ts +++ b/packages/web-api/src/response/ConversationsCreateResponse.ts @@ -10,48 +10,48 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsCreateResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; - error?: string; detail?: string; + error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + created?: number; + creator?: string; id?: string; - name?: string; + internal_team_ids?: string[]; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; previous_names?: string[]; priority?: number; - is_moved?: number; - internal_team_ids?: string[]; - is_open?: boolean; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ConversationsDeclineSharedInviteResponse.ts b/packages/web-api/src/response/ConversationsDeclineSharedInviteResponse.ts index b379729f1..9b6085d7d 100644 --- a/packages/web-api/src/response/ConversationsDeclineSharedInviteResponse.ts +++ b/packages/web-api/src/response/ConversationsDeclineSharedInviteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsDeclineSharedInviteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsHistoryResponse.ts b/packages/web-api/src/response/ConversationsHistoryResponse.ts index 3e50fa9f5..3974c53b4 100644 --- a/packages/web-api/src/response/ConversationsHistoryResponse.ts +++ b/packages/web-api/src/response/ConversationsHistoryResponse.ts @@ -10,136 +10,136 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsHistoryResponse = WebAPICallResult & { - ok?: boolean; - messages?: Message[]; - has_more?: boolean; - pin_count?: number; - channel_actions_ts?: number; channel_actions_count?: number; - response_metadata?: ResponseMetadata; + channel_actions_ts?: number; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; - provided?: string; + ok?: boolean; oldest?: string; + pin_count?: number; + provided?: string; + response_metadata?: ResponseMetadata; }; export interface Message { - type?: string; - subtype?: string; - text?: string; + app_id?: string; + attachments?: Attachment[]; + blocks?: Block[]; bot_id?: string; - ts?: string; - thread_ts?: string; - root?: Root; - username?: string; + bot_profile?: BotProfile; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; icons?: MessageIcons; + latest_reply?: string; + metadata?: MessageMetadata; parent_user_id?: string; + purpose?: string; + reactions?: Reaction[]; reply_count?: number; - reply_users_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; + root?: Root; subscribed?: boolean; - user?: string; + subtype?: string; team?: string; - bot_profile?: BotProfile; - files?: FileElement[]; + text?: string; + thread_ts?: string; + topic?: string; + ts?: string; + type?: string; upload?: boolean; - display_as_bot?: boolean; + user?: string; + username?: string; x_files?: string[]; - edited?: Edited; - blocks?: Block[]; - attachments?: Attachment[]; - topic?: string; - purpose?: string; - client_msg_id?: string; - reactions?: Reaction[]; - app_id?: string; - metadata?: MessageMetadata; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; id?: number; - app_id?: string; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: string; + 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - blocks?: Block[]; - preview?: Preview; - files?: FileElement[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: AttachmentMetadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -148,95 +148,95 @@ export interface SelectedOptionElement { } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: AccessoryConfirm; - accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -245,173 +245,173 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -423,208 +423,208 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; } export interface FileElement { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface AttachmentMetadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: BotProfileIcons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface BotProfileIcons { @@ -634,8 +634,8 @@ export interface BotProfileIcons { } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface MessageIcons { @@ -652,20 +652,20 @@ export interface EventPayload { } export interface Root { - type?: string; - subtype?: string; - text?: string; - ts?: string; - username?: string; - icons?: MessageIcons; bot_id?: string; - thread_ts?: string; + icons?: MessageIcons; + latest_reply?: string; parent_user_id?: string; reply_count?: number; - reply_users_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; 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/response/ConversationsInfoResponse.ts b/packages/web-api/src/response/ConversationsInfoResponse.ts index 2b536fc47..3dfcde686 100644 --- a/packages/web-api/src/response/ConversationsInfoResponse.ts +++ b/packages/web-api/src/response/ConversationsInfoResponse.ts @@ -10,56 +10,56 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsInfoResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + connected_limited_team_ids?: string[]; + connected_team_ids?: string[]; + conversation_host_id?: string; + created?: number; + creator?: string; id?: string; - name?: 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; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: 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; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_read_only?: boolean; + is_shared?: boolean; + is_thread_only?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; - previous_names?: string[]; locale?: string; + name?: string; + name_normalized?: string; num_members?: number; - is_read_only?: boolean; - is_thread_only?: boolean; - is_non_threadable?: boolean; - internal_team_ids?: string[]; - connected_team_ids?: string[]; - conversation_host_id?: string; - is_moved?: number; - is_global_shared?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - connected_limited_team_ids?: string[]; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; + previous_names?: string[]; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ConversationsInviteResponse.ts b/packages/web-api/src/response/ConversationsInviteResponse.ts index 359f6251c..984f48feb 100644 --- a/packages/web-api/src/response/ConversationsInviteResponse.ts +++ b/packages/web-api/src/response/ConversationsInviteResponse.ts @@ -10,46 +10,46 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsInviteResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + created?: number; + creator?: string; id?: string; - name?: string; + internal_team_ids?: string[]; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; previous_names?: string[]; - is_moved?: number; - internal_team_ids?: string[]; - is_open?: boolean; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ConversationsInviteSharedResponse.ts b/packages/web-api/src/response/ConversationsInviteSharedResponse.ts index ca258e0d7..4cc39df66 100644 --- a/packages/web-api/src/response/ConversationsInviteSharedResponse.ts +++ b/packages/web-api/src/response/ConversationsInviteSharedResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsInviteSharedResponse = WebAPICallResult & { - ok?: boolean; + conf_code?: string; error?: string; - url?: string; invite_id?: string; - conf_code?: string; is_legacy_shared_channel?: boolean; needed?: string; + ok?: boolean; provided?: string; + url?: string; }; diff --git a/packages/web-api/src/response/ConversationsJoinResponse.ts b/packages/web-api/src/response/ConversationsJoinResponse.ts index 27c72c297..b5d33f537 100644 --- a/packages/web-api/src/response/ConversationsJoinResponse.ts +++ b/packages/web-api/src/response/ConversationsJoinResponse.ts @@ -10,51 +10,51 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsJoinResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Channel { + created?: number; + creator?: string; id?: string; - name?: string; + internal_team_ids?: string[]; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; - topic?: Purpose; - purpose?: Purpose; - previous_names?: string[]; + 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; - is_moved?: number; - internal_team_ids?: string[]; - is_starred?: boolean; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ConversationsKickResponse.ts b/packages/web-api/src/response/ConversationsKickResponse.ts index d33f0f0b6..f106dac7b 100644 --- a/packages/web-api/src/response/ConversationsKickResponse.ts +++ b/packages/web-api/src/response/ConversationsKickResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsKickResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsLeaveResponse.ts b/packages/web-api/src/response/ConversationsLeaveResponse.ts index 1cfb96f40..aeea0998e 100644 --- a/packages/web-api/src/response/ConversationsLeaveResponse.ts +++ b/packages/web-api/src/response/ConversationsLeaveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsLeaveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsListConnectInvitesResponse.ts b/packages/web-api/src/response/ConversationsListConnectInvitesResponse.ts index 18a258204..ed06e9c40 100644 --- a/packages/web-api/src/response/ConversationsListConnectInvitesResponse.ts +++ b/packages/web-api/src/response/ConversationsListConnectInvitesResponse.ts @@ -10,42 +10,42 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsListConnectInvitesResponse = WebAPICallResult & { - ok?: boolean; - error?: string; arg?: string; + error?: string; invites?: InviteElement[]; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface InviteElement { - direction?: string; - status?: string; + acceptances?: Acceptance[]; + channel?: Channel; date_last_updated?: number; - invite_type?: string; + direction?: string; invite?: InviteInvite; - channel?: Channel; - acceptances?: Acceptance[]; + invite_type?: string; + status?: string; } export interface Acceptance { + accepting_team?: IngTeam; + accepting_user?: TingUser; approval_status?: string; date_accepted?: number; date_invalid?: number; date_last_updated?: number; - accepting_team?: IngTeam; - accepting_user?: TingUser; reviews?: Review[]; } export interface IngTeam { - id?: string; - name?: string; + date_created?: number; + domain?: string; icon?: Icon; + id?: string; is_verified?: boolean; - domain?: string; - date_created?: number; + name?: string; } export interface Icon { @@ -56,41 +56,41 @@ export interface Icon { image_44?: string; image_68?: string; image_88?: string; - image_original?: string; image_default?: boolean; + image_original?: string; } export interface TingUser { id?: string; - team_id?: string; name?: string; - updated?: number; profile?: Profile; + team_id?: string; + updated?: number; } export interface Profile { - real_name?: string; + avatar_hash?: string; display_name?: string; - real_name_normalized?: string; display_name_normalized?: string; - team?: string; - avatar_hash?: string; email?: string; + image_1024?: string; + image_192?: string; image_24?: string; image_32?: string; image_48?: string; - image_72?: string; - image_192?: string; image_512?: string; - image_1024?: string; + image_72?: string; image_original?: string; is_custom_image?: boolean; + real_name?: string; + real_name_normalized?: string; + team?: string; } export interface Review { - type?: string; date_review?: number; reviewing_team?: IngTeam; + type?: string; } export interface Channel { @@ -101,17 +101,17 @@ export interface Channel { } export interface InviteInvite { - id?: string; date_created?: number; date_invalid?: number; + id?: string; inviting_team?: IngTeam; inviting_user?: TingUser; link?: string; - recipient_user_id?: string; recipient_email?: string; + recipient_user_id?: string; } export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; } diff --git a/packages/web-api/src/response/ConversationsListResponse.ts b/packages/web-api/src/response/ConversationsListResponse.ts index b9cc0ed39..3c129fdf2 100644 --- a/packages/web-api/src/response/ConversationsListResponse.ts +++ b/packages/web-api/src/response/ConversationsListResponse.ts @@ -10,55 +10,55 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsListResponse = WebAPICallResult & { - ok?: boolean; channels?: Channel[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface Channel { - id?: string; + conversation_host_id?: string; created?: number; + creator?: string; + id?: string; + internal_team_ids?: string[]; is_archived?: boolean; - is_im?: boolean; - is_org_shared?: boolean; - user?: string; - is_user_deleted?: boolean; - priority?: number; - name?: string; 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_general?: boolean; - unlinked?: number; - name_normalized?: string; is_shared?: boolean; - is_pending_ext_shared?: boolean; + is_user_deleted?: boolean; + name?: string; + name_normalized?: string; + num_members?: number; + pending_connected_team_ids?: string[]; pending_shared?: string[]; - creator?: string; - is_ext_shared?: boolean; + previous_names?: string[]; + priority?: number; + purpose?: Purpose; shared_team_ids?: string[]; - pending_connected_team_ids?: string[]; - is_member?: boolean; topic?: Purpose; - purpose?: Purpose; - previous_names?: string[]; - num_members?: number; - is_moved?: number; - is_global_shared?: boolean; - is_org_default?: boolean; - is_org_mandatory?: boolean; - conversation_host_id?: string; - internal_team_ids?: string[]; + unlinked?: number; + user?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ConversationsMarkResponse.ts b/packages/web-api/src/response/ConversationsMarkResponse.ts index 4403a6032..c5c6cd1cc 100644 --- a/packages/web-api/src/response/ConversationsMarkResponse.ts +++ b/packages/web-api/src/response/ConversationsMarkResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsMarkResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ConversationsMembersResponse.ts b/packages/web-api/src/response/ConversationsMembersResponse.ts index 4d2b2b8ba..0875c232d 100644 --- a/packages/web-api/src/response/ConversationsMembersResponse.ts +++ b/packages/web-api/src/response/ConversationsMembersResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsMembersResponse = WebAPICallResult & { - ok?: boolean; - members?: string[]; - response_metadata?: ResponseMetadata; error?: string; + members?: string[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ConversationsOpenResponse.ts b/packages/web-api/src/response/ConversationsOpenResponse.ts index b3dacd701..90eeb8d3c 100644 --- a/packages/web-api/src/response/ConversationsOpenResponse.ts +++ b/packages/web-api/src/response/ConversationsOpenResponse.ts @@ -10,133 +10,133 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsOpenResponse = WebAPICallResult & { - ok?: boolean; - channel?: Channel; - no_op?: boolean; already_open?: boolean; + channel?: Channel; error?: string; needed?: string; + no_op?: boolean; + ok?: boolean; provided?: string; }; export interface Channel { - id?: string; created?: number; + id?: string; is_archived?: boolean; is_im?: boolean; + is_open?: boolean; is_org_shared?: boolean; - user?: string; last_read?: string; latest?: Latest; + priority?: number; unread_count?: number; unread_count_display?: number; - is_open?: boolean; - priority?: number; + user?: string; } export interface Latest { - type?: string; + blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; + client_msg_id?: string; subtype?: string; + team?: string; text?: string; ts?: string; - bot_id?: string; - blocks?: Block[]; - client_msg_id?: string; + type?: string; user?: string; - team?: string; - bot_profile?: BotProfile; } export interface Block { - type?: string; - block_id?: string; - elements?: Accessory[]; - text?: Hint; accessory?: Accessory; - call_id?: string; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: File; fallback?: string; + fields?: Hint[]; + file?: File; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; + accessibility_label?: string; action_id?: string; - options?: Option[]; - min_query_length?: number; - text?: Hint; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface Option { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface OptionGroup { @@ -145,235 +145,125 @@ export interface OptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface File { - id?: string; + app_id?: string; + app_name?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; + deanimate?: string; + duration_ms?: number; + external_id?: string; + external_type?: string; + external_url?: string; filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; - editable?: boolean; - non_owner_editable?: boolean; - editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + ims?: string[]; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; - size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: string; + mimetype?: string; + mp4?: string; + name?: string; + original_attachment_count?: number; + pretty_type?: string; + preview_plain_text?: string; + subject?: string; + subtype?: string; + thumb_1024_gif?: string; + thumb_1024_h?: string; + thumb_1024_w?: string; thumb_160?: string; thumb_160_gif?: string; - thumb_160_w?: string; thumb_160_h?: string; - thumb_360?: string; + thumb_160_w?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; thumb_480_w?: string; - thumb_480_h?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_w?: string; - thumb_720_h?: string; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: string; - thumb_800_h?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_w?: string; - thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_w?: string; - thumb_pdf_h?: string; + thumb_80_gif?: string; + thumb_80_h?: string; + thumb_80_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; - to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; -} - -export interface Cc { - address?: string; - name?: string; - original?: string; -} - -export interface Headers { - date?: string; - in_reply_to?: string; - reply_to?: string; - message_id?: string; -} - -export interface InitialComment { - id?: string; - created?: number; - timestamp?: number; - user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; -} - -export interface Reaction { - name?: string; - count?: number; - users?: string[]; - url?: string; -} - -export interface Shares { - public?: { [key: string]: Private[] }; - private?: { [key: string]: Private[] }; -} - -export interface Private { - share_user_id?: string; - reply_users?: string[]; - reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; - team_id?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + title?: string; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/ConversationsRenameResponse.ts b/packages/web-api/src/response/ConversationsRenameResponse.ts index a447fcfc8..f27575be2 100644 --- a/packages/web-api/src/response/ConversationsRenameResponse.ts +++ b/packages/web-api/src/response/ConversationsRenameResponse.ts @@ -11,45 +11,45 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsRenameResponse = WebAPICallResult & { channel?: Channel; - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + created?: number; + creator?: string; id?: string; - name?: string; + internal_team_ids?: string[]; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; + is_member?: boolean; + is_moved?: number; + is_mpim?: boolean; + is_open?: boolean; is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; previous_names?: string[]; - is_moved?: number; - internal_team_ids?: string[]; - is_open?: boolean; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ConversationsRepliesResponse.ts b/packages/web-api/src/response/ConversationsRepliesResponse.ts index 0c6b4bc91..d30dce158 100644 --- a/packages/web-api/src/response/ConversationsRepliesResponse.ts +++ b/packages/web-api/src/response/ConversationsRepliesResponse.ts @@ -10,125 +10,125 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsRepliesResponse = WebAPICallResult & { - messages?: Message[]; - has_more?: boolean; - ok?: boolean; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface Message { + app_id?: string; + attachments?: Attachment[]; + blocks?: Block[]; bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; - reply_count?: number; - reply_users_count?: number; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + is_locked?: boolean; + last_read?: string; latest_reply?: string; + parent_user_id?: string; + reply_count?: number; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - parent_user_id?: string; - is_locked?: boolean; - blocks?: Block[]; - attachments?: Attachment[]; - last_read?: string; - files?: FileElement[]; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; upload?: boolean; - display_as_bot?: boolean; - app_id?: string; + user?: string; x_files?: string[]; - edited?: Edited; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; id?: number; - app_id?: string; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - blocks?: Block[]; - preview?: Preview; - files?: FileElement[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -137,95 +137,95 @@ export interface SelectedOptionElement { } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: AccessoryConfirm; - accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -234,173 +234,244 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - 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; - desktop_app_join_url?: string; name?: string; - created_by?: string; - date_end?: number; - channels?: string[]; - is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - id?: string; + app_id?: string; + app_name?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; + deanimate?: string; + duration_ms?: number; + external_id?: string; + external_type?: string; + external_url?: string; filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; - editable?: boolean; - non_owner_editable?: boolean; - editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + ims?: string[]; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; - size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; + mimetype?: string; + mp4?: string; + name?: string; + original_attachment_count?: number; + pretty_type?: string; + preview_plain_text?: string; + subject?: string; + subtype?: 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_gif?: string; + thumb_360_h?: string; + thumb_360_w?: string; + thumb_480?: string; + thumb_480_gif?: string; + thumb_480_w?: string; thumb_64?: string; thumb_64_gif?: string; - thumb_64_w?: string; thumb_64_h?: string; + thumb_64_w?: string; thumb_80?: string; + thumb_800?: string; + thumb_800_gif?: string; thumb_80_gif?: string; - thumb_80_w?: string; thumb_80_h?: string; + thumb_80_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + title?: string; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; +} + +export interface Transcription { + locale?: string; + status?: string; +} + +export interface Field { + short?: boolean; + title?: string; + value?: string; +} + +export interface FileElement { + 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; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_external?: boolean; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -412,208 +483,74 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; -} - -export interface Transcription { - status?: string; - locale?: string; -} - -export interface Field { - title?: string; - value?: string; - short?: boolean; -} - -export interface FileElement { - id?: string; - created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; - editable?: boolean; - non_owner_editable?: boolean; - editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; - hls?: string; - hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; - is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; - size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_w?: string; - thumb_160_h?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_w?: string; - thumb_360_h?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_w?: string; - thumb_480_h?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_w?: string; - thumb_720_h?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_w?: string; - thumb_800_h?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_w?: string; - thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_w?: string; - thumb_pdf_h?: string; - thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; - to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + thread_ts?: string; + ts?: string; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { @@ -623,8 +560,8 @@ export interface Icons { } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ConversationsSetPurposeResponse.ts b/packages/web-api/src/response/ConversationsSetPurposeResponse.ts index 548ea9e03..cbf048cf2 100644 --- a/packages/web-api/src/response/ConversationsSetPurposeResponse.ts +++ b/packages/web-api/src/response/ConversationsSetPurposeResponse.ts @@ -10,43 +10,43 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsSetPurposeResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + created?: number; + creator?: string; id?: string; - name?: string; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; + is_member?: boolean; + is_mpim?: boolean; is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; + 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; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ConversationsSetTopicResponse.ts b/packages/web-api/src/response/ConversationsSetTopicResponse.ts index de3bfa7b0..6178c8323 100644 --- a/packages/web-api/src/response/ConversationsSetTopicResponse.ts +++ b/packages/web-api/src/response/ConversationsSetTopicResponse.ts @@ -10,43 +10,43 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsSetTopicResponse = WebAPICallResult & { - ok?: boolean; channel?: Channel; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Channel { + created?: number; + creator?: string; id?: string; - name?: string; + is_archived?: boolean; is_channel?: boolean; + is_ext_shared?: boolean; + is_general?: boolean; is_group?: boolean; is_im?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; + is_member?: boolean; + is_mpim?: boolean; is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; is_pending_ext_shared?: boolean; - is_member?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; + 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; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } diff --git a/packages/web-api/src/response/ConversationsUnarchiveResponse.ts b/packages/web-api/src/response/ConversationsUnarchiveResponse.ts index 9652dc3e1..71bb24aff 100644 --- a/packages/web-api/src/response/ConversationsUnarchiveResponse.ts +++ b/packages/web-api/src/response/ConversationsUnarchiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ConversationsUnarchiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/DialogOpenResponse.ts b/packages/web-api/src/response/DialogOpenResponse.ts index a485dd32d..7c2f9ac0f 100644 --- a/packages/web-api/src/response/DialogOpenResponse.ts +++ b/packages/web-api/src/response/DialogOpenResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type DialogOpenResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/DndEndDndResponse.ts b/packages/web-api/src/response/DndEndDndResponse.ts index 80096fb6e..a3e904f6a 100644 --- a/packages/web-api/src/response/DndEndDndResponse.ts +++ b/packages/web-api/src/response/DndEndDndResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type DndEndDndResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/DndEndSnoozeResponse.ts b/packages/web-api/src/response/DndEndSnoozeResponse.ts index 1024f2b37..7b8c97026 100644 --- a/packages/web-api/src/response/DndEndSnoozeResponse.ts +++ b/packages/web-api/src/response/DndEndSnoozeResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type DndEndSnoozeResponse = WebAPICallResult & { - ok?: boolean; - error?: string; dnd_enabled?: boolean; - next_dnd_start_ts?: number; - next_dnd_end_ts?: number; - snooze_enabled?: boolean; + error?: string; needed?: string; + next_dnd_end_ts?: number; + next_dnd_start_ts?: number; + ok?: boolean; provided?: string; + snooze_enabled?: boolean; }; diff --git a/packages/web-api/src/response/DndInfoResponse.ts b/packages/web-api/src/response/DndInfoResponse.ts index d43bf66d0..e2deaa4fa 100644 --- a/packages/web-api/src/response/DndInfoResponse.ts +++ b/packages/web-api/src/response/DndInfoResponse.ts @@ -10,11 +10,11 @@ import { WebAPICallResult } from '../WebClient'; export type DndInfoResponse = WebAPICallResult & { - ok?: boolean; dnd_enabled?: boolean; - next_dnd_start_ts?: number; - next_dnd_end_ts?: number; error?: string; needed?: string; + next_dnd_end_ts?: number; + next_dnd_start_ts?: number; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/DndSetSnoozeResponse.ts b/packages/web-api/src/response/DndSetSnoozeResponse.ts index 6a848e3f9..5aaf2f641 100644 --- a/packages/web-api/src/response/DndSetSnoozeResponse.ts +++ b/packages/web-api/src/response/DndSetSnoozeResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type DndSetSnoozeResponse = WebAPICallResult & { - ok?: boolean; error?: string; + needed?: string; + ok?: boolean; + provided?: string; snooze_enabled?: boolean; snooze_endtime?: number; - snooze_remaining?: number; snooze_is_indefinite?: boolean; - needed?: string; - provided?: string; + snooze_remaining?: number; }; diff --git a/packages/web-api/src/response/DndTeamInfoResponse.ts b/packages/web-api/src/response/DndTeamInfoResponse.ts index 4d0781271..ac115a079 100644 --- a/packages/web-api/src/response/DndTeamInfoResponse.ts +++ b/packages/web-api/src/response/DndTeamInfoResponse.ts @@ -10,15 +10,15 @@ import { WebAPICallResult } from '../WebClient'; export type DndTeamInfoResponse = WebAPICallResult & { - ok?: boolean; - users?: { [key: string]: User }; error?: string; needed?: string; + ok?: boolean; provided?: string; + users?: { [key: string]: User }; }; export interface User { dnd_enabled?: boolean; - next_dnd_start_ts?: number; next_dnd_end_ts?: number; + next_dnd_start_ts?: number; } diff --git a/packages/web-api/src/response/EmojiListResponse.ts b/packages/web-api/src/response/EmojiListResponse.ts index 21b643f08..ee63f6708 100644 --- a/packages/web-api/src/response/EmojiListResponse.ts +++ b/packages/web-api/src/response/EmojiListResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type EmojiListResponse = WebAPICallResult & { - ok?: boolean; - emoji?: { [key: string]: string }; cache_ts?: string; + emoji?: { [key: string]: string }; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/FilesCommentsAddResponse.ts b/packages/web-api/src/response/FilesCommentsAddResponse.ts index 4682e58bb..7080c7ad6 100644 --- a/packages/web-api/src/response/FilesCommentsAddResponse.ts +++ b/packages/web-api/src/response/FilesCommentsAddResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type FilesCommentsAddResponse = WebAPICallResult & { - ok?: boolean; error?: string; - req_method?: string; needed?: string; + ok?: boolean; provided?: string; + req_method?: string; }; diff --git a/packages/web-api/src/response/FilesCommentsDeleteResponse.ts b/packages/web-api/src/response/FilesCommentsDeleteResponse.ts index 76e4b932a..2ce420585 100644 --- a/packages/web-api/src/response/FilesCommentsDeleteResponse.ts +++ b/packages/web-api/src/response/FilesCommentsDeleteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type FilesCommentsDeleteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/FilesCommentsEditResponse.ts b/packages/web-api/src/response/FilesCommentsEditResponse.ts index efba2abf2..2c65ffa86 100644 --- a/packages/web-api/src/response/FilesCommentsEditResponse.ts +++ b/packages/web-api/src/response/FilesCommentsEditResponse.ts @@ -10,18 +10,18 @@ import { WebAPICallResult } from '../WebClient'; export type FilesCommentsEditResponse = WebAPICallResult & { - ok?: boolean; comment?: Comment; error?: string; needed?: string; + ok?: boolean; provided?: string; }; export interface Comment { - id?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - is_intro?: boolean; - comment?: string; } diff --git a/packages/web-api/src/response/FilesDeleteResponse.ts b/packages/web-api/src/response/FilesDeleteResponse.ts index e7f0afb80..c6dafce66 100644 --- a/packages/web-api/src/response/FilesDeleteResponse.ts +++ b/packages/web-api/src/response/FilesDeleteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type FilesDeleteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/FilesInfoResponse.ts b/packages/web-api/src/response/FilesInfoResponse.ts index 3d1050732..a44536fd2 100644 --- a/packages/web-api/src/response/FilesInfoResponse.ts +++ b/packages/web-api/src/response/FilesInfoResponse.ts @@ -10,150 +10,150 @@ import { WebAPICallResult } from '../WebClient'; export type FilesInfoResponse = WebAPICallResult & { - ok?: boolean; - file?: File; + comments?: Comment[]; content?: string; - is_truncated?: boolean; - content_highlight_html?: string; content_highlight_css?: string; - comments?: Comment[]; - paging?: Paging; + content_highlight_html?: string; error?: string; + file?: File; + is_truncated?: boolean; needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Comment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: Comment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -165,42 +165,42 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/FilesListResponse.ts b/packages/web-api/src/response/FilesListResponse.ts index 9bf34e829..d52231df3 100644 --- a/packages/web-api/src/response/FilesListResponse.ts +++ b/packages/web-api/src/response/FilesListResponse.ts @@ -10,135 +10,135 @@ import { WebAPICallResult } from '../WebClient'; export type FilesListResponse = WebAPICallResult & { - ok?: boolean; - files?: File[]; - paging?: Paging; error?: string; + files?: File[]; needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - size?: number; - mode?: string; - is_external?: boolean; + editor?: string; + external_id?: string; external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; + hls?: string; + hls_embed?: string; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; + is_external?: boolean; is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - username?: string; - url_private?: string; - url_private_download?: string; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: string; + name?: string; + non_owner_editable?: boolean; + num_stars?: number; + original_attachment_count?: number; + original_h?: number; + original_w?: number; permalink?: string; permalink_public?: string; - edit_link?: string; + pinned_to?: string[]; + pjpeg?: string; + plain_text?: string; + pretty_type?: string; preview?: string; preview_highlight?: string; - lines?: number; - lines_more?: number; preview_is_truncated?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - comments_count?: number; - media_display_type?: string; - thumb_64?: string; - thumb_80?: string; + preview_plain_text?: string; + public_url_shared?: boolean; + reactions?: Reaction[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + subject?: string; + subtype?: string; + thumb_1024?: string; + thumb_1024_gif?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; + thumb_160_gif?: string; + thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; - thumb_360_w?: number; + thumb_360_gif?: string; thumb_360_h?: number; - thumb_160?: string; - original_w?: number; - original_h?: number; - thumb_tiny?: string; + thumb_360_w?: number; thumb_480?: string; - thumb_480_w?: number; + thumb_480_gif?: string; thumb_480_h?: number; + thumb_480_w?: number; + thumb_64?: string; + thumb_64_gif?: string; + thumb_64_h?: string; + thumb_64_w?: string; thumb_720?: string; - thumb_720_w?: number; + thumb_720_gif?: string; thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; thumb_800?: string; - thumb_800_w?: number; + thumb_800_gif?: string; thumb_800_h?: number; - thumb_960?: string; - thumb_960_w?: number; - thumb_960_h?: number; - thumb_1024?: string; - thumb_1024_w?: number; - thumb_1024_h?: number; - thumb_360_gif?: string; - thumb_480_gif?: string; - deanimate?: string; - deanimate_gif?: string; - subject?: string; - non_owner_editable?: boolean; - editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; - hls?: string; - hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; - external_id?: string; - external_url?: string; - app_id?: string; - app_name?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; + thumb_800_w?: number; thumb_80_gif?: string; - thumb_80_w?: string; thumb_80_h?: string; - thumb_160_gif?: string; - thumb_160_w?: string; - thumb_160_h?: string; - thumb_720_gif?: string; - thumb_800_gif?: string; + thumb_80_w?: string; + thumb_960?: string; thumb_960_gif?: string; - thumb_1024_gif?: string; - thumb_video?: string; + thumb_960_h?: number; + thumb_960_w?: number; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; - converted_pdf?: string; - image_exif_rotation?: number; - pjpeg?: string; - has_rich_preview?: boolean; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - shares?: Shares; + thumb_pdf_w?: string; + thumb_tiny?: string; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -150,52 +150,52 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/FilesRemoteAddResponse.ts b/packages/web-api/src/response/FilesRemoteAddResponse.ts index 39baca502..6d3681ff6 100644 --- a/packages/web-api/src/response/FilesRemoteAddResponse.ts +++ b/packages/web-api/src/response/FilesRemoteAddResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRemoteAddResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/FilesRemoteInfoResponse.ts b/packages/web-api/src/response/FilesRemoteInfoResponse.ts index 334d434e9..37567e222 100644 --- a/packages/web-api/src/response/FilesRemoteInfoResponse.ts +++ b/packages/web-api/src/response/FilesRemoteInfoResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRemoteInfoResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/FilesRemoteListResponse.ts b/packages/web-api/src/response/FilesRemoteListResponse.ts index 2fa4756c6..34c710bbc 100644 --- a/packages/web-api/src/response/FilesRemoteListResponse.ts +++ b/packages/web-api/src/response/FilesRemoteListResponse.ts @@ -10,135 +10,135 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRemoteListResponse = WebAPICallResult & { - ok?: boolean; - files?: File[]; - response_metadata?: ResponseMetadata; error?: string; + files?: File[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -150,47 +150,47 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/FilesRemoteRemoveResponse.ts b/packages/web-api/src/response/FilesRemoteRemoveResponse.ts index 8756a97bf..eeca52c23 100644 --- a/packages/web-api/src/response/FilesRemoteRemoveResponse.ts +++ b/packages/web-api/src/response/FilesRemoteRemoveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRemoteRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/FilesRemoteShareResponse.ts b/packages/web-api/src/response/FilesRemoteShareResponse.ts index c0d1cea50..70c16fdc6 100644 --- a/packages/web-api/src/response/FilesRemoteShareResponse.ts +++ b/packages/web-api/src/response/FilesRemoteShareResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRemoteShareResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/FilesRemoteUpdateResponse.ts b/packages/web-api/src/response/FilesRemoteUpdateResponse.ts index b3490e6e6..350e2d133 100644 --- a/packages/web-api/src/response/FilesRemoteUpdateResponse.ts +++ b/packages/web-api/src/response/FilesRemoteUpdateResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRemoteUpdateResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/FilesRevokePublicURLResponse.ts b/packages/web-api/src/response/FilesRevokePublicURLResponse.ts index 267a92ed2..8355d70aa 100644 --- a/packages/web-api/src/response/FilesRevokePublicURLResponse.ts +++ b/packages/web-api/src/response/FilesRevokePublicURLResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesRevokePublicURLResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/FilesSharedPublicURLResponse.ts b/packages/web-api/src/response/FilesSharedPublicURLResponse.ts index aaa02ff73..660762a1f 100644 --- a/packages/web-api/src/response/FilesSharedPublicURLResponse.ts +++ b/packages/web-api/src/response/FilesSharedPublicURLResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesSharedPublicURLResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/FilesUploadResponse.ts b/packages/web-api/src/response/FilesUploadResponse.ts index 43fbd3b6b..91bca8e4a 100644 --- a/packages/web-api/src/response/FilesUploadResponse.ts +++ b/packages/web-api/src/response/FilesUploadResponse.ts @@ -10,134 +10,134 @@ import { WebAPICallResult } from '../WebClient'; export type FilesUploadResponse = WebAPICallResult & { - ok?: boolean; - file?: File; error?: string; + file?: File; needed?: string; + ok?: boolean; provided?: string; }; export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -149,45 +149,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/GroupsArchiveResponse.ts b/packages/web-api/src/response/GroupsArchiveResponse.ts index d075f38e5..d121bd2a8 100644 --- a/packages/web-api/src/response/GroupsArchiveResponse.ts +++ b/packages/web-api/src/response/GroupsArchiveResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsArchiveResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsCloseResponse.ts b/packages/web-api/src/response/GroupsCloseResponse.ts index eb5b5acb6..1a4e611e0 100644 --- a/packages/web-api/src/response/GroupsCloseResponse.ts +++ b/packages/web-api/src/response/GroupsCloseResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsCloseResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/GroupsCreateChildResponse.ts b/packages/web-api/src/response/GroupsCreateChildResponse.ts index 4028a170b..f1091f280 100644 --- a/packages/web-api/src/response/GroupsCreateChildResponse.ts +++ b/packages/web-api/src/response/GroupsCreateChildResponse.ts @@ -10,47 +10,47 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsCreateChildResponse = WebAPICallResult & { - ok?: boolean; - group?: Group; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + group?: Group; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + is_group?: boolean; is_mpim?: boolean; - parent_group?: string; is_open?: boolean; last_read?: string; latest?: Latest; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; + name?: string; + name_normalized?: string; + parent_group?: string; purpose?: Purpose; + topic?: Purpose; + unread_count?: number; + unread_count_display?: number; } export interface Latest { - type?: string; subtype?: string; + text?: string; ts?: string; + type?: string; user?: string; - text?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsCreateResponse.ts b/packages/web-api/src/response/GroupsCreateResponse.ts index 244d9a9c9..7edd86fcf 100644 --- a/packages/web-api/src/response/GroupsCreateResponse.ts +++ b/packages/web-api/src/response/GroupsCreateResponse.ts @@ -10,38 +10,38 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsCreateResponse = WebAPICallResult & { - ok?: boolean; - group?: Group; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + group?: Group; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + 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; - topic?: Purpose; - purpose?: Purpose; - priority?: number; - members?: string[]; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsHistoryResponse.ts b/packages/web-api/src/response/GroupsHistoryResponse.ts index 17c944027..0e12a8161 100644 --- a/packages/web-api/src/response/GroupsHistoryResponse.ts +++ b/packages/web-api/src/response/GroupsHistoryResponse.ts @@ -10,23 +10,23 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsHistoryResponse = WebAPICallResult & { - ok?: boolean; - messages?: Message[]; - has_more?: boolean; channel_actions_count?: number; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { - type?: string; subtype?: string; + text?: string; ts?: string; + type?: string; user?: string; - text?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsInfoResponse.ts b/packages/web-api/src/response/GroupsInfoResponse.ts index ca969ed04..75e2828a5 100644 --- a/packages/web-api/src/response/GroupsInfoResponse.ts +++ b/packages/web-api/src/response/GroupsInfoResponse.ts @@ -10,46 +10,46 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsInfoResponse = WebAPICallResult & { - ok?: boolean; - group?: Group; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + group?: Group; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + is_group?: boolean; is_mpim?: boolean; is_open?: boolean; last_read?: string; latest?: Latest; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; + name?: string; + name_normalized?: string; purpose?: Purpose; + topic?: Purpose; + unread_count?: number; + unread_count_display?: number; } export interface Latest { - type?: string; subtype?: string; + text?: string; ts?: string; + type?: string; user?: string; - text?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsInviteResponse.ts b/packages/web-api/src/response/GroupsInviteResponse.ts index 9af1c9c9e..e88ff9af5 100644 --- a/packages/web-api/src/response/GroupsInviteResponse.ts +++ b/packages/web-api/src/response/GroupsInviteResponse.ts @@ -10,47 +10,47 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsInviteResponse = WebAPICallResult & { - ok?: boolean; - group?: Group; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + group?: Group; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + 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; - topic?: Purpose; - purpose?: Purpose; - priority?: number; } export interface Latest { - type?: string; subtype?: string; - ts?: string; - user?: string; text?: string; topic?: string; + ts?: string; + type?: string; + user?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsKickResponse.ts b/packages/web-api/src/response/GroupsKickResponse.ts index d1c3941db..06a9e045e 100644 --- a/packages/web-api/src/response/GroupsKickResponse.ts +++ b/packages/web-api/src/response/GroupsKickResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsKickResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsLeaveResponse.ts b/packages/web-api/src/response/GroupsLeaveResponse.ts index 9c424b3e9..b006b1bfa 100644 --- a/packages/web-api/src/response/GroupsLeaveResponse.ts +++ b/packages/web-api/src/response/GroupsLeaveResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsLeaveResponse = WebAPICallResult & { - ok?: boolean; error?: string; - warning?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsListResponse.ts b/packages/web-api/src/response/GroupsListResponse.ts index 5363e56a4..c62442e9f 100644 --- a/packages/web-api/src/response/GroupsListResponse.ts +++ b/packages/web-api/src/response/GroupsListResponse.ts @@ -10,37 +10,37 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsListResponse = WebAPICallResult & { - ok?: boolean; - groups?: Group[]; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + groups?: Group[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + is_group?: boolean; is_mpim?: boolean; - members?: string[]; - topic?: Purpose; - purpose?: Purpose; - priority?: number; is_open?: boolean; last_read?: string; + members?: string[]; + name?: string; + name_normalized?: string; parent_group?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsMarkResponse.ts b/packages/web-api/src/response/GroupsMarkResponse.ts index 1f9c49327..c3b6045bf 100644 --- a/packages/web-api/src/response/GroupsMarkResponse.ts +++ b/packages/web-api/src/response/GroupsMarkResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsMarkResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsOpenResponse.ts b/packages/web-api/src/response/GroupsOpenResponse.ts index 85903cd21..e25c4ae53 100644 --- a/packages/web-api/src/response/GroupsOpenResponse.ts +++ b/packages/web-api/src/response/GroupsOpenResponse.ts @@ -10,14 +10,14 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsOpenResponse = WebAPICallResult & { - ok?: boolean; - no_op?: boolean; already_open?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + no_op?: boolean; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsRenameResponse.ts b/packages/web-api/src/response/GroupsRenameResponse.ts index ba244e132..f052a8437 100644 --- a/packages/web-api/src/response/GroupsRenameResponse.ts +++ b/packages/web-api/src/response/GroupsRenameResponse.ts @@ -11,32 +11,32 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsRenameResponse = WebAPICallResult & { channel?: Channel; - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Channel { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + is_group?: boolean; is_mpim?: boolean; members?: string[]; - topic?: Purpose; + name?: string; + name_normalized?: string; purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsRepliesResponse.ts b/packages/web-api/src/response/GroupsRepliesResponse.ts index 344847f21..59c2f37cc 100644 --- a/packages/web-api/src/response/GroupsRepliesResponse.ts +++ b/packages/web-api/src/response/GroupsRepliesResponse.ts @@ -10,42 +10,42 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsRepliesResponse = WebAPICallResult & { - messages?: Message[]; - has_more?: boolean; - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; - reply_count?: number; - reply_users_count?: number; + last_read?: string; latest_reply?: string; + parent_user_id?: string; + reply_count?: number; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - last_read?: string; - parent_user_id?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/GroupsSetPurposeResponse.ts b/packages/web-api/src/response/GroupsSetPurposeResponse.ts index 9cf0e4338..fdb13929f 100644 --- a/packages/web-api/src/response/GroupsSetPurposeResponse.ts +++ b/packages/web-api/src/response/GroupsSetPurposeResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsSetPurposeResponse = WebAPICallResult & { - ok?: boolean; - purpose?: string; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + purpose?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsSetTopicResponse.ts b/packages/web-api/src/response/GroupsSetTopicResponse.ts index 6fb5cba5f..1323602e7 100644 --- a/packages/web-api/src/response/GroupsSetTopicResponse.ts +++ b/packages/web-api/src/response/GroupsSetTopicResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsSetTopicResponse = WebAPICallResult & { - topic?: string; - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + topic?: string; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/GroupsUnarchiveResponse.ts b/packages/web-api/src/response/GroupsUnarchiveResponse.ts index 29119117b..440863bb2 100644 --- a/packages/web-api/src/response/GroupsUnarchiveResponse.ts +++ b/packages/web-api/src/response/GroupsUnarchiveResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type GroupsUnarchiveResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ImCloseResponse.ts b/packages/web-api/src/response/ImCloseResponse.ts index 5ce9bcb88..ba8719517 100644 --- a/packages/web-api/src/response/ImCloseResponse.ts +++ b/packages/web-api/src/response/ImCloseResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type ImCloseResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ImHistoryResponse.ts b/packages/web-api/src/response/ImHistoryResponse.ts index 2a66579a8..93ff17b50 100644 --- a/packages/web-api/src/response/ImHistoryResponse.ts +++ b/packages/web-api/src/response/ImHistoryResponse.ts @@ -10,124 +10,124 @@ import { WebAPICallResult } from '../WebClient'; export type ImHistoryResponse = WebAPICallResult & { - ok?: boolean; - messages?: Message[]; - has_more?: boolean; channel_actions_count?: number; - warning?: string; - response_metadata?: ResponseMetadata; 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; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; + client_msg_id?: string; + last_read?: string; + latest_reply?: string; parent_user_id?: string; reply_count?: number; - reply_users_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - last_read?: string; - client_msg_id?: string; - blocks?: Block[]; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface Block { - type?: string; - elements?: Element[]; + 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; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Text; text?: Text; - fields?: Text[]; - accessory?: Accessory; + title?: Text; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; alt_text?: string; fallback?: string; - image_width?: number; - image_height?: number; image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + type?: string; } export interface Element { - type?: string; - text?: Text; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - placeholder?: Text; - initial_channel?: string; - response_url_enabled?: boolean; - initial_conversation?: string; default_to_current_conversation?: boolean; + fallback?: string; filter?: Filter; - initial_date?: string; - initial_option?: InitialOption; - min_query_length?: number; + image_bytes?: number; + image_height?: number; image_url?: string; - alt_text?: string; - fallback?: string; image_width?: number; - image_height?: number; - image_bytes?: 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 { - title?: Text; - text?: Text; confirm?: Text; deny?: Text; style?: string; + text?: Text; + title?: Text; } export interface Text { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; } export interface InitialOption { - text?: Text; - value?: string; description?: Text; + text?: Text; url?: string; + value?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/ImListResponse.ts b/packages/web-api/src/response/ImListResponse.ts index c078f5ba2..f6ee5cd51 100644 --- a/packages/web-api/src/response/ImListResponse.ts +++ b/packages/web-api/src/response/ImListResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type ImListResponse = WebAPICallResult & { - ok?: boolean; - ims?: Im[]; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + ims?: Im[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Im { - id?: string; created?: number; + id?: string; is_archived?: boolean; is_im?: boolean; is_org_shared?: boolean; - user?: string; is_user_deleted?: boolean; priority?: number; + user?: string; } export interface ResponseMetadata { - next_cursor?: string; messages?: string[]; + next_cursor?: string; warnings?: string[]; } diff --git a/packages/web-api/src/response/ImMarkResponse.ts b/packages/web-api/src/response/ImMarkResponse.ts index d4723471f..8e7f8605f 100644 --- a/packages/web-api/src/response/ImMarkResponse.ts +++ b/packages/web-api/src/response/ImMarkResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type ImMarkResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/ImOpenResponse.ts b/packages/web-api/src/response/ImOpenResponse.ts index 1153e3fa7..04ed62df1 100644 --- a/packages/web-api/src/response/ImOpenResponse.ts +++ b/packages/web-api/src/response/ImOpenResponse.ts @@ -10,15 +10,15 @@ import { WebAPICallResult } from '../WebClient'; export type ImOpenResponse = WebAPICallResult & { - ok?: boolean; - channel?: Channel; - warning?: string; - response_metadata?: ResponseMetadata; - no_op?: boolean; already_open?: boolean; + channel?: Channel; error?: string; needed?: string; + no_op?: boolean; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Channel { diff --git a/packages/web-api/src/response/ImRepliesResponse.ts b/packages/web-api/src/response/ImRepliesResponse.ts index b70010e53..84b616830 100644 --- a/packages/web-api/src/response/ImRepliesResponse.ts +++ b/packages/web-api/src/response/ImRepliesResponse.ts @@ -10,42 +10,42 @@ import { WebAPICallResult } from '../WebClient'; export type ImRepliesResponse = WebAPICallResult & { - messages?: Message[]; - has_more?: boolean; - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; - reply_count?: number; - reply_users_count?: number; + last_read?: string; latest_reply?: string; + parent_user_id?: string; + reply_count?: number; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - last_read?: string; - parent_user_id?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/MigrationExchangeResponse.ts b/packages/web-api/src/response/MigrationExchangeResponse.ts index b1b678a85..46956816c 100644 --- a/packages/web-api/src/response/MigrationExchangeResponse.ts +++ b/packages/web-api/src/response/MigrationExchangeResponse.ts @@ -10,15 +10,15 @@ import { WebAPICallResult } from '../WebClient'; export type MigrationExchangeResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; + enterprise_id?: string; error?: string; + invalid_user_ids?: string[]; needed?: string; + ok?: boolean; provided?: string; team_id?: string; - enterprise_id?: string; - invalid_user_ids?: string[]; user_id_map?: UseridMap; + warning?: string; }; export interface UseridMap { diff --git a/packages/web-api/src/response/MpimCloseResponse.ts b/packages/web-api/src/response/MpimCloseResponse.ts index 49234515e..45816feb3 100644 --- a/packages/web-api/src/response/MpimCloseResponse.ts +++ b/packages/web-api/src/response/MpimCloseResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type MpimCloseResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/MpimHistoryResponse.ts b/packages/web-api/src/response/MpimHistoryResponse.ts index 0ffd48274..24805a463 100644 --- a/packages/web-api/src/response/MpimHistoryResponse.ts +++ b/packages/web-api/src/response/MpimHistoryResponse.ts @@ -10,44 +10,44 @@ import { WebAPICallResult } from '../WebClient'; export type MpimHistoryResponse = WebAPICallResult & { - ok?: boolean; - messages?: Message[]; - has_more?: boolean; channel_actions_count?: number; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; + is_starred?: boolean; + last_read?: string; + latest_reply?: string; parent_user_id?: string; reply_count?: number; - reply_users_count?: number; - latest_reply?: string; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - last_read?: string; - is_starred?: boolean; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/MpimListResponse.ts b/packages/web-api/src/response/MpimListResponse.ts index c1ff53919..a46256bca 100644 --- a/packages/web-api/src/response/MpimListResponse.ts +++ b/packages/web-api/src/response/MpimListResponse.ts @@ -10,36 +10,36 @@ import { WebAPICallResult } from '../WebClient'; export type MpimListResponse = WebAPICallResult & { - ok?: boolean; - groups?: Group[]; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + groups?: Group[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + is_group?: boolean; is_mpim?: boolean; - members?: string[]; - topic?: Purpose; - purpose?: Purpose; - priority?: number; is_open?: boolean; last_read?: string; + members?: string[]; + name?: string; + name_normalized?: string; + priority?: number; + purpose?: Purpose; + topic?: Purpose; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/MpimMarkResponse.ts b/packages/web-api/src/response/MpimMarkResponse.ts index a755b4dac..8af92659b 100644 --- a/packages/web-api/src/response/MpimMarkResponse.ts +++ b/packages/web-api/src/response/MpimMarkResponse.ts @@ -10,12 +10,12 @@ import { WebAPICallResult } from '../WebClient'; export type MpimMarkResponse = WebAPICallResult & { - ok?: boolean; error?: string; - warning?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface ResponseMetadata { diff --git a/packages/web-api/src/response/MpimOpenResponse.ts b/packages/web-api/src/response/MpimOpenResponse.ts index 65c312d71..b11f740e3 100644 --- a/packages/web-api/src/response/MpimOpenResponse.ts +++ b/packages/web-api/src/response/MpimOpenResponse.ts @@ -10,55 +10,55 @@ import { WebAPICallResult } from '../WebClient'; export type MpimOpenResponse = WebAPICallResult & { - ok?: boolean; - group?: Group; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + group?: Group; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Group { - id?: string; - name?: string; - is_group?: boolean; created?: number; creator?: string; + id?: string; is_archived?: boolean; - name_normalized?: string; + is_group?: boolean; is_mpim?: boolean; is_open?: boolean; last_read?: string; latest?: Latest; - unread_count?: number; - unread_count_display?: number; members?: string[]; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; priority?: number; + purpose?: Purpose; + topic?: Purpose; + unread_count?: number; + unread_count_display?: number; } export interface Latest { bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; parent_user_id?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { @@ -68,9 +68,9 @@ export interface Icons { } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/MpimRepliesResponse.ts b/packages/web-api/src/response/MpimRepliesResponse.ts index 5c83151fd..8efb111c4 100644 --- a/packages/web-api/src/response/MpimRepliesResponse.ts +++ b/packages/web-api/src/response/MpimRepliesResponse.ts @@ -10,42 +10,42 @@ import { WebAPICallResult } from '../WebClient'; export type MpimRepliesResponse = WebAPICallResult & { - messages?: Message[]; - has_more?: boolean; - ok?: boolean; - warning?: string; - response_metadata?: ResponseMetadata; error?: string; + has_more?: boolean; + messages?: Message[]; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; + warning?: string; }; export interface Message { bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - thread_ts?: string; - reply_count?: number; - reply_users_count?: number; + last_read?: string; latest_reply?: string; + parent_user_id?: string; + reply_count?: number; reply_users?: string[]; + reply_users_count?: number; subscribed?: boolean; - last_read?: string; - parent_user_id?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; + user?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/OauthAccessResponse.ts b/packages/web-api/src/response/OauthAccessResponse.ts index c4fc84ff9..3cede3d77 100644 --- a/packages/web-api/src/response/OauthAccessResponse.ts +++ b/packages/web-api/src/response/OauthAccessResponse.ts @@ -10,48 +10,48 @@ import { WebAPICallResult } from '../WebClient'; export type OauthAccessResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; + access_token?: string; + authorizing_user?: User; + bot?: Bot; + enterprise_id?: string; error?: string; + incoming_webhook?: IncomingWebhook; + installer_user?: User; needed?: string; + ok?: boolean; provided?: string; - token_type?: string; - access_token?: string; scope?: string; - enterprise_id?: string; - team_name?: string; + scopes?: Scopes; team_id?: string; + team_name?: string; + token_type?: string; user_id?: string; - incoming_webhook?: IncomingWebhook; - bot?: Bot; - authorizing_user?: User; - installer_user?: User; - scopes?: Scopes; + warning?: string; }; export interface User { - user_id?: string; app_home?: string; + user_id?: string; } export interface Bot { - bot_user_id?: string; bot_access_token?: string; + bot_user_id?: string; } export interface IncomingWebhook { - url?: string; channel?: string; channel_id?: string; configuration_url?: string; + url?: string; } export interface Scopes { app_home?: string[]; - team?: string[]; channel?: string[]; group?: string[]; - mpim?: string[]; im?: string[]; + mpim?: string[]; + team?: string[]; user?: string[]; } diff --git a/packages/web-api/src/response/OauthTokenResponse.ts b/packages/web-api/src/response/OauthTokenResponse.ts index 661f352ff..b5f6d5f7d 100644 --- a/packages/web-api/src/response/OauthTokenResponse.ts +++ b/packages/web-api/src/response/OauthTokenResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type OauthTokenResponse = WebAPICallResult & { - ok?: boolean; error?: string; - req_method?: string; needed?: string; + ok?: boolean; provided?: string; + req_method?: string; }; diff --git a/packages/web-api/src/response/OauthV2AccessResponse.ts b/packages/web-api/src/response/OauthV2AccessResponse.ts index 7afbc4db8..da13ee7e1 100644 --- a/packages/web-api/src/response/OauthV2AccessResponse.ts +++ b/packages/web-api/src/response/OauthV2AccessResponse.ts @@ -10,32 +10,32 @@ import { WebAPICallResult } from '../WebClient'; export type OauthV2AccessResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - error?: string; - needed?: string; - provided?: string; + access_token?: string; app_id?: string; authed_user?: AuthedUser; - scope?: string; - token_type?: string; - access_token?: string; - refresh_token?: string; - expires_in?: number; bot_user_id?: string; - team?: Enterprise; enterprise?: Enterprise; - is_enterprise_install?: boolean; + 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; }; export interface AuthedUser { + access_token?: string; + expires_in?: number; id?: string; + refresh_token?: string; scope?: string; token_type?: string; - access_token?: string; - refresh_token?: string; - expires_in?: number; } export interface Enterprise { @@ -44,8 +44,8 @@ export interface Enterprise { } export interface IncomingWebhook { - url?: string; channel?: string; channel_id?: string; configuration_url?: string; + url?: string; } diff --git a/packages/web-api/src/response/OauthV2ExchangeResponse.ts b/packages/web-api/src/response/OauthV2ExchangeResponse.ts index 5e343433b..b793ce79c 100644 --- a/packages/web-api/src/response/OauthV2ExchangeResponse.ts +++ b/packages/web-api/src/response/OauthV2ExchangeResponse.ts @@ -10,33 +10,33 @@ import { WebAPICallResult } from '../WebClient'; export type OauthV2ExchangeResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - error?: string; - needed?: string; - provided?: string; + access_token?: string; app_id?: string; authed_user?: AuthedUser; - scope?: string; - token_type?: string; - access_token?: string; - refresh_token?: string; - expires_in?: number; bot_user_id?: string; - team?: Enterprise; enterprise?: Enterprise; - is_enterprise_install?: boolean; + 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; }; export interface AuthedUser { + access_token?: string; + expires_in?: number; id?: string; + refresh_token?: string; scope?: string; token_type?: string; - access_token?: string; - refresh_token?: string; - expires_in?: number; } export interface Enterprise { @@ -45,10 +45,10 @@ export interface Enterprise { } export interface IncomingWebhook { - url?: string; channel?: string; channel_id?: string; configuration_url?: string; + url?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/OpenIDConnectTokenResponse.ts b/packages/web-api/src/response/OpenIDConnectTokenResponse.ts index 291950b72..ada974bbc 100644 --- a/packages/web-api/src/response/OpenIDConnectTokenResponse.ts +++ b/packages/web-api/src/response/OpenIDConnectTokenResponse.ts @@ -10,14 +10,14 @@ import { WebAPICallResult } from '../WebClient'; export type OpenIDConnectTokenResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; + access_token?: string; error?: string; + expires_in?: number; + id_token?: string; needed?: string; + ok?: boolean; provided?: string; - access_token?: string; - token_type?: string; - id_token?: string; refresh_token?: string; - expires_in?: number; + token_type?: string; + warning?: string; }; diff --git a/packages/web-api/src/response/OpenIDConnectUserInfoResponse.ts b/packages/web-api/src/response/OpenIDConnectUserInfoResponse.ts index d9eccaabd..1f3a9fc37 100644 --- a/packages/web-api/src/response/OpenIDConnectUserInfoResponse.ts +++ b/packages/web-api/src/response/OpenIDConnectUserInfoResponse.ts @@ -10,39 +10,39 @@ import { WebAPICallResult } from '../WebClient'; export type OpenIDConnectUserInfoResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - error?: string; - needed?: string; - provided?: string; - sub?: string; - 'https://slack.com/user_id'?: string; - 'https://slack.com/team_id'?: string; - 'https://slack.com/enterprise_id'?: string; + date_email_verified?: number; email?: string; email_verified?: boolean; - date_email_verified?: number; - name?: string; - picture?: string; - given_name?: string; + error?: string; family_name?: string; - locale?: string; - 'https://slack.com/team_name'?: string; - 'https://slack.com/team_domain'?: string; - 'https://slack.com/enterprise_name'?: string; + given_name?: string; 'https://slack.com/enterprise_domain'?: 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_72'?: string; - 'https://slack.com/user_image_192'?: string; - 'https://slack.com/user_image_512'?: string; - 'https://slack.com/user_image_1024'?: 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_image_102'?: string; - 'https://slack.com/team_image_132'?: string; - 'https://slack.com/team_image_230'?: 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/response/PinsAddResponse.ts b/packages/web-api/src/response/PinsAddResponse.ts index d23cc8bcd..06dfbf889 100644 --- a/packages/web-api/src/response/PinsAddResponse.ts +++ b/packages/web-api/src/response/PinsAddResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type PinsAddResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/PinsListResponse.ts b/packages/web-api/src/response/PinsListResponse.ts index 8f2e1f428..df04e7e57 100644 --- a/packages/web-api/src/response/PinsListResponse.ts +++ b/packages/web-api/src/response/PinsListResponse.ts @@ -10,142 +10,142 @@ import { WebAPICallResult } from '../WebClient'; export type PinsListResponse = WebAPICallResult & { - ok?: boolean; - items?: Item[]; error?: string; + items?: Item[]; needed?: string; + ok?: boolean; provided?: string; }; export interface Item { - type?: string; + comment?: string; created?: number; created_by?: string; file?: File; - comment?: string; + type?: string; } export interface File { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -157,45 +157,45 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } diff --git a/packages/web-api/src/response/PinsRemoveResponse.ts b/packages/web-api/src/response/PinsRemoveResponse.ts index 884c2b6fe..8299805f7 100644 --- a/packages/web-api/src/response/PinsRemoveResponse.ts +++ b/packages/web-api/src/response/PinsRemoveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type PinsRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ReactionsAddResponse.ts b/packages/web-api/src/response/ReactionsAddResponse.ts index 8cb8bffaf..952146261 100644 --- a/packages/web-api/src/response/ReactionsAddResponse.ts +++ b/packages/web-api/src/response/ReactionsAddResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ReactionsAddResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ReactionsGetResponse.ts b/packages/web-api/src/response/ReactionsGetResponse.ts index 22cf96028..bc2542299 100644 --- a/packages/web-api/src/response/ReactionsGetResponse.ts +++ b/packages/web-api/src/response/ReactionsGetResponse.ts @@ -10,125 +10,125 @@ import { WebAPICallResult } from '../WebClient'; export type ReactionsGetResponse = WebAPICallResult & { - ok?: boolean; - type?: string; channel?: string; - message?: Message; error?: string; + message?: Message; needed?: string; + ok?: boolean; provided?: string; + type?: string; }; export interface Message { + app_id?: string; + blocks?: Block[]; bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; bot_profile?: BotProfile; - reactions?: Reaction[]; permalink?: string; - app_id?: string; - blocks?: Block[]; + reactions?: Reaction[]; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; } export interface Block { - type?: string; - block_id?: string; - elements?: Accessory[]; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: File; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: File; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + elements?: Element[]; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; initial_user?: string; initial_users?: string[]; - elements?: Element[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Element { - type?: string; text?: string; + type?: string; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface Option { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface OptionGroup { @@ -137,173 +137,173 @@ export interface OptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface File { - updated?: number; + app_id?: string; + app_name?: string; bot_id?: string; - id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -315,57 +315,57 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { diff --git a/packages/web-api/src/response/ReactionsListResponse.ts b/packages/web-api/src/response/ReactionsListResponse.ts index d66327ee3..51c168a8b 100644 --- a/packages/web-api/src/response/ReactionsListResponse.ts +++ b/packages/web-api/src/response/ReactionsListResponse.ts @@ -10,139 +10,139 @@ import { WebAPICallResult } from '../WebClient'; export type ReactionsListResponse = WebAPICallResult & { - ok?: boolean; - items?: Item[]; - paging?: Paging; error?: string; + items?: Item[]; needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Item { - type?: string; channel?: string; message?: Message; + type?: string; } export interface Message { - type?: string; - text?: string; - files?: FileElement[]; - upload?: boolean; - user?: string; - display_as_bot?: boolean; - ts?: string; - reactions?: Reaction[]; - permalink?: string; - client_msg_id?: string; - team?: string; + app_id?: string; blocks?: Block[]; bot_id?: string; bot_profile?: BotProfile; - thread_ts?: string; - reply_count?: number; - reply_users_count?: number; + client_msg_id?: string; + display_as_bot?: boolean; + files?: FileElement[]; + inviter?: string; + is_locked?: boolean; latest_reply?: string; + parent_user_id?: 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; - parent_user_id?: string; - is_locked?: boolean; - inviter?: string; - app_id?: string; } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: OptionGroup[]; + options?: Option[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface Option { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface OptionGroup { @@ -151,173 +151,202 @@ export interface OptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - updated?: number; + app_id?: string; + converted_pdf?: string; + filetype?: string; + non_owner_editable?: boolean; + subject?: string; + thumb_1024_w?: string; + thumb_64_w?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; +} + +export interface BotProfile { + app_id?: string; + deleted?: boolean; + icons?: Icons; + id?: string; + name?: string; + team_id?: string; + updated?: number; +} + +export interface Icons { + image_36?: string; + image_48?: string; + image_72?: string; +} + +export interface FileElement { + app_id?: string; + app_name?: string; bot_id?: string; - id?: string; + cc?: Cc[]; + channel_actions_count?: number; + channel_actions_ts?: string; + channels?: string[]; + comments_count?: number; + converted_pdf?: string; created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; - size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; + size?: number; + 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -329,191 +358,52 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; -} - -export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; - app_id?: string; - icons?: Icons; - team_id?: string; -} - -export interface Icons { - image_36?: string; - image_48?: string; - image_72?: string; -} - -export interface FileElement { - id?: string; - created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; - editable?: boolean; - non_owner_editable?: boolean; - editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; - hls?: string; - hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; - is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; - size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_w?: string; - thumb_160_h?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_w?: string; - thumb_360_h?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_w?: string; - thumb_480_h?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_w?: string; - thumb_720_h?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_w?: string; - thumb_800_h?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_w?: string; - thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_w?: string; - thumb_pdf_h?: string; - thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; - to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + status?: string; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/ReactionsRemoveResponse.ts b/packages/web-api/src/response/ReactionsRemoveResponse.ts index 444e6140b..6b1730343 100644 --- a/packages/web-api/src/response/ReactionsRemoveResponse.ts +++ b/packages/web-api/src/response/ReactionsRemoveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type ReactionsRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/RemindersAddResponse.ts b/packages/web-api/src/response/RemindersAddResponse.ts index d5d013680..9d621b79d 100644 --- a/packages/web-api/src/response/RemindersAddResponse.ts +++ b/packages/web-api/src/response/RemindersAddResponse.ts @@ -10,22 +10,22 @@ import { WebAPICallResult } from '../WebClient'; export type RemindersAddResponse = WebAPICallResult & { - ok?: boolean; - reminder?: Reminder; error?: string; - response_metadata?: ResponseMetadata; needed?: string; + ok?: boolean; provided?: string; + reminder?: Reminder; + response_metadata?: ResponseMetadata; }; export interface Reminder { - id?: string; + complete_ts?: number; creator?: string; - text?: string; - user?: string; + id?: string; recurring?: boolean; + text?: string; time?: number; - complete_ts?: number; + user?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/RemindersCompleteResponse.ts b/packages/web-api/src/response/RemindersCompleteResponse.ts index 2dbc0a234..619c16057 100644 --- a/packages/web-api/src/response/RemindersCompleteResponse.ts +++ b/packages/web-api/src/response/RemindersCompleteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type RemindersCompleteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/RemindersDeleteResponse.ts b/packages/web-api/src/response/RemindersDeleteResponse.ts index 3d8c83329..b630b913c 100644 --- a/packages/web-api/src/response/RemindersDeleteResponse.ts +++ b/packages/web-api/src/response/RemindersDeleteResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type RemindersDeleteResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/RemindersInfoResponse.ts b/packages/web-api/src/response/RemindersInfoResponse.ts index 0fbd736eb..1542badb2 100644 --- a/packages/web-api/src/response/RemindersInfoResponse.ts +++ b/packages/web-api/src/response/RemindersInfoResponse.ts @@ -10,19 +10,19 @@ import { WebAPICallResult } from '../WebClient'; export type RemindersInfoResponse = WebAPICallResult & { - ok?: boolean; - reminder?: Reminder; error?: string; needed?: string; + ok?: boolean; provided?: string; + reminder?: Reminder; }; export interface Reminder { - id?: string; + complete_ts?: number; creator?: string; - text?: string; - user?: string; + id?: string; recurring?: boolean; + text?: string; time?: number; - complete_ts?: number; + user?: string; } diff --git a/packages/web-api/src/response/RemindersListResponse.ts b/packages/web-api/src/response/RemindersListResponse.ts index fe3a5e106..3ce7ebbe3 100644 --- a/packages/web-api/src/response/RemindersListResponse.ts +++ b/packages/web-api/src/response/RemindersListResponse.ts @@ -10,23 +10,23 @@ import { WebAPICallResult } from '../WebClient'; export type RemindersListResponse = WebAPICallResult & { - ok?: boolean; - reminders?: Reminder[]; error?: string; needed?: string; + ok?: boolean; provided?: string; + reminders?: Reminder[]; }; export interface Reminder { - id?: string; + channel?: string; + complete_ts?: number; creator?: string; - text?: string; - user?: string; + id?: string; + recurrence?: Recurrence; recurring?: boolean; + text?: string; time?: number; - complete_ts?: number; - channel?: string; - recurrence?: Recurrence; + user?: string; } export interface Recurrence { diff --git a/packages/web-api/src/response/RtmConnectResponse.ts b/packages/web-api/src/response/RtmConnectResponse.ts index 230d7de68..9f3cdd38f 100644 --- a/packages/web-api/src/response/RtmConnectResponse.ts +++ b/packages/web-api/src/response/RtmConnectResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type RtmConnectResponse = WebAPICallResult & { - ok?: boolean; - url?: string; - team?: Team; - self?: Self; error?: string; needed?: string; + ok?: boolean; provided?: string; + self?: Self; + team?: Team; + url?: string; }; export interface Self { @@ -25,7 +25,7 @@ export interface Self { } export interface Team { + domain?: string; id?: string; name?: string; - domain?: string; } diff --git a/packages/web-api/src/response/RtmStartResponse.ts b/packages/web-api/src/response/RtmStartResponse.ts index 8ba7d516c..b650c2e0a 100644 --- a/packages/web-api/src/response/RtmStartResponse.ts +++ b/packages/web-api/src/response/RtmStartResponse.ts @@ -10,44 +10,44 @@ import { WebAPICallResult } from '../WebClient'; export type RtmStartResponse = WebAPICallResult & { - ok?: boolean; - self?: Self; - team?: Team; accept_tos_url?: string; - latest_event_ts?: string; - channels?: Channel[]; - groups?: Group[]; - ims?: Im[]; + bots?: Bot[]; cache_ts?: number; - mobile_app_requires_upgrade?: boolean; - read_only_channels?: string[]; - non_threadable_channels?: string[]; - thread_only_channels?: string[]; + cache_ts_version?: string; + cache_version?: string; can_manage_shared_channels?: boolean; - subteams?: Subteams; + channels?: Channel[]; dnd?: Dnd; - users?: User[]; - cache_version?: string; - cache_ts_version?: string; - bots?: Bot[]; - url?: string; + error?: string; + groups?: Group[]; + ims?: Im[]; is_europe?: boolean; + latest_event_ts?: string; links?: Links; - response_metadata?: ResponseMetadata; - error?: string; + 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[]; }; export interface Bot { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: BotIcons; + id?: string; is_workflow_bot?: boolean; + name?: string; team_id?: string; + updated?: number; } export interface BotIcons { @@ -57,185 +57,185 @@ export interface BotIcons { } export interface Channel { + connected_limited_team_ids?: string[]; + connected_team_ids?: string[]; + conversation_host_id?: string; + created?: number; + creator?: string; + has_pins?: boolean; id?: string; - name?: 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_private?: boolean; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; is_org_shared?: boolean; is_pending_ext_shared?: boolean; - pending_shared?: string[]; - creator?: string; - is_ext_shared?: boolean; - shared_team_ids?: string[]; - pending_connected_team_ids?: string[]; - has_pins?: boolean; - is_member?: boolean; + is_private?: boolean; + is_shared?: boolean; last_read?: string; - topic?: Purpose; - purpose?: Purpose; + name?: string; + name_normalized?: string; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; previous_names?: string[]; priority?: number; - internal_team_ids?: string[]; - connected_team_ids?: string[]; - connected_limited_team_ids?: string[]; - conversation_host_id?: string; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface Dnd { dnd_enabled?: boolean; - next_dnd_start_ts?: number; next_dnd_end_ts?: number; + next_dnd_start_ts?: number; snooze_enabled?: boolean; } export interface Group { - id?: string; - name?: string; - name_normalized?: string; - is_group?: boolean; 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; - topic?: Purpose; + priority?: number; purpose?: Purpose; - last_read?: string; - latest?: Latest; + topic?: Purpose; unread_count?: number; unread_count_display?: number; - priority?: number; } export interface Latest { - client_msg_id?: string; - type?: string; - subtype?: string; - team?: string; - user?: string; - username?: string; - parent_user_id?: string; - text?: string; - topic?: string; attachments?: Attachment[]; blocks?: Block[]; - files?: FileElement[]; - reactions?: string[]; - root?: Root; - upload?: boolean; - display_as_bot?: boolean; bot_id?: string; bot_link?: string; bot_profile?: Bot; + client_msg_id?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: FileElement[]; + icons?: LatestIcons; + parent_user_id?: string; + reactions?: string[]; + root?: Root; + subtype?: string; + team?: string; + text?: string; thread_ts?: string; + topic?: string; ts?: string; - icons?: LatestIcons; + type?: string; + upload?: boolean; + user?: string; + username?: string; x_files?: string[]; - edited?: Edited; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; id?: number; - app_id?: string; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - blocks?: Block[]; - preview?: Preview; - files?: FileElement[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -244,95 +244,95 @@ export interface SelectedOptionElement { } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: AccessoryConfirm; - accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -341,173 +341,173 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - updated?: number; + 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; - timestamp?: number; - title?: string; - user?: string; - transcription?: Transcription; - vtt?: string; - username?: string; - url_private?: string; - url_private_download?: string; - to?: Cc[]; - id?: string; - name?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - subtype?: string; - mp4?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + 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; + username?: string; + vtt?: string; } export interface Cc { @@ -519,203 +519,203 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; } export interface FileElement { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface LatestIcons { @@ -727,41 +727,41 @@ export interface LatestIcons { } export interface Root { - text?: string; - user?: string; - parent_user_id?: string; - username?: string; - team?: string; bot_id?: string; - mrkdwn?: boolean; - type?: string; - subtype?: string; - thread_ts?: string; - icons?: LatestIcons; bot_profile?: Bot; edited?: Edited; + icons?: LatestIcons; + last_read?: string; + latest_reply?: string; + mrkdwn?: boolean; + parent_user_id?: string; replies?: Edited[]; reply_count?: number; reply_users?: string[]; reply_users_count?: number; - latest_reply?: string; subscribed?: boolean; - last_read?: string; - unread_count?: number; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; ts?: string; + type?: string; + unread_count?: number; + user?: string; + username?: string; } export interface Im { - id?: string; created?: number; + has_pins?: boolean; + id?: string; is_archived?: boolean; is_im?: boolean; + is_open?: boolean; is_org_shared?: boolean; - user?: string; last_read?: string; - is_open?: boolean; - has_pins?: boolean; priority?: number; + user?: string; } export interface Links { @@ -773,468 +773,468 @@ export interface ResponseMetadata { } export interface Self { - id?: string; - name?: string; - prefs?: SelfPrefs; created?: number; first_login?: number; + id?: string; manual_presence?: string; + name?: string; + prefs?: SelfPrefs; } export interface SelfPrefs { - underline_links?: boolean; - user_colors?: string; - color_names_in_list?: boolean; - email_alerts?: string; - email_alerts_sleep_until?: number; - email_tips?: boolean; - email_weekly?: boolean; - email_offers?: boolean; - email_research?: boolean; - email_developer?: boolean; - welcome_message_hidden?: boolean; - search_sort?: string; - search_file_sort?: string; - search_channel_sort?: string; - search_people_sort?: string; - expand_inline_imgs?: boolean; - expand_internal_inline_imgs?: boolean; - expand_snippets?: boolean; - posts_formatting_guide?: boolean; - seen_welcome_2?: boolean; - seen_ssb_prompt?: boolean; - spaces_new_xp_banner_dismissed?: boolean; - search_only_my_channels?: boolean; - search_only_current_team?: boolean; - search_hide_my_channels?: boolean; - search_only_show_online?: boolean; - search_hide_deactivated_users?: boolean; - emoji_mode?: string; - emoji_use?: string; - emoji_use_org?: string; - has_invited?: boolean; - has_uploaded?: boolean; - has_created_channel?: boolean; - has_created_channel_section?: boolean; - has_searched?: boolean; - search_exclude_channels?: string; - messages_theme?: string; - webapp_spellcheck?: boolean; - no_joined_overlays?: boolean; - no_created_overlays?: boolean; - dropbox_enabled?: boolean; - seen_domain_invite_reminder?: boolean; - seen_member_invite_reminder?: boolean; - mute_sounds?: boolean; + a11y_animations?: boolean; + a11y_dyslexic?: boolean; + a11y_play_sound_for_incoming_dm?: boolean; + a11y_play_sound_for_sent_dm?: boolean; + 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_subdomain_check_completed?: number; arrow_history?: boolean; - tab_ui_return_selects?: boolean; - obey_inline_img_limit?: boolean; - require_at?: boolean; - ssb_space_window?: string; - mac_ssb_bounce?: string; - mac_ssb_bullet?: boolean; - expand_non_media_attachments?: boolean; - show_typing?: boolean; - pagekeys_handled?: boolean; - last_snippet_type?: string; - display_real_names_override?: number; - display_display_names?: boolean; - time24?: boolean; - enter_is_special_in_tbt?: boolean; - msg_input_send_btn?: boolean; - msg_input_send_btn_auto_set?: boolean; - msg_input_sticky_composer?: 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_sections?: string; + channel_sidebar_hide_browse_dms_link?: boolean; + channel_sidebar_hide_invite?: boolean; + channel_sort?: string; + chime_access_check_completed?: number; + client_logs_pri?: string; + color_names_in_list?: boolean; composer_nux?: string; - graphic_emoticons?: boolean; + 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; - ss_emojis?: boolean; - seen_onboarding_start?: boolean; - onboarding_cancelled?: boolean; - seen_onboarding_slackbot_conversation?: boolean; - seen_onboarding_channels?: boolean; - seen_onboarding_direct_messages?: boolean; - seen_onboarding_invites?: boolean; - seen_onboarding_search?: boolean; - seen_onboarding_recent_mentions?: boolean; - seen_onboarding_starred_items?: boolean; - seen_onboarding_private_groups?: boolean; - seen_onboarding_banner?: boolean; - onboarding_slackbot_conversation_step?: number; - set_tz_automatically?: boolean; - suppress_link_warning?: boolean; - suppress_external_invites_from_compose_warning?: boolean; - seen_emoji_pack_cta?: number; - seen_emoji_pack_dialog?: boolean; - seen_schedule_send_coachmark?: boolean; - emoji_packs_most_recent_available_time?: number; - emoji_packs_clicked_picker_cta?: boolean; - emoji_packs_clicked_picker_post_install_cta?: boolean; - emoji_packs_clicked_collection_cta?: boolean; - dnd_enabled?: boolean; - dnd_start_hour?: string; - dnd_end_hour?: string; - dnd_before_monday?: string; + 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; + display_display_names?: boolean; + display_real_names_override?: number; + dnd_after_friday?: string; dnd_after_monday?: string; - dnd_enabled_monday?: string; - dnd_before_tuesday?: string; + dnd_after_saturday?: string; + dnd_after_sunday?: string; + dnd_after_thursday?: string; dnd_after_tuesday?: string; - dnd_enabled_tuesday?: string; - dnd_before_wednesday?: string; dnd_after_wednesday?: string; - dnd_enabled_wednesday?: string; - dnd_before_thursday?: string; - dnd_after_thursday?: string; - dnd_enabled_thursday?: string; dnd_before_friday?: string; - dnd_after_friday?: string; - dnd_enabled_friday?: string; + dnd_before_monday?: string; dnd_before_saturday?: string; - dnd_after_saturday?: string; - dnd_enabled_saturday?: string; dnd_before_sunday?: string; - dnd_after_sunday?: string; - dnd_enabled_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; - reminder_notification_time?: string; - dnd_custom_new_badge_seen?: boolean; - dnd_notification_schedule_new_badge_seen?: boolean; - notification_center_filters?: string; - calls_survey_last_seen?: string; - huddle_survey_last_seen?: string; - sidebar_behavior?: string; - channel_sort?: string; - separate_private_channels?: boolean; - separate_shared_channels?: boolean; - sidebar_theme?: string; - sidebar_theme_custom_values?: string; - no_invites_widget_in_sidebar?: boolean; - no_omnibox_in_channels?: boolean; - k_key_omnibox_auto_hide_count?: number; - show_sidebar_quickswitcher_button?: boolean; - ent_org_wide_channels_sidebar?: boolean; - mark_msgs_read_immediately?: boolean; - start_scroll_at_oldest?: boolean; - snippet_editor_wrap_long_lines?: boolean; - ls_disabled?: boolean; - f_key_search?: boolean; - k_key_omnibox?: boolean; - prompted_for_email_disabling?: boolean; - no_macelectron_banner?: boolean; - no_macssb1_banner?: boolean; - no_macssb2_banner?: boolean; - no_winssb1_banner?: boolean; - hide_user_group_info_pane?: boolean; - mentions_exclude_at_user_groups?: boolean; - mentions_exclude_reactions?: boolean; - privacy_policy_seen?: boolean; - enterprise_migration_seen?: boolean; - search_exclude_bots?: boolean; - load_lato_2?: boolean; - fuller_timestamps?: boolean; - last_seen_at_channel_warning?: number; + 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; - two_factor_auth_enabled?: boolean; - hide_hex_swatch?: boolean; - show_jumper_scores?: 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_file_browser_view?: boolean; + enable_file_browser_view_for_docs?: boolean; + enable_hq_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_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; - client_logs_pri?: 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; flannel_server_pool?: string; - mentions_exclude_at_channels?: boolean; - confirm_clear_all_unreads?: boolean; - confirm_user_marked_away?: boolean; - box_enabled?: boolean; - seen_single_emoji_msg?: boolean; - confirm_sh_call_start?: boolean; - preferred_skin_tone?: string; - show_all_skin_tones?: boolean; - whats_new_read?: number; - help_modal_open_timestamp?: number; - help_modal_consult_banner_dismissed?: boolean; - help_flexpane_slack_connect_card_seen?: boolean; - help_flexpane_clips_card_seen?: boolean; - help_menu_open_timestamp?: number; - frecency_jumper?: string; + folder_data?: string; + folders_enabled?: boolean; frecency_ent_jumper?: string; - jumbomoji?: boolean; - newxp_seen_last_message?: number; - show_memory_instrument?: boolean; - enable_unread_view?: boolean; - seen_unread_view_coachmark?: boolean; - seen_connect_dm_coachmark?: boolean; - seen_connect_section_coachmark?: boolean; - should_show_connect_section?: boolean; - enable_react_emoji_picker?: boolean; - seen_custom_status_badge?: boolean; - seen_custom_status_callout?: boolean; - seen_custom_status_expiration_badge?: boolean; - used_custom_status_kb_shortcut?: boolean; - seen_guest_admin_slackbot_announcement?: boolean; - seen_threads_notification_banner?: boolean; - seen_name_tagging_coachmark?: boolean; - all_unreads_sort_order?: string; - all_unreads_section_filter?: string; - locale?: string; - seen_intl_channel_names_coachmark?: boolean; - seen_p3_locale_change_message_ko_kr?: number; - seen_toast_new_locale_launch?: string; - seen_toast_new_locale_launch_ts?: number; - seen_locale_change_message?: number; - seen_japanese_locale_change_message?: boolean; - seen_shared_channels_coachmark?: boolean; - seen_shared_channels_opt_in_change_message?: boolean; + 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_received_mention_or_reaction?: boolean; + has_received_threaded_message?: boolean; has_recently_shared_a_channel?: boolean; - seen_channel_browser_admin_coachmark?: boolean; - seen_administration_menu?: boolean; - seen_drafts_section_coachmark?: boolean; - seen_emoji_update_overlay_coachmark?: boolean; - seen_sonic_deluxe_toast?: number; - seen_wysiwyg_deluxe_toast?: boolean; - seen_markdown_paste_toast?: number; - seen_markdown_paste_shortcut?: number; - seen_ia_education?: boolean; - show_ia_tour_relaunch?: number; - plain_text_mode?: boolean; - show_shared_channels_education_banner?: boolean; - ia_slackbot_survey_timestamp_48h?: number; - ia_slackbot_survey_timestamp_7d?: number; - enable_streamline_view?: boolean; - enable_sent_view?: boolean; - allow_calls_to_set_current_status?: boolean; - in_interactive_mas_migration_flow?: boolean; - sunset_interactive_message_views?: number; - shdep_promo_code_submitted?: boolean; - seen_shdep_slackbot_message?: boolean; - seen_calls_interactive_coachmark?: boolean; - allow_cmd_tab_iss?: boolean; - join_calls_device_settings?: string; - calls_disconnect_on_lock?: boolean; - seen_workflow_builder_deluxe_toast?: boolean; - workflow_builder_intro_modal_clicked_through?: boolean; - workflow_builder_coachmarks?: string; - seen_gdrive_coachmark?: boolean; - seen_first_install_coachmark?: boolean; - seen_existing_install_coachmark?: boolean; - seen_link_unfurl_coachmark?: boolean; - file_picker_variant?: number; - open_quip_doc_in_flexpane?: boolean; - saved_searches?: string; - huddles_variant?: number; + has_searched?: boolean; + 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; + 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_mute_by_default?: boolean; + huddles_chime_new_endpoints_check_completed?: number; + huddles_disconnect_on_lock?: boolean; huddles_global_mute?: boolean; huddles_mini_panel?: boolean; - huddles_set_status?: boolean; - huddles_show_shouty_rooster?: boolean; - huddles_disconnect_on_lock?: boolean; + huddles_mute_by_default?: boolean; huddles_play_music_when_last?: boolean; - huddles_allow_smart_notif?: boolean; huddles_reactions_play_sound?: boolean; huddles_reactions_read_out_loud?: boolean; - huddles_chime_new_endpoints_check_completed?: number; - xws_sidebar_variant?: number; + 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; - overloaded_message_enabled?: boolean; - seen_highlights_coachmark?: boolean; - seen_highlights_arrows_coachmark?: boolean; - seen_highlights_warm_welcome?: boolean; - seen_new_search_ui?: boolean; - seen_channel_search?: boolean; - seen_people_search?: boolean; - seen_people_search_count?: number; - dismissed_scroll_search_tooltip_count?: number; + 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; - has_used_quickswitcher_shortcut?: boolean; - seen_quickswitcher_shortcut_tip_count?: number; - browsers_dismissed_channels_low_results_education?: boolean; - browsers_seen_initial_channels_education?: boolean; - browsers_dismissed_people_low_results_education?: boolean; - browsers_seen_initial_people_education?: boolean; - browsers_dismissed_user_groups_low_results_education?: boolean; - browsers_seen_initial_user_groups_education?: boolean; - browsers_dismissed_files_low_results_education?: boolean; - browsers_seen_initial_files_education?: boolean; - browsers_dismissed_initial_drafts_education?: boolean; - browsers_seen_initial_drafts_education?: boolean; - browsers_dismissed_initial_activity_education?: boolean; - browsers_seen_initial_activity_education?: boolean; - browsers_dismissed_initial_saved_education?: boolean; - browsers_seen_initial_saved_education?: boolean; - seen_edit_mode?: boolean; - seen_edit_mode_edu?: boolean; - xws_dismissed_education?: boolean; - xws_seen_education?: number; - sidebar_pref_dismissed_tip?: boolean; - a11y_dyslexic?: boolean; - a11y_animations?: boolean; - seen_keyboard_shortcuts_coachmark?: boolean; - needs_initial_password_set?: boolean; + last_seen_at_channel_warning?: number; + last_seen_sections_unreads_only_prompt_timestamp?: number; + last_snippet_type?: string; lessons_enabled?: boolean; - tractor_enabled?: boolean; - tractor_experiment_group?: string; - opened_slackbot_dm?: 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; - welcome_place_state?: string; - has_received_threaded_message?: boolean; - joiner_notifications_muted?: boolean; - invite_accepted_notifications_muted?: boolean; - joiner_message_suggestion_dismissed?: boolean; - dismissed_fullscreen_download_ssb_prompt?: boolean; - dismissed_banner_download_ssb_prompt?: boolean; + onboarding_slackbot_conversation_step?: number; onboarding_state?: number; - whocanseethis_dm_mpdm_badge?: boolean; - highlight_words?: string; - threads_everything?: boolean; - no_text_in_notifications?: boolean; - push_show_preview?: boolean; - growls_enabled?: boolean; - all_channels_loud?: 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_mention_alert?: boolean; push_everything?: boolean; push_idle_wait?: number; - push_sound?: string; - new_msg_snd?: string; - huddle_invite_sound?: string; push_loud_channels?: string; - push_mention_channels?: string; push_loud_channels_set?: string; - loud_channels?: string; - never_channels?: string; - loud_channels_set?: string; - at_channel_suppressed_channels?: string; - push_at_channel_suppressed_channels?: string; - muted_channels?: string; - all_notifications_prefs?: string; - growth_msg_limit_approaching_cta_count?: number; - growth_msg_limit_approaching_cta_ts?: number; - growth_msg_limit_reached_cta_count?: number; - growth_msg_limit_reached_cta_last_ts?: number; - growth_msg_limit_long_reached_cta_count?: number; - growth_msg_limit_long_reached_cta_last_ts?: number; - growth_msg_limit_sixty_day_banner_cta_count?: number; - growth_msg_limit_sixty_day_banner_cta_last_ts?: number; - growth_all_banners_prefs?: string; - analytics_upsell_coachmark_seen?: boolean; + 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; - dismissed_app_launcher_welcome?: boolean; - dismissed_app_launcher_limit?: boolean; - dismissed_app_launcher_atlassian_promo?: boolean; - enable_app_config_redesign?: boolean; - dismissed_app_config_redesign_coachmark?: boolean; - dismissed_app_manifest_description?: boolean; - dismissed_app_manifest_coachmark?: boolean; - purchaser?: boolean; + seen_bookmarks_intro?: boolean; + seen_calls_interactive_coachmark?: boolean; + seen_channel_browser_admin_coachmark?: boolean; seen_channel_email_tooltip?: boolean; - show_ent_onboarding?: boolean; - folders_enabled?: boolean; - folder_data?: string; + 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; - show_autocomplete_help?: number; - deprecation_toast_last_seen?: number; - deprecation_modal_last_seen?: number; - deprecation_banner_last_seen?: number; - iap1_lab?: number; - ia_top_nav_theme?: string; - ia_platform_actions_lab?: number; - activity_view?: string; - saved_view?: string; + 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; - desktop_client_ids?: string; - failover_proxy_check_completed?: number; - chime_access_check_completed?: number; - mx_calendar_type?: string; - edge_upload_proxy_check_completed?: number; - app_subdomain_check_completed?: number; - add_prompt_interacted?: boolean; - add_apps_prompt_dismissed?: boolean; - add_channel_prompt_dismissed?: boolean; - channel_sidebar_hide_invite?: boolean; - channel_sidebar_hide_browse_dms_link?: boolean; - in_prod_surveys_enabled?: boolean; - connect_dm_early_access?: boolean; - dismissed_installed_app_dm_suggestions?: string; - seen_contextual_message_shortcuts_modal?: 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; - contextual_message_shortcuts_modal_was_seen?: boolean; - message_navigation_toast_was_seen?: boolean; - up_to_browse_kb_shortcut?: boolean; + seen_name_tagging_coachmark?: 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_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_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; - a11y_play_sound_for_incoming_dm?: boolean; - a11y_play_sound_for_sent_dm?: boolean; - a11y_read_out_incoming_dm?: boolean; - a11y_screen_reader_message_label_date_time_first?: 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; - channel_sections?: string; + 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; + 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; - reaction_notifications?: string; - has_received_mention_or_reaction?: boolean; - has_starred_item?: boolean; - has_drafted_message?: boolean; - enable_mentions_and_reactions_view?: boolean; - enable_reminders_view?: boolean; - enable_saved_items_view?: boolean; - enable_hq_view?: boolean; - enable_all_dms_view?: boolean; - enable_channel_browser_view?: boolean; - enable_file_browser_view?: boolean; - enable_people_browser_view?: boolean; - enable_app_browser_view?: boolean; - reached_all_dms_disclosure?: boolean; - enable_slack_connect_view?: boolean; - enable_slack_connect_view_2?: number; - has_acknowledged_shortcut_speedbump?: boolean; - enable_media_captions?: boolean; - media_playback_speed?: number; - media_muted?: boolean; - media_volume?: number; - dismissed_connect_auto_approval_modal?: string; - tasks_view?: string; - show_sidebar_avatars?: boolean; - has_dismissed_google_directory_coachmark?: boolean; - seen_sc_page_banner?: boolean; - seen_sc_menu_coachmark?: boolean; - seen_sc_page?: boolean; - dismissed_scdm_education?: boolean; - seen_bookmarks_intro?: boolean; - scdm_trial_offer_banner?: string; - identity_links_prefs?: string; - identity_links_global_prefs?: string; - seen_sections_unreads_only_prompt_count?: number; - last_seen_sections_unreads_only_prompt_timestamp?: number; - notifications_view?: string; - progressive_disclosure_state?: string; - suggestions_request_id?: string; - allowed_unfurl_senders?: string; - ia_details_coachmark_seen?: boolean; - hide_external_members_sharing_speed_bump?: boolean; - who_can_share_contact_card?: string; - slack_connect_invite_should_badge_sidebar?: boolean; - phc_dismissed?: string; - dismissed_gov_slack_first_time_popup?: boolean; - mobile_channel_list_sort?: string; user_expectations_survey_last_trigger_attempt?: number; - tz?: string; - locales_enabled?: LocalesEnabled; - phc_viewed?: string; - seen_a11y_pref_setup_coachmark?: boolean; - enable_file_browser_view_for_docs?: boolean; - enable_shortcuts_view?: boolean; - show_gov_slack_context_bar_banner?: boolean; + webapp_spellcheck?: boolean; + welcome_message_hidden?: boolean; + welcome_place_state?: string; + whats_new_read?: number; who_can_see_account_by_searching_email?: string; - contextual_help_reset_count?: number; - mobile_channel_list_show_all_dms?: boolean; - enable_quip_file_browser_view?: boolean; + 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 { @@ -1245,38 +1245,38 @@ export interface LocalesEnabled { 'es-LA'?: string; 'fr-FR'?: string; 'it-IT'?: string; + 'ja-JP'?: string; + 'ko-KR'?: string; 'pt-BR'?: string; 'ru-RU'?: string; - 'ja-JP'?: string; 'zh-CN'?: string; 'zh-TW'?: string; - 'ko-KR'?: string; } export interface Subteams { - self?: string[]; all?: All[]; + self?: string[]; } export interface All { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; date_create?: number; - date_update?: number; date_delete?: number; - auto_provision?: boolean; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - created_by?: string; - updated_by?: 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; - channel_count?: number; } export interface AllPrefs { @@ -1285,22 +1285,22 @@ export interface AllPrefs { } export interface Team { - id?: string; - name?: string; - url?: string; - email_domain?: string; + avatar_base_url?: string; + date_create?: number; domain?: string; - msg_edit_window_mins?: number; - prefs?: TeamPrefs; + email_domain?: string; icon?: Icon; - over_storage_limit?: boolean; + id?: string; + is_verified?: boolean; + limit_ts?: number; messages_count?: number; - plan?: string; + msg_edit_window_mins?: number; + name?: string; onboarding_channel_id?: string; - date_create?: number; - limit_ts?: number; - is_verified?: boolean; - avatar_base_url?: string; + over_storage_limit?: boolean; + plan?: string; + prefs?: TeamPrefs; + url?: string; } export interface Icon { @@ -1315,47 +1315,28 @@ export interface Icon { } export interface TeamPrefs { - default_channels?: string[]; - allow_calls?: boolean; - display_email_addresses?: boolean; - gdrive_enabled_team?: boolean; - all_users_can_purchase?: boolean; - enable_shared_channels?: number; - can_receive_shared_channels_invites?: boolean; - invited_user_preset?: InvitedUserPreset; - dropbox_legacy_picker?: boolean; - app_whitelist_enabled?: boolean; - who_can_manage_integrations?: SlackConnectAllowedWorkspaces; - welcome_place_enabled?: boolean; - msg_edit_window_mins?: number; - allow_message_deletion?: boolean; - display_external_email_addresses?: boolean; - joiner_notifications_enabled?: boolean; - received_esc_route_to_channel_awareness_message?: boolean; - who_can_create_channels?: string; - who_can_archive_channels?: string; - who_can_create_groups?: string; - who_can_manage_channel_posting_prefs?: string; - who_can_kick_channels?: string; - who_can_kick_groups?: string; - locale?: string; - display_pronouns?: 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_media_transcriptions?: boolean; + allow_message_deletion?: boolean; allow_retention_override?: boolean; 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; @@ -1363,6 +1344,7 @@ export interface TeamPrefs { 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; @@ -1370,6 +1352,7 @@ export interface TeamPrefs { custom_status_default_emoji?: string; custom_status_presets?: Array; default_channel_creation_enabled?: boolean; + default_channels?: string[]; default_rxns?: string[]; disable_email_ingestion?: boolean; disable_file_deleting?: boolean; @@ -1380,15 +1363,46 @@ export interface TeamPrefs { disallow_public_file_urls?: boolean; discoverable?: string; display_default_phone?: boolean; + display_email_addresses?: boolean; + display_external_email_addresses?: boolean; display_name_pronunciation?: 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; 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; @@ -1402,6 +1416,7 @@ export interface TeamPrefs { 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; @@ -1412,28 +1427,43 @@ export interface TeamPrefs { 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; + 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; 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; @@ -1445,21 +1475,33 @@ export interface TeamPrefs { sso_sync_with_provider?: boolean; subteams_auto_create_admin?: boolean; subteams_auto_create_owner?: boolean; + thorn_safer_scan?: boolean; + uneditable_user_profile_fields?: string[]; use_browser_picker?: boolean; uses_customized_custom_status_presets?: boolean; warn_before_at_channel?: string; + 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; @@ -1468,66 +1510,24 @@ export interface TeamPrefs { who_can_post_in_shared_channels?: SlackConnectAllowedWorkspaces; who_can_request_ext_shared_channels?: SlackConnectAllowedWorkspaces; who_can_review_flagged_content?: SlackConnectAllowedWorkspaces; + who_can_use_hermes?: SlackConnectAllowedWorkspaces; who_can_view_message_activity?: SlackConnectAllowedWorkspaces; workflow_builder_enabled?: boolean; workflow_extension_steps_beta_opt_in?: boolean; - dnd_enabled?: boolean; - dnd_start_hour?: string; - dnd_end_hour?: string; - dnd_before_monday?: string; - dnd_after_monday?: string; - dnd_before_tuesday?: string; - dnd_after_tuesday?: string; - dnd_before_wednesday?: string; - dnd_after_wednesday?: string; - dnd_before_thursday?: string; - dnd_after_thursday?: string; - dnd_before_friday?: string; - dnd_after_friday?: string; - dnd_before_saturday?: string; - dnd_after_saturday?: string; - dnd_before_sunday?: string; - dnd_after_sunday?: string; - dnd_enabled_monday?: string; - dnd_enabled_tuesday?: string; - dnd_enabled_wednesday?: string; - dnd_enabled_thursday?: string; - dnd_enabled_friday?: string; - dnd_enabled_saturday?: string; - dnd_enabled_sunday?: string; - dnd_weekdays_off_allday?: boolean; - auth_mode?: string; - who_can_create_workflows?: SlackConnectAllowedWorkspaces; - workflows_webhook_trigger_enabled?: boolean; workflow_extension_steps_enabled?: boolean; workflows_export_csv_enabled?: boolean; - who_can_use_hermes?: SlackConnectAllowedWorkspaces; - who_can_create_channel_email_addresses?: SlackConnectAllowedWorkspaces; - identity_links_prefs?: EnterpriseTeamCreationRequest; - magic_unfurls_enabled?: boolean; - invites_limit?: boolean; - show_mobile_promos?: boolean; - dm_retention_redaction_duration?: number; - private_retention_redaction_duration?: number; - public_retention_redaction_duration?: number; - slack_connect_account_visibility?: string; - rich_previews_default?: string; - sign_in_with_slack_default?: string; - mobile_session_duration?: number; - uneditable_user_profile_fields?: string[]; - thorn_safer_scan?: boolean; - allow_free_automated_trials?: boolean; + workflows_webhook_trigger_enabled?: boolean; } export interface CallsApps { - video?: Video[]; audio?: string[]; + video?: Video[]; } export interface Video { id?: string; - name?: string; image?: string; + name?: string; } export interface EnterpriseTeamCreationRequest { @@ -1543,70 +1543,70 @@ export interface SlackConnectAllowedWorkspaces { } export interface WhoCanManageP { - user?: string[]; type?: string[]; + user?: string[]; } export interface User { - id?: string; - team_id?: string; - name?: string; - deleted?: boolean; color?: string; - real_name?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - profile?: Profile; + deleted?: boolean; + id?: string; is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; is_owner?: boolean; is_primary_owner?: boolean; is_restricted?: boolean; is_ultra_restricted?: boolean; - is_bot?: boolean; - is_app_user?: 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; - is_email_confirmed?: boolean; who_can_share_contact_card?: string; - presence?: string; - is_workflow_bot?: boolean; } export interface Profile { - title?: string; - phone?: string; - skype?: string; - real_name?: string; - real_name_normalized?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: string; display_name?: string; display_name_normalized?: string; - fields?: Fields; - status_text?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_expiration?: number; - avatar_hash?: string; - image_original?: string; - is_custom_image?: boolean; email?: string; - pronouns?: string; + fields?: Fields; first_name?: string; - last_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_72?: string; - image_192?: string; image_512?: string; - image_1024?: 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; - api_app_id?: string; - bot_id?: string; - always_active?: boolean; - guest_invited_by?: string; - huddle_state?: string; - huddle_state_expiration_ts?: number; + title?: string; } export interface Fields { @@ -1614,12 +1614,12 @@ export interface Fields { } export interface Xf019LT13Z16 { - value?: string; alt?: string; + value?: string; } export interface StatusEmojiDisplayInfo { - emoji_name?: string; display_alias?: string; display_url?: string; + emoji_name?: string; } diff --git a/packages/web-api/src/response/SearchAllResponse.ts b/packages/web-api/src/response/SearchAllResponse.ts index 90a050a93..ab8774e2a 100644 --- a/packages/web-api/src/response/SearchAllResponse.ts +++ b/packages/web-api/src/response/SearchAllResponse.ts @@ -10,91 +10,91 @@ import { WebAPICallResult } from '../WebClient'; export type SearchAllResponse = WebAPICallResult & { - ok?: boolean; error?: string; - query?: string; - messages?: Messages; files?: Files; - posts?: Posts; + messages?: Messages; needed?: string; + ok?: boolean; + posts?: Posts; provided?: string; + query?: string; }; export interface Files { - total?: number; + matches?: FilesMatch[]; pagination?: Pagination; paging?: Paging; - matches?: FilesMatch[]; + total?: number; } export interface FilesMatch { - id?: string; + channels?: string[]; + comments_count?: number; created?: number; - timestamp?: number; - name?: string; - title?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: LastEditor; + display_as_bot?: boolean; + edit_link?: string; editable?: boolean; - size?: number; - mode?: string; - is_external?: boolean; + external_id?: string; external_type?: string; + external_url?: string; + filetype?: string; + groups?: string[]; + has_rich_preview?: boolean; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_external?: boolean; is_public?: boolean; + is_starred?: boolean; + last_editor?: LastEditor; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + 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; - display_as_bot?: boolean; - username?: string; - url_private?: string; - thumb_64?: string; - thumb_80?: string; + shares?: MatchShares; + size?: number; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; thumb_360?: string; - thumb_360_w?: number; thumb_360_h?: number; + thumb_360_w?: number; thumb_480?: string; - thumb_480_w?: number; thumb_480_h?: number; - thumb_160?: string; + thumb_480_w?: number; + thumb_64?: string; thumb_720?: string; - thumb_720_w?: number; thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; thumb_800?: string; - thumb_800_w?: number; thumb_800_h?: number; + thumb_800_w?: number; thumb_960?: string; - thumb_960_w?: number; thumb_960_h?: number; - thumb_1024?: string; - thumb_1024_w?: number; - thumb_1024_h?: number; - original_w?: number; - original_h?: number; + thumb_960_w?: number; thumb_tiny?: string; - permalink?: string; - is_starred?: boolean; - shares?: MatchShares; - channels?: string[]; - groups?: string[]; - ims?: string[]; - external_id?: string; - external_url?: string; - has_rich_preview?: boolean; - url_private_download?: string; - permalink_public?: string; - edit_link?: string; - preview?: string; - preview_highlight?: string; - lines?: number; - lines_more?: number; - preview_is_truncated?: boolean; - image_exif_rotation?: number; - last_editor?: LastEditor; - non_owner_editable?: boolean; - updated?: number; thumb_video?: string; - comments_count?: number; - media_display_type?: string; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: LastEditor; + username?: string; } export enum LastEditor { @@ -107,15 +107,15 @@ export interface MatchShares { } export interface Public { + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: Ts; - channel_name?: string; - team_id?: Team; share_user_id?: LastEditor; + team_id?: Team; thread_ts?: string; - latest_reply?: string; + ts?: Ts; } export enum Team { @@ -129,131 +129,131 @@ export enum Ts { } export interface Pagination { - total_count?: number; - page?: number; - per_page?: number; - page_count?: number; first?: number; last?: number; + page?: number; + page_count?: number; + per_page?: number; + total_count?: number; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } export interface Messages { - total?: number; + matches?: MessagesMatch[]; pagination?: Pagination; paging?: Paging; - matches?: MessagesMatch[]; + total?: number; } export interface MessagesMatch { - iid?: string; - team?: Team; + attachments?: Attachment[]; + blocks?: MatchBlock[]; channel?: Channel; - type?: string; - user?: LastEditor; - username?: string; - ts?: Ts; - text?: string; - permalink?: string; + files?: FileElement[]; + iid?: string; + is_mpim?: boolean; no_reactions?: boolean; + permalink?: string; previous?: Previous; previous_2?: Previous; - blocks?: Block[]; - attachments?: Attachment[]; - is_mpim?: boolean; score?: number; - files?: File[]; + team?: Team; + text?: string; + ts?: Ts; + type?: string; + user?: LastEditor; + username?: string; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: AttachmentBlock[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; id?: number; - app_id?: string; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - blocks?: Block[]; - preview?: Preview; - files?: File[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -261,96 +261,96 @@ export interface SelectedOptionElement { value?: string; } -export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; +export interface AttachmentBlock { + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: File; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: PurpleFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: AccessoryConfirm; - accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -359,173 +359,192 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } -export interface File { - updated?: number; +export interface PurpleFile { + app_id?: string; + converted_pdf?: string; + filetype?: string; + non_owner_editable?: boolean; + subject?: string; + thumb_1024_w?: string; + thumb_64_w?: string; + thumb_pdf_h?: string; + thumb_pdf_w?: string; + thumb_tiny?: string; +} + +export interface Field { + short?: boolean; + title?: string; + value?: string; +} + +export interface FileElement { + 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; - timestamp?: number; - title?: string; - user?: string; - transcription?: Transcription; - vtt?: string; - username?: string; - url_private?: string; - url_private_download?: string; - to?: Cc[]; - id?: string; - name?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - subtype?: string; - mp4?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: FileShares; + simplified_html?: string; size?: number; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: FileShares; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + 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; + username?: string; + vtt?: string; } export interface Cc { @@ -537,95 +556,117 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface FileShares { - public?: { [key: string]: Public[] }; private?: { [key: string]: Public[] }; + public?: { [key: string]: Public[] }; } export interface Transcription { - status?: string; locale?: string; -} - -export interface Field { - title?: string; - value?: string; - short?: boolean; + status?: string; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; +} + +export interface MatchBlock { + accessory?: Accessory; + alt_text?: string; + api_decoration_available?: boolean; + block_id?: string; + call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; + external_id?: string; + fallback?: string; + fields?: Hint[]; + file?: FileElement; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + label?: Hint; + optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Channel { id?: string; is_channel?: boolean; + is_ext_shared?: boolean; is_group?: boolean; is_im?: boolean; - name?: string; - is_shared?: boolean; + is_mpim?: boolean; is_org_shared?: boolean; - is_ext_shared?: boolean; + is_pending_ext_shared?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; pending_shared?: string[]; - is_pending_ext_shared?: boolean; user?: LastEditor; - name_normalized?: string; } export interface Previous { + attachments?: Attachment[]; + blocks?: AttachmentBlock[]; + iid?: string; + permalink?: string; + text?: string; + ts?: Ts; type?: string; user?: LastEditor; username?: string; - ts?: Ts; - text?: string; - iid?: string; - permalink?: string; - attachments?: Attachment[]; - blocks?: Block[]; } export interface Posts { - total?: number; matches?: string[]; + total?: number; } diff --git a/packages/web-api/src/response/SearchFilesResponse.ts b/packages/web-api/src/response/SearchFilesResponse.ts index 8759050a3..a739fdaf9 100644 --- a/packages/web-api/src/response/SearchFilesResponse.ts +++ b/packages/web-api/src/response/SearchFilesResponse.ts @@ -10,89 +10,89 @@ import { WebAPICallResult } from '../WebClient'; export type SearchFilesResponse = WebAPICallResult & { - ok?: boolean; - query?: string; - files?: Files; error?: string; + files?: Files; needed?: string; + ok?: boolean; provided?: string; + query?: string; }; export interface Files { - total?: number; + matches?: Match[]; pagination?: Pagination; paging?: Paging; - matches?: Match[]; + total?: number; } export interface Match { - id?: string; + channels?: string[]; + comments_count?: number; created?: number; - timestamp?: number; - name?: string; - title?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; + display_as_bot?: boolean; + edit_link?: string; editable?: boolean; - size?: number; - mode?: string; - is_external?: boolean; + external_id?: string; external_type?: string; + external_url?: string; + filetype?: string; + groups?: string[]; + has_rich_preview?: boolean; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + is_external?: boolean; is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + name?: string; + non_owner_editable?: boolean; + 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; - display_as_bot?: boolean; - username?: string; - url_private?: string; - thumb_64?: string; - thumb_80?: string; + shares?: Shares; + size?: number; + thumb_1024?: string; + thumb_1024_h?: number; + thumb_1024_w?: number; + thumb_160?: string; thumb_360?: string; - thumb_360_w?: number; thumb_360_h?: number; + thumb_360_w?: number; thumb_480?: string; - thumb_480_w?: number; thumb_480_h?: number; - thumb_160?: string; + thumb_480_w?: number; + thumb_64?: string; thumb_720?: string; - thumb_720_w?: number; thumb_720_h?: number; + thumb_720_w?: number; + thumb_80?: string; thumb_800?: string; - thumb_800_w?: number; thumb_800_h?: number; + thumb_800_w?: number; thumb_960?: string; - thumb_960_w?: number; thumb_960_h?: number; - thumb_1024?: string; - thumb_1024_w?: number; - thumb_1024_h?: number; - original_w?: number; - original_h?: number; + thumb_960_w?: number; thumb_tiny?: string; - permalink?: string; - is_starred?: boolean; - shares?: Shares; - channels?: string[]; - groups?: string[]; - ims?: string[]; - external_id?: string; - external_url?: string; - has_rich_preview?: boolean; - url_private_download?: string; - permalink_public?: string; - edit_link?: string; - preview?: string; - preview_highlight?: string; - lines?: number; - lines_more?: number; - preview_is_truncated?: boolean; - image_exif_rotation?: number; - last_editor?: string; - non_owner_editable?: boolean; - updated?: number; thumb_video?: string; - media_display_type?: string; - comments_count?: number; + timestamp?: number; + title?: string; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; } export interface Shares { @@ -100,27 +100,27 @@ export interface Shares { } export interface Public { + channel_name?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - channel_name?: string; - team_id?: string; share_user_id?: string; + team_id?: string; + ts?: string; } export interface Pagination { - total_count?: number; - page?: number; - per_page?: number; - page_count?: number; first?: number; last?: number; + page?: number; + page_count?: number; + per_page?: number; + total_count?: number; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/SearchMessagesResponse.ts b/packages/web-api/src/response/SearchMessagesResponse.ts index 5432319dd..5eff7b107 100644 --- a/packages/web-api/src/response/SearchMessagesResponse.ts +++ b/packages/web-api/src/response/SearchMessagesResponse.ts @@ -10,124 +10,124 @@ import { WebAPICallResult } from '../WebClient'; export type SearchMessagesResponse = WebAPICallResult & { - ok?: boolean; - query?: string; - messages?: Messages; error?: string; + messages?: Messages; needed?: string; + ok?: boolean; provided?: string; + query?: string; }; export interface Messages { - total?: number; + matches?: Match[]; pagination?: Pagination; paging?: Paging; - matches?: Match[]; + total?: number; } export interface Match { - iid?: string; - team?: string; + attachments?: Attachment[]; + blocks?: Block[]; channel?: Channel; - type?: string; - user?: string; - username?: string; - ts?: string; - text?: string; - permalink?: string; + files?: FileElement[]; + iid?: string; + is_mpim?: boolean; no_reactions?: boolean; + permalink?: string; previous?: Previous; previous_2?: Previous; - blocks?: Block[]; - attachments?: Attachment[]; - is_mpim?: boolean; score?: number; - files?: FileElement[]; + team?: string; + text?: string; + ts?: string; + type?: string; + user?: string; + username?: string; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: FileElement[]; + footer?: string; + footer_icon?: string; + from_url?: string; id?: number; - app_id?: string; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - blocks?: Block[]; - preview?: Preview; - files?: FileElement[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -136,95 +136,95 @@ export interface SelectedOptionElement { } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: BlockFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: BlockFile; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } export interface Accessory { - type?: string; - text?: Hint; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: AccessoryConfirm; - accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -233,173 +233,173 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface BlockFile { - updated?: number; + 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; - timestamp?: number; - title?: string; - user?: string; - transcription?: Transcription; - vtt?: string; - username?: string; - url_private?: string; - url_private_download?: string; - to?: Cc[]; - id?: string; - name?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - subtype?: string; - mp4?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + 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; + username?: string; + vtt?: string; } export interface Cc { @@ -411,241 +411,241 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface InitialComment { - id?: string; + channel?: string; + comment?: string; created?: number; + id?: string; + is_intro?: boolean; timestamp?: number; user?: string; - comment?: string; - channel?: string; - is_intro?: boolean; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: string[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; } export interface FileElement { - id?: 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: InitialComment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: InitialComment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; } export interface Channel { id?: string; is_channel?: boolean; + is_ext_shared?: boolean; is_group?: boolean; is_im?: boolean; - name?: string; - is_shared?: boolean; + is_mpim?: boolean; is_org_shared?: boolean; - is_ext_shared?: boolean; + is_pending_ext_shared?: boolean; is_private?: boolean; - is_mpim?: boolean; + is_shared?: boolean; + name?: string; + name_normalized?: string; pending_shared?: string[]; - is_pending_ext_shared?: boolean; user?: string; - name_normalized?: string; } export interface Previous { + attachments?: Attachment[]; + blocks?: Block[]; + iid?: string; + permalink?: string; + text?: string; + ts?: string; type?: string; user?: string; username?: string; - ts?: string; - text?: string; - iid?: string; - permalink?: string; - attachments?: Attachment[]; - blocks?: Block[]; } export interface Pagination { - total_count?: number; - page?: number; - per_page?: number; - page_count?: number; first?: number; last?: number; + page?: number; + page_count?: number; + per_page?: number; + total_count?: number; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/StarsAddResponse.ts b/packages/web-api/src/response/StarsAddResponse.ts index efd84f9e8..f36d2071e 100644 --- a/packages/web-api/src/response/StarsAddResponse.ts +++ b/packages/web-api/src/response/StarsAddResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type StarsAddResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/StarsListResponse.ts b/packages/web-api/src/response/StarsListResponse.ts index d7b256a5a..3f4e764b7 100644 --- a/packages/web-api/src/response/StarsListResponse.ts +++ b/packages/web-api/src/response/StarsListResponse.ts @@ -10,156 +10,161 @@ import { WebAPICallResult } from '../WebClient'; export type StarsListResponse = WebAPICallResult & { - ok?: boolean; - items?: Item[]; - paging?: Paging; error?: string; + items?: Item[]; needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Item { - type?: string; channel?: string; + comment?: Comment; date_create?: number; + file?: File; message?: Message; - file?: ItemFile; - comment?: Comment; + type?: string; } export interface Comment { - id?: string; + channel?: string; + comment?: string; created?: number; - timestamp?: number; - user?: string; + id?: string; is_intro?: boolean; - comment?: string; - num_stars?: number; is_starred?: boolean; - channel?: string; + num_stars?: number; + timestamp?: number; + user?: User; } -export interface ItemFile { - id?: string; +export enum User { + Empty = '', + U00000000 = 'U00000000', +} + +export interface File { + 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; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; + deanimate?: string; + deanimate_gif?: string; + display_as_bot?: boolean; + duration_ms?: number; + edit_link?: string; editable?: boolean; - non_owner_editable?: boolean; editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; + external_id?: string; + external_type?: string; + external_url?: string; + filetype?: string; + from?: Cc[]; + groups?: string[]; + has_more?: boolean; + has_rich_preview?: boolean; + headers?: Headers; hls?: string; hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; + id?: string; + image_exif_rotation?: number; + ims?: string[]; + initial_comment?: Comment; is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; + is_public?: boolean; + is_starred?: boolean; + last_editor?: string; + lines?: number; + lines_more?: number; + media_display_type?: string; + mimetype?: string; + mode?: string; + mp4?: 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[]; + sent_to_self?: boolean; + shares?: Shares; + simplified_html?: string; size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: 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_w?: string; thumb_160_h?: string; + thumb_160_w?: string; thumb_360?: string; thumb_360_gif?: string; - thumb_360_w?: string; thumb_360_h?: string; + thumb_360_w?: string; thumb_480?: string; thumb_480_gif?: string; - thumb_480_w?: 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_w?: string; thumb_720_h?: string; + thumb_720_w?: string; + thumb_80?: string; thumb_800?: string; thumb_800_gif?: string; - thumb_800_w?: 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_w?: string; thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; + thumb_960_w?: string; thumb_gif?: string; thumb_pdf?: string; - thumb_pdf_w?: string; thumb_pdf_h?: string; + thumb_pdf_w?: string; thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; + thumb_video?: string; + thumb_video_h?: number; + thumb_video_w?: number; + timestamp?: number; + title?: string; to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: Comment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; + transcription?: Transcription; + updated?: number; + url_private?: string; + url_private_download?: string; + user?: string; + username?: string; + vtt?: string; } export interface Cc { @@ -171,153 +176,153 @@ export interface Cc { export interface Headers { date?: string; in_reply_to?: string; - reply_to?: string; message_id?: string; + reply_to?: string; } export interface Reaction { - name?: string; count?: number; - users?: string[]; + name?: string; url?: string; + users?: User[]; } export interface Shares { - public?: { [key: string]: Private[] }; private?: { [key: string]: Private[] }; + public?: { [key: string]: Private[] }; } export interface Private { - share_user_id?: string; + channel_name?: string; + latest_reply?: string; + reply_count?: number; reply_users?: string[]; reply_users_count?: number; - reply_count?: number; - ts?: string; - thread_ts?: string; - latest_reply?: string; - channel_name?: string; + share_user_id?: string; team_id?: string; + thread_ts?: string; + ts?: string; } export interface Transcription { - status?: string; locale?: string; + status?: string; } export interface Message { - bot_id?: string; - type?: string; - text?: string; - user?: string; - ts?: string; - team?: string; attachments?: Attachment[]; - is_starred?: boolean; - permalink?: string; - subtype?: string; - username?: string; blocks?: Block[]; + bot_id?: string; + bot_profile?: BotProfile; client_msg_id?: string; - thread_ts?: string; + display_as_bot?: boolean; + edited?: Edited; + files?: File[]; + inviter?: User; + is_locked?: boolean; + is_starred?: boolean; + last_read?: string; + latest_reply?: string; + permalink?: string; + reactions?: Reaction[]; reply_count?: number; + reply_users?: User[]; reply_users_count?: number; - latest_reply?: string; - reply_users?: string[]; subscribed?: boolean; - last_read?: string; - reactions?: Reaction[]; - bot_profile?: BotProfile; - edited?: Edited; - files?: FileElement[]; + subtype?: string; + team?: string; + text?: string; + thread_ts?: string; + ts?: string; + type?: string; upload?: boolean; - display_as_bot?: boolean; - is_locked?: boolean; - inviter?: string; + user?: User; + username?: string; } export interface Attachment { - msg_subtype?: string; - fallback?: string; - callback_id?: string; - color?: string; - pretext?: string; - service_url?: string; - service_name?: string; - service_icon?: string; + actions?: Action[]; + app_id?: string; + app_unfurl_url?: string; + author_icon?: string; author_id?: string; - author_name?: string; author_link?: string; - author_icon?: string; - from_url?: string; - original_url?: string; + author_name?: string; author_subname?: string; + blocks?: Block[]; + bot_id?: string; + callback_id?: string; channel_id?: string; channel_name?: string; + color?: string; + fallback?: string; + fields?: Field[]; + filename?: string; + files?: File[]; + footer?: string; + footer_icon?: string; + from_url?: string; id?: number; - app_id?: string; - bot_id?: string; + 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; - is_app_unfurl?: boolean; - app_unfurl_url?: string; - title?: string; - title_link?: 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; - fields?: Field[]; - image_url?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + thumb_height?: number; thumb_url?: string; thumb_width?: number; - thumb_height?: number; - video_url?: string; - video_html?: string; - video_html_width?: number; - video_html_height?: number; - footer?: string; - footer_icon?: string; + title?: string; + title_link?: string; ts?: string; - mrkdwn_in?: string[]; - actions?: Action[]; - blocks?: Block[]; - preview?: Preview; - files?: FileElement[]; - filename?: string; - size?: number; - mimetype?: string; url?: string; - metadata?: Metadata; + video_html?: string; + video_html_height?: number; + video_html_width?: number; + video_url?: string; } export interface Action { - id?: string; - name?: string; - text?: string; - style?: string; - type?: string; - value?: string; confirm?: ActionConfirm; - options?: SelectedOptionElement[]; - selected_options?: SelectedOptionElement[]; 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 { - title?: string; - text?: string; - ok_text?: string; dismiss_text?: string; + ok_text?: string; + text?: string; + title?: string; } export interface ActionOptionGroup { - text?: string; options?: SelectedOptionElement[]; + text?: string; } export interface SelectedOptionElement { @@ -326,95 +331,95 @@ export interface SelectedOptionElement { } export interface Block { - type?: string; - elements?: Accessory[]; - block_id?: string; - call_id?: string; + accessory?: Accessory; + alt_text?: string; api_decoration_available?: boolean; + block_id?: string; call?: Call; + call_id?: string; + dispatch_action?: boolean; + element?: Accessory; + elements?: Accessory[]; external_id?: string; - source?: string; - file_id?: string; - file?: ItemFile; - text?: Hint; fallback?: string; + fields?: Hint[]; + file?: File; + file_id?: string; + hint?: Hint; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Hint; - fields?: Hint[]; - accessory?: Accessory; label?: Hint; - element?: Accessory; - dispatch_action?: boolean; - hint?: Hint; optional?: boolean; + source?: string; + text?: Hint; + title?: Hint; + type?: string; } -export interface Accessory { - type?: string; - text?: Hint; - action_id?: string; - url?: string; - value?: string; - style?: string; - confirm?: AccessoryConfirm; +export interface Accessory { accessibility_label?: string; - options?: InitialOptionElement[]; - initial_options?: InitialOptionElement[]; + action_id?: string; + alt_text?: string; + confirm?: AccessoryConfirm; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: InitialOptionElement; - placeholder?: Hint; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: InitialOptionElement; + initial_options?: InitialOptionElement[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: AccessoryOptionGroup[]; initial_user?: string; initial_users?: string[]; + max_selected_items?: number; + min_query_length?: number; + option_groups?: AccessoryOptionGroup[]; + options?: InitialOptionElement[]; + placeholder?: Hint; + response_url_enabled?: boolean; + style?: string; + text?: Hint; + type?: string; + url?: string; + value?: string; } export interface AccessoryConfirm { - title?: Hint; - text?: Hint; confirm?: Hint; deny?: Hint; style?: string; + text?: Hint; + title?: Hint; } export interface Hint { - type?: string; - text?: string; emoji?: boolean; + text?: string; + type?: string; verbatim?: boolean; } export interface Filter { - include?: string[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: string[]; } export interface InitialOptionElement { - text?: Hint; - value?: string; description?: Hint; + text?: Hint; url?: string; + value?: string; } export interface AccessoryOptionGroup { @@ -423,211 +428,88 @@ export interface AccessoryOptionGroup { } export interface Call { - v1?: V1; media_backend_type?: string; + v1?: V1; } export interface V1 { - id?: string; - app_id?: string; - app_icon_urls?: AppIconUrls; - date_start?: number; active_participants?: Participant[]; all_participants?: Participant[]; - display_id?: string; - join_url?: string; - desktop_app_join_url?: string; - name?: string; + app_icon_urls?: AppIconUrls; + app_id?: string; + channels?: string[]; created_by?: string; date_end?: number; - channels?: string[]; + date_start?: number; + desktop_app_join_url?: string; + display_id?: string; + has_ended?: boolean; + id?: string; is_dm_call?: boolean; - was_rejected?: boolean; - was_missed?: boolean; + join_url?: string; + name?: string; was_accepted?: boolean; - has_ended?: boolean; + was_missed?: boolean; + was_rejected?: boolean; } export interface Participant { - slack_id?: string; - external_id?: string; - display_name?: string; 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_128?: string; - image_192?: string; - image_512?: string; - image_1024?: string; image_original?: string; } export interface Field { + short?: boolean; title?: string; value?: string; - short?: boolean; -} - -export interface FileElement { - id?: string; - created?: number; - timestamp?: number; - name?: string; - title?: string; - subject?: string; - mimetype?: string; - filetype?: string; - pretty_type?: string; - user?: string; - mode?: string; - editable?: boolean; - non_owner_editable?: boolean; - editor?: string; - last_editor?: string; - updated?: number; - subtype?: string; - transcription?: Transcription; - mp4?: string; - vtt?: string; - hls?: string; - hls_embed?: string; - duration_ms?: number; - thumb_video_w?: number; - thumb_video_h?: number; - original_attachment_count?: number; - is_external?: boolean; - external_type?: string; - external_id?: string; - external_url?: string; - username?: string; - size?: number; - url_private?: string; - url_private_download?: string; - app_id?: string; - app_name?: string; - thumb_64?: string; - thumb_64_gif?: string; - thumb_64_w?: string; - thumb_64_h?: string; - thumb_80?: string; - thumb_80_gif?: string; - thumb_80_w?: string; - thumb_80_h?: string; - thumb_160?: string; - thumb_160_gif?: string; - thumb_160_w?: string; - thumb_160_h?: string; - thumb_360?: string; - thumb_360_gif?: string; - thumb_360_w?: string; - thumb_360_h?: string; - thumb_480?: string; - thumb_480_gif?: string; - thumb_480_w?: string; - thumb_480_h?: string; - thumb_720?: string; - thumb_720_gif?: string; - thumb_720_w?: string; - thumb_720_h?: string; - thumb_800?: string; - thumb_800_gif?: string; - thumb_800_w?: string; - thumb_800_h?: string; - thumb_960?: string; - thumb_960_gif?: string; - thumb_960_w?: string; - thumb_960_h?: string; - thumb_1024?: string; - thumb_1024_gif?: string; - thumb_1024_w?: string; - thumb_1024_h?: string; - thumb_video?: string; - thumb_gif?: string; - thumb_pdf?: string; - thumb_pdf_w?: string; - thumb_pdf_h?: string; - thumb_tiny?: string; - converted_pdf?: string; - image_exif_rotation?: number; - original_w?: string; - original_h?: string; - deanimate?: string; - deanimate_gif?: string; - pjpeg?: string; - permalink?: string; - permalink_public?: string; - edit_link?: string; - has_rich_preview?: boolean; - media_display_type?: string; - preview_is_truncated?: boolean; - preview?: string; - preview_highlight?: string; - plain_text?: string; - preview_plain_text?: string; - has_more?: boolean; - sent_to_self?: boolean; - lines?: number; - lines_more?: number; - is_public?: boolean; - public_url_shared?: boolean; - display_as_bot?: boolean; - channels?: string[]; - groups?: string[]; - ims?: string[]; - shares?: Shares; - to?: Cc[]; - from?: Cc[]; - cc?: Cc[]; - channel_actions_ts?: string; - channel_actions_count?: number; - headers?: Headers; - simplified_html?: string; - bot_id?: string; - initial_comment?: Comment; - num_stars?: number; - is_starred?: boolean; - pinned_to?: string[]; - reactions?: Reaction[]; - comments_count?: number; } export interface Metadata { - thumb_64?: boolean; - thumb_80?: boolean; - thumb_160?: boolean; - original_w?: number; - original_h?: number; - thumb_360_w?: number; - thumb_360_h?: number; - format?: string; 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; } export interface Preview { - type?: string; can_remove?: boolean; - title?: Hint; - subtitle?: Hint; icon_url?: string; + subtitle?: Hint; + title?: Hint; + type?: string; } export interface BotProfile { - id?: string; - deleted?: boolean; - name?: string; - updated?: number; app_id?: string; + deleted?: boolean; icons?: Icons; + id?: string; + name?: string; team_id?: string; + updated?: number; } export interface Icons { @@ -637,14 +519,14 @@ export interface Icons { } export interface Edited { - user?: string; ts?: string; + user?: string; } export interface Paging { + page?: number; + pages?: number; per_page?: number; spill?: number; - page?: number; total?: number; - pages?: number; } diff --git a/packages/web-api/src/response/StarsRemoveResponse.ts b/packages/web-api/src/response/StarsRemoveResponse.ts index 5ba65a14e..0d35c152b 100644 --- a/packages/web-api/src/response/StarsRemoveResponse.ts +++ b/packages/web-api/src/response/StarsRemoveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type StarsRemoveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/TeamAccessLogsResponse.ts b/packages/web-api/src/response/TeamAccessLogsResponse.ts index 81cc7bb8a..953ef4100 100644 --- a/packages/web-api/src/response/TeamAccessLogsResponse.ts +++ b/packages/web-api/src/response/TeamAccessLogsResponse.ts @@ -10,30 +10,30 @@ import { WebAPICallResult } from '../WebClient'; export type TeamAccessLogsResponse = WebAPICallResult & { - ok?: boolean; - logins?: Login[]; - paging?: Paging; error?: string; + logins?: Login[]; needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Login { - user_id?: string; - username?: string; + count?: number; + country?: string; date_first?: number; date_last?: number; - count?: number; ip?: string; - user_agent?: string; isp?: string; - country?: string; region?: string; + user_agent?: string; + user_id?: string; + username?: string; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/TeamBillableInfoResponse.ts b/packages/web-api/src/response/TeamBillableInfoResponse.ts index 5e8e6efff..4464b4d95 100644 --- a/packages/web-api/src/response/TeamBillableInfoResponse.ts +++ b/packages/web-api/src/response/TeamBillableInfoResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type TeamBillableInfoResponse = WebAPICallResult & { - ok?: boolean; billable_info?: { [key: string]: BillableInfo }; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/TeamBillingInfoResponse.ts b/packages/web-api/src/response/TeamBillingInfoResponse.ts index 6d5ecfb83..92b31019f 100644 --- a/packages/web-api/src/response/TeamBillingInfoResponse.ts +++ b/packages/web-api/src/response/TeamBillingInfoResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type TeamBillingInfoResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; - provided?: string; + ok?: boolean; plan?: string; + provided?: string; }; diff --git a/packages/web-api/src/response/TeamInfoResponse.ts b/packages/web-api/src/response/TeamInfoResponse.ts index dee80d858..911cf1371 100644 --- a/packages/web-api/src/response/TeamInfoResponse.ts +++ b/packages/web-api/src/response/TeamInfoResponse.ts @@ -10,35 +10,35 @@ import { WebAPICallResult } from '../WebClient'; export type TeamInfoResponse = WebAPICallResult & { - ok?: boolean; - team?: Team; error?: string; needed?: string; + ok?: boolean; provided?: string; + team?: Team; }; export interface Team { - id?: string; - name?: string; + 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; + name?: string; url?: string; - enterprise_id?: string; - enterprise_name?: string; - enterprise_domain?: string; - discoverable?: string; - avatar_base_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_original?: string; } diff --git a/packages/web-api/src/response/TeamIntegrationLogsResponse.ts b/packages/web-api/src/response/TeamIntegrationLogsResponse.ts index f6697e019..2ec8879a5 100644 --- a/packages/web-api/src/response/TeamIntegrationLogsResponse.ts +++ b/packages/web-api/src/response/TeamIntegrationLogsResponse.ts @@ -10,36 +10,36 @@ import { WebAPICallResult } from '../WebClient'; export type TeamIntegrationLogsResponse = WebAPICallResult & { - ok?: boolean; - logs?: Log[]; - paging?: Paging; error?: string; + logs?: Log[]; needed?: string; + ok?: boolean; + paging?: Paging; provided?: string; }; export interface Log { - user_id?: string; - user_name?: string; - date?: string; - change_type?: string; - app_type?: string; app_id?: string; - scope?: 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; - channel?: string; - reason?: string; - resolution?: string; + user_id?: string; + user_name?: string; } export interface Paging { count?: number; - total?: number; page?: number; pages?: number; + total?: number; } diff --git a/packages/web-api/src/response/TeamPreferencesListResponse.ts b/packages/web-api/src/response/TeamPreferencesListResponse.ts index 397c3b55f..818ccbbe4 100644 --- a/packages/web-api/src/response/TeamPreferencesListResponse.ts +++ b/packages/web-api/src/response/TeamPreferencesListResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type TeamPreferencesListResponse = WebAPICallResult & { - ok?: boolean; - msg_edit_window_mins?: number; allow_message_deletion?: boolean; - display_real_names?: boolean; disable_file_uploads?: string; - who_can_post_general?: 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/response/TeamProfileGetResponse.ts b/packages/web-api/src/response/TeamProfileGetResponse.ts index 5f8a2207b..d2be76fc6 100644 --- a/packages/web-api/src/response/TeamProfileGetResponse.ts +++ b/packages/web-api/src/response/TeamProfileGetResponse.ts @@ -10,10 +10,10 @@ import { WebAPICallResult } from '../WebClient'; export type TeamProfileGetResponse = WebAPICallResult & { - ok?: boolean; - profile?: Profile; error?: string; needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; @@ -23,21 +23,21 @@ export interface Profile { } export interface Field { - id?: string; - ordering?: number; field_name?: string; - label?: string; hint?: string; - type?: string; + id?: string; is_hidden?: boolean; + label?: string; + ordering?: number; possible_values?: string[]; + type?: string; } export interface Section { id?: string; - team_id?: string; - section_type?: string; + is_hidden?: boolean; label?: string; order?: number; - is_hidden?: boolean; + section_type?: string; + team_id?: string; } diff --git a/packages/web-api/src/response/UsergroupsCreateResponse.ts b/packages/web-api/src/response/UsergroupsCreateResponse.ts index a8bbac0d8..c1ffb1952 100644 --- a/packages/web-api/src/response/UsergroupsCreateResponse.ts +++ b/packages/web-api/src/response/UsergroupsCreateResponse.ts @@ -10,31 +10,31 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsCreateResponse = WebAPICallResult & { - ok?: boolean; - usergroup?: Usergroup; error?: string; needed?: string; + ok?: boolean; provided?: string; + usergroup?: Usergroup; }; export interface Usergroup { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; date_create?: number; - date_update?: number; date_delete?: number; - auto_provision?: boolean; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - created_by?: string; - updated_by?: string; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; prefs?: Prefs; - channel_count?: number; + team_id?: string; + updated_by?: string; users?: string[]; } diff --git a/packages/web-api/src/response/UsergroupsDisableResponse.ts b/packages/web-api/src/response/UsergroupsDisableResponse.ts index 062f2be17..b9947caed 100644 --- a/packages/web-api/src/response/UsergroupsDisableResponse.ts +++ b/packages/web-api/src/response/UsergroupsDisableResponse.ts @@ -10,32 +10,32 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsDisableResponse = WebAPICallResult & { - ok?: boolean; - usergroup?: Usergroup; error?: string; needed?: string; + ok?: boolean; provided?: string; + usergroup?: Usergroup; }; export interface Usergroup { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; - date_create?: number; - date_update?: number; - date_delete?: number; auto_provision?: boolean; - enterprise_subteam_id?: string; + channel_count?: number; created_by?: string; - updated_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; - channel_count?: number; + team_id?: string; + updated_by?: string; users?: string[]; } diff --git a/packages/web-api/src/response/UsergroupsEnableResponse.ts b/packages/web-api/src/response/UsergroupsEnableResponse.ts index afa64e099..26fdf25be 100644 --- a/packages/web-api/src/response/UsergroupsEnableResponse.ts +++ b/packages/web-api/src/response/UsergroupsEnableResponse.ts @@ -10,31 +10,31 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsEnableResponse = WebAPICallResult & { - ok?: boolean; - usergroup?: Usergroup; error?: string; needed?: string; + ok?: boolean; provided?: string; + usergroup?: Usergroup; }; export interface Usergroup { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; date_create?: number; - date_update?: number; date_delete?: number; - auto_provision?: boolean; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - created_by?: string; - updated_by?: string; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; prefs?: Prefs; - channel_count?: number; + team_id?: string; + updated_by?: string; users?: string[]; } diff --git a/packages/web-api/src/response/UsergroupsListResponse.ts b/packages/web-api/src/response/UsergroupsListResponse.ts index 82914a814..f5f2e0f68 100644 --- a/packages/web-api/src/response/UsergroupsListResponse.ts +++ b/packages/web-api/src/response/UsergroupsListResponse.ts @@ -10,31 +10,31 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsListResponse = WebAPICallResult & { - ok?: boolean; - usergroups?: Usergroup[]; error?: string; needed?: string; + ok?: boolean; provided?: string; + usergroups?: Usergroup[]; }; export interface Usergroup { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; date_create?: number; - date_update?: number; date_delete?: number; - auto_provision?: boolean; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - created_by?: string; - updated_by?: string; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; prefs?: Prefs; - channel_count?: number; + team_id?: string; + updated_by?: string; } export interface Prefs { diff --git a/packages/web-api/src/response/UsergroupsUpdateResponse.ts b/packages/web-api/src/response/UsergroupsUpdateResponse.ts index f92e26f68..780c85c91 100644 --- a/packages/web-api/src/response/UsergroupsUpdateResponse.ts +++ b/packages/web-api/src/response/UsergroupsUpdateResponse.ts @@ -10,31 +10,31 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsUpdateResponse = WebAPICallResult & { - ok?: boolean; - usergroup?: Usergroup; error?: string; needed?: string; + ok?: boolean; provided?: string; + usergroup?: Usergroup; }; export interface Usergroup { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; date_create?: number; - date_update?: number; date_delete?: number; - auto_provision?: boolean; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - created_by?: string; - updated_by?: string; + handle?: string; + id?: string; + is_external?: boolean; + is_subteam?: boolean; + is_usergroup?: boolean; + name?: string; prefs?: Prefs; - channel_count?: number; + team_id?: string; + updated_by?: string; users?: string[]; } diff --git a/packages/web-api/src/response/UsergroupsUsersListResponse.ts b/packages/web-api/src/response/UsergroupsUsersListResponse.ts index 352cb5c48..2b066dfd4 100644 --- a/packages/web-api/src/response/UsergroupsUsersListResponse.ts +++ b/packages/web-api/src/response/UsergroupsUsersListResponse.ts @@ -10,9 +10,9 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsUsersListResponse = WebAPICallResult & { - ok?: boolean; - users?: string[]; error?: string; needed?: string; + ok?: boolean; provided?: string; + users?: string[]; }; diff --git a/packages/web-api/src/response/UsergroupsUsersUpdateResponse.ts b/packages/web-api/src/response/UsergroupsUsersUpdateResponse.ts index 593e941e3..18a3667fe 100644 --- a/packages/web-api/src/response/UsergroupsUsersUpdateResponse.ts +++ b/packages/web-api/src/response/UsergroupsUsersUpdateResponse.ts @@ -10,32 +10,32 @@ import { WebAPICallResult } from '../WebClient'; export type UsergroupsUsersUpdateResponse = WebAPICallResult & { - ok?: boolean; - usergroup?: Usergroup; error?: string; needed?: string; + ok?: boolean; provided?: string; + usergroup?: Usergroup; }; export interface Usergroup { - id?: string; - team_id?: string; - is_usergroup?: boolean; - is_subteam?: boolean; - name?: string; - description?: string; - handle?: string; - is_external?: boolean; + auto_provision?: boolean; + channel_count?: number; + created_by?: string; date_create?: number; - date_update?: number; date_delete?: number; - auto_provision?: boolean; + date_update?: number; + description?: string; enterprise_subteam_id?: string; - created_by?: string; - updated_by?: 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[]; - channel_count?: number; } export interface Prefs { diff --git a/packages/web-api/src/response/UsersConversationsResponse.ts b/packages/web-api/src/response/UsersConversationsResponse.ts index 5f92862cb..44ffb998e 100644 --- a/packages/web-api/src/response/UsersConversationsResponse.ts +++ b/packages/web-api/src/response/UsersConversationsResponse.ts @@ -10,57 +10,57 @@ import { WebAPICallResult } from '../WebClient'; export type UsersConversationsResponse = WebAPICallResult & { - ok?: boolean; channels?: Channel[]; - response_metadata?: ResponseMetadata; error?: string; needed?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface Channel { + conversation_host_id?: string; + created?: number; + creator?: string; + enterprise_id?: string; id?: string; - name?: 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; - created?: number; - is_archived?: boolean; - is_general?: boolean; - unlinked?: number; - name_normalized?: string; - is_shared?: boolean; - creator?: string; - is_ext_shared?: boolean; - is_org_shared?: boolean; - shared_team_ids?: string[]; - pending_shared?: string[]; - pending_connected_team_ids?: string[]; - is_pending_ext_shared?: boolean; - is_private?: boolean; - is_mpim?: boolean; - topic?: Purpose; - purpose?: Purpose; - previous_names?: string[]; - conversation_host_id?: string; is_moved?: number; - internal_team_ids?: string[]; - is_global_shared?: boolean; + is_mpim?: boolean; + is_open?: boolean; is_org_default?: boolean; is_org_mandatory?: boolean; - enterprise_id?: string; + is_org_shared?: boolean; + is_pending_ext_shared?: boolean; + is_private?: boolean; + is_shared?: boolean; + is_user_deleted?: boolean; last_read?: string; - is_open?: boolean; + name?: string; + name_normalized?: string; + parent_conversation?: string; + pending_connected_team_ids?: string[]; + pending_shared?: string[]; + previous_names?: string[]; priority?: number; + purpose?: Purpose; + shared_team_ids?: string[]; + topic?: Purpose; + unlinked?: number; user?: string; - is_user_deleted?: boolean; - parent_conversation?: string; } export interface Purpose { - value?: string; creator?: string; last_set?: number; + value?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/UsersDeletePhotoResponse.ts b/packages/web-api/src/response/UsersDeletePhotoResponse.ts index ada30b417..df7038771 100644 --- a/packages/web-api/src/response/UsersDeletePhotoResponse.ts +++ b/packages/web-api/src/response/UsersDeletePhotoResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type UsersDeletePhotoResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/UsersGetPresenceResponse.ts b/packages/web-api/src/response/UsersGetPresenceResponse.ts index 5de37f37a..dddb6933b 100644 --- a/packages/web-api/src/response/UsersGetPresenceResponse.ts +++ b/packages/web-api/src/response/UsersGetPresenceResponse.ts @@ -10,15 +10,15 @@ import { WebAPICallResult } from '../WebClient'; export type UsersGetPresenceResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; - error?: string; - needed?: string; - provided?: string; - presence?: string; - online?: boolean; auto_away?: boolean; - manual_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; }; diff --git a/packages/web-api/src/response/UsersIdentityResponse.ts b/packages/web-api/src/response/UsersIdentityResponse.ts index c7e94a783..f8f0a1d15 100644 --- a/packages/web-api/src/response/UsersIdentityResponse.ts +++ b/packages/web-api/src/response/UsersIdentityResponse.ts @@ -10,28 +10,28 @@ import { WebAPICallResult } from '../WebClient'; export type UsersIdentityResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; - user?: User; team?: Team; + user?: User; + warning?: string; }; export interface Team { - name?: string; id?: string; + name?: string; } export interface User { - name?: string; - id?: string; email?: string; + id?: string; + image_192?: string; image_24?: string; image_32?: string; image_48?: string; - image_72?: string; - image_192?: string; image_512?: string; + image_72?: string; + name?: string; } diff --git a/packages/web-api/src/response/UsersInfoResponse.ts b/packages/web-api/src/response/UsersInfoResponse.ts index 2859caf77..da393e8d1 100644 --- a/packages/web-api/src/response/UsersInfoResponse.ts +++ b/packages/web-api/src/response/UsersInfoResponse.ts @@ -10,87 +10,87 @@ import { WebAPICallResult } from '../WebClient'; export type UsersInfoResponse = WebAPICallResult & { - ok?: boolean; - user?: User; error?: string; needed?: string; + ok?: boolean; provided?: string; + user?: User; }; export interface User { - id?: string; - team_id?: string; - name?: string; - deleted?: boolean; color?: string; - real_name?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - profile?: Profile; + deleted?: boolean; + enterprise_user?: EnterpriseUser; + has_2fa?: boolean; + id?: string; is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; is_owner?: boolean; is_primary_owner?: boolean; is_restricted?: boolean; + is_stranger?: boolean; is_ultra_restricted?: boolean; - is_bot?: boolean; - is_app_user?: boolean; - updated?: number; locale?: string; - has_2fa?: boolean; - is_email_confirmed?: boolean; - enterprise_user?: EnterpriseUser; - is_stranger?: 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 EnterpriseUser { - id?: string; enterprise_id?: string; enterprise_name?: string; + id?: string; is_admin?: boolean; is_owner?: boolean; teams?: string[]; } export interface Profile { - title?: string; - phone?: string; - skype?: string; - real_name?: string; - real_name_normalized?: string; - display_name?: string; - display_name_normalized?: string; - status_text?: string; - status_emoji?: string; - status_expiration?: number; - avatar_hash?: string; - api_app_id?: 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; + huddle_state?: string; + huddle_state_expiration_ts?: number; + image_1024?: string; + image_192?: string; image_24?: string; image_32?: string; image_48?: string; - image_72?: string; - image_192?: string; image_512?: string; - status_text_canonical?: string; - team?: string; + image_72?: string; image_original?: string; is_custom_image?: boolean; - email?: string; - first_name?: string; last_name?: string; - image_1024?: string; - status_emoji_url?: string; + phone?: string; pronouns?: string; + real_name?: string; + real_name_normalized?: string; + skype?: string; + status_emoji?: string; status_emoji_display_info?: StatusEmojiDisplayInfo[]; - huddle_state?: string; - huddle_state_expiration_ts?: number; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface StatusEmojiDisplayInfo { - emoji_name?: string; display_alias?: string; display_url?: string; + emoji_name?: string; } diff --git a/packages/web-api/src/response/UsersListResponse.ts b/packages/web-api/src/response/UsersListResponse.ts index f38827690..2177d979a 100644 --- a/packages/web-api/src/response/UsersListResponse.ts +++ b/packages/web-api/src/response/UsersListResponse.ts @@ -10,94 +10,94 @@ import { WebAPICallResult } from '../WebClient'; export type UsersListResponse = WebAPICallResult & { - ok?: boolean; - members?: Member[]; cache_ts?: number; - offset?: string; - response_metadata?: ResponseMetadata; error?: string; + members?: Member[]; needed?: string; + offset?: string; + ok?: boolean; provided?: string; + response_metadata?: ResponseMetadata; }; export interface Member { - id?: string; - team_id?: string; - name?: string; - deleted?: boolean; color?: string; - real_name?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - profile?: Profile; + deleted?: boolean; + enterprise_user?: EnterpriseUser; + 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; - is_bot?: boolean; - is_app_user?: boolean; - updated?: number; - is_email_confirmed?: boolean; - who_can_share_contact_card?: string; is_workflow_bot?: boolean; - has_2fa?: boolean; locale?: string; - enterprise_user?: EnterpriseUser; - is_invited_user?: 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 EnterpriseUser { - id?: string; enterprise_id?: string; enterprise_name?: string; + id?: string; is_admin?: boolean; is_owner?: boolean; teams?: string[]; } export interface Profile { - title?: string; - phone?: string; - skype?: string; - real_name?: string; - real_name_normalized?: string; + always_active?: boolean; + api_app_id?: string; + avatar_hash?: string; + bot_id?: string; display_name?: string; display_name_normalized?: string; - status_text?: string; - status_emoji?: string; - status_emoji_display_info?: StatusEmojiDisplayInfo[]; - status_expiration?: number; - avatar_hash?: string; - image_original?: string; - is_custom_image?: boolean; email?: string; - pronouns?: string; first_name?: string; - last_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_72?: string; - image_192?: string; image_512?: string; - image_1024?: 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; - api_app_id?: string; - bot_id?: string; - always_active?: boolean; - guest_invited_by?: string; - guest_expiration_ts?: number; - huddle_state?: string; - huddle_state_expiration_ts?: number; + title?: string; } export interface StatusEmojiDisplayInfo { - emoji_name?: string; display_alias?: string; display_url?: string; + emoji_name?: string; } export interface ResponseMetadata { diff --git a/packages/web-api/src/response/UsersLookupByEmailResponse.ts b/packages/web-api/src/response/UsersLookupByEmailResponse.ts index 30adb0bb1..572dc3ddc 100644 --- a/packages/web-api/src/response/UsersLookupByEmailResponse.ts +++ b/packages/web-api/src/response/UsersLookupByEmailResponse.ts @@ -10,72 +10,72 @@ import { WebAPICallResult } from '../WebClient'; export type UsersLookupByEmailResponse = WebAPICallResult & { - ok?: boolean; - user?: User; error?: string; needed?: string; + ok?: boolean; provided?: string; + user?: User; }; export interface User { - id?: string; - team_id?: string; - name?: string; - deleted?: boolean; color?: string; - real_name?: string; - tz?: string; - tz_label?: string; - tz_offset?: number; - profile?: Profile; + deleted?: boolean; + has_2fa?: boolean; + id?: string; is_admin?: boolean; + is_app_user?: boolean; + is_bot?: boolean; + is_email_confirmed?: boolean; is_owner?: boolean; is_primary_owner?: boolean; is_restricted?: boolean; is_ultra_restricted?: boolean; - is_bot?: boolean; - is_app_user?: boolean; + name?: string; + profile?: Profile; + real_name?: string; + team_id?: string; + tz?: string; + tz_label?: string; + tz_offset?: number; updated?: number; - has_2fa?: boolean; - is_email_confirmed?: boolean; who_can_share_contact_card?: string; } export interface Profile { - title?: string; - phone?: string; - skype?: string; - real_name?: string; - real_name_normalized?: string; + avatar_hash?: string; display_name?: string; display_name_normalized?: string; - status_text?: string; - status_emoji?: string; - status_expiration?: number; - avatar_hash?: string; - image_original?: string; - is_custom_image?: boolean; email?: string; first_name?: string; - last_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_72?: string; - image_192?: string; image_512?: string; - image_1024?: string; - status_text_canonical?: string; - team?: string; - status_emoji_url?: 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[]; - huddle_state?: string; - huddle_state_expiration_ts?: number; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + team?: string; + title?: string; } export interface StatusEmojiDisplayInfo { - emoji_name?: string; display_alias?: string; display_url?: string; + emoji_name?: string; } diff --git a/packages/web-api/src/response/UsersProfileGetResponse.ts b/packages/web-api/src/response/UsersProfileGetResponse.ts index eff9e0c92..6d88ae6d1 100644 --- a/packages/web-api/src/response/UsersProfileGetResponse.ts +++ b/packages/web-api/src/response/UsersProfileGetResponse.ts @@ -10,54 +10,54 @@ import { WebAPICallResult } from '../WebClient'; export type UsersProfileGetResponse = WebAPICallResult & { - ok?: boolean; - profile?: Profile; error?: string; needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; }; export interface Profile { - title?: string; - phone?: string; - skype?: string; - real_name?: string; - real_name_normalized?: string; + avatar_hash?: string; display_name?: string; display_name_normalized?: string; - fields?: { [key: string]: Field }; - status_text?: string; - status_emoji?: string; - status_expiration?: number; - avatar_hash?: string; - image_original?: string; - is_custom_image?: boolean; email?: string; + fields?: { [key: string]: Field }; first_name?: string; - last_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_72?: string; - image_192?: string; image_512?: string; - image_1024?: string; - status_text_canonical?: string; - status_emoji_url?: 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[]; - huddle_state?: string; - huddle_state_expiration_ts?: number; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + title?: string; } export interface Field { - value?: string; alt?: string; label?: string; + value?: string; } export interface StatusEmojiDisplayInfo { - emoji_name?: string; display_alias?: string; display_url?: string; + emoji_name?: string; } diff --git a/packages/web-api/src/response/UsersProfileSetResponse.ts b/packages/web-api/src/response/UsersProfileSetResponse.ts index 5477989fd..f8dc042d8 100644 --- a/packages/web-api/src/response/UsersProfileSetResponse.ts +++ b/packages/web-api/src/response/UsersProfileSetResponse.ts @@ -10,54 +10,54 @@ import { WebAPICallResult } from '../WebClient'; export type UsersProfileSetResponse = WebAPICallResult & { - profile?: Profile; - ok?: boolean; - username?: string; error?: string; needed?: string; + ok?: boolean; + profile?: Profile; provided?: string; + username?: string; }; export interface Profile { - title?: string; - phone?: string; - skype?: string; - real_name?: string; - real_name_normalized?: string; + avatar_hash?: string; display_name?: string; display_name_normalized?: string; - fields?: { [key: string]: Field }; - status_text?: string; - status_emoji?: string; - status_expiration?: number; - avatar_hash?: string; - image_original?: string; - is_custom_image?: boolean; email?: string; + fields?: { [key: string]: Field }; first_name?: string; - last_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_72?: string; - image_192?: string; image_512?: string; - image_1024?: string; - status_text_canonical?: string; - status_emoji_url?: 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[]; - huddle_state?: string; - huddle_state_expiration_ts?: number; + status_emoji_url?: string; + status_expiration?: number; + status_text?: string; + status_text_canonical?: string; + title?: string; } export interface Field { - value?: string; alt?: string; + value?: string; } export interface StatusEmojiDisplayInfo { - emoji_name?: string; display_alias?: string; display_url?: string; + emoji_name?: string; } diff --git a/packages/web-api/src/response/UsersSetActiveResponse.ts b/packages/web-api/src/response/UsersSetActiveResponse.ts index 3eb13f50b..2ffae86dc 100644 --- a/packages/web-api/src/response/UsersSetActiveResponse.ts +++ b/packages/web-api/src/response/UsersSetActiveResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type UsersSetActiveResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/UsersSetPhotoResponse.ts b/packages/web-api/src/response/UsersSetPhotoResponse.ts index 859f467ca..1a4fb6a25 100644 --- a/packages/web-api/src/response/UsersSetPhotoResponse.ts +++ b/packages/web-api/src/response/UsersSetPhotoResponse.ts @@ -10,21 +10,21 @@ import { WebAPICallResult } from '../WebClient'; export type UsersSetPhotoResponse = WebAPICallResult & { - 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_72?: string; - image_192?: string; image_512?: string; - image_1024?: string; + image_72?: string; image_original?: string; - avatar_hash?: string; } diff --git a/packages/web-api/src/response/UsersSetPresenceResponse.ts b/packages/web-api/src/response/UsersSetPresenceResponse.ts index 011c45680..cac5e5b8b 100644 --- a/packages/web-api/src/response/UsersSetPresenceResponse.ts +++ b/packages/web-api/src/response/UsersSetPresenceResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type UsersSetPresenceResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/ViewsOpenResponse.ts b/packages/web-api/src/response/ViewsOpenResponse.ts index 3c5edab5b..74f7131a0 100644 --- a/packages/web-api/src/response/ViewsOpenResponse.ts +++ b/packages/web-api/src/response/ViewsOpenResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type ViewsOpenResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; - view?: View; response_metadata?: ResponseMetadata; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,107 +24,107 @@ export interface ResponseMetadata { } export interface View { - id?: string; - team_id?: string; - type?: string; - title?: Close; - submit?: Close; - close?: Close; + app_id?: string; + app_installed_team_id?: string; blocks?: Block[]; - private_metadata?: string; + bot_id?: string; callback_id?: string; + clear_on_close?: boolean; + close?: Close; external_id?: string; - state?: State; hash?: string; - clear_on_close?: boolean; + id?: string; notify_on_close?: boolean; - submit_disabled?: boolean; - root_view_id?: string; previous_view_id?: string; - app_id?: string; - app_installed_team_id?: string; - bot_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 { - type?: string; + accessory?: Accessory; + alt_text?: string; block_id?: string; - label?: Close; - element?: PurpleElement; dispatch_action?: boolean; - hint?: Close; - optional?: boolean; + element?: PurpleElement; elements?: ElementElement[]; fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Close; + label?: Close; + optional?: boolean; text?: Close; - fields?: Close[]; - accessory?: Accessory; + title?: Close; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; alt_text?: string; fallback?: string; - image_width?: number; - image_height?: number; image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + type?: string; } export interface PurpleElement { - type?: string; + accessibility_label?: string; action_id?: string; - placeholder?: Close; - initial_value?: string; - multiline?: boolean; - min_length?: number; - max_length?: number; + alt_text?: string; + confirm?: Confirm; + default_to_current_conversation?: boolean; dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - options?: Option[]; - initial_option?: Option; - confirm?: Confirm; - text?: Close; - url?: string; - value?: string; - style?: string; - accessibility_label?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_date?: string; + initial_option?: Option; initial_time?: string; + initial_user?: string; + initial_value?: string; + max_length?: number; + min_length?: number; min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + multiline?: boolean; option_groups?: OptionGroup[]; - initial_user?: string; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Close; - text?: Close; confirm?: Close; deny?: Close; style?: string; + text?: Close; + title?: Close; } export interface Close { - type?: Type; - text?: string; emoji?: boolean; + text?: string; + type?: Type; verbatim?: boolean; } @@ -139,16 +139,16 @@ export interface DispatchActionConfig { } export interface Filter { - include?: any[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: any[]; } export interface Option { - text?: Close; - value?: string; description?: Close; + text?: Close; url?: string; + value?: string; } export interface OptionGroup { @@ -157,39 +157,39 @@ export interface OptionGroup { } export interface ElementElement { - type?: string; - text?: Close; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; 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; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface State { diff --git a/packages/web-api/src/response/ViewsPublishResponse.ts b/packages/web-api/src/response/ViewsPublishResponse.ts index 4be893e36..fd00db885 100644 --- a/packages/web-api/src/response/ViewsPublishResponse.ts +++ b/packages/web-api/src/response/ViewsPublishResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type ViewsPublishResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; - view?: View; response_metadata?: ResponseMetadata; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,107 +24,107 @@ export interface ResponseMetadata { } export interface View { - id?: string; - team_id?: string; - type?: string; - title?: Close; - submit?: Close; - close?: Close; + app_id?: string; + app_installed_team_id?: string; blocks?: Block[]; - private_metadata?: string; + bot_id?: string; callback_id?: string; + clear_on_close?: boolean; + close?: Close; external_id?: string; - state?: State; hash?: string; - clear_on_close?: boolean; + id?: string; notify_on_close?: boolean; - submit_disabled?: boolean; - root_view_id?: string; previous_view_id?: string; - app_id?: string; - app_installed_team_id?: string; - bot_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 { - type?: string; + accessory?: Accessory; + alt_text?: string; block_id?: string; - label?: Close; - element?: PurpleElement; dispatch_action?: boolean; - hint?: Close; - optional?: boolean; + element?: PurpleElement; elements?: ElementElement[]; fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Close; + label?: Close; + optional?: boolean; text?: Close; - fields?: Close[]; - accessory?: Accessory; + title?: Close; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; alt_text?: string; fallback?: string; - image_width?: number; - image_height?: number; image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + type?: string; } export interface PurpleElement { - type?: string; + accessibility_label?: string; action_id?: string; - placeholder?: Close; - initial_value?: string; - multiline?: boolean; - min_length?: number; - max_length?: number; + alt_text?: string; + confirm?: Confirm; + default_to_current_conversation?: boolean; dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - options?: Option[]; - initial_option?: Option; - confirm?: Confirm; - text?: Close; - url?: string; - value?: string; - style?: string; - accessibility_label?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_date?: string; + initial_option?: Option; initial_time?: string; + initial_user?: string; + initial_value?: string; + max_length?: number; + min_length?: number; min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + multiline?: boolean; option_groups?: OptionGroup[]; - initial_user?: string; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Close; - text?: Close; confirm?: Close; deny?: Close; style?: string; + text?: Close; + title?: Close; } export interface Close { - type?: Type; - text?: string; emoji?: boolean; + text?: string; + type?: Type; verbatim?: boolean; } @@ -139,16 +139,16 @@ export interface DispatchActionConfig { } export interface Filter { - include?: any[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: any[]; } export interface Option { - text?: Close; - value?: string; description?: Close; + text?: Close; url?: string; + value?: string; } export interface OptionGroup { @@ -157,39 +157,39 @@ export interface OptionGroup { } export interface ElementElement { - type?: string; - text?: Close; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; 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; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface State { diff --git a/packages/web-api/src/response/ViewsPushResponse.ts b/packages/web-api/src/response/ViewsPushResponse.ts index cdea8acec..85de8bff8 100644 --- a/packages/web-api/src/response/ViewsPushResponse.ts +++ b/packages/web-api/src/response/ViewsPushResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type ViewsPushResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; - view?: View; response_metadata?: ResponseMetadata; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,107 +24,107 @@ export interface ResponseMetadata { } export interface View { - id?: string; - team_id?: string; - type?: string; - title?: Close; - submit?: Close; - close?: Close; + app_id?: string; + app_installed_team_id?: string; blocks?: Block[]; - private_metadata?: string; + bot_id?: string; callback_id?: string; + clear_on_close?: boolean; + close?: Close; external_id?: string; - state?: State; hash?: string; - clear_on_close?: boolean; + id?: string; notify_on_close?: boolean; - submit_disabled?: boolean; - root_view_id?: string; previous_view_id?: string; - app_id?: string; - app_installed_team_id?: string; - bot_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 { - type?: string; + accessory?: Accessory; + alt_text?: string; block_id?: string; - label?: Close; - element?: PurpleElement; dispatch_action?: boolean; - hint?: Close; - optional?: boolean; + element?: PurpleElement; elements?: ElementElement[]; fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Close; + label?: Close; + optional?: boolean; text?: Close; - fields?: Close[]; - accessory?: Accessory; + title?: Close; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; alt_text?: string; fallback?: string; - image_width?: number; - image_height?: number; image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + type?: string; } export interface PurpleElement { - type?: string; + accessibility_label?: string; action_id?: string; - placeholder?: Close; - initial_value?: string; - multiline?: boolean; - min_length?: number; - max_length?: number; + alt_text?: string; + confirm?: Confirm; + default_to_current_conversation?: boolean; dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - options?: Option[]; - initial_option?: Option; - confirm?: Confirm; - text?: Close; - url?: string; - value?: string; - style?: string; - accessibility_label?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_date?: string; + initial_option?: Option; initial_time?: string; + initial_user?: string; + initial_value?: string; + max_length?: number; + min_length?: number; min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + multiline?: boolean; option_groups?: OptionGroup[]; - initial_user?: string; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Close; - text?: Close; confirm?: Close; deny?: Close; style?: string; + text?: Close; + title?: Close; } export interface Close { - type?: Type; - text?: string; emoji?: boolean; + text?: string; + type?: Type; verbatim?: boolean; } @@ -139,16 +139,16 @@ export interface DispatchActionConfig { } export interface Filter { - include?: any[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: any[]; } export interface Option { - text?: Close; - value?: string; description?: Close; + text?: Close; url?: string; + value?: string; } export interface OptionGroup { @@ -157,39 +157,39 @@ export interface OptionGroup { } export interface ElementElement { - type?: string; - text?: Close; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; 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; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface State { diff --git a/packages/web-api/src/response/ViewsUpdateResponse.ts b/packages/web-api/src/response/ViewsUpdateResponse.ts index 1fa49ad3a..616bbf70c 100644 --- a/packages/web-api/src/response/ViewsUpdateResponse.ts +++ b/packages/web-api/src/response/ViewsUpdateResponse.ts @@ -10,13 +10,13 @@ import { WebAPICallResult } from '../WebClient'; export type ViewsUpdateResponse = WebAPICallResult & { - ok?: boolean; - warning?: string; error?: string; needed?: string; + ok?: boolean; provided?: string; - view?: View; response_metadata?: ResponseMetadata; + view?: View; + warning?: string; }; export interface ResponseMetadata { @@ -24,107 +24,107 @@ export interface ResponseMetadata { } export interface View { - id?: string; - team_id?: string; - type?: string; - title?: Close; - submit?: Close; - close?: Close; + app_id?: string; + app_installed_team_id?: string; blocks?: Block[]; - private_metadata?: string; + bot_id?: string; callback_id?: string; + clear_on_close?: boolean; + close?: Close; external_id?: string; - state?: State; hash?: string; - clear_on_close?: boolean; + id?: string; notify_on_close?: boolean; - submit_disabled?: boolean; - root_view_id?: string; previous_view_id?: string; - app_id?: string; - app_installed_team_id?: string; - bot_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 { - type?: string; + accessory?: Accessory; + alt_text?: string; block_id?: string; - label?: Close; - element?: PurpleElement; dispatch_action?: boolean; - hint?: Close; - optional?: boolean; + element?: PurpleElement; elements?: ElementElement[]; fallback?: string; + fields?: Close[]; + hint?: Close; + image_bytes?: number; + image_height?: number; image_url?: string; image_width?: number; - image_height?: number; - image_bytes?: number; - alt_text?: string; - title?: Close; + label?: Close; + optional?: boolean; text?: Close; - fields?: Close[]; - accessory?: Accessory; + title?: Close; + type?: string; } export interface Accessory { - type?: string; - image_url?: string; alt_text?: string; fallback?: string; - image_width?: number; - image_height?: number; image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; + type?: string; } export interface PurpleElement { - type?: string; + accessibility_label?: string; action_id?: string; - placeholder?: Close; - initial_value?: string; - multiline?: boolean; - min_length?: number; - max_length?: number; + alt_text?: string; + confirm?: Confirm; + default_to_current_conversation?: boolean; dispatch_action_config?: DispatchActionConfig; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - options?: Option[]; - initial_option?: Option; - confirm?: Confirm; - text?: Close; - url?: string; - value?: string; - style?: string; - accessibility_label?: string; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_date?: string; + initial_option?: Option; initial_time?: string; + initial_user?: string; + initial_value?: string; + max_length?: number; + min_length?: number; min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; + multiline?: boolean; option_groups?: OptionGroup[]; - initial_user?: string; + options?: Option[]; + placeholder?: Close; + response_url_enabled?: boolean; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface Confirm { - title?: Close; - text?: Close; confirm?: Close; deny?: Close; style?: string; + text?: Close; + title?: Close; } export interface Close { - type?: Type; - text?: string; emoji?: boolean; + text?: string; + type?: Type; verbatim?: boolean; } @@ -139,16 +139,16 @@ export interface DispatchActionConfig { } export interface Filter { - include?: any[]; - exclude_external_shared_channels?: boolean; exclude_bot_users?: boolean; + exclude_external_shared_channels?: boolean; + include?: any[]; } export interface Option { - text?: Close; - value?: string; description?: Close; + text?: Close; url?: string; + value?: string; } export interface OptionGroup { @@ -157,39 +157,39 @@ export interface OptionGroup { } export interface ElementElement { - type?: string; - text?: Close; + accessibility_label?: string; action_id?: string; - url?: string; - value?: string; - style?: string; + alt_text?: string; confirm?: Confirm; - accessibility_label?: string; - options?: Option[]; - initial_options?: Option[]; + default_to_current_conversation?: boolean; + fallback?: string; + filter?: Filter; focus_on_load?: boolean; - initial_option?: Option; - placeholder?: Close; + image_bytes?: number; + image_height?: number; + image_url?: string; + image_width?: number; initial_channel?: string; - response_url_enabled?: boolean; initial_channels?: string[]; - max_selected_items?: number; initial_conversation?: string; - default_to_current_conversation?: boolean; - filter?: Filter; initial_conversations?: string[]; initial_date?: string; + initial_option?: Option; + initial_options?: Option[]; initial_time?: string; - min_query_length?: number; - image_url?: string; - alt_text?: string; - fallback?: string; - image_width?: number; - image_height?: number; - image_bytes?: number; - option_groups?: OptionGroup[]; 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; + style?: string; + text?: Close; + type?: string; + url?: string; + value?: string; } export interface State { diff --git a/packages/web-api/src/response/WorkflowsStepCompletedResponse.ts b/packages/web-api/src/response/WorkflowsStepCompletedResponse.ts index 97cb5f388..1ae417c9a 100644 --- a/packages/web-api/src/response/WorkflowsStepCompletedResponse.ts +++ b/packages/web-api/src/response/WorkflowsStepCompletedResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type WorkflowsStepCompletedResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/WorkflowsStepFailedResponse.ts b/packages/web-api/src/response/WorkflowsStepFailedResponse.ts index e3a6ebafd..15483fee7 100644 --- a/packages/web-api/src/response/WorkflowsStepFailedResponse.ts +++ b/packages/web-api/src/response/WorkflowsStepFailedResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type WorkflowsStepFailedResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/packages/web-api/src/response/WorkflowsUpdateStepResponse.ts b/packages/web-api/src/response/WorkflowsUpdateStepResponse.ts index f33fc9211..7ca0e335d 100644 --- a/packages/web-api/src/response/WorkflowsUpdateStepResponse.ts +++ b/packages/web-api/src/response/WorkflowsUpdateStepResponse.ts @@ -10,8 +10,8 @@ import { WebAPICallResult } from '../WebClient'; export type WorkflowsUpdateStepResponse = WebAPICallResult & { - ok?: boolean; error?: string; needed?: string; + ok?: boolean; provided?: string; }; diff --git a/scripts/code_generator.rb b/scripts/code_generator.rb index 499a723e6..905fa56cb 100644 --- a/scripts/code_generator.rb +++ b/scripts/code_generator.rb @@ -24,8 +24,7 @@ class TsWriter def write(root_class_name, json_path, typedef_filepath, input_json) - # cmd = "npx quicktype --just-types --all-properties-optional --acronym-style original -t #{root_class_name} -l ts -o #{typedef_filepath}" - cmd = "npx quicktype --just-types --all-properties-optional --acronym-style original -t #{root_class_name} -l ts" + cmd = "npx quicktype --just-types --alphabetize-properties --all-properties-optional --acronym-style original -t #{root_class_name} -l ts" puts "Generating #{root_class_name} from #{json_path}" Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr| stdin.write(input_json)