@scryme/chat 0.0.1
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/README.md +166 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +2 -0
- package/dist/custom-instance.d.ts +5 -0
- package/dist/custom-instance.js +100 -0
- package/dist/generated/v3-client.d.ts +7879 -0
- package/dist/generated/v3-client.js +6762 -0
- package/dist/generated/v3-server.d.ts +1679 -0
- package/dist/generated/v3-server.js +2050 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/sdk.d.ts +78 -0
- package/dist/sdk.js +421 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +3 -0
- package/package.json +50 -0
- package/src/__tests__/sdk.test.ts +227 -0
- package/src/client.ts +2 -0
- package/src/custom-instance.ts +118 -0
- package/src/generated/v3-client.ts +17309 -0
- package/src/generated/v3-server.ts +5225 -0
- package/src/index.ts +3 -0
- package/src/sdk.ts +298 -0
- package/src/server.ts +3 -0
|
@@ -0,0 +1,2050 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.31.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Skyrme Chat API
|
|
5
|
+
* Comprehensive API documentation for Skyrme Chat V2 and V3 Enterprise. This documentation describes both standard V2 integrations and high-performance, secure V3 Enterprise M2M interfaces.
|
|
6
|
+
* OpenAPI spec version: 3.0
|
|
7
|
+
*/
|
|
8
|
+
import { customInstance } from '../custom-instance';
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
10
|
+
export var ScheduledNotificationsControllerUpdateNotificationBodyAction = {
|
|
11
|
+
pause: 'pause',
|
|
12
|
+
resume: 'resume',
|
|
13
|
+
};
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
15
|
+
export var DepartmentsControllerGetAnnouncementsPriority = {
|
|
16
|
+
low: 'low',
|
|
17
|
+
normal: 'normal',
|
|
18
|
+
high: 'high',
|
|
19
|
+
urgent: 'urgent',
|
|
20
|
+
};
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
22
|
+
export var FriendsControllerGetFriendRequestsStatus = {
|
|
23
|
+
pending: 'pending',
|
|
24
|
+
accepted: 'accepted',
|
|
25
|
+
declined: 'declined',
|
|
26
|
+
};
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
28
|
+
export var FriendsControllerGetFriendRequestsType = {
|
|
29
|
+
incoming: 'incoming',
|
|
30
|
+
outgoing: 'outgoing',
|
|
31
|
+
};
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
33
|
+
export var UsersControllerRegisterDeviceTokenBodyPlatform = {
|
|
34
|
+
web: 'web',
|
|
35
|
+
ios: 'ios',
|
|
36
|
+
android: 'android',
|
|
37
|
+
desktop: 'desktop',
|
|
38
|
+
};
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
40
|
+
export var CreateScheduledNotificationDtoScheduleType = {
|
|
41
|
+
custom: 'custom',
|
|
42
|
+
once: 'once',
|
|
43
|
+
daily: 'daily',
|
|
44
|
+
weekly: 'weekly',
|
|
45
|
+
monthly: 'monthly',
|
|
46
|
+
};
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
48
|
+
export var CreateScheduledNotificationDtoEntityType = {
|
|
49
|
+
channel: 'channel',
|
|
50
|
+
};
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
52
|
+
export var CreateApiTokenDtoPermissionsActionsItem = {
|
|
53
|
+
'read:members': 'read:members',
|
|
54
|
+
'write:members': 'write:members',
|
|
55
|
+
'read:departments': 'read:departments',
|
|
56
|
+
'write:departments': 'write:departments',
|
|
57
|
+
'read:teams': 'read:teams',
|
|
58
|
+
'write:teams': 'write:teams',
|
|
59
|
+
'read:announcements': 'read:announcements',
|
|
60
|
+
'write:announcements': 'write:announcements',
|
|
61
|
+
'read:channels': 'read:channels',
|
|
62
|
+
'write:channels': 'write:channels',
|
|
63
|
+
'send:messages': 'send:messages',
|
|
64
|
+
};
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
66
|
+
export var CreateDepartmentAnnouncementDtoPriority = {
|
|
67
|
+
low: 'low',
|
|
68
|
+
normal: 'normal',
|
|
69
|
+
high: 'high',
|
|
70
|
+
urgent: 'urgent',
|
|
71
|
+
};
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
73
|
+
export var UpdateWorkspaceChannelDtoType = {
|
|
74
|
+
public: 'public',
|
|
75
|
+
private: 'private',
|
|
76
|
+
};
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
78
|
+
export var CreateWorkspaceChannelDtoType = {
|
|
79
|
+
public: 'public',
|
|
80
|
+
private: 'private',
|
|
81
|
+
};
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
83
|
+
export var UpdateMemberRoleDtoRole = {
|
|
84
|
+
owner: 'owner',
|
|
85
|
+
admin: 'admin',
|
|
86
|
+
moderator: 'moderator',
|
|
87
|
+
member: 'member',
|
|
88
|
+
guest: 'guest',
|
|
89
|
+
};
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
91
|
+
export var UpdateWorkspaceDtoPlan = {
|
|
92
|
+
free: 'free',
|
|
93
|
+
pro: 'pro',
|
|
94
|
+
enterprise: 'enterprise',
|
|
95
|
+
};
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
97
|
+
export var UpdateFriendRequestDtoAction = {
|
|
98
|
+
accept: 'accept',
|
|
99
|
+
decline: 'decline',
|
|
100
|
+
cancel: 'cancel',
|
|
101
|
+
};
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
103
|
+
export var StartCallDtoType = {
|
|
104
|
+
voice: 'voice',
|
|
105
|
+
video: 'video',
|
|
106
|
+
};
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
108
|
+
export var V3UpdateMemberRoleDtoRole = {
|
|
109
|
+
owner: 'owner',
|
|
110
|
+
admin: 'admin',
|
|
111
|
+
moderator: 'moderator',
|
|
112
|
+
member: 'member',
|
|
113
|
+
guest: 'guest',
|
|
114
|
+
};
|
|
115
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
116
|
+
export var V3ProvisionWorkspaceDtoInitialMembersItemRole = {
|
|
117
|
+
admin: 'admin',
|
|
118
|
+
member: 'member',
|
|
119
|
+
};
|
|
120
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
121
|
+
export var V3TokenRequestDtoGrantType = {
|
|
122
|
+
client_credentials: 'client_credentials',
|
|
123
|
+
};
|
|
124
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
125
|
+
export var ChannelSettingsDtoPreference = {
|
|
126
|
+
all: 'all',
|
|
127
|
+
mentions: 'mentions',
|
|
128
|
+
none: 'none',
|
|
129
|
+
default: 'default',
|
|
130
|
+
};
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
132
|
+
export var WorkspaceSettingsDtoPreference = {
|
|
133
|
+
all: 'all',
|
|
134
|
+
mentions: 'mentions',
|
|
135
|
+
none: 'none',
|
|
136
|
+
};
|
|
137
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
138
|
+
export var CreateIntegrationDtoService = {
|
|
139
|
+
slack: 'slack',
|
|
140
|
+
github: 'github',
|
|
141
|
+
gitlab: 'gitlab',
|
|
142
|
+
jira: 'jira',
|
|
143
|
+
linear: 'linear',
|
|
144
|
+
notion: 'notion',
|
|
145
|
+
figma: 'figma',
|
|
146
|
+
discord: 'discord',
|
|
147
|
+
teams: 'teams',
|
|
148
|
+
zapier: 'zapier',
|
|
149
|
+
make: 'make',
|
|
150
|
+
custom: 'custom',
|
|
151
|
+
huly: 'huly',
|
|
152
|
+
};
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
154
|
+
export var ProvisionWorkspaceDtoInitialMembersItemRole = {
|
|
155
|
+
admin: 'admin',
|
|
156
|
+
member: 'member',
|
|
157
|
+
};
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
159
|
+
export var TokenRequestDtoGrantType = {
|
|
160
|
+
client_credentials: 'client_credentials',
|
|
161
|
+
};
|
|
162
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
163
|
+
export var UpdateAnnouncementDtoPriority = {
|
|
164
|
+
low: 'low',
|
|
165
|
+
normal: 'normal',
|
|
166
|
+
high: 'high',
|
|
167
|
+
urgent: 'urgent',
|
|
168
|
+
};
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
170
|
+
export var CreateAnnouncementDtoPriority = {
|
|
171
|
+
low: 'low',
|
|
172
|
+
normal: 'normal',
|
|
173
|
+
high: 'high',
|
|
174
|
+
urgent: 'urgent',
|
|
175
|
+
};
|
|
176
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
177
|
+
export var CreateTokenDtoPermissionsActionsItem = {
|
|
178
|
+
'read:members': 'read:members',
|
|
179
|
+
'write:members': 'write:members',
|
|
180
|
+
'read:departments': 'read:departments',
|
|
181
|
+
'write:departments': 'write:departments',
|
|
182
|
+
'read:teams': 'read:teams',
|
|
183
|
+
'write:teams': 'write:teams',
|
|
184
|
+
'read:announcements': 'read:announcements',
|
|
185
|
+
'write:announcements': 'write:announcements',
|
|
186
|
+
'read:channels': 'read:channels',
|
|
187
|
+
'write:channels': 'write:channels',
|
|
188
|
+
'send:messages': 'send:messages',
|
|
189
|
+
'read:messages': 'read:messages',
|
|
190
|
+
'read:threads': 'read:threads',
|
|
191
|
+
'read:webhooks': 'read:webhooks',
|
|
192
|
+
'write:webhooks': 'write:webhooks',
|
|
193
|
+
'read:tokens': 'read:tokens',
|
|
194
|
+
'write:tokens': 'write:tokens',
|
|
195
|
+
};
|
|
196
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
197
|
+
export var UpdateChannelDtoType = {
|
|
198
|
+
public: 'public',
|
|
199
|
+
private: 'private',
|
|
200
|
+
};
|
|
201
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
202
|
+
export var CreateChannelDtoType = {
|
|
203
|
+
public: 'public',
|
|
204
|
+
private: 'private',
|
|
205
|
+
};
|
|
206
|
+
export var getSkyrmeChatAPI = function () {
|
|
207
|
+
/**
|
|
208
|
+
* @summary Check health
|
|
209
|
+
*/
|
|
210
|
+
var appControllerGetHealth = function (options) {
|
|
211
|
+
return customInstance({ url: "/api/health", method: 'GET' }, options);
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* @summary Hello
|
|
215
|
+
*/
|
|
216
|
+
var appControllerGetHello = function (options) {
|
|
217
|
+
return customInstance({ url: "/api", method: 'GET' }, options);
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* @summary Get realtime configuration
|
|
221
|
+
*/
|
|
222
|
+
var appControllerGetRealtimeConfig = function (options) {
|
|
223
|
+
return customInstance({ url: "/api/config/realtime", method: 'GET' }, options);
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* @summary Search for users by username or name
|
|
227
|
+
*/
|
|
228
|
+
var usersControllerSearchUsers = function (params, options) {
|
|
229
|
+
return customInstance({ url: "/api/users/search", method: 'GET', params: params
|
|
230
|
+
}, options);
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* @summary Get current user profile
|
|
234
|
+
*/
|
|
235
|
+
var usersControllerGetMe = function (options) {
|
|
236
|
+
return customInstance({ url: "/api/users/me", method: 'GET' }, options);
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* @summary Update current user profile
|
|
240
|
+
*/
|
|
241
|
+
var usersControllerUpdateMe = function (options) {
|
|
242
|
+
return customInstance({ url: "/api/users/me", method: 'POST' }, options);
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* @summary Get a user profile by ID
|
|
246
|
+
*/
|
|
247
|
+
var usersControllerGetUser = function (id, options) {
|
|
248
|
+
return customInstance({ url: "/api/users/".concat(id), method: 'GET' }, options);
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* @summary Get social profile between current user and target user
|
|
252
|
+
*/
|
|
253
|
+
var usersControllerGetSocialProfile = function (id, options) {
|
|
254
|
+
return customInstance({ url: "/api/users/".concat(id, "/social-profile"), method: 'GET' }, options);
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* @summary Block a user
|
|
258
|
+
*/
|
|
259
|
+
var usersControllerBlockUser = function (id, options) {
|
|
260
|
+
return customInstance({ url: "/api/users/".concat(id, "/block"), method: 'POST' }, options);
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* @summary Unblock a user
|
|
264
|
+
*/
|
|
265
|
+
var usersControllerUnblockUser = function (id, options) {
|
|
266
|
+
return customInstance({ url: "/api/users/".concat(id, "/block"), method: 'DELETE' }, options);
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* @summary Register a device token for push notifications
|
|
270
|
+
*/
|
|
271
|
+
var usersControllerRegisterDeviceToken = function (usersControllerRegisterDeviceTokenBody, options) {
|
|
272
|
+
return customInstance({ url: "/api/users/me/device-tokens", method: 'POST',
|
|
273
|
+
headers: { 'Content-Type': 'application/json', },
|
|
274
|
+
data: usersControllerRegisterDeviceTokenBody }, options);
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* @summary Get active device tokens for the current user
|
|
278
|
+
*/
|
|
279
|
+
var usersControllerGetDeviceTokens = function (options) {
|
|
280
|
+
return customInstance({ url: "/api/users/me/device-tokens", method: 'GET' }, options);
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* @summary Deactivate a device token
|
|
284
|
+
*/
|
|
285
|
+
var usersControllerDeleteDeviceToken = function (params, options) {
|
|
286
|
+
return customInstance({ url: "/api/users/me/device-tokens", method: 'DELETE', params: params
|
|
287
|
+
}, options);
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Requires members:read scope.
|
|
291
|
+
* @summary List all workspace members
|
|
292
|
+
*/
|
|
293
|
+
var v2WorkspacesControllerGetMembers = function (slug, options) {
|
|
294
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members"), method: 'GET' }, options);
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Requires members:write scope.
|
|
298
|
+
* @summary Add a member to the workspace
|
|
299
|
+
*/
|
|
300
|
+
var v2WorkspacesControllerAddMember = function (slug, addMemberDto, options) {
|
|
301
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members"), method: 'POST',
|
|
302
|
+
headers: { 'Content-Type': 'application/json', },
|
|
303
|
+
data: addMemberDto }, options);
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Requires members:read scope.
|
|
307
|
+
* @summary Get details of a specific workspace member
|
|
308
|
+
*/
|
|
309
|
+
var v2WorkspacesControllerGetMember = function (slug, userId, options) {
|
|
310
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members/").concat(userId), method: 'GET' }, options);
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Requires members:write scope.
|
|
314
|
+
* @summary Remove a member from the workspace
|
|
315
|
+
*/
|
|
316
|
+
var v2WorkspacesControllerRemoveMember = function (slug, userId, options) {
|
|
317
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members/").concat(userId), method: 'DELETE' }, options);
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Requires channels:read scope.
|
|
321
|
+
* @summary List all channels in the workspace
|
|
322
|
+
*/
|
|
323
|
+
var v2MessagesControllerGetChannels = function (slug, options) {
|
|
324
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels"), method: 'GET' }, options);
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Requires channels:write scope.
|
|
328
|
+
* @summary Create a new channel
|
|
329
|
+
*/
|
|
330
|
+
var v2MessagesControllerCreateChannel = function (slug, createChannelDto, options) {
|
|
331
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels"), method: 'POST',
|
|
332
|
+
headers: { 'Content-Type': 'application/json', },
|
|
333
|
+
data: createChannelDto }, options);
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Requires channels:write scope.
|
|
337
|
+
* @summary Upload a channel icon
|
|
338
|
+
*/
|
|
339
|
+
var v2MessagesControllerUploadChannelIcon = function (slug, channelId, v2MessagesControllerUploadChannelIconBody, options) {
|
|
340
|
+
var formData = new FormData();
|
|
341
|
+
if (v2MessagesControllerUploadChannelIconBody.file !== undefined) {
|
|
342
|
+
formData.append('file', v2MessagesControllerUploadChannelIconBody.file);
|
|
343
|
+
}
|
|
344
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels/").concat(channelId, "/icon"), method: 'POST',
|
|
345
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
346
|
+
data: formData }, options);
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Requires channels:read scope.
|
|
350
|
+
* @summary Get details of a specific channel
|
|
351
|
+
*/
|
|
352
|
+
var v2MessagesControllerGetChannel = function (slug, channelId, options) {
|
|
353
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'GET' }, options);
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* Requires channels:write scope.
|
|
357
|
+
* @summary Update a channel
|
|
358
|
+
*/
|
|
359
|
+
var v2MessagesControllerUpdateChannel = function (slug, channelId, updateChannelDto, options) {
|
|
360
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'PATCH',
|
|
361
|
+
headers: { 'Content-Type': 'application/json', },
|
|
362
|
+
data: updateChannelDto }, options);
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Requires channels:write scope.
|
|
366
|
+
* @summary Delete a channel
|
|
367
|
+
*/
|
|
368
|
+
var v2MessagesControllerDeleteChannel = function (slug, channelId, options) {
|
|
369
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'DELETE' }, options);
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* Requires messages:read scope.
|
|
373
|
+
* @summary List messages in the workspace
|
|
374
|
+
*/
|
|
375
|
+
var v2MessagesControllerGetMessages = function (slug, params, options) {
|
|
376
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/messages"), method: 'GET', params: params
|
|
377
|
+
}, options);
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
Requires messages:send scope. Supports multipart/form-data for file uploads.
|
|
382
|
+
|
|
383
|
+
**M2M Behavior:**
|
|
384
|
+
- If the request is made by an M2M application, the message is sent by the app's associated bot.
|
|
385
|
+
- If no app bot exists, it falls back to the workspace's **Default Bot**.
|
|
386
|
+
- You can include `actions` to create interactive buttons that trigger webhooks.
|
|
387
|
+
|
|
388
|
+
* @summary Send a message
|
|
389
|
+
*/
|
|
390
|
+
var v2MessagesControllerSendMessage = function (slug, sendMessageDto, options) {
|
|
391
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/messages"), method: 'POST',
|
|
392
|
+
headers: { 'Content-Type': 'application/json', },
|
|
393
|
+
data: sendMessageDto }, options);
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Requires members:read scope.
|
|
397
|
+
* @summary Search for members in the workspace
|
|
398
|
+
*/
|
|
399
|
+
var v2SearchControllerSearchMembers = function (slug, params, options) {
|
|
400
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/search/members"), method: 'GET', params: params
|
|
401
|
+
}, options);
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Requires messages:read scope.
|
|
405
|
+
* @summary Search for messages in the workspace
|
|
406
|
+
*/
|
|
407
|
+
var v2SearchControllerSearchMessages = function (slug, params, options) {
|
|
408
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/search/messages"), method: 'GET', params: params
|
|
409
|
+
}, options);
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Requires tokens:read scope.
|
|
413
|
+
* @summary List all API tokens in the workspace
|
|
414
|
+
*/
|
|
415
|
+
var v2ApiTokensControllerGetTokens = function (slug, options) {
|
|
416
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens"), method: 'GET' }, options);
|
|
417
|
+
};
|
|
418
|
+
/**
|
|
419
|
+
* Requires tokens:write scope.
|
|
420
|
+
* @summary Create a new API token
|
|
421
|
+
*/
|
|
422
|
+
var v2ApiTokensControllerCreateToken = function (slug, createTokenDto, options) {
|
|
423
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens"), method: 'POST',
|
|
424
|
+
headers: { 'Content-Type': 'application/json', },
|
|
425
|
+
data: createTokenDto }, options);
|
|
426
|
+
};
|
|
427
|
+
/**
|
|
428
|
+
* Requires tokens:write scope.
|
|
429
|
+
* @summary Delete an API token
|
|
430
|
+
*/
|
|
431
|
+
var v2ApiTokensControllerDeleteToken = function (slug, tokenId, options) {
|
|
432
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens/").concat(tokenId), method: 'DELETE' }, options);
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Requires tokens:write scope.
|
|
436
|
+
* @summary Rotate an API token (generate new token value)
|
|
437
|
+
*/
|
|
438
|
+
var v2ApiTokensControllerRotateToken = function (slug, tokenId, options) {
|
|
439
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens/").concat(tokenId, "/rotate"), method: 'POST' }, options);
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
Requires webhooks:read scope.
|
|
444
|
+
List all webhooks configured for this workspace.
|
|
445
|
+
|
|
446
|
+
**Supported Events:**
|
|
447
|
+
- `message.sent`: Triggered when a new message is sent.
|
|
448
|
+
- `message.updated`: Triggered when a message is edited or updated by a callback.
|
|
449
|
+
- `message.action`: Triggered when a user clicks an interactive button on a message.
|
|
450
|
+
- `channel.created`: Triggered when a new channel is created.
|
|
451
|
+
- `channel.updated`: Triggered when channel details change.
|
|
452
|
+
- `member.joined`: Triggered when a new member joins the workspace.
|
|
453
|
+
- `member.left`: Triggered when a member leaves the workspace.
|
|
454
|
+
|
|
455
|
+
* @summary List all webhooks in the workspace
|
|
456
|
+
*/
|
|
457
|
+
var v2WebhooksControllerGetWebhooks = function (slug, options) {
|
|
458
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks"), method: 'GET' }, options);
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Requires webhooks:write scope.
|
|
462
|
+
* @summary Create a new webhook
|
|
463
|
+
*/
|
|
464
|
+
var v2WebhooksControllerCreateWebhook = function (slug, createWebhookDto, options) {
|
|
465
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks"), method: 'POST',
|
|
466
|
+
headers: { 'Content-Type': 'application/json', },
|
|
467
|
+
data: createWebhookDto }, options);
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Requires webhooks:read scope.
|
|
471
|
+
* @summary Get details of a specific webhook
|
|
472
|
+
*/
|
|
473
|
+
var v2WebhooksControllerGetWebhook = function (slug, webhookId, options) {
|
|
474
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'GET' }, options);
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* Requires webhooks:write scope.
|
|
478
|
+
* @summary Update a webhook
|
|
479
|
+
*/
|
|
480
|
+
var v2WebhooksControllerUpdateWebhook = function (slug, webhookId, updateWebhookDto, options) {
|
|
481
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'PATCH',
|
|
482
|
+
headers: { 'Content-Type': 'application/json', },
|
|
483
|
+
data: updateWebhookDto }, options);
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Requires webhooks:write scope.
|
|
487
|
+
* @summary Delete a webhook
|
|
488
|
+
*/
|
|
489
|
+
var v2WebhooksControllerDeleteWebhook = function (slug, webhookId, options) {
|
|
490
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* Requires threads:read scope.
|
|
494
|
+
* @summary List all threads in the workspace
|
|
495
|
+
*/
|
|
496
|
+
var v2ThreadsControllerGetThreads = function (slug, params, options) {
|
|
497
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/threads"), method: 'GET', params: params
|
|
498
|
+
}, options);
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Requires threads:read and messages:read scopes.
|
|
502
|
+
* @summary List messages in a thread
|
|
503
|
+
*/
|
|
504
|
+
var v2ThreadsControllerGetThreadMessages = function (slug, threadId, params, options) {
|
|
505
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/threads/").concat(threadId, "/messages"), method: 'GET', params: params
|
|
506
|
+
}, options);
|
|
507
|
+
};
|
|
508
|
+
/**
|
|
509
|
+
* Requires threads:read scope.
|
|
510
|
+
* @summary Get a thread by its context ID
|
|
511
|
+
*/
|
|
512
|
+
var v2ThreadsControllerGetThreadByContext = function (slug, contextId, options) {
|
|
513
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/threads/context/").concat(contextId), method: 'GET' }, options);
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
Triggers a custom action associated with a message.
|
|
518
|
+
|
|
519
|
+
**M2M Interactivity:**
|
|
520
|
+
If the message was sent by an M2M application, triggering an action will:
|
|
521
|
+
1. Dispatch a **Callback** to the M2M application's configured `webhookUrl`.
|
|
522
|
+
2. The callback includes the `formState` and `payload` provided in the request.
|
|
523
|
+
3. The M2M application can respond to the callback to **update the message** content or metadata in real-time.
|
|
524
|
+
|
|
525
|
+
* @summary Trigger a message action
|
|
526
|
+
*/
|
|
527
|
+
var v2MessageActionsControllerHandleAction = function (slug, messageId, actionId, v2MessageActionsControllerHandleActionBody, options) {
|
|
528
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/messages/").concat(messageId, "/actions/").concat(actionId), method: 'POST',
|
|
529
|
+
headers: { 'Content-Type': 'application/json', },
|
|
530
|
+
data: v2MessageActionsControllerHandleActionBody }, options);
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Requires departments:read scope.
|
|
534
|
+
* @summary List all departments in the workspace
|
|
535
|
+
*/
|
|
536
|
+
var v2DepartmentsControllerGetDepartments = function (slug, options) {
|
|
537
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/departments"), method: 'GET' }, options);
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* Requires departments:write scope.
|
|
541
|
+
* @summary Create a new department
|
|
542
|
+
*/
|
|
543
|
+
var v2DepartmentsControllerCreateDepartment = function (slug, createDepartmentDto, options) {
|
|
544
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/departments"), method: 'POST',
|
|
545
|
+
headers: { 'Content-Type': 'application/json', },
|
|
546
|
+
data: createDepartmentDto }, options);
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Requires departments:read scope.
|
|
550
|
+
* @summary Get details of a specific department
|
|
551
|
+
*/
|
|
552
|
+
var v2DepartmentsControllerGetDepartment = function (slug, departmentId, options) {
|
|
553
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/departments/").concat(departmentId), method: 'GET' }, options);
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* Requires departments:write scope.
|
|
557
|
+
* @summary Update a department
|
|
558
|
+
*/
|
|
559
|
+
var v2DepartmentsControllerUpdateDepartment = function (slug, departmentId, updateDepartmentDto, options) {
|
|
560
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/departments/").concat(departmentId), method: 'PATCH',
|
|
561
|
+
headers: { 'Content-Type': 'application/json', },
|
|
562
|
+
data: updateDepartmentDto }, options);
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Requires departments:write scope.
|
|
566
|
+
* @summary Delete a department
|
|
567
|
+
*/
|
|
568
|
+
var v2DepartmentsControllerDeleteDepartment = function (slug, departmentId, options) {
|
|
569
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/departments/").concat(departmentId), method: 'DELETE' }, options);
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Requires teams:read scope.
|
|
573
|
+
* @summary List all teams in the workspace
|
|
574
|
+
*/
|
|
575
|
+
var v2TeamsControllerGetTeams = function (slug, options) {
|
|
576
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/teams"), method: 'GET' }, options);
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* Requires teams:write scope.
|
|
580
|
+
* @summary Create a new team
|
|
581
|
+
*/
|
|
582
|
+
var v2TeamsControllerCreateTeam = function (slug, createTeamDto, options) {
|
|
583
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/teams"), method: 'POST',
|
|
584
|
+
headers: { 'Content-Type': 'application/json', },
|
|
585
|
+
data: createTeamDto }, options);
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* Requires teams:read scope.
|
|
589
|
+
* @summary Get details of a specific team
|
|
590
|
+
*/
|
|
591
|
+
var v2TeamsControllerGetTeam = function (slug, teamId, options) {
|
|
592
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/teams/").concat(teamId), method: 'GET' }, options);
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Requires teams:write scope.
|
|
596
|
+
* @summary Update a team
|
|
597
|
+
*/
|
|
598
|
+
var v2TeamsControllerUpdateTeam = function (slug, teamId, updateTeamDto, options) {
|
|
599
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/teams/").concat(teamId), method: 'PATCH',
|
|
600
|
+
headers: { 'Content-Type': 'application/json', },
|
|
601
|
+
data: updateTeamDto }, options);
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* Requires teams:write scope.
|
|
605
|
+
* @summary Delete a team
|
|
606
|
+
*/
|
|
607
|
+
var v2TeamsControllerDeleteTeam = function (slug, teamId, options) {
|
|
608
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/teams/").concat(teamId), method: 'DELETE' }, options);
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Requires announcements:read scope.
|
|
612
|
+
* @summary List all announcements in the workspace
|
|
613
|
+
*/
|
|
614
|
+
var v2AnnouncementsControllerGetAnnouncements = function (slug, options) {
|
|
615
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/announcements"), method: 'GET' }, options);
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Requires announcements:write scope.
|
|
619
|
+
* @summary Create a new announcement
|
|
620
|
+
*/
|
|
621
|
+
var v2AnnouncementsControllerCreateAnnouncement = function (slug, createAnnouncementDto, options) {
|
|
622
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/announcements"), method: 'POST',
|
|
623
|
+
headers: { 'Content-Type': 'application/json', },
|
|
624
|
+
data: createAnnouncementDto }, options);
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* Requires announcements:read scope.
|
|
628
|
+
* @summary Get details of a specific announcement
|
|
629
|
+
*/
|
|
630
|
+
var v2AnnouncementsControllerGetAnnouncement = function (slug, announcementId, options) {
|
|
631
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/announcements/").concat(announcementId), method: 'GET' }, options);
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Requires announcements:write scope.
|
|
635
|
+
* @summary Update an announcement
|
|
636
|
+
*/
|
|
637
|
+
var v2AnnouncementsControllerUpdateAnnouncement = function (slug, announcementId, updateAnnouncementDto, options) {
|
|
638
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/announcements/").concat(announcementId), method: 'PATCH',
|
|
639
|
+
headers: { 'Content-Type': 'application/json', },
|
|
640
|
+
data: updateAnnouncementDto }, options);
|
|
641
|
+
};
|
|
642
|
+
/**
|
|
643
|
+
* Requires announcements:write scope.
|
|
644
|
+
* @summary Delete an announcement
|
|
645
|
+
*/
|
|
646
|
+
var v2AnnouncementsControllerDeleteAnnouncement = function (slug, announcementId, options) {
|
|
647
|
+
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/announcements/").concat(announcementId), method: 'DELETE' }, options);
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
Used for bot, integration, and M2M authentication.
|
|
652
|
+
|
|
653
|
+
**Scopes available:**
|
|
654
|
+
- `*`: Full access (only for internal system bots).
|
|
655
|
+
- `provisioning:workspaces`: Ability to create and manage workspaces.
|
|
656
|
+
- `messages:read`: Read messages in allowed channels.
|
|
657
|
+
- `messages:send`: Send messages and trigger actions.
|
|
658
|
+
- `channels:read`: List and view channel details.
|
|
659
|
+
- `channels:write`: Create and manage channels.
|
|
660
|
+
- `webhooks:read`: View webhook configurations.
|
|
661
|
+
- `webhooks:write`: Manage webhooks.
|
|
662
|
+
|
|
663
|
+
* @summary Exchange client credentials for an access token
|
|
664
|
+
*/
|
|
665
|
+
var v2OAuthControllerGetToken = function (tokenRequestDto, options) {
|
|
666
|
+
return customInstance({ url: "/api/v2/oauth/token", method: 'POST',
|
|
667
|
+
headers: { 'Content-Type': 'application/json', },
|
|
668
|
+
data: tokenRequestDto }, options);
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* Requires an authenticated user or M2M app.
|
|
672
|
+
* @summary Create a new bot application
|
|
673
|
+
*/
|
|
674
|
+
var v2ApplicationsControllerCreateApplication = function (createApplicationDto, options) {
|
|
675
|
+
return customInstance({ url: "/api/v2/applications", method: 'POST',
|
|
676
|
+
headers: { 'Content-Type': 'application/json', },
|
|
677
|
+
data: createApplicationDto }, options);
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* @summary List all bot applications owned by the user or organization
|
|
681
|
+
*/
|
|
682
|
+
var v2ApplicationsControllerGetApplications = function (options) {
|
|
683
|
+
return customInstance({ url: "/api/v2/applications", method: 'GET' }, options);
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* @summary Get details of a specific bot application
|
|
687
|
+
*/
|
|
688
|
+
var v2ApplicationsControllerGetApplication = function (id, options) {
|
|
689
|
+
return customInstance({ url: "/api/v2/applications/".concat(id), method: 'GET' }, options);
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* @summary Update a bot application
|
|
693
|
+
*/
|
|
694
|
+
var v2ApplicationsControllerUpdateApplication = function (id, updateApplicationDto, options) {
|
|
695
|
+
return customInstance({ url: "/api/v2/applications/".concat(id), method: 'POST',
|
|
696
|
+
headers: { 'Content-Type': 'application/json', },
|
|
697
|
+
data: updateApplicationDto }, options);
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* @summary Delete a bot application
|
|
701
|
+
*/
|
|
702
|
+
var v2ApplicationsControllerDeleteApplication = function (id, options) {
|
|
703
|
+
return customInstance({ url: "/api/v2/applications/".concat(id, "/delete"), method: 'POST' }, options);
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* @summary Reset the bot user token
|
|
707
|
+
*/
|
|
708
|
+
var v2ApplicationsControllerResetBotToken = function (id, options) {
|
|
709
|
+
return customInstance({ url: "/api/v2/applications/".concat(id, "/reset-token"), method: 'POST' }, options);
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* @summary Install the bot into a workspace
|
|
713
|
+
*/
|
|
714
|
+
var v2ApplicationsControllerInstallBot = function (id, v2ApplicationsControllerInstallBotBody, options) {
|
|
715
|
+
return customInstance({ url: "/api/v2/applications/".concat(id, "/install"), method: 'POST',
|
|
716
|
+
headers: { 'Content-Type': 'application/json', },
|
|
717
|
+
data: v2ApplicationsControllerInstallBotBody }, options);
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* @summary Submit a contact form
|
|
721
|
+
*/
|
|
722
|
+
var v2ContactControllerSubmitContactForm = function (v2ContactControllerSubmitContactFormBody, options) {
|
|
723
|
+
return customInstance({ url: "/api/v2/contact", method: 'POST',
|
|
724
|
+
headers: { 'Content-Type': 'application/json', },
|
|
725
|
+
data: v2ContactControllerSubmitContactFormBody }, options);
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
*
|
|
729
|
+
Provisions a new workspace within your organization.
|
|
730
|
+
When provisioned via M2M:
|
|
731
|
+
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
732
|
+
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
733
|
+
3. The specified owner and initial members are added (must belong to the same organization).
|
|
734
|
+
|
|
735
|
+
The System Bot acts as the default sender for messages and announcements sent via M2M if no application-specific bot is configured.
|
|
736
|
+
|
|
737
|
+
* @summary Provision a new workspace (Enterprise M2M)
|
|
738
|
+
*/
|
|
739
|
+
var provisioningControllerProvisionWorkspace = function (provisionWorkspaceDto, options) {
|
|
740
|
+
return customInstance({ url: "/api/v2/provisioning/workspaces", method: 'POST',
|
|
741
|
+
headers: { 'Content-Type': 'application/json', },
|
|
742
|
+
data: provisionWorkspaceDto }, options);
|
|
743
|
+
};
|
|
744
|
+
/**
|
|
745
|
+
* @summary List workspaces for an organization
|
|
746
|
+
*/
|
|
747
|
+
var organizationsControllerGetOrganizationWorkspaces = function (orgSlug, options) {
|
|
748
|
+
return customInstance({ url: "/api/organizations/".concat(orgSlug, "/workspaces"), method: 'GET' }, options);
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* @summary Get organization details
|
|
752
|
+
*/
|
|
753
|
+
var organizationsControllerGetOrganization = function (orgSlug, options) {
|
|
754
|
+
return customInstance({ url: "/api/organizations/".concat(orgSlug), method: 'GET' }, options);
|
|
755
|
+
};
|
|
756
|
+
/**
|
|
757
|
+
* @summary Update organization details
|
|
758
|
+
*/
|
|
759
|
+
var organizationsControllerUpdateOrganization = function (orgSlug, updateOrganizationDto, options) {
|
|
760
|
+
return customInstance({ url: "/api/organizations/".concat(orgSlug), method: 'PATCH',
|
|
761
|
+
headers: { 'Content-Type': 'application/json', },
|
|
762
|
+
data: updateOrganizationDto }, options);
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* @summary Handle Plane webhook
|
|
766
|
+
*/
|
|
767
|
+
var integrationsControllerHandlePlaneWebhook = function (options) {
|
|
768
|
+
return customInstance({ url: "/api/integrations/plane/webhook", method: 'POST' }, options);
|
|
769
|
+
};
|
|
770
|
+
/**
|
|
771
|
+
* @summary Handle Huly webhook
|
|
772
|
+
*/
|
|
773
|
+
var integrationsControllerHandleHulyWebhook = function (id, options) {
|
|
774
|
+
return customInstance({ url: "/api/integrations/huly/webhook/".concat(id), method: 'POST' }, options);
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* @summary Get integration statistics
|
|
778
|
+
*/
|
|
779
|
+
var integrationsControllerGetStats = function (options) {
|
|
780
|
+
return customInstance({ url: "/api/integrations/stats", method: 'GET' }, options);
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* @summary Get all integration webhooks
|
|
784
|
+
*/
|
|
785
|
+
var integrationsControllerGetWebhooks = function (options) {
|
|
786
|
+
return customInstance({ url: "/api/integrations/webhooks", method: 'GET' }, options);
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* @summary Create an integration webhook
|
|
790
|
+
*/
|
|
791
|
+
var integrationsControllerCreateWebhook = function (createIntegrationWebhookDto, options) {
|
|
792
|
+
return customInstance({ url: "/api/integrations/webhooks", method: 'POST',
|
|
793
|
+
headers: { 'Content-Type': 'application/json', },
|
|
794
|
+
data: createIntegrationWebhookDto }, options);
|
|
795
|
+
};
|
|
796
|
+
/**
|
|
797
|
+
* @summary Update an integration webhook
|
|
798
|
+
*/
|
|
799
|
+
var integrationsControllerUpdateWebhook = function (webhookId, options) {
|
|
800
|
+
return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'PATCH' }, options);
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* @summary Delete an integration webhook
|
|
804
|
+
*/
|
|
805
|
+
var integrationsControllerDeleteWebhook = function (webhookId, options) {
|
|
806
|
+
return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'DELETE' }, options);
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* @summary Get integration webhook logs
|
|
810
|
+
*/
|
|
811
|
+
var integrationsControllerGetWebhookLogs = function (webhookId, options) {
|
|
812
|
+
return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId, "/logs"), method: 'GET' }, options);
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* @summary Get all integration API keys
|
|
816
|
+
*/
|
|
817
|
+
var integrationsControllerGetApiKeys = function (options) {
|
|
818
|
+
return customInstance({ url: "/api/integrations/api-keys", method: 'GET' }, options);
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* @summary Update an integration API key
|
|
822
|
+
*/
|
|
823
|
+
var integrationsControllerUpdateApiKey = function (keyId, options) {
|
|
824
|
+
return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'PATCH' }, options);
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* @summary Delete an integration API key
|
|
828
|
+
*/
|
|
829
|
+
var integrationsControllerDeleteApiKey = function (keyId, options) {
|
|
830
|
+
return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'DELETE' }, options);
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* @summary Get all integrations for a workspace
|
|
834
|
+
*/
|
|
835
|
+
var workspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options) {
|
|
836
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'GET' }, options);
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
* @summary Create a new integration for a workspace
|
|
840
|
+
*/
|
|
841
|
+
var workspaceIntegrationsControllerCreateWorkspaceIntegration = function (slug, createIntegrationDto, options) {
|
|
842
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'POST',
|
|
843
|
+
headers: { 'Content-Type': 'application/json', },
|
|
844
|
+
data: createIntegrationDto }, options);
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* @summary Get integration details
|
|
848
|
+
*/
|
|
849
|
+
var workspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options) {
|
|
850
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'GET' }, options);
|
|
851
|
+
};
|
|
852
|
+
/**
|
|
853
|
+
* @summary Update an integration
|
|
854
|
+
*/
|
|
855
|
+
var workspaceIntegrationsControllerUpdateWorkspaceIntegration = function (slug, integrationId, options) {
|
|
856
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'PATCH' }, options);
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* @summary Delete an integration
|
|
860
|
+
*/
|
|
861
|
+
var workspaceIntegrationsControllerDeleteWorkspaceIntegration = function (slug, integrationId, options) {
|
|
862
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'DELETE' }, options);
|
|
863
|
+
};
|
|
864
|
+
/**
|
|
865
|
+
* @summary Test an integration
|
|
866
|
+
*/
|
|
867
|
+
var workspaceIntegrationsControllerTestWorkspaceIntegration = function (slug, integrationId, options) {
|
|
868
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId, "/test"), method: 'POST' }, options);
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* @summary Get all integration webhooks for a workspace
|
|
872
|
+
*/
|
|
873
|
+
var workspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options) {
|
|
874
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'GET' }, options);
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* @summary Create an integration webhook for a workspace
|
|
878
|
+
*/
|
|
879
|
+
var workspaceIntegrationsControllerCreateWorkspaceWebhook = function (slug, createIntegrationWebhookDto, options) {
|
|
880
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'POST',
|
|
881
|
+
headers: { 'Content-Type': 'application/json', },
|
|
882
|
+
data: createIntegrationWebhookDto }, options);
|
|
883
|
+
};
|
|
884
|
+
/**
|
|
885
|
+
* @summary Get notifications for the current user
|
|
886
|
+
*/
|
|
887
|
+
var notificationsControllerGetNotifications = function (params, options) {
|
|
888
|
+
return customInstance({ url: "/api/notifications", method: 'GET', params: params
|
|
889
|
+
}, options);
|
|
890
|
+
};
|
|
891
|
+
/**
|
|
892
|
+
* @summary Mark all notifications as read
|
|
893
|
+
*/
|
|
894
|
+
var notificationsControllerMarkAllRead = function (options) {
|
|
895
|
+
return customInstance({ url: "/api/notifications/mark-all-read", method: 'POST' }, options);
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* @summary Get notification settings for a workspace
|
|
899
|
+
*/
|
|
900
|
+
var notificationsControllerGetWorkspaceSettings = function (params, options) {
|
|
901
|
+
return customInstance({ url: "/api/notifications/settings/workspace", method: 'GET', params: params
|
|
902
|
+
}, options);
|
|
903
|
+
};
|
|
904
|
+
/**
|
|
905
|
+
* @summary Update notification settings for a workspace
|
|
906
|
+
*/
|
|
907
|
+
var notificationsControllerUpdateWorkspaceSettings = function (workspaceSettingsDto, options) {
|
|
908
|
+
return customInstance({ url: "/api/notifications/settings/workspace", method: 'PATCH',
|
|
909
|
+
headers: { 'Content-Type': 'application/json', },
|
|
910
|
+
data: workspaceSettingsDto }, options);
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* @summary Get notification settings for a channel
|
|
914
|
+
*/
|
|
915
|
+
var notificationsControllerGetChannelSettings = function (params, options) {
|
|
916
|
+
return customInstance({ url: "/api/notifications/settings/channel", method: 'GET', params: params
|
|
917
|
+
}, options);
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* @summary Update notification settings for a channel
|
|
921
|
+
*/
|
|
922
|
+
var notificationsControllerUpdateChannelSettings = function (channelSettingsDto, options) {
|
|
923
|
+
return customInstance({ url: "/api/notifications/settings/channel", method: 'PATCH',
|
|
924
|
+
headers: { 'Content-Type': 'application/json', },
|
|
925
|
+
data: channelSettingsDto }, options);
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* @summary Update a notification (e.g. mark as read)
|
|
929
|
+
*/
|
|
930
|
+
var notificationsControllerUpdateNotification = function (notificationId, updateNotificationDto, options) {
|
|
931
|
+
return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'PATCH',
|
|
932
|
+
headers: { 'Content-Type': 'application/json', },
|
|
933
|
+
data: updateNotificationDto }, options);
|
|
934
|
+
};
|
|
935
|
+
/**
|
|
936
|
+
* @summary Delete a notification
|
|
937
|
+
*/
|
|
938
|
+
var notificationsControllerDeleteNotification = function (notificationId, options) {
|
|
939
|
+
return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'DELETE' }, options);
|
|
940
|
+
};
|
|
941
|
+
var ablyControllerGetToken = function (options) {
|
|
942
|
+
return customInstance({ url: "/api/ably/token", method: 'POST' }, options);
|
|
943
|
+
};
|
|
944
|
+
/**
|
|
945
|
+
* @summary Upload a file
|
|
946
|
+
*/
|
|
947
|
+
var storageControllerUploadFile = function (storageControllerUploadFileBody, options) {
|
|
948
|
+
var formData = new FormData();
|
|
949
|
+
if (storageControllerUploadFileBody.file !== undefined) {
|
|
950
|
+
formData.append('file', storageControllerUploadFileBody.file);
|
|
951
|
+
}
|
|
952
|
+
return customInstance({ url: "/api/storage/upload", method: 'POST',
|
|
953
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
954
|
+
data: formData }, options);
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* @summary Proxy file request using high-performance streaming
|
|
958
|
+
*/
|
|
959
|
+
var shortUrlControllerRedirect = function (code, options) {
|
|
960
|
+
return customInstance({ url: "/s/".concat(code), method: 'GET' }, options);
|
|
961
|
+
};
|
|
962
|
+
var v10UsersControllerGetUser = function (id, options) {
|
|
963
|
+
return customInstance({ url: "/api/bot/v10/users/".concat(id), method: 'GET' }, options);
|
|
964
|
+
};
|
|
965
|
+
var v10UsersControllerGetMe = function (options) {
|
|
966
|
+
return customInstance({ url: "/api/bot/v10/users/@me", method: 'GET' }, options);
|
|
967
|
+
};
|
|
968
|
+
var v10GatewayControllerGetBotGateway = function (options) {
|
|
969
|
+
return customInstance({ url: "/api/bot/v10/gateway/bot", method: 'GET' }, options);
|
|
970
|
+
};
|
|
971
|
+
var v10GatewayControllerBotAuth = function (options) {
|
|
972
|
+
return customInstance({ url: "/api/bot/v10/gateway/auth", method: 'POST' }, options);
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* @summary Get channel details
|
|
976
|
+
*/
|
|
977
|
+
var v10ChannelsControllerGetChannel = function (id, options) {
|
|
978
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id), method: 'GET' }, options);
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
* @summary Send a message to a channel
|
|
982
|
+
*/
|
|
983
|
+
var v10ChannelsControllerCreateMessage = function (id, options) {
|
|
984
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages"), method: 'POST' }, options);
|
|
985
|
+
};
|
|
986
|
+
/**
|
|
987
|
+
* @summary Get messages from a channel
|
|
988
|
+
*/
|
|
989
|
+
var v10ChannelsControllerGetMessages = function (id, params, options) {
|
|
990
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages"), method: 'GET', params: params
|
|
991
|
+
}, options);
|
|
992
|
+
};
|
|
993
|
+
/**
|
|
994
|
+
* @summary Update a message
|
|
995
|
+
*/
|
|
996
|
+
var v10ChannelsControllerUpdateMessage = function (id, messageId, options) {
|
|
997
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages/").concat(messageId), method: 'PATCH' }, options);
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* @summary Delete a message
|
|
1001
|
+
*/
|
|
1002
|
+
var v10ChannelsControllerDeleteMessage = function (id, messageId, options) {
|
|
1003
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages/").concat(messageId), method: 'DELETE' }, options);
|
|
1004
|
+
};
|
|
1005
|
+
var v10GuildsControllerGetGuild = function (guildId, options) {
|
|
1006
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId), method: 'GET' }, options);
|
|
1007
|
+
};
|
|
1008
|
+
var v10GuildsControllerGetChannels = function (guildId, options) {
|
|
1009
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/channels"), method: 'GET' }, options);
|
|
1010
|
+
};
|
|
1011
|
+
var v10GuildsControllerGetMembers = function (guildId, options) {
|
|
1012
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members"), method: 'GET' }, options);
|
|
1013
|
+
};
|
|
1014
|
+
var v10GuildsControllerGetRoles = function (guildId, options) {
|
|
1015
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/roles"), method: 'GET' }, options);
|
|
1016
|
+
};
|
|
1017
|
+
var v10GuildsControllerAddMemberRole = function (guildId, userId, roleId, options) {
|
|
1018
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members/").concat(userId, "/roles/").concat(roleId), method: 'PUT' }, options);
|
|
1019
|
+
};
|
|
1020
|
+
var v10GuildsControllerRemoveMemberRole = function (guildId, userId, roleId, options) {
|
|
1021
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members/").concat(userId, "/roles/").concat(roleId), method: 'DELETE' }, options);
|
|
1022
|
+
};
|
|
1023
|
+
var v10ApplicationsControllerGetCommands = function (id, options) {
|
|
1024
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/commands"), method: 'GET' }, options);
|
|
1025
|
+
};
|
|
1026
|
+
var v10ApplicationsControllerCreateCommand = function (id, options) {
|
|
1027
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/commands"), method: 'POST' }, options);
|
|
1028
|
+
};
|
|
1029
|
+
var v10ApplicationsControllerGetGuildCommands = function (id, guildId, options) {
|
|
1030
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands"), method: 'GET' }, options);
|
|
1031
|
+
};
|
|
1032
|
+
var v10ApplicationsControllerCreateGuildCommand = function (id, guildId, options) {
|
|
1033
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands"), method: 'POST' }, options);
|
|
1034
|
+
};
|
|
1035
|
+
var v10InteractionsControllerHandleCallback = function (id, token, options) {
|
|
1036
|
+
return customInstance({ url: "/api/bot/v10/interactions/".concat(id, "/").concat(token, "/callback"), method: 'POST' }, options);
|
|
1037
|
+
};
|
|
1038
|
+
var v10EnterpriseControllerCreateAnnouncement = function (id, options) {
|
|
1039
|
+
return customInstance({ url: "/api/bot/v10/enterprise/departments/".concat(id, "/announcements"), method: 'POST' }, options);
|
|
1040
|
+
};
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
Generates a bearer token for Machine-to-Machine (M2M) communication.
|
|
1044
|
+
|
|
1045
|
+
**Supported Scopes:**
|
|
1046
|
+
- `*`: Full access
|
|
1047
|
+
- `provisioning:workspaces`: Manage organizations and workspaces
|
|
1048
|
+
- `messages:read`: Read messages
|
|
1049
|
+
- `messages:send`: Send messages
|
|
1050
|
+
- `channels:read`: Read channel listings
|
|
1051
|
+
- `channels:write`: Create or update channels
|
|
1052
|
+
- `webhooks:read`: Query webhook registries
|
|
1053
|
+
- `webhooks:write`: Provision or configure webhooks
|
|
1054
|
+
|
|
1055
|
+
* @summary Exchange client credentials for a V3 access token
|
|
1056
|
+
*/
|
|
1057
|
+
var v3OAuthControllerGetToken = function (v3TokenRequestDto, options) {
|
|
1058
|
+
return customInstance({ url: "/api/v3/oauth/token", method: 'POST',
|
|
1059
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1060
|
+
data: v3TokenRequestDto }, options);
|
|
1061
|
+
};
|
|
1062
|
+
/**
|
|
1063
|
+
* Retrieve all workspaces associated with the authenticated organization or workspace context.
|
|
1064
|
+
* @summary List organization workspaces (Enterprise M2M)
|
|
1065
|
+
*/
|
|
1066
|
+
var v3WorkspacesControllerGetWorkspaces = function (options) {
|
|
1067
|
+
return customInstance({ url: "/api/v3/workspaces", method: 'GET' }, options);
|
|
1068
|
+
};
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
Provisions a new workspace within your organization.
|
|
1072
|
+
When provisioned via M2M:
|
|
1073
|
+
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
1074
|
+
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
1075
|
+
3. The specified owner and initial members are added.
|
|
1076
|
+
|
|
1077
|
+
* @summary Provision a new workspace (Enterprise M2M)
|
|
1078
|
+
*/
|
|
1079
|
+
var v3WorkspacesControllerProvisionWorkspace = function (v3ProvisionWorkspaceDto, options) {
|
|
1080
|
+
return customInstance({ url: "/api/v3/workspaces", method: 'POST',
|
|
1081
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1082
|
+
data: v3ProvisionWorkspaceDto }, options);
|
|
1083
|
+
};
|
|
1084
|
+
/**
|
|
1085
|
+
* Retrieve details of a specific workspace by its slug.
|
|
1086
|
+
* @summary Get workspace details (Enterprise M2M)
|
|
1087
|
+
*/
|
|
1088
|
+
var v3WorkspacesControllerGetWorkspaceBySlug = function (slug, options) {
|
|
1089
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'GET' }, options);
|
|
1090
|
+
};
|
|
1091
|
+
/**
|
|
1092
|
+
* Update the configuration and metadata of a specific workspace.
|
|
1093
|
+
* @summary Update a workspace (Enterprise M2M)
|
|
1094
|
+
*/
|
|
1095
|
+
var v3WorkspacesControllerUpdateWorkspace = function (slug, v3UpdateWorkspaceDto, options) {
|
|
1096
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'PATCH',
|
|
1097
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1098
|
+
data: v3UpdateWorkspaceDto }, options);
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
* Permanently deletes a specific workspace.
|
|
1102
|
+
* @summary Delete a workspace (Enterprise M2M)
|
|
1103
|
+
*/
|
|
1104
|
+
var v3WorkspacesControllerDeleteWorkspace = function (slug, options) {
|
|
1105
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'DELETE' }, options);
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* Retrieve all members of a specific workspace. Requires members:read scope.
|
|
1109
|
+
* @summary List all workspace members (Enterprise M2M)
|
|
1110
|
+
*/
|
|
1111
|
+
var v3WorkspacesControllerGetWorkspaceMembers = function (slug, options) {
|
|
1112
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members"), method: 'GET' }, options);
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* Add a new member to a specific workspace. Requires members:write scope.
|
|
1116
|
+
* @summary Add a member to the workspace (Enterprise M2M)
|
|
1117
|
+
*/
|
|
1118
|
+
var v3WorkspacesControllerAddWorkspaceMember = function (slug, v3AddMemberDto, options) {
|
|
1119
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members"), method: 'POST',
|
|
1120
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1121
|
+
data: v3AddMemberDto }, options);
|
|
1122
|
+
};
|
|
1123
|
+
/**
|
|
1124
|
+
* Retrieve details of a specific workspace member by userId. Requires members:read scope.
|
|
1125
|
+
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
1126
|
+
*/
|
|
1127
|
+
var v3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options) {
|
|
1128
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'GET' }, options);
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Update the role of a specific workspace member. Requires members:write scope.
|
|
1132
|
+
* @summary Update a workspace member role (Enterprise M2M)
|
|
1133
|
+
*/
|
|
1134
|
+
var v3WorkspacesControllerUpdateWorkspaceMember = function (slug, userId, v3UpdateMemberRoleDto, options) {
|
|
1135
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'PATCH',
|
|
1136
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1137
|
+
data: v3UpdateMemberRoleDto }, options);
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* Remove a workspace member by userId. Requires members:write scope.
|
|
1141
|
+
* @summary Remove a member from the workspace (Enterprise M2M)
|
|
1142
|
+
*/
|
|
1143
|
+
var v3WorkspacesControllerDeleteWorkspaceMember = function (slug, userId, options) {
|
|
1144
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'DELETE' }, options);
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Requires webhooks:read scope. Retrieves all webhooks configured for this workspace.
|
|
1148
|
+
* @summary List all webhooks in the workspace
|
|
1149
|
+
*/
|
|
1150
|
+
var v3WebhooksControllerGetWebhooks = function (slug, options) {
|
|
1151
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks"), method: 'GET' }, options);
|
|
1152
|
+
};
|
|
1153
|
+
/**
|
|
1154
|
+
* Requires webhooks:write scope.
|
|
1155
|
+
* @summary Create a new webhook
|
|
1156
|
+
*/
|
|
1157
|
+
var v3WebhooksControllerCreateWebhook = function (slug, v3CreateWebhookDto, options) {
|
|
1158
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks"), method: 'POST',
|
|
1159
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1160
|
+
data: v3CreateWebhookDto }, options);
|
|
1161
|
+
};
|
|
1162
|
+
/**
|
|
1163
|
+
* Requires webhooks:read scope.
|
|
1164
|
+
* @summary Get details of a specific webhook
|
|
1165
|
+
*/
|
|
1166
|
+
var v3WebhooksControllerGetWebhook = function (slug, webhookId, options) {
|
|
1167
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'GET' }, options);
|
|
1168
|
+
};
|
|
1169
|
+
/**
|
|
1170
|
+
* Requires webhooks:write scope.
|
|
1171
|
+
* @summary Update a webhook
|
|
1172
|
+
*/
|
|
1173
|
+
var v3WebhooksControllerUpdateWebhook = function (slug, webhookId, v3UpdateWebhookDto, options) {
|
|
1174
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'PATCH',
|
|
1175
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1176
|
+
data: v3UpdateWebhookDto }, options);
|
|
1177
|
+
};
|
|
1178
|
+
/**
|
|
1179
|
+
* Requires webhooks:write scope.
|
|
1180
|
+
* @summary Delete a webhook
|
|
1181
|
+
*/
|
|
1182
|
+
var v3WebhooksControllerDeleteWebhook = function (slug, webhookId, options) {
|
|
1183
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
1184
|
+
};
|
|
1185
|
+
/**
|
|
1186
|
+
* Requires webhooks:read scope. Retrieves all incoming webhooks configured for this channel.
|
|
1187
|
+
* @summary List incoming webhooks for a channel
|
|
1188
|
+
*/
|
|
1189
|
+
var v3ChannelIncomingWebhooksControllerGetChannelWebhooks = function (slug, channelId, options) {
|
|
1190
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks"), method: 'GET' }, options);
|
|
1191
|
+
};
|
|
1192
|
+
/**
|
|
1193
|
+
* Requires webhooks:write scope. Generates a new webhook token and secret.
|
|
1194
|
+
* @summary Create an incoming webhook for a channel
|
|
1195
|
+
*/
|
|
1196
|
+
var v3ChannelIncomingWebhooksControllerCreateChannelWebhook = function (slug, channelId, createChannelIncomingWebhookDto, options) {
|
|
1197
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks"), method: 'POST',
|
|
1198
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1199
|
+
data: createChannelIncomingWebhookDto }, options);
|
|
1200
|
+
};
|
|
1201
|
+
/**
|
|
1202
|
+
* Requires webhooks:read scope.
|
|
1203
|
+
* @summary Get details of a channel incoming webhook
|
|
1204
|
+
*/
|
|
1205
|
+
var v3ChannelIncomingWebhooksControllerGetChannelWebhook = function (slug, channelId, webhookId, options) {
|
|
1206
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'GET' }, options);
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Requires webhooks:write scope.
|
|
1210
|
+
* @summary Update a channel incoming webhook
|
|
1211
|
+
*/
|
|
1212
|
+
var v3ChannelIncomingWebhooksControllerUpdateChannelWebhook = function (slug, channelId, webhookId, updateChannelIncomingWebhookDto, options) {
|
|
1213
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'PATCH',
|
|
1214
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1215
|
+
data: updateChannelIncomingWebhookDto }, options);
|
|
1216
|
+
};
|
|
1217
|
+
/**
|
|
1218
|
+
* Requires webhooks:write scope.
|
|
1219
|
+
* @summary Delete a channel incoming webhook
|
|
1220
|
+
*/
|
|
1221
|
+
var v3ChannelIncomingWebhooksControllerDeleteChannelWebhook = function (slug, channelId, webhookId, options) {
|
|
1222
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* Trigger a webhook using its unique token directly in the URL path. No authentication header required.
|
|
1226
|
+
* @summary Execute a channel incoming webhook (Token in URL)
|
|
1227
|
+
*/
|
|
1228
|
+
var v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken = function (token, executeChannelIncomingWebhookDto, options) {
|
|
1229
|
+
return customInstance({ url: "/api/v3/webhooks/incoming/".concat(token), method: 'POST',
|
|
1230
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1231
|
+
data: executeChannelIncomingWebhookDto }, options);
|
|
1232
|
+
};
|
|
1233
|
+
/**
|
|
1234
|
+
* Trigger a webhook targeting a specific channel ID. The webhook token must be supplied in the `x-webhook-token` header, the `token` query param, or signature query param.
|
|
1235
|
+
* @summary Execute a channel incoming webhook (Channel in URL)
|
|
1236
|
+
*/
|
|
1237
|
+
var v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId = function (channelId, executeChannelIncomingWebhookDto, params, options) {
|
|
1238
|
+
return customInstance({ url: "/api/v3/channels/".concat(channelId, "/webhooks/incoming"), method: 'POST',
|
|
1239
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1240
|
+
data: executeChannelIncomingWebhookDto, params: params
|
|
1241
|
+
}, options);
|
|
1242
|
+
};
|
|
1243
|
+
/**
|
|
1244
|
+
* @summary Get invitations for the current user
|
|
1245
|
+
*/
|
|
1246
|
+
var invitationsControllerGetInvitations = function (params, options) {
|
|
1247
|
+
return customInstance({ url: "/api/invitations", method: 'GET', params: params
|
|
1248
|
+
}, options);
|
|
1249
|
+
};
|
|
1250
|
+
/**
|
|
1251
|
+
* @summary Create a new invitation
|
|
1252
|
+
*/
|
|
1253
|
+
var invitationsControllerCreateInvitation = function (createInvitationDto, options) {
|
|
1254
|
+
return customInstance({ url: "/api/invitations", method: 'POST',
|
|
1255
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1256
|
+
data: createInvitationDto }, options);
|
|
1257
|
+
};
|
|
1258
|
+
/**
|
|
1259
|
+
* @summary Get invitation details by token
|
|
1260
|
+
*/
|
|
1261
|
+
var invitationsControllerGetInvitationByToken = function (token, options) {
|
|
1262
|
+
return customInstance({ url: "/api/invitations/".concat(token), method: 'GET' }, options);
|
|
1263
|
+
};
|
|
1264
|
+
/**
|
|
1265
|
+
* @summary Accept an invitation
|
|
1266
|
+
*/
|
|
1267
|
+
var invitationsControllerAcceptInvitation = function (token, options) {
|
|
1268
|
+
return customInstance({ url: "/api/invitations/".concat(token, "/accept"), method: 'POST' }, options);
|
|
1269
|
+
};
|
|
1270
|
+
/**
|
|
1271
|
+
* @summary Start a new call
|
|
1272
|
+
*/
|
|
1273
|
+
var callsControllerStartCall = function (startCallDto, options) {
|
|
1274
|
+
return customInstance({ url: "/api/calls", method: 'POST',
|
|
1275
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1276
|
+
data: startCallDto }, options);
|
|
1277
|
+
};
|
|
1278
|
+
/**
|
|
1279
|
+
* @summary Update call state
|
|
1280
|
+
*/
|
|
1281
|
+
var callsControllerUpdateCall = function (callId, updateCallDto, options) {
|
|
1282
|
+
return customInstance({ url: "/api/calls/".concat(callId), method: 'PATCH',
|
|
1283
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1284
|
+
data: updateCallDto }, options);
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* @summary Invite a user to a call
|
|
1288
|
+
*/
|
|
1289
|
+
var callsControllerInviteToCall = function (callId, options) {
|
|
1290
|
+
return customInstance({ url: "/api/calls/".concat(callId, "/invite"), method: 'POST' }, options);
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* @summary Get participants in a call
|
|
1294
|
+
*/
|
|
1295
|
+
var callsControllerGetParticipants = function (callId, options) {
|
|
1296
|
+
return customInstance({ url: "/api/calls/".concat(callId, "/participants"), method: 'GET' }, options);
|
|
1297
|
+
};
|
|
1298
|
+
/**
|
|
1299
|
+
* @summary Get scheduled calls for a workspace
|
|
1300
|
+
*/
|
|
1301
|
+
var callsControllerGetScheduledCalls = function (params, options) {
|
|
1302
|
+
return customInstance({ url: "/api/calls/scheduled", method: 'GET', params: params
|
|
1303
|
+
}, options);
|
|
1304
|
+
};
|
|
1305
|
+
/**
|
|
1306
|
+
* @summary Schedule a call
|
|
1307
|
+
*/
|
|
1308
|
+
var callsControllerScheduleCall = function (scheduleCallDto, options) {
|
|
1309
|
+
return customInstance({ url: "/api/calls/scheduled", method: 'POST',
|
|
1310
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1311
|
+
data: scheduleCallDto }, options);
|
|
1312
|
+
};
|
|
1313
|
+
/**
|
|
1314
|
+
* @summary Play a soundboard sound
|
|
1315
|
+
*/
|
|
1316
|
+
var callsControllerPlaySoundboardSound = function (soundboardSoundDto, options) {
|
|
1317
|
+
return customInstance({ url: "/api/calls/soundboard", method: 'POST',
|
|
1318
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1319
|
+
data: soundboardSoundDto }, options);
|
|
1320
|
+
};
|
|
1321
|
+
/**
|
|
1322
|
+
* @summary Get global channels
|
|
1323
|
+
*/
|
|
1324
|
+
var channelsControllerGetGlobalChannels = function (options) {
|
|
1325
|
+
return customInstance({ url: "/api/channels", method: 'GET' }, options);
|
|
1326
|
+
};
|
|
1327
|
+
/**
|
|
1328
|
+
* @summary Create a new channel in a workspace
|
|
1329
|
+
*/
|
|
1330
|
+
var channelsControllerCreateChannel = function (slug, createWorkspaceChannelDto, options) {
|
|
1331
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels"), method: 'POST',
|
|
1332
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1333
|
+
data: createWorkspaceChannelDto }, options);
|
|
1334
|
+
};
|
|
1335
|
+
/**
|
|
1336
|
+
* @summary Get messages from a channel
|
|
1337
|
+
*/
|
|
1338
|
+
var channelsControllerGetMessages = function (channelId, params, options) {
|
|
1339
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages"), method: 'GET', params: params
|
|
1340
|
+
}, options);
|
|
1341
|
+
};
|
|
1342
|
+
/**
|
|
1343
|
+
* @summary Send a message to a channel
|
|
1344
|
+
*/
|
|
1345
|
+
var channelsControllerCreateMessage = function (channelId, options) {
|
|
1346
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages"), method: 'POST' }, options);
|
|
1347
|
+
};
|
|
1348
|
+
/**
|
|
1349
|
+
* @summary Update a message
|
|
1350
|
+
*/
|
|
1351
|
+
var channelsControllerUpdateMessage = function (channelId, messageId, channelsControllerUpdateMessageBody, options) {
|
|
1352
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId), method: 'PATCH',
|
|
1353
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1354
|
+
data: channelsControllerUpdateMessageBody }, options);
|
|
1355
|
+
};
|
|
1356
|
+
/**
|
|
1357
|
+
* @summary Delete a message
|
|
1358
|
+
*/
|
|
1359
|
+
var channelsControllerDeleteMessage = function (channelId, messageId, options) {
|
|
1360
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId), method: 'DELETE' }, options);
|
|
1361
|
+
};
|
|
1362
|
+
/**
|
|
1363
|
+
* @summary Mark messages as read
|
|
1364
|
+
*/
|
|
1365
|
+
var channelsControllerMarkAsRead = function (channelId, channelsControllerMarkAsReadBody, options) {
|
|
1366
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages/read"), method: 'POST',
|
|
1367
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1368
|
+
data: channelsControllerMarkAsReadBody }, options);
|
|
1369
|
+
};
|
|
1370
|
+
/**
|
|
1371
|
+
* @summary Add a reaction to a message
|
|
1372
|
+
*/
|
|
1373
|
+
var channelsControllerAddReaction = function (channelId, messageId, channelsControllerAddReactionBody, options) {
|
|
1374
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
|
|
1375
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1376
|
+
data: channelsControllerAddReactionBody }, options);
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* @summary Remove a reaction from a message
|
|
1380
|
+
*/
|
|
1381
|
+
var channelsControllerRemoveReaction = function (channelId, messageId, emoji, options) {
|
|
1382
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
|
|
1383
|
+
};
|
|
1384
|
+
/**
|
|
1385
|
+
* @summary Share a channel with another workspace
|
|
1386
|
+
*/
|
|
1387
|
+
var channelsControllerShareChannel = function (channelId, options) {
|
|
1388
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/share"), method: 'POST' }, options);
|
|
1389
|
+
};
|
|
1390
|
+
/**
|
|
1391
|
+
* @summary Reply to a message
|
|
1392
|
+
*/
|
|
1393
|
+
var channelsControllerCreateReply = function (channelId, messageId, options) {
|
|
1394
|
+
return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reply"), method: 'POST' }, options);
|
|
1395
|
+
};
|
|
1396
|
+
/**
|
|
1397
|
+
* @summary Get global system statistics
|
|
1398
|
+
*/
|
|
1399
|
+
var adminControllerGetStats = function (options) {
|
|
1400
|
+
return customInstance({ url: "/api/admin/stats", method: 'GET' }, options);
|
|
1401
|
+
};
|
|
1402
|
+
/**
|
|
1403
|
+
* @summary Get all members across all workspaces
|
|
1404
|
+
*/
|
|
1405
|
+
var adminControllerGetMembers = function (params, options) {
|
|
1406
|
+
return customInstance({ url: "/api/admin/members", method: 'GET', params: params
|
|
1407
|
+
}, options);
|
|
1408
|
+
};
|
|
1409
|
+
/**
|
|
1410
|
+
* @summary Update member role
|
|
1411
|
+
*/
|
|
1412
|
+
var adminControllerUpdateMemberRole = function (userId, options) {
|
|
1413
|
+
return customInstance({ url: "/api/admin/members/".concat(userId, "/role"), method: 'PATCH' }, options);
|
|
1414
|
+
};
|
|
1415
|
+
/**
|
|
1416
|
+
* @summary Get assets by type
|
|
1417
|
+
*/
|
|
1418
|
+
var adminControllerGetAssets = function (params, options) {
|
|
1419
|
+
return customInstance({ url: "/api/admin/assets", method: 'GET', params: params
|
|
1420
|
+
}, options);
|
|
1421
|
+
};
|
|
1422
|
+
/**
|
|
1423
|
+
* @summary Create a new asset
|
|
1424
|
+
*/
|
|
1425
|
+
var adminControllerCreateAsset = function (options) {
|
|
1426
|
+
return customInstance({ url: "/api/admin/assets", method: 'POST' }, options);
|
|
1427
|
+
};
|
|
1428
|
+
/**
|
|
1429
|
+
* @summary Update an existing asset
|
|
1430
|
+
*/
|
|
1431
|
+
var adminControllerUpdateAsset = function (options) {
|
|
1432
|
+
return customInstance({ url: "/api/admin/assets", method: 'PATCH' }, options);
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* @summary Delete an asset
|
|
1436
|
+
*/
|
|
1437
|
+
var adminControllerDeleteAsset = function (params, options) {
|
|
1438
|
+
return customInstance({ url: "/api/admin/assets", method: 'DELETE', params: params
|
|
1439
|
+
}, options);
|
|
1440
|
+
};
|
|
1441
|
+
/**
|
|
1442
|
+
* @summary Get profile assets
|
|
1443
|
+
*/
|
|
1444
|
+
var adminControllerGetProfileAssets = function (options) {
|
|
1445
|
+
return customInstance({ url: "/api/admin/profile-assets", method: 'GET' }, options);
|
|
1446
|
+
};
|
|
1447
|
+
/**
|
|
1448
|
+
* @summary Create a profile asset
|
|
1449
|
+
*/
|
|
1450
|
+
var adminControllerCreateProfileAsset = function (options) {
|
|
1451
|
+
return customInstance({ url: "/api/admin/profile-assets", method: 'POST' }, options);
|
|
1452
|
+
};
|
|
1453
|
+
/**
|
|
1454
|
+
* @summary Get asset statistics
|
|
1455
|
+
*/
|
|
1456
|
+
var adminControllerGetAssetStats = function (params, options) {
|
|
1457
|
+
return customInstance({ url: "/api/admin/assets/stats", method: 'GET', params: params
|
|
1458
|
+
}, options);
|
|
1459
|
+
};
|
|
1460
|
+
/**
|
|
1461
|
+
* @summary Upload a file to Sanity
|
|
1462
|
+
*/
|
|
1463
|
+
var adminControllerUploadFile = function (adminControllerUploadFileBody, options) {
|
|
1464
|
+
var formData = new FormData();
|
|
1465
|
+
if (adminControllerUploadFileBody.file !== undefined) {
|
|
1466
|
+
formData.append('file', adminControllerUploadFileBody.file);
|
|
1467
|
+
}
|
|
1468
|
+
return customInstance({ url: "/api/admin/upload", method: 'POST',
|
|
1469
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
1470
|
+
data: formData }, options);
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* @summary Get all DM conversations for the current user
|
|
1474
|
+
*/
|
|
1475
|
+
var dmsControllerGetDms = function (options) {
|
|
1476
|
+
return customInstance({ url: "/api/dms", method: 'GET' }, options);
|
|
1477
|
+
};
|
|
1478
|
+
/**
|
|
1479
|
+
* @summary Start a new DM conversation
|
|
1480
|
+
*/
|
|
1481
|
+
var dmsControllerCreateDm = function (createDmDto, options) {
|
|
1482
|
+
return customInstance({ url: "/api/dms", method: 'POST',
|
|
1483
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1484
|
+
data: createDmDto }, options);
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* @summary Get DM conversation details
|
|
1488
|
+
*/
|
|
1489
|
+
var dmsControllerGetDm = function (conversationId, options) {
|
|
1490
|
+
return customInstance({ url: "/api/dms/".concat(conversationId), method: 'GET' }, options);
|
|
1491
|
+
};
|
|
1492
|
+
/**
|
|
1493
|
+
* @summary Delete a DM conversation
|
|
1494
|
+
*/
|
|
1495
|
+
var dmsControllerDeleteDm = function (conversationId, options) {
|
|
1496
|
+
return customInstance({ url: "/api/dms/".concat(conversationId), method: 'DELETE' }, options);
|
|
1497
|
+
};
|
|
1498
|
+
/**
|
|
1499
|
+
* @summary Get messages in a DM conversation
|
|
1500
|
+
*/
|
|
1501
|
+
var dmsControllerGetMessages = function (conversationId, params, options) {
|
|
1502
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages"), method: 'GET', params: params
|
|
1503
|
+
}, options);
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
* @summary Send a message in a DM
|
|
1507
|
+
*/
|
|
1508
|
+
var dmsControllerCreateMessage = function (conversationId, options) {
|
|
1509
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages"), method: 'POST' }, options);
|
|
1510
|
+
};
|
|
1511
|
+
/**
|
|
1512
|
+
* @summary Update a DM message
|
|
1513
|
+
*/
|
|
1514
|
+
var dmsControllerUpdateMessage = function (conversationId, messageId, updateDmMessageDto, options) {
|
|
1515
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId), method: 'PATCH',
|
|
1516
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1517
|
+
data: updateDmMessageDto }, options);
|
|
1518
|
+
};
|
|
1519
|
+
/**
|
|
1520
|
+
* @summary Delete a DM message
|
|
1521
|
+
*/
|
|
1522
|
+
var dmsControllerDeleteMessage = function (conversationId, messageId, options) {
|
|
1523
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId), method: 'DELETE' }, options);
|
|
1524
|
+
};
|
|
1525
|
+
/**
|
|
1526
|
+
* @summary Mark messages as read in a DM
|
|
1527
|
+
*/
|
|
1528
|
+
var dmsControllerMarkAsRead = function (conversationId, markAsReadDto, options) {
|
|
1529
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/read"), method: 'POST',
|
|
1530
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1531
|
+
data: markAsReadDto }, options);
|
|
1532
|
+
};
|
|
1533
|
+
/**
|
|
1534
|
+
* @summary Add a reaction to a DM message
|
|
1535
|
+
*/
|
|
1536
|
+
var dmsControllerAddReaction = function (conversationId, messageId, dmsControllerAddReactionBody, options) {
|
|
1537
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
|
|
1538
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1539
|
+
data: dmsControllerAddReactionBody }, options);
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* @summary Remove a reaction from a DM message
|
|
1543
|
+
*/
|
|
1544
|
+
var dmsControllerRemoveReaction = function (conversationId, messageId, emoji, options) {
|
|
1545
|
+
return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* @summary Get list of friends
|
|
1549
|
+
*/
|
|
1550
|
+
var friendsControllerGetFriends = function (params, options) {
|
|
1551
|
+
return customInstance({ url: "/api/friends", method: 'GET', params: params
|
|
1552
|
+
}, options);
|
|
1553
|
+
};
|
|
1554
|
+
/**
|
|
1555
|
+
* @summary Get friend requests
|
|
1556
|
+
*/
|
|
1557
|
+
var friendsControllerGetFriendRequests = function (params, options) {
|
|
1558
|
+
return customInstance({ url: "/api/friends/requests", method: 'GET', params: params
|
|
1559
|
+
}, options);
|
|
1560
|
+
};
|
|
1561
|
+
/**
|
|
1562
|
+
* @summary Send a friend request
|
|
1563
|
+
*/
|
|
1564
|
+
var friendsControllerSendFriendRequest = function (sendFriendRequestDto, options) {
|
|
1565
|
+
return customInstance({ url: "/api/friends/requests", method: 'POST',
|
|
1566
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1567
|
+
data: sendFriendRequestDto }, options);
|
|
1568
|
+
};
|
|
1569
|
+
/**
|
|
1570
|
+
* @summary Accept, decline or cancel a friend request
|
|
1571
|
+
*/
|
|
1572
|
+
var friendsControllerUpdateFriendRequest = function (requestId, updateFriendRequestDto, options) {
|
|
1573
|
+
return customInstance({ url: "/api/friends/requests/".concat(requestId), method: 'PATCH',
|
|
1574
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1575
|
+
data: updateFriendRequestDto }, options);
|
|
1576
|
+
};
|
|
1577
|
+
/**
|
|
1578
|
+
* @summary Delete a friend request or unfriend
|
|
1579
|
+
*/
|
|
1580
|
+
var friendsControllerDeleteFriendRequest = function (requestId, options) {
|
|
1581
|
+
return customInstance({ url: "/api/friends/requests/".concat(requestId), method: 'DELETE' }, options);
|
|
1582
|
+
};
|
|
1583
|
+
/**
|
|
1584
|
+
* @summary Get all workspaces for the current user
|
|
1585
|
+
*/
|
|
1586
|
+
var workspacesControllerGetWorkspaces = function (options) {
|
|
1587
|
+
return customInstance({ url: "/api/workspaces", method: 'GET' }, options);
|
|
1588
|
+
};
|
|
1589
|
+
/**
|
|
1590
|
+
* @summary Create a new workspace
|
|
1591
|
+
*/
|
|
1592
|
+
var workspacesControllerCreateWorkspace = function (createWorkspaceDto, options) {
|
|
1593
|
+
return customInstance({ url: "/api/workspaces", method: 'POST',
|
|
1594
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1595
|
+
data: createWorkspaceDto }, options);
|
|
1596
|
+
};
|
|
1597
|
+
/**
|
|
1598
|
+
* @summary Get all well-defined workspace roles
|
|
1599
|
+
*/
|
|
1600
|
+
var workspacesControllerGetWorkspaceRoles = function (options) {
|
|
1601
|
+
return customInstance({ url: "/api/workspaces/roles", method: 'GET' }, options);
|
|
1602
|
+
};
|
|
1603
|
+
/**
|
|
1604
|
+
* @summary Get roles defined for a specific workspace
|
|
1605
|
+
*/
|
|
1606
|
+
var workspacesControllerGetWorkspaceSlugRoles = function (slug, options) {
|
|
1607
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/roles"), method: 'GET' }, options);
|
|
1608
|
+
};
|
|
1609
|
+
/**
|
|
1610
|
+
* @summary Discover public workspaces
|
|
1611
|
+
*/
|
|
1612
|
+
var workspacesControllerDiscoverWorkspaces = function (params, options) {
|
|
1613
|
+
return customInstance({ url: "/api/workspaces/discover", method: 'GET', params: params
|
|
1614
|
+
}, options);
|
|
1615
|
+
};
|
|
1616
|
+
/**
|
|
1617
|
+
* @summary Join a workspace
|
|
1618
|
+
*/
|
|
1619
|
+
var workspacesControllerJoinWorkspace = function (slug, options) {
|
|
1620
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/join"), method: 'POST' }, options);
|
|
1621
|
+
};
|
|
1622
|
+
/**
|
|
1623
|
+
* @summary Get workspace details by slug
|
|
1624
|
+
*/
|
|
1625
|
+
var workspacesControllerGetWorkspaceBySlug = function (slug, options) {
|
|
1626
|
+
return customInstance({ url: "/api/workspaces/".concat(slug), method: 'GET' }, options);
|
|
1627
|
+
};
|
|
1628
|
+
/**
|
|
1629
|
+
* @summary Update workspace details
|
|
1630
|
+
*/
|
|
1631
|
+
var workspacesControllerUpdateWorkspaceBySlug = function (slug, updateWorkspaceDto, options) {
|
|
1632
|
+
return customInstance({ url: "/api/workspaces/".concat(slug), method: 'PATCH',
|
|
1633
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1634
|
+
data: updateWorkspaceDto }, options);
|
|
1635
|
+
};
|
|
1636
|
+
/**
|
|
1637
|
+
* @summary Delete a workspace
|
|
1638
|
+
*/
|
|
1639
|
+
var workspacesControllerDeleteWorkspaceBySlug = function (slug, options) {
|
|
1640
|
+
return customInstance({ url: "/api/workspaces/".concat(slug), method: 'DELETE' }, options);
|
|
1641
|
+
};
|
|
1642
|
+
/**
|
|
1643
|
+
* @summary Get all members of a workspace
|
|
1644
|
+
*/
|
|
1645
|
+
var membersControllerGetWorkspaceMembers = function (slug, options) {
|
|
1646
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/members"), method: 'GET' }, options);
|
|
1647
|
+
};
|
|
1648
|
+
/**
|
|
1649
|
+
* @summary Update a workspace member (e.g. change role)
|
|
1650
|
+
*/
|
|
1651
|
+
var membersControllerUpdateMember = function (slug, memberId, updateMemberRoleDto, options) {
|
|
1652
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/members/").concat(memberId), method: 'PATCH',
|
|
1653
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1654
|
+
data: updateMemberRoleDto }, options);
|
|
1655
|
+
};
|
|
1656
|
+
/**
|
|
1657
|
+
* @summary Remove a member from a workspace
|
|
1658
|
+
*/
|
|
1659
|
+
var membersControllerRemoveMember = function (slug, memberId, options) {
|
|
1660
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/members/").concat(memberId), method: 'DELETE' }, options);
|
|
1661
|
+
};
|
|
1662
|
+
/**
|
|
1663
|
+
* @summary Get all channels in a workspace
|
|
1664
|
+
*/
|
|
1665
|
+
var channelsControllerGetWorkspaceChannels = function (slug, options) {
|
|
1666
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels"), method: 'GET' }, options);
|
|
1667
|
+
};
|
|
1668
|
+
/**
|
|
1669
|
+
* @summary Get channel details
|
|
1670
|
+
*/
|
|
1671
|
+
var channelsControllerGetChannel = function (slug, channelId, options) {
|
|
1672
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'GET' }, options);
|
|
1673
|
+
};
|
|
1674
|
+
/**
|
|
1675
|
+
* @summary Update channel details
|
|
1676
|
+
*/
|
|
1677
|
+
var channelsControllerUpdateChannel = function (slug, channelId, updateWorkspaceChannelDto, options) {
|
|
1678
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'PATCH',
|
|
1679
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1680
|
+
data: updateWorkspaceChannelDto }, options);
|
|
1681
|
+
};
|
|
1682
|
+
/**
|
|
1683
|
+
* @summary Delete a channel
|
|
1684
|
+
*/
|
|
1685
|
+
var channelsControllerDeleteChannel = function (slug, channelId, options) {
|
|
1686
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'DELETE' }, options);
|
|
1687
|
+
};
|
|
1688
|
+
/**
|
|
1689
|
+
* @summary Get all departments in a workspace
|
|
1690
|
+
*/
|
|
1691
|
+
var departmentsControllerGetDepartments = function (slug, options) {
|
|
1692
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments"), method: 'GET' }, options);
|
|
1693
|
+
};
|
|
1694
|
+
/**
|
|
1695
|
+
* @summary Create a new department
|
|
1696
|
+
*/
|
|
1697
|
+
var departmentsControllerCreateDepartment = function (slug, createWorkspaceDepartmentDto, options) {
|
|
1698
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments"), method: 'POST',
|
|
1699
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1700
|
+
data: createWorkspaceDepartmentDto }, options);
|
|
1701
|
+
};
|
|
1702
|
+
/**
|
|
1703
|
+
* @summary Get department details
|
|
1704
|
+
*/
|
|
1705
|
+
var departmentsControllerGetDepartment = function (slug, departmentId, options) {
|
|
1706
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments/").concat(departmentId), method: 'GET' }, options);
|
|
1707
|
+
};
|
|
1708
|
+
/**
|
|
1709
|
+
* @summary Update department details
|
|
1710
|
+
*/
|
|
1711
|
+
var departmentsControllerUpdateDepartment = function (slug, departmentId, updateWorkspaceDepartmentDto, options) {
|
|
1712
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments/").concat(departmentId), method: 'PATCH',
|
|
1713
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1714
|
+
data: updateWorkspaceDepartmentDto }, options);
|
|
1715
|
+
};
|
|
1716
|
+
/**
|
|
1717
|
+
* @summary Delete a department
|
|
1718
|
+
*/
|
|
1719
|
+
var departmentsControllerDeleteDepartment = function (slug, departmentId, options) {
|
|
1720
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments/").concat(departmentId), method: 'DELETE' }, options);
|
|
1721
|
+
};
|
|
1722
|
+
/**
|
|
1723
|
+
* @summary Get announcements for a department
|
|
1724
|
+
*/
|
|
1725
|
+
var departmentsControllerGetAnnouncements = function (slug, departmentId, params, options) {
|
|
1726
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments/").concat(departmentId, "/announcements"), method: 'GET', params: params
|
|
1727
|
+
}, options);
|
|
1728
|
+
};
|
|
1729
|
+
/**
|
|
1730
|
+
* @summary Create a new announcement in a department
|
|
1731
|
+
*/
|
|
1732
|
+
var departmentsControllerCreateAnnouncement = function (slug, departmentId, createDepartmentAnnouncementDto, options) {
|
|
1733
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/departments/").concat(departmentId, "/announcements"), method: 'POST',
|
|
1734
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1735
|
+
data: createDepartmentAnnouncementDto }, options);
|
|
1736
|
+
};
|
|
1737
|
+
/**
|
|
1738
|
+
* @summary Get all teams in a workspace
|
|
1739
|
+
*/
|
|
1740
|
+
var teamsControllerGetTeams = function (slug, params, options) {
|
|
1741
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/teams"), method: 'GET', params: params
|
|
1742
|
+
}, options);
|
|
1743
|
+
};
|
|
1744
|
+
/**
|
|
1745
|
+
* @summary Create a new team
|
|
1746
|
+
*/
|
|
1747
|
+
var teamsControllerCreateTeam = function (slug, createWorkspaceTeamDto, options) {
|
|
1748
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/teams"), method: 'POST',
|
|
1749
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1750
|
+
data: createWorkspaceTeamDto }, options);
|
|
1751
|
+
};
|
|
1752
|
+
/**
|
|
1753
|
+
* @summary Add a member to a team
|
|
1754
|
+
*/
|
|
1755
|
+
var teamsControllerAddMember = function (slug, teamId, addTeamMemberDto, options) {
|
|
1756
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/teams/").concat(teamId, "/members"), method: 'POST',
|
|
1757
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1758
|
+
data: addTeamMemberDto }, options);
|
|
1759
|
+
};
|
|
1760
|
+
/**
|
|
1761
|
+
* @summary Remove a member from a team
|
|
1762
|
+
*/
|
|
1763
|
+
var teamsControllerRemoveMember = function (slug, teamId, userId, options) {
|
|
1764
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/teams/").concat(teamId, "/members/").concat(userId), method: 'DELETE' }, options);
|
|
1765
|
+
};
|
|
1766
|
+
/**
|
|
1767
|
+
* @summary Get messages from a channel
|
|
1768
|
+
*/
|
|
1769
|
+
var messagesControllerGetMessages = function (slug, channelId, params, options) {
|
|
1770
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages"), method: 'GET', params: params
|
|
1771
|
+
}, options);
|
|
1772
|
+
};
|
|
1773
|
+
/**
|
|
1774
|
+
* @summary Send a message to a channel
|
|
1775
|
+
*/
|
|
1776
|
+
var messagesControllerCreateMessage = function (slug, channelId, createMessageDto, options) {
|
|
1777
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages"), method: 'POST',
|
|
1778
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1779
|
+
data: createMessageDto }, options);
|
|
1780
|
+
};
|
|
1781
|
+
/**
|
|
1782
|
+
* @summary Update a message
|
|
1783
|
+
*/
|
|
1784
|
+
var messagesControllerUpdateMessage = function (slug, channelId, messageId, updateMessageDto, options) {
|
|
1785
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId), method: 'PATCH',
|
|
1786
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1787
|
+
data: updateMessageDto }, options);
|
|
1788
|
+
};
|
|
1789
|
+
/**
|
|
1790
|
+
* @summary Delete a message
|
|
1791
|
+
*/
|
|
1792
|
+
var messagesControllerDeleteMessage = function (slug, channelId, messageId, options) {
|
|
1793
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId), method: 'DELETE' }, options);
|
|
1794
|
+
};
|
|
1795
|
+
/**
|
|
1796
|
+
* @summary Mark messages as read
|
|
1797
|
+
*/
|
|
1798
|
+
var messagesControllerMarkAsRead = function (slug, channelId, markMessagesAsReadDto, options) {
|
|
1799
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/read"), method: 'POST',
|
|
1800
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1801
|
+
data: markMessagesAsReadDto }, options);
|
|
1802
|
+
};
|
|
1803
|
+
/**
|
|
1804
|
+
* @summary Add a reaction to a message
|
|
1805
|
+
*/
|
|
1806
|
+
var messagesControllerAddReaction = function (slug, channelId, messageId, addReactionDto, options) {
|
|
1807
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
|
|
1808
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1809
|
+
data: addReactionDto }, options);
|
|
1810
|
+
};
|
|
1811
|
+
/**
|
|
1812
|
+
* @summary Remove a reaction from a message
|
|
1813
|
+
*/
|
|
1814
|
+
var messagesControllerRemoveReaction = function (slug, channelId, messageId, emoji, options) {
|
|
1815
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
|
|
1816
|
+
};
|
|
1817
|
+
/**
|
|
1818
|
+
* @summary Create a reply to a message
|
|
1819
|
+
*/
|
|
1820
|
+
var messagesControllerCreateReply = function (slug, channelId, messageId, createMessageDto, options) {
|
|
1821
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId, "/replies"), method: 'POST',
|
|
1822
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1823
|
+
data: createMessageDto }, options);
|
|
1824
|
+
};
|
|
1825
|
+
/**
|
|
1826
|
+
* @summary Get all custom emojis for a workspace
|
|
1827
|
+
*/
|
|
1828
|
+
var emojisControllerGetEmojis = function (slug, options) {
|
|
1829
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/emojis"), method: 'GET' }, options);
|
|
1830
|
+
};
|
|
1831
|
+
/**
|
|
1832
|
+
* @summary Create a custom emoji
|
|
1833
|
+
*/
|
|
1834
|
+
var emojisControllerCreateEmoji = function (slug, createEmojiDto, options) {
|
|
1835
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/emojis"), method: 'POST',
|
|
1836
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1837
|
+
data: createEmojiDto }, options);
|
|
1838
|
+
};
|
|
1839
|
+
/**
|
|
1840
|
+
* @summary Get audit logs for a workspace
|
|
1841
|
+
*/
|
|
1842
|
+
var auditLogsControllerGetAuditLogs = function (slug, params, options) {
|
|
1843
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/audit-logs"), method: 'GET', params: params
|
|
1844
|
+
}, options);
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* @summary Export audit logs as CSV
|
|
1848
|
+
*/
|
|
1849
|
+
var auditLogsControllerExportAuditLogs = function (slug, options) {
|
|
1850
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/audit-logs/export"), method: 'GET' }, options);
|
|
1851
|
+
};
|
|
1852
|
+
/**
|
|
1853
|
+
* @summary Get all invite links for a workspace
|
|
1854
|
+
*/
|
|
1855
|
+
var inviteLinksControllerGetInviteLinks = function (slug, options) {
|
|
1856
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/invite-links"), method: 'GET' }, options);
|
|
1857
|
+
};
|
|
1858
|
+
/**
|
|
1859
|
+
* @summary Create a new invite link
|
|
1860
|
+
*/
|
|
1861
|
+
var inviteLinksControllerCreateInviteLink = function (slug, createInviteLinkDto, options) {
|
|
1862
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/invite-links"), method: 'POST',
|
|
1863
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1864
|
+
data: createInviteLinkDto }, options);
|
|
1865
|
+
};
|
|
1866
|
+
/**
|
|
1867
|
+
* @summary Get all API tokens for a workspace
|
|
1868
|
+
*/
|
|
1869
|
+
var apiTokensControllerGetApiTokens = function (slug, options) {
|
|
1870
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/api-tokens"), method: 'GET' }, options);
|
|
1871
|
+
};
|
|
1872
|
+
/**
|
|
1873
|
+
* @summary Create a new API token for a workspace
|
|
1874
|
+
*/
|
|
1875
|
+
var apiTokensControllerCreateApiToken = function (slug, createApiTokenDto, options) {
|
|
1876
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/api-tokens"), method: 'POST',
|
|
1877
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1878
|
+
data: createApiTokenDto }, options);
|
|
1879
|
+
};
|
|
1880
|
+
/**
|
|
1881
|
+
* @summary Delete an API token
|
|
1882
|
+
*/
|
|
1883
|
+
var apiTokensControllerDeleteApiToken = function (slug, tokenId, options) {
|
|
1884
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/api-tokens/").concat(tokenId), method: 'DELETE' }, options);
|
|
1885
|
+
};
|
|
1886
|
+
/**
|
|
1887
|
+
* @summary Get all webhooks for a workspace
|
|
1888
|
+
*/
|
|
1889
|
+
var webhooksControllerGetWebhooks = function (slug, options) {
|
|
1890
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/webhooks"), method: 'GET' }, options);
|
|
1891
|
+
};
|
|
1892
|
+
/**
|
|
1893
|
+
* @summary Create a new webhook for a workspace
|
|
1894
|
+
*/
|
|
1895
|
+
var webhooksControllerCreateWebhook = function (slug, createWorkspaceWebhookDto, options) {
|
|
1896
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/webhooks"), method: 'POST',
|
|
1897
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1898
|
+
data: createWorkspaceWebhookDto }, options);
|
|
1899
|
+
};
|
|
1900
|
+
/**
|
|
1901
|
+
* @summary Update a webhook
|
|
1902
|
+
*/
|
|
1903
|
+
var webhooksControllerUpdateWebhook = function (slug, webhookId, updateWorkspaceWebhookDto, options) {
|
|
1904
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'PATCH',
|
|
1905
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1906
|
+
data: updateWorkspaceWebhookDto }, options);
|
|
1907
|
+
};
|
|
1908
|
+
/**
|
|
1909
|
+
* @summary Delete a webhook
|
|
1910
|
+
*/
|
|
1911
|
+
var webhooksControllerDeleteWebhook = function (slug, webhookId, options) {
|
|
1912
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
1913
|
+
};
|
|
1914
|
+
/**
|
|
1915
|
+
* @summary Get active calls in a workspace
|
|
1916
|
+
*/
|
|
1917
|
+
var callsControllerGetActiveCalls = function (slug, options) {
|
|
1918
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/calls/active"), method: 'GET' }, options);
|
|
1919
|
+
};
|
|
1920
|
+
/**
|
|
1921
|
+
* @summary Unified workspace search (messages, channels, members, files)
|
|
1922
|
+
*/
|
|
1923
|
+
var searchControllerSearch = function (slug, params, options) {
|
|
1924
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/search"), method: 'GET', params: params
|
|
1925
|
+
}, options);
|
|
1926
|
+
};
|
|
1927
|
+
var deviceAuthControllerGenerateQR = function (options) {
|
|
1928
|
+
return customInstance({ url: "/api/device-auth/qr/generate", method: 'POST' }, options);
|
|
1929
|
+
};
|
|
1930
|
+
var deviceAuthControllerCheckStatus = function (deviceCode, options) {
|
|
1931
|
+
return customInstance({ url: "/api/device-auth/qr/status/".concat(deviceCode), method: 'GET' }, options);
|
|
1932
|
+
};
|
|
1933
|
+
var deviceAuthControllerAuthorize = function (options) {
|
|
1934
|
+
return customInstance({ url: "/api/device-auth/qr/authorize", method: 'POST' }, options);
|
|
1935
|
+
};
|
|
1936
|
+
var deviceAuthControllerDeny = function (options) {
|
|
1937
|
+
return customInstance({ url: "/api/device-auth/qr/deny", method: 'POST' }, options);
|
|
1938
|
+
};
|
|
1939
|
+
var androidAuthControllerGetProfile = function (options) {
|
|
1940
|
+
return customInstance({ url: "/api/android-auth/me", method: 'GET' }, options);
|
|
1941
|
+
};
|
|
1942
|
+
var androidAuthControllerChangePassword = function (options) {
|
|
1943
|
+
return customInstance({ url: "/api/android-auth/change-password", method: 'POST' }, options);
|
|
1944
|
+
};
|
|
1945
|
+
var androidAuthControllerCheckUsername = function (params, options) {
|
|
1946
|
+
return customInstance({ url: "/api/android-auth/check-username", method: 'GET', params: params
|
|
1947
|
+
}, options);
|
|
1948
|
+
};
|
|
1949
|
+
var androidAuthControllerLogin = function (options) {
|
|
1950
|
+
return customInstance({ url: "/api/android-auth/login", method: 'POST' }, options);
|
|
1951
|
+
};
|
|
1952
|
+
var androidAuthControllerSignup = function (options) {
|
|
1953
|
+
return customInstance({ url: "/api/android-auth/signup", method: 'POST' }, options);
|
|
1954
|
+
};
|
|
1955
|
+
var androidAuthControllerGoogleLogin = function (options) {
|
|
1956
|
+
return customInstance({ url: "/api/android-auth/social/google", method: 'POST' }, options);
|
|
1957
|
+
};
|
|
1958
|
+
var androidAuthControllerGithubLogin = function (options) {
|
|
1959
|
+
return customInstance({ url: "/api/android-auth/social/github", method: 'POST' }, options);
|
|
1960
|
+
};
|
|
1961
|
+
var androidAuthControllerRefresh = function (options) {
|
|
1962
|
+
return customInstance({ url: "/api/android-auth/refresh", method: 'POST' }, options);
|
|
1963
|
+
};
|
|
1964
|
+
/**
|
|
1965
|
+
* @summary Get scheduled notifications for the current user
|
|
1966
|
+
*/
|
|
1967
|
+
var scheduledNotificationsControllerGetNotifications = function (params, options) {
|
|
1968
|
+
return customInstance({ url: "/api/scheduled-notifications", method: 'GET', params: params
|
|
1969
|
+
}, options);
|
|
1970
|
+
};
|
|
1971
|
+
/**
|
|
1972
|
+
* @summary Create a scheduled notification
|
|
1973
|
+
*/
|
|
1974
|
+
var scheduledNotificationsControllerCreateNotification = function (createScheduledNotificationDto, options) {
|
|
1975
|
+
return customInstance({ url: "/api/scheduled-notifications", method: 'POST',
|
|
1976
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1977
|
+
data: createScheduledNotificationDto }, options);
|
|
1978
|
+
};
|
|
1979
|
+
/**
|
|
1980
|
+
* @summary Update a scheduled notification
|
|
1981
|
+
*/
|
|
1982
|
+
var scheduledNotificationsControllerUpdateNotification = function (id, scheduledNotificationsControllerUpdateNotificationBody, options) {
|
|
1983
|
+
return customInstance({ url: "/api/scheduled-notifications/".concat(id), method: 'PATCH',
|
|
1984
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1985
|
+
data: scheduledNotificationsControllerUpdateNotificationBody }, options);
|
|
1986
|
+
};
|
|
1987
|
+
/**
|
|
1988
|
+
* @summary Delete a scheduled notification
|
|
1989
|
+
*/
|
|
1990
|
+
var scheduledNotificationsControllerDeleteNotification = function (id, options) {
|
|
1991
|
+
return customInstance({ url: "/api/scheduled-notifications/".concat(id), method: 'DELETE' }, options);
|
|
1992
|
+
};
|
|
1993
|
+
/**
|
|
1994
|
+
* @summary Get all eligible assets for the current user
|
|
1995
|
+
*/
|
|
1996
|
+
var assetsControllerGetEligibleAssets = function (options) {
|
|
1997
|
+
return customInstance({ url: "/api/assets/eligible", method: 'GET' }, options);
|
|
1998
|
+
};
|
|
1999
|
+
/**
|
|
2000
|
+
* @summary Create a support ticket
|
|
2001
|
+
*/
|
|
2002
|
+
var supportControllerCreateTicket = function (options) {
|
|
2003
|
+
return customInstance({ url: "/api/support/tickets", method: 'POST' }, options);
|
|
2004
|
+
};
|
|
2005
|
+
/**
|
|
2006
|
+
* @summary Get support tickets
|
|
2007
|
+
*/
|
|
2008
|
+
var supportControllerGetTickets = function (params, options) {
|
|
2009
|
+
return customInstance({ url: "/api/support/tickets", method: 'GET', params: params
|
|
2010
|
+
}, options);
|
|
2011
|
+
};
|
|
2012
|
+
/**
|
|
2013
|
+
* @summary Start a live chat session
|
|
2014
|
+
*/
|
|
2015
|
+
var supportControllerStartLiveChat = function (options) {
|
|
2016
|
+
return customInstance({ url: "/api/support/live-chat", method: 'POST' }, options);
|
|
2017
|
+
};
|
|
2018
|
+
/**
|
|
2019
|
+
* @summary End a live chat session
|
|
2020
|
+
*/
|
|
2021
|
+
var supportControllerEndLiveChat = function (sessionId, options) {
|
|
2022
|
+
return customInstance({ url: "/api/support/live-chat/".concat(sessionId, "/end"), method: 'PATCH' }, options);
|
|
2023
|
+
};
|
|
2024
|
+
/**
|
|
2025
|
+
* @summary Update ticket status
|
|
2026
|
+
*/
|
|
2027
|
+
var supportControllerUpdateTicketStatus = function (ticketId, options) {
|
|
2028
|
+
return customInstance({ url: "/api/support/tickets/".concat(ticketId, "/status"), method: 'PATCH' }, options);
|
|
2029
|
+
};
|
|
2030
|
+
/**
|
|
2031
|
+
* @summary Assign ticket to an agent
|
|
2032
|
+
*/
|
|
2033
|
+
var supportControllerAssignTicket = function (ticketId, options) {
|
|
2034
|
+
return customInstance({ url: "/api/support/tickets/".concat(ticketId, "/assign"), method: 'PATCH' }, options);
|
|
2035
|
+
};
|
|
2036
|
+
/**
|
|
2037
|
+
* @summary Create or update customer profile
|
|
2038
|
+
*/
|
|
2039
|
+
var supportControllerCreateCustomerProfile = function (options) {
|
|
2040
|
+
return customInstance({ url: "/api/support/customers", method: 'POST' }, options);
|
|
2041
|
+
};
|
|
2042
|
+
/**
|
|
2043
|
+
* @summary Get customer profiles
|
|
2044
|
+
*/
|
|
2045
|
+
var supportControllerGetCustomerProfiles = function (params, options) {
|
|
2046
|
+
return customInstance({ url: "/api/support/customers", method: 'GET', params: params
|
|
2047
|
+
}, options);
|
|
2048
|
+
};
|
|
2049
|
+
return { appControllerGetHealth: appControllerGetHealth, appControllerGetHello: appControllerGetHello, appControllerGetRealtimeConfig: appControllerGetRealtimeConfig, usersControllerSearchUsers: usersControllerSearchUsers, usersControllerGetMe: usersControllerGetMe, usersControllerUpdateMe: usersControllerUpdateMe, usersControllerGetUser: usersControllerGetUser, usersControllerGetSocialProfile: usersControllerGetSocialProfile, usersControllerBlockUser: usersControllerBlockUser, usersControllerUnblockUser: usersControllerUnblockUser, usersControllerRegisterDeviceToken: usersControllerRegisterDeviceToken, usersControllerGetDeviceTokens: usersControllerGetDeviceTokens, usersControllerDeleteDeviceToken: usersControllerDeleteDeviceToken, v2WorkspacesControllerGetMembers: v2WorkspacesControllerGetMembers, v2WorkspacesControllerAddMember: v2WorkspacesControllerAddMember, v2WorkspacesControllerGetMember: v2WorkspacesControllerGetMember, v2WorkspacesControllerRemoveMember: v2WorkspacesControllerRemoveMember, v2MessagesControllerGetChannels: v2MessagesControllerGetChannels, v2MessagesControllerCreateChannel: v2MessagesControllerCreateChannel, v2MessagesControllerUploadChannelIcon: v2MessagesControllerUploadChannelIcon, v2MessagesControllerGetChannel: v2MessagesControllerGetChannel, v2MessagesControllerUpdateChannel: v2MessagesControllerUpdateChannel, v2MessagesControllerDeleteChannel: v2MessagesControllerDeleteChannel, v2MessagesControllerGetMessages: v2MessagesControllerGetMessages, v2MessagesControllerSendMessage: v2MessagesControllerSendMessage, v2SearchControllerSearchMembers: v2SearchControllerSearchMembers, v2SearchControllerSearchMessages: v2SearchControllerSearchMessages, v2ApiTokensControllerGetTokens: v2ApiTokensControllerGetTokens, v2ApiTokensControllerCreateToken: v2ApiTokensControllerCreateToken, v2ApiTokensControllerDeleteToken: v2ApiTokensControllerDeleteToken, v2ApiTokensControllerRotateToken: v2ApiTokensControllerRotateToken, v2WebhooksControllerGetWebhooks: v2WebhooksControllerGetWebhooks, v2WebhooksControllerCreateWebhook: v2WebhooksControllerCreateWebhook, v2WebhooksControllerGetWebhook: v2WebhooksControllerGetWebhook, v2WebhooksControllerUpdateWebhook: v2WebhooksControllerUpdateWebhook, v2WebhooksControllerDeleteWebhook: v2WebhooksControllerDeleteWebhook, v2ThreadsControllerGetThreads: v2ThreadsControllerGetThreads, v2ThreadsControllerGetThreadMessages: v2ThreadsControllerGetThreadMessages, v2ThreadsControllerGetThreadByContext: v2ThreadsControllerGetThreadByContext, v2MessageActionsControllerHandleAction: v2MessageActionsControllerHandleAction, v2DepartmentsControllerGetDepartments: v2DepartmentsControllerGetDepartments, v2DepartmentsControllerCreateDepartment: v2DepartmentsControllerCreateDepartment, v2DepartmentsControllerGetDepartment: v2DepartmentsControllerGetDepartment, v2DepartmentsControllerUpdateDepartment: v2DepartmentsControllerUpdateDepartment, v2DepartmentsControllerDeleteDepartment: v2DepartmentsControllerDeleteDepartment, v2TeamsControllerGetTeams: v2TeamsControllerGetTeams, v2TeamsControllerCreateTeam: v2TeamsControllerCreateTeam, v2TeamsControllerGetTeam: v2TeamsControllerGetTeam, v2TeamsControllerUpdateTeam: v2TeamsControllerUpdateTeam, v2TeamsControllerDeleteTeam: v2TeamsControllerDeleteTeam, v2AnnouncementsControllerGetAnnouncements: v2AnnouncementsControllerGetAnnouncements, v2AnnouncementsControllerCreateAnnouncement: v2AnnouncementsControllerCreateAnnouncement, v2AnnouncementsControllerGetAnnouncement: v2AnnouncementsControllerGetAnnouncement, v2AnnouncementsControllerUpdateAnnouncement: v2AnnouncementsControllerUpdateAnnouncement, v2AnnouncementsControllerDeleteAnnouncement: v2AnnouncementsControllerDeleteAnnouncement, v2OAuthControllerGetToken: v2OAuthControllerGetToken, v2ApplicationsControllerCreateApplication: v2ApplicationsControllerCreateApplication, v2ApplicationsControllerGetApplications: v2ApplicationsControllerGetApplications, v2ApplicationsControllerGetApplication: v2ApplicationsControllerGetApplication, v2ApplicationsControllerUpdateApplication: v2ApplicationsControllerUpdateApplication, v2ApplicationsControllerDeleteApplication: v2ApplicationsControllerDeleteApplication, v2ApplicationsControllerResetBotToken: v2ApplicationsControllerResetBotToken, v2ApplicationsControllerInstallBot: v2ApplicationsControllerInstallBot, v2ContactControllerSubmitContactForm: v2ContactControllerSubmitContactForm, provisioningControllerProvisionWorkspace: provisioningControllerProvisionWorkspace, organizationsControllerGetOrganizationWorkspaces: organizationsControllerGetOrganizationWorkspaces, organizationsControllerGetOrganization: organizationsControllerGetOrganization, organizationsControllerUpdateOrganization: organizationsControllerUpdateOrganization, integrationsControllerHandlePlaneWebhook: integrationsControllerHandlePlaneWebhook, integrationsControllerHandleHulyWebhook: integrationsControllerHandleHulyWebhook, integrationsControllerGetStats: integrationsControllerGetStats, integrationsControllerGetWebhooks: integrationsControllerGetWebhooks, integrationsControllerCreateWebhook: integrationsControllerCreateWebhook, integrationsControllerUpdateWebhook: integrationsControllerUpdateWebhook, integrationsControllerDeleteWebhook: integrationsControllerDeleteWebhook, integrationsControllerGetWebhookLogs: integrationsControllerGetWebhookLogs, integrationsControllerGetApiKeys: integrationsControllerGetApiKeys, integrationsControllerUpdateApiKey: integrationsControllerUpdateApiKey, integrationsControllerDeleteApiKey: integrationsControllerDeleteApiKey, workspaceIntegrationsControllerGetWorkspaceIntegrations: workspaceIntegrationsControllerGetWorkspaceIntegrations, workspaceIntegrationsControllerCreateWorkspaceIntegration: workspaceIntegrationsControllerCreateWorkspaceIntegration, workspaceIntegrationsControllerGetWorkspaceIntegration: workspaceIntegrationsControllerGetWorkspaceIntegration, workspaceIntegrationsControllerUpdateWorkspaceIntegration: workspaceIntegrationsControllerUpdateWorkspaceIntegration, workspaceIntegrationsControllerDeleteWorkspaceIntegration: workspaceIntegrationsControllerDeleteWorkspaceIntegration, workspaceIntegrationsControllerTestWorkspaceIntegration: workspaceIntegrationsControllerTestWorkspaceIntegration, workspaceIntegrationsControllerGetWorkspaceWebhooks: workspaceIntegrationsControllerGetWorkspaceWebhooks, workspaceIntegrationsControllerCreateWorkspaceWebhook: workspaceIntegrationsControllerCreateWorkspaceWebhook, notificationsControllerGetNotifications: notificationsControllerGetNotifications, notificationsControllerMarkAllRead: notificationsControllerMarkAllRead, notificationsControllerGetWorkspaceSettings: notificationsControllerGetWorkspaceSettings, notificationsControllerUpdateWorkspaceSettings: notificationsControllerUpdateWorkspaceSettings, notificationsControllerGetChannelSettings: notificationsControllerGetChannelSettings, notificationsControllerUpdateChannelSettings: notificationsControllerUpdateChannelSettings, notificationsControllerUpdateNotification: notificationsControllerUpdateNotification, notificationsControllerDeleteNotification: notificationsControllerDeleteNotification, ablyControllerGetToken: ablyControllerGetToken, storageControllerUploadFile: storageControllerUploadFile, shortUrlControllerRedirect: shortUrlControllerRedirect, v10UsersControllerGetUser: v10UsersControllerGetUser, v10UsersControllerGetMe: v10UsersControllerGetMe, v10GatewayControllerGetBotGateway: v10GatewayControllerGetBotGateway, v10GatewayControllerBotAuth: v10GatewayControllerBotAuth, v10ChannelsControllerGetChannel: v10ChannelsControllerGetChannel, v10ChannelsControllerCreateMessage: v10ChannelsControllerCreateMessage, v10ChannelsControllerGetMessages: v10ChannelsControllerGetMessages, v10ChannelsControllerUpdateMessage: v10ChannelsControllerUpdateMessage, v10ChannelsControllerDeleteMessage: v10ChannelsControllerDeleteMessage, v10GuildsControllerGetGuild: v10GuildsControllerGetGuild, v10GuildsControllerGetChannels: v10GuildsControllerGetChannels, v10GuildsControllerGetMembers: v10GuildsControllerGetMembers, v10GuildsControllerGetRoles: v10GuildsControllerGetRoles, v10GuildsControllerAddMemberRole: v10GuildsControllerAddMemberRole, v10GuildsControllerRemoveMemberRole: v10GuildsControllerRemoveMemberRole, v10ApplicationsControllerGetCommands: v10ApplicationsControllerGetCommands, v10ApplicationsControllerCreateCommand: v10ApplicationsControllerCreateCommand, v10ApplicationsControllerGetGuildCommands: v10ApplicationsControllerGetGuildCommands, v10ApplicationsControllerCreateGuildCommand: v10ApplicationsControllerCreateGuildCommand, v10InteractionsControllerHandleCallback: v10InteractionsControllerHandleCallback, v10EnterpriseControllerCreateAnnouncement: v10EnterpriseControllerCreateAnnouncement, v3OAuthControllerGetToken: v3OAuthControllerGetToken, v3WorkspacesControllerGetWorkspaces: v3WorkspacesControllerGetWorkspaces, v3WorkspacesControllerProvisionWorkspace: v3WorkspacesControllerProvisionWorkspace, v3WorkspacesControllerGetWorkspaceBySlug: v3WorkspacesControllerGetWorkspaceBySlug, v3WorkspacesControllerUpdateWorkspace: v3WorkspacesControllerUpdateWorkspace, v3WorkspacesControllerDeleteWorkspace: v3WorkspacesControllerDeleteWorkspace, v3WorkspacesControllerGetWorkspaceMembers: v3WorkspacesControllerGetWorkspaceMembers, v3WorkspacesControllerAddWorkspaceMember: v3WorkspacesControllerAddWorkspaceMember, v3WorkspacesControllerGetWorkspaceMember: v3WorkspacesControllerGetWorkspaceMember, v3WorkspacesControllerUpdateWorkspaceMember: v3WorkspacesControllerUpdateWorkspaceMember, v3WorkspacesControllerDeleteWorkspaceMember: v3WorkspacesControllerDeleteWorkspaceMember, v3WebhooksControllerGetWebhooks: v3WebhooksControllerGetWebhooks, v3WebhooksControllerCreateWebhook: v3WebhooksControllerCreateWebhook, v3WebhooksControllerGetWebhook: v3WebhooksControllerGetWebhook, v3WebhooksControllerUpdateWebhook: v3WebhooksControllerUpdateWebhook, v3WebhooksControllerDeleteWebhook: v3WebhooksControllerDeleteWebhook, v3ChannelIncomingWebhooksControllerGetChannelWebhooks: v3ChannelIncomingWebhooksControllerGetChannelWebhooks, v3ChannelIncomingWebhooksControllerCreateChannelWebhook: v3ChannelIncomingWebhooksControllerCreateChannelWebhook, v3ChannelIncomingWebhooksControllerGetChannelWebhook: v3ChannelIncomingWebhooksControllerGetChannelWebhook, v3ChannelIncomingWebhooksControllerUpdateChannelWebhook: v3ChannelIncomingWebhooksControllerUpdateChannelWebhook, v3ChannelIncomingWebhooksControllerDeleteChannelWebhook: v3ChannelIncomingWebhooksControllerDeleteChannelWebhook, v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken: v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken, v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId: v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId, invitationsControllerGetInvitations: invitationsControllerGetInvitations, invitationsControllerCreateInvitation: invitationsControllerCreateInvitation, invitationsControllerGetInvitationByToken: invitationsControllerGetInvitationByToken, invitationsControllerAcceptInvitation: invitationsControllerAcceptInvitation, callsControllerStartCall: callsControllerStartCall, callsControllerUpdateCall: callsControllerUpdateCall, callsControllerInviteToCall: callsControllerInviteToCall, callsControllerGetParticipants: callsControllerGetParticipants, callsControllerGetScheduledCalls: callsControllerGetScheduledCalls, callsControllerScheduleCall: callsControllerScheduleCall, callsControllerPlaySoundboardSound: callsControllerPlaySoundboardSound, channelsControllerGetGlobalChannels: channelsControllerGetGlobalChannels, channelsControllerCreateChannel: channelsControllerCreateChannel, channelsControllerGetMessages: channelsControllerGetMessages, channelsControllerCreateMessage: channelsControllerCreateMessage, channelsControllerUpdateMessage: channelsControllerUpdateMessage, channelsControllerDeleteMessage: channelsControllerDeleteMessage, channelsControllerMarkAsRead: channelsControllerMarkAsRead, channelsControllerAddReaction: channelsControllerAddReaction, channelsControllerRemoveReaction: channelsControllerRemoveReaction, channelsControllerShareChannel: channelsControllerShareChannel, channelsControllerCreateReply: channelsControllerCreateReply, adminControllerGetStats: adminControllerGetStats, adminControllerGetMembers: adminControllerGetMembers, adminControllerUpdateMemberRole: adminControllerUpdateMemberRole, adminControllerGetAssets: adminControllerGetAssets, adminControllerCreateAsset: adminControllerCreateAsset, adminControllerUpdateAsset: adminControllerUpdateAsset, adminControllerDeleteAsset: adminControllerDeleteAsset, adminControllerGetProfileAssets: adminControllerGetProfileAssets, adminControllerCreateProfileAsset: adminControllerCreateProfileAsset, adminControllerGetAssetStats: adminControllerGetAssetStats, adminControllerUploadFile: adminControllerUploadFile, dmsControllerGetDms: dmsControllerGetDms, dmsControllerCreateDm: dmsControllerCreateDm, dmsControllerGetDm: dmsControllerGetDm, dmsControllerDeleteDm: dmsControllerDeleteDm, dmsControllerGetMessages: dmsControllerGetMessages, dmsControllerCreateMessage: dmsControllerCreateMessage, dmsControllerUpdateMessage: dmsControllerUpdateMessage, dmsControllerDeleteMessage: dmsControllerDeleteMessage, dmsControllerMarkAsRead: dmsControllerMarkAsRead, dmsControllerAddReaction: dmsControllerAddReaction, dmsControllerRemoveReaction: dmsControllerRemoveReaction, friendsControllerGetFriends: friendsControllerGetFriends, friendsControllerGetFriendRequests: friendsControllerGetFriendRequests, friendsControllerSendFriendRequest: friendsControllerSendFriendRequest, friendsControllerUpdateFriendRequest: friendsControllerUpdateFriendRequest, friendsControllerDeleteFriendRequest: friendsControllerDeleteFriendRequest, workspacesControllerGetWorkspaces: workspacesControllerGetWorkspaces, workspacesControllerCreateWorkspace: workspacesControllerCreateWorkspace, workspacesControllerGetWorkspaceRoles: workspacesControllerGetWorkspaceRoles, workspacesControllerGetWorkspaceSlugRoles: workspacesControllerGetWorkspaceSlugRoles, workspacesControllerDiscoverWorkspaces: workspacesControllerDiscoverWorkspaces, workspacesControllerJoinWorkspace: workspacesControllerJoinWorkspace, workspacesControllerGetWorkspaceBySlug: workspacesControllerGetWorkspaceBySlug, workspacesControllerUpdateWorkspaceBySlug: workspacesControllerUpdateWorkspaceBySlug, workspacesControllerDeleteWorkspaceBySlug: workspacesControllerDeleteWorkspaceBySlug, membersControllerGetWorkspaceMembers: membersControllerGetWorkspaceMembers, membersControllerUpdateMember: membersControllerUpdateMember, membersControllerRemoveMember: membersControllerRemoveMember, channelsControllerGetWorkspaceChannels: channelsControllerGetWorkspaceChannels, channelsControllerGetChannel: channelsControllerGetChannel, channelsControllerUpdateChannel: channelsControllerUpdateChannel, channelsControllerDeleteChannel: channelsControllerDeleteChannel, departmentsControllerGetDepartments: departmentsControllerGetDepartments, departmentsControllerCreateDepartment: departmentsControllerCreateDepartment, departmentsControllerGetDepartment: departmentsControllerGetDepartment, departmentsControllerUpdateDepartment: departmentsControllerUpdateDepartment, departmentsControllerDeleteDepartment: departmentsControllerDeleteDepartment, departmentsControllerGetAnnouncements: departmentsControllerGetAnnouncements, departmentsControllerCreateAnnouncement: departmentsControllerCreateAnnouncement, teamsControllerGetTeams: teamsControllerGetTeams, teamsControllerCreateTeam: teamsControllerCreateTeam, teamsControllerAddMember: teamsControllerAddMember, teamsControllerRemoveMember: teamsControllerRemoveMember, messagesControllerGetMessages: messagesControllerGetMessages, messagesControllerCreateMessage: messagesControllerCreateMessage, messagesControllerUpdateMessage: messagesControllerUpdateMessage, messagesControllerDeleteMessage: messagesControllerDeleteMessage, messagesControllerMarkAsRead: messagesControllerMarkAsRead, messagesControllerAddReaction: messagesControllerAddReaction, messagesControllerRemoveReaction: messagesControllerRemoveReaction, messagesControllerCreateReply: messagesControllerCreateReply, emojisControllerGetEmojis: emojisControllerGetEmojis, emojisControllerCreateEmoji: emojisControllerCreateEmoji, auditLogsControllerGetAuditLogs: auditLogsControllerGetAuditLogs, auditLogsControllerExportAuditLogs: auditLogsControllerExportAuditLogs, inviteLinksControllerGetInviteLinks: inviteLinksControllerGetInviteLinks, inviteLinksControllerCreateInviteLink: inviteLinksControllerCreateInviteLink, apiTokensControllerGetApiTokens: apiTokensControllerGetApiTokens, apiTokensControllerCreateApiToken: apiTokensControllerCreateApiToken, apiTokensControllerDeleteApiToken: apiTokensControllerDeleteApiToken, webhooksControllerGetWebhooks: webhooksControllerGetWebhooks, webhooksControllerCreateWebhook: webhooksControllerCreateWebhook, webhooksControllerUpdateWebhook: webhooksControllerUpdateWebhook, webhooksControllerDeleteWebhook: webhooksControllerDeleteWebhook, callsControllerGetActiveCalls: callsControllerGetActiveCalls, searchControllerSearch: searchControllerSearch, deviceAuthControllerGenerateQR: deviceAuthControllerGenerateQR, deviceAuthControllerCheckStatus: deviceAuthControllerCheckStatus, deviceAuthControllerAuthorize: deviceAuthControllerAuthorize, deviceAuthControllerDeny: deviceAuthControllerDeny, androidAuthControllerGetProfile: androidAuthControllerGetProfile, androidAuthControllerChangePassword: androidAuthControllerChangePassword, androidAuthControllerCheckUsername: androidAuthControllerCheckUsername, androidAuthControllerLogin: androidAuthControllerLogin, androidAuthControllerSignup: androidAuthControllerSignup, androidAuthControllerGoogleLogin: androidAuthControllerGoogleLogin, androidAuthControllerGithubLogin: androidAuthControllerGithubLogin, androidAuthControllerRefresh: androidAuthControllerRefresh, scheduledNotificationsControllerGetNotifications: scheduledNotificationsControllerGetNotifications, scheduledNotificationsControllerCreateNotification: scheduledNotificationsControllerCreateNotification, scheduledNotificationsControllerUpdateNotification: scheduledNotificationsControllerUpdateNotification, scheduledNotificationsControllerDeleteNotification: scheduledNotificationsControllerDeleteNotification, assetsControllerGetEligibleAssets: assetsControllerGetEligibleAssets, supportControllerCreateTicket: supportControllerCreateTicket, supportControllerGetTickets: supportControllerGetTickets, supportControllerStartLiveChat: supportControllerStartLiveChat, supportControllerEndLiveChat: supportControllerEndLiveChat, supportControllerUpdateTicketStatus: supportControllerUpdateTicketStatus, supportControllerAssignTicket: supportControllerAssignTicket, supportControllerCreateCustomerProfile: supportControllerCreateCustomerProfile, supportControllerGetCustomerProfiles: supportControllerGetCustomerProfiles };
|
|
2050
|
+
};
|