@mastra/slack 1.0.2 → 1.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/LICENSE.md +30 -0
- package/README.md +146 -0
- package/dist/index.cjs +5590 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +678 -0
- package/dist/index.d.ts +678 -0
- package/dist/index.js +5548 -5
- package/dist/index.js.map +1 -0
- package/package.json +53 -51
- package/dist/slack/src/client/index.d.ts +0 -3
- package/dist/slack/src/client/schemas.gen.d.ts +0 -2489
- package/dist/slack/src/client/service-comments.d.ts +0 -698
- package/dist/slack/src/client/services.gen.d.ts +0 -701
- package/dist/slack/src/client/types.gen.d.ts +0 -5883
- package/dist/slack/src/client/zodSchema.d.ts +0 -20843
- package/dist/slack/src/index.d.ts +0 -725
- package/dist/slack.cjs.development.js +0 -7469
- package/dist/slack.cjs.development.js.map +0 -1
- package/dist/slack.cjs.production.min.js +0 -2
- package/dist/slack.cjs.production.min.js.map +0 -1
- package/dist/slack.esm.js +0 -7465
- package/dist/slack.esm.js.map +0 -1
- package/src/Slack.test.ts +0 -57
- package/src/assets/slack.png +0 -0
- package/src/assets/slack.svg +0 -37
- package/src/client/index.ts +0 -4
- package/src/client/schemas.gen.ts +0 -2600
- package/src/client/service-comments.ts +0 -698
- package/src/client/services.gen.ts +0 -1853
- package/src/client/types.gen.ts +0 -6456
- package/src/client/zodSchema.ts +0 -6740
- package/src/index.ts +0 -359
|
@@ -1,1853 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import { createClient, createConfig, type Options, urlSearchParamsBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { AdminAppsApproveData, AdminAppsApproveError, AdminAppsApproveResponse, AdminAppsApprovedListData, AdminAppsApprovedListError, AdminAppsApprovedListResponse, AdminAppsRequestsListData, AdminAppsRequestsListError, AdminAppsRequestsListResponse, AdminAppsRestrictData, AdminAppsRestrictError, AdminAppsRestrictResponse, AdminAppsRestrictedListData, AdminAppsRestrictedListError, AdminAppsRestrictedListResponse, AdminConversationsArchiveData, AdminConversationsArchiveError, AdminConversationsArchiveResponse, AdminConversationsConvertToPrivateData, AdminConversationsConvertToPrivateError, AdminConversationsConvertToPrivateResponse, AdminConversationsCreateData, AdminConversationsCreateError, AdminConversationsCreateResponse, AdminConversationsDeleteData, AdminConversationsDeleteError, AdminConversationsDeleteResponse, AdminConversationsDisconnectSharedData, AdminConversationsDisconnectSharedError, AdminConversationsDisconnectSharedResponse, AdminConversationsEkmListOriginalConnectedChannelInfoData, AdminConversationsEkmListOriginalConnectedChannelInfoError, AdminConversationsEkmListOriginalConnectedChannelInfoResponse, AdminConversationsGetConversationPrefsData, AdminConversationsGetConversationPrefsError, AdminConversationsGetConversationPrefsResponse, AdminConversationsGetTeamsData, AdminConversationsGetTeamsError, AdminConversationsGetTeamsResponse, AdminConversationsInviteData, AdminConversationsInviteError, AdminConversationsInviteResponse, AdminConversationsRenameData, AdminConversationsRenameError, AdminConversationsRenameResponse, AdminConversationsRestrictAccessAddGroupData, AdminConversationsRestrictAccessAddGroupError, AdminConversationsRestrictAccessAddGroupResponse, AdminConversationsRestrictAccessListGroupsData, AdminConversationsRestrictAccessListGroupsError, AdminConversationsRestrictAccessListGroupsResponse, AdminConversationsRestrictAccessRemoveGroupData, AdminConversationsRestrictAccessRemoveGroupError, AdminConversationsRestrictAccessRemoveGroupResponse, AdminConversationsSearchData, AdminConversationsSearchError, AdminConversationsSearchResponse, AdminConversationsSetConversationPrefsData, AdminConversationsSetConversationPrefsError, AdminConversationsSetConversationPrefsResponse, AdminConversationsSetTeamsData, AdminConversationsSetTeamsError, AdminConversationsSetTeamsResponse, AdminConversationsUnarchiveData, AdminConversationsUnarchiveError, AdminConversationsUnarchiveResponse, AdminEmojiAddData, AdminEmojiAddError, AdminEmojiAddResponse, AdminEmojiAddAliasData, AdminEmojiAddAliasError, AdminEmojiAddAliasResponse, AdminEmojiListData, AdminEmojiListError, AdminEmojiListResponse, AdminEmojiRemoveData, AdminEmojiRemoveError, AdminEmojiRemoveResponse, AdminEmojiRenameData, AdminEmojiRenameError, AdminEmojiRenameResponse, AdminInviteRequestsApproveData, AdminInviteRequestsApproveError, AdminInviteRequestsApproveResponse, AdminInviteRequestsApprovedListData, AdminInviteRequestsApprovedListError, AdminInviteRequestsApprovedListResponse, AdminInviteRequestsDeniedListData, AdminInviteRequestsDeniedListError, AdminInviteRequestsDeniedListResponse, AdminInviteRequestsDenyData, AdminInviteRequestsDenyError, AdminInviteRequestsDenyResponse, AdminInviteRequestsListData, AdminInviteRequestsListError, AdminInviteRequestsListResponse, AdminTeamsAdminsListData, AdminTeamsAdminsListError, AdminTeamsAdminsListResponse, AdminTeamsCreateData, AdminTeamsCreateError, AdminTeamsCreateResponse, AdminTeamsListData, AdminTeamsListError, AdminTeamsListResponse, AdminTeamsOwnersListData, AdminTeamsOwnersListError, AdminTeamsOwnersListResponse, AdminTeamsSettingsInfoData, AdminTeamsSettingsInfoError, AdminTeamsSettingsInfoResponse, AdminTeamsSettingsSetDefaultChannelsData, AdminTeamsSettingsSetDefaultChannelsError, AdminTeamsSettingsSetDefaultChannelsResponse, AdminTeamsSettingsSetDescriptionData, AdminTeamsSettingsSetDescriptionError, AdminTeamsSettingsSetDescriptionResponse, AdminTeamsSettingsSetDiscoverabilityData, AdminTeamsSettingsSetDiscoverabilityError, AdminTeamsSettingsSetDiscoverabilityResponse, AdminTeamsSettingsSetIconData, AdminTeamsSettingsSetIconError, AdminTeamsSettingsSetIconResponse, AdminTeamsSettingsSetNameData, AdminTeamsSettingsSetNameError, AdminTeamsSettingsSetNameResponse, AdminUsergroupsAddChannelsData, AdminUsergroupsAddChannelsError, AdminUsergroupsAddChannelsResponse, AdminUsergroupsAddTeamsData, AdminUsergroupsAddTeamsError, AdminUsergroupsAddTeamsResponse, AdminUsergroupsListChannelsData, AdminUsergroupsListChannelsError, AdminUsergroupsListChannelsResponse, AdminUsergroupsRemoveChannelsData, AdminUsergroupsRemoveChannelsError, AdminUsergroupsRemoveChannelsResponse, AdminUsersAssignData, AdminUsersAssignError, AdminUsersAssignResponse, AdminUsersInviteData, AdminUsersInviteError, AdminUsersInviteResponse, AdminUsersListData, AdminUsersListError, AdminUsersListResponse, AdminUsersRemoveData, AdminUsersRemoveError, AdminUsersRemoveResponse, AdminUsersSessionInvalidateData, AdminUsersSessionInvalidateError, AdminUsersSessionInvalidateResponse, AdminUsersSessionResetData, AdminUsersSessionResetError, AdminUsersSessionResetResponse, AdminUsersSetAdminData, AdminUsersSetAdminError, AdminUsersSetAdminResponse, AdminUsersSetExpirationData, AdminUsersSetExpirationError, AdminUsersSetExpirationResponse, AdminUsersSetOwnerData, AdminUsersSetOwnerError, AdminUsersSetOwnerResponse, AdminUsersSetRegularData, AdminUsersSetRegularError, AdminUsersSetRegularResponse, ApiTestData, ApiTestError, ApiTestResponse, AppsEventAuthorizationsListData, AppsEventAuthorizationsListError, AppsEventAuthorizationsListResponse, AppsPermissionsInfoData, AppsPermissionsInfoError, AppsPermissionsInfoResponse, AppsPermissionsRequestData, AppsPermissionsRequestError, AppsPermissionsRequestResponse, AppsPermissionsResourcesListData, AppsPermissionsResourcesListError, AppsPermissionsResourcesListResponse, AppsPermissionsScopesListData, AppsPermissionsScopesListError, AppsPermissionsScopesListResponse, AppsPermissionsUsersListData, AppsPermissionsUsersListError, AppsPermissionsUsersListResponse, AppsPermissionsUsersRequestData, AppsPermissionsUsersRequestError, AppsPermissionsUsersRequestResponse, AppsUninstallData, AppsUninstallError, AppsUninstallResponse, AuthRevokeData, AuthRevokeError, AuthRevokeResponse, AuthTestData, AuthTestError, AuthTestResponse, BotsInfoData, BotsInfoError, BotsInfoResponse, CallsAddData, CallsAddError, CallsAddResponse, CallsEndData, CallsEndError, CallsEndResponse, CallsInfoData, CallsInfoError, CallsInfoResponse, CallsParticipantsAddData, CallsParticipantsAddError, CallsParticipantsAddResponse, CallsParticipantsRemoveData, CallsParticipantsRemoveError, CallsParticipantsRemoveResponse, CallsUpdateData, CallsUpdateError, CallsUpdateResponse, ChatDeleteData, ChatDeleteError, ChatDeleteResponse, ChatDeleteScheduledMessageData, ChatDeleteScheduledMessageError, ChatDeleteScheduledMessageResponse, ChatGetPermalinkData, ChatGetPermalinkError, ChatGetPermalinkResponse, ChatMeMessageData, ChatMeMessageError, ChatMeMessageResponse, ChatPostEphemeralData, ChatPostEphemeralError, ChatPostEphemeralResponse, ChatPostMessageData, ChatPostMessageError, ChatPostMessageResponse, ChatScheduleMessageData, ChatScheduleMessageError, ChatScheduleMessageResponse, ChatScheduledMessagesListData, ChatScheduledMessagesListError, ChatScheduledMessagesListResponse, ChatUnfurlData, ChatUnfurlError, ChatUnfurlResponse, ChatUpdateData, ChatUpdateError, ChatUpdateResponse, ConversationsArchiveData, ConversationsArchiveError, ConversationsArchiveResponse, ConversationsCloseData, ConversationsCloseError, ConversationsCloseResponse, ConversationsCreateData, ConversationsCreateError, ConversationsCreateResponse, ConversationsHistoryData, ConversationsHistoryError, ConversationsHistoryResponse, ConversationsInfoData, ConversationsInfoError, ConversationsInfoResponse, ConversationsInviteData, ConversationsInviteError, ConversationsInviteResponse, ConversationsJoinData, ConversationsJoinError, ConversationsJoinResponse, ConversationsKickData, ConversationsKickError, ConversationsKickResponse, ConversationsLeaveData, ConversationsLeaveError, ConversationsLeaveResponse, ConversationsListData, ConversationsListError, ConversationsListResponse, ConversationsMarkData, ConversationsMarkError, ConversationsMarkResponse, ConversationsMembersData, ConversationsMembersError, ConversationsMembersResponse, ConversationsOpenData, ConversationsOpenError, ConversationsOpenResponse, ConversationsRenameData, ConversationsRenameError, ConversationsRenameResponse, ConversationsRepliesData, ConversationsRepliesError, ConversationsRepliesResponse, ConversationsSetPurposeData, ConversationsSetPurposeError, ConversationsSetPurposeResponse, ConversationsSetTopicData, ConversationsSetTopicError, ConversationsSetTopicResponse, ConversationsUnarchiveData, ConversationsUnarchiveError, ConversationsUnarchiveResponse, DialogOpenData, DialogOpenError, DialogOpenResponse, DndEndDndData, DndEndDndError, DndEndDndResponse, DndEndSnoozeData, DndEndSnoozeError, DndEndSnoozeResponse, DndInfoData, DndInfoError, DndInfoResponse, DndSetSnoozeData, DndSetSnoozeError, DndSetSnoozeResponse, DndTeamInfoData, DndTeamInfoError, DndTeamInfoResponse, EmojiListData, EmojiListError, EmojiListResponse, FilesCommentsDeleteData, FilesCommentsDeleteError, FilesCommentsDeleteResponse, FilesDeleteData, FilesDeleteError, FilesDeleteResponse, FilesInfoData, FilesInfoError, FilesInfoResponse, FilesListData, FilesListError, FilesListResponse, FilesRemoteAddData, FilesRemoteAddError, FilesRemoteAddResponse, FilesRemoteInfoData, FilesRemoteInfoError, FilesRemoteInfoResponse, FilesRemoteListData, FilesRemoteListError, FilesRemoteListResponse, FilesRemoteRemoveData, FilesRemoteRemoveError, FilesRemoteRemoveResponse, FilesRemoteShareData, FilesRemoteShareError, FilesRemoteShareResponse, FilesRemoteUpdateData, FilesRemoteUpdateError, FilesRemoteUpdateResponse, FilesRevokePublicUrlData, FilesRevokePublicUrlError, FilesRevokePublicUrlResponse, FilesSharedPublicUrlData, FilesSharedPublicUrlError, FilesSharedPublicUrlResponse, FilesUploadData, FilesUploadError, FilesUploadResponse, MigrationExchangeData, MigrationExchangeError, MigrationExchangeResponse, OauthAccessData, OauthAccessError, OauthAccessResponse, OauthTokenData, OauthTokenError, OauthTokenResponse, OauthV2AccessData, OauthV2AccessError, OauthV2AccessResponse, PinsAddData, PinsAddError, PinsAddResponse, PinsListData, PinsListError, PinsListResponse, PinsRemoveData, PinsRemoveError, PinsRemoveResponse, ReactionsAddData, ReactionsAddError, ReactionsAddResponse, ReactionsGetData, ReactionsGetError, ReactionsGetResponse, ReactionsListData, ReactionsListError, ReactionsListResponse, ReactionsRemoveData, ReactionsRemoveError, ReactionsRemoveResponse, RemindersAddData, RemindersAddError, RemindersAddResponse, RemindersCompleteData, RemindersCompleteError, RemindersCompleteResponse, RemindersDeleteData, RemindersDeleteError, RemindersDeleteResponse, RemindersInfoData, RemindersInfoError, RemindersInfoResponse, RemindersListData, RemindersListError, RemindersListResponse, RtmConnectData, RtmConnectError, RtmConnectResponse, SearchMessagesData, SearchMessagesError, SearchMessagesResponse, StarsAddData, StarsAddError, StarsAddResponse, StarsListData, StarsListError, StarsListResponse, StarsRemoveData, StarsRemoveError, StarsRemoveResponse, TeamAccessLogsData, TeamAccessLogsError, TeamAccessLogsResponse, TeamBillableInfoData, TeamBillableInfoError, TeamBillableInfoResponse, TeamInfoData, TeamInfoError, TeamInfoResponse, TeamIntegrationLogsData, TeamIntegrationLogsError, TeamIntegrationLogsResponse, TeamProfileGetData, TeamProfileGetError, TeamProfileGetResponse, UsergroupsCreateData, UsergroupsCreateError, UsergroupsCreateResponse, UsergroupsDisableData, UsergroupsDisableError, UsergroupsDisableResponse, UsergroupsEnableData, UsergroupsEnableError, UsergroupsEnableResponse, UsergroupsListData, UsergroupsListError, UsergroupsListResponse, UsergroupsUpdateData, UsergroupsUpdateError, UsergroupsUpdateResponse, UsergroupsUsersListData, UsergroupsUsersListError, UsergroupsUsersListResponse, UsergroupsUsersUpdateData, UsergroupsUsersUpdateError, UsergroupsUsersUpdateResponse, UsersConversationsData, UsersConversationsError, UsersConversationsResponse, UsersDeletePhotoData, UsersDeletePhotoError, UsersDeletePhotoResponse, UsersGetPresenceData, UsersGetPresenceError, UsersGetPresenceResponse, UsersIdentityData, UsersIdentityError, UsersIdentityResponse, UsersInfoData, UsersInfoError, UsersInfoResponse, UsersListData, UsersListError, UsersListResponse, UsersLookupByEmailData, UsersLookupByEmailError, UsersLookupByEmailResponse, UsersProfileGetData, UsersProfileGetError, UsersProfileGetResponse, UsersProfileSetData, UsersProfileSetError, UsersProfileSetResponse, UsersSetActiveData, UsersSetActiveError, UsersSetActiveResponse, UsersSetPhotoData, UsersSetPhotoError, UsersSetPhotoResponse, UsersSetPresenceData, UsersSetPresenceError, UsersSetPresenceResponse, ViewsOpenData, ViewsOpenError, ViewsOpenResponse, ViewsPublishData, ViewsPublishError, ViewsPublishResponse, ViewsPushData, ViewsPushError, ViewsPushResponse, ViewsUpdateData, ViewsUpdateError, ViewsUpdateResponse, WorkflowsStepCompletedData, WorkflowsStepCompletedError, WorkflowsStepCompletedResponse, WorkflowsStepFailedData, WorkflowsStepFailedError, WorkflowsStepFailedResponse, WorkflowsUpdateStepData, WorkflowsUpdateStepError, WorkflowsUpdateStepResponse } from './types.gen';
|
|
5
|
-
|
|
6
|
-
export const client = createClient(createConfig());
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Approve an app for installation on a workspace.
|
|
10
|
-
*/
|
|
11
|
-
export const adminAppsApprove = <ThrowOnError extends boolean = false>(options: Options<AdminAppsApproveData, ThrowOnError>) => { return (options?.client ?? client).post<AdminAppsApproveResponse, AdminAppsApproveError, ThrowOnError>({
|
|
12
|
-
...options,
|
|
13
|
-
...urlSearchParamsBodySerializer,
|
|
14
|
-
headers: {
|
|
15
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
16
|
-
...options?.headers
|
|
17
|
-
},
|
|
18
|
-
url: '/admin.apps.approve'
|
|
19
|
-
}); };
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* List approved apps for an org or workspace.
|
|
23
|
-
*/
|
|
24
|
-
export const adminAppsApprovedList = <ThrowOnError extends boolean = false>(options: Options<AdminAppsApprovedListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminAppsApprovedListResponse, AdminAppsApprovedListError, ThrowOnError>({
|
|
25
|
-
...options,
|
|
26
|
-
url: '/admin.apps.approved.list'
|
|
27
|
-
}); };
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* List app requests for a team/workspace.
|
|
31
|
-
*/
|
|
32
|
-
export const adminAppsRequestsList = <ThrowOnError extends boolean = false>(options: Options<AdminAppsRequestsListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminAppsRequestsListResponse, AdminAppsRequestsListError, ThrowOnError>({
|
|
33
|
-
...options,
|
|
34
|
-
url: '/admin.apps.requests.list'
|
|
35
|
-
}); };
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Restrict an app for installation on a workspace.
|
|
39
|
-
*/
|
|
40
|
-
export const adminAppsRestrict = <ThrowOnError extends boolean = false>(options: Options<AdminAppsRestrictData, ThrowOnError>) => { return (options?.client ?? client).post<AdminAppsRestrictResponse, AdminAppsRestrictError, ThrowOnError>({
|
|
41
|
-
...options,
|
|
42
|
-
...urlSearchParamsBodySerializer,
|
|
43
|
-
headers: {
|
|
44
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
45
|
-
...options?.headers
|
|
46
|
-
},
|
|
47
|
-
url: '/admin.apps.restrict'
|
|
48
|
-
}); };
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* List restricted apps for an org or workspace.
|
|
52
|
-
*/
|
|
53
|
-
export const adminAppsRestrictedList = <ThrowOnError extends boolean = false>(options: Options<AdminAppsRestrictedListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminAppsRestrictedListResponse, AdminAppsRestrictedListError, ThrowOnError>({
|
|
54
|
-
...options,
|
|
55
|
-
url: '/admin.apps.restricted.list'
|
|
56
|
-
}); };
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Archive a public or private channel.
|
|
60
|
-
*/
|
|
61
|
-
export const adminConversationsArchive = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsArchiveData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsArchiveResponse, AdminConversationsArchiveError, ThrowOnError>({
|
|
62
|
-
...options,
|
|
63
|
-
...urlSearchParamsBodySerializer,
|
|
64
|
-
headers: {
|
|
65
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
66
|
-
...options?.headers
|
|
67
|
-
},
|
|
68
|
-
url: '/admin.conversations.archive'
|
|
69
|
-
}); };
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Convert a public channel to a private channel.
|
|
73
|
-
*/
|
|
74
|
-
export const adminConversationsConvertToPrivate = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsConvertToPrivateData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsConvertToPrivateResponse, AdminConversationsConvertToPrivateError, ThrowOnError>({
|
|
75
|
-
...options,
|
|
76
|
-
...urlSearchParamsBodySerializer,
|
|
77
|
-
headers: {
|
|
78
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
79
|
-
...options?.headers
|
|
80
|
-
},
|
|
81
|
-
url: '/admin.conversations.convertToPrivate'
|
|
82
|
-
}); };
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Create a public or private channel-based conversation.
|
|
86
|
-
*/
|
|
87
|
-
export const adminConversationsCreate = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsCreateData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsCreateResponse, AdminConversationsCreateError, ThrowOnError>({
|
|
88
|
-
...options,
|
|
89
|
-
...urlSearchParamsBodySerializer,
|
|
90
|
-
headers: {
|
|
91
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
92
|
-
...options?.headers
|
|
93
|
-
},
|
|
94
|
-
url: '/admin.conversations.create'
|
|
95
|
-
}); };
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Delete a public or private channel.
|
|
99
|
-
*/
|
|
100
|
-
export const adminConversationsDelete = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsDeleteData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsDeleteResponse, AdminConversationsDeleteError, ThrowOnError>({
|
|
101
|
-
...options,
|
|
102
|
-
...urlSearchParamsBodySerializer,
|
|
103
|
-
headers: {
|
|
104
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
105
|
-
...options?.headers
|
|
106
|
-
},
|
|
107
|
-
url: '/admin.conversations.delete'
|
|
108
|
-
}); };
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Disconnect a connected channel from one or more workspaces.
|
|
112
|
-
*/
|
|
113
|
-
export const adminConversationsDisconnectShared = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsDisconnectSharedData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsDisconnectSharedResponse, AdminConversationsDisconnectSharedError, ThrowOnError>({
|
|
114
|
-
...options,
|
|
115
|
-
...urlSearchParamsBodySerializer,
|
|
116
|
-
headers: {
|
|
117
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
118
|
-
...options?.headers
|
|
119
|
-
},
|
|
120
|
-
url: '/admin.conversations.disconnectShared'
|
|
121
|
-
}); };
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM.
|
|
125
|
-
*/
|
|
126
|
-
export const adminConversationsEkmListOriginalConnectedChannelInfo = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsEkmListOriginalConnectedChannelInfoData, ThrowOnError>) => { return (options?.client ?? client).get<AdminConversationsEkmListOriginalConnectedChannelInfoResponse, AdminConversationsEkmListOriginalConnectedChannelInfoError, ThrowOnError>({
|
|
127
|
-
...options,
|
|
128
|
-
url: '/admin.conversations.ekm.listOriginalConnectedChannelInfo'
|
|
129
|
-
}); };
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Get conversation preferences for a public or private channel.
|
|
133
|
-
*/
|
|
134
|
-
export const adminConversationsGetConversationPrefs = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsGetConversationPrefsData, ThrowOnError>) => { return (options?.client ?? client).get<AdminConversationsGetConversationPrefsResponse, AdminConversationsGetConversationPrefsError, ThrowOnError>({
|
|
135
|
-
...options,
|
|
136
|
-
url: '/admin.conversations.getConversationPrefs'
|
|
137
|
-
}); };
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Get all the workspaces a given public or private channel is connected to within this Enterprise org.
|
|
141
|
-
*/
|
|
142
|
-
export const adminConversationsGetTeams = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsGetTeamsData, ThrowOnError>) => { return (options?.client ?? client).get<AdminConversationsGetTeamsResponse, AdminConversationsGetTeamsError, ThrowOnError>({
|
|
143
|
-
...options,
|
|
144
|
-
url: '/admin.conversations.getTeams'
|
|
145
|
-
}); };
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Invite a user to a public or private channel.
|
|
149
|
-
*/
|
|
150
|
-
export const adminConversationsInvite = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsInviteData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsInviteResponse, AdminConversationsInviteError, ThrowOnError>({
|
|
151
|
-
...options,
|
|
152
|
-
...urlSearchParamsBodySerializer,
|
|
153
|
-
headers: {
|
|
154
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
155
|
-
...options?.headers
|
|
156
|
-
},
|
|
157
|
-
url: '/admin.conversations.invite'
|
|
158
|
-
}); };
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Rename a public or private channel.
|
|
162
|
-
*/
|
|
163
|
-
export const adminConversationsRename = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsRenameData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsRenameResponse, AdminConversationsRenameError, ThrowOnError>({
|
|
164
|
-
...options,
|
|
165
|
-
...urlSearchParamsBodySerializer,
|
|
166
|
-
headers: {
|
|
167
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
168
|
-
...options?.headers
|
|
169
|
-
},
|
|
170
|
-
url: '/admin.conversations.rename'
|
|
171
|
-
}); };
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Add an allowlist of IDP groups for accessing a channel
|
|
175
|
-
*/
|
|
176
|
-
export const adminConversationsRestrictAccessAddGroup = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsRestrictAccessAddGroupData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsRestrictAccessAddGroupResponse, AdminConversationsRestrictAccessAddGroupError, ThrowOnError>({
|
|
177
|
-
...options,
|
|
178
|
-
...urlSearchParamsBodySerializer,
|
|
179
|
-
headers: {
|
|
180
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
181
|
-
...options?.headers
|
|
182
|
-
},
|
|
183
|
-
url: '/admin.conversations.restrictAccess.addGroup'
|
|
184
|
-
}); };
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* List all IDP Groups linked to a channel
|
|
188
|
-
*/
|
|
189
|
-
export const adminConversationsRestrictAccessListGroups = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsRestrictAccessListGroupsData, ThrowOnError>) => { return (options?.client ?? client).get<AdminConversationsRestrictAccessListGroupsResponse, AdminConversationsRestrictAccessListGroupsError, ThrowOnError>({
|
|
190
|
-
...options,
|
|
191
|
-
url: '/admin.conversations.restrictAccess.listGroups'
|
|
192
|
-
}); };
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Remove a linked IDP group linked from a private channel
|
|
196
|
-
*/
|
|
197
|
-
export const adminConversationsRestrictAccessRemoveGroup = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsRestrictAccessRemoveGroupData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsRestrictAccessRemoveGroupResponse, AdminConversationsRestrictAccessRemoveGroupError, ThrowOnError>({
|
|
198
|
-
...options,
|
|
199
|
-
...urlSearchParamsBodySerializer,
|
|
200
|
-
headers: {
|
|
201
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
202
|
-
...options?.headers
|
|
203
|
-
},
|
|
204
|
-
url: '/admin.conversations.restrictAccess.removeGroup'
|
|
205
|
-
}); };
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Search for public or private channels in an Enterprise organization.
|
|
209
|
-
*/
|
|
210
|
-
export const adminConversationsSearch = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsSearchData, ThrowOnError>) => { return (options?.client ?? client).get<AdminConversationsSearchResponse, AdminConversationsSearchError, ThrowOnError>({
|
|
211
|
-
...options,
|
|
212
|
-
url: '/admin.conversations.search'
|
|
213
|
-
}); };
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Set the posting permissions for a public or private channel.
|
|
217
|
-
*/
|
|
218
|
-
export const adminConversationsSetConversationPrefs = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsSetConversationPrefsData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsSetConversationPrefsResponse, AdminConversationsSetConversationPrefsError, ThrowOnError>({
|
|
219
|
-
...options,
|
|
220
|
-
...urlSearchParamsBodySerializer,
|
|
221
|
-
headers: {
|
|
222
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
223
|
-
...options?.headers
|
|
224
|
-
},
|
|
225
|
-
url: '/admin.conversations.setConversationPrefs'
|
|
226
|
-
}); };
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Set the workspaces in an Enterprise grid org that connect to a public or private channel.
|
|
230
|
-
*/
|
|
231
|
-
export const adminConversationsSetTeams = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsSetTeamsData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsSetTeamsResponse, AdminConversationsSetTeamsError, ThrowOnError>({
|
|
232
|
-
...options,
|
|
233
|
-
...urlSearchParamsBodySerializer,
|
|
234
|
-
headers: {
|
|
235
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
236
|
-
...options?.headers
|
|
237
|
-
},
|
|
238
|
-
url: '/admin.conversations.setTeams'
|
|
239
|
-
}); };
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Unarchive a public or private channel.
|
|
243
|
-
*/
|
|
244
|
-
export const adminConversationsUnarchive = <ThrowOnError extends boolean = false>(options: Options<AdminConversationsUnarchiveData, ThrowOnError>) => { return (options?.client ?? client).post<AdminConversationsUnarchiveResponse, AdminConversationsUnarchiveError, ThrowOnError>({
|
|
245
|
-
...options,
|
|
246
|
-
...urlSearchParamsBodySerializer,
|
|
247
|
-
headers: {
|
|
248
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
249
|
-
...options?.headers
|
|
250
|
-
},
|
|
251
|
-
url: '/admin.conversations.unarchive'
|
|
252
|
-
}); };
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Add an emoji.
|
|
256
|
-
*/
|
|
257
|
-
export const adminEmojiAdd = <ThrowOnError extends boolean = false>(options: Options<AdminEmojiAddData, ThrowOnError>) => { return (options?.client ?? client).post<AdminEmojiAddResponse, AdminEmojiAddError, ThrowOnError>({
|
|
258
|
-
...options,
|
|
259
|
-
...urlSearchParamsBodySerializer,
|
|
260
|
-
headers: {
|
|
261
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
262
|
-
...options?.headers
|
|
263
|
-
},
|
|
264
|
-
url: '/admin.emoji.add'
|
|
265
|
-
}); };
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Add an emoji alias.
|
|
269
|
-
*/
|
|
270
|
-
export const adminEmojiAddAlias = <ThrowOnError extends boolean = false>(options: Options<AdminEmojiAddAliasData, ThrowOnError>) => { return (options?.client ?? client).post<AdminEmojiAddAliasResponse, AdminEmojiAddAliasError, ThrowOnError>({
|
|
271
|
-
...options,
|
|
272
|
-
...urlSearchParamsBodySerializer,
|
|
273
|
-
headers: {
|
|
274
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
275
|
-
...options?.headers
|
|
276
|
-
},
|
|
277
|
-
url: '/admin.emoji.addAlias'
|
|
278
|
-
}); };
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* List emoji for an Enterprise Grid organization.
|
|
282
|
-
*/
|
|
283
|
-
export const adminEmojiList = <ThrowOnError extends boolean = false>(options: Options<AdminEmojiListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminEmojiListResponse, AdminEmojiListError, ThrowOnError>({
|
|
284
|
-
...options,
|
|
285
|
-
url: '/admin.emoji.list'
|
|
286
|
-
}); };
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Remove an emoji across an Enterprise Grid organization
|
|
290
|
-
*/
|
|
291
|
-
export const adminEmojiRemove = <ThrowOnError extends boolean = false>(options: Options<AdminEmojiRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<AdminEmojiRemoveResponse, AdminEmojiRemoveError, ThrowOnError>({
|
|
292
|
-
...options,
|
|
293
|
-
...urlSearchParamsBodySerializer,
|
|
294
|
-
headers: {
|
|
295
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
296
|
-
...options?.headers
|
|
297
|
-
},
|
|
298
|
-
url: '/admin.emoji.remove'
|
|
299
|
-
}); };
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Rename an emoji.
|
|
303
|
-
*/
|
|
304
|
-
export const adminEmojiRename = <ThrowOnError extends boolean = false>(options: Options<AdminEmojiRenameData, ThrowOnError>) => { return (options?.client ?? client).post<AdminEmojiRenameResponse, AdminEmojiRenameError, ThrowOnError>({
|
|
305
|
-
...options,
|
|
306
|
-
...urlSearchParamsBodySerializer,
|
|
307
|
-
headers: {
|
|
308
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
309
|
-
...options?.headers
|
|
310
|
-
},
|
|
311
|
-
url: '/admin.emoji.rename'
|
|
312
|
-
}); };
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Approve a workspace invite request.
|
|
316
|
-
*/
|
|
317
|
-
export const adminInviteRequestsApprove = <ThrowOnError extends boolean = false>(options: Options<AdminInviteRequestsApproveData, ThrowOnError>) => { return (options?.client ?? client).post<AdminInviteRequestsApproveResponse, AdminInviteRequestsApproveError, ThrowOnError>({
|
|
318
|
-
...options,
|
|
319
|
-
...urlSearchParamsBodySerializer,
|
|
320
|
-
headers: {
|
|
321
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
322
|
-
...options?.headers
|
|
323
|
-
},
|
|
324
|
-
url: '/admin.inviteRequests.approve'
|
|
325
|
-
}); };
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* List all approved workspace invite requests.
|
|
329
|
-
*/
|
|
330
|
-
export const adminInviteRequestsApprovedList = <ThrowOnError extends boolean = false>(options: Options<AdminInviteRequestsApprovedListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminInviteRequestsApprovedListResponse, AdminInviteRequestsApprovedListError, ThrowOnError>({
|
|
331
|
-
...options,
|
|
332
|
-
url: '/admin.inviteRequests.approved.list'
|
|
333
|
-
}); };
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* List all denied workspace invite requests.
|
|
337
|
-
*/
|
|
338
|
-
export const adminInviteRequestsDeniedList = <ThrowOnError extends boolean = false>(options: Options<AdminInviteRequestsDeniedListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminInviteRequestsDeniedListResponse, AdminInviteRequestsDeniedListError, ThrowOnError>({
|
|
339
|
-
...options,
|
|
340
|
-
url: '/admin.inviteRequests.denied.list'
|
|
341
|
-
}); };
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Deny a workspace invite request.
|
|
345
|
-
*/
|
|
346
|
-
export const adminInviteRequestsDeny = <ThrowOnError extends boolean = false>(options: Options<AdminInviteRequestsDenyData, ThrowOnError>) => { return (options?.client ?? client).post<AdminInviteRequestsDenyResponse, AdminInviteRequestsDenyError, ThrowOnError>({
|
|
347
|
-
...options,
|
|
348
|
-
...urlSearchParamsBodySerializer,
|
|
349
|
-
headers: {
|
|
350
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
351
|
-
...options?.headers
|
|
352
|
-
},
|
|
353
|
-
url: '/admin.inviteRequests.deny'
|
|
354
|
-
}); };
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* List all pending workspace invite requests.
|
|
358
|
-
*/
|
|
359
|
-
export const adminInviteRequestsList = <ThrowOnError extends boolean = false>(options: Options<AdminInviteRequestsListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminInviteRequestsListResponse, AdminInviteRequestsListError, ThrowOnError>({
|
|
360
|
-
...options,
|
|
361
|
-
url: '/admin.inviteRequests.list'
|
|
362
|
-
}); };
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* List all of the admins on a given workspace.
|
|
366
|
-
*/
|
|
367
|
-
export const adminTeamsAdminsList = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsAdminsListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminTeamsAdminsListResponse, AdminTeamsAdminsListError, ThrowOnError>({
|
|
368
|
-
...options,
|
|
369
|
-
url: '/admin.teams.admins.list'
|
|
370
|
-
}); };
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Create an Enterprise team.
|
|
374
|
-
*/
|
|
375
|
-
export const adminTeamsCreate = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsCreateData, ThrowOnError>) => { return (options?.client ?? client).post<AdminTeamsCreateResponse, AdminTeamsCreateError, ThrowOnError>({
|
|
376
|
-
...options,
|
|
377
|
-
...urlSearchParamsBodySerializer,
|
|
378
|
-
headers: {
|
|
379
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
380
|
-
...options?.headers
|
|
381
|
-
},
|
|
382
|
-
url: '/admin.teams.create'
|
|
383
|
-
}); };
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* List all teams on an Enterprise organization
|
|
387
|
-
*/
|
|
388
|
-
export const adminTeamsList = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminTeamsListResponse, AdminTeamsListError, ThrowOnError>({
|
|
389
|
-
...options,
|
|
390
|
-
url: '/admin.teams.list'
|
|
391
|
-
}); };
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* List all of the owners on a given workspace.
|
|
395
|
-
*/
|
|
396
|
-
export const adminTeamsOwnersList = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsOwnersListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminTeamsOwnersListResponse, AdminTeamsOwnersListError, ThrowOnError>({
|
|
397
|
-
...options,
|
|
398
|
-
url: '/admin.teams.owners.list'
|
|
399
|
-
}); };
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Fetch information about settings in a workspace
|
|
403
|
-
*/
|
|
404
|
-
export const adminTeamsSettingsInfo = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsSettingsInfoData, ThrowOnError>) => { return (options?.client ?? client).get<AdminTeamsSettingsInfoResponse, AdminTeamsSettingsInfoError, ThrowOnError>({
|
|
405
|
-
...options,
|
|
406
|
-
url: '/admin.teams.settings.info'
|
|
407
|
-
}); };
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Set the default channels of a workspace.
|
|
411
|
-
*/
|
|
412
|
-
export const adminTeamsSettingsSetDefaultChannels = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsSettingsSetDefaultChannelsData, ThrowOnError>) => { return (options?.client ?? client).post<AdminTeamsSettingsSetDefaultChannelsResponse, AdminTeamsSettingsSetDefaultChannelsError, ThrowOnError>({
|
|
413
|
-
...options,
|
|
414
|
-
...urlSearchParamsBodySerializer,
|
|
415
|
-
headers: {
|
|
416
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
417
|
-
...options?.headers
|
|
418
|
-
},
|
|
419
|
-
url: '/admin.teams.settings.setDefaultChannels'
|
|
420
|
-
}); };
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Set the description of a given workspace.
|
|
424
|
-
*/
|
|
425
|
-
export const adminTeamsSettingsSetDescription = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsSettingsSetDescriptionData, ThrowOnError>) => { return (options?.client ?? client).post<AdminTeamsSettingsSetDescriptionResponse, AdminTeamsSettingsSetDescriptionError, ThrowOnError>({
|
|
426
|
-
...options,
|
|
427
|
-
...urlSearchParamsBodySerializer,
|
|
428
|
-
headers: {
|
|
429
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
430
|
-
...options?.headers
|
|
431
|
-
},
|
|
432
|
-
url: '/admin.teams.settings.setDescription'
|
|
433
|
-
}); };
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* An API method that allows admins to set the discoverability of a given workspace
|
|
437
|
-
*/
|
|
438
|
-
export const adminTeamsSettingsSetDiscoverability = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsSettingsSetDiscoverabilityData, ThrowOnError>) => { return (options?.client ?? client).post<AdminTeamsSettingsSetDiscoverabilityResponse, AdminTeamsSettingsSetDiscoverabilityError, ThrowOnError>({
|
|
439
|
-
...options,
|
|
440
|
-
...urlSearchParamsBodySerializer,
|
|
441
|
-
headers: {
|
|
442
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
443
|
-
...options?.headers
|
|
444
|
-
},
|
|
445
|
-
url: '/admin.teams.settings.setDiscoverability'
|
|
446
|
-
}); };
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Sets the icon of a workspace.
|
|
450
|
-
*/
|
|
451
|
-
export const adminTeamsSettingsSetIcon = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsSettingsSetIconData, ThrowOnError>) => { return (options?.client ?? client).post<AdminTeamsSettingsSetIconResponse, AdminTeamsSettingsSetIconError, ThrowOnError>({
|
|
452
|
-
...options,
|
|
453
|
-
...urlSearchParamsBodySerializer,
|
|
454
|
-
headers: {
|
|
455
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
456
|
-
...options?.headers
|
|
457
|
-
},
|
|
458
|
-
url: '/admin.teams.settings.setIcon'
|
|
459
|
-
}); };
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Set the name of a given workspace.
|
|
463
|
-
*/
|
|
464
|
-
export const adminTeamsSettingsSetName = <ThrowOnError extends boolean = false>(options: Options<AdminTeamsSettingsSetNameData, ThrowOnError>) => { return (options?.client ?? client).post<AdminTeamsSettingsSetNameResponse, AdminTeamsSettingsSetNameError, ThrowOnError>({
|
|
465
|
-
...options,
|
|
466
|
-
...urlSearchParamsBodySerializer,
|
|
467
|
-
headers: {
|
|
468
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
469
|
-
...options?.headers
|
|
470
|
-
},
|
|
471
|
-
url: '/admin.teams.settings.setName'
|
|
472
|
-
}); };
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Add one or more default channels to an IDP group.
|
|
476
|
-
*/
|
|
477
|
-
export const adminUsergroupsAddChannels = <ThrowOnError extends boolean = false>(options: Options<AdminUsergroupsAddChannelsData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsergroupsAddChannelsResponse, AdminUsergroupsAddChannelsError, ThrowOnError>({
|
|
478
|
-
...options,
|
|
479
|
-
...urlSearchParamsBodySerializer,
|
|
480
|
-
headers: {
|
|
481
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
482
|
-
...options?.headers
|
|
483
|
-
},
|
|
484
|
-
url: '/admin.usergroups.addChannels'
|
|
485
|
-
}); };
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Associate one or more default workspaces with an organization-wide IDP group.
|
|
489
|
-
*/
|
|
490
|
-
export const adminUsergroupsAddTeams = <ThrowOnError extends boolean = false>(options: Options<AdminUsergroupsAddTeamsData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsergroupsAddTeamsResponse, AdminUsergroupsAddTeamsError, ThrowOnError>({
|
|
491
|
-
...options,
|
|
492
|
-
...urlSearchParamsBodySerializer,
|
|
493
|
-
headers: {
|
|
494
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
495
|
-
...options?.headers
|
|
496
|
-
},
|
|
497
|
-
url: '/admin.usergroups.addTeams'
|
|
498
|
-
}); };
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* List the channels linked to an org-level IDP group (user group).
|
|
502
|
-
*/
|
|
503
|
-
export const adminUsergroupsListChannels = <ThrowOnError extends boolean = false>(options: Options<AdminUsergroupsListChannelsData, ThrowOnError>) => { return (options?.client ?? client).get<AdminUsergroupsListChannelsResponse, AdminUsergroupsListChannelsError, ThrowOnError>({
|
|
504
|
-
...options,
|
|
505
|
-
url: '/admin.usergroups.listChannels'
|
|
506
|
-
}); };
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Remove one or more default channels from an org-level IDP group (user group).
|
|
510
|
-
*/
|
|
511
|
-
export const adminUsergroupsRemoveChannels = <ThrowOnError extends boolean = false>(options: Options<AdminUsergroupsRemoveChannelsData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsergroupsRemoveChannelsResponse, AdminUsergroupsRemoveChannelsError, ThrowOnError>({
|
|
512
|
-
...options,
|
|
513
|
-
...urlSearchParamsBodySerializer,
|
|
514
|
-
headers: {
|
|
515
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
516
|
-
...options?.headers
|
|
517
|
-
},
|
|
518
|
-
url: '/admin.usergroups.removeChannels'
|
|
519
|
-
}); };
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Add an Enterprise user to a workspace.
|
|
523
|
-
*/
|
|
524
|
-
export const adminUsersAssign = <ThrowOnError extends boolean = false>(options: Options<AdminUsersAssignData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersAssignResponse, AdminUsersAssignError, ThrowOnError>({
|
|
525
|
-
...options,
|
|
526
|
-
...urlSearchParamsBodySerializer,
|
|
527
|
-
headers: {
|
|
528
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
529
|
-
...options?.headers
|
|
530
|
-
},
|
|
531
|
-
url: '/admin.users.assign'
|
|
532
|
-
}); };
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Invite a user to a workspace.
|
|
536
|
-
*/
|
|
537
|
-
export const adminUsersInvite = <ThrowOnError extends boolean = false>(options: Options<AdminUsersInviteData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersInviteResponse, AdminUsersInviteError, ThrowOnError>({
|
|
538
|
-
...options,
|
|
539
|
-
...urlSearchParamsBodySerializer,
|
|
540
|
-
headers: {
|
|
541
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
542
|
-
...options?.headers
|
|
543
|
-
},
|
|
544
|
-
url: '/admin.users.invite'
|
|
545
|
-
}); };
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* List users on a workspace
|
|
549
|
-
*/
|
|
550
|
-
export const adminUsersList = <ThrowOnError extends boolean = false>(options: Options<AdminUsersListData, ThrowOnError>) => { return (options?.client ?? client).get<AdminUsersListResponse, AdminUsersListError, ThrowOnError>({
|
|
551
|
-
...options,
|
|
552
|
-
url: '/admin.users.list'
|
|
553
|
-
}); };
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Remove a user from a workspace.
|
|
557
|
-
*/
|
|
558
|
-
export const adminUsersRemove = <ThrowOnError extends boolean = false>(options: Options<AdminUsersRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersRemoveResponse, AdminUsersRemoveError, ThrowOnError>({
|
|
559
|
-
...options,
|
|
560
|
-
...urlSearchParamsBodySerializer,
|
|
561
|
-
headers: {
|
|
562
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
563
|
-
...options?.headers
|
|
564
|
-
},
|
|
565
|
-
url: '/admin.users.remove'
|
|
566
|
-
}); };
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* Invalidate a single session for a user by session_id
|
|
570
|
-
*/
|
|
571
|
-
export const adminUsersSessionInvalidate = <ThrowOnError extends boolean = false>(options: Options<AdminUsersSessionInvalidateData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersSessionInvalidateResponse, AdminUsersSessionInvalidateError, ThrowOnError>({
|
|
572
|
-
...options,
|
|
573
|
-
...urlSearchParamsBodySerializer,
|
|
574
|
-
headers: {
|
|
575
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
576
|
-
...options?.headers
|
|
577
|
-
},
|
|
578
|
-
url: '/admin.users.session.invalidate'
|
|
579
|
-
}); };
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Wipes all valid sessions on all devices for a given user
|
|
583
|
-
*/
|
|
584
|
-
export const adminUsersSessionReset = <ThrowOnError extends boolean = false>(options: Options<AdminUsersSessionResetData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersSessionResetResponse, AdminUsersSessionResetError, ThrowOnError>({
|
|
585
|
-
...options,
|
|
586
|
-
...urlSearchParamsBodySerializer,
|
|
587
|
-
headers: {
|
|
588
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
589
|
-
...options?.headers
|
|
590
|
-
},
|
|
591
|
-
url: '/admin.users.session.reset'
|
|
592
|
-
}); };
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* Set an existing guest, regular user, or owner to be an admin user.
|
|
596
|
-
*/
|
|
597
|
-
export const adminUsersSetAdmin = <ThrowOnError extends boolean = false>(options: Options<AdminUsersSetAdminData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersSetAdminResponse, AdminUsersSetAdminError, ThrowOnError>({
|
|
598
|
-
...options,
|
|
599
|
-
...urlSearchParamsBodySerializer,
|
|
600
|
-
headers: {
|
|
601
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
602
|
-
...options?.headers
|
|
603
|
-
},
|
|
604
|
-
url: '/admin.users.setAdmin'
|
|
605
|
-
}); };
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* Set an expiration for a guest user
|
|
609
|
-
*/
|
|
610
|
-
export const adminUsersSetExpiration = <ThrowOnError extends boolean = false>(options: Options<AdminUsersSetExpirationData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersSetExpirationResponse, AdminUsersSetExpirationError, ThrowOnError>({
|
|
611
|
-
...options,
|
|
612
|
-
...urlSearchParamsBodySerializer,
|
|
613
|
-
headers: {
|
|
614
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
615
|
-
...options?.headers
|
|
616
|
-
},
|
|
617
|
-
url: '/admin.users.setExpiration'
|
|
618
|
-
}); };
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Set an existing guest, regular user, or admin user to be a workspace owner.
|
|
622
|
-
*/
|
|
623
|
-
export const adminUsersSetOwner = <ThrowOnError extends boolean = false>(options: Options<AdminUsersSetOwnerData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersSetOwnerResponse, AdminUsersSetOwnerError, ThrowOnError>({
|
|
624
|
-
...options,
|
|
625
|
-
...urlSearchParamsBodySerializer,
|
|
626
|
-
headers: {
|
|
627
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
628
|
-
...options?.headers
|
|
629
|
-
},
|
|
630
|
-
url: '/admin.users.setOwner'
|
|
631
|
-
}); };
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Set an existing guest user, admin user, or owner to be a regular user.
|
|
635
|
-
*/
|
|
636
|
-
export const adminUsersSetRegular = <ThrowOnError extends boolean = false>(options: Options<AdminUsersSetRegularData, ThrowOnError>) => { return (options?.client ?? client).post<AdminUsersSetRegularResponse, AdminUsersSetRegularError, ThrowOnError>({
|
|
637
|
-
...options,
|
|
638
|
-
...urlSearchParamsBodySerializer,
|
|
639
|
-
headers: {
|
|
640
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
641
|
-
...options?.headers
|
|
642
|
-
},
|
|
643
|
-
url: '/admin.users.setRegular'
|
|
644
|
-
}); };
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Checks API calling code.
|
|
648
|
-
*/
|
|
649
|
-
export const apiTest = <ThrowOnError extends boolean = false>(options?: Options<ApiTestData, ThrowOnError>) => { return (options?.client ?? client).get<ApiTestResponse, ApiTestError, ThrowOnError>({
|
|
650
|
-
...options,
|
|
651
|
-
url: '/api.test'
|
|
652
|
-
}); };
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.
|
|
656
|
-
*/
|
|
657
|
-
export const appsEventAuthorizationsList = <ThrowOnError extends boolean = false>(options: Options<AppsEventAuthorizationsListData, ThrowOnError>) => { return (options?.client ?? client).get<AppsEventAuthorizationsListResponse, AppsEventAuthorizationsListError, ThrowOnError>({
|
|
658
|
-
...options,
|
|
659
|
-
url: '/apps.event.authorizations.list'
|
|
660
|
-
}); };
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Returns list of permissions this app has on a team.
|
|
664
|
-
*/
|
|
665
|
-
export const appsPermissionsInfo = <ThrowOnError extends boolean = false>(options?: Options<AppsPermissionsInfoData, ThrowOnError>) => { return (options?.client ?? client).get<AppsPermissionsInfoResponse, AppsPermissionsInfoError, ThrowOnError>({
|
|
666
|
-
...options,
|
|
667
|
-
url: '/apps.permissions.info'
|
|
668
|
-
}); };
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Allows an app to request additional scopes
|
|
672
|
-
*/
|
|
673
|
-
export const appsPermissionsRequest = <ThrowOnError extends boolean = false>(options: Options<AppsPermissionsRequestData, ThrowOnError>) => { return (options?.client ?? client).get<AppsPermissionsRequestResponse, AppsPermissionsRequestError, ThrowOnError>({
|
|
674
|
-
...options,
|
|
675
|
-
url: '/apps.permissions.request'
|
|
676
|
-
}); };
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* Returns list of resource grants this app has on a team.
|
|
680
|
-
*/
|
|
681
|
-
export const appsPermissionsResourcesList = <ThrowOnError extends boolean = false>(options: Options<AppsPermissionsResourcesListData, ThrowOnError>) => { return (options?.client ?? client).get<AppsPermissionsResourcesListResponse, AppsPermissionsResourcesListError, ThrowOnError>({
|
|
682
|
-
...options,
|
|
683
|
-
url: '/apps.permissions.resources.list'
|
|
684
|
-
}); };
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* Returns list of scopes this app has on a team.
|
|
688
|
-
*/
|
|
689
|
-
export const appsPermissionsScopesList = <ThrowOnError extends boolean = false>(options: Options<AppsPermissionsScopesListData, ThrowOnError>) => { return (options?.client ?? client).get<AppsPermissionsScopesListResponse, AppsPermissionsScopesListError, ThrowOnError>({
|
|
690
|
-
...options,
|
|
691
|
-
url: '/apps.permissions.scopes.list'
|
|
692
|
-
}); };
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* Returns list of user grants and corresponding scopes this app has on a team.
|
|
696
|
-
*/
|
|
697
|
-
export const appsPermissionsUsersList = <ThrowOnError extends boolean = false>(options: Options<AppsPermissionsUsersListData, ThrowOnError>) => { return (options?.client ?? client).get<AppsPermissionsUsersListResponse, AppsPermissionsUsersListError, ThrowOnError>({
|
|
698
|
-
...options,
|
|
699
|
-
url: '/apps.permissions.users.list'
|
|
700
|
-
}); };
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* Enables an app to trigger a permissions modal to grant an app access to a user access scope.
|
|
704
|
-
*/
|
|
705
|
-
export const appsPermissionsUsersRequest = <ThrowOnError extends boolean = false>(options: Options<AppsPermissionsUsersRequestData, ThrowOnError>) => { return (options?.client ?? client).get<AppsPermissionsUsersRequestResponse, AppsPermissionsUsersRequestError, ThrowOnError>({
|
|
706
|
-
...options,
|
|
707
|
-
url: '/apps.permissions.users.request'
|
|
708
|
-
}); };
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Uninstalls your app from a workspace.
|
|
712
|
-
*/
|
|
713
|
-
export const appsUninstall = <ThrowOnError extends boolean = false>(options?: Options<AppsUninstallData, ThrowOnError>) => { return (options?.client ?? client).get<AppsUninstallResponse, AppsUninstallError, ThrowOnError>({
|
|
714
|
-
...options,
|
|
715
|
-
url: '/apps.uninstall'
|
|
716
|
-
}); };
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* Revokes a token.
|
|
720
|
-
*/
|
|
721
|
-
export const authRevoke = <ThrowOnError extends boolean = false>(options: Options<AuthRevokeData, ThrowOnError>) => { return (options?.client ?? client).get<AuthRevokeResponse, AuthRevokeError, ThrowOnError>({
|
|
722
|
-
...options,
|
|
723
|
-
url: '/auth.revoke'
|
|
724
|
-
}); };
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Checks authentication & identity.
|
|
728
|
-
*/
|
|
729
|
-
export const authTest = <ThrowOnError extends boolean = false>(options: Options<AuthTestData, ThrowOnError>) => { return (options?.client ?? client).get<AuthTestResponse, AuthTestError, ThrowOnError>({
|
|
730
|
-
...options,
|
|
731
|
-
url: '/auth.test'
|
|
732
|
-
}); };
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* Gets information about a bot user.
|
|
736
|
-
*/
|
|
737
|
-
export const botsInfo = <ThrowOnError extends boolean = false>(options: Options<BotsInfoData, ThrowOnError>) => { return (options?.client ?? client).get<BotsInfoResponse, BotsInfoError, ThrowOnError>({
|
|
738
|
-
...options,
|
|
739
|
-
url: '/bots.info'
|
|
740
|
-
}); };
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Registers a new Call.
|
|
744
|
-
*/
|
|
745
|
-
export const callsAdd = <ThrowOnError extends boolean = false>(options: Options<CallsAddData, ThrowOnError>) => { return (options?.client ?? client).post<CallsAddResponse, CallsAddError, ThrowOnError>({
|
|
746
|
-
...options,
|
|
747
|
-
...urlSearchParamsBodySerializer,
|
|
748
|
-
headers: {
|
|
749
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
750
|
-
...options?.headers
|
|
751
|
-
},
|
|
752
|
-
url: '/calls.add'
|
|
753
|
-
}); };
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* Ends a Call.
|
|
757
|
-
*/
|
|
758
|
-
export const callsEnd = <ThrowOnError extends boolean = false>(options: Options<CallsEndData, ThrowOnError>) => { return (options?.client ?? client).post<CallsEndResponse, CallsEndError, ThrowOnError>({
|
|
759
|
-
...options,
|
|
760
|
-
...urlSearchParamsBodySerializer,
|
|
761
|
-
headers: {
|
|
762
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
763
|
-
...options?.headers
|
|
764
|
-
},
|
|
765
|
-
url: '/calls.end'
|
|
766
|
-
}); };
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* Returns information about a Call.
|
|
770
|
-
*/
|
|
771
|
-
export const callsInfo = <ThrowOnError extends boolean = false>(options: Options<CallsInfoData, ThrowOnError>) => { return (options?.client ?? client).get<CallsInfoResponse, CallsInfoError, ThrowOnError>({
|
|
772
|
-
...options,
|
|
773
|
-
url: '/calls.info'
|
|
774
|
-
}); };
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* Registers new participants added to a Call.
|
|
778
|
-
*/
|
|
779
|
-
export const callsParticipantsAdd = <ThrowOnError extends boolean = false>(options: Options<CallsParticipantsAddData, ThrowOnError>) => { return (options?.client ?? client).post<CallsParticipantsAddResponse, CallsParticipantsAddError, ThrowOnError>({
|
|
780
|
-
...options,
|
|
781
|
-
...urlSearchParamsBodySerializer,
|
|
782
|
-
headers: {
|
|
783
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
784
|
-
...options?.headers
|
|
785
|
-
},
|
|
786
|
-
url: '/calls.participants.add'
|
|
787
|
-
}); };
|
|
788
|
-
|
|
789
|
-
/**
|
|
790
|
-
* Registers participants removed from a Call.
|
|
791
|
-
*/
|
|
792
|
-
export const callsParticipantsRemove = <ThrowOnError extends boolean = false>(options: Options<CallsParticipantsRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<CallsParticipantsRemoveResponse, CallsParticipantsRemoveError, ThrowOnError>({
|
|
793
|
-
...options,
|
|
794
|
-
...urlSearchParamsBodySerializer,
|
|
795
|
-
headers: {
|
|
796
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
797
|
-
...options?.headers
|
|
798
|
-
},
|
|
799
|
-
url: '/calls.participants.remove'
|
|
800
|
-
}); };
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* Updates information about a Call.
|
|
804
|
-
*/
|
|
805
|
-
export const callsUpdate = <ThrowOnError extends boolean = false>(options: Options<CallsUpdateData, ThrowOnError>) => { return (options?.client ?? client).post<CallsUpdateResponse, CallsUpdateError, ThrowOnError>({
|
|
806
|
-
...options,
|
|
807
|
-
...urlSearchParamsBodySerializer,
|
|
808
|
-
headers: {
|
|
809
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
810
|
-
...options?.headers
|
|
811
|
-
},
|
|
812
|
-
url: '/calls.update'
|
|
813
|
-
}); };
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* Deletes a message.
|
|
817
|
-
*/
|
|
818
|
-
export const chatDelete = <ThrowOnError extends boolean = false>(options?: Options<ChatDeleteData, ThrowOnError>) => { return (options?.client ?? client).post<ChatDeleteResponse, ChatDeleteError, ThrowOnError>({
|
|
819
|
-
...options,
|
|
820
|
-
...urlSearchParamsBodySerializer,
|
|
821
|
-
headers: {
|
|
822
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
823
|
-
...options?.headers
|
|
824
|
-
},
|
|
825
|
-
url: '/chat.delete'
|
|
826
|
-
}); };
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Deletes a pending scheduled message from the queue.
|
|
830
|
-
*/
|
|
831
|
-
export const chatDeleteScheduledMessage = <ThrowOnError extends boolean = false>(options: Options<ChatDeleteScheduledMessageData, ThrowOnError>) => { return (options?.client ?? client).post<ChatDeleteScheduledMessageResponse, ChatDeleteScheduledMessageError, ThrowOnError>({
|
|
832
|
-
...options,
|
|
833
|
-
...urlSearchParamsBodySerializer,
|
|
834
|
-
headers: {
|
|
835
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
836
|
-
...options?.headers
|
|
837
|
-
},
|
|
838
|
-
url: '/chat.deleteScheduledMessage'
|
|
839
|
-
}); };
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* Retrieve a permalink URL for a specific extant message
|
|
843
|
-
*/
|
|
844
|
-
export const chatGetPermalink = <ThrowOnError extends boolean = false>(options: Options<ChatGetPermalinkData, ThrowOnError>) => { return (options?.client ?? client).get<ChatGetPermalinkResponse, ChatGetPermalinkError, ThrowOnError>({
|
|
845
|
-
...options,
|
|
846
|
-
url: '/chat.getPermalink'
|
|
847
|
-
}); };
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* Share a me message into a channel.
|
|
851
|
-
*/
|
|
852
|
-
export const chatMeMessage = <ThrowOnError extends boolean = false>(options?: Options<ChatMeMessageData, ThrowOnError>) => { return (options?.client ?? client).post<ChatMeMessageResponse, ChatMeMessageError, ThrowOnError>({
|
|
853
|
-
...options,
|
|
854
|
-
...urlSearchParamsBodySerializer,
|
|
855
|
-
headers: {
|
|
856
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
857
|
-
...options?.headers
|
|
858
|
-
},
|
|
859
|
-
url: '/chat.meMessage'
|
|
860
|
-
}); };
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* Sends an ephemeral message to a user in a channel.
|
|
864
|
-
*/
|
|
865
|
-
export const chatPostEphemeral = <ThrowOnError extends boolean = false>(options: Options<ChatPostEphemeralData, ThrowOnError>) => { return (options?.client ?? client).post<ChatPostEphemeralResponse, ChatPostEphemeralError, ThrowOnError>({
|
|
866
|
-
...options,
|
|
867
|
-
...urlSearchParamsBodySerializer,
|
|
868
|
-
headers: {
|
|
869
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
870
|
-
...options?.headers
|
|
871
|
-
},
|
|
872
|
-
url: '/chat.postEphemeral'
|
|
873
|
-
}); };
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* Sends a message to a channel.
|
|
877
|
-
*/
|
|
878
|
-
export const chatPostMessage = <ThrowOnError extends boolean = false>(options: Options<ChatPostMessageData, ThrowOnError>) => { return (options?.client ?? client).post<ChatPostMessageResponse, ChatPostMessageError, ThrowOnError>({
|
|
879
|
-
...options,
|
|
880
|
-
...urlSearchParamsBodySerializer,
|
|
881
|
-
headers: {
|
|
882
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
883
|
-
...options?.headers
|
|
884
|
-
},
|
|
885
|
-
url: '/chat.postMessage'
|
|
886
|
-
}); };
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Schedules a message to be sent to a channel.
|
|
890
|
-
*/
|
|
891
|
-
export const chatScheduleMessage = <ThrowOnError extends boolean = false>(options?: Options<ChatScheduleMessageData, ThrowOnError>) => { return (options?.client ?? client).post<ChatScheduleMessageResponse, ChatScheduleMessageError, ThrowOnError>({
|
|
892
|
-
...options,
|
|
893
|
-
...urlSearchParamsBodySerializer,
|
|
894
|
-
headers: {
|
|
895
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
896
|
-
...options?.headers
|
|
897
|
-
},
|
|
898
|
-
url: '/chat.scheduleMessage'
|
|
899
|
-
}); };
|
|
900
|
-
|
|
901
|
-
/**
|
|
902
|
-
* Returns a list of scheduled messages.
|
|
903
|
-
*/
|
|
904
|
-
export const chatScheduledMessagesList = <ThrowOnError extends boolean = false>(options?: Options<ChatScheduledMessagesListData, ThrowOnError>) => { return (options?.client ?? client).get<ChatScheduledMessagesListResponse, ChatScheduledMessagesListError, ThrowOnError>({
|
|
905
|
-
...options,
|
|
906
|
-
url: '/chat.scheduledMessages.list'
|
|
907
|
-
}); };
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Provide custom unfurl behavior for user-posted URLs
|
|
911
|
-
*/
|
|
912
|
-
export const chatUnfurl = <ThrowOnError extends boolean = false>(options: Options<ChatUnfurlData, ThrowOnError>) => { return (options?.client ?? client).post<ChatUnfurlResponse, ChatUnfurlError, ThrowOnError>({
|
|
913
|
-
...options,
|
|
914
|
-
...urlSearchParamsBodySerializer,
|
|
915
|
-
headers: {
|
|
916
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
917
|
-
...options?.headers
|
|
918
|
-
},
|
|
919
|
-
url: '/chat.unfurl'
|
|
920
|
-
}); };
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* Updates a message.
|
|
924
|
-
*/
|
|
925
|
-
export const chatUpdate = <ThrowOnError extends boolean = false>(options: Options<ChatUpdateData, ThrowOnError>) => { return (options?.client ?? client).post<ChatUpdateResponse, ChatUpdateError, ThrowOnError>({
|
|
926
|
-
...options,
|
|
927
|
-
...urlSearchParamsBodySerializer,
|
|
928
|
-
headers: {
|
|
929
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
930
|
-
...options?.headers
|
|
931
|
-
},
|
|
932
|
-
url: '/chat.update'
|
|
933
|
-
}); };
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* Archives a conversation.
|
|
937
|
-
*/
|
|
938
|
-
export const conversationsArchive = <ThrowOnError extends boolean = false>(options?: Options<ConversationsArchiveData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsArchiveResponse, ConversationsArchiveError, ThrowOnError>({
|
|
939
|
-
...options,
|
|
940
|
-
...urlSearchParamsBodySerializer,
|
|
941
|
-
headers: {
|
|
942
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
943
|
-
...options?.headers
|
|
944
|
-
},
|
|
945
|
-
url: '/conversations.archive'
|
|
946
|
-
}); };
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* Closes a direct message or multi-person direct message.
|
|
950
|
-
*/
|
|
951
|
-
export const conversationsClose = <ThrowOnError extends boolean = false>(options?: Options<ConversationsCloseData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsCloseResponse, ConversationsCloseError, ThrowOnError>({
|
|
952
|
-
...options,
|
|
953
|
-
...urlSearchParamsBodySerializer,
|
|
954
|
-
headers: {
|
|
955
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
956
|
-
...options?.headers
|
|
957
|
-
},
|
|
958
|
-
url: '/conversations.close'
|
|
959
|
-
}); };
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* Initiates a public or private channel-based conversation
|
|
963
|
-
*/
|
|
964
|
-
export const conversationsCreate = <ThrowOnError extends boolean = false>(options?: Options<ConversationsCreateData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsCreateResponse, ConversationsCreateError, ThrowOnError>({
|
|
965
|
-
...options,
|
|
966
|
-
...urlSearchParamsBodySerializer,
|
|
967
|
-
headers: {
|
|
968
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
969
|
-
...options?.headers
|
|
970
|
-
},
|
|
971
|
-
url: '/conversations.create'
|
|
972
|
-
}); };
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* Fetches a conversation's history of messages and events.
|
|
976
|
-
*/
|
|
977
|
-
export const conversationsHistory = <ThrowOnError extends boolean = false>(options?: Options<ConversationsHistoryData, ThrowOnError>) => { return (options?.client ?? client).get<ConversationsHistoryResponse, ConversationsHistoryError, ThrowOnError>({
|
|
978
|
-
...options,
|
|
979
|
-
url: '/conversations.history'
|
|
980
|
-
}); };
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* Retrieve information about a conversation.
|
|
984
|
-
*/
|
|
985
|
-
export const conversationsInfo = <ThrowOnError extends boolean = false>(options?: Options<ConversationsInfoData, ThrowOnError>) => { return (options?.client ?? client).get<ConversationsInfoResponse, ConversationsInfoError, ThrowOnError>({
|
|
986
|
-
...options,
|
|
987
|
-
url: '/conversations.info'
|
|
988
|
-
}); };
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Invites users to a channel.
|
|
992
|
-
*/
|
|
993
|
-
export const conversationsInvite = <ThrowOnError extends boolean = false>(options?: Options<ConversationsInviteData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsInviteResponse, ConversationsInviteError, ThrowOnError>({
|
|
994
|
-
...options,
|
|
995
|
-
...urlSearchParamsBodySerializer,
|
|
996
|
-
headers: {
|
|
997
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
998
|
-
...options?.headers
|
|
999
|
-
},
|
|
1000
|
-
url: '/conversations.invite'
|
|
1001
|
-
}); };
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Joins an existing conversation.
|
|
1005
|
-
*/
|
|
1006
|
-
export const conversationsJoin = <ThrowOnError extends boolean = false>(options?: Options<ConversationsJoinData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsJoinResponse, ConversationsJoinError, ThrowOnError>({
|
|
1007
|
-
...options,
|
|
1008
|
-
...urlSearchParamsBodySerializer,
|
|
1009
|
-
headers: {
|
|
1010
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1011
|
-
...options?.headers
|
|
1012
|
-
},
|
|
1013
|
-
url: '/conversations.join'
|
|
1014
|
-
}); };
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Removes a user from a conversation.
|
|
1018
|
-
*/
|
|
1019
|
-
export const conversationsKick = <ThrowOnError extends boolean = false>(options?: Options<ConversationsKickData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsKickResponse, ConversationsKickError, ThrowOnError>({
|
|
1020
|
-
...options,
|
|
1021
|
-
...urlSearchParamsBodySerializer,
|
|
1022
|
-
headers: {
|
|
1023
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1024
|
-
...options?.headers
|
|
1025
|
-
},
|
|
1026
|
-
url: '/conversations.kick'
|
|
1027
|
-
}); };
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* Leaves a conversation.
|
|
1031
|
-
*/
|
|
1032
|
-
export const conversationsLeave = <ThrowOnError extends boolean = false>(options?: Options<ConversationsLeaveData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsLeaveResponse, ConversationsLeaveError, ThrowOnError>({
|
|
1033
|
-
...options,
|
|
1034
|
-
...urlSearchParamsBodySerializer,
|
|
1035
|
-
headers: {
|
|
1036
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1037
|
-
...options?.headers
|
|
1038
|
-
},
|
|
1039
|
-
url: '/conversations.leave'
|
|
1040
|
-
}); };
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* Lists all channels in a Slack team.
|
|
1044
|
-
*/
|
|
1045
|
-
export const conversationsList = <ThrowOnError extends boolean = false>(options?: Options<ConversationsListData, ThrowOnError>) => { return (options?.client ?? client).get<ConversationsListResponse, ConversationsListError, ThrowOnError>({
|
|
1046
|
-
...options,
|
|
1047
|
-
url: '/conversations.list'
|
|
1048
|
-
}); };
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* Sets the read cursor in a channel.
|
|
1052
|
-
*/
|
|
1053
|
-
export const conversationsMark = <ThrowOnError extends boolean = false>(options?: Options<ConversationsMarkData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsMarkResponse, ConversationsMarkError, ThrowOnError>({
|
|
1054
|
-
...options,
|
|
1055
|
-
...urlSearchParamsBodySerializer,
|
|
1056
|
-
headers: {
|
|
1057
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1058
|
-
...options?.headers
|
|
1059
|
-
},
|
|
1060
|
-
url: '/conversations.mark'
|
|
1061
|
-
}); };
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* Retrieve members of a conversation.
|
|
1065
|
-
*/
|
|
1066
|
-
export const conversationsMembers = <ThrowOnError extends boolean = false>(options?: Options<ConversationsMembersData, ThrowOnError>) => { return (options?.client ?? client).get<ConversationsMembersResponse, ConversationsMembersError, ThrowOnError>({
|
|
1067
|
-
...options,
|
|
1068
|
-
url: '/conversations.members'
|
|
1069
|
-
}); };
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* Opens or resumes a direct message or multi-person direct message.
|
|
1073
|
-
*/
|
|
1074
|
-
export const conversationsOpen = <ThrowOnError extends boolean = false>(options?: Options<ConversationsOpenData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsOpenResponse, ConversationsOpenError, ThrowOnError>({
|
|
1075
|
-
...options,
|
|
1076
|
-
...urlSearchParamsBodySerializer,
|
|
1077
|
-
headers: {
|
|
1078
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1079
|
-
...options?.headers
|
|
1080
|
-
},
|
|
1081
|
-
url: '/conversations.open'
|
|
1082
|
-
}); };
|
|
1083
|
-
|
|
1084
|
-
/**
|
|
1085
|
-
* Renames a conversation.
|
|
1086
|
-
*/
|
|
1087
|
-
export const conversationsRename = <ThrowOnError extends boolean = false>(options?: Options<ConversationsRenameData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsRenameResponse, ConversationsRenameError, ThrowOnError>({
|
|
1088
|
-
...options,
|
|
1089
|
-
...urlSearchParamsBodySerializer,
|
|
1090
|
-
headers: {
|
|
1091
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1092
|
-
...options?.headers
|
|
1093
|
-
},
|
|
1094
|
-
url: '/conversations.rename'
|
|
1095
|
-
}); };
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* Retrieve a thread of messages posted to a conversation
|
|
1099
|
-
*/
|
|
1100
|
-
export const conversationsReplies = <ThrowOnError extends boolean = false>(options?: Options<ConversationsRepliesData, ThrowOnError>) => { return (options?.client ?? client).get<ConversationsRepliesResponse, ConversationsRepliesError, ThrowOnError>({
|
|
1101
|
-
...options,
|
|
1102
|
-
url: '/conversations.replies'
|
|
1103
|
-
}); };
|
|
1104
|
-
|
|
1105
|
-
/**
|
|
1106
|
-
* Sets the purpose for a conversation.
|
|
1107
|
-
*/
|
|
1108
|
-
export const conversationsSetPurpose = <ThrowOnError extends boolean = false>(options?: Options<ConversationsSetPurposeData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsSetPurposeResponse, ConversationsSetPurposeError, ThrowOnError>({
|
|
1109
|
-
...options,
|
|
1110
|
-
...urlSearchParamsBodySerializer,
|
|
1111
|
-
headers: {
|
|
1112
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1113
|
-
...options?.headers
|
|
1114
|
-
},
|
|
1115
|
-
url: '/conversations.setPurpose'
|
|
1116
|
-
}); };
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* Sets the topic for a conversation.
|
|
1120
|
-
*/
|
|
1121
|
-
export const conversationsSetTopic = <ThrowOnError extends boolean = false>(options?: Options<ConversationsSetTopicData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsSetTopicResponse, ConversationsSetTopicError, ThrowOnError>({
|
|
1122
|
-
...options,
|
|
1123
|
-
...urlSearchParamsBodySerializer,
|
|
1124
|
-
headers: {
|
|
1125
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1126
|
-
...options?.headers
|
|
1127
|
-
},
|
|
1128
|
-
url: '/conversations.setTopic'
|
|
1129
|
-
}); };
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* Reverses conversation archival.
|
|
1133
|
-
*/
|
|
1134
|
-
export const conversationsUnarchive = <ThrowOnError extends boolean = false>(options?: Options<ConversationsUnarchiveData, ThrowOnError>) => { return (options?.client ?? client).post<ConversationsUnarchiveResponse, ConversationsUnarchiveError, ThrowOnError>({
|
|
1135
|
-
...options,
|
|
1136
|
-
...urlSearchParamsBodySerializer,
|
|
1137
|
-
headers: {
|
|
1138
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1139
|
-
...options?.headers
|
|
1140
|
-
},
|
|
1141
|
-
url: '/conversations.unarchive'
|
|
1142
|
-
}); };
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Open a dialog with a user
|
|
1146
|
-
*/
|
|
1147
|
-
export const dialogOpen = <ThrowOnError extends boolean = false>(options: Options<DialogOpenData, ThrowOnError>) => { return (options?.client ?? client).get<DialogOpenResponse, DialogOpenError, ThrowOnError>({
|
|
1148
|
-
...options,
|
|
1149
|
-
url: '/dialog.open'
|
|
1150
|
-
}); };
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* Ends the current user's Do Not Disturb session immediately.
|
|
1154
|
-
*/
|
|
1155
|
-
export const dndEndDnd = <ThrowOnError extends boolean = false>(options: Options<DndEndDndData, ThrowOnError>) => { return (options?.client ?? client).post<DndEndDndResponse, DndEndDndError, ThrowOnError>({
|
|
1156
|
-
...options,
|
|
1157
|
-
url: '/dnd.endDnd'
|
|
1158
|
-
}); };
|
|
1159
|
-
|
|
1160
|
-
/**
|
|
1161
|
-
* Ends the current user's snooze mode immediately.
|
|
1162
|
-
*/
|
|
1163
|
-
export const dndEndSnooze = <ThrowOnError extends boolean = false>(options: Options<DndEndSnoozeData, ThrowOnError>) => { return (options?.client ?? client).post<DndEndSnoozeResponse, DndEndSnoozeError, ThrowOnError>({
|
|
1164
|
-
...options,
|
|
1165
|
-
url: '/dnd.endSnooze'
|
|
1166
|
-
}); };
|
|
1167
|
-
|
|
1168
|
-
/**
|
|
1169
|
-
* Retrieves a user's current Do Not Disturb status.
|
|
1170
|
-
*/
|
|
1171
|
-
export const dndInfo = <ThrowOnError extends boolean = false>(options?: Options<DndInfoData, ThrowOnError>) => { return (options?.client ?? client).get<DndInfoResponse, DndInfoError, ThrowOnError>({
|
|
1172
|
-
...options,
|
|
1173
|
-
url: '/dnd.info'
|
|
1174
|
-
}); };
|
|
1175
|
-
|
|
1176
|
-
/**
|
|
1177
|
-
* Turns on Do Not Disturb mode for the current user, or changes its duration.
|
|
1178
|
-
*/
|
|
1179
|
-
export const dndSetSnooze = <ThrowOnError extends boolean = false>(options: Options<DndSetSnoozeData, ThrowOnError>) => { return (options?.client ?? client).post<DndSetSnoozeResponse, DndSetSnoozeError, ThrowOnError>({
|
|
1180
|
-
...options,
|
|
1181
|
-
...urlSearchParamsBodySerializer,
|
|
1182
|
-
headers: {
|
|
1183
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1184
|
-
...options?.headers
|
|
1185
|
-
},
|
|
1186
|
-
url: '/dnd.setSnooze'
|
|
1187
|
-
}); };
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* Retrieves the Do Not Disturb status for up to 50 users on a team.
|
|
1191
|
-
*/
|
|
1192
|
-
export const dndTeamInfo = <ThrowOnError extends boolean = false>(options?: Options<DndTeamInfoData, ThrowOnError>) => { return (options?.client ?? client).get<DndTeamInfoResponse, DndTeamInfoError, ThrowOnError>({
|
|
1193
|
-
...options,
|
|
1194
|
-
url: '/dnd.teamInfo'
|
|
1195
|
-
}); };
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* Lists custom emoji for a team.
|
|
1199
|
-
*/
|
|
1200
|
-
export const emojiList = <ThrowOnError extends boolean = false>(options: Options<EmojiListData, ThrowOnError>) => { return (options?.client ?? client).get<EmojiListResponse, EmojiListError, ThrowOnError>({
|
|
1201
|
-
...options,
|
|
1202
|
-
url: '/emoji.list'
|
|
1203
|
-
}); };
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* Deletes an existing comment on a file.
|
|
1207
|
-
*/
|
|
1208
|
-
export const filesCommentsDelete = <ThrowOnError extends boolean = false>(options?: Options<FilesCommentsDeleteData, ThrowOnError>) => { return (options?.client ?? client).post<FilesCommentsDeleteResponse, FilesCommentsDeleteError, ThrowOnError>({
|
|
1209
|
-
...options,
|
|
1210
|
-
...urlSearchParamsBodySerializer,
|
|
1211
|
-
headers: {
|
|
1212
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1213
|
-
...options?.headers
|
|
1214
|
-
},
|
|
1215
|
-
url: '/files.comments.delete'
|
|
1216
|
-
}); };
|
|
1217
|
-
|
|
1218
|
-
/**
|
|
1219
|
-
* Deletes a file.
|
|
1220
|
-
*/
|
|
1221
|
-
export const filesDelete = <ThrowOnError extends boolean = false>(options?: Options<FilesDeleteData, ThrowOnError>) => { return (options?.client ?? client).post<FilesDeleteResponse, FilesDeleteError, ThrowOnError>({
|
|
1222
|
-
...options,
|
|
1223
|
-
...urlSearchParamsBodySerializer,
|
|
1224
|
-
headers: {
|
|
1225
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1226
|
-
...options?.headers
|
|
1227
|
-
},
|
|
1228
|
-
url: '/files.delete'
|
|
1229
|
-
}); };
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* Gets information about a file.
|
|
1233
|
-
*/
|
|
1234
|
-
export const filesInfo = <ThrowOnError extends boolean = false>(options?: Options<FilesInfoData, ThrowOnError>) => { return (options?.client ?? client).get<FilesInfoResponse, FilesInfoError, ThrowOnError>({
|
|
1235
|
-
...options,
|
|
1236
|
-
url: '/files.info'
|
|
1237
|
-
}); };
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* List for a team, in a channel, or from a user with applied filters.
|
|
1241
|
-
*/
|
|
1242
|
-
export const filesList = <ThrowOnError extends boolean = false>(options?: Options<FilesListData, ThrowOnError>) => { return (options?.client ?? client).get<FilesListResponse, FilesListError, ThrowOnError>({
|
|
1243
|
-
...options,
|
|
1244
|
-
url: '/files.list'
|
|
1245
|
-
}); };
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Adds a file from a remote service
|
|
1249
|
-
*/
|
|
1250
|
-
export const filesRemoteAdd = <ThrowOnError extends boolean = false>(options?: Options<FilesRemoteAddData, ThrowOnError>) => { return (options?.client ?? client).post<FilesRemoteAddResponse, FilesRemoteAddError, ThrowOnError>({
|
|
1251
|
-
...options,
|
|
1252
|
-
...urlSearchParamsBodySerializer,
|
|
1253
|
-
headers: {
|
|
1254
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1255
|
-
...options?.headers
|
|
1256
|
-
},
|
|
1257
|
-
url: '/files.remote.add'
|
|
1258
|
-
}); };
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* Retrieve information about a remote file added to Slack
|
|
1262
|
-
*/
|
|
1263
|
-
export const filesRemoteInfo = <ThrowOnError extends boolean = false>(options?: Options<FilesRemoteInfoData, ThrowOnError>) => { return (options?.client ?? client).get<FilesRemoteInfoResponse, FilesRemoteInfoError, ThrowOnError>({
|
|
1264
|
-
...options,
|
|
1265
|
-
url: '/files.remote.info'
|
|
1266
|
-
}); };
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
* Retrieve information about a remote file added to Slack
|
|
1270
|
-
*/
|
|
1271
|
-
export const filesRemoteList = <ThrowOnError extends boolean = false>(options?: Options<FilesRemoteListData, ThrowOnError>) => { return (options?.client ?? client).get<FilesRemoteListResponse, FilesRemoteListError, ThrowOnError>({
|
|
1272
|
-
...options,
|
|
1273
|
-
url: '/files.remote.list'
|
|
1274
|
-
}); };
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Remove a remote file.
|
|
1278
|
-
*/
|
|
1279
|
-
export const filesRemoteRemove = <ThrowOnError extends boolean = false>(options?: Options<FilesRemoteRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<FilesRemoteRemoveResponse, FilesRemoteRemoveError, ThrowOnError>({
|
|
1280
|
-
...options,
|
|
1281
|
-
...urlSearchParamsBodySerializer,
|
|
1282
|
-
headers: {
|
|
1283
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1284
|
-
...options?.headers
|
|
1285
|
-
},
|
|
1286
|
-
url: '/files.remote.remove'
|
|
1287
|
-
}); };
|
|
1288
|
-
|
|
1289
|
-
/**
|
|
1290
|
-
* Share a remote file into a channel.
|
|
1291
|
-
*/
|
|
1292
|
-
export const filesRemoteShare = <ThrowOnError extends boolean = false>(options?: Options<FilesRemoteShareData, ThrowOnError>) => { return (options?.client ?? client).get<FilesRemoteShareResponse, FilesRemoteShareError, ThrowOnError>({
|
|
1293
|
-
...options,
|
|
1294
|
-
url: '/files.remote.share'
|
|
1295
|
-
}); };
|
|
1296
|
-
|
|
1297
|
-
/**
|
|
1298
|
-
* Updates an existing remote file.
|
|
1299
|
-
*/
|
|
1300
|
-
export const filesRemoteUpdate = <ThrowOnError extends boolean = false>(options?: Options<FilesRemoteUpdateData, ThrowOnError>) => { return (options?.client ?? client).post<FilesRemoteUpdateResponse, FilesRemoteUpdateError, ThrowOnError>({
|
|
1301
|
-
...options,
|
|
1302
|
-
...urlSearchParamsBodySerializer,
|
|
1303
|
-
headers: {
|
|
1304
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1305
|
-
...options?.headers
|
|
1306
|
-
},
|
|
1307
|
-
url: '/files.remote.update'
|
|
1308
|
-
}); };
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Revokes public/external sharing access for a file
|
|
1312
|
-
*/
|
|
1313
|
-
export const filesRevokePublicUrl = <ThrowOnError extends boolean = false>(options?: Options<FilesRevokePublicUrlData, ThrowOnError>) => { return (options?.client ?? client).post<FilesRevokePublicUrlResponse, FilesRevokePublicUrlError, ThrowOnError>({
|
|
1314
|
-
...options,
|
|
1315
|
-
...urlSearchParamsBodySerializer,
|
|
1316
|
-
headers: {
|
|
1317
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1318
|
-
...options?.headers
|
|
1319
|
-
},
|
|
1320
|
-
url: '/files.revokePublicURL'
|
|
1321
|
-
}); };
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* Enables a file for public/external sharing.
|
|
1325
|
-
*/
|
|
1326
|
-
export const filesSharedPublicUrl = <ThrowOnError extends boolean = false>(options?: Options<FilesSharedPublicUrlData, ThrowOnError>) => { return (options?.client ?? client).post<FilesSharedPublicUrlResponse, FilesSharedPublicUrlError, ThrowOnError>({
|
|
1327
|
-
...options,
|
|
1328
|
-
...urlSearchParamsBodySerializer,
|
|
1329
|
-
headers: {
|
|
1330
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1331
|
-
...options?.headers
|
|
1332
|
-
},
|
|
1333
|
-
url: '/files.sharedPublicURL'
|
|
1334
|
-
}); };
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Uploads or creates a file.
|
|
1338
|
-
*/
|
|
1339
|
-
export const filesUpload = <ThrowOnError extends boolean = false>(options?: Options<FilesUploadData, ThrowOnError>) => { return (options?.client ?? client).post<FilesUploadResponse, FilesUploadError, ThrowOnError>({
|
|
1340
|
-
...options,
|
|
1341
|
-
...urlSearchParamsBodySerializer,
|
|
1342
|
-
headers: {
|
|
1343
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1344
|
-
...options?.headers
|
|
1345
|
-
},
|
|
1346
|
-
url: '/files.upload'
|
|
1347
|
-
}); };
|
|
1348
|
-
|
|
1349
|
-
/**
|
|
1350
|
-
* For Enterprise Grid workspaces, map local user IDs to global user IDs
|
|
1351
|
-
*/
|
|
1352
|
-
export const migrationExchange = <ThrowOnError extends boolean = false>(options: Options<MigrationExchangeData, ThrowOnError>) => { return (options?.client ?? client).get<MigrationExchangeResponse, MigrationExchangeError, ThrowOnError>({
|
|
1353
|
-
...options,
|
|
1354
|
-
url: '/migration.exchange'
|
|
1355
|
-
}); };
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* Exchanges a temporary OAuth verifier code for an access token.
|
|
1359
|
-
*/
|
|
1360
|
-
export const oauthAccess = <ThrowOnError extends boolean = false>(options?: Options<OauthAccessData, ThrowOnError>) => { return (options?.client ?? client).get<OauthAccessResponse, OauthAccessError, ThrowOnError>({
|
|
1361
|
-
...options,
|
|
1362
|
-
url: '/oauth.access'
|
|
1363
|
-
}); };
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* Exchanges a temporary OAuth verifier code for a workspace token.
|
|
1367
|
-
*/
|
|
1368
|
-
export const oauthToken = <ThrowOnError extends boolean = false>(options?: Options<OauthTokenData, ThrowOnError>) => { return (options?.client ?? client).get<OauthTokenResponse, OauthTokenError, ThrowOnError>({
|
|
1369
|
-
...options,
|
|
1370
|
-
url: '/oauth.token'
|
|
1371
|
-
}); };
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Exchanges a temporary OAuth verifier code for an access token.
|
|
1375
|
-
*/
|
|
1376
|
-
export const oauthV2Access = <ThrowOnError extends boolean = false>(options: Options<OauthV2AccessData, ThrowOnError>) => { return (options?.client ?? client).get<OauthV2AccessResponse, OauthV2AccessError, ThrowOnError>({
|
|
1377
|
-
...options,
|
|
1378
|
-
url: '/oauth.v2.access'
|
|
1379
|
-
}); };
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* Pins an item to a channel.
|
|
1383
|
-
*/
|
|
1384
|
-
export const pinsAdd = <ThrowOnError extends boolean = false>(options: Options<PinsAddData, ThrowOnError>) => { return (options?.client ?? client).post<PinsAddResponse, PinsAddError, ThrowOnError>({
|
|
1385
|
-
...options,
|
|
1386
|
-
...urlSearchParamsBodySerializer,
|
|
1387
|
-
headers: {
|
|
1388
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1389
|
-
...options?.headers
|
|
1390
|
-
},
|
|
1391
|
-
url: '/pins.add'
|
|
1392
|
-
}); };
|
|
1393
|
-
|
|
1394
|
-
/**
|
|
1395
|
-
* Lists items pinned to a channel.
|
|
1396
|
-
*/
|
|
1397
|
-
export const pinsList = <ThrowOnError extends boolean = false>(options: Options<PinsListData, ThrowOnError>) => { return (options?.client ?? client).get<PinsListResponse, PinsListError, ThrowOnError>({
|
|
1398
|
-
...options,
|
|
1399
|
-
url: '/pins.list'
|
|
1400
|
-
}); };
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* Un-pins an item from a channel.
|
|
1404
|
-
*/
|
|
1405
|
-
export const pinsRemove = <ThrowOnError extends boolean = false>(options: Options<PinsRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<PinsRemoveResponse, PinsRemoveError, ThrowOnError>({
|
|
1406
|
-
...options,
|
|
1407
|
-
...urlSearchParamsBodySerializer,
|
|
1408
|
-
headers: {
|
|
1409
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1410
|
-
...options?.headers
|
|
1411
|
-
},
|
|
1412
|
-
url: '/pins.remove'
|
|
1413
|
-
}); };
|
|
1414
|
-
|
|
1415
|
-
/**
|
|
1416
|
-
* Adds a reaction to an item.
|
|
1417
|
-
*/
|
|
1418
|
-
export const reactionsAdd = <ThrowOnError extends boolean = false>(options: Options<ReactionsAddData, ThrowOnError>) => { return (options?.client ?? client).post<ReactionsAddResponse, ReactionsAddError, ThrowOnError>({
|
|
1419
|
-
...options,
|
|
1420
|
-
...urlSearchParamsBodySerializer,
|
|
1421
|
-
headers: {
|
|
1422
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1423
|
-
...options?.headers
|
|
1424
|
-
},
|
|
1425
|
-
url: '/reactions.add'
|
|
1426
|
-
}); };
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* Gets reactions for an item.
|
|
1430
|
-
*/
|
|
1431
|
-
export const reactionsGet = <ThrowOnError extends boolean = false>(options: Options<ReactionsGetData, ThrowOnError>) => { return (options?.client ?? client).get<ReactionsGetResponse, ReactionsGetError, ThrowOnError>({
|
|
1432
|
-
...options,
|
|
1433
|
-
url: '/reactions.get'
|
|
1434
|
-
}); };
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* Lists reactions made by a user.
|
|
1438
|
-
*/
|
|
1439
|
-
export const reactionsList = <ThrowOnError extends boolean = false>(options: Options<ReactionsListData, ThrowOnError>) => { return (options?.client ?? client).get<ReactionsListResponse, ReactionsListError, ThrowOnError>({
|
|
1440
|
-
...options,
|
|
1441
|
-
url: '/reactions.list'
|
|
1442
|
-
}); };
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* Removes a reaction from an item.
|
|
1446
|
-
*/
|
|
1447
|
-
export const reactionsRemove = <ThrowOnError extends boolean = false>(options: Options<ReactionsRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<ReactionsRemoveResponse, ReactionsRemoveError, ThrowOnError>({
|
|
1448
|
-
...options,
|
|
1449
|
-
...urlSearchParamsBodySerializer,
|
|
1450
|
-
headers: {
|
|
1451
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1452
|
-
...options?.headers
|
|
1453
|
-
},
|
|
1454
|
-
url: '/reactions.remove'
|
|
1455
|
-
}); };
|
|
1456
|
-
|
|
1457
|
-
/**
|
|
1458
|
-
* Creates a reminder.
|
|
1459
|
-
*/
|
|
1460
|
-
export const remindersAdd = <ThrowOnError extends boolean = false>(options: Options<RemindersAddData, ThrowOnError>) => { return (options?.client ?? client).post<RemindersAddResponse, RemindersAddError, ThrowOnError>({
|
|
1461
|
-
...options,
|
|
1462
|
-
...urlSearchParamsBodySerializer,
|
|
1463
|
-
headers: {
|
|
1464
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1465
|
-
...options?.headers
|
|
1466
|
-
},
|
|
1467
|
-
url: '/reminders.add'
|
|
1468
|
-
}); };
|
|
1469
|
-
|
|
1470
|
-
/**
|
|
1471
|
-
* Marks a reminder as complete.
|
|
1472
|
-
*/
|
|
1473
|
-
export const remindersComplete = <ThrowOnError extends boolean = false>(options?: Options<RemindersCompleteData, ThrowOnError>) => { return (options?.client ?? client).post<RemindersCompleteResponse, RemindersCompleteError, ThrowOnError>({
|
|
1474
|
-
...options,
|
|
1475
|
-
...urlSearchParamsBodySerializer,
|
|
1476
|
-
headers: {
|
|
1477
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1478
|
-
...options?.headers
|
|
1479
|
-
},
|
|
1480
|
-
url: '/reminders.complete'
|
|
1481
|
-
}); };
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
* Deletes a reminder.
|
|
1485
|
-
*/
|
|
1486
|
-
export const remindersDelete = <ThrowOnError extends boolean = false>(options?: Options<RemindersDeleteData, ThrowOnError>) => { return (options?.client ?? client).post<RemindersDeleteResponse, RemindersDeleteError, ThrowOnError>({
|
|
1487
|
-
...options,
|
|
1488
|
-
...urlSearchParamsBodySerializer,
|
|
1489
|
-
headers: {
|
|
1490
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1491
|
-
...options?.headers
|
|
1492
|
-
},
|
|
1493
|
-
url: '/reminders.delete'
|
|
1494
|
-
}); };
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* Gets information about a reminder.
|
|
1498
|
-
*/
|
|
1499
|
-
export const remindersInfo = <ThrowOnError extends boolean = false>(options?: Options<RemindersInfoData, ThrowOnError>) => { return (options?.client ?? client).get<RemindersInfoResponse, RemindersInfoError, ThrowOnError>({
|
|
1500
|
-
...options,
|
|
1501
|
-
url: '/reminders.info'
|
|
1502
|
-
}); };
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1505
|
-
* Lists all reminders created by or for a given user.
|
|
1506
|
-
*/
|
|
1507
|
-
export const remindersList = <ThrowOnError extends boolean = false>(options?: Options<RemindersListData, ThrowOnError>) => { return (options?.client ?? client).get<RemindersListResponse, RemindersListError, ThrowOnError>({
|
|
1508
|
-
...options,
|
|
1509
|
-
url: '/reminders.list'
|
|
1510
|
-
}); };
|
|
1511
|
-
|
|
1512
|
-
/**
|
|
1513
|
-
* Starts a Real Time Messaging session.
|
|
1514
|
-
*/
|
|
1515
|
-
export const rtmConnect = <ThrowOnError extends boolean = false>(options: Options<RtmConnectData, ThrowOnError>) => { return (options?.client ?? client).get<RtmConnectResponse, RtmConnectError, ThrowOnError>({
|
|
1516
|
-
...options,
|
|
1517
|
-
url: '/rtm.connect'
|
|
1518
|
-
}); };
|
|
1519
|
-
|
|
1520
|
-
/**
|
|
1521
|
-
* Searches for messages matching a query.
|
|
1522
|
-
*/
|
|
1523
|
-
export const searchMessages = <ThrowOnError extends boolean = false>(options: Options<SearchMessagesData, ThrowOnError>) => { return (options?.client ?? client).get<SearchMessagesResponse, SearchMessagesError, ThrowOnError>({
|
|
1524
|
-
...options,
|
|
1525
|
-
url: '/search.messages'
|
|
1526
|
-
}); };
|
|
1527
|
-
|
|
1528
|
-
/**
|
|
1529
|
-
* Adds a star to an item.
|
|
1530
|
-
*/
|
|
1531
|
-
export const starsAdd = <ThrowOnError extends boolean = false>(options: Options<StarsAddData, ThrowOnError>) => { return (options?.client ?? client).post<StarsAddResponse, StarsAddError, ThrowOnError>({
|
|
1532
|
-
...options,
|
|
1533
|
-
...urlSearchParamsBodySerializer,
|
|
1534
|
-
headers: {
|
|
1535
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1536
|
-
...options?.headers
|
|
1537
|
-
},
|
|
1538
|
-
url: '/stars.add'
|
|
1539
|
-
}); };
|
|
1540
|
-
|
|
1541
|
-
/**
|
|
1542
|
-
* Lists stars for a user.
|
|
1543
|
-
*/
|
|
1544
|
-
export const starsList = <ThrowOnError extends boolean = false>(options?: Options<StarsListData, ThrowOnError>) => { return (options?.client ?? client).get<StarsListResponse, StarsListError, ThrowOnError>({
|
|
1545
|
-
...options,
|
|
1546
|
-
url: '/stars.list'
|
|
1547
|
-
}); };
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Removes a star from an item.
|
|
1551
|
-
*/
|
|
1552
|
-
export const starsRemove = <ThrowOnError extends boolean = false>(options: Options<StarsRemoveData, ThrowOnError>) => { return (options?.client ?? client).post<StarsRemoveResponse, StarsRemoveError, ThrowOnError>({
|
|
1553
|
-
...options,
|
|
1554
|
-
...urlSearchParamsBodySerializer,
|
|
1555
|
-
headers: {
|
|
1556
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1557
|
-
...options?.headers
|
|
1558
|
-
},
|
|
1559
|
-
url: '/stars.remove'
|
|
1560
|
-
}); };
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* Gets the access logs for the current team.
|
|
1564
|
-
*/
|
|
1565
|
-
export const teamAccessLogs = <ThrowOnError extends boolean = false>(options: Options<TeamAccessLogsData, ThrowOnError>) => { return (options?.client ?? client).get<TeamAccessLogsResponse, TeamAccessLogsError, ThrowOnError>({
|
|
1566
|
-
...options,
|
|
1567
|
-
url: '/team.accessLogs'
|
|
1568
|
-
}); };
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* Gets billable users information for the current team.
|
|
1572
|
-
*/
|
|
1573
|
-
export const teamBillableInfo = <ThrowOnError extends boolean = false>(options: Options<TeamBillableInfoData, ThrowOnError>) => { return (options?.client ?? client).get<TeamBillableInfoResponse, TeamBillableInfoError, ThrowOnError>({
|
|
1574
|
-
...options,
|
|
1575
|
-
url: '/team.billableInfo'
|
|
1576
|
-
}); };
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* Gets information about the current team.
|
|
1580
|
-
*/
|
|
1581
|
-
export const teamInfo = <ThrowOnError extends boolean = false>(options: Options<TeamInfoData, ThrowOnError>) => { return (options?.client ?? client).get<TeamInfoResponse, TeamInfoError, ThrowOnError>({
|
|
1582
|
-
...options,
|
|
1583
|
-
url: '/team.info'
|
|
1584
|
-
}); };
|
|
1585
|
-
|
|
1586
|
-
/**
|
|
1587
|
-
* Gets the integration logs for the current team.
|
|
1588
|
-
*/
|
|
1589
|
-
export const teamIntegrationLogs = <ThrowOnError extends boolean = false>(options: Options<TeamIntegrationLogsData, ThrowOnError>) => { return (options?.client ?? client).get<TeamIntegrationLogsResponse, TeamIntegrationLogsError, ThrowOnError>({
|
|
1590
|
-
...options,
|
|
1591
|
-
url: '/team.integrationLogs'
|
|
1592
|
-
}); };
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
* Retrieve a team's profile.
|
|
1596
|
-
*/
|
|
1597
|
-
export const teamProfileGet = <ThrowOnError extends boolean = false>(options: Options<TeamProfileGetData, ThrowOnError>) => { return (options?.client ?? client).get<TeamProfileGetResponse, TeamProfileGetError, ThrowOnError>({
|
|
1598
|
-
...options,
|
|
1599
|
-
url: '/team.profile.get'
|
|
1600
|
-
}); };
|
|
1601
|
-
|
|
1602
|
-
/**
|
|
1603
|
-
* Create a User Group
|
|
1604
|
-
*/
|
|
1605
|
-
export const usergroupsCreate = <ThrowOnError extends boolean = false>(options: Options<UsergroupsCreateData, ThrowOnError>) => { return (options?.client ?? client).post<UsergroupsCreateResponse, UsergroupsCreateError, ThrowOnError>({
|
|
1606
|
-
...options,
|
|
1607
|
-
...urlSearchParamsBodySerializer,
|
|
1608
|
-
headers: {
|
|
1609
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1610
|
-
...options?.headers
|
|
1611
|
-
},
|
|
1612
|
-
url: '/usergroups.create'
|
|
1613
|
-
}); };
|
|
1614
|
-
|
|
1615
|
-
/**
|
|
1616
|
-
* Disable an existing User Group
|
|
1617
|
-
*/
|
|
1618
|
-
export const usergroupsDisable = <ThrowOnError extends boolean = false>(options: Options<UsergroupsDisableData, ThrowOnError>) => { return (options?.client ?? client).post<UsergroupsDisableResponse, UsergroupsDisableError, ThrowOnError>({
|
|
1619
|
-
...options,
|
|
1620
|
-
...urlSearchParamsBodySerializer,
|
|
1621
|
-
headers: {
|
|
1622
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1623
|
-
...options?.headers
|
|
1624
|
-
},
|
|
1625
|
-
url: '/usergroups.disable'
|
|
1626
|
-
}); };
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* Enable a User Group
|
|
1630
|
-
*/
|
|
1631
|
-
export const usergroupsEnable = <ThrowOnError extends boolean = false>(options: Options<UsergroupsEnableData, ThrowOnError>) => { return (options?.client ?? client).post<UsergroupsEnableResponse, UsergroupsEnableError, ThrowOnError>({
|
|
1632
|
-
...options,
|
|
1633
|
-
...urlSearchParamsBodySerializer,
|
|
1634
|
-
headers: {
|
|
1635
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1636
|
-
...options?.headers
|
|
1637
|
-
},
|
|
1638
|
-
url: '/usergroups.enable'
|
|
1639
|
-
}); };
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* List all User Groups for a team
|
|
1643
|
-
*/
|
|
1644
|
-
export const usergroupsList = <ThrowOnError extends boolean = false>(options: Options<UsergroupsListData, ThrowOnError>) => { return (options?.client ?? client).get<UsergroupsListResponse, UsergroupsListError, ThrowOnError>({
|
|
1645
|
-
...options,
|
|
1646
|
-
url: '/usergroups.list'
|
|
1647
|
-
}); };
|
|
1648
|
-
|
|
1649
|
-
/**
|
|
1650
|
-
* Update an existing User Group
|
|
1651
|
-
*/
|
|
1652
|
-
export const usergroupsUpdate = <ThrowOnError extends boolean = false>(options: Options<UsergroupsUpdateData, ThrowOnError>) => { return (options?.client ?? client).post<UsergroupsUpdateResponse, UsergroupsUpdateError, ThrowOnError>({
|
|
1653
|
-
...options,
|
|
1654
|
-
...urlSearchParamsBodySerializer,
|
|
1655
|
-
headers: {
|
|
1656
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1657
|
-
...options?.headers
|
|
1658
|
-
},
|
|
1659
|
-
url: '/usergroups.update'
|
|
1660
|
-
}); };
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* List all users in a User Group
|
|
1664
|
-
*/
|
|
1665
|
-
export const usergroupsUsersList = <ThrowOnError extends boolean = false>(options: Options<UsergroupsUsersListData, ThrowOnError>) => { return (options?.client ?? client).get<UsergroupsUsersListResponse, UsergroupsUsersListError, ThrowOnError>({
|
|
1666
|
-
...options,
|
|
1667
|
-
url: '/usergroups.users.list'
|
|
1668
|
-
}); };
|
|
1669
|
-
|
|
1670
|
-
/**
|
|
1671
|
-
* Update the list of users for a User Group
|
|
1672
|
-
*/
|
|
1673
|
-
export const usergroupsUsersUpdate = <ThrowOnError extends boolean = false>(options: Options<UsergroupsUsersUpdateData, ThrowOnError>) => { return (options?.client ?? client).post<UsergroupsUsersUpdateResponse, UsergroupsUsersUpdateError, ThrowOnError>({
|
|
1674
|
-
...options,
|
|
1675
|
-
...urlSearchParamsBodySerializer,
|
|
1676
|
-
headers: {
|
|
1677
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1678
|
-
...options?.headers
|
|
1679
|
-
},
|
|
1680
|
-
url: '/usergroups.users.update'
|
|
1681
|
-
}); };
|
|
1682
|
-
|
|
1683
|
-
/**
|
|
1684
|
-
* List conversations the calling user may access.
|
|
1685
|
-
*/
|
|
1686
|
-
export const usersConversations = <ThrowOnError extends boolean = false>(options?: Options<UsersConversationsData, ThrowOnError>) => { return (options?.client ?? client).get<UsersConversationsResponse, UsersConversationsError, ThrowOnError>({
|
|
1687
|
-
...options,
|
|
1688
|
-
url: '/users.conversations'
|
|
1689
|
-
}); };
|
|
1690
|
-
|
|
1691
|
-
/**
|
|
1692
|
-
* Delete the user profile photo
|
|
1693
|
-
*/
|
|
1694
|
-
export const usersDeletePhoto = <ThrowOnError extends boolean = false>(options: Options<UsersDeletePhotoData, ThrowOnError>) => { return (options?.client ?? client).post<UsersDeletePhotoResponse, UsersDeletePhotoError, ThrowOnError>({
|
|
1695
|
-
...options,
|
|
1696
|
-
...urlSearchParamsBodySerializer,
|
|
1697
|
-
headers: {
|
|
1698
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1699
|
-
...options?.headers
|
|
1700
|
-
},
|
|
1701
|
-
url: '/users.deletePhoto'
|
|
1702
|
-
}); };
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Gets user presence information.
|
|
1706
|
-
*/
|
|
1707
|
-
export const usersGetPresence = <ThrowOnError extends boolean = false>(options: Options<UsersGetPresenceData, ThrowOnError>) => { return (options?.client ?? client).get<UsersGetPresenceResponse, UsersGetPresenceError, ThrowOnError>({
|
|
1708
|
-
...options,
|
|
1709
|
-
url: '/users.getPresence'
|
|
1710
|
-
}); };
|
|
1711
|
-
|
|
1712
|
-
/**
|
|
1713
|
-
* Get a user's identity.
|
|
1714
|
-
*/
|
|
1715
|
-
export const usersIdentity = <ThrowOnError extends boolean = false>(options?: Options<UsersIdentityData, ThrowOnError>) => { return (options?.client ?? client).get<UsersIdentityResponse, UsersIdentityError, ThrowOnError>({
|
|
1716
|
-
...options,
|
|
1717
|
-
url: '/users.identity'
|
|
1718
|
-
}); };
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* Gets information about a user.
|
|
1722
|
-
*/
|
|
1723
|
-
export const usersInfo = <ThrowOnError extends boolean = false>(options: Options<UsersInfoData, ThrowOnError>) => { return (options?.client ?? client).get<UsersInfoResponse, UsersInfoError, ThrowOnError>({
|
|
1724
|
-
...options,
|
|
1725
|
-
url: '/users.info'
|
|
1726
|
-
}); };
|
|
1727
|
-
|
|
1728
|
-
/**
|
|
1729
|
-
* Lists all users in a Slack team.
|
|
1730
|
-
*/
|
|
1731
|
-
export const usersList = <ThrowOnError extends boolean = false>(options?: Options<UsersListData, ThrowOnError>) => { return (options?.client ?? client).get<UsersListResponse, UsersListError, ThrowOnError>({
|
|
1732
|
-
...options,
|
|
1733
|
-
url: '/users.list'
|
|
1734
|
-
}); };
|
|
1735
|
-
|
|
1736
|
-
/**
|
|
1737
|
-
* Find a user with an email address.
|
|
1738
|
-
*/
|
|
1739
|
-
export const usersLookupByEmail = <ThrowOnError extends boolean = false>(options: Options<UsersLookupByEmailData, ThrowOnError>) => { return (options?.client ?? client).get<UsersLookupByEmailResponse, UsersLookupByEmailError, ThrowOnError>({
|
|
1740
|
-
...options,
|
|
1741
|
-
url: '/users.lookupByEmail'
|
|
1742
|
-
}); };
|
|
1743
|
-
|
|
1744
|
-
/**
|
|
1745
|
-
* Retrieves a user's profile information.
|
|
1746
|
-
*/
|
|
1747
|
-
export const usersProfileGet = <ThrowOnError extends boolean = false>(options: Options<UsersProfileGetData, ThrowOnError>) => { return (options?.client ?? client).get<UsersProfileGetResponse, UsersProfileGetError, ThrowOnError>({
|
|
1748
|
-
...options,
|
|
1749
|
-
url: '/users.profile.get'
|
|
1750
|
-
}); };
|
|
1751
|
-
|
|
1752
|
-
/**
|
|
1753
|
-
* Set the profile information for a user.
|
|
1754
|
-
*/
|
|
1755
|
-
export const usersProfileSet = <ThrowOnError extends boolean = false>(options: Options<UsersProfileSetData, ThrowOnError>) => { return (options?.client ?? client).post<UsersProfileSetResponse, UsersProfileSetError, ThrowOnError>({
|
|
1756
|
-
...options,
|
|
1757
|
-
...urlSearchParamsBodySerializer,
|
|
1758
|
-
headers: {
|
|
1759
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1760
|
-
...options?.headers
|
|
1761
|
-
},
|
|
1762
|
-
url: '/users.profile.set'
|
|
1763
|
-
}); };
|
|
1764
|
-
|
|
1765
|
-
/**
|
|
1766
|
-
* Marked a user as active. Deprecated and non-functional.
|
|
1767
|
-
*/
|
|
1768
|
-
export const usersSetActive = <ThrowOnError extends boolean = false>(options: Options<UsersSetActiveData, ThrowOnError>) => { return (options?.client ?? client).post<UsersSetActiveResponse, UsersSetActiveError, ThrowOnError>({
|
|
1769
|
-
...options,
|
|
1770
|
-
url: '/users.setActive'
|
|
1771
|
-
}); };
|
|
1772
|
-
|
|
1773
|
-
/**
|
|
1774
|
-
* Set the user profile photo
|
|
1775
|
-
*/
|
|
1776
|
-
export const usersSetPhoto = <ThrowOnError extends boolean = false>(options: Options<UsersSetPhotoData, ThrowOnError>) => { return (options?.client ?? client).post<UsersSetPhotoResponse, UsersSetPhotoError, ThrowOnError>({
|
|
1777
|
-
...options,
|
|
1778
|
-
...urlSearchParamsBodySerializer,
|
|
1779
|
-
headers: {
|
|
1780
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1781
|
-
...options?.headers
|
|
1782
|
-
},
|
|
1783
|
-
url: '/users.setPhoto'
|
|
1784
|
-
}); };
|
|
1785
|
-
|
|
1786
|
-
/**
|
|
1787
|
-
* Manually sets user presence.
|
|
1788
|
-
*/
|
|
1789
|
-
export const usersSetPresence = <ThrowOnError extends boolean = false>(options: Options<UsersSetPresenceData, ThrowOnError>) => { return (options?.client ?? client).post<UsersSetPresenceResponse, UsersSetPresenceError, ThrowOnError>({
|
|
1790
|
-
...options,
|
|
1791
|
-
...urlSearchParamsBodySerializer,
|
|
1792
|
-
headers: {
|
|
1793
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1794
|
-
...options?.headers
|
|
1795
|
-
},
|
|
1796
|
-
url: '/users.setPresence'
|
|
1797
|
-
}); };
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* Open a view for a user.
|
|
1801
|
-
*/
|
|
1802
|
-
export const viewsOpen = <ThrowOnError extends boolean = false>(options: Options<ViewsOpenData, ThrowOnError>) => { return (options?.client ?? client).get<ViewsOpenResponse, ViewsOpenError, ThrowOnError>({
|
|
1803
|
-
...options,
|
|
1804
|
-
url: '/views.open'
|
|
1805
|
-
}); };
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* Publish a static view for a User.
|
|
1809
|
-
*/
|
|
1810
|
-
export const viewsPublish = <ThrowOnError extends boolean = false>(options: Options<ViewsPublishData, ThrowOnError>) => { return (options?.client ?? client).get<ViewsPublishResponse, ViewsPublishError, ThrowOnError>({
|
|
1811
|
-
...options,
|
|
1812
|
-
url: '/views.publish'
|
|
1813
|
-
}); };
|
|
1814
|
-
|
|
1815
|
-
/**
|
|
1816
|
-
* Push a view onto the stack of a root view.
|
|
1817
|
-
*/
|
|
1818
|
-
export const viewsPush = <ThrowOnError extends boolean = false>(options: Options<ViewsPushData, ThrowOnError>) => { return (options?.client ?? client).get<ViewsPushResponse, ViewsPushError, ThrowOnError>({
|
|
1819
|
-
...options,
|
|
1820
|
-
url: '/views.push'
|
|
1821
|
-
}); };
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* Update an existing view.
|
|
1825
|
-
*/
|
|
1826
|
-
export const viewsUpdate = <ThrowOnError extends boolean = false>(options: Options<ViewsUpdateData, ThrowOnError>) => { return (options?.client ?? client).get<ViewsUpdateResponse, ViewsUpdateError, ThrowOnError>({
|
|
1827
|
-
...options,
|
|
1828
|
-
url: '/views.update'
|
|
1829
|
-
}); };
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Indicate that an app's step in a workflow completed execution.
|
|
1833
|
-
*/
|
|
1834
|
-
export const workflowsStepCompleted = <ThrowOnError extends boolean = false>(options: Options<WorkflowsStepCompletedData, ThrowOnError>) => { return (options?.client ?? client).get<WorkflowsStepCompletedResponse, WorkflowsStepCompletedError, ThrowOnError>({
|
|
1835
|
-
...options,
|
|
1836
|
-
url: '/workflows.stepCompleted'
|
|
1837
|
-
}); };
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Indicate that an app's step in a workflow failed to execute.
|
|
1841
|
-
*/
|
|
1842
|
-
export const workflowsStepFailed = <ThrowOnError extends boolean = false>(options: Options<WorkflowsStepFailedData, ThrowOnError>) => { return (options?.client ?? client).get<WorkflowsStepFailedResponse, WorkflowsStepFailedError, ThrowOnError>({
|
|
1843
|
-
...options,
|
|
1844
|
-
url: '/workflows.stepFailed'
|
|
1845
|
-
}); };
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* Update the configuration for a workflow extension step.
|
|
1849
|
-
*/
|
|
1850
|
-
export const workflowsUpdateStep = <ThrowOnError extends boolean = false>(options: Options<WorkflowsUpdateStepData, ThrowOnError>) => { return (options?.client ?? client).get<WorkflowsUpdateStepResponse, WorkflowsUpdateStepError, ThrowOnError>({
|
|
1851
|
-
...options,
|
|
1852
|
-
url: '/workflows.updateStep'
|
|
1853
|
-
}); };
|