@scryme/chat 2.57.1 → 2.71.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/dist/generated/v3-client.d.ts +1705 -3150
- package/dist/generated/v3-client.js +1218 -2354
- package/dist/generated/v3-server.d.ts +222 -587
- package/dist/generated/v3-server.js +329 -754
- package/package.json +1 -1
- package/src/generated/v3-client.ts +2873 -5694
- package/src/generated/v3-server.ts +819 -1831
|
@@ -126,36 +126,6 @@ export var StartCallDtoType = {
|
|
|
126
126
|
video: 'video',
|
|
127
127
|
};
|
|
128
128
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
129
|
-
export var V3UpdateMemberRoleDtoRole = {
|
|
130
|
-
owner: 'owner',
|
|
131
|
-
admin: 'admin',
|
|
132
|
-
moderator: 'moderator',
|
|
133
|
-
member: 'member',
|
|
134
|
-
guest: 'guest',
|
|
135
|
-
};
|
|
136
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
137
|
-
export var V3ProvisionWorkspaceDtoInitialMembersItemRole = {
|
|
138
|
-
admin: 'admin',
|
|
139
|
-
member: 'member',
|
|
140
|
-
};
|
|
141
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
142
|
-
export var V3TokenRequestDtoGrantType = {
|
|
143
|
-
client_credentials: 'client_credentials',
|
|
144
|
-
};
|
|
145
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
146
|
-
export var ChannelSettingsDtoPreference = {
|
|
147
|
-
all: 'all',
|
|
148
|
-
mentions: 'mentions',
|
|
149
|
-
none: 'none',
|
|
150
|
-
default: 'default',
|
|
151
|
-
};
|
|
152
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
153
|
-
export var WorkspaceSettingsDtoPreference = {
|
|
154
|
-
all: 'all',
|
|
155
|
-
mentions: 'mentions',
|
|
156
|
-
none: 'none',
|
|
157
|
-
};
|
|
158
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
159
129
|
export var CreateIntegrationDtoService = {
|
|
160
130
|
slack: 'slack',
|
|
161
131
|
github: 'github',
|
|
@@ -172,57 +142,34 @@ export var CreateIntegrationDtoService = {
|
|
|
172
142
|
huly: 'huly',
|
|
173
143
|
};
|
|
174
144
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
175
|
-
export var
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
export var TokenRequestDtoGrantType = {
|
|
181
|
-
client_credentials: 'client_credentials',
|
|
182
|
-
};
|
|
183
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
184
|
-
export var UpdateAnnouncementDtoPriority = {
|
|
185
|
-
low: 'low',
|
|
186
|
-
normal: 'normal',
|
|
187
|
-
high: 'high',
|
|
188
|
-
urgent: 'urgent',
|
|
145
|
+
export var ChannelSettingsDtoPreference = {
|
|
146
|
+
all: 'all',
|
|
147
|
+
mentions: 'mentions',
|
|
148
|
+
none: 'none',
|
|
149
|
+
default: 'default',
|
|
189
150
|
};
|
|
190
151
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
191
|
-
export var
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
urgent: 'urgent',
|
|
152
|
+
export var WorkspaceSettingsDtoPreference = {
|
|
153
|
+
all: 'all',
|
|
154
|
+
mentions: 'mentions',
|
|
155
|
+
none: 'none',
|
|
196
156
|
};
|
|
197
157
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
198
|
-
export var
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
'write:teams': 'write:teams',
|
|
205
|
-
'read:announcements': 'read:announcements',
|
|
206
|
-
'write:announcements': 'write:announcements',
|
|
207
|
-
'read:channels': 'read:channels',
|
|
208
|
-
'write:channels': 'write:channels',
|
|
209
|
-
'send:messages': 'send:messages',
|
|
210
|
-
'read:messages': 'read:messages',
|
|
211
|
-
'read:threads': 'read:threads',
|
|
212
|
-
'read:webhooks': 'read:webhooks',
|
|
213
|
-
'write:webhooks': 'write:webhooks',
|
|
214
|
-
'read:tokens': 'read:tokens',
|
|
215
|
-
'write:tokens': 'write:tokens',
|
|
158
|
+
export var V3UpdateMemberRoleDtoRole = {
|
|
159
|
+
owner: 'owner',
|
|
160
|
+
admin: 'admin',
|
|
161
|
+
moderator: 'moderator',
|
|
162
|
+
member: 'member',
|
|
163
|
+
guest: 'guest',
|
|
216
164
|
};
|
|
217
165
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
218
|
-
export var
|
|
219
|
-
|
|
220
|
-
|
|
166
|
+
export var V3ProvisionWorkspaceDtoInitialMembersItemRole = {
|
|
167
|
+
admin: 'admin',
|
|
168
|
+
member: 'member',
|
|
221
169
|
};
|
|
222
170
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
223
|
-
export var
|
|
224
|
-
|
|
225
|
-
private: 'private',
|
|
171
|
+
export var V3TokenRequestDtoGrantType = {
|
|
172
|
+
client_credentials: 'client_credentials',
|
|
226
173
|
};
|
|
227
174
|
/**
|
|
228
175
|
* @summary Check health
|
|
@@ -311,6 +258,64 @@ export var useAppControllerGetRealtimeConfig = function (options) {
|
|
|
311
258
|
query.queryKey = queryOptions.queryKey;
|
|
312
259
|
return query;
|
|
313
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
* @summary Get link preview metadata for a URL
|
|
263
|
+
*/
|
|
264
|
+
export var appControllerGetLinkPreview = function (params, options, signal) {
|
|
265
|
+
return customInstance({ url: "/api/link-preview", method: 'GET', params: params, signal: signal
|
|
266
|
+
}, options);
|
|
267
|
+
};
|
|
268
|
+
export var getAppControllerGetLinkPreviewQueryKey = function (params) {
|
|
269
|
+
return __spreadArray(["/api/link-preview"], (params ? [params] : []), true);
|
|
270
|
+
};
|
|
271
|
+
export var getAppControllerGetLinkPreviewQueryOptions = function (params, options) {
|
|
272
|
+
var _a;
|
|
273
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
274
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAppControllerGetLinkPreviewQueryKey(params);
|
|
275
|
+
var queryFn = function (_a) {
|
|
276
|
+
var signal = _a.signal;
|
|
277
|
+
return appControllerGetLinkPreview(params, requestOptions, signal);
|
|
278
|
+
};
|
|
279
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* @summary Get link preview metadata for a URL
|
|
283
|
+
*/
|
|
284
|
+
export var useAppControllerGetLinkPreview = function (params, options) {
|
|
285
|
+
var queryOptions = getAppControllerGetLinkPreviewQueryOptions(params, options);
|
|
286
|
+
var query = useQuery(queryOptions);
|
|
287
|
+
query.queryKey = queryOptions.queryKey;
|
|
288
|
+
return query;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* @summary Get all users
|
|
292
|
+
*/
|
|
293
|
+
export var usersControllerGetUsers = function (options, signal) {
|
|
294
|
+
return customInstance({ url: "/api/users", method: 'GET', signal: signal
|
|
295
|
+
}, options);
|
|
296
|
+
};
|
|
297
|
+
export var getUsersControllerGetUsersQueryKey = function () {
|
|
298
|
+
return ["/api/users"];
|
|
299
|
+
};
|
|
300
|
+
export var getUsersControllerGetUsersQueryOptions = function (options) {
|
|
301
|
+
var _a;
|
|
302
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
303
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUsersControllerGetUsersQueryKey();
|
|
304
|
+
var queryFn = function (_a) {
|
|
305
|
+
var signal = _a.signal;
|
|
306
|
+
return usersControllerGetUsers(requestOptions, signal);
|
|
307
|
+
};
|
|
308
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* @summary Get all users
|
|
312
|
+
*/
|
|
313
|
+
export var useUsersControllerGetUsers = function (options) {
|
|
314
|
+
var queryOptions = getUsersControllerGetUsersQueryOptions(options);
|
|
315
|
+
var query = useQuery(queryOptions);
|
|
316
|
+
query.queryKey = queryOptions.queryKey;
|
|
317
|
+
return query;
|
|
318
|
+
};
|
|
314
319
|
/**
|
|
315
320
|
* @summary Search for users by username or name
|
|
316
321
|
*/
|
|
@@ -369,6 +374,26 @@ export var useUsersControllerGetMe = function (options) {
|
|
|
369
374
|
query.queryKey = queryOptions.queryKey;
|
|
370
375
|
return query;
|
|
371
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
* @summary Update current user profile
|
|
379
|
+
*/
|
|
380
|
+
export var usersControllerPatchMe = function (options) {
|
|
381
|
+
return customInstance({ url: "/api/users/me", method: 'PATCH' }, options);
|
|
382
|
+
};
|
|
383
|
+
export var getUsersControllerPatchMeMutationOptions = function (options) {
|
|
384
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
385
|
+
var mutationFn = function () {
|
|
386
|
+
return usersControllerPatchMe(requestOptions);
|
|
387
|
+
};
|
|
388
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* @summary Update current user profile
|
|
392
|
+
*/
|
|
393
|
+
export var useUsersControllerPatchMe = function (options) {
|
|
394
|
+
var mutationOptions = getUsersControllerPatchMeMutationOptions(options);
|
|
395
|
+
return useMutation(mutationOptions);
|
|
396
|
+
};
|
|
372
397
|
/**
|
|
373
398
|
* @summary Update current user profile
|
|
374
399
|
*/
|
|
@@ -418,6 +443,27 @@ export var useUsersControllerGetUser = function (id, options) {
|
|
|
418
443
|
query.queryKey = queryOptions.queryKey;
|
|
419
444
|
return query;
|
|
420
445
|
};
|
|
446
|
+
/**
|
|
447
|
+
* @summary Update user profile by ID
|
|
448
|
+
*/
|
|
449
|
+
export var usersControllerPatchUser = function (id, options) {
|
|
450
|
+
return customInstance({ url: "/api/users/".concat(id), method: 'PATCH' }, options);
|
|
451
|
+
};
|
|
452
|
+
export var getUsersControllerPatchUserMutationOptions = function (options) {
|
|
453
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
454
|
+
var mutationFn = function (props) {
|
|
455
|
+
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
456
|
+
return usersControllerPatchUser(id, requestOptions);
|
|
457
|
+
};
|
|
458
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* @summary Update user profile by ID
|
|
462
|
+
*/
|
|
463
|
+
export var useUsersControllerPatchUser = function (options) {
|
|
464
|
+
var mutationOptions = getUsersControllerPatchUserMutationOptions(options);
|
|
465
|
+
return useMutation(mutationOptions);
|
|
466
|
+
};
|
|
421
467
|
/**
|
|
422
468
|
* @summary Get social profile between current user and target user
|
|
423
469
|
*/
|
|
@@ -489,6 +535,26 @@ export var useUsersControllerUnblockUser = function (options) {
|
|
|
489
535
|
var mutationOptions = getUsersControllerUnblockUserMutationOptions(options);
|
|
490
536
|
return useMutation(mutationOptions);
|
|
491
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
* @summary Update current user status
|
|
540
|
+
*/
|
|
541
|
+
export var usersControllerUpdateMyStatus = function (options) {
|
|
542
|
+
return customInstance({ url: "/api/users/me/status", method: 'PATCH' }, options);
|
|
543
|
+
};
|
|
544
|
+
export var getUsersControllerUpdateMyStatusMutationOptions = function (options) {
|
|
545
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
546
|
+
var mutationFn = function () {
|
|
547
|
+
return usersControllerUpdateMyStatus(requestOptions);
|
|
548
|
+
};
|
|
549
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* @summary Update current user status
|
|
553
|
+
*/
|
|
554
|
+
export var useUsersControllerUpdateMyStatus = function (options) {
|
|
555
|
+
var mutationOptions = getUsersControllerUpdateMyStatusMutationOptions(options);
|
|
556
|
+
return useMutation(mutationOptions);
|
|
557
|
+
};
|
|
492
558
|
/**
|
|
493
559
|
* @summary Register a device token for push notifications
|
|
494
560
|
*/
|
|
@@ -563,3357 +629,2084 @@ export var useUsersControllerDeleteDeviceToken = function (options) {
|
|
|
563
629
|
var mutationOptions = getUsersControllerDeleteDeviceTokenMutationOptions(options);
|
|
564
630
|
return useMutation(mutationOptions);
|
|
565
631
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
* @summary List all workspace members
|
|
569
|
-
*/
|
|
570
|
-
export var v2WorkspacesControllerGetMembers = function (slug, options, signal) {
|
|
571
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members"), method: 'GET', signal: signal
|
|
632
|
+
export var v10UsersControllerGetUser = function (id, options, signal) {
|
|
633
|
+
return customInstance({ url: "/api/bot/v10/users/".concat(id), method: 'GET', signal: signal
|
|
572
634
|
}, options);
|
|
573
635
|
};
|
|
574
|
-
export var
|
|
575
|
-
return ["/api/
|
|
636
|
+
export var getV10UsersControllerGetUserQueryKey = function (id) {
|
|
637
|
+
return ["/api/bot/v10/users/".concat(id)];
|
|
576
638
|
};
|
|
577
|
-
export var
|
|
639
|
+
export var getV10UsersControllerGetUserQueryOptions = function (id, options) {
|
|
578
640
|
var _a;
|
|
579
641
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
580
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
642
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10UsersControllerGetUserQueryKey(id);
|
|
581
643
|
var queryFn = function (_a) {
|
|
582
644
|
var signal = _a.signal;
|
|
583
|
-
return
|
|
645
|
+
return v10UsersControllerGetUser(id, requestOptions, signal);
|
|
584
646
|
};
|
|
585
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
647
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
586
648
|
};
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
*/
|
|
590
|
-
export var useV2WorkspacesControllerGetMembers = function (slug, options) {
|
|
591
|
-
var queryOptions = getV2WorkspacesControllerGetMembersQueryOptions(slug, options);
|
|
649
|
+
export var useV10UsersControllerGetUser = function (id, options) {
|
|
650
|
+
var queryOptions = getV10UsersControllerGetUserQueryOptions(id, options);
|
|
592
651
|
var query = useQuery(queryOptions);
|
|
593
652
|
query.queryKey = queryOptions.queryKey;
|
|
594
653
|
return query;
|
|
595
654
|
};
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
*/
|
|
600
|
-
export var v2WorkspacesControllerAddMember = function (slug, addMemberDto, options) {
|
|
601
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members"), method: 'POST',
|
|
602
|
-
headers: { 'Content-Type': 'application/json', },
|
|
603
|
-
data: addMemberDto }, options);
|
|
655
|
+
export var v10UsersControllerGetMe = function (options, signal) {
|
|
656
|
+
return customInstance({ url: "/api/bot/v10/users/@me", method: 'GET', signal: signal
|
|
657
|
+
}, options);
|
|
604
658
|
};
|
|
605
|
-
export var
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
659
|
+
export var getV10UsersControllerGetMeQueryKey = function () {
|
|
660
|
+
return ["/api/bot/v10/users/@me"];
|
|
661
|
+
};
|
|
662
|
+
export var getV10UsersControllerGetMeQueryOptions = function (options) {
|
|
663
|
+
var _a;
|
|
664
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
665
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10UsersControllerGetMeQueryKey();
|
|
666
|
+
var queryFn = function (_a) {
|
|
667
|
+
var signal = _a.signal;
|
|
668
|
+
return v10UsersControllerGetMe(requestOptions, signal);
|
|
610
669
|
};
|
|
611
|
-
return __assign({
|
|
670
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
612
671
|
};
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
return useMutation(mutationOptions);
|
|
672
|
+
export var useV10UsersControllerGetMe = function (options) {
|
|
673
|
+
var queryOptions = getV10UsersControllerGetMeQueryOptions(options);
|
|
674
|
+
var query = useQuery(queryOptions);
|
|
675
|
+
query.queryKey = queryOptions.queryKey;
|
|
676
|
+
return query;
|
|
619
677
|
};
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
* @summary Get details of a specific workspace member
|
|
623
|
-
*/
|
|
624
|
-
export var v2WorkspacesControllerGetMember = function (slug, userId, options, signal) {
|
|
625
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members/").concat(userId), method: 'GET', signal: signal
|
|
678
|
+
export var v10GatewayControllerGetBotGateway = function (options, signal) {
|
|
679
|
+
return customInstance({ url: "/api/bot/v10/gateway/bot", method: 'GET', signal: signal
|
|
626
680
|
}, options);
|
|
627
681
|
};
|
|
628
|
-
export var
|
|
629
|
-
return ["/api/
|
|
682
|
+
export var getV10GatewayControllerGetBotGatewayQueryKey = function () {
|
|
683
|
+
return ["/api/bot/v10/gateway/bot"];
|
|
630
684
|
};
|
|
631
|
-
export var
|
|
685
|
+
export var getV10GatewayControllerGetBotGatewayQueryOptions = function (options) {
|
|
632
686
|
var _a;
|
|
633
687
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
634
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
688
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GatewayControllerGetBotGatewayQueryKey();
|
|
635
689
|
var queryFn = function (_a) {
|
|
636
690
|
var signal = _a.signal;
|
|
637
|
-
return
|
|
691
|
+
return v10GatewayControllerGetBotGateway(requestOptions, signal);
|
|
638
692
|
};
|
|
639
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn
|
|
693
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
640
694
|
};
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
*/
|
|
644
|
-
export var useV2WorkspacesControllerGetMember = function (slug, userId, options) {
|
|
645
|
-
var queryOptions = getV2WorkspacesControllerGetMemberQueryOptions(slug, userId, options);
|
|
695
|
+
export var useV10GatewayControllerGetBotGateway = function (options) {
|
|
696
|
+
var queryOptions = getV10GatewayControllerGetBotGatewayQueryOptions(options);
|
|
646
697
|
var query = useQuery(queryOptions);
|
|
647
698
|
query.queryKey = queryOptions.queryKey;
|
|
648
699
|
return query;
|
|
649
700
|
};
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
* @summary Remove a member from the workspace
|
|
653
|
-
*/
|
|
654
|
-
export var v2WorkspacesControllerRemoveMember = function (slug, userId, options) {
|
|
655
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/members/").concat(userId), method: 'DELETE' }, options);
|
|
701
|
+
export var v10GatewayControllerBotAuth = function (options) {
|
|
702
|
+
return customInstance({ url: "/api/bot/v10/gateway/auth", method: 'POST' }, options);
|
|
656
703
|
};
|
|
657
|
-
export var
|
|
704
|
+
export var getV10GatewayControllerBotAuthMutationOptions = function (options) {
|
|
658
705
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
659
|
-
var mutationFn = function (
|
|
660
|
-
|
|
661
|
-
return v2WorkspacesControllerRemoveMember(slug, userId, requestOptions);
|
|
706
|
+
var mutationFn = function () {
|
|
707
|
+
return v10GatewayControllerBotAuth(requestOptions);
|
|
662
708
|
};
|
|
663
709
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
664
710
|
};
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
*/
|
|
668
|
-
export var useV2WorkspacesControllerRemoveMember = function (options) {
|
|
669
|
-
var mutationOptions = getV2WorkspacesControllerRemoveMemberMutationOptions(options);
|
|
711
|
+
export var useV10GatewayControllerBotAuth = function (options) {
|
|
712
|
+
var mutationOptions = getV10GatewayControllerBotAuthMutationOptions(options);
|
|
670
713
|
return useMutation(mutationOptions);
|
|
671
714
|
};
|
|
672
715
|
/**
|
|
673
|
-
*
|
|
674
|
-
* @summary List all channels in the workspace
|
|
716
|
+
* @summary Get channel details
|
|
675
717
|
*/
|
|
676
|
-
export var
|
|
677
|
-
return customInstance({ url: "/api/
|
|
718
|
+
export var v10ChannelsControllerGetChannel = function (id, options, signal) {
|
|
719
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id), method: 'GET', signal: signal
|
|
678
720
|
}, options);
|
|
679
721
|
};
|
|
680
|
-
export var
|
|
681
|
-
return ["/api/
|
|
722
|
+
export var getV10ChannelsControllerGetChannelQueryKey = function (id) {
|
|
723
|
+
return ["/api/bot/v10/channels/".concat(id)];
|
|
682
724
|
};
|
|
683
|
-
export var
|
|
725
|
+
export var getV10ChannelsControllerGetChannelQueryOptions = function (id, options) {
|
|
684
726
|
var _a;
|
|
685
727
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
686
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
728
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ChannelsControllerGetChannelQueryKey(id);
|
|
687
729
|
var queryFn = function (_a) {
|
|
688
730
|
var signal = _a.signal;
|
|
689
|
-
return
|
|
731
|
+
return v10ChannelsControllerGetChannel(id, requestOptions, signal);
|
|
690
732
|
};
|
|
691
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
733
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
692
734
|
};
|
|
693
735
|
/**
|
|
694
|
-
* @summary
|
|
736
|
+
* @summary Get channel details
|
|
695
737
|
*/
|
|
696
|
-
export var
|
|
697
|
-
var queryOptions =
|
|
738
|
+
export var useV10ChannelsControllerGetChannel = function (id, options) {
|
|
739
|
+
var queryOptions = getV10ChannelsControllerGetChannelQueryOptions(id, options);
|
|
698
740
|
var query = useQuery(queryOptions);
|
|
699
741
|
query.queryKey = queryOptions.queryKey;
|
|
700
742
|
return query;
|
|
701
743
|
};
|
|
702
744
|
/**
|
|
703
|
-
*
|
|
704
|
-
* @summary Create a new channel
|
|
745
|
+
* @summary Send a message to a channel
|
|
705
746
|
*/
|
|
706
|
-
export var
|
|
707
|
-
return customInstance({ url: "/api/
|
|
708
|
-
headers: { 'Content-Type': 'application/json', },
|
|
709
|
-
data: createChannelDto }, options);
|
|
747
|
+
export var v10ChannelsControllerCreateMessage = function (id, options) {
|
|
748
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages"), method: 'POST' }, options);
|
|
710
749
|
};
|
|
711
|
-
export var
|
|
750
|
+
export var getV10ChannelsControllerCreateMessageMutationOptions = function (options) {
|
|
712
751
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
713
752
|
var mutationFn = function (props) {
|
|
714
|
-
var
|
|
715
|
-
return
|
|
753
|
+
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
754
|
+
return v10ChannelsControllerCreateMessage(id, requestOptions);
|
|
716
755
|
};
|
|
717
756
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
718
757
|
};
|
|
719
758
|
/**
|
|
720
|
-
* @summary
|
|
759
|
+
* @summary Send a message to a channel
|
|
721
760
|
*/
|
|
722
|
-
export var
|
|
723
|
-
var mutationOptions =
|
|
761
|
+
export var useV10ChannelsControllerCreateMessage = function (options) {
|
|
762
|
+
var mutationOptions = getV10ChannelsControllerCreateMessageMutationOptions(options);
|
|
724
763
|
return useMutation(mutationOptions);
|
|
725
764
|
};
|
|
726
765
|
/**
|
|
727
|
-
*
|
|
728
|
-
* @summary Upload a channel icon
|
|
766
|
+
* @summary Get messages from a channel
|
|
729
767
|
*/
|
|
730
|
-
export var
|
|
731
|
-
|
|
732
|
-
if (v2MessagesControllerUploadChannelIconBody.file !== undefined) {
|
|
733
|
-
formData.append('file', v2MessagesControllerUploadChannelIconBody.file);
|
|
734
|
-
}
|
|
735
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels/").concat(channelId, "/icon"), method: 'POST',
|
|
736
|
-
headers: { 'Content-Type': 'multipart/form-data', },
|
|
737
|
-
data: formData }, options);
|
|
738
|
-
};
|
|
739
|
-
export var getV2MessagesControllerUploadChannelIconMutationOptions = function (options) {
|
|
740
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
741
|
-
var mutationFn = function (props) {
|
|
742
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, data = _a.data;
|
|
743
|
-
return v2MessagesControllerUploadChannelIcon(slug, channelId, data, requestOptions);
|
|
744
|
-
};
|
|
745
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
746
|
-
};
|
|
747
|
-
/**
|
|
748
|
-
* @summary Upload a channel icon
|
|
749
|
-
*/
|
|
750
|
-
export var useV2MessagesControllerUploadChannelIcon = function (options) {
|
|
751
|
-
var mutationOptions = getV2MessagesControllerUploadChannelIconMutationOptions(options);
|
|
752
|
-
return useMutation(mutationOptions);
|
|
753
|
-
};
|
|
754
|
-
/**
|
|
755
|
-
* Requires channels:read scope.
|
|
756
|
-
* @summary Get details of a specific channel
|
|
757
|
-
*/
|
|
758
|
-
export var v2MessagesControllerGetChannel = function (slug, channelId, options, signal) {
|
|
759
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/channels/").concat(channelId), method: 'GET', signal: signal
|
|
768
|
+
export var v10ChannelsControllerGetMessages = function (id, params, options, signal) {
|
|
769
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages"), method: 'GET', params: params, signal: signal
|
|
760
770
|
}, options);
|
|
761
771
|
};
|
|
762
|
-
export var
|
|
763
|
-
return ["/api/
|
|
772
|
+
export var getV10ChannelsControllerGetMessagesQueryKey = function (id, params) {
|
|
773
|
+
return __spreadArray(["/api/bot/v10/channels/".concat(id, "/messages")], (params ? [params] : []), true);
|
|
764
774
|
};
|
|
765
|
-
export var
|
|
775
|
+
export var getV10ChannelsControllerGetMessagesQueryOptions = function (id, params, options) {
|
|
766
776
|
var _a;
|
|
767
777
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
768
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
778
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ChannelsControllerGetMessagesQueryKey(id, params);
|
|
769
779
|
var queryFn = function (_a) {
|
|
770
780
|
var signal = _a.signal;
|
|
771
|
-
return
|
|
781
|
+
return v10ChannelsControllerGetMessages(id, params, requestOptions, signal);
|
|
772
782
|
};
|
|
773
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
783
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
774
784
|
};
|
|
775
785
|
/**
|
|
776
|
-
* @summary Get
|
|
786
|
+
* @summary Get messages from a channel
|
|
777
787
|
*/
|
|
778
|
-
export var
|
|
779
|
-
var queryOptions =
|
|
788
|
+
export var useV10ChannelsControllerGetMessages = function (id, params, options) {
|
|
789
|
+
var queryOptions = getV10ChannelsControllerGetMessagesQueryOptions(id, params, options);
|
|
780
790
|
var query = useQuery(queryOptions);
|
|
781
791
|
query.queryKey = queryOptions.queryKey;
|
|
782
792
|
return query;
|
|
783
793
|
};
|
|
784
794
|
/**
|
|
785
|
-
*
|
|
786
|
-
* @summary Update a channel
|
|
795
|
+
* @summary Update a message
|
|
787
796
|
*/
|
|
788
|
-
export var
|
|
789
|
-
return customInstance({ url: "/api/
|
|
790
|
-
headers: { 'Content-Type': 'application/json', },
|
|
791
|
-
data: updateChannelDto }, options);
|
|
797
|
+
export var v10ChannelsControllerUpdateMessage = function (id, messageId, options) {
|
|
798
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages/").concat(messageId), method: 'PATCH' }, options);
|
|
792
799
|
};
|
|
793
|
-
export var
|
|
800
|
+
export var getV10ChannelsControllerUpdateMessageMutationOptions = function (options) {
|
|
794
801
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
795
802
|
var mutationFn = function (props) {
|
|
796
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
797
|
-
return
|
|
803
|
+
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, messageId = _a.messageId;
|
|
804
|
+
return v10ChannelsControllerUpdateMessage(id, messageId, requestOptions);
|
|
798
805
|
};
|
|
799
806
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
800
807
|
};
|
|
801
808
|
/**
|
|
802
|
-
* @summary Update a
|
|
809
|
+
* @summary Update a message
|
|
803
810
|
*/
|
|
804
|
-
export var
|
|
805
|
-
var mutationOptions =
|
|
811
|
+
export var useV10ChannelsControllerUpdateMessage = function (options) {
|
|
812
|
+
var mutationOptions = getV10ChannelsControllerUpdateMessageMutationOptions(options);
|
|
806
813
|
return useMutation(mutationOptions);
|
|
807
814
|
};
|
|
808
815
|
/**
|
|
809
|
-
*
|
|
810
|
-
* @summary Delete a channel
|
|
816
|
+
* @summary Delete a message
|
|
811
817
|
*/
|
|
812
|
-
export var
|
|
813
|
-
return customInstance({ url: "/api/
|
|
818
|
+
export var v10ChannelsControllerDeleteMessage = function (id, messageId, options) {
|
|
819
|
+
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages/").concat(messageId), method: 'DELETE' }, options);
|
|
814
820
|
};
|
|
815
|
-
export var
|
|
821
|
+
export var getV10ChannelsControllerDeleteMessageMutationOptions = function (options) {
|
|
816
822
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
817
823
|
var mutationFn = function (props) {
|
|
818
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
819
|
-
return
|
|
824
|
+
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, messageId = _a.messageId;
|
|
825
|
+
return v10ChannelsControllerDeleteMessage(id, messageId, requestOptions);
|
|
820
826
|
};
|
|
821
827
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
822
828
|
};
|
|
823
829
|
/**
|
|
824
|
-
* @summary Delete a
|
|
830
|
+
* @summary Delete a message
|
|
825
831
|
*/
|
|
826
|
-
export var
|
|
827
|
-
var mutationOptions =
|
|
832
|
+
export var useV10ChannelsControllerDeleteMessage = function (options) {
|
|
833
|
+
var mutationOptions = getV10ChannelsControllerDeleteMessageMutationOptions(options);
|
|
828
834
|
return useMutation(mutationOptions);
|
|
829
835
|
};
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
* @summary List messages in the workspace
|
|
833
|
-
*/
|
|
834
|
-
export var v2MessagesControllerGetMessages = function (slug, params, options, signal) {
|
|
835
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/messages"), method: 'GET', params: params, signal: signal
|
|
836
|
+
export var v10GuildsControllerGetGuild = function (guildId, options, signal) {
|
|
837
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId), method: 'GET', signal: signal
|
|
836
838
|
}, options);
|
|
837
839
|
};
|
|
838
|
-
export var
|
|
839
|
-
return
|
|
840
|
+
export var getV10GuildsControllerGetGuildQueryKey = function (guildId) {
|
|
841
|
+
return ["/api/bot/v10/guilds/".concat(guildId)];
|
|
840
842
|
};
|
|
841
|
-
export var
|
|
843
|
+
export var getV10GuildsControllerGetGuildQueryOptions = function (guildId, options) {
|
|
842
844
|
var _a;
|
|
843
845
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
844
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
846
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetGuildQueryKey(guildId);
|
|
845
847
|
var queryFn = function (_a) {
|
|
846
848
|
var signal = _a.signal;
|
|
847
|
-
return
|
|
849
|
+
return v10GuildsControllerGetGuild(guildId, requestOptions, signal);
|
|
848
850
|
};
|
|
849
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
851
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
850
852
|
};
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
*/
|
|
854
|
-
export var useV2MessagesControllerGetMessages = function (slug, params, options) {
|
|
855
|
-
var queryOptions = getV2MessagesControllerGetMessagesQueryOptions(slug, params, options);
|
|
853
|
+
export var useV10GuildsControllerGetGuild = function (guildId, options) {
|
|
854
|
+
var queryOptions = getV10GuildsControllerGetGuildQueryOptions(guildId, options);
|
|
856
855
|
var query = useQuery(queryOptions);
|
|
857
856
|
query.queryKey = queryOptions.queryKey;
|
|
858
857
|
return query;
|
|
859
858
|
};
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
Requires messages:send scope. Supports multipart/form-data for file uploads.
|
|
863
|
-
|
|
864
|
-
**M2M Behavior:**
|
|
865
|
-
- If the request is made by an M2M application, the message is sent by the app's associated bot.
|
|
866
|
-
- If no app bot exists, it falls back to the workspace's **Default Bot**.
|
|
867
|
-
- You can include `actions` to create interactive buttons that trigger webhooks.
|
|
868
|
-
|
|
869
|
-
* @summary Send a message
|
|
870
|
-
*/
|
|
871
|
-
export var v2MessagesControllerSendMessage = function (slug, sendMessageDto, options) {
|
|
872
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/messages"), method: 'POST',
|
|
873
|
-
headers: { 'Content-Type': 'application/json', },
|
|
874
|
-
data: sendMessageDto }, options);
|
|
875
|
-
};
|
|
876
|
-
export var getV2MessagesControllerSendMessageMutationOptions = function (options) {
|
|
877
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
878
|
-
var mutationFn = function (props) {
|
|
879
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
880
|
-
return v2MessagesControllerSendMessage(slug, data, requestOptions);
|
|
881
|
-
};
|
|
882
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
883
|
-
};
|
|
884
|
-
/**
|
|
885
|
-
* @summary Send a message
|
|
886
|
-
*/
|
|
887
|
-
export var useV2MessagesControllerSendMessage = function (options) {
|
|
888
|
-
var mutationOptions = getV2MessagesControllerSendMessageMutationOptions(options);
|
|
889
|
-
return useMutation(mutationOptions);
|
|
890
|
-
};
|
|
891
|
-
/**
|
|
892
|
-
* Requires members:read scope.
|
|
893
|
-
* @summary Search for members in the workspace
|
|
894
|
-
*/
|
|
895
|
-
export var v2SearchControllerSearchMembers = function (slug, params, options, signal) {
|
|
896
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/search/members"), method: 'GET', params: params, signal: signal
|
|
859
|
+
export var v10GuildsControllerGetChannels = function (guildId, options, signal) {
|
|
860
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/channels"), method: 'GET', signal: signal
|
|
897
861
|
}, options);
|
|
898
862
|
};
|
|
899
|
-
export var
|
|
900
|
-
return
|
|
863
|
+
export var getV10GuildsControllerGetChannelsQueryKey = function (guildId) {
|
|
864
|
+
return ["/api/bot/v10/guilds/".concat(guildId, "/channels")];
|
|
901
865
|
};
|
|
902
|
-
export var
|
|
866
|
+
export var getV10GuildsControllerGetChannelsQueryOptions = function (guildId, options) {
|
|
903
867
|
var _a;
|
|
904
868
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
905
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
869
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetChannelsQueryKey(guildId);
|
|
906
870
|
var queryFn = function (_a) {
|
|
907
871
|
var signal = _a.signal;
|
|
908
|
-
return
|
|
872
|
+
return v10GuildsControllerGetChannels(guildId, requestOptions, signal);
|
|
909
873
|
};
|
|
910
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
874
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
911
875
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
*/
|
|
915
|
-
export var useV2SearchControllerSearchMembers = function (slug, params, options) {
|
|
916
|
-
var queryOptions = getV2SearchControllerSearchMembersQueryOptions(slug, params, options);
|
|
876
|
+
export var useV10GuildsControllerGetChannels = function (guildId, options) {
|
|
877
|
+
var queryOptions = getV10GuildsControllerGetChannelsQueryOptions(guildId, options);
|
|
917
878
|
var query = useQuery(queryOptions);
|
|
918
879
|
query.queryKey = queryOptions.queryKey;
|
|
919
880
|
return query;
|
|
920
881
|
};
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
* @summary Search for messages in the workspace
|
|
924
|
-
*/
|
|
925
|
-
export var v2SearchControllerSearchMessages = function (slug, params, options, signal) {
|
|
926
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/search/messages"), method: 'GET', params: params, signal: signal
|
|
882
|
+
export var v10GuildsControllerGetMembers = function (guildId, options, signal) {
|
|
883
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members"), method: 'GET', signal: signal
|
|
927
884
|
}, options);
|
|
928
885
|
};
|
|
929
|
-
export var
|
|
930
|
-
return
|
|
886
|
+
export var getV10GuildsControllerGetMembersQueryKey = function (guildId) {
|
|
887
|
+
return ["/api/bot/v10/guilds/".concat(guildId, "/members")];
|
|
931
888
|
};
|
|
932
|
-
export var
|
|
889
|
+
export var getV10GuildsControllerGetMembersQueryOptions = function (guildId, options) {
|
|
933
890
|
var _a;
|
|
934
891
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
935
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
892
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetMembersQueryKey(guildId);
|
|
936
893
|
var queryFn = function (_a) {
|
|
937
894
|
var signal = _a.signal;
|
|
938
|
-
return
|
|
895
|
+
return v10GuildsControllerGetMembers(guildId, requestOptions, signal);
|
|
939
896
|
};
|
|
940
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
897
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
941
898
|
};
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
*/
|
|
945
|
-
export var useV2SearchControllerSearchMessages = function (slug, params, options) {
|
|
946
|
-
var queryOptions = getV2SearchControllerSearchMessagesQueryOptions(slug, params, options);
|
|
899
|
+
export var useV10GuildsControllerGetMembers = function (guildId, options) {
|
|
900
|
+
var queryOptions = getV10GuildsControllerGetMembersQueryOptions(guildId, options);
|
|
947
901
|
var query = useQuery(queryOptions);
|
|
948
902
|
query.queryKey = queryOptions.queryKey;
|
|
949
903
|
return query;
|
|
950
904
|
};
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
* @summary List all API tokens in the workspace
|
|
954
|
-
*/
|
|
955
|
-
export var v2ApiTokensControllerGetTokens = function (slug, options, signal) {
|
|
956
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens"), method: 'GET', signal: signal
|
|
905
|
+
export var v10GuildsControllerGetRoles = function (guildId, options, signal) {
|
|
906
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/roles"), method: 'GET', signal: signal
|
|
957
907
|
}, options);
|
|
958
908
|
};
|
|
959
|
-
export var
|
|
960
|
-
return ["/api/
|
|
909
|
+
export var getV10GuildsControllerGetRolesQueryKey = function (guildId) {
|
|
910
|
+
return ["/api/bot/v10/guilds/".concat(guildId, "/roles")];
|
|
961
911
|
};
|
|
962
|
-
export var
|
|
912
|
+
export var getV10GuildsControllerGetRolesQueryOptions = function (guildId, options) {
|
|
963
913
|
var _a;
|
|
964
914
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
965
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
915
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetRolesQueryKey(guildId);
|
|
966
916
|
var queryFn = function (_a) {
|
|
967
917
|
var signal = _a.signal;
|
|
968
|
-
return
|
|
918
|
+
return v10GuildsControllerGetRoles(guildId, requestOptions, signal);
|
|
969
919
|
};
|
|
970
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
920
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
971
921
|
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
*/
|
|
975
|
-
export var useV2ApiTokensControllerGetTokens = function (slug, options) {
|
|
976
|
-
var queryOptions = getV2ApiTokensControllerGetTokensQueryOptions(slug, options);
|
|
922
|
+
export var useV10GuildsControllerGetRoles = function (guildId, options) {
|
|
923
|
+
var queryOptions = getV10GuildsControllerGetRolesQueryOptions(guildId, options);
|
|
977
924
|
var query = useQuery(queryOptions);
|
|
978
925
|
query.queryKey = queryOptions.queryKey;
|
|
979
926
|
return query;
|
|
980
927
|
};
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
* @summary Create a new API token
|
|
984
|
-
*/
|
|
985
|
-
export var v2ApiTokensControllerCreateToken = function (slug, createTokenDto, options) {
|
|
986
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens"), method: 'POST',
|
|
987
|
-
headers: { 'Content-Type': 'application/json', },
|
|
988
|
-
data: createTokenDto }, options);
|
|
989
|
-
};
|
|
990
|
-
export var getV2ApiTokensControllerCreateTokenMutationOptions = function (options) {
|
|
991
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
992
|
-
var mutationFn = function (props) {
|
|
993
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
994
|
-
return v2ApiTokensControllerCreateToken(slug, data, requestOptions);
|
|
995
|
-
};
|
|
996
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
997
|
-
};
|
|
998
|
-
/**
|
|
999
|
-
* @summary Create a new API token
|
|
1000
|
-
*/
|
|
1001
|
-
export var useV2ApiTokensControllerCreateToken = function (options) {
|
|
1002
|
-
var mutationOptions = getV2ApiTokensControllerCreateTokenMutationOptions(options);
|
|
1003
|
-
return useMutation(mutationOptions);
|
|
1004
|
-
};
|
|
1005
|
-
/**
|
|
1006
|
-
* Requires tokens:write scope.
|
|
1007
|
-
* @summary Delete an API token
|
|
1008
|
-
*/
|
|
1009
|
-
export var v2ApiTokensControllerDeleteToken = function (slug, tokenId, options) {
|
|
1010
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens/").concat(tokenId), method: 'DELETE' }, options);
|
|
928
|
+
export var v10GuildsControllerAddMemberRole = function (guildId, userId, roleId, options) {
|
|
929
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members/").concat(userId, "/roles/").concat(roleId), method: 'PUT' }, options);
|
|
1011
930
|
};
|
|
1012
|
-
export var
|
|
931
|
+
export var getV10GuildsControllerAddMemberRoleMutationOptions = function (options) {
|
|
1013
932
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1014
933
|
var mutationFn = function (props) {
|
|
1015
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
1016
|
-
return
|
|
934
|
+
var _a = props !== null && props !== void 0 ? props : {}, guildId = _a.guildId, userId = _a.userId, roleId = _a.roleId;
|
|
935
|
+
return v10GuildsControllerAddMemberRole(guildId, userId, roleId, requestOptions);
|
|
1017
936
|
};
|
|
1018
937
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1019
938
|
};
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
*/
|
|
1023
|
-
export var useV2ApiTokensControllerDeleteToken = function (options) {
|
|
1024
|
-
var mutationOptions = getV2ApiTokensControllerDeleteTokenMutationOptions(options);
|
|
939
|
+
export var useV10GuildsControllerAddMemberRole = function (options) {
|
|
940
|
+
var mutationOptions = getV10GuildsControllerAddMemberRoleMutationOptions(options);
|
|
1025
941
|
return useMutation(mutationOptions);
|
|
1026
942
|
};
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
* @summary Rotate an API token (generate new token value)
|
|
1030
|
-
*/
|
|
1031
|
-
export var v2ApiTokensControllerRotateToken = function (slug, tokenId, options) {
|
|
1032
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/api-tokens/").concat(tokenId, "/rotate"), method: 'POST' }, options);
|
|
943
|
+
export var v10GuildsControllerRemoveMemberRole = function (guildId, userId, roleId, options) {
|
|
944
|
+
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members/").concat(userId, "/roles/").concat(roleId), method: 'DELETE' }, options);
|
|
1033
945
|
};
|
|
1034
|
-
export var
|
|
946
|
+
export var getV10GuildsControllerRemoveMemberRoleMutationOptions = function (options) {
|
|
1035
947
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1036
948
|
var mutationFn = function (props) {
|
|
1037
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
1038
|
-
return
|
|
949
|
+
var _a = props !== null && props !== void 0 ? props : {}, guildId = _a.guildId, userId = _a.userId, roleId = _a.roleId;
|
|
950
|
+
return v10GuildsControllerRemoveMemberRole(guildId, userId, roleId, requestOptions);
|
|
1039
951
|
};
|
|
1040
952
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1041
953
|
};
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
*/
|
|
1045
|
-
export var useV2ApiTokensControllerRotateToken = function (options) {
|
|
1046
|
-
var mutationOptions = getV2ApiTokensControllerRotateTokenMutationOptions(options);
|
|
954
|
+
export var useV10GuildsControllerRemoveMemberRole = function (options) {
|
|
955
|
+
var mutationOptions = getV10GuildsControllerRemoveMemberRoleMutationOptions(options);
|
|
1047
956
|
return useMutation(mutationOptions);
|
|
1048
957
|
};
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
Requires webhooks:read scope.
|
|
1052
|
-
List all webhooks configured for this workspace.
|
|
1053
|
-
|
|
1054
|
-
**Supported Events:**
|
|
1055
|
-
- `message.sent`: Triggered when a new message is sent.
|
|
1056
|
-
- `message.updated`: Triggered when a message is edited or updated by a callback.
|
|
1057
|
-
- `message.action`: Triggered when a user clicks an interactive button on a message.
|
|
1058
|
-
- `channel.created`: Triggered when a new channel is created.
|
|
1059
|
-
- `channel.updated`: Triggered when channel details change.
|
|
1060
|
-
- `member.joined`: Triggered when a new member joins the workspace.
|
|
1061
|
-
- `member.left`: Triggered when a member leaves the workspace.
|
|
1062
|
-
|
|
1063
|
-
* @summary List all webhooks in the workspace
|
|
1064
|
-
*/
|
|
1065
|
-
export var v2WebhooksControllerGetWebhooks = function (slug, options, signal) {
|
|
1066
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks"), method: 'GET', signal: signal
|
|
958
|
+
export var v10ApplicationsControllerGetCommands = function (id, options, signal) {
|
|
959
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/commands"), method: 'GET', signal: signal
|
|
1067
960
|
}, options);
|
|
1068
961
|
};
|
|
1069
|
-
export var
|
|
1070
|
-
return ["/api/
|
|
962
|
+
export var getV10ApplicationsControllerGetCommandsQueryKey = function (id) {
|
|
963
|
+
return ["/api/bot/v10/applications/".concat(id, "/commands")];
|
|
1071
964
|
};
|
|
1072
|
-
export var
|
|
965
|
+
export var getV10ApplicationsControllerGetCommandsQueryOptions = function (id, options) {
|
|
1073
966
|
var _a;
|
|
1074
967
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1075
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
968
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ApplicationsControllerGetCommandsQueryKey(id);
|
|
1076
969
|
var queryFn = function (_a) {
|
|
1077
970
|
var signal = _a.signal;
|
|
1078
|
-
return
|
|
971
|
+
return v10ApplicationsControllerGetCommands(id, requestOptions, signal);
|
|
1079
972
|
};
|
|
1080
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
973
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
1081
974
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
*/
|
|
1085
|
-
export var useV2WebhooksControllerGetWebhooks = function (slug, options) {
|
|
1086
|
-
var queryOptions = getV2WebhooksControllerGetWebhooksQueryOptions(slug, options);
|
|
975
|
+
export var useV10ApplicationsControllerGetCommands = function (id, options) {
|
|
976
|
+
var queryOptions = getV10ApplicationsControllerGetCommandsQueryOptions(id, options);
|
|
1087
977
|
var query = useQuery(queryOptions);
|
|
1088
978
|
query.queryKey = queryOptions.queryKey;
|
|
1089
979
|
return query;
|
|
1090
980
|
};
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
* @summary Create a new webhook
|
|
1094
|
-
*/
|
|
1095
|
-
export var v2WebhooksControllerCreateWebhook = function (slug, createWebhookDto, options) {
|
|
1096
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks"), method: 'POST',
|
|
1097
|
-
headers: { 'Content-Type': 'application/json', },
|
|
1098
|
-
data: createWebhookDto }, options);
|
|
981
|
+
export var v10ApplicationsControllerCreateCommand = function (id, options) {
|
|
982
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/commands"), method: 'POST' }, options);
|
|
1099
983
|
};
|
|
1100
|
-
export var
|
|
984
|
+
export var getV10ApplicationsControllerCreateCommandMutationOptions = function (options) {
|
|
1101
985
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1102
986
|
var mutationFn = function (props) {
|
|
1103
|
-
var
|
|
1104
|
-
return
|
|
987
|
+
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
988
|
+
return v10ApplicationsControllerCreateCommand(id, requestOptions);
|
|
1105
989
|
};
|
|
1106
990
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1107
991
|
};
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
*/
|
|
1111
|
-
export var useV2WebhooksControllerCreateWebhook = function (options) {
|
|
1112
|
-
var mutationOptions = getV2WebhooksControllerCreateWebhookMutationOptions(options);
|
|
992
|
+
export var useV10ApplicationsControllerCreateCommand = function (options) {
|
|
993
|
+
var mutationOptions = getV10ApplicationsControllerCreateCommandMutationOptions(options);
|
|
1113
994
|
return useMutation(mutationOptions);
|
|
1114
995
|
};
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
* @summary Get details of a specific webhook
|
|
1118
|
-
*/
|
|
1119
|
-
export var v2WebhooksControllerGetWebhook = function (slug, webhookId, options, signal) {
|
|
1120
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'GET', signal: signal
|
|
996
|
+
export var v10ApplicationsControllerGetGuildCommands = function (id, guildId, options, signal) {
|
|
997
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands"), method: 'GET', signal: signal
|
|
1121
998
|
}, options);
|
|
1122
999
|
};
|
|
1123
|
-
export var
|
|
1124
|
-
return ["/api/
|
|
1000
|
+
export var getV10ApplicationsControllerGetGuildCommandsQueryKey = function (id, guildId) {
|
|
1001
|
+
return ["/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands")];
|
|
1125
1002
|
};
|
|
1126
|
-
export var
|
|
1003
|
+
export var getV10ApplicationsControllerGetGuildCommandsQueryOptions = function (id, guildId, options) {
|
|
1127
1004
|
var _a;
|
|
1128
1005
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1129
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1006
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ApplicationsControllerGetGuildCommandsQueryKey(id, guildId);
|
|
1130
1007
|
var queryFn = function (_a) {
|
|
1131
1008
|
var signal = _a.signal;
|
|
1132
|
-
return
|
|
1009
|
+
return v10ApplicationsControllerGetGuildCommands(id, guildId, requestOptions, signal);
|
|
1133
1010
|
};
|
|
1134
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
1011
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id && guildId) }, queryOptions);
|
|
1135
1012
|
};
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
*/
|
|
1139
|
-
export var useV2WebhooksControllerGetWebhook = function (slug, webhookId, options) {
|
|
1140
|
-
var queryOptions = getV2WebhooksControllerGetWebhookQueryOptions(slug, webhookId, options);
|
|
1013
|
+
export var useV10ApplicationsControllerGetGuildCommands = function (id, guildId, options) {
|
|
1014
|
+
var queryOptions = getV10ApplicationsControllerGetGuildCommandsQueryOptions(id, guildId, options);
|
|
1141
1015
|
var query = useQuery(queryOptions);
|
|
1142
1016
|
query.queryKey = queryOptions.queryKey;
|
|
1143
1017
|
return query;
|
|
1144
1018
|
};
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
* @summary Update a webhook
|
|
1148
|
-
*/
|
|
1149
|
-
export var v2WebhooksControllerUpdateWebhook = function (slug, webhookId, updateWebhookDto, options) {
|
|
1150
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'PATCH',
|
|
1151
|
-
headers: { 'Content-Type': 'application/json', },
|
|
1152
|
-
data: updateWebhookDto }, options);
|
|
1019
|
+
export var v10ApplicationsControllerCreateGuildCommand = function (id, guildId, options) {
|
|
1020
|
+
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands"), method: 'POST' }, options);
|
|
1153
1021
|
};
|
|
1154
|
-
export var
|
|
1022
|
+
export var getV10ApplicationsControllerCreateGuildCommandMutationOptions = function (options) {
|
|
1155
1023
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1156
1024
|
var mutationFn = function (props) {
|
|
1157
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
1158
|
-
return
|
|
1025
|
+
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, guildId = _a.guildId;
|
|
1026
|
+
return v10ApplicationsControllerCreateGuildCommand(id, guildId, requestOptions);
|
|
1159
1027
|
};
|
|
1160
1028
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1161
1029
|
};
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
*/
|
|
1165
|
-
export var useV2WebhooksControllerUpdateWebhook = function (options) {
|
|
1166
|
-
var mutationOptions = getV2WebhooksControllerUpdateWebhookMutationOptions(options);
|
|
1030
|
+
export var useV10ApplicationsControllerCreateGuildCommand = function (options) {
|
|
1031
|
+
var mutationOptions = getV10ApplicationsControllerCreateGuildCommandMutationOptions(options);
|
|
1167
1032
|
return useMutation(mutationOptions);
|
|
1168
1033
|
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
* @summary Delete a webhook
|
|
1172
|
-
*/
|
|
1173
|
-
export var v2WebhooksControllerDeleteWebhook = function (slug, webhookId, options) {
|
|
1174
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
1034
|
+
export var v10InteractionsControllerHandleCallback = function (id, token, options) {
|
|
1035
|
+
return customInstance({ url: "/api/bot/v10/interactions/".concat(id, "/").concat(token, "/callback"), method: 'POST' }, options);
|
|
1175
1036
|
};
|
|
1176
|
-
export var
|
|
1037
|
+
export var getV10InteractionsControllerHandleCallbackMutationOptions = function (options) {
|
|
1177
1038
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1178
1039
|
var mutationFn = function (props) {
|
|
1179
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
1180
|
-
return
|
|
1040
|
+
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, token = _a.token;
|
|
1041
|
+
return v10InteractionsControllerHandleCallback(id, token, requestOptions);
|
|
1181
1042
|
};
|
|
1182
1043
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1183
1044
|
};
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
*/
|
|
1187
|
-
export var useV2WebhooksControllerDeleteWebhook = function (options) {
|
|
1188
|
-
var mutationOptions = getV2WebhooksControllerDeleteWebhookMutationOptions(options);
|
|
1045
|
+
export var useV10InteractionsControllerHandleCallback = function (options) {
|
|
1046
|
+
var mutationOptions = getV10InteractionsControllerHandleCallbackMutationOptions(options);
|
|
1189
1047
|
return useMutation(mutationOptions);
|
|
1190
1048
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
* @summary List all threads in the workspace
|
|
1194
|
-
*/
|
|
1195
|
-
export var v2ThreadsControllerGetThreads = function (slug, params, options, signal) {
|
|
1196
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/threads"), method: 'GET', params: params, signal: signal
|
|
1197
|
-
}, options);
|
|
1198
|
-
};
|
|
1199
|
-
export var getV2ThreadsControllerGetThreadsQueryKey = function (slug, params) {
|
|
1200
|
-
return __spreadArray(["/api/v2/workspaces/".concat(slug, "/threads")], (params ? [params] : []), true);
|
|
1049
|
+
export var v10EnterpriseControllerCreateAnnouncement = function (id, options) {
|
|
1050
|
+
return customInstance({ url: "/api/bot/v10/enterprise/departments/".concat(id, "/announcements"), method: 'POST' }, options);
|
|
1201
1051
|
};
|
|
1202
|
-
export var
|
|
1203
|
-
var _a;
|
|
1204
|
-
var
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
var signal = _a.signal;
|
|
1208
|
-
return v2ThreadsControllerGetThreads(slug, params, requestOptions, signal);
|
|
1209
|
-
};
|
|
1210
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
1211
|
-
};
|
|
1212
|
-
/**
|
|
1213
|
-
* @summary List all threads in the workspace
|
|
1214
|
-
*/
|
|
1215
|
-
export var useV2ThreadsControllerGetThreads = function (slug, params, options) {
|
|
1216
|
-
var queryOptions = getV2ThreadsControllerGetThreadsQueryOptions(slug, params, options);
|
|
1217
|
-
var query = useQuery(queryOptions);
|
|
1218
|
-
query.queryKey = queryOptions.queryKey;
|
|
1219
|
-
return query;
|
|
1220
|
-
};
|
|
1221
|
-
/**
|
|
1222
|
-
* Requires threads:read and messages:read scopes.
|
|
1223
|
-
* @summary List messages in a thread
|
|
1224
|
-
*/
|
|
1225
|
-
export var v2ThreadsControllerGetThreadMessages = function (slug, threadId, params, options, signal) {
|
|
1226
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/threads/").concat(threadId, "/messages"), method: 'GET', params: params, signal: signal
|
|
1227
|
-
}, options);
|
|
1228
|
-
};
|
|
1229
|
-
export var getV2ThreadsControllerGetThreadMessagesQueryKey = function (slug, threadId, params) {
|
|
1230
|
-
return __spreadArray(["/api/v2/workspaces/".concat(slug, "/threads/").concat(threadId, "/messages")], (params ? [params] : []), true);
|
|
1231
|
-
};
|
|
1232
|
-
export var getV2ThreadsControllerGetThreadMessagesQueryOptions = function (slug, threadId, params, options) {
|
|
1233
|
-
var _a;
|
|
1234
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1235
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV2ThreadsControllerGetThreadMessagesQueryKey(slug, threadId, params);
|
|
1236
|
-
var queryFn = function (_a) {
|
|
1237
|
-
var signal = _a.signal;
|
|
1238
|
-
return v2ThreadsControllerGetThreadMessages(slug, threadId, params, requestOptions, signal);
|
|
1239
|
-
};
|
|
1240
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && threadId) }, queryOptions);
|
|
1241
|
-
};
|
|
1242
|
-
/**
|
|
1243
|
-
* @summary List messages in a thread
|
|
1244
|
-
*/
|
|
1245
|
-
export var useV2ThreadsControllerGetThreadMessages = function (slug, threadId, params, options) {
|
|
1246
|
-
var queryOptions = getV2ThreadsControllerGetThreadMessagesQueryOptions(slug, threadId, params, options);
|
|
1247
|
-
var query = useQuery(queryOptions);
|
|
1248
|
-
query.queryKey = queryOptions.queryKey;
|
|
1249
|
-
return query;
|
|
1250
|
-
};
|
|
1251
|
-
/**
|
|
1252
|
-
* Requires threads:read scope.
|
|
1253
|
-
* @summary Get a thread by its context ID
|
|
1254
|
-
*/
|
|
1255
|
-
export var v2ThreadsControllerGetThreadByContext = function (slug, contextId, options, signal) {
|
|
1256
|
-
return customInstance({ url: "/api/v2/workspaces/".concat(slug, "/threads/context/").concat(contextId), method: 'GET', signal: signal
|
|
1257
|
-
}, options);
|
|
1258
|
-
};
|
|
1259
|
-
export var getV2ThreadsControllerGetThreadByContextQueryKey = function (slug, contextId) {
|
|
1260
|
-
return ["/api/v2/workspaces/".concat(slug, "/threads/context/").concat(contextId)];
|
|
1261
|
-
};
|
|
1262
|
-
export var getV2ThreadsControllerGetThreadByContextQueryOptions = function (slug, contextId, options) {
|
|
1263
|
-
var _a;
|
|
1264
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1265
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV2ThreadsControllerGetThreadByContextQueryKey(slug, contextId);
|
|
1266
|
-
var queryFn = function (_a) {
|
|
1267
|
-
var signal = _a.signal;
|
|
1268
|
-
return v2ThreadsControllerGetThreadByContext(slug, contextId, requestOptions, signal);
|
|
1052
|
+
export var getV10EnterpriseControllerCreateAnnouncementMutationOptions = function (options) {
|
|
1053
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1054
|
+
var mutationFn = function (props) {
|
|
1055
|
+
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
1056
|
+
return v10EnterpriseControllerCreateAnnouncement(id, requestOptions);
|
|
1269
1057
|
};
|
|
1270
|
-
return __assign({
|
|
1058
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1271
1059
|
};
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
export var useV2ThreadsControllerGetThreadByContext = function (slug, contextId, options) {
|
|
1276
|
-
var queryOptions = getV2ThreadsControllerGetThreadByContextQueryOptions(slug, contextId, options);
|
|
1277
|
-
var query = useQuery(queryOptions);
|
|
1278
|
-
query.queryKey = queryOptions.queryKey;
|
|
1279
|
-
return query;
|
|
1060
|
+
export var useV10EnterpriseControllerCreateAnnouncement = function (options) {
|
|
1061
|
+
var mutationOptions = getV10EnterpriseControllerCreateAnnouncementMutationOptions(options);
|
|
1062
|
+
return useMutation(mutationOptions);
|
|
1280
1063
|
};
|
|
1281
1064
|
/**
|
|
1282
1065
|
*
|
|
1283
|
-
|
|
1066
|
+
Generates a bearer token for Machine-to-Machine (M2M) communication.
|
|
1284
1067
|
|
|
1285
|
-
**
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1068
|
+
**Supported Scopes:**
|
|
1069
|
+
- `*`: Full access
|
|
1070
|
+
- `provisioning:workspaces`: Manage organizations and workspaces
|
|
1071
|
+
- `messages:read`: Read messages
|
|
1072
|
+
- `messages:send`: Send messages
|
|
1073
|
+
- `channels:read`: Read channel listings
|
|
1074
|
+
- `channels:write`: Create or update channels
|
|
1075
|
+
- `webhooks:read`: Query webhook registries
|
|
1076
|
+
- `webhooks:write`: Provision or configure webhooks
|
|
1290
1077
|
|
|
1291
|
-
* @summary
|
|
1078
|
+
* @summary Exchange client credentials for a V3 access token
|
|
1292
1079
|
*/
|
|
1293
|
-
export var
|
|
1294
|
-
return customInstance({ url: "/api/
|
|
1080
|
+
export var v3OAuthControllerGetToken = function (v3TokenRequestDto, options) {
|
|
1081
|
+
return customInstance({ url: "/api/v3/oauth/token", method: 'POST',
|
|
1295
1082
|
headers: { 'Content-Type': 'application/json', },
|
|
1296
|
-
data:
|
|
1083
|
+
data: v3TokenRequestDto }, options);
|
|
1297
1084
|
};
|
|
1298
|
-
export var
|
|
1085
|
+
export var getV3OAuthControllerGetTokenMutationOptions = function (options) {
|
|
1299
1086
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1300
1087
|
var mutationFn = function (props) {
|
|
1301
|
-
var
|
|
1302
|
-
return
|
|
1088
|
+
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
1089
|
+
return v3OAuthControllerGetToken(data, requestOptions);
|
|
1303
1090
|
};
|
|
1304
1091
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1305
1092
|
};
|
|
1306
1093
|
/**
|
|
1307
|
-
* @summary
|
|
1094
|
+
* @summary Exchange client credentials for a V3 access token
|
|
1308
1095
|
*/
|
|
1309
|
-
export var
|
|
1310
|
-
var mutationOptions =
|
|
1096
|
+
export var useV3OAuthControllerGetToken = function (options) {
|
|
1097
|
+
var mutationOptions = getV3OAuthControllerGetTokenMutationOptions(options);
|
|
1311
1098
|
return useMutation(mutationOptions);
|
|
1312
1099
|
};
|
|
1313
1100
|
/**
|
|
1314
|
-
*
|
|
1315
|
-
* @summary List
|
|
1101
|
+
* Retrieve all workspaces associated with the authenticated organization or workspace context.
|
|
1102
|
+
* @summary List organization workspaces (Enterprise M2M)
|
|
1316
1103
|
*/
|
|
1317
|
-
export var
|
|
1318
|
-
return customInstance({ url: "/api/
|
|
1104
|
+
export var v3WorkspacesControllerGetWorkspaces = function (options, signal) {
|
|
1105
|
+
return customInstance({ url: "/api/v3/workspaces", method: 'GET', signal: signal
|
|
1319
1106
|
}, options);
|
|
1320
1107
|
};
|
|
1321
|
-
export var
|
|
1322
|
-
return ["/api/
|
|
1108
|
+
export var getV3WorkspacesControllerGetWorkspacesQueryKey = function () {
|
|
1109
|
+
return ["/api/v3/workspaces"];
|
|
1323
1110
|
};
|
|
1324
|
-
export var
|
|
1111
|
+
export var getV3WorkspacesControllerGetWorkspacesQueryOptions = function (options) {
|
|
1325
1112
|
var _a;
|
|
1326
1113
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1327
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1114
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspacesQueryKey();
|
|
1328
1115
|
var queryFn = function (_a) {
|
|
1329
1116
|
var signal = _a.signal;
|
|
1330
|
-
return
|
|
1117
|
+
return v3WorkspacesControllerGetWorkspaces(requestOptions, signal);
|
|
1331
1118
|
};
|
|
1332
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn
|
|
1119
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
1333
1120
|
};
|
|
1334
1121
|
/**
|
|
1335
|
-
* @summary List
|
|
1122
|
+
* @summary List organization workspaces (Enterprise M2M)
|
|
1336
1123
|
*/
|
|
1337
|
-
export var
|
|
1338
|
-
var queryOptions =
|
|
1124
|
+
export var useV3WorkspacesControllerGetWorkspaces = function (options) {
|
|
1125
|
+
var queryOptions = getV3WorkspacesControllerGetWorkspacesQueryOptions(options);
|
|
1339
1126
|
var query = useQuery(queryOptions);
|
|
1340
1127
|
query.queryKey = queryOptions.queryKey;
|
|
1341
1128
|
return query;
|
|
1342
1129
|
};
|
|
1343
1130
|
/**
|
|
1344
|
-
*
|
|
1345
|
-
|
|
1131
|
+
*
|
|
1132
|
+
Provisions a new workspace within your organization.
|
|
1133
|
+
When provisioned via M2M:
|
|
1134
|
+
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
1135
|
+
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
1136
|
+
3. The specified owner and initial members are added.
|
|
1137
|
+
|
|
1138
|
+
* @summary Provision a new workspace (Enterprise M2M)
|
|
1346
1139
|
*/
|
|
1347
|
-
export var
|
|
1348
|
-
return customInstance({ url: "/api/
|
|
1140
|
+
export var v3WorkspacesControllerProvisionWorkspace = function (v3ProvisionWorkspaceDto, options) {
|
|
1141
|
+
return customInstance({ url: "/api/v3/workspaces", method: 'POST',
|
|
1349
1142
|
headers: { 'Content-Type': 'application/json', },
|
|
1350
|
-
data:
|
|
1143
|
+
data: v3ProvisionWorkspaceDto }, options);
|
|
1351
1144
|
};
|
|
1352
|
-
export var
|
|
1145
|
+
export var getV3WorkspacesControllerProvisionWorkspaceMutationOptions = function (options) {
|
|
1353
1146
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1354
1147
|
var mutationFn = function (props) {
|
|
1355
|
-
var
|
|
1356
|
-
return
|
|
1148
|
+
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
1149
|
+
return v3WorkspacesControllerProvisionWorkspace(data, requestOptions);
|
|
1357
1150
|
};
|
|
1358
1151
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1359
1152
|
};
|
|
1360
1153
|
/**
|
|
1361
|
-
* @summary
|
|
1154
|
+
* @summary Provision a new workspace (Enterprise M2M)
|
|
1362
1155
|
*/
|
|
1363
|
-
export var
|
|
1364
|
-
var mutationOptions =
|
|
1156
|
+
export var useV3WorkspacesControllerProvisionWorkspace = function (options) {
|
|
1157
|
+
var mutationOptions = getV3WorkspacesControllerProvisionWorkspaceMutationOptions(options);
|
|
1365
1158
|
return useMutation(mutationOptions);
|
|
1366
1159
|
};
|
|
1367
1160
|
/**
|
|
1368
|
-
*
|
|
1369
|
-
* @summary Get details
|
|
1161
|
+
* Retrieve details of a specific workspace by its slug.
|
|
1162
|
+
* @summary Get workspace details (Enterprise M2M)
|
|
1370
1163
|
*/
|
|
1371
|
-
export var
|
|
1372
|
-
return customInstance({ url: "/api/
|
|
1164
|
+
export var v3WorkspacesControllerGetWorkspaceBySlug = function (slug, options, signal) {
|
|
1165
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'GET', signal: signal
|
|
1373
1166
|
}, options);
|
|
1374
1167
|
};
|
|
1375
|
-
export var
|
|
1376
|
-
return ["/api/
|
|
1168
|
+
export var getV3WorkspacesControllerGetWorkspaceBySlugQueryKey = function (slug) {
|
|
1169
|
+
return ["/api/v3/workspaces/".concat(slug)];
|
|
1377
1170
|
};
|
|
1378
|
-
export var
|
|
1171
|
+
export var getV3WorkspacesControllerGetWorkspaceBySlugQueryOptions = function (slug, options) {
|
|
1379
1172
|
var _a;
|
|
1380
1173
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1381
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1174
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceBySlugQueryKey(slug);
|
|
1382
1175
|
var queryFn = function (_a) {
|
|
1383
1176
|
var signal = _a.signal;
|
|
1384
|
-
return
|
|
1177
|
+
return v3WorkspacesControllerGetWorkspaceBySlug(slug, requestOptions, signal);
|
|
1385
1178
|
};
|
|
1386
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug
|
|
1179
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
1387
1180
|
};
|
|
1388
1181
|
/**
|
|
1389
|
-
* @summary Get details
|
|
1182
|
+
* @summary Get workspace details (Enterprise M2M)
|
|
1390
1183
|
*/
|
|
1391
|
-
export var
|
|
1392
|
-
var queryOptions =
|
|
1184
|
+
export var useV3WorkspacesControllerGetWorkspaceBySlug = function (slug, options) {
|
|
1185
|
+
var queryOptions = getV3WorkspacesControllerGetWorkspaceBySlugQueryOptions(slug, options);
|
|
1393
1186
|
var query = useQuery(queryOptions);
|
|
1394
1187
|
query.queryKey = queryOptions.queryKey;
|
|
1395
1188
|
return query;
|
|
1396
1189
|
};
|
|
1397
1190
|
/**
|
|
1398
|
-
*
|
|
1399
|
-
* @summary Update a
|
|
1191
|
+
* Update the configuration and metadata of a specific workspace.
|
|
1192
|
+
* @summary Update a workspace (Enterprise M2M)
|
|
1400
1193
|
*/
|
|
1401
|
-
export var
|
|
1402
|
-
return customInstance({ url: "/api/
|
|
1194
|
+
export var v3WorkspacesControllerUpdateWorkspace = function (slug, v3UpdateWorkspaceDto, options) {
|
|
1195
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'PATCH',
|
|
1403
1196
|
headers: { 'Content-Type': 'application/json', },
|
|
1404
|
-
data:
|
|
1197
|
+
data: v3UpdateWorkspaceDto }, options);
|
|
1405
1198
|
};
|
|
1406
|
-
export var
|
|
1199
|
+
export var getV3WorkspacesControllerUpdateWorkspaceMutationOptions = function (options) {
|
|
1407
1200
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1408
1201
|
var mutationFn = function (props) {
|
|
1409
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug,
|
|
1410
|
-
return
|
|
1202
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
1203
|
+
return v3WorkspacesControllerUpdateWorkspace(slug, data, requestOptions);
|
|
1411
1204
|
};
|
|
1412
1205
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1413
1206
|
};
|
|
1414
1207
|
/**
|
|
1415
|
-
* @summary Update a
|
|
1208
|
+
* @summary Update a workspace (Enterprise M2M)
|
|
1416
1209
|
*/
|
|
1417
|
-
export var
|
|
1418
|
-
var mutationOptions =
|
|
1210
|
+
export var useV3WorkspacesControllerUpdateWorkspace = function (options) {
|
|
1211
|
+
var mutationOptions = getV3WorkspacesControllerUpdateWorkspaceMutationOptions(options);
|
|
1419
1212
|
return useMutation(mutationOptions);
|
|
1420
1213
|
};
|
|
1421
1214
|
/**
|
|
1422
|
-
*
|
|
1423
|
-
* @summary Delete a
|
|
1215
|
+
* Permanently deletes a specific workspace.
|
|
1216
|
+
* @summary Delete a workspace (Enterprise M2M)
|
|
1424
1217
|
*/
|
|
1425
|
-
export var
|
|
1426
|
-
return customInstance({ url: "/api/
|
|
1218
|
+
export var v3WorkspacesControllerDeleteWorkspace = function (slug, options) {
|
|
1219
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'DELETE' }, options);
|
|
1427
1220
|
};
|
|
1428
|
-
export var
|
|
1221
|
+
export var getV3WorkspacesControllerDeleteWorkspaceMutationOptions = function (options) {
|
|
1429
1222
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1430
1223
|
var mutationFn = function (props) {
|
|
1431
|
-
var
|
|
1432
|
-
return
|
|
1224
|
+
var slug = (props !== null && props !== void 0 ? props : {}).slug;
|
|
1225
|
+
return v3WorkspacesControllerDeleteWorkspace(slug, requestOptions);
|
|
1433
1226
|
};
|
|
1434
1227
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1435
1228
|
};
|
|
1436
1229
|
/**
|
|
1437
|
-
* @summary Delete a
|
|
1230
|
+
* @summary Delete a workspace (Enterprise M2M)
|
|
1438
1231
|
*/
|
|
1439
|
-
export var
|
|
1440
|
-
var mutationOptions =
|
|
1232
|
+
export var useV3WorkspacesControllerDeleteWorkspace = function (options) {
|
|
1233
|
+
var mutationOptions = getV3WorkspacesControllerDeleteWorkspaceMutationOptions(options);
|
|
1441
1234
|
return useMutation(mutationOptions);
|
|
1442
1235
|
};
|
|
1443
1236
|
/**
|
|
1444
|
-
* Requires
|
|
1445
|
-
* @summary List all
|
|
1237
|
+
* Retrieve all members of a specific workspace. Requires members:read scope.
|
|
1238
|
+
* @summary List all workspace members (Enterprise M2M)
|
|
1446
1239
|
*/
|
|
1447
|
-
export var
|
|
1448
|
-
return customInstance({ url: "/api/
|
|
1240
|
+
export var v3WorkspacesControllerGetWorkspaceMembers = function (slug, options, signal) {
|
|
1241
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members"), method: 'GET', signal: signal
|
|
1449
1242
|
}, options);
|
|
1450
1243
|
};
|
|
1451
|
-
export var
|
|
1452
|
-
return ["/api/
|
|
1244
|
+
export var getV3WorkspacesControllerGetWorkspaceMembersQueryKey = function (slug) {
|
|
1245
|
+
return ["/api/v3/workspaces/".concat(slug, "/members")];
|
|
1453
1246
|
};
|
|
1454
|
-
export var
|
|
1247
|
+
export var getV3WorkspacesControllerGetWorkspaceMembersQueryOptions = function (slug, options) {
|
|
1455
1248
|
var _a;
|
|
1456
1249
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1457
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1250
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceMembersQueryKey(slug);
|
|
1458
1251
|
var queryFn = function (_a) {
|
|
1459
1252
|
var signal = _a.signal;
|
|
1460
|
-
return
|
|
1253
|
+
return v3WorkspacesControllerGetWorkspaceMembers(slug, requestOptions, signal);
|
|
1461
1254
|
};
|
|
1462
1255
|
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
1463
1256
|
};
|
|
1464
1257
|
/**
|
|
1465
|
-
* @summary List all
|
|
1258
|
+
* @summary List all workspace members (Enterprise M2M)
|
|
1466
1259
|
*/
|
|
1467
|
-
export var
|
|
1468
|
-
var queryOptions =
|
|
1260
|
+
export var useV3WorkspacesControllerGetWorkspaceMembers = function (slug, options) {
|
|
1261
|
+
var queryOptions = getV3WorkspacesControllerGetWorkspaceMembersQueryOptions(slug, options);
|
|
1469
1262
|
var query = useQuery(queryOptions);
|
|
1470
1263
|
query.queryKey = queryOptions.queryKey;
|
|
1471
1264
|
return query;
|
|
1472
1265
|
};
|
|
1473
1266
|
/**
|
|
1474
|
-
* Requires
|
|
1475
|
-
* @summary
|
|
1267
|
+
* Add a new member to a specific workspace. Requires members:write scope.
|
|
1268
|
+
* @summary Add a member to the workspace (Enterprise M2M)
|
|
1476
1269
|
*/
|
|
1477
|
-
export var
|
|
1478
|
-
return customInstance({ url: "/api/
|
|
1270
|
+
export var v3WorkspacesControllerAddWorkspaceMember = function (slug, v3AddMemberDto, options) {
|
|
1271
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members"), method: 'POST',
|
|
1479
1272
|
headers: { 'Content-Type': 'application/json', },
|
|
1480
|
-
data:
|
|
1273
|
+
data: v3AddMemberDto }, options);
|
|
1481
1274
|
};
|
|
1482
|
-
export var
|
|
1275
|
+
export var getV3WorkspacesControllerAddWorkspaceMemberMutationOptions = function (options) {
|
|
1483
1276
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1484
1277
|
var mutationFn = function (props) {
|
|
1485
1278
|
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
1486
|
-
return
|
|
1279
|
+
return v3WorkspacesControllerAddWorkspaceMember(slug, data, requestOptions);
|
|
1487
1280
|
};
|
|
1488
1281
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1489
1282
|
};
|
|
1490
1283
|
/**
|
|
1491
|
-
* @summary
|
|
1284
|
+
* @summary Add a member to the workspace (Enterprise M2M)
|
|
1492
1285
|
*/
|
|
1493
|
-
export var
|
|
1494
|
-
var mutationOptions =
|
|
1286
|
+
export var useV3WorkspacesControllerAddWorkspaceMember = function (options) {
|
|
1287
|
+
var mutationOptions = getV3WorkspacesControllerAddWorkspaceMemberMutationOptions(options);
|
|
1495
1288
|
return useMutation(mutationOptions);
|
|
1496
1289
|
};
|
|
1497
1290
|
/**
|
|
1498
|
-
* Requires
|
|
1499
|
-
* @summary Get details of a specific
|
|
1291
|
+
* Retrieve details of a specific workspace member by userId. Requires members:read scope.
|
|
1292
|
+
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
1500
1293
|
*/
|
|
1501
|
-
export var
|
|
1502
|
-
return customInstance({ url: "/api/
|
|
1294
|
+
export var v3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options, signal) {
|
|
1295
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'GET', signal: signal
|
|
1503
1296
|
}, options);
|
|
1504
1297
|
};
|
|
1505
|
-
export var
|
|
1506
|
-
return ["/api/
|
|
1298
|
+
export var getV3WorkspacesControllerGetWorkspaceMemberQueryKey = function (slug, userId) {
|
|
1299
|
+
return ["/api/v3/workspaces/".concat(slug, "/members/").concat(userId)];
|
|
1507
1300
|
};
|
|
1508
|
-
export var
|
|
1301
|
+
export var getV3WorkspacesControllerGetWorkspaceMemberQueryOptions = function (slug, userId, options) {
|
|
1509
1302
|
var _a;
|
|
1510
1303
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1511
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1304
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceMemberQueryKey(slug, userId);
|
|
1512
1305
|
var queryFn = function (_a) {
|
|
1513
1306
|
var signal = _a.signal;
|
|
1514
|
-
return
|
|
1307
|
+
return v3WorkspacesControllerGetWorkspaceMember(slug, userId, requestOptions, signal);
|
|
1515
1308
|
};
|
|
1516
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug &&
|
|
1309
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && userId) }, queryOptions);
|
|
1517
1310
|
};
|
|
1518
1311
|
/**
|
|
1519
|
-
* @summary Get details of a specific
|
|
1312
|
+
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
1520
1313
|
*/
|
|
1521
|
-
export var
|
|
1522
|
-
var queryOptions =
|
|
1314
|
+
export var useV3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options) {
|
|
1315
|
+
var queryOptions = getV3WorkspacesControllerGetWorkspaceMemberQueryOptions(slug, userId, options);
|
|
1523
1316
|
var query = useQuery(queryOptions);
|
|
1524
1317
|
query.queryKey = queryOptions.queryKey;
|
|
1525
1318
|
return query;
|
|
1526
1319
|
};
|
|
1527
1320
|
/**
|
|
1528
|
-
* Requires
|
|
1529
|
-
* @summary Update a
|
|
1321
|
+
* Update the role of a specific workspace member. Requires members:write scope.
|
|
1322
|
+
* @summary Update a workspace member role (Enterprise M2M)
|
|
1530
1323
|
*/
|
|
1531
|
-
export var
|
|
1532
|
-
return customInstance({ url: "/api/
|
|
1324
|
+
export var v3WorkspacesControllerUpdateWorkspaceMember = function (slug, userId, v3UpdateMemberRoleDto, options) {
|
|
1325
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'PATCH',
|
|
1533
1326
|
headers: { 'Content-Type': 'application/json', },
|
|
1534
|
-
data:
|
|
1327
|
+
data: v3UpdateMemberRoleDto }, options);
|
|
1535
1328
|
};
|
|
1536
|
-
export var
|
|
1329
|
+
export var getV3WorkspacesControllerUpdateWorkspaceMemberMutationOptions = function (options) {
|
|
1537
1330
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1538
1331
|
var mutationFn = function (props) {
|
|
1539
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug,
|
|
1540
|
-
return
|
|
1332
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, userId = _a.userId, data = _a.data;
|
|
1333
|
+
return v3WorkspacesControllerUpdateWorkspaceMember(slug, userId, data, requestOptions);
|
|
1541
1334
|
};
|
|
1542
1335
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1543
1336
|
};
|
|
1544
1337
|
/**
|
|
1545
|
-
* @summary Update a
|
|
1338
|
+
* @summary Update a workspace member role (Enterprise M2M)
|
|
1546
1339
|
*/
|
|
1547
|
-
export var
|
|
1548
|
-
var mutationOptions =
|
|
1340
|
+
export var useV3WorkspacesControllerUpdateWorkspaceMember = function (options) {
|
|
1341
|
+
var mutationOptions = getV3WorkspacesControllerUpdateWorkspaceMemberMutationOptions(options);
|
|
1549
1342
|
return useMutation(mutationOptions);
|
|
1550
1343
|
};
|
|
1551
1344
|
/**
|
|
1552
|
-
* Requires
|
|
1553
|
-
* @summary
|
|
1345
|
+
* Remove a workspace member by userId. Requires members:write scope.
|
|
1346
|
+
* @summary Remove a member from the workspace (Enterprise M2M)
|
|
1554
1347
|
*/
|
|
1555
|
-
export var
|
|
1556
|
-
return customInstance({ url: "/api/
|
|
1348
|
+
export var v3WorkspacesControllerDeleteWorkspaceMember = function (slug, userId, options) {
|
|
1349
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'DELETE' }, options);
|
|
1557
1350
|
};
|
|
1558
|
-
export var
|
|
1351
|
+
export var getV3WorkspacesControllerDeleteWorkspaceMemberMutationOptions = function (options) {
|
|
1559
1352
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1560
1353
|
var mutationFn = function (props) {
|
|
1561
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug,
|
|
1562
|
-
return
|
|
1354
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, userId = _a.userId;
|
|
1355
|
+
return v3WorkspacesControllerDeleteWorkspaceMember(slug, userId, requestOptions);
|
|
1563
1356
|
};
|
|
1564
1357
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1565
1358
|
};
|
|
1566
1359
|
/**
|
|
1567
|
-
* @summary
|
|
1360
|
+
* @summary Remove a member from the workspace (Enterprise M2M)
|
|
1568
1361
|
*/
|
|
1569
|
-
export var
|
|
1570
|
-
var mutationOptions =
|
|
1362
|
+
export var useV3WorkspacesControllerDeleteWorkspaceMember = function (options) {
|
|
1363
|
+
var mutationOptions = getV3WorkspacesControllerDeleteWorkspaceMemberMutationOptions(options);
|
|
1571
1364
|
return useMutation(mutationOptions);
|
|
1572
1365
|
};
|
|
1573
1366
|
/**
|
|
1574
|
-
* Requires
|
|
1575
|
-
* @summary List all
|
|
1367
|
+
* Requires webhooks:read scope. Retrieves all webhooks configured for this workspace.
|
|
1368
|
+
* @summary List all webhooks in the workspace
|
|
1576
1369
|
*/
|
|
1577
|
-
export var
|
|
1578
|
-
return customInstance({ url: "/api/
|
|
1370
|
+
export var v3WebhooksControllerGetWebhooks = function (slug, options, signal) {
|
|
1371
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks"), method: 'GET', signal: signal
|
|
1579
1372
|
}, options);
|
|
1580
1373
|
};
|
|
1581
|
-
export var
|
|
1582
|
-
return ["/api/
|
|
1374
|
+
export var getV3WebhooksControllerGetWebhooksQueryKey = function (slug) {
|
|
1375
|
+
return ["/api/v3/workspaces/".concat(slug, "/webhooks")];
|
|
1583
1376
|
};
|
|
1584
|
-
export var
|
|
1377
|
+
export var getV3WebhooksControllerGetWebhooksQueryOptions = function (slug, options) {
|
|
1585
1378
|
var _a;
|
|
1586
1379
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1587
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1380
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WebhooksControllerGetWebhooksQueryKey(slug);
|
|
1588
1381
|
var queryFn = function (_a) {
|
|
1589
1382
|
var signal = _a.signal;
|
|
1590
|
-
return
|
|
1383
|
+
return v3WebhooksControllerGetWebhooks(slug, requestOptions, signal);
|
|
1591
1384
|
};
|
|
1592
1385
|
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
1593
1386
|
};
|
|
1594
1387
|
/**
|
|
1595
|
-
* @summary List all
|
|
1388
|
+
* @summary List all webhooks in the workspace
|
|
1596
1389
|
*/
|
|
1597
|
-
export var
|
|
1598
|
-
var queryOptions =
|
|
1390
|
+
export var useV3WebhooksControllerGetWebhooks = function (slug, options) {
|
|
1391
|
+
var queryOptions = getV3WebhooksControllerGetWebhooksQueryOptions(slug, options);
|
|
1599
1392
|
var query = useQuery(queryOptions);
|
|
1600
1393
|
query.queryKey = queryOptions.queryKey;
|
|
1601
1394
|
return query;
|
|
1602
1395
|
};
|
|
1603
1396
|
/**
|
|
1604
|
-
* Requires
|
|
1605
|
-
* @summary Create a new
|
|
1397
|
+
* Requires webhooks:write scope.
|
|
1398
|
+
* @summary Create a new webhook
|
|
1606
1399
|
*/
|
|
1607
|
-
export var
|
|
1608
|
-
return customInstance({ url: "/api/
|
|
1400
|
+
export var v3WebhooksControllerCreateWebhook = function (slug, v3CreateWebhookDto, options) {
|
|
1401
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks"), method: 'POST',
|
|
1609
1402
|
headers: { 'Content-Type': 'application/json', },
|
|
1610
|
-
data:
|
|
1403
|
+
data: v3CreateWebhookDto }, options);
|
|
1611
1404
|
};
|
|
1612
|
-
export var
|
|
1405
|
+
export var getV3WebhooksControllerCreateWebhookMutationOptions = function (options) {
|
|
1613
1406
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1614
1407
|
var mutationFn = function (props) {
|
|
1615
1408
|
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
1616
|
-
return
|
|
1409
|
+
return v3WebhooksControllerCreateWebhook(slug, data, requestOptions);
|
|
1617
1410
|
};
|
|
1618
1411
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1619
1412
|
};
|
|
1620
1413
|
/**
|
|
1621
|
-
* @summary Create a new
|
|
1414
|
+
* @summary Create a new webhook
|
|
1622
1415
|
*/
|
|
1623
|
-
export var
|
|
1624
|
-
var mutationOptions =
|
|
1416
|
+
export var useV3WebhooksControllerCreateWebhook = function (options) {
|
|
1417
|
+
var mutationOptions = getV3WebhooksControllerCreateWebhookMutationOptions(options);
|
|
1625
1418
|
return useMutation(mutationOptions);
|
|
1626
1419
|
};
|
|
1627
1420
|
/**
|
|
1628
|
-
* Requires
|
|
1629
|
-
* @summary Get details of a specific
|
|
1421
|
+
* Requires webhooks:read scope.
|
|
1422
|
+
* @summary Get details of a specific webhook
|
|
1630
1423
|
*/
|
|
1631
|
-
export var
|
|
1632
|
-
return customInstance({ url: "/api/
|
|
1424
|
+
export var v3WebhooksControllerGetWebhook = function (slug, webhookId, options, signal) {
|
|
1425
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'GET', signal: signal
|
|
1633
1426
|
}, options);
|
|
1634
1427
|
};
|
|
1635
|
-
export var
|
|
1636
|
-
return ["/api/
|
|
1428
|
+
export var getV3WebhooksControllerGetWebhookQueryKey = function (slug, webhookId) {
|
|
1429
|
+
return ["/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId)];
|
|
1637
1430
|
};
|
|
1638
|
-
export var
|
|
1431
|
+
export var getV3WebhooksControllerGetWebhookQueryOptions = function (slug, webhookId, options) {
|
|
1639
1432
|
var _a;
|
|
1640
1433
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1641
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1434
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WebhooksControllerGetWebhookQueryKey(slug, webhookId);
|
|
1642
1435
|
var queryFn = function (_a) {
|
|
1643
1436
|
var signal = _a.signal;
|
|
1644
|
-
return
|
|
1437
|
+
return v3WebhooksControllerGetWebhook(slug, webhookId, requestOptions, signal);
|
|
1645
1438
|
};
|
|
1646
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug &&
|
|
1439
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && webhookId) }, queryOptions);
|
|
1647
1440
|
};
|
|
1648
1441
|
/**
|
|
1649
|
-
* @summary Get details of a specific
|
|
1442
|
+
* @summary Get details of a specific webhook
|
|
1650
1443
|
*/
|
|
1651
|
-
export var
|
|
1652
|
-
var queryOptions =
|
|
1444
|
+
export var useV3WebhooksControllerGetWebhook = function (slug, webhookId, options) {
|
|
1445
|
+
var queryOptions = getV3WebhooksControllerGetWebhookQueryOptions(slug, webhookId, options);
|
|
1653
1446
|
var query = useQuery(queryOptions);
|
|
1654
1447
|
query.queryKey = queryOptions.queryKey;
|
|
1655
1448
|
return query;
|
|
1656
1449
|
};
|
|
1657
1450
|
/**
|
|
1658
|
-
* Requires
|
|
1659
|
-
* @summary Update
|
|
1451
|
+
* Requires webhooks:write scope.
|
|
1452
|
+
* @summary Update a webhook
|
|
1660
1453
|
*/
|
|
1661
|
-
export var
|
|
1662
|
-
return customInstance({ url: "/api/
|
|
1454
|
+
export var v3WebhooksControllerUpdateWebhook = function (slug, webhookId, v3UpdateWebhookDto, options) {
|
|
1455
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'PATCH',
|
|
1663
1456
|
headers: { 'Content-Type': 'application/json', },
|
|
1664
|
-
data:
|
|
1457
|
+
data: v3UpdateWebhookDto }, options);
|
|
1665
1458
|
};
|
|
1666
|
-
export var
|
|
1459
|
+
export var getV3WebhooksControllerUpdateWebhookMutationOptions = function (options) {
|
|
1667
1460
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1668
1461
|
var mutationFn = function (props) {
|
|
1669
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug,
|
|
1670
|
-
return
|
|
1462
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, webhookId = _a.webhookId, data = _a.data;
|
|
1463
|
+
return v3WebhooksControllerUpdateWebhook(slug, webhookId, data, requestOptions);
|
|
1671
1464
|
};
|
|
1672
1465
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1673
1466
|
};
|
|
1674
1467
|
/**
|
|
1675
|
-
* @summary Update
|
|
1468
|
+
* @summary Update a webhook
|
|
1676
1469
|
*/
|
|
1677
|
-
export var
|
|
1678
|
-
var mutationOptions =
|
|
1470
|
+
export var useV3WebhooksControllerUpdateWebhook = function (options) {
|
|
1471
|
+
var mutationOptions = getV3WebhooksControllerUpdateWebhookMutationOptions(options);
|
|
1679
1472
|
return useMutation(mutationOptions);
|
|
1680
1473
|
};
|
|
1681
1474
|
/**
|
|
1682
|
-
* Requires
|
|
1683
|
-
* @summary Delete
|
|
1475
|
+
* Requires webhooks:write scope.
|
|
1476
|
+
* @summary Delete a webhook
|
|
1684
1477
|
*/
|
|
1685
|
-
export var
|
|
1686
|
-
return customInstance({ url: "/api/
|
|
1478
|
+
export var v3WebhooksControllerDeleteWebhook = function (slug, webhookId, options) {
|
|
1479
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
1687
1480
|
};
|
|
1688
|
-
export var
|
|
1481
|
+
export var getV3WebhooksControllerDeleteWebhookMutationOptions = function (options) {
|
|
1689
1482
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1690
1483
|
var mutationFn = function (props) {
|
|
1691
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug,
|
|
1692
|
-
return
|
|
1484
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, webhookId = _a.webhookId;
|
|
1485
|
+
return v3WebhooksControllerDeleteWebhook(slug, webhookId, requestOptions);
|
|
1693
1486
|
};
|
|
1694
1487
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1695
1488
|
};
|
|
1696
1489
|
/**
|
|
1697
|
-
* @summary Delete
|
|
1490
|
+
* @summary Delete a webhook
|
|
1698
1491
|
*/
|
|
1699
|
-
export var
|
|
1700
|
-
var mutationOptions =
|
|
1492
|
+
export var useV3WebhooksControllerDeleteWebhook = function (options) {
|
|
1493
|
+
var mutationOptions = getV3WebhooksControllerDeleteWebhookMutationOptions(options);
|
|
1701
1494
|
return useMutation(mutationOptions);
|
|
1702
1495
|
};
|
|
1703
1496
|
/**
|
|
1704
|
-
*
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
**Scopes available:**
|
|
1708
|
-
- `*`: Full access (only for internal system bots).
|
|
1709
|
-
- `provisioning:workspaces`: Ability to create and manage workspaces.
|
|
1710
|
-
- `messages:read`: Read messages in allowed channels.
|
|
1711
|
-
- `messages:send`: Send messages and trigger actions.
|
|
1712
|
-
- `channels:read`: List and view channel details.
|
|
1713
|
-
- `channels:write`: Create and manage channels.
|
|
1714
|
-
- `webhooks:read`: View webhook configurations.
|
|
1715
|
-
- `webhooks:write`: Manage webhooks.
|
|
1716
|
-
|
|
1717
|
-
* @summary Exchange client credentials for an access token
|
|
1497
|
+
* Requires webhooks:read scope. Retrieves all incoming webhooks configured for this channel.
|
|
1498
|
+
* @summary List incoming webhooks for a channel
|
|
1718
1499
|
*/
|
|
1719
|
-
export var
|
|
1720
|
-
return customInstance({ url: "/api/
|
|
1721
|
-
|
|
1722
|
-
data: tokenRequestDto }, options);
|
|
1500
|
+
export var v3ChannelIncomingWebhooksControllerGetChannelWebhooks = function (slug, channelId, options, signal) {
|
|
1501
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks"), method: 'GET', signal: signal
|
|
1502
|
+
}, options);
|
|
1723
1503
|
};
|
|
1724
|
-
export var
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1504
|
+
export var getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryKey = function (slug, channelId) {
|
|
1505
|
+
return ["/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks")];
|
|
1506
|
+
};
|
|
1507
|
+
export var getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryOptions = function (slug, channelId, options) {
|
|
1508
|
+
var _a;
|
|
1509
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1510
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryKey(slug, channelId);
|
|
1511
|
+
var queryFn = function (_a) {
|
|
1512
|
+
var signal = _a.signal;
|
|
1513
|
+
return v3ChannelIncomingWebhooksControllerGetChannelWebhooks(slug, channelId, requestOptions, signal);
|
|
1729
1514
|
};
|
|
1730
|
-
return __assign({
|
|
1515
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && channelId) }, queryOptions);
|
|
1731
1516
|
};
|
|
1732
1517
|
/**
|
|
1733
|
-
* @summary
|
|
1734
|
-
*/
|
|
1735
|
-
export var
|
|
1736
|
-
var
|
|
1737
|
-
|
|
1518
|
+
* @summary List incoming webhooks for a channel
|
|
1519
|
+
*/
|
|
1520
|
+
export var useV3ChannelIncomingWebhooksControllerGetChannelWebhooks = function (slug, channelId, options) {
|
|
1521
|
+
var queryOptions = getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryOptions(slug, channelId, options);
|
|
1522
|
+
var query = useQuery(queryOptions);
|
|
1523
|
+
query.queryKey = queryOptions.queryKey;
|
|
1524
|
+
return query;
|
|
1738
1525
|
};
|
|
1739
1526
|
/**
|
|
1740
|
-
* Requires
|
|
1741
|
-
* @summary Create
|
|
1527
|
+
* Requires webhooks:write scope. Generates a new webhook token and secret.
|
|
1528
|
+
* @summary Create an incoming webhook for a channel
|
|
1742
1529
|
*/
|
|
1743
|
-
export var
|
|
1744
|
-
return customInstance({ url: "/api/
|
|
1530
|
+
export var v3ChannelIncomingWebhooksControllerCreateChannelWebhook = function (slug, channelId, createChannelIncomingWebhookDto, options) {
|
|
1531
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks"), method: 'POST',
|
|
1745
1532
|
headers: { 'Content-Type': 'application/json', },
|
|
1746
|
-
data:
|
|
1533
|
+
data: createChannelIncomingWebhookDto }, options);
|
|
1747
1534
|
};
|
|
1748
|
-
export var
|
|
1535
|
+
export var getV3ChannelIncomingWebhooksControllerCreateChannelWebhookMutationOptions = function (options) {
|
|
1749
1536
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1750
1537
|
var mutationFn = function (props) {
|
|
1751
|
-
var
|
|
1752
|
-
return
|
|
1538
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, data = _a.data;
|
|
1539
|
+
return v3ChannelIncomingWebhooksControllerCreateChannelWebhook(slug, channelId, data, requestOptions);
|
|
1753
1540
|
};
|
|
1754
1541
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1755
1542
|
};
|
|
1756
1543
|
/**
|
|
1757
|
-
* @summary Create
|
|
1544
|
+
* @summary Create an incoming webhook for a channel
|
|
1758
1545
|
*/
|
|
1759
|
-
export var
|
|
1760
|
-
var mutationOptions =
|
|
1546
|
+
export var useV3ChannelIncomingWebhooksControllerCreateChannelWebhook = function (options) {
|
|
1547
|
+
var mutationOptions = getV3ChannelIncomingWebhooksControllerCreateChannelWebhookMutationOptions(options);
|
|
1761
1548
|
return useMutation(mutationOptions);
|
|
1762
1549
|
};
|
|
1763
1550
|
/**
|
|
1764
|
-
*
|
|
1765
|
-
|
|
1766
|
-
export var v2ApplicationsControllerGetApplications = function (options, signal) {
|
|
1767
|
-
return customInstance({ url: "/api/v2/applications", method: 'GET', signal: signal
|
|
1768
|
-
}, options);
|
|
1769
|
-
};
|
|
1770
|
-
export var getV2ApplicationsControllerGetApplicationsQueryKey = function () {
|
|
1771
|
-
return ["/api/v2/applications"];
|
|
1772
|
-
};
|
|
1773
|
-
export var getV2ApplicationsControllerGetApplicationsQueryOptions = function (options) {
|
|
1774
|
-
var _a;
|
|
1775
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1776
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV2ApplicationsControllerGetApplicationsQueryKey();
|
|
1777
|
-
var queryFn = function (_a) {
|
|
1778
|
-
var signal = _a.signal;
|
|
1779
|
-
return v2ApplicationsControllerGetApplications(requestOptions, signal);
|
|
1780
|
-
};
|
|
1781
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
1782
|
-
};
|
|
1783
|
-
/**
|
|
1784
|
-
* @summary List all bot applications owned by the user or organization
|
|
1785
|
-
*/
|
|
1786
|
-
export var useV2ApplicationsControllerGetApplications = function (options) {
|
|
1787
|
-
var queryOptions = getV2ApplicationsControllerGetApplicationsQueryOptions(options);
|
|
1788
|
-
var query = useQuery(queryOptions);
|
|
1789
|
-
query.queryKey = queryOptions.queryKey;
|
|
1790
|
-
return query;
|
|
1791
|
-
};
|
|
1792
|
-
/**
|
|
1793
|
-
* @summary Get details of a specific bot application
|
|
1551
|
+
* Requires webhooks:read scope.
|
|
1552
|
+
* @summary Get details of a channel incoming webhook
|
|
1794
1553
|
*/
|
|
1795
|
-
export var
|
|
1796
|
-
return customInstance({ url: "/api/
|
|
1554
|
+
export var v3ChannelIncomingWebhooksControllerGetChannelWebhook = function (slug, channelId, webhookId, options, signal) {
|
|
1555
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'GET', signal: signal
|
|
1797
1556
|
}, options);
|
|
1798
1557
|
};
|
|
1799
|
-
export var
|
|
1800
|
-
return ["/api/
|
|
1558
|
+
export var getV3ChannelIncomingWebhooksControllerGetChannelWebhookQueryKey = function (slug, channelId, webhookId) {
|
|
1559
|
+
return ["/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId)];
|
|
1801
1560
|
};
|
|
1802
|
-
export var
|
|
1561
|
+
export var getV3ChannelIncomingWebhooksControllerGetChannelWebhookQueryOptions = function (slug, channelId, webhookId, options) {
|
|
1803
1562
|
var _a;
|
|
1804
1563
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1805
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1564
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ChannelIncomingWebhooksControllerGetChannelWebhookQueryKey(slug, channelId, webhookId);
|
|
1806
1565
|
var queryFn = function (_a) {
|
|
1807
1566
|
var signal = _a.signal;
|
|
1808
|
-
return
|
|
1567
|
+
return v3ChannelIncomingWebhooksControllerGetChannelWebhook(slug, channelId, webhookId, requestOptions, signal);
|
|
1809
1568
|
};
|
|
1810
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
1569
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && channelId && webhookId) }, queryOptions);
|
|
1811
1570
|
};
|
|
1812
1571
|
/**
|
|
1813
|
-
* @summary Get details of a
|
|
1572
|
+
* @summary Get details of a channel incoming webhook
|
|
1814
1573
|
*/
|
|
1815
|
-
export var
|
|
1816
|
-
var queryOptions =
|
|
1574
|
+
export var useV3ChannelIncomingWebhooksControllerGetChannelWebhook = function (slug, channelId, webhookId, options) {
|
|
1575
|
+
var queryOptions = getV3ChannelIncomingWebhooksControllerGetChannelWebhookQueryOptions(slug, channelId, webhookId, options);
|
|
1817
1576
|
var query = useQuery(queryOptions);
|
|
1818
1577
|
query.queryKey = queryOptions.queryKey;
|
|
1819
1578
|
return query;
|
|
1820
1579
|
};
|
|
1821
1580
|
/**
|
|
1822
|
-
*
|
|
1581
|
+
* Requires webhooks:write scope.
|
|
1582
|
+
* @summary Update a channel incoming webhook
|
|
1823
1583
|
*/
|
|
1824
|
-
export var
|
|
1825
|
-
return customInstance({ url: "/api/
|
|
1584
|
+
export var v3ChannelIncomingWebhooksControllerUpdateChannelWebhook = function (slug, channelId, webhookId, updateChannelIncomingWebhookDto, options) {
|
|
1585
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'PATCH',
|
|
1826
1586
|
headers: { 'Content-Type': 'application/json', },
|
|
1827
|
-
data:
|
|
1828
|
-
};
|
|
1829
|
-
export var getV2ApplicationsControllerUpdateApplicationMutationOptions = function (options) {
|
|
1830
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1831
|
-
var mutationFn = function (props) {
|
|
1832
|
-
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, data = _a.data;
|
|
1833
|
-
return v2ApplicationsControllerUpdateApplication(id, data, requestOptions);
|
|
1834
|
-
};
|
|
1835
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1836
|
-
};
|
|
1837
|
-
/**
|
|
1838
|
-
* @summary Update a bot application
|
|
1839
|
-
*/
|
|
1840
|
-
export var useV2ApplicationsControllerUpdateApplication = function (options) {
|
|
1841
|
-
var mutationOptions = getV2ApplicationsControllerUpdateApplicationMutationOptions(options);
|
|
1842
|
-
return useMutation(mutationOptions);
|
|
1843
|
-
};
|
|
1844
|
-
/**
|
|
1845
|
-
* @summary Delete a bot application
|
|
1846
|
-
*/
|
|
1847
|
-
export var v2ApplicationsControllerDeleteApplication = function (id, options) {
|
|
1848
|
-
return customInstance({ url: "/api/v2/applications/".concat(id, "/delete"), method: 'POST' }, options);
|
|
1587
|
+
data: updateChannelIncomingWebhookDto }, options);
|
|
1849
1588
|
};
|
|
1850
|
-
export var
|
|
1589
|
+
export var getV3ChannelIncomingWebhooksControllerUpdateChannelWebhookMutationOptions = function (options) {
|
|
1851
1590
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1852
1591
|
var mutationFn = function (props) {
|
|
1853
|
-
var
|
|
1854
|
-
return
|
|
1592
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, webhookId = _a.webhookId, data = _a.data;
|
|
1593
|
+
return v3ChannelIncomingWebhooksControllerUpdateChannelWebhook(slug, channelId, webhookId, data, requestOptions);
|
|
1855
1594
|
};
|
|
1856
1595
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1857
1596
|
};
|
|
1858
1597
|
/**
|
|
1859
|
-
* @summary
|
|
1598
|
+
* @summary Update a channel incoming webhook
|
|
1860
1599
|
*/
|
|
1861
|
-
export var
|
|
1862
|
-
var mutationOptions =
|
|
1600
|
+
export var useV3ChannelIncomingWebhooksControllerUpdateChannelWebhook = function (options) {
|
|
1601
|
+
var mutationOptions = getV3ChannelIncomingWebhooksControllerUpdateChannelWebhookMutationOptions(options);
|
|
1863
1602
|
return useMutation(mutationOptions);
|
|
1864
1603
|
};
|
|
1865
1604
|
/**
|
|
1866
|
-
*
|
|
1605
|
+
* Requires webhooks:write scope.
|
|
1606
|
+
* @summary Delete a channel incoming webhook
|
|
1867
1607
|
*/
|
|
1868
|
-
export var
|
|
1869
|
-
return customInstance({ url: "/api/
|
|
1608
|
+
export var v3ChannelIncomingWebhooksControllerDeleteChannelWebhook = function (slug, channelId, webhookId, options) {
|
|
1609
|
+
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
1870
1610
|
};
|
|
1871
|
-
export var
|
|
1611
|
+
export var getV3ChannelIncomingWebhooksControllerDeleteChannelWebhookMutationOptions = function (options) {
|
|
1872
1612
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1873
1613
|
var mutationFn = function (props) {
|
|
1874
|
-
var
|
|
1875
|
-
return
|
|
1614
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, webhookId = _a.webhookId;
|
|
1615
|
+
return v3ChannelIncomingWebhooksControllerDeleteChannelWebhook(slug, channelId, webhookId, requestOptions);
|
|
1876
1616
|
};
|
|
1877
1617
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1878
1618
|
};
|
|
1879
1619
|
/**
|
|
1880
|
-
* @summary
|
|
1620
|
+
* @summary Delete a channel incoming webhook
|
|
1881
1621
|
*/
|
|
1882
|
-
export var
|
|
1883
|
-
var mutationOptions =
|
|
1622
|
+
export var useV3ChannelIncomingWebhooksControllerDeleteChannelWebhook = function (options) {
|
|
1623
|
+
var mutationOptions = getV3ChannelIncomingWebhooksControllerDeleteChannelWebhookMutationOptions(options);
|
|
1884
1624
|
return useMutation(mutationOptions);
|
|
1885
1625
|
};
|
|
1886
1626
|
/**
|
|
1887
|
-
*
|
|
1627
|
+
* Trigger a webhook using its unique token directly in the URL path. No authentication header required.
|
|
1628
|
+
* @summary Execute a channel incoming webhook (Token in URL)
|
|
1888
1629
|
*/
|
|
1889
|
-
export var
|
|
1890
|
-
return customInstance({ url: "/api/
|
|
1630
|
+
export var v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken = function (token, executeChannelIncomingWebhookDto, options) {
|
|
1631
|
+
return customInstance({ url: "/api/v3/webhooks/incoming/".concat(token), method: 'POST',
|
|
1891
1632
|
headers: { 'Content-Type': 'application/json', },
|
|
1892
|
-
data:
|
|
1633
|
+
data: executeChannelIncomingWebhookDto }, options);
|
|
1893
1634
|
};
|
|
1894
|
-
export var
|
|
1635
|
+
export var getV3ChannelIncomingWebhooksControllerExecuteWebhookByUrlTokenMutationOptions = function (options) {
|
|
1895
1636
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1896
1637
|
var mutationFn = function (props) {
|
|
1897
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
1898
|
-
return
|
|
1638
|
+
var _a = props !== null && props !== void 0 ? props : {}, token = _a.token, data = _a.data;
|
|
1639
|
+
return v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken(token, data, requestOptions);
|
|
1899
1640
|
};
|
|
1900
1641
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1901
1642
|
};
|
|
1902
1643
|
/**
|
|
1903
|
-
* @summary
|
|
1644
|
+
* @summary Execute a channel incoming webhook (Token in URL)
|
|
1904
1645
|
*/
|
|
1905
|
-
export var
|
|
1906
|
-
var mutationOptions =
|
|
1646
|
+
export var useV3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken = function (options) {
|
|
1647
|
+
var mutationOptions = getV3ChannelIncomingWebhooksControllerExecuteWebhookByUrlTokenMutationOptions(options);
|
|
1907
1648
|
return useMutation(mutationOptions);
|
|
1908
1649
|
};
|
|
1909
1650
|
/**
|
|
1910
|
-
*
|
|
1651
|
+
* 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.
|
|
1652
|
+
* @summary Execute a channel incoming webhook (Channel in URL)
|
|
1911
1653
|
*/
|
|
1912
|
-
export var
|
|
1913
|
-
return customInstance({ url: "/api/
|
|
1654
|
+
export var v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId = function (channelId, executeChannelIncomingWebhookDto, params, options) {
|
|
1655
|
+
return customInstance({ url: "/api/v3/channels/".concat(channelId, "/webhooks/incoming"), method: 'POST',
|
|
1914
1656
|
headers: { 'Content-Type': 'application/json', },
|
|
1915
|
-
data:
|
|
1657
|
+
data: executeChannelIncomingWebhookDto, params: params
|
|
1658
|
+
}, options);
|
|
1916
1659
|
};
|
|
1917
|
-
export var
|
|
1660
|
+
export var getV3ChannelIncomingWebhooksControllerExecuteWebhookByChannelIdMutationOptions = function (options) {
|
|
1918
1661
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1919
1662
|
var mutationFn = function (props) {
|
|
1920
|
-
var
|
|
1921
|
-
return
|
|
1663
|
+
var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, data = _a.data, params = _a.params;
|
|
1664
|
+
return v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId(channelId, data, params, requestOptions);
|
|
1922
1665
|
};
|
|
1923
1666
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1924
1667
|
};
|
|
1925
1668
|
/**
|
|
1926
|
-
* @summary
|
|
1669
|
+
* @summary Execute a channel incoming webhook (Channel in URL)
|
|
1927
1670
|
*/
|
|
1928
|
-
export var
|
|
1929
|
-
var mutationOptions =
|
|
1671
|
+
export var useV3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId = function (options) {
|
|
1672
|
+
var mutationOptions = getV3ChannelIncomingWebhooksControllerExecuteWebhookByChannelIdMutationOptions(options);
|
|
1930
1673
|
return useMutation(mutationOptions);
|
|
1931
1674
|
};
|
|
1932
1675
|
/**
|
|
1933
|
-
*
|
|
1934
|
-
Provisions a new workspace within your organization.
|
|
1935
|
-
When provisioned via M2M:
|
|
1936
|
-
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
1937
|
-
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
1938
|
-
3. The specified owner and initial members are added (must belong to the same organization).
|
|
1939
|
-
|
|
1940
|
-
The System Bot acts as the default sender for messages and announcements sent via M2M if no application-specific bot is configured.
|
|
1941
|
-
|
|
1942
|
-
* @summary Provision a new workspace (Enterprise M2M)
|
|
1676
|
+
* @summary List workspaces for an organization
|
|
1943
1677
|
*/
|
|
1944
|
-
export var
|
|
1945
|
-
return customInstance({ url: "/api/
|
|
1946
|
-
|
|
1947
|
-
data: provisionWorkspaceDto }, options);
|
|
1678
|
+
export var v3OrganizationsControllerGetOrganizationWorkspaces = function (orgSlug, options, signal) {
|
|
1679
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug, "/workspaces"), method: 'GET', signal: signal
|
|
1680
|
+
}, options);
|
|
1948
1681
|
};
|
|
1949
|
-
export var
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1682
|
+
export var getV3OrganizationsControllerGetOrganizationWorkspacesQueryKey = function (orgSlug) {
|
|
1683
|
+
return ["/api/v3/organizations/".concat(orgSlug, "/workspaces")];
|
|
1684
|
+
};
|
|
1685
|
+
export var getV3OrganizationsControllerGetOrganizationWorkspacesQueryOptions = function (orgSlug, options) {
|
|
1686
|
+
var _a;
|
|
1687
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1688
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3OrganizationsControllerGetOrganizationWorkspacesQueryKey(orgSlug);
|
|
1689
|
+
var queryFn = function (_a) {
|
|
1690
|
+
var signal = _a.signal;
|
|
1691
|
+
return v3OrganizationsControllerGetOrganizationWorkspaces(orgSlug, requestOptions, signal);
|
|
1954
1692
|
};
|
|
1955
|
-
return __assign({
|
|
1693
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(orgSlug) }, queryOptions);
|
|
1956
1694
|
};
|
|
1957
1695
|
/**
|
|
1958
|
-
* @summary
|
|
1959
|
-
*/
|
|
1960
|
-
export var
|
|
1961
|
-
var
|
|
1962
|
-
|
|
1696
|
+
* @summary List workspaces for an organization
|
|
1697
|
+
*/
|
|
1698
|
+
export var useV3OrganizationsControllerGetOrganizationWorkspaces = function (orgSlug, options) {
|
|
1699
|
+
var queryOptions = getV3OrganizationsControllerGetOrganizationWorkspacesQueryOptions(orgSlug, options);
|
|
1700
|
+
var query = useQuery(queryOptions);
|
|
1701
|
+
query.queryKey = queryOptions.queryKey;
|
|
1702
|
+
return query;
|
|
1963
1703
|
};
|
|
1964
1704
|
/**
|
|
1965
|
-
* @summary
|
|
1705
|
+
* @summary Get organization details
|
|
1966
1706
|
*/
|
|
1967
|
-
export var
|
|
1968
|
-
return customInstance({ url: "/api/organizations/".concat(orgSlug
|
|
1707
|
+
export var v3OrganizationsControllerGetOrganization = function (orgSlug, options, signal) {
|
|
1708
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug), method: 'GET', signal: signal
|
|
1969
1709
|
}, options);
|
|
1970
1710
|
};
|
|
1971
|
-
export var
|
|
1972
|
-
return ["/api/organizations/".concat(orgSlug
|
|
1711
|
+
export var getV3OrganizationsControllerGetOrganizationQueryKey = function (orgSlug) {
|
|
1712
|
+
return ["/api/v3/organizations/".concat(orgSlug)];
|
|
1973
1713
|
};
|
|
1974
|
-
export var
|
|
1714
|
+
export var getV3OrganizationsControllerGetOrganizationQueryOptions = function (orgSlug, options) {
|
|
1975
1715
|
var _a;
|
|
1976
1716
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
1977
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1717
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3OrganizationsControllerGetOrganizationQueryKey(orgSlug);
|
|
1978
1718
|
var queryFn = function (_a) {
|
|
1979
1719
|
var signal = _a.signal;
|
|
1980
|
-
return
|
|
1720
|
+
return v3OrganizationsControllerGetOrganization(orgSlug, requestOptions, signal);
|
|
1981
1721
|
};
|
|
1982
1722
|
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(orgSlug) }, queryOptions);
|
|
1983
1723
|
};
|
|
1984
1724
|
/**
|
|
1985
|
-
* @summary
|
|
1725
|
+
* @summary Get organization details
|
|
1986
1726
|
*/
|
|
1987
|
-
export var
|
|
1988
|
-
var queryOptions =
|
|
1727
|
+
export var useV3OrganizationsControllerGetOrganization = function (orgSlug, options) {
|
|
1728
|
+
var queryOptions = getV3OrganizationsControllerGetOrganizationQueryOptions(orgSlug, options);
|
|
1989
1729
|
var query = useQuery(queryOptions);
|
|
1990
1730
|
query.queryKey = queryOptions.queryKey;
|
|
1991
1731
|
return query;
|
|
1992
1732
|
};
|
|
1993
1733
|
/**
|
|
1994
|
-
* @summary
|
|
1734
|
+
* @summary Update organization details
|
|
1735
|
+
*/
|
|
1736
|
+
export var v3OrganizationsControllerUpdateOrganization = function (orgSlug, v3UpdateOrganizationDto, options) {
|
|
1737
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug), method: 'PATCH',
|
|
1738
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1739
|
+
data: v3UpdateOrganizationDto }, options);
|
|
1740
|
+
};
|
|
1741
|
+
export var getV3OrganizationsControllerUpdateOrganizationMutationOptions = function (options) {
|
|
1742
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
1743
|
+
var mutationFn = function (props) {
|
|
1744
|
+
var _a = props !== null && props !== void 0 ? props : {}, orgSlug = _a.orgSlug, data = _a.data;
|
|
1745
|
+
return v3OrganizationsControllerUpdateOrganization(orgSlug, data, requestOptions);
|
|
1746
|
+
};
|
|
1747
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
1748
|
+
};
|
|
1749
|
+
/**
|
|
1750
|
+
* @summary Update organization details
|
|
1751
|
+
*/
|
|
1752
|
+
export var useV3OrganizationsControllerUpdateOrganization = function (options) {
|
|
1753
|
+
var mutationOptions = getV3OrganizationsControllerUpdateOrganizationMutationOptions(options);
|
|
1754
|
+
return useMutation(mutationOptions);
|
|
1755
|
+
};
|
|
1756
|
+
/**
|
|
1757
|
+
* @summary List organization M2M applications
|
|
1995
1758
|
*/
|
|
1996
|
-
export var
|
|
1997
|
-
return customInstance({ url: "/api/organizations/".concat(orgSlug), method: 'GET', signal: signal
|
|
1759
|
+
export var v3OrganizationsControllerGetM2mApplications = function (orgSlug, options, signal) {
|
|
1760
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug, "/m2m"), method: 'GET', signal: signal
|
|
1998
1761
|
}, options);
|
|
1999
1762
|
};
|
|
2000
|
-
export var
|
|
2001
|
-
return ["/api/organizations/".concat(orgSlug)];
|
|
1763
|
+
export var getV3OrganizationsControllerGetM2mApplicationsQueryKey = function (orgSlug) {
|
|
1764
|
+
return ["/api/v3/organizations/".concat(orgSlug, "/m2m")];
|
|
2002
1765
|
};
|
|
2003
|
-
export var
|
|
1766
|
+
export var getV3OrganizationsControllerGetM2mApplicationsQueryOptions = function (orgSlug, options) {
|
|
2004
1767
|
var _a;
|
|
2005
1768
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2006
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1769
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3OrganizationsControllerGetM2mApplicationsQueryKey(orgSlug);
|
|
2007
1770
|
var queryFn = function (_a) {
|
|
2008
1771
|
var signal = _a.signal;
|
|
2009
|
-
return
|
|
1772
|
+
return v3OrganizationsControllerGetM2mApplications(orgSlug, requestOptions, signal);
|
|
2010
1773
|
};
|
|
2011
1774
|
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(orgSlug) }, queryOptions);
|
|
2012
1775
|
};
|
|
2013
1776
|
/**
|
|
2014
|
-
* @summary
|
|
1777
|
+
* @summary List organization M2M applications
|
|
2015
1778
|
*/
|
|
2016
|
-
export var
|
|
2017
|
-
var queryOptions =
|
|
1779
|
+
export var useV3OrganizationsControllerGetM2mApplications = function (orgSlug, options) {
|
|
1780
|
+
var queryOptions = getV3OrganizationsControllerGetM2mApplicationsQueryOptions(orgSlug, options);
|
|
2018
1781
|
var query = useQuery(queryOptions);
|
|
2019
1782
|
query.queryKey = queryOptions.queryKey;
|
|
2020
1783
|
return query;
|
|
2021
1784
|
};
|
|
2022
1785
|
/**
|
|
2023
|
-
* @summary
|
|
1786
|
+
* @summary Create organization M2M application credentials
|
|
2024
1787
|
*/
|
|
2025
|
-
export var
|
|
2026
|
-
return customInstance({ url: "/api/organizations/".concat(orgSlug), method: '
|
|
1788
|
+
export var v3OrganizationsControllerCreateM2mApplication = function (orgSlug, v3CreateM2mApplicationDto, options) {
|
|
1789
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug, "/m2m"), method: 'POST',
|
|
2027
1790
|
headers: { 'Content-Type': 'application/json', },
|
|
2028
|
-
data:
|
|
1791
|
+
data: v3CreateM2mApplicationDto }, options);
|
|
2029
1792
|
};
|
|
2030
|
-
export var
|
|
1793
|
+
export var getV3OrganizationsControllerCreateM2mApplicationMutationOptions = function (options) {
|
|
2031
1794
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2032
1795
|
var mutationFn = function (props) {
|
|
2033
1796
|
var _a = props !== null && props !== void 0 ? props : {}, orgSlug = _a.orgSlug, data = _a.data;
|
|
2034
|
-
return
|
|
1797
|
+
return v3OrganizationsControllerCreateM2mApplication(orgSlug, data, requestOptions);
|
|
2035
1798
|
};
|
|
2036
1799
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2037
1800
|
};
|
|
2038
1801
|
/**
|
|
2039
|
-
* @summary
|
|
1802
|
+
* @summary Create organization M2M application credentials
|
|
2040
1803
|
*/
|
|
2041
|
-
export var
|
|
2042
|
-
var mutationOptions =
|
|
1804
|
+
export var useV3OrganizationsControllerCreateM2mApplication = function (options) {
|
|
1805
|
+
var mutationOptions = getV3OrganizationsControllerCreateM2mApplicationMutationOptions(options);
|
|
2043
1806
|
return useMutation(mutationOptions);
|
|
2044
1807
|
};
|
|
2045
1808
|
/**
|
|
2046
|
-
* @summary
|
|
1809
|
+
* @summary Update organization M2M application credentials and scopes
|
|
2047
1810
|
*/
|
|
2048
|
-
export var
|
|
2049
|
-
return customInstance({ url: "/api/
|
|
1811
|
+
export var v3OrganizationsControllerUpdateM2mApplication = function (orgSlug, id, v3UpdateM2mApplicationDto, options) {
|
|
1812
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug, "/m2m/").concat(id), method: 'PATCH',
|
|
1813
|
+
headers: { 'Content-Type': 'application/json', },
|
|
1814
|
+
data: v3UpdateM2mApplicationDto }, options);
|
|
2050
1815
|
};
|
|
2051
|
-
export var
|
|
1816
|
+
export var getV3OrganizationsControllerUpdateM2mApplicationMutationOptions = function (options) {
|
|
2052
1817
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2053
|
-
var mutationFn = function () {
|
|
2054
|
-
|
|
1818
|
+
var mutationFn = function (props) {
|
|
1819
|
+
var _a = props !== null && props !== void 0 ? props : {}, orgSlug = _a.orgSlug, id = _a.id, data = _a.data;
|
|
1820
|
+
return v3OrganizationsControllerUpdateM2mApplication(orgSlug, id, data, requestOptions);
|
|
2055
1821
|
};
|
|
2056
1822
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2057
1823
|
};
|
|
2058
1824
|
/**
|
|
2059
|
-
* @summary
|
|
1825
|
+
* @summary Update organization M2M application credentials and scopes
|
|
2060
1826
|
*/
|
|
2061
|
-
export var
|
|
2062
|
-
var mutationOptions =
|
|
1827
|
+
export var useV3OrganizationsControllerUpdateM2mApplication = function (options) {
|
|
1828
|
+
var mutationOptions = getV3OrganizationsControllerUpdateM2mApplicationMutationOptions(options);
|
|
2063
1829
|
return useMutation(mutationOptions);
|
|
2064
1830
|
};
|
|
2065
1831
|
/**
|
|
2066
|
-
* @summary
|
|
1832
|
+
* @summary Delete organization M2M application credentials
|
|
2067
1833
|
*/
|
|
2068
|
-
export var
|
|
2069
|
-
return customInstance({ url: "/api/
|
|
1834
|
+
export var v3OrganizationsControllerDeleteM2mApplication = function (orgSlug, id, options) {
|
|
1835
|
+
return customInstance({ url: "/api/v3/organizations/".concat(orgSlug, "/m2m/").concat(id), method: 'DELETE' }, options);
|
|
2070
1836
|
};
|
|
2071
|
-
export var
|
|
1837
|
+
export var getV3OrganizationsControllerDeleteM2mApplicationMutationOptions = function (options) {
|
|
2072
1838
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2073
1839
|
var mutationFn = function (props) {
|
|
2074
|
-
var
|
|
2075
|
-
return
|
|
1840
|
+
var _a = props !== null && props !== void 0 ? props : {}, orgSlug = _a.orgSlug, id = _a.id;
|
|
1841
|
+
return v3OrganizationsControllerDeleteM2mApplication(orgSlug, id, requestOptions);
|
|
2076
1842
|
};
|
|
2077
1843
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2078
1844
|
};
|
|
2079
1845
|
/**
|
|
2080
|
-
* @summary
|
|
1846
|
+
* @summary Delete organization M2M application credentials
|
|
2081
1847
|
*/
|
|
2082
|
-
export var
|
|
2083
|
-
var mutationOptions =
|
|
1848
|
+
export var useV3OrganizationsControllerDeleteM2mApplication = function (options) {
|
|
1849
|
+
var mutationOptions = getV3OrganizationsControllerDeleteM2mApplicationMutationOptions(options);
|
|
2084
1850
|
return useMutation(mutationOptions);
|
|
2085
1851
|
};
|
|
2086
1852
|
/**
|
|
2087
|
-
* @summary Get
|
|
1853
|
+
* @summary Get notifications for the current user
|
|
2088
1854
|
*/
|
|
2089
|
-
export var
|
|
2090
|
-
return customInstance({ url: "/api/
|
|
1855
|
+
export var notificationsControllerGetNotifications = function (params, options, signal) {
|
|
1856
|
+
return customInstance({ url: "/api/notifications", method: 'GET', params: params, signal: signal
|
|
2091
1857
|
}, options);
|
|
2092
1858
|
};
|
|
2093
|
-
export var
|
|
2094
|
-
return ["/api/
|
|
1859
|
+
export var getNotificationsControllerGetNotificationsQueryKey = function (params) {
|
|
1860
|
+
return __spreadArray(["/api/notifications"], (params ? [params] : []), true);
|
|
2095
1861
|
};
|
|
2096
|
-
export var
|
|
1862
|
+
export var getNotificationsControllerGetNotificationsQueryOptions = function (params, options) {
|
|
2097
1863
|
var _a;
|
|
2098
1864
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2099
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1865
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetNotificationsQueryKey(params);
|
|
2100
1866
|
var queryFn = function (_a) {
|
|
2101
1867
|
var signal = _a.signal;
|
|
2102
|
-
return
|
|
1868
|
+
return notificationsControllerGetNotifications(params, requestOptions, signal);
|
|
2103
1869
|
};
|
|
2104
1870
|
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2105
1871
|
};
|
|
2106
1872
|
/**
|
|
2107
|
-
* @summary Get
|
|
1873
|
+
* @summary Get notifications for the current user
|
|
2108
1874
|
*/
|
|
2109
|
-
export var
|
|
2110
|
-
var queryOptions =
|
|
1875
|
+
export var useNotificationsControllerGetNotifications = function (params, options) {
|
|
1876
|
+
var queryOptions = getNotificationsControllerGetNotificationsQueryOptions(params, options);
|
|
2111
1877
|
var query = useQuery(queryOptions);
|
|
2112
1878
|
query.queryKey = queryOptions.queryKey;
|
|
2113
1879
|
return query;
|
|
2114
1880
|
};
|
|
2115
1881
|
/**
|
|
2116
|
-
* @summary Get
|
|
1882
|
+
* @summary Get a single notification by ID
|
|
2117
1883
|
*/
|
|
2118
|
-
export var
|
|
2119
|
-
return customInstance({ url: "/api/
|
|
1884
|
+
export var notificationsControllerGetNotificationById = function (notificationId, options, signal) {
|
|
1885
|
+
return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'GET', signal: signal
|
|
2120
1886
|
}, options);
|
|
2121
1887
|
};
|
|
2122
|
-
export var
|
|
2123
|
-
return ["/api/
|
|
1888
|
+
export var getNotificationsControllerGetNotificationByIdQueryKey = function (notificationId) {
|
|
1889
|
+
return ["/api/notifications/".concat(notificationId)];
|
|
2124
1890
|
};
|
|
2125
|
-
export var
|
|
1891
|
+
export var getNotificationsControllerGetNotificationByIdQueryOptions = function (notificationId, options) {
|
|
2126
1892
|
var _a;
|
|
2127
1893
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2128
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1894
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetNotificationByIdQueryKey(notificationId);
|
|
2129
1895
|
var queryFn = function (_a) {
|
|
2130
1896
|
var signal = _a.signal;
|
|
2131
|
-
return
|
|
1897
|
+
return notificationsControllerGetNotificationById(notificationId, requestOptions, signal);
|
|
2132
1898
|
};
|
|
2133
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
1899
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(notificationId) }, queryOptions);
|
|
2134
1900
|
};
|
|
2135
1901
|
/**
|
|
2136
|
-
* @summary Get
|
|
1902
|
+
* @summary Get a single notification by ID
|
|
2137
1903
|
*/
|
|
2138
|
-
export var
|
|
2139
|
-
var queryOptions =
|
|
1904
|
+
export var useNotificationsControllerGetNotificationById = function (notificationId, options) {
|
|
1905
|
+
var queryOptions = getNotificationsControllerGetNotificationByIdQueryOptions(notificationId, options);
|
|
2140
1906
|
var query = useQuery(queryOptions);
|
|
2141
1907
|
query.queryKey = queryOptions.queryKey;
|
|
2142
1908
|
return query;
|
|
2143
1909
|
};
|
|
2144
1910
|
/**
|
|
2145
|
-
* @summary
|
|
1911
|
+
* @summary Update a notification (e.g. mark as read)
|
|
2146
1912
|
*/
|
|
2147
|
-
export var
|
|
2148
|
-
return customInstance({ url: "/api/
|
|
1913
|
+
export var notificationsControllerUpdateNotification = function (notificationId, updateNotificationDto, options) {
|
|
1914
|
+
return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'PATCH',
|
|
2149
1915
|
headers: { 'Content-Type': 'application/json', },
|
|
2150
|
-
data:
|
|
1916
|
+
data: updateNotificationDto }, options);
|
|
2151
1917
|
};
|
|
2152
|
-
export var
|
|
1918
|
+
export var getNotificationsControllerUpdateNotificationMutationOptions = function (options) {
|
|
2153
1919
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2154
1920
|
var mutationFn = function (props) {
|
|
2155
|
-
var
|
|
2156
|
-
return
|
|
1921
|
+
var _a = props !== null && props !== void 0 ? props : {}, notificationId = _a.notificationId, data = _a.data;
|
|
1922
|
+
return notificationsControllerUpdateNotification(notificationId, data, requestOptions);
|
|
2157
1923
|
};
|
|
2158
1924
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2159
1925
|
};
|
|
2160
1926
|
/**
|
|
2161
|
-
* @summary
|
|
1927
|
+
* @summary Update a notification (e.g. mark as read)
|
|
2162
1928
|
*/
|
|
2163
|
-
export var
|
|
2164
|
-
var mutationOptions =
|
|
1929
|
+
export var useNotificationsControllerUpdateNotification = function (options) {
|
|
1930
|
+
var mutationOptions = getNotificationsControllerUpdateNotificationMutationOptions(options);
|
|
2165
1931
|
return useMutation(mutationOptions);
|
|
2166
1932
|
};
|
|
2167
1933
|
/**
|
|
2168
|
-
* @summary
|
|
1934
|
+
* @summary Delete a notification
|
|
2169
1935
|
*/
|
|
2170
|
-
export var
|
|
2171
|
-
return customInstance({ url: "/api/
|
|
1936
|
+
export var notificationsControllerDeleteNotification = function (notificationId, options) {
|
|
1937
|
+
return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'DELETE' }, options);
|
|
2172
1938
|
};
|
|
2173
|
-
export var
|
|
1939
|
+
export var getNotificationsControllerDeleteNotificationMutationOptions = function (options) {
|
|
2174
1940
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2175
1941
|
var mutationFn = function (props) {
|
|
2176
|
-
var
|
|
2177
|
-
return
|
|
1942
|
+
var notificationId = (props !== null && props !== void 0 ? props : {}).notificationId;
|
|
1943
|
+
return notificationsControllerDeleteNotification(notificationId, requestOptions);
|
|
2178
1944
|
};
|
|
2179
1945
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2180
1946
|
};
|
|
2181
1947
|
/**
|
|
2182
|
-
* @summary
|
|
1948
|
+
* @summary Delete a notification
|
|
2183
1949
|
*/
|
|
2184
|
-
export var
|
|
2185
|
-
var mutationOptions =
|
|
1950
|
+
export var useNotificationsControllerDeleteNotification = function (options) {
|
|
1951
|
+
var mutationOptions = getNotificationsControllerDeleteNotificationMutationOptions(options);
|
|
2186
1952
|
return useMutation(mutationOptions);
|
|
2187
1953
|
};
|
|
2188
1954
|
/**
|
|
2189
|
-
* @summary
|
|
1955
|
+
* @summary Mark all notifications as read
|
|
2190
1956
|
*/
|
|
2191
|
-
export var
|
|
2192
|
-
return customInstance({ url: "/api/
|
|
1957
|
+
export var notificationsControllerMarkAllRead = function (options) {
|
|
1958
|
+
return customInstance({ url: "/api/notifications/mark-all-read", method: 'POST' }, options);
|
|
2193
1959
|
};
|
|
2194
|
-
export var
|
|
1960
|
+
export var getNotificationsControllerMarkAllReadMutationOptions = function (options) {
|
|
2195
1961
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2196
|
-
var mutationFn = function (
|
|
2197
|
-
|
|
2198
|
-
return integrationsControllerDeleteWebhook(webhookId, requestOptions);
|
|
1962
|
+
var mutationFn = function () {
|
|
1963
|
+
return notificationsControllerMarkAllRead(requestOptions);
|
|
2199
1964
|
};
|
|
2200
1965
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2201
1966
|
};
|
|
2202
1967
|
/**
|
|
2203
|
-
* @summary
|
|
1968
|
+
* @summary Mark all notifications as read
|
|
2204
1969
|
*/
|
|
2205
|
-
export var
|
|
2206
|
-
var mutationOptions =
|
|
1970
|
+
export var useNotificationsControllerMarkAllRead = function (options) {
|
|
1971
|
+
var mutationOptions = getNotificationsControllerMarkAllReadMutationOptions(options);
|
|
2207
1972
|
return useMutation(mutationOptions);
|
|
2208
1973
|
};
|
|
2209
1974
|
/**
|
|
2210
|
-
* @summary Get
|
|
1975
|
+
* @summary Get notification settings for a workspace
|
|
2211
1976
|
*/
|
|
2212
|
-
export var
|
|
2213
|
-
return customInstance({ url: "/api/
|
|
1977
|
+
export var notificationsControllerGetWorkspaceSettings = function (params, options, signal) {
|
|
1978
|
+
return customInstance({ url: "/api/notifications/settings/workspace", method: 'GET', params: params, signal: signal
|
|
2214
1979
|
}, options);
|
|
2215
1980
|
};
|
|
2216
|
-
export var
|
|
2217
|
-
return ["/api/
|
|
1981
|
+
export var getNotificationsControllerGetWorkspaceSettingsQueryKey = function (params) {
|
|
1982
|
+
return __spreadArray(["/api/notifications/settings/workspace"], (params ? [params] : []), true);
|
|
2218
1983
|
};
|
|
2219
|
-
export var
|
|
1984
|
+
export var getNotificationsControllerGetWorkspaceSettingsQueryOptions = function (params, options) {
|
|
2220
1985
|
var _a;
|
|
2221
1986
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2222
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
1987
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetWorkspaceSettingsQueryKey(params);
|
|
2223
1988
|
var queryFn = function (_a) {
|
|
2224
1989
|
var signal = _a.signal;
|
|
2225
|
-
return
|
|
1990
|
+
return notificationsControllerGetWorkspaceSettings(params, requestOptions, signal);
|
|
2226
1991
|
};
|
|
2227
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn
|
|
1992
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2228
1993
|
};
|
|
2229
1994
|
/**
|
|
2230
|
-
* @summary Get
|
|
1995
|
+
* @summary Get notification settings for a workspace
|
|
2231
1996
|
*/
|
|
2232
|
-
export var
|
|
2233
|
-
var queryOptions =
|
|
1997
|
+
export var useNotificationsControllerGetWorkspaceSettings = function (params, options) {
|
|
1998
|
+
var queryOptions = getNotificationsControllerGetWorkspaceSettingsQueryOptions(params, options);
|
|
2234
1999
|
var query = useQuery(queryOptions);
|
|
2235
2000
|
query.queryKey = queryOptions.queryKey;
|
|
2236
2001
|
return query;
|
|
2237
2002
|
};
|
|
2238
2003
|
/**
|
|
2239
|
-
* @summary
|
|
2004
|
+
* @summary Update notification settings for a workspace
|
|
2240
2005
|
*/
|
|
2241
|
-
export var
|
|
2242
|
-
return customInstance({ url: "/api/
|
|
2006
|
+
export var notificationsControllerUpdateWorkspaceSettings = function (workspaceSettingsDto, options) {
|
|
2007
|
+
return customInstance({ url: "/api/notifications/settings/workspace", method: 'PATCH',
|
|
2008
|
+
headers: { 'Content-Type': 'application/json', },
|
|
2009
|
+
data: workspaceSettingsDto }, options);
|
|
2010
|
+
};
|
|
2011
|
+
export var getNotificationsControllerUpdateWorkspaceSettingsMutationOptions = function (options) {
|
|
2012
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2013
|
+
var mutationFn = function (props) {
|
|
2014
|
+
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
2015
|
+
return notificationsControllerUpdateWorkspaceSettings(data, requestOptions);
|
|
2016
|
+
};
|
|
2017
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2018
|
+
};
|
|
2019
|
+
/**
|
|
2020
|
+
* @summary Update notification settings for a workspace
|
|
2021
|
+
*/
|
|
2022
|
+
export var useNotificationsControllerUpdateWorkspaceSettings = function (options) {
|
|
2023
|
+
var mutationOptions = getNotificationsControllerUpdateWorkspaceSettingsMutationOptions(options);
|
|
2024
|
+
return useMutation(mutationOptions);
|
|
2025
|
+
};
|
|
2026
|
+
/**
|
|
2027
|
+
* @summary Get notification settings for a channel
|
|
2028
|
+
*/
|
|
2029
|
+
export var notificationsControllerGetChannelSettings = function (params, options, signal) {
|
|
2030
|
+
return customInstance({ url: "/api/notifications/settings/channel", method: 'GET', params: params, signal: signal
|
|
2243
2031
|
}, options);
|
|
2244
2032
|
};
|
|
2245
|
-
export var
|
|
2246
|
-
return ["/api/
|
|
2033
|
+
export var getNotificationsControllerGetChannelSettingsQueryKey = function (params) {
|
|
2034
|
+
return __spreadArray(["/api/notifications/settings/channel"], (params ? [params] : []), true);
|
|
2247
2035
|
};
|
|
2248
|
-
export var
|
|
2036
|
+
export var getNotificationsControllerGetChannelSettingsQueryOptions = function (params, options) {
|
|
2249
2037
|
var _a;
|
|
2250
2038
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2251
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2039
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetChannelSettingsQueryKey(params);
|
|
2252
2040
|
var queryFn = function (_a) {
|
|
2253
2041
|
var signal = _a.signal;
|
|
2254
|
-
return
|
|
2042
|
+
return notificationsControllerGetChannelSettings(params, requestOptions, signal);
|
|
2255
2043
|
};
|
|
2256
2044
|
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2257
2045
|
};
|
|
2258
2046
|
/**
|
|
2259
|
-
* @summary Get
|
|
2047
|
+
* @summary Get notification settings for a channel
|
|
2260
2048
|
*/
|
|
2261
|
-
export var
|
|
2262
|
-
var queryOptions =
|
|
2049
|
+
export var useNotificationsControllerGetChannelSettings = function (params, options) {
|
|
2050
|
+
var queryOptions = getNotificationsControllerGetChannelSettingsQueryOptions(params, options);
|
|
2263
2051
|
var query = useQuery(queryOptions);
|
|
2264
2052
|
query.queryKey = queryOptions.queryKey;
|
|
2265
2053
|
return query;
|
|
2266
2054
|
};
|
|
2267
2055
|
/**
|
|
2268
|
-
* @summary Update
|
|
2269
|
-
*/
|
|
2270
|
-
export var integrationsControllerUpdateApiKey = function (keyId, options) {
|
|
2271
|
-
return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'PATCH' }, options);
|
|
2272
|
-
};
|
|
2273
|
-
export var getIntegrationsControllerUpdateApiKeyMutationOptions = function (options) {
|
|
2274
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2275
|
-
var mutationFn = function (props) {
|
|
2276
|
-
var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
|
|
2277
|
-
return integrationsControllerUpdateApiKey(keyId, requestOptions);
|
|
2278
|
-
};
|
|
2279
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2280
|
-
};
|
|
2281
|
-
/**
|
|
2282
|
-
* @summary Update an integration API key
|
|
2283
|
-
*/
|
|
2284
|
-
export var useIntegrationsControllerUpdateApiKey = function (options) {
|
|
2285
|
-
var mutationOptions = getIntegrationsControllerUpdateApiKeyMutationOptions(options);
|
|
2286
|
-
return useMutation(mutationOptions);
|
|
2287
|
-
};
|
|
2288
|
-
/**
|
|
2289
|
-
* @summary Delete an integration API key
|
|
2056
|
+
* @summary Update notification settings for a channel
|
|
2290
2057
|
*/
|
|
2291
|
-
export var
|
|
2292
|
-
return customInstance({ url: "/api/
|
|
2058
|
+
export var notificationsControllerUpdateChannelSettings = function (channelSettingsDto, options) {
|
|
2059
|
+
return customInstance({ url: "/api/notifications/settings/channel", method: 'PATCH',
|
|
2060
|
+
headers: { 'Content-Type': 'application/json', },
|
|
2061
|
+
data: channelSettingsDto }, options);
|
|
2293
2062
|
};
|
|
2294
|
-
export var
|
|
2063
|
+
export var getNotificationsControllerUpdateChannelSettingsMutationOptions = function (options) {
|
|
2295
2064
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2296
2065
|
var mutationFn = function (props) {
|
|
2297
|
-
var
|
|
2298
|
-
return
|
|
2066
|
+
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
2067
|
+
return notificationsControllerUpdateChannelSettings(data, requestOptions);
|
|
2299
2068
|
};
|
|
2300
2069
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2301
2070
|
};
|
|
2302
2071
|
/**
|
|
2303
|
-
* @summary
|
|
2072
|
+
* @summary Update notification settings for a channel
|
|
2304
2073
|
*/
|
|
2305
|
-
export var
|
|
2306
|
-
var mutationOptions =
|
|
2074
|
+
export var useNotificationsControllerUpdateChannelSettings = function (options) {
|
|
2075
|
+
var mutationOptions = getNotificationsControllerUpdateChannelSettingsMutationOptions(options);
|
|
2307
2076
|
return useMutation(mutationOptions);
|
|
2308
2077
|
};
|
|
2309
2078
|
/**
|
|
2310
|
-
* @summary Get
|
|
2079
|
+
* @summary Get invitations for the current user
|
|
2311
2080
|
*/
|
|
2312
|
-
export var
|
|
2313
|
-
return customInstance({ url: "/api/
|
|
2081
|
+
export var invitationsControllerGetInvitations = function (params, options, signal) {
|
|
2082
|
+
return customInstance({ url: "/api/invitations", method: 'GET', params: params, signal: signal
|
|
2314
2083
|
}, options);
|
|
2315
2084
|
};
|
|
2316
|
-
export var
|
|
2317
|
-
return ["/api/
|
|
2085
|
+
export var getInvitationsControllerGetInvitationsQueryKey = function (params) {
|
|
2086
|
+
return __spreadArray(["/api/invitations"], (params ? [params] : []), true);
|
|
2318
2087
|
};
|
|
2319
|
-
export var
|
|
2088
|
+
export var getInvitationsControllerGetInvitationsQueryOptions = function (params, options) {
|
|
2320
2089
|
var _a;
|
|
2321
2090
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2322
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2091
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getInvitationsControllerGetInvitationsQueryKey(params);
|
|
2323
2092
|
var queryFn = function (_a) {
|
|
2324
2093
|
var signal = _a.signal;
|
|
2325
|
-
return
|
|
2094
|
+
return invitationsControllerGetInvitations(params, requestOptions, signal);
|
|
2326
2095
|
};
|
|
2327
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn
|
|
2096
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2328
2097
|
};
|
|
2329
2098
|
/**
|
|
2330
|
-
* @summary Get
|
|
2099
|
+
* @summary Get invitations for the current user
|
|
2331
2100
|
*/
|
|
2332
|
-
export var
|
|
2333
|
-
var queryOptions =
|
|
2101
|
+
export var useInvitationsControllerGetInvitations = function (params, options) {
|
|
2102
|
+
var queryOptions = getInvitationsControllerGetInvitationsQueryOptions(params, options);
|
|
2334
2103
|
var query = useQuery(queryOptions);
|
|
2335
2104
|
query.queryKey = queryOptions.queryKey;
|
|
2336
2105
|
return query;
|
|
2337
2106
|
};
|
|
2338
2107
|
/**
|
|
2339
|
-
* @summary Create a new
|
|
2108
|
+
* @summary Create a new invitation
|
|
2340
2109
|
*/
|
|
2341
|
-
export var
|
|
2342
|
-
return customInstance({ url: "/api/
|
|
2110
|
+
export var invitationsControllerCreateInvitation = function (createInvitationDto, options) {
|
|
2111
|
+
return customInstance({ url: "/api/invitations", method: 'POST',
|
|
2343
2112
|
headers: { 'Content-Type': 'application/json', },
|
|
2344
|
-
data:
|
|
2113
|
+
data: createInvitationDto }, options);
|
|
2345
2114
|
};
|
|
2346
|
-
export var
|
|
2115
|
+
export var getInvitationsControllerCreateInvitationMutationOptions = function (options) {
|
|
2347
2116
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2348
2117
|
var mutationFn = function (props) {
|
|
2349
|
-
var
|
|
2350
|
-
return
|
|
2118
|
+
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
2119
|
+
return invitationsControllerCreateInvitation(data, requestOptions);
|
|
2351
2120
|
};
|
|
2352
2121
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2353
2122
|
};
|
|
2354
2123
|
/**
|
|
2355
|
-
* @summary Create a new
|
|
2124
|
+
* @summary Create a new invitation
|
|
2356
2125
|
*/
|
|
2357
|
-
export var
|
|
2358
|
-
var mutationOptions =
|
|
2126
|
+
export var useInvitationsControllerCreateInvitation = function (options) {
|
|
2127
|
+
var mutationOptions = getInvitationsControllerCreateInvitationMutationOptions(options);
|
|
2359
2128
|
return useMutation(mutationOptions);
|
|
2360
2129
|
};
|
|
2361
2130
|
/**
|
|
2362
|
-
* @summary Get
|
|
2131
|
+
* @summary Get invitation details by token
|
|
2363
2132
|
*/
|
|
2364
|
-
export var
|
|
2365
|
-
return customInstance({ url: "/api/
|
|
2133
|
+
export var invitationsControllerGetInvitationByToken = function (token, options, signal) {
|
|
2134
|
+
return customInstance({ url: "/api/invitations/".concat(token), method: 'GET', signal: signal
|
|
2366
2135
|
}, options);
|
|
2367
2136
|
};
|
|
2368
|
-
export var
|
|
2369
|
-
return ["/api/
|
|
2137
|
+
export var getInvitationsControllerGetInvitationByTokenQueryKey = function (token) {
|
|
2138
|
+
return ["/api/invitations/".concat(token)];
|
|
2370
2139
|
};
|
|
2371
|
-
export var
|
|
2140
|
+
export var getInvitationsControllerGetInvitationByTokenQueryOptions = function (token, options) {
|
|
2372
2141
|
var _a;
|
|
2373
2142
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2374
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2143
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getInvitationsControllerGetInvitationByTokenQueryKey(token);
|
|
2375
2144
|
var queryFn = function (_a) {
|
|
2376
2145
|
var signal = _a.signal;
|
|
2377
|
-
return
|
|
2146
|
+
return invitationsControllerGetInvitationByToken(token, requestOptions, signal);
|
|
2378
2147
|
};
|
|
2379
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
2148
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(token) }, queryOptions);
|
|
2380
2149
|
};
|
|
2381
2150
|
/**
|
|
2382
|
-
* @summary Get
|
|
2151
|
+
* @summary Get invitation details by token
|
|
2383
2152
|
*/
|
|
2384
|
-
export var
|
|
2385
|
-
var queryOptions =
|
|
2153
|
+
export var useInvitationsControllerGetInvitationByToken = function (token, options) {
|
|
2154
|
+
var queryOptions = getInvitationsControllerGetInvitationByTokenQueryOptions(token, options);
|
|
2386
2155
|
var query = useQuery(queryOptions);
|
|
2387
2156
|
query.queryKey = queryOptions.queryKey;
|
|
2388
2157
|
return query;
|
|
2389
2158
|
};
|
|
2390
2159
|
/**
|
|
2391
|
-
* @summary
|
|
2160
|
+
* @summary Accept an invitation
|
|
2392
2161
|
*/
|
|
2393
|
-
export var
|
|
2394
|
-
return customInstance({ url: "/api/
|
|
2162
|
+
export var invitationsControllerAcceptInvitation = function (token, options) {
|
|
2163
|
+
return customInstance({ url: "/api/invitations/".concat(token, "/accept"), method: 'POST' }, options);
|
|
2395
2164
|
};
|
|
2396
|
-
export var
|
|
2165
|
+
export var getInvitationsControllerAcceptInvitationMutationOptions = function (options) {
|
|
2397
2166
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2398
2167
|
var mutationFn = function (props) {
|
|
2399
|
-
var
|
|
2400
|
-
return
|
|
2168
|
+
var token = (props !== null && props !== void 0 ? props : {}).token;
|
|
2169
|
+
return invitationsControllerAcceptInvitation(token, requestOptions);
|
|
2401
2170
|
};
|
|
2402
2171
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2403
2172
|
};
|
|
2404
2173
|
/**
|
|
2405
|
-
* @summary
|
|
2174
|
+
* @summary Accept an invitation
|
|
2406
2175
|
*/
|
|
2407
|
-
export var
|
|
2408
|
-
var mutationOptions =
|
|
2176
|
+
export var useInvitationsControllerAcceptInvitation = function (options) {
|
|
2177
|
+
var mutationOptions = getInvitationsControllerAcceptInvitationMutationOptions(options);
|
|
2409
2178
|
return useMutation(mutationOptions);
|
|
2410
2179
|
};
|
|
2411
2180
|
/**
|
|
2412
|
-
* @summary
|
|
2181
|
+
* @summary Handle Plane webhook
|
|
2413
2182
|
*/
|
|
2414
|
-
export var
|
|
2415
|
-
return customInstance({ url: "/api/
|
|
2183
|
+
export var integrationsControllerHandlePlaneWebhook = function (options) {
|
|
2184
|
+
return customInstance({ url: "/api/integrations/plane/webhook", method: 'POST' }, options);
|
|
2416
2185
|
};
|
|
2417
|
-
export var
|
|
2186
|
+
export var getIntegrationsControllerHandlePlaneWebhookMutationOptions = function (options) {
|
|
2418
2187
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2419
|
-
var mutationFn = function (
|
|
2420
|
-
|
|
2421
|
-
return workspaceIntegrationsControllerDeleteWorkspaceIntegration(slug, integrationId, requestOptions);
|
|
2188
|
+
var mutationFn = function () {
|
|
2189
|
+
return integrationsControllerHandlePlaneWebhook(requestOptions);
|
|
2422
2190
|
};
|
|
2423
2191
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2424
2192
|
};
|
|
2425
2193
|
/**
|
|
2426
|
-
* @summary
|
|
2194
|
+
* @summary Handle Plane webhook
|
|
2427
2195
|
*/
|
|
2428
|
-
export var
|
|
2429
|
-
var mutationOptions =
|
|
2196
|
+
export var useIntegrationsControllerHandlePlaneWebhook = function (options) {
|
|
2197
|
+
var mutationOptions = getIntegrationsControllerHandlePlaneWebhookMutationOptions(options);
|
|
2430
2198
|
return useMutation(mutationOptions);
|
|
2431
2199
|
};
|
|
2432
2200
|
/**
|
|
2433
|
-
* @summary
|
|
2201
|
+
* @summary Handle Huly webhook
|
|
2434
2202
|
*/
|
|
2435
|
-
export var
|
|
2436
|
-
return customInstance({ url: "/api/
|
|
2203
|
+
export var integrationsControllerHandleHulyWebhook = function (id, options) {
|
|
2204
|
+
return customInstance({ url: "/api/integrations/huly/webhook/".concat(id), method: 'POST' }, options);
|
|
2437
2205
|
};
|
|
2438
|
-
export var
|
|
2206
|
+
export var getIntegrationsControllerHandleHulyWebhookMutationOptions = function (options) {
|
|
2439
2207
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2440
2208
|
var mutationFn = function (props) {
|
|
2441
|
-
var
|
|
2442
|
-
return
|
|
2209
|
+
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
2210
|
+
return integrationsControllerHandleHulyWebhook(id, requestOptions);
|
|
2443
2211
|
};
|
|
2444
2212
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2445
2213
|
};
|
|
2446
2214
|
/**
|
|
2447
|
-
* @summary
|
|
2215
|
+
* @summary Handle Huly webhook
|
|
2448
2216
|
*/
|
|
2449
|
-
export var
|
|
2450
|
-
var mutationOptions =
|
|
2217
|
+
export var useIntegrationsControllerHandleHulyWebhook = function (options) {
|
|
2218
|
+
var mutationOptions = getIntegrationsControllerHandleHulyWebhookMutationOptions(options);
|
|
2451
2219
|
return useMutation(mutationOptions);
|
|
2452
2220
|
};
|
|
2453
2221
|
/**
|
|
2454
|
-
* @summary Get
|
|
2222
|
+
* @summary Get integration statistics
|
|
2455
2223
|
*/
|
|
2456
|
-
export var
|
|
2457
|
-
return customInstance({ url: "/api/
|
|
2224
|
+
export var integrationsControllerGetStats = function (options, signal) {
|
|
2225
|
+
return customInstance({ url: "/api/integrations/stats", method: 'GET', signal: signal
|
|
2458
2226
|
}, options);
|
|
2459
2227
|
};
|
|
2460
|
-
export var
|
|
2461
|
-
return ["/api/
|
|
2228
|
+
export var getIntegrationsControllerGetStatsQueryKey = function () {
|
|
2229
|
+
return ["/api/integrations/stats"];
|
|
2462
2230
|
};
|
|
2463
|
-
export var
|
|
2231
|
+
export var getIntegrationsControllerGetStatsQueryOptions = function (options) {
|
|
2464
2232
|
var _a;
|
|
2465
2233
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2466
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2234
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetStatsQueryKey();
|
|
2467
2235
|
var queryFn = function (_a) {
|
|
2468
2236
|
var signal = _a.signal;
|
|
2469
|
-
return
|
|
2237
|
+
return integrationsControllerGetStats(requestOptions, signal);
|
|
2470
2238
|
};
|
|
2471
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn
|
|
2239
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2472
2240
|
};
|
|
2473
2241
|
/**
|
|
2474
|
-
* @summary Get
|
|
2242
|
+
* @summary Get integration statistics
|
|
2475
2243
|
*/
|
|
2476
|
-
export var
|
|
2477
|
-
var queryOptions =
|
|
2244
|
+
export var useIntegrationsControllerGetStats = function (options) {
|
|
2245
|
+
var queryOptions = getIntegrationsControllerGetStatsQueryOptions(options);
|
|
2478
2246
|
var query = useQuery(queryOptions);
|
|
2479
2247
|
query.queryKey = queryOptions.queryKey;
|
|
2480
2248
|
return query;
|
|
2481
2249
|
};
|
|
2482
2250
|
/**
|
|
2483
|
-
* @summary
|
|
2484
|
-
*/
|
|
2485
|
-
export var workspaceIntegrationsControllerCreateWorkspaceWebhook = function (slug, createIntegrationWebhookDto, options) {
|
|
2486
|
-
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'POST',
|
|
2487
|
-
headers: { 'Content-Type': 'application/json', },
|
|
2488
|
-
data: createIntegrationWebhookDto }, options);
|
|
2489
|
-
};
|
|
2490
|
-
export var getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions = function (options) {
|
|
2491
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2492
|
-
var mutationFn = function (props) {
|
|
2493
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
2494
|
-
return workspaceIntegrationsControllerCreateWorkspaceWebhook(slug, data, requestOptions);
|
|
2495
|
-
};
|
|
2496
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2497
|
-
};
|
|
2498
|
-
/**
|
|
2499
|
-
* @summary Create an integration webhook for a workspace
|
|
2500
|
-
*/
|
|
2501
|
-
export var useWorkspaceIntegrationsControllerCreateWorkspaceWebhook = function (options) {
|
|
2502
|
-
var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions(options);
|
|
2503
|
-
return useMutation(mutationOptions);
|
|
2504
|
-
};
|
|
2505
|
-
/**
|
|
2506
|
-
* @summary Get notifications for the current user
|
|
2251
|
+
* @summary Get all integration webhooks
|
|
2507
2252
|
*/
|
|
2508
|
-
export var
|
|
2509
|
-
return customInstance({ url: "/api/
|
|
2253
|
+
export var integrationsControllerGetWebhooks = function (options, signal) {
|
|
2254
|
+
return customInstance({ url: "/api/integrations/webhooks", method: 'GET', signal: signal
|
|
2510
2255
|
}, options);
|
|
2511
2256
|
};
|
|
2512
|
-
export var
|
|
2513
|
-
return
|
|
2257
|
+
export var getIntegrationsControllerGetWebhooksQueryKey = function () {
|
|
2258
|
+
return ["/api/integrations/webhooks"];
|
|
2514
2259
|
};
|
|
2515
|
-
export var
|
|
2260
|
+
export var getIntegrationsControllerGetWebhooksQueryOptions = function (options) {
|
|
2516
2261
|
var _a;
|
|
2517
2262
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2518
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2263
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetWebhooksQueryKey();
|
|
2519
2264
|
var queryFn = function (_a) {
|
|
2520
2265
|
var signal = _a.signal;
|
|
2521
|
-
return
|
|
2266
|
+
return integrationsControllerGetWebhooks(requestOptions, signal);
|
|
2522
2267
|
};
|
|
2523
2268
|
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2524
2269
|
};
|
|
2525
2270
|
/**
|
|
2526
|
-
* @summary Get
|
|
2271
|
+
* @summary Get all integration webhooks
|
|
2527
2272
|
*/
|
|
2528
|
-
export var
|
|
2529
|
-
var queryOptions =
|
|
2273
|
+
export var useIntegrationsControllerGetWebhooks = function (options) {
|
|
2274
|
+
var queryOptions = getIntegrationsControllerGetWebhooksQueryOptions(options);
|
|
2530
2275
|
var query = useQuery(queryOptions);
|
|
2531
2276
|
query.queryKey = queryOptions.queryKey;
|
|
2532
2277
|
return query;
|
|
2533
2278
|
};
|
|
2534
2279
|
/**
|
|
2535
|
-
* @summary
|
|
2280
|
+
* @summary Create an integration webhook
|
|
2536
2281
|
*/
|
|
2537
|
-
export var
|
|
2538
|
-
return customInstance({ url: "/api/
|
|
2282
|
+
export var integrationsControllerCreateWebhook = function (createIntegrationWebhookDto, options) {
|
|
2283
|
+
return customInstance({ url: "/api/integrations/webhooks", method: 'POST',
|
|
2284
|
+
headers: { 'Content-Type': 'application/json', },
|
|
2285
|
+
data: createIntegrationWebhookDto }, options);
|
|
2539
2286
|
};
|
|
2540
|
-
export var
|
|
2287
|
+
export var getIntegrationsControllerCreateWebhookMutationOptions = function (options) {
|
|
2541
2288
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2542
|
-
var mutationFn = function () {
|
|
2543
|
-
|
|
2289
|
+
var mutationFn = function (props) {
|
|
2290
|
+
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
2291
|
+
return integrationsControllerCreateWebhook(data, requestOptions);
|
|
2544
2292
|
};
|
|
2545
2293
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2546
2294
|
};
|
|
2547
2295
|
/**
|
|
2548
|
-
* @summary
|
|
2296
|
+
* @summary Create an integration webhook
|
|
2549
2297
|
*/
|
|
2550
|
-
export var
|
|
2551
|
-
var mutationOptions =
|
|
2298
|
+
export var useIntegrationsControllerCreateWebhook = function (options) {
|
|
2299
|
+
var mutationOptions = getIntegrationsControllerCreateWebhookMutationOptions(options);
|
|
2552
2300
|
return useMutation(mutationOptions);
|
|
2553
2301
|
};
|
|
2554
2302
|
/**
|
|
2555
|
-
* @summary
|
|
2303
|
+
* @summary Update an integration webhook
|
|
2556
2304
|
*/
|
|
2557
|
-
export var
|
|
2558
|
-
return customInstance({ url: "/api/
|
|
2559
|
-
}, options);
|
|
2560
|
-
};
|
|
2561
|
-
export var getNotificationsControllerGetWorkspaceSettingsQueryKey = function (params) {
|
|
2562
|
-
return __spreadArray(["/api/notifications/settings/workspace"], (params ? [params] : []), true);
|
|
2305
|
+
export var integrationsControllerUpdateWebhook = function (webhookId, options) {
|
|
2306
|
+
return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'PATCH' }, options);
|
|
2563
2307
|
};
|
|
2564
|
-
export var
|
|
2565
|
-
var _a;
|
|
2566
|
-
var
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
var signal = _a.signal;
|
|
2570
|
-
return notificationsControllerGetWorkspaceSettings(params, requestOptions, signal);
|
|
2308
|
+
export var getIntegrationsControllerUpdateWebhookMutationOptions = function (options) {
|
|
2309
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2310
|
+
var mutationFn = function (props) {
|
|
2311
|
+
var webhookId = (props !== null && props !== void 0 ? props : {}).webhookId;
|
|
2312
|
+
return integrationsControllerUpdateWebhook(webhookId, requestOptions);
|
|
2571
2313
|
};
|
|
2572
|
-
return __assign({
|
|
2314
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2573
2315
|
};
|
|
2574
2316
|
/**
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
export var
|
|
2578
|
-
var
|
|
2579
|
-
|
|
2580
|
-
query.queryKey = queryOptions.queryKey;
|
|
2581
|
-
return query;
|
|
2317
|
+
* @summary Update an integration webhook
|
|
2318
|
+
*/
|
|
2319
|
+
export var useIntegrationsControllerUpdateWebhook = function (options) {
|
|
2320
|
+
var mutationOptions = getIntegrationsControllerUpdateWebhookMutationOptions(options);
|
|
2321
|
+
return useMutation(mutationOptions);
|
|
2582
2322
|
};
|
|
2583
2323
|
/**
|
|
2584
|
-
* @summary
|
|
2324
|
+
* @summary Delete an integration webhook
|
|
2585
2325
|
*/
|
|
2586
|
-
export var
|
|
2587
|
-
return customInstance({ url: "/api/
|
|
2588
|
-
headers: { 'Content-Type': 'application/json', },
|
|
2589
|
-
data: workspaceSettingsDto }, options);
|
|
2326
|
+
export var integrationsControllerDeleteWebhook = function (webhookId, options) {
|
|
2327
|
+
return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'DELETE' }, options);
|
|
2590
2328
|
};
|
|
2591
|
-
export var
|
|
2329
|
+
export var getIntegrationsControllerDeleteWebhookMutationOptions = function (options) {
|
|
2592
2330
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2593
2331
|
var mutationFn = function (props) {
|
|
2594
|
-
var
|
|
2595
|
-
return
|
|
2332
|
+
var webhookId = (props !== null && props !== void 0 ? props : {}).webhookId;
|
|
2333
|
+
return integrationsControllerDeleteWebhook(webhookId, requestOptions);
|
|
2596
2334
|
};
|
|
2597
2335
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2598
2336
|
};
|
|
2599
2337
|
/**
|
|
2600
|
-
* @summary
|
|
2338
|
+
* @summary Delete an integration webhook
|
|
2601
2339
|
*/
|
|
2602
|
-
export var
|
|
2603
|
-
var mutationOptions =
|
|
2340
|
+
export var useIntegrationsControllerDeleteWebhook = function (options) {
|
|
2341
|
+
var mutationOptions = getIntegrationsControllerDeleteWebhookMutationOptions(options);
|
|
2604
2342
|
return useMutation(mutationOptions);
|
|
2605
2343
|
};
|
|
2606
2344
|
/**
|
|
2607
|
-
* @summary Get
|
|
2345
|
+
* @summary Get integration webhook logs
|
|
2608
2346
|
*/
|
|
2609
|
-
export var
|
|
2610
|
-
return customInstance({ url: "/api/
|
|
2347
|
+
export var integrationsControllerGetWebhookLogs = function (webhookId, options, signal) {
|
|
2348
|
+
return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId, "/logs"), method: 'GET', signal: signal
|
|
2611
2349
|
}, options);
|
|
2612
2350
|
};
|
|
2613
|
-
export var
|
|
2614
|
-
return
|
|
2351
|
+
export var getIntegrationsControllerGetWebhookLogsQueryKey = function (webhookId) {
|
|
2352
|
+
return ["/api/integrations/webhooks/".concat(webhookId, "/logs")];
|
|
2615
2353
|
};
|
|
2616
|
-
export var
|
|
2354
|
+
export var getIntegrationsControllerGetWebhookLogsQueryOptions = function (webhookId, options) {
|
|
2617
2355
|
var _a;
|
|
2618
2356
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2619
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2357
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetWebhookLogsQueryKey(webhookId);
|
|
2620
2358
|
var queryFn = function (_a) {
|
|
2621
2359
|
var signal = _a.signal;
|
|
2622
|
-
return
|
|
2360
|
+
return integrationsControllerGetWebhookLogs(webhookId, requestOptions, signal);
|
|
2623
2361
|
};
|
|
2624
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2362
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(webhookId) }, queryOptions);
|
|
2625
2363
|
};
|
|
2626
2364
|
/**
|
|
2627
|
-
* @summary Get
|
|
2365
|
+
* @summary Get integration webhook logs
|
|
2628
2366
|
*/
|
|
2629
|
-
export var
|
|
2630
|
-
var queryOptions =
|
|
2367
|
+
export var useIntegrationsControllerGetWebhookLogs = function (webhookId, options) {
|
|
2368
|
+
var queryOptions = getIntegrationsControllerGetWebhookLogsQueryOptions(webhookId, options);
|
|
2631
2369
|
var query = useQuery(queryOptions);
|
|
2632
2370
|
query.queryKey = queryOptions.queryKey;
|
|
2633
2371
|
return query;
|
|
2634
2372
|
};
|
|
2635
2373
|
/**
|
|
2636
|
-
* @summary
|
|
2374
|
+
* @summary Get all integration API keys
|
|
2637
2375
|
*/
|
|
2638
|
-
export var
|
|
2639
|
-
return customInstance({ url: "/api/
|
|
2640
|
-
|
|
2641
|
-
data: channelSettingsDto }, options);
|
|
2376
|
+
export var integrationsControllerGetApiKeys = function (options, signal) {
|
|
2377
|
+
return customInstance({ url: "/api/integrations/api-keys", method: 'GET', signal: signal
|
|
2378
|
+
}, options);
|
|
2642
2379
|
};
|
|
2643
|
-
export var
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2380
|
+
export var getIntegrationsControllerGetApiKeysQueryKey = function () {
|
|
2381
|
+
return ["/api/integrations/api-keys"];
|
|
2382
|
+
};
|
|
2383
|
+
export var getIntegrationsControllerGetApiKeysQueryOptions = function (options) {
|
|
2384
|
+
var _a;
|
|
2385
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2386
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetApiKeysQueryKey();
|
|
2387
|
+
var queryFn = function (_a) {
|
|
2388
|
+
var signal = _a.signal;
|
|
2389
|
+
return integrationsControllerGetApiKeys(requestOptions, signal);
|
|
2648
2390
|
};
|
|
2649
|
-
return __assign({
|
|
2391
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2650
2392
|
};
|
|
2651
2393
|
/**
|
|
2652
|
-
* @summary
|
|
2653
|
-
*/
|
|
2654
|
-
export var
|
|
2655
|
-
var
|
|
2656
|
-
|
|
2394
|
+
* @summary Get all integration API keys
|
|
2395
|
+
*/
|
|
2396
|
+
export var useIntegrationsControllerGetApiKeys = function (options) {
|
|
2397
|
+
var queryOptions = getIntegrationsControllerGetApiKeysQueryOptions(options);
|
|
2398
|
+
var query = useQuery(queryOptions);
|
|
2399
|
+
query.queryKey = queryOptions.queryKey;
|
|
2400
|
+
return query;
|
|
2657
2401
|
};
|
|
2658
2402
|
/**
|
|
2659
|
-
* @summary Update
|
|
2403
|
+
* @summary Update an integration API key
|
|
2660
2404
|
*/
|
|
2661
|
-
export var
|
|
2662
|
-
return customInstance({ url: "/api/
|
|
2663
|
-
headers: { 'Content-Type': 'application/json', },
|
|
2664
|
-
data: updateNotificationDto }, options);
|
|
2405
|
+
export var integrationsControllerUpdateApiKey = function (keyId, options) {
|
|
2406
|
+
return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'PATCH' }, options);
|
|
2665
2407
|
};
|
|
2666
|
-
export var
|
|
2408
|
+
export var getIntegrationsControllerUpdateApiKeyMutationOptions = function (options) {
|
|
2667
2409
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2668
2410
|
var mutationFn = function (props) {
|
|
2669
|
-
var
|
|
2670
|
-
return
|
|
2411
|
+
var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
|
|
2412
|
+
return integrationsControllerUpdateApiKey(keyId, requestOptions);
|
|
2671
2413
|
};
|
|
2672
2414
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2673
2415
|
};
|
|
2674
2416
|
/**
|
|
2675
|
-
* @summary Update
|
|
2417
|
+
* @summary Update an integration API key
|
|
2676
2418
|
*/
|
|
2677
|
-
export var
|
|
2678
|
-
var mutationOptions =
|
|
2419
|
+
export var useIntegrationsControllerUpdateApiKey = function (options) {
|
|
2420
|
+
var mutationOptions = getIntegrationsControllerUpdateApiKeyMutationOptions(options);
|
|
2679
2421
|
return useMutation(mutationOptions);
|
|
2680
2422
|
};
|
|
2681
2423
|
/**
|
|
2682
|
-
* @summary Delete
|
|
2683
|
-
*/
|
|
2684
|
-
export var notificationsControllerDeleteNotification = function (notificationId, options) {
|
|
2685
|
-
return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'DELETE' }, options);
|
|
2686
|
-
};
|
|
2687
|
-
export var getNotificationsControllerDeleteNotificationMutationOptions = function (options) {
|
|
2688
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2689
|
-
var mutationFn = function (props) {
|
|
2690
|
-
var notificationId = (props !== null && props !== void 0 ? props : {}).notificationId;
|
|
2691
|
-
return notificationsControllerDeleteNotification(notificationId, requestOptions);
|
|
2692
|
-
};
|
|
2693
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2694
|
-
};
|
|
2695
|
-
/**
|
|
2696
|
-
* @summary Delete a notification
|
|
2697
|
-
*/
|
|
2698
|
-
export var useNotificationsControllerDeleteNotification = function (options) {
|
|
2699
|
-
var mutationOptions = getNotificationsControllerDeleteNotificationMutationOptions(options);
|
|
2700
|
-
return useMutation(mutationOptions);
|
|
2701
|
-
};
|
|
2702
|
-
export var ablyControllerGetToken = function (options) {
|
|
2703
|
-
return customInstance({ url: "/api/ably/token", method: 'POST' }, options);
|
|
2704
|
-
};
|
|
2705
|
-
export var getAblyControllerGetTokenMutationOptions = function (options) {
|
|
2706
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2707
|
-
var mutationFn = function () {
|
|
2708
|
-
return ablyControllerGetToken(requestOptions);
|
|
2709
|
-
};
|
|
2710
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2711
|
-
};
|
|
2712
|
-
export var useAblyControllerGetToken = function (options) {
|
|
2713
|
-
var mutationOptions = getAblyControllerGetTokenMutationOptions(options);
|
|
2714
|
-
return useMutation(mutationOptions);
|
|
2715
|
-
};
|
|
2716
|
-
/**
|
|
2717
|
-
* @summary Upload a file
|
|
2718
|
-
*/
|
|
2719
|
-
export var storageControllerUploadFile = function (storageControllerUploadFileBody, options) {
|
|
2720
|
-
var formData = new FormData();
|
|
2721
|
-
if (storageControllerUploadFileBody.file !== undefined) {
|
|
2722
|
-
formData.append('file', storageControllerUploadFileBody.file);
|
|
2723
|
-
}
|
|
2724
|
-
return customInstance({ url: "/api/storage/upload", method: 'POST',
|
|
2725
|
-
headers: { 'Content-Type': 'multipart/form-data', },
|
|
2726
|
-
data: formData }, options);
|
|
2727
|
-
};
|
|
2728
|
-
export var getStorageControllerUploadFileMutationOptions = function (options) {
|
|
2729
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2730
|
-
var mutationFn = function (props) {
|
|
2731
|
-
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
2732
|
-
return storageControllerUploadFile(data, requestOptions);
|
|
2733
|
-
};
|
|
2734
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2735
|
-
};
|
|
2736
|
-
/**
|
|
2737
|
-
* @summary Upload a file
|
|
2738
|
-
*/
|
|
2739
|
-
export var useStorageControllerUploadFile = function (options) {
|
|
2740
|
-
var mutationOptions = getStorageControllerUploadFileMutationOptions(options);
|
|
2741
|
-
return useMutation(mutationOptions);
|
|
2742
|
-
};
|
|
2743
|
-
/**
|
|
2744
|
-
* @summary Proxy file request using high-performance streaming
|
|
2745
|
-
*/
|
|
2746
|
-
export var shortUrlControllerRedirect = function (code, options, signal) {
|
|
2747
|
-
return customInstance({ url: "/s/".concat(code), method: 'GET', signal: signal
|
|
2748
|
-
}, options);
|
|
2749
|
-
};
|
|
2750
|
-
export var getShortUrlControllerRedirectQueryKey = function (code) {
|
|
2751
|
-
return ["/s/".concat(code)];
|
|
2752
|
-
};
|
|
2753
|
-
export var getShortUrlControllerRedirectQueryOptions = function (code, options) {
|
|
2754
|
-
var _a;
|
|
2755
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2756
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getShortUrlControllerRedirectQueryKey(code);
|
|
2757
|
-
var queryFn = function (_a) {
|
|
2758
|
-
var signal = _a.signal;
|
|
2759
|
-
return shortUrlControllerRedirect(code, requestOptions, signal);
|
|
2760
|
-
};
|
|
2761
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(code) }, queryOptions);
|
|
2762
|
-
};
|
|
2763
|
-
/**
|
|
2764
|
-
* @summary Proxy file request using high-performance streaming
|
|
2765
|
-
*/
|
|
2766
|
-
export var useShortUrlControllerRedirect = function (code, options) {
|
|
2767
|
-
var queryOptions = getShortUrlControllerRedirectQueryOptions(code, options);
|
|
2768
|
-
var query = useQuery(queryOptions);
|
|
2769
|
-
query.queryKey = queryOptions.queryKey;
|
|
2770
|
-
return query;
|
|
2771
|
-
};
|
|
2772
|
-
export var v10UsersControllerGetUser = function (id, options, signal) {
|
|
2773
|
-
return customInstance({ url: "/api/bot/v10/users/".concat(id), method: 'GET', signal: signal
|
|
2774
|
-
}, options);
|
|
2775
|
-
};
|
|
2776
|
-
export var getV10UsersControllerGetUserQueryKey = function (id) {
|
|
2777
|
-
return ["/api/bot/v10/users/".concat(id)];
|
|
2778
|
-
};
|
|
2779
|
-
export var getV10UsersControllerGetUserQueryOptions = function (id, options) {
|
|
2780
|
-
var _a;
|
|
2781
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2782
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10UsersControllerGetUserQueryKey(id);
|
|
2783
|
-
var queryFn = function (_a) {
|
|
2784
|
-
var signal = _a.signal;
|
|
2785
|
-
return v10UsersControllerGetUser(id, requestOptions, signal);
|
|
2786
|
-
};
|
|
2787
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
2788
|
-
};
|
|
2789
|
-
export var useV10UsersControllerGetUser = function (id, options) {
|
|
2790
|
-
var queryOptions = getV10UsersControllerGetUserQueryOptions(id, options);
|
|
2791
|
-
var query = useQuery(queryOptions);
|
|
2792
|
-
query.queryKey = queryOptions.queryKey;
|
|
2793
|
-
return query;
|
|
2794
|
-
};
|
|
2795
|
-
export var v10UsersControllerGetMe = function (options, signal) {
|
|
2796
|
-
return customInstance({ url: "/api/bot/v10/users/@me", method: 'GET', signal: signal
|
|
2797
|
-
}, options);
|
|
2798
|
-
};
|
|
2799
|
-
export var getV10UsersControllerGetMeQueryKey = function () {
|
|
2800
|
-
return ["/api/bot/v10/users/@me"];
|
|
2801
|
-
};
|
|
2802
|
-
export var getV10UsersControllerGetMeQueryOptions = function (options) {
|
|
2803
|
-
var _a;
|
|
2804
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2805
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10UsersControllerGetMeQueryKey();
|
|
2806
|
-
var queryFn = function (_a) {
|
|
2807
|
-
var signal = _a.signal;
|
|
2808
|
-
return v10UsersControllerGetMe(requestOptions, signal);
|
|
2809
|
-
};
|
|
2810
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2811
|
-
};
|
|
2812
|
-
export var useV10UsersControllerGetMe = function (options) {
|
|
2813
|
-
var queryOptions = getV10UsersControllerGetMeQueryOptions(options);
|
|
2814
|
-
var query = useQuery(queryOptions);
|
|
2815
|
-
query.queryKey = queryOptions.queryKey;
|
|
2816
|
-
return query;
|
|
2817
|
-
};
|
|
2818
|
-
export var v10GatewayControllerGetBotGateway = function (options, signal) {
|
|
2819
|
-
return customInstance({ url: "/api/bot/v10/gateway/bot", method: 'GET', signal: signal
|
|
2820
|
-
}, options);
|
|
2821
|
-
};
|
|
2822
|
-
export var getV10GatewayControllerGetBotGatewayQueryKey = function () {
|
|
2823
|
-
return ["/api/bot/v10/gateway/bot"];
|
|
2824
|
-
};
|
|
2825
|
-
export var getV10GatewayControllerGetBotGatewayQueryOptions = function (options) {
|
|
2826
|
-
var _a;
|
|
2827
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2828
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GatewayControllerGetBotGatewayQueryKey();
|
|
2829
|
-
var queryFn = function (_a) {
|
|
2830
|
-
var signal = _a.signal;
|
|
2831
|
-
return v10GatewayControllerGetBotGateway(requestOptions, signal);
|
|
2832
|
-
};
|
|
2833
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2834
|
-
};
|
|
2835
|
-
export var useV10GatewayControllerGetBotGateway = function (options) {
|
|
2836
|
-
var queryOptions = getV10GatewayControllerGetBotGatewayQueryOptions(options);
|
|
2837
|
-
var query = useQuery(queryOptions);
|
|
2838
|
-
query.queryKey = queryOptions.queryKey;
|
|
2839
|
-
return query;
|
|
2840
|
-
};
|
|
2841
|
-
export var v10GatewayControllerBotAuth = function (options) {
|
|
2842
|
-
return customInstance({ url: "/api/bot/v10/gateway/auth", method: 'POST' }, options);
|
|
2843
|
-
};
|
|
2844
|
-
export var getV10GatewayControllerBotAuthMutationOptions = function (options) {
|
|
2845
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2846
|
-
var mutationFn = function () {
|
|
2847
|
-
return v10GatewayControllerBotAuth(requestOptions);
|
|
2848
|
-
};
|
|
2849
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2850
|
-
};
|
|
2851
|
-
export var useV10GatewayControllerBotAuth = function (options) {
|
|
2852
|
-
var mutationOptions = getV10GatewayControllerBotAuthMutationOptions(options);
|
|
2853
|
-
return useMutation(mutationOptions);
|
|
2854
|
-
};
|
|
2855
|
-
/**
|
|
2856
|
-
* @summary Get channel details
|
|
2857
|
-
*/
|
|
2858
|
-
export var v10ChannelsControllerGetChannel = function (id, options, signal) {
|
|
2859
|
-
return customInstance({ url: "/api/bot/v10/channels/".concat(id), method: 'GET', signal: signal
|
|
2860
|
-
}, options);
|
|
2861
|
-
};
|
|
2862
|
-
export var getV10ChannelsControllerGetChannelQueryKey = function (id) {
|
|
2863
|
-
return ["/api/bot/v10/channels/".concat(id)];
|
|
2864
|
-
};
|
|
2865
|
-
export var getV10ChannelsControllerGetChannelQueryOptions = function (id, options) {
|
|
2866
|
-
var _a;
|
|
2867
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2868
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ChannelsControllerGetChannelQueryKey(id);
|
|
2869
|
-
var queryFn = function (_a) {
|
|
2870
|
-
var signal = _a.signal;
|
|
2871
|
-
return v10ChannelsControllerGetChannel(id, requestOptions, signal);
|
|
2872
|
-
};
|
|
2873
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
2874
|
-
};
|
|
2875
|
-
/**
|
|
2876
|
-
* @summary Get channel details
|
|
2877
|
-
*/
|
|
2878
|
-
export var useV10ChannelsControllerGetChannel = function (id, options) {
|
|
2879
|
-
var queryOptions = getV10ChannelsControllerGetChannelQueryOptions(id, options);
|
|
2880
|
-
var query = useQuery(queryOptions);
|
|
2881
|
-
query.queryKey = queryOptions.queryKey;
|
|
2882
|
-
return query;
|
|
2883
|
-
};
|
|
2884
|
-
/**
|
|
2885
|
-
* @summary Send a message to a channel
|
|
2886
|
-
*/
|
|
2887
|
-
export var v10ChannelsControllerCreateMessage = function (id, options) {
|
|
2888
|
-
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages"), method: 'POST' }, options);
|
|
2889
|
-
};
|
|
2890
|
-
export var getV10ChannelsControllerCreateMessageMutationOptions = function (options) {
|
|
2891
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2892
|
-
var mutationFn = function (props) {
|
|
2893
|
-
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
2894
|
-
return v10ChannelsControllerCreateMessage(id, requestOptions);
|
|
2895
|
-
};
|
|
2896
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2897
|
-
};
|
|
2898
|
-
/**
|
|
2899
|
-
* @summary Send a message to a channel
|
|
2900
|
-
*/
|
|
2901
|
-
export var useV10ChannelsControllerCreateMessage = function (options) {
|
|
2902
|
-
var mutationOptions = getV10ChannelsControllerCreateMessageMutationOptions(options);
|
|
2903
|
-
return useMutation(mutationOptions);
|
|
2904
|
-
};
|
|
2905
|
-
/**
|
|
2906
|
-
* @summary Get messages from a channel
|
|
2907
|
-
*/
|
|
2908
|
-
export var v10ChannelsControllerGetMessages = function (id, params, options, signal) {
|
|
2909
|
-
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages"), method: 'GET', params: params, signal: signal
|
|
2910
|
-
}, options);
|
|
2911
|
-
};
|
|
2912
|
-
export var getV10ChannelsControllerGetMessagesQueryKey = function (id, params) {
|
|
2913
|
-
return __spreadArray(["/api/bot/v10/channels/".concat(id, "/messages")], (params ? [params] : []), true);
|
|
2914
|
-
};
|
|
2915
|
-
export var getV10ChannelsControllerGetMessagesQueryOptions = function (id, params, options) {
|
|
2916
|
-
var _a;
|
|
2917
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2918
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ChannelsControllerGetMessagesQueryKey(id, params);
|
|
2919
|
-
var queryFn = function (_a) {
|
|
2920
|
-
var signal = _a.signal;
|
|
2921
|
-
return v10ChannelsControllerGetMessages(id, params, requestOptions, signal);
|
|
2922
|
-
};
|
|
2923
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
2924
|
-
};
|
|
2925
|
-
/**
|
|
2926
|
-
* @summary Get messages from a channel
|
|
2927
|
-
*/
|
|
2928
|
-
export var useV10ChannelsControllerGetMessages = function (id, params, options) {
|
|
2929
|
-
var queryOptions = getV10ChannelsControllerGetMessagesQueryOptions(id, params, options);
|
|
2930
|
-
var query = useQuery(queryOptions);
|
|
2931
|
-
query.queryKey = queryOptions.queryKey;
|
|
2932
|
-
return query;
|
|
2933
|
-
};
|
|
2934
|
-
/**
|
|
2935
|
-
* @summary Update a message
|
|
2936
|
-
*/
|
|
2937
|
-
export var v10ChannelsControllerUpdateMessage = function (id, messageId, options) {
|
|
2938
|
-
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages/").concat(messageId), method: 'PATCH' }, options);
|
|
2939
|
-
};
|
|
2940
|
-
export var getV10ChannelsControllerUpdateMessageMutationOptions = function (options) {
|
|
2941
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2942
|
-
var mutationFn = function (props) {
|
|
2943
|
-
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, messageId = _a.messageId;
|
|
2944
|
-
return v10ChannelsControllerUpdateMessage(id, messageId, requestOptions);
|
|
2945
|
-
};
|
|
2946
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2947
|
-
};
|
|
2948
|
-
/**
|
|
2949
|
-
* @summary Update a message
|
|
2950
|
-
*/
|
|
2951
|
-
export var useV10ChannelsControllerUpdateMessage = function (options) {
|
|
2952
|
-
var mutationOptions = getV10ChannelsControllerUpdateMessageMutationOptions(options);
|
|
2953
|
-
return useMutation(mutationOptions);
|
|
2954
|
-
};
|
|
2955
|
-
/**
|
|
2956
|
-
* @summary Delete a message
|
|
2957
|
-
*/
|
|
2958
|
-
export var v10ChannelsControllerDeleteMessage = function (id, messageId, options) {
|
|
2959
|
-
return customInstance({ url: "/api/bot/v10/channels/".concat(id, "/messages/").concat(messageId), method: 'DELETE' }, options);
|
|
2960
|
-
};
|
|
2961
|
-
export var getV10ChannelsControllerDeleteMessageMutationOptions = function (options) {
|
|
2962
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2963
|
-
var mutationFn = function (props) {
|
|
2964
|
-
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, messageId = _a.messageId;
|
|
2965
|
-
return v10ChannelsControllerDeleteMessage(id, messageId, requestOptions);
|
|
2966
|
-
};
|
|
2967
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2968
|
-
};
|
|
2969
|
-
/**
|
|
2970
|
-
* @summary Delete a message
|
|
2971
|
-
*/
|
|
2972
|
-
export var useV10ChannelsControllerDeleteMessage = function (options) {
|
|
2973
|
-
var mutationOptions = getV10ChannelsControllerDeleteMessageMutationOptions(options);
|
|
2974
|
-
return useMutation(mutationOptions);
|
|
2975
|
-
};
|
|
2976
|
-
export var v10GuildsControllerGetGuild = function (guildId, options, signal) {
|
|
2977
|
-
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId), method: 'GET', signal: signal
|
|
2978
|
-
}, options);
|
|
2979
|
-
};
|
|
2980
|
-
export var getV10GuildsControllerGetGuildQueryKey = function (guildId) {
|
|
2981
|
-
return ["/api/bot/v10/guilds/".concat(guildId)];
|
|
2982
|
-
};
|
|
2983
|
-
export var getV10GuildsControllerGetGuildQueryOptions = function (guildId, options) {
|
|
2984
|
-
var _a;
|
|
2985
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2986
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetGuildQueryKey(guildId);
|
|
2987
|
-
var queryFn = function (_a) {
|
|
2988
|
-
var signal = _a.signal;
|
|
2989
|
-
return v10GuildsControllerGetGuild(guildId, requestOptions, signal);
|
|
2990
|
-
};
|
|
2991
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
2992
|
-
};
|
|
2993
|
-
export var useV10GuildsControllerGetGuild = function (guildId, options) {
|
|
2994
|
-
var queryOptions = getV10GuildsControllerGetGuildQueryOptions(guildId, options);
|
|
2995
|
-
var query = useQuery(queryOptions);
|
|
2996
|
-
query.queryKey = queryOptions.queryKey;
|
|
2997
|
-
return query;
|
|
2998
|
-
};
|
|
2999
|
-
export var v10GuildsControllerGetChannels = function (guildId, options, signal) {
|
|
3000
|
-
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/channels"), method: 'GET', signal: signal
|
|
3001
|
-
}, options);
|
|
3002
|
-
};
|
|
3003
|
-
export var getV10GuildsControllerGetChannelsQueryKey = function (guildId) {
|
|
3004
|
-
return ["/api/bot/v10/guilds/".concat(guildId, "/channels")];
|
|
3005
|
-
};
|
|
3006
|
-
export var getV10GuildsControllerGetChannelsQueryOptions = function (guildId, options) {
|
|
3007
|
-
var _a;
|
|
3008
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3009
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetChannelsQueryKey(guildId);
|
|
3010
|
-
var queryFn = function (_a) {
|
|
3011
|
-
var signal = _a.signal;
|
|
3012
|
-
return v10GuildsControllerGetChannels(guildId, requestOptions, signal);
|
|
3013
|
-
};
|
|
3014
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
3015
|
-
};
|
|
3016
|
-
export var useV10GuildsControllerGetChannels = function (guildId, options) {
|
|
3017
|
-
var queryOptions = getV10GuildsControllerGetChannelsQueryOptions(guildId, options);
|
|
3018
|
-
var query = useQuery(queryOptions);
|
|
3019
|
-
query.queryKey = queryOptions.queryKey;
|
|
3020
|
-
return query;
|
|
3021
|
-
};
|
|
3022
|
-
export var v10GuildsControllerGetMembers = function (guildId, options, signal) {
|
|
3023
|
-
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members"), method: 'GET', signal: signal
|
|
3024
|
-
}, options);
|
|
3025
|
-
};
|
|
3026
|
-
export var getV10GuildsControllerGetMembersQueryKey = function (guildId) {
|
|
3027
|
-
return ["/api/bot/v10/guilds/".concat(guildId, "/members")];
|
|
3028
|
-
};
|
|
3029
|
-
export var getV10GuildsControllerGetMembersQueryOptions = function (guildId, options) {
|
|
3030
|
-
var _a;
|
|
3031
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3032
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetMembersQueryKey(guildId);
|
|
3033
|
-
var queryFn = function (_a) {
|
|
3034
|
-
var signal = _a.signal;
|
|
3035
|
-
return v10GuildsControllerGetMembers(guildId, requestOptions, signal);
|
|
3036
|
-
};
|
|
3037
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
3038
|
-
};
|
|
3039
|
-
export var useV10GuildsControllerGetMembers = function (guildId, options) {
|
|
3040
|
-
var queryOptions = getV10GuildsControllerGetMembersQueryOptions(guildId, options);
|
|
3041
|
-
var query = useQuery(queryOptions);
|
|
3042
|
-
query.queryKey = queryOptions.queryKey;
|
|
3043
|
-
return query;
|
|
3044
|
-
};
|
|
3045
|
-
export var v10GuildsControllerGetRoles = function (guildId, options, signal) {
|
|
3046
|
-
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/roles"), method: 'GET', signal: signal
|
|
3047
|
-
}, options);
|
|
3048
|
-
};
|
|
3049
|
-
export var getV10GuildsControllerGetRolesQueryKey = function (guildId) {
|
|
3050
|
-
return ["/api/bot/v10/guilds/".concat(guildId, "/roles")];
|
|
3051
|
-
};
|
|
3052
|
-
export var getV10GuildsControllerGetRolesQueryOptions = function (guildId, options) {
|
|
3053
|
-
var _a;
|
|
3054
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3055
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10GuildsControllerGetRolesQueryKey(guildId);
|
|
3056
|
-
var queryFn = function (_a) {
|
|
3057
|
-
var signal = _a.signal;
|
|
3058
|
-
return v10GuildsControllerGetRoles(guildId, requestOptions, signal);
|
|
3059
|
-
};
|
|
3060
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(guildId) }, queryOptions);
|
|
3061
|
-
};
|
|
3062
|
-
export var useV10GuildsControllerGetRoles = function (guildId, options) {
|
|
3063
|
-
var queryOptions = getV10GuildsControllerGetRolesQueryOptions(guildId, options);
|
|
3064
|
-
var query = useQuery(queryOptions);
|
|
3065
|
-
query.queryKey = queryOptions.queryKey;
|
|
3066
|
-
return query;
|
|
3067
|
-
};
|
|
3068
|
-
export var v10GuildsControllerAddMemberRole = function (guildId, userId, roleId, options) {
|
|
3069
|
-
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members/").concat(userId, "/roles/").concat(roleId), method: 'PUT' }, options);
|
|
3070
|
-
};
|
|
3071
|
-
export var getV10GuildsControllerAddMemberRoleMutationOptions = function (options) {
|
|
3072
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3073
|
-
var mutationFn = function (props) {
|
|
3074
|
-
var _a = props !== null && props !== void 0 ? props : {}, guildId = _a.guildId, userId = _a.userId, roleId = _a.roleId;
|
|
3075
|
-
return v10GuildsControllerAddMemberRole(guildId, userId, roleId, requestOptions);
|
|
3076
|
-
};
|
|
3077
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3078
|
-
};
|
|
3079
|
-
export var useV10GuildsControllerAddMemberRole = function (options) {
|
|
3080
|
-
var mutationOptions = getV10GuildsControllerAddMemberRoleMutationOptions(options);
|
|
3081
|
-
return useMutation(mutationOptions);
|
|
3082
|
-
};
|
|
3083
|
-
export var v10GuildsControllerRemoveMemberRole = function (guildId, userId, roleId, options) {
|
|
3084
|
-
return customInstance({ url: "/api/bot/v10/guilds/".concat(guildId, "/members/").concat(userId, "/roles/").concat(roleId), method: 'DELETE' }, options);
|
|
3085
|
-
};
|
|
3086
|
-
export var getV10GuildsControllerRemoveMemberRoleMutationOptions = function (options) {
|
|
3087
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3088
|
-
var mutationFn = function (props) {
|
|
3089
|
-
var _a = props !== null && props !== void 0 ? props : {}, guildId = _a.guildId, userId = _a.userId, roleId = _a.roleId;
|
|
3090
|
-
return v10GuildsControllerRemoveMemberRole(guildId, userId, roleId, requestOptions);
|
|
3091
|
-
};
|
|
3092
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3093
|
-
};
|
|
3094
|
-
export var useV10GuildsControllerRemoveMemberRole = function (options) {
|
|
3095
|
-
var mutationOptions = getV10GuildsControllerRemoveMemberRoleMutationOptions(options);
|
|
3096
|
-
return useMutation(mutationOptions);
|
|
3097
|
-
};
|
|
3098
|
-
export var v10ApplicationsControllerGetCommands = function (id, options, signal) {
|
|
3099
|
-
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/commands"), method: 'GET', signal: signal
|
|
3100
|
-
}, options);
|
|
3101
|
-
};
|
|
3102
|
-
export var getV10ApplicationsControllerGetCommandsQueryKey = function (id) {
|
|
3103
|
-
return ["/api/bot/v10/applications/".concat(id, "/commands")];
|
|
3104
|
-
};
|
|
3105
|
-
export var getV10ApplicationsControllerGetCommandsQueryOptions = function (id, options) {
|
|
3106
|
-
var _a;
|
|
3107
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3108
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ApplicationsControllerGetCommandsQueryKey(id);
|
|
3109
|
-
var queryFn = function (_a) {
|
|
3110
|
-
var signal = _a.signal;
|
|
3111
|
-
return v10ApplicationsControllerGetCommands(id, requestOptions, signal);
|
|
3112
|
-
};
|
|
3113
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
|
|
3114
|
-
};
|
|
3115
|
-
export var useV10ApplicationsControllerGetCommands = function (id, options) {
|
|
3116
|
-
var queryOptions = getV10ApplicationsControllerGetCommandsQueryOptions(id, options);
|
|
3117
|
-
var query = useQuery(queryOptions);
|
|
3118
|
-
query.queryKey = queryOptions.queryKey;
|
|
3119
|
-
return query;
|
|
3120
|
-
};
|
|
3121
|
-
export var v10ApplicationsControllerCreateCommand = function (id, options) {
|
|
3122
|
-
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/commands"), method: 'POST' }, options);
|
|
3123
|
-
};
|
|
3124
|
-
export var getV10ApplicationsControllerCreateCommandMutationOptions = function (options) {
|
|
3125
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3126
|
-
var mutationFn = function (props) {
|
|
3127
|
-
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
3128
|
-
return v10ApplicationsControllerCreateCommand(id, requestOptions);
|
|
3129
|
-
};
|
|
3130
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3131
|
-
};
|
|
3132
|
-
export var useV10ApplicationsControllerCreateCommand = function (options) {
|
|
3133
|
-
var mutationOptions = getV10ApplicationsControllerCreateCommandMutationOptions(options);
|
|
3134
|
-
return useMutation(mutationOptions);
|
|
3135
|
-
};
|
|
3136
|
-
export var v10ApplicationsControllerGetGuildCommands = function (id, guildId, options, signal) {
|
|
3137
|
-
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands"), method: 'GET', signal: signal
|
|
3138
|
-
}, options);
|
|
3139
|
-
};
|
|
3140
|
-
export var getV10ApplicationsControllerGetGuildCommandsQueryKey = function (id, guildId) {
|
|
3141
|
-
return ["/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands")];
|
|
3142
|
-
};
|
|
3143
|
-
export var getV10ApplicationsControllerGetGuildCommandsQueryOptions = function (id, guildId, options) {
|
|
3144
|
-
var _a;
|
|
3145
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3146
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV10ApplicationsControllerGetGuildCommandsQueryKey(id, guildId);
|
|
3147
|
-
var queryFn = function (_a) {
|
|
3148
|
-
var signal = _a.signal;
|
|
3149
|
-
return v10ApplicationsControllerGetGuildCommands(id, guildId, requestOptions, signal);
|
|
3150
|
-
};
|
|
3151
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id && guildId) }, queryOptions);
|
|
3152
|
-
};
|
|
3153
|
-
export var useV10ApplicationsControllerGetGuildCommands = function (id, guildId, options) {
|
|
3154
|
-
var queryOptions = getV10ApplicationsControllerGetGuildCommandsQueryOptions(id, guildId, options);
|
|
3155
|
-
var query = useQuery(queryOptions);
|
|
3156
|
-
query.queryKey = queryOptions.queryKey;
|
|
3157
|
-
return query;
|
|
3158
|
-
};
|
|
3159
|
-
export var v10ApplicationsControllerCreateGuildCommand = function (id, guildId, options) {
|
|
3160
|
-
return customInstance({ url: "/api/bot/v10/applications/".concat(id, "/guilds/").concat(guildId, "/commands"), method: 'POST' }, options);
|
|
3161
|
-
};
|
|
3162
|
-
export var getV10ApplicationsControllerCreateGuildCommandMutationOptions = function (options) {
|
|
3163
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3164
|
-
var mutationFn = function (props) {
|
|
3165
|
-
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, guildId = _a.guildId;
|
|
3166
|
-
return v10ApplicationsControllerCreateGuildCommand(id, guildId, requestOptions);
|
|
3167
|
-
};
|
|
3168
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3169
|
-
};
|
|
3170
|
-
export var useV10ApplicationsControllerCreateGuildCommand = function (options) {
|
|
3171
|
-
var mutationOptions = getV10ApplicationsControllerCreateGuildCommandMutationOptions(options);
|
|
3172
|
-
return useMutation(mutationOptions);
|
|
3173
|
-
};
|
|
3174
|
-
export var v10InteractionsControllerHandleCallback = function (id, token, options) {
|
|
3175
|
-
return customInstance({ url: "/api/bot/v10/interactions/".concat(id, "/").concat(token, "/callback"), method: 'POST' }, options);
|
|
3176
|
-
};
|
|
3177
|
-
export var getV10InteractionsControllerHandleCallbackMutationOptions = function (options) {
|
|
3178
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3179
|
-
var mutationFn = function (props) {
|
|
3180
|
-
var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, token = _a.token;
|
|
3181
|
-
return v10InteractionsControllerHandleCallback(id, token, requestOptions);
|
|
3182
|
-
};
|
|
3183
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3184
|
-
};
|
|
3185
|
-
export var useV10InteractionsControllerHandleCallback = function (options) {
|
|
3186
|
-
var mutationOptions = getV10InteractionsControllerHandleCallbackMutationOptions(options);
|
|
3187
|
-
return useMutation(mutationOptions);
|
|
3188
|
-
};
|
|
3189
|
-
export var v10EnterpriseControllerCreateAnnouncement = function (id, options) {
|
|
3190
|
-
return customInstance({ url: "/api/bot/v10/enterprise/departments/".concat(id, "/announcements"), method: 'POST' }, options);
|
|
3191
|
-
};
|
|
3192
|
-
export var getV10EnterpriseControllerCreateAnnouncementMutationOptions = function (options) {
|
|
3193
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3194
|
-
var mutationFn = function (props) {
|
|
3195
|
-
var id = (props !== null && props !== void 0 ? props : {}).id;
|
|
3196
|
-
return v10EnterpriseControllerCreateAnnouncement(id, requestOptions);
|
|
3197
|
-
};
|
|
3198
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3199
|
-
};
|
|
3200
|
-
export var useV10EnterpriseControllerCreateAnnouncement = function (options) {
|
|
3201
|
-
var mutationOptions = getV10EnterpriseControllerCreateAnnouncementMutationOptions(options);
|
|
3202
|
-
return useMutation(mutationOptions);
|
|
3203
|
-
};
|
|
3204
|
-
/**
|
|
3205
|
-
*
|
|
3206
|
-
Generates a bearer token for Machine-to-Machine (M2M) communication.
|
|
3207
|
-
|
|
3208
|
-
**Supported Scopes:**
|
|
3209
|
-
- `*`: Full access
|
|
3210
|
-
- `provisioning:workspaces`: Manage organizations and workspaces
|
|
3211
|
-
- `messages:read`: Read messages
|
|
3212
|
-
- `messages:send`: Send messages
|
|
3213
|
-
- `channels:read`: Read channel listings
|
|
3214
|
-
- `channels:write`: Create or update channels
|
|
3215
|
-
- `webhooks:read`: Query webhook registries
|
|
3216
|
-
- `webhooks:write`: Provision or configure webhooks
|
|
3217
|
-
|
|
3218
|
-
* @summary Exchange client credentials for a V3 access token
|
|
3219
|
-
*/
|
|
3220
|
-
export var v3OAuthControllerGetToken = function (v3TokenRequestDto, options) {
|
|
3221
|
-
return customInstance({ url: "/api/v3/oauth/token", method: 'POST',
|
|
3222
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3223
|
-
data: v3TokenRequestDto }, options);
|
|
3224
|
-
};
|
|
3225
|
-
export var getV3OAuthControllerGetTokenMutationOptions = function (options) {
|
|
3226
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3227
|
-
var mutationFn = function (props) {
|
|
3228
|
-
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
3229
|
-
return v3OAuthControllerGetToken(data, requestOptions);
|
|
3230
|
-
};
|
|
3231
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3232
|
-
};
|
|
3233
|
-
/**
|
|
3234
|
-
* @summary Exchange client credentials for a V3 access token
|
|
3235
|
-
*/
|
|
3236
|
-
export var useV3OAuthControllerGetToken = function (options) {
|
|
3237
|
-
var mutationOptions = getV3OAuthControllerGetTokenMutationOptions(options);
|
|
3238
|
-
return useMutation(mutationOptions);
|
|
3239
|
-
};
|
|
3240
|
-
/**
|
|
3241
|
-
* Retrieve all workspaces associated with the authenticated organization or workspace context.
|
|
3242
|
-
* @summary List organization workspaces (Enterprise M2M)
|
|
3243
|
-
*/
|
|
3244
|
-
export var v3WorkspacesControllerGetWorkspaces = function (options, signal) {
|
|
3245
|
-
return customInstance({ url: "/api/v3/workspaces", method: 'GET', signal: signal
|
|
3246
|
-
}, options);
|
|
3247
|
-
};
|
|
3248
|
-
export var getV3WorkspacesControllerGetWorkspacesQueryKey = function () {
|
|
3249
|
-
return ["/api/v3/workspaces"];
|
|
3250
|
-
};
|
|
3251
|
-
export var getV3WorkspacesControllerGetWorkspacesQueryOptions = function (options) {
|
|
3252
|
-
var _a;
|
|
3253
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3254
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspacesQueryKey();
|
|
3255
|
-
var queryFn = function (_a) {
|
|
3256
|
-
var signal = _a.signal;
|
|
3257
|
-
return v3WorkspacesControllerGetWorkspaces(requestOptions, signal);
|
|
3258
|
-
};
|
|
3259
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
3260
|
-
};
|
|
3261
|
-
/**
|
|
3262
|
-
* @summary List organization workspaces (Enterprise M2M)
|
|
3263
|
-
*/
|
|
3264
|
-
export var useV3WorkspacesControllerGetWorkspaces = function (options) {
|
|
3265
|
-
var queryOptions = getV3WorkspacesControllerGetWorkspacesQueryOptions(options);
|
|
3266
|
-
var query = useQuery(queryOptions);
|
|
3267
|
-
query.queryKey = queryOptions.queryKey;
|
|
3268
|
-
return query;
|
|
3269
|
-
};
|
|
3270
|
-
/**
|
|
3271
|
-
*
|
|
3272
|
-
Provisions a new workspace within your organization.
|
|
3273
|
-
When provisioned via M2M:
|
|
3274
|
-
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
3275
|
-
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
3276
|
-
3. The specified owner and initial members are added.
|
|
3277
|
-
|
|
3278
|
-
* @summary Provision a new workspace (Enterprise M2M)
|
|
3279
|
-
*/
|
|
3280
|
-
export var v3WorkspacesControllerProvisionWorkspace = function (v3ProvisionWorkspaceDto, options) {
|
|
3281
|
-
return customInstance({ url: "/api/v3/workspaces", method: 'POST',
|
|
3282
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3283
|
-
data: v3ProvisionWorkspaceDto }, options);
|
|
3284
|
-
};
|
|
3285
|
-
export var getV3WorkspacesControllerProvisionWorkspaceMutationOptions = function (options) {
|
|
3286
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3287
|
-
var mutationFn = function (props) {
|
|
3288
|
-
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
3289
|
-
return v3WorkspacesControllerProvisionWorkspace(data, requestOptions);
|
|
3290
|
-
};
|
|
3291
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3292
|
-
};
|
|
3293
|
-
/**
|
|
3294
|
-
* @summary Provision a new workspace (Enterprise M2M)
|
|
3295
|
-
*/
|
|
3296
|
-
export var useV3WorkspacesControllerProvisionWorkspace = function (options) {
|
|
3297
|
-
var mutationOptions = getV3WorkspacesControllerProvisionWorkspaceMutationOptions(options);
|
|
3298
|
-
return useMutation(mutationOptions);
|
|
3299
|
-
};
|
|
3300
|
-
/**
|
|
3301
|
-
* Retrieve details of a specific workspace by its slug.
|
|
3302
|
-
* @summary Get workspace details (Enterprise M2M)
|
|
3303
|
-
*/
|
|
3304
|
-
export var v3WorkspacesControllerGetWorkspaceBySlug = function (slug, options, signal) {
|
|
3305
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'GET', signal: signal
|
|
3306
|
-
}, options);
|
|
3307
|
-
};
|
|
3308
|
-
export var getV3WorkspacesControllerGetWorkspaceBySlugQueryKey = function (slug) {
|
|
3309
|
-
return ["/api/v3/workspaces/".concat(slug)];
|
|
3310
|
-
};
|
|
3311
|
-
export var getV3WorkspacesControllerGetWorkspaceBySlugQueryOptions = function (slug, options) {
|
|
3312
|
-
var _a;
|
|
3313
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3314
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceBySlugQueryKey(slug);
|
|
3315
|
-
var queryFn = function (_a) {
|
|
3316
|
-
var signal = _a.signal;
|
|
3317
|
-
return v3WorkspacesControllerGetWorkspaceBySlug(slug, requestOptions, signal);
|
|
3318
|
-
};
|
|
3319
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
3320
|
-
};
|
|
3321
|
-
/**
|
|
3322
|
-
* @summary Get workspace details (Enterprise M2M)
|
|
3323
|
-
*/
|
|
3324
|
-
export var useV3WorkspacesControllerGetWorkspaceBySlug = function (slug, options) {
|
|
3325
|
-
var queryOptions = getV3WorkspacesControllerGetWorkspaceBySlugQueryOptions(slug, options);
|
|
3326
|
-
var query = useQuery(queryOptions);
|
|
3327
|
-
query.queryKey = queryOptions.queryKey;
|
|
3328
|
-
return query;
|
|
3329
|
-
};
|
|
3330
|
-
/**
|
|
3331
|
-
* Update the configuration and metadata of a specific workspace.
|
|
3332
|
-
* @summary Update a workspace (Enterprise M2M)
|
|
3333
|
-
*/
|
|
3334
|
-
export var v3WorkspacesControllerUpdateWorkspace = function (slug, v3UpdateWorkspaceDto, options) {
|
|
3335
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'PATCH',
|
|
3336
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3337
|
-
data: v3UpdateWorkspaceDto }, options);
|
|
3338
|
-
};
|
|
3339
|
-
export var getV3WorkspacesControllerUpdateWorkspaceMutationOptions = function (options) {
|
|
3340
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3341
|
-
var mutationFn = function (props) {
|
|
3342
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
3343
|
-
return v3WorkspacesControllerUpdateWorkspace(slug, data, requestOptions);
|
|
3344
|
-
};
|
|
3345
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3346
|
-
};
|
|
3347
|
-
/**
|
|
3348
|
-
* @summary Update a workspace (Enterprise M2M)
|
|
3349
|
-
*/
|
|
3350
|
-
export var useV3WorkspacesControllerUpdateWorkspace = function (options) {
|
|
3351
|
-
var mutationOptions = getV3WorkspacesControllerUpdateWorkspaceMutationOptions(options);
|
|
3352
|
-
return useMutation(mutationOptions);
|
|
3353
|
-
};
|
|
3354
|
-
/**
|
|
3355
|
-
* Permanently deletes a specific workspace.
|
|
3356
|
-
* @summary Delete a workspace (Enterprise M2M)
|
|
3357
|
-
*/
|
|
3358
|
-
export var v3WorkspacesControllerDeleteWorkspace = function (slug, options) {
|
|
3359
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug), method: 'DELETE' }, options);
|
|
3360
|
-
};
|
|
3361
|
-
export var getV3WorkspacesControllerDeleteWorkspaceMutationOptions = function (options) {
|
|
3362
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3363
|
-
var mutationFn = function (props) {
|
|
3364
|
-
var slug = (props !== null && props !== void 0 ? props : {}).slug;
|
|
3365
|
-
return v3WorkspacesControllerDeleteWorkspace(slug, requestOptions);
|
|
3366
|
-
};
|
|
3367
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3368
|
-
};
|
|
3369
|
-
/**
|
|
3370
|
-
* @summary Delete a workspace (Enterprise M2M)
|
|
3371
|
-
*/
|
|
3372
|
-
export var useV3WorkspacesControllerDeleteWorkspace = function (options) {
|
|
3373
|
-
var mutationOptions = getV3WorkspacesControllerDeleteWorkspaceMutationOptions(options);
|
|
3374
|
-
return useMutation(mutationOptions);
|
|
3375
|
-
};
|
|
3376
|
-
/**
|
|
3377
|
-
* Retrieve all members of a specific workspace. Requires members:read scope.
|
|
3378
|
-
* @summary List all workspace members (Enterprise M2M)
|
|
3379
|
-
*/
|
|
3380
|
-
export var v3WorkspacesControllerGetWorkspaceMembers = function (slug, options, signal) {
|
|
3381
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members"), method: 'GET', signal: signal
|
|
3382
|
-
}, options);
|
|
3383
|
-
};
|
|
3384
|
-
export var getV3WorkspacesControllerGetWorkspaceMembersQueryKey = function (slug) {
|
|
3385
|
-
return ["/api/v3/workspaces/".concat(slug, "/members")];
|
|
3386
|
-
};
|
|
3387
|
-
export var getV3WorkspacesControllerGetWorkspaceMembersQueryOptions = function (slug, options) {
|
|
3388
|
-
var _a;
|
|
3389
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3390
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceMembersQueryKey(slug);
|
|
3391
|
-
var queryFn = function (_a) {
|
|
3392
|
-
var signal = _a.signal;
|
|
3393
|
-
return v3WorkspacesControllerGetWorkspaceMembers(slug, requestOptions, signal);
|
|
3394
|
-
};
|
|
3395
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
3396
|
-
};
|
|
3397
|
-
/**
|
|
3398
|
-
* @summary List all workspace members (Enterprise M2M)
|
|
3399
|
-
*/
|
|
3400
|
-
export var useV3WorkspacesControllerGetWorkspaceMembers = function (slug, options) {
|
|
3401
|
-
var queryOptions = getV3WorkspacesControllerGetWorkspaceMembersQueryOptions(slug, options);
|
|
3402
|
-
var query = useQuery(queryOptions);
|
|
3403
|
-
query.queryKey = queryOptions.queryKey;
|
|
3404
|
-
return query;
|
|
3405
|
-
};
|
|
3406
|
-
/**
|
|
3407
|
-
* Add a new member to a specific workspace. Requires members:write scope.
|
|
3408
|
-
* @summary Add a member to the workspace (Enterprise M2M)
|
|
3409
|
-
*/
|
|
3410
|
-
export var v3WorkspacesControllerAddWorkspaceMember = function (slug, v3AddMemberDto, options) {
|
|
3411
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members"), method: 'POST',
|
|
3412
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3413
|
-
data: v3AddMemberDto }, options);
|
|
3414
|
-
};
|
|
3415
|
-
export var getV3WorkspacesControllerAddWorkspaceMemberMutationOptions = function (options) {
|
|
3416
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3417
|
-
var mutationFn = function (props) {
|
|
3418
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
3419
|
-
return v3WorkspacesControllerAddWorkspaceMember(slug, data, requestOptions);
|
|
3420
|
-
};
|
|
3421
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3422
|
-
};
|
|
3423
|
-
/**
|
|
3424
|
-
* @summary Add a member to the workspace (Enterprise M2M)
|
|
3425
|
-
*/
|
|
3426
|
-
export var useV3WorkspacesControllerAddWorkspaceMember = function (options) {
|
|
3427
|
-
var mutationOptions = getV3WorkspacesControllerAddWorkspaceMemberMutationOptions(options);
|
|
3428
|
-
return useMutation(mutationOptions);
|
|
3429
|
-
};
|
|
3430
|
-
/**
|
|
3431
|
-
* Retrieve details of a specific workspace member by userId. Requires members:read scope.
|
|
3432
|
-
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
3433
|
-
*/
|
|
3434
|
-
export var v3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options, signal) {
|
|
3435
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'GET', signal: signal
|
|
3436
|
-
}, options);
|
|
3437
|
-
};
|
|
3438
|
-
export var getV3WorkspacesControllerGetWorkspaceMemberQueryKey = function (slug, userId) {
|
|
3439
|
-
return ["/api/v3/workspaces/".concat(slug, "/members/").concat(userId)];
|
|
3440
|
-
};
|
|
3441
|
-
export var getV3WorkspacesControllerGetWorkspaceMemberQueryOptions = function (slug, userId, options) {
|
|
3442
|
-
var _a;
|
|
3443
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3444
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceMemberQueryKey(slug, userId);
|
|
3445
|
-
var queryFn = function (_a) {
|
|
3446
|
-
var signal = _a.signal;
|
|
3447
|
-
return v3WorkspacesControllerGetWorkspaceMember(slug, userId, requestOptions, signal);
|
|
3448
|
-
};
|
|
3449
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && userId) }, queryOptions);
|
|
3450
|
-
};
|
|
3451
|
-
/**
|
|
3452
|
-
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
3453
|
-
*/
|
|
3454
|
-
export var useV3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options) {
|
|
3455
|
-
var queryOptions = getV3WorkspacesControllerGetWorkspaceMemberQueryOptions(slug, userId, options);
|
|
3456
|
-
var query = useQuery(queryOptions);
|
|
3457
|
-
query.queryKey = queryOptions.queryKey;
|
|
3458
|
-
return query;
|
|
3459
|
-
};
|
|
3460
|
-
/**
|
|
3461
|
-
* Update the role of a specific workspace member. Requires members:write scope.
|
|
3462
|
-
* @summary Update a workspace member role (Enterprise M2M)
|
|
3463
|
-
*/
|
|
3464
|
-
export var v3WorkspacesControllerUpdateWorkspaceMember = function (slug, userId, v3UpdateMemberRoleDto, options) {
|
|
3465
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'PATCH',
|
|
3466
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3467
|
-
data: v3UpdateMemberRoleDto }, options);
|
|
3468
|
-
};
|
|
3469
|
-
export var getV3WorkspacesControllerUpdateWorkspaceMemberMutationOptions = function (options) {
|
|
3470
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3471
|
-
var mutationFn = function (props) {
|
|
3472
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, userId = _a.userId, data = _a.data;
|
|
3473
|
-
return v3WorkspacesControllerUpdateWorkspaceMember(slug, userId, data, requestOptions);
|
|
3474
|
-
};
|
|
3475
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3476
|
-
};
|
|
3477
|
-
/**
|
|
3478
|
-
* @summary Update a workspace member role (Enterprise M2M)
|
|
3479
|
-
*/
|
|
3480
|
-
export var useV3WorkspacesControllerUpdateWorkspaceMember = function (options) {
|
|
3481
|
-
var mutationOptions = getV3WorkspacesControllerUpdateWorkspaceMemberMutationOptions(options);
|
|
3482
|
-
return useMutation(mutationOptions);
|
|
3483
|
-
};
|
|
3484
|
-
/**
|
|
3485
|
-
* Remove a workspace member by userId. Requires members:write scope.
|
|
3486
|
-
* @summary Remove a member from the workspace (Enterprise M2M)
|
|
2424
|
+
* @summary Delete an integration API key
|
|
3487
2425
|
*/
|
|
3488
|
-
export var
|
|
3489
|
-
return customInstance({ url: "/api/
|
|
2426
|
+
export var integrationsControllerDeleteApiKey = function (keyId, options) {
|
|
2427
|
+
return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'DELETE' }, options);
|
|
3490
2428
|
};
|
|
3491
|
-
export var
|
|
2429
|
+
export var getIntegrationsControllerDeleteApiKeyMutationOptions = function (options) {
|
|
3492
2430
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3493
2431
|
var mutationFn = function (props) {
|
|
3494
|
-
var
|
|
3495
|
-
return
|
|
2432
|
+
var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
|
|
2433
|
+
return integrationsControllerDeleteApiKey(keyId, requestOptions);
|
|
3496
2434
|
};
|
|
3497
2435
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3498
2436
|
};
|
|
3499
2437
|
/**
|
|
3500
|
-
* @summary
|
|
2438
|
+
* @summary Delete an integration API key
|
|
3501
2439
|
*/
|
|
3502
|
-
export var
|
|
3503
|
-
var mutationOptions =
|
|
2440
|
+
export var useIntegrationsControllerDeleteApiKey = function (options) {
|
|
2441
|
+
var mutationOptions = getIntegrationsControllerDeleteApiKeyMutationOptions(options);
|
|
3504
2442
|
return useMutation(mutationOptions);
|
|
3505
2443
|
};
|
|
3506
2444
|
/**
|
|
3507
|
-
*
|
|
3508
|
-
* @summary List all webhooks in the workspace
|
|
2445
|
+
* @summary Get all integrations for a workspace
|
|
3509
2446
|
*/
|
|
3510
|
-
export var
|
|
3511
|
-
return customInstance({ url: "/api/
|
|
2447
|
+
export var workspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options, signal) {
|
|
2448
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'GET', signal: signal
|
|
3512
2449
|
}, options);
|
|
3513
2450
|
};
|
|
3514
|
-
export var
|
|
3515
|
-
return ["/api/
|
|
2451
|
+
export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryKey = function (slug) {
|
|
2452
|
+
return ["/api/workspaces/".concat(slug, "/integrations")];
|
|
3516
2453
|
};
|
|
3517
|
-
export var
|
|
2454
|
+
export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryOptions = function (slug, options) {
|
|
3518
2455
|
var _a;
|
|
3519
2456
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3520
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2457
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryKey(slug);
|
|
3521
2458
|
var queryFn = function (_a) {
|
|
3522
2459
|
var signal = _a.signal;
|
|
3523
|
-
return
|
|
2460
|
+
return workspaceIntegrationsControllerGetWorkspaceIntegrations(slug, requestOptions, signal);
|
|
3524
2461
|
};
|
|
3525
2462
|
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
3526
2463
|
};
|
|
3527
2464
|
/**
|
|
3528
|
-
* @summary
|
|
2465
|
+
* @summary Get all integrations for a workspace
|
|
3529
2466
|
*/
|
|
3530
|
-
export var
|
|
3531
|
-
var queryOptions =
|
|
2467
|
+
export var useWorkspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options) {
|
|
2468
|
+
var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryOptions(slug, options);
|
|
3532
2469
|
var query = useQuery(queryOptions);
|
|
3533
2470
|
query.queryKey = queryOptions.queryKey;
|
|
3534
2471
|
return query;
|
|
3535
2472
|
};
|
|
3536
2473
|
/**
|
|
3537
|
-
*
|
|
3538
|
-
* @summary Create a new webhook
|
|
2474
|
+
* @summary Create a new integration for a workspace
|
|
3539
2475
|
*/
|
|
3540
|
-
export var
|
|
3541
|
-
return customInstance({ url: "/api/
|
|
2476
|
+
export var workspaceIntegrationsControllerCreateWorkspaceIntegration = function (slug, createIntegrationDto, options) {
|
|
2477
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'POST',
|
|
3542
2478
|
headers: { 'Content-Type': 'application/json', },
|
|
3543
|
-
data:
|
|
2479
|
+
data: createIntegrationDto }, options);
|
|
3544
2480
|
};
|
|
3545
|
-
export var
|
|
2481
|
+
export var getWorkspaceIntegrationsControllerCreateWorkspaceIntegrationMutationOptions = function (options) {
|
|
3546
2482
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3547
2483
|
var mutationFn = function (props) {
|
|
3548
2484
|
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
3549
|
-
return
|
|
3550
|
-
};
|
|
3551
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3552
|
-
};
|
|
3553
|
-
/**
|
|
3554
|
-
* @summary Create a new webhook
|
|
3555
|
-
*/
|
|
3556
|
-
export var useV3WebhooksControllerCreateWebhook = function (options) {
|
|
3557
|
-
var mutationOptions = getV3WebhooksControllerCreateWebhookMutationOptions(options);
|
|
3558
|
-
return useMutation(mutationOptions);
|
|
3559
|
-
};
|
|
3560
|
-
/**
|
|
3561
|
-
* Requires webhooks:read scope.
|
|
3562
|
-
* @summary Get details of a specific webhook
|
|
3563
|
-
*/
|
|
3564
|
-
export var v3WebhooksControllerGetWebhook = function (slug, webhookId, options, signal) {
|
|
3565
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'GET', signal: signal
|
|
3566
|
-
}, options);
|
|
3567
|
-
};
|
|
3568
|
-
export var getV3WebhooksControllerGetWebhookQueryKey = function (slug, webhookId) {
|
|
3569
|
-
return ["/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId)];
|
|
3570
|
-
};
|
|
3571
|
-
export var getV3WebhooksControllerGetWebhookQueryOptions = function (slug, webhookId, options) {
|
|
3572
|
-
var _a;
|
|
3573
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3574
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WebhooksControllerGetWebhookQueryKey(slug, webhookId);
|
|
3575
|
-
var queryFn = function (_a) {
|
|
3576
|
-
var signal = _a.signal;
|
|
3577
|
-
return v3WebhooksControllerGetWebhook(slug, webhookId, requestOptions, signal);
|
|
3578
|
-
};
|
|
3579
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && webhookId) }, queryOptions);
|
|
3580
|
-
};
|
|
3581
|
-
/**
|
|
3582
|
-
* @summary Get details of a specific webhook
|
|
3583
|
-
*/
|
|
3584
|
-
export var useV3WebhooksControllerGetWebhook = function (slug, webhookId, options) {
|
|
3585
|
-
var queryOptions = getV3WebhooksControllerGetWebhookQueryOptions(slug, webhookId, options);
|
|
3586
|
-
var query = useQuery(queryOptions);
|
|
3587
|
-
query.queryKey = queryOptions.queryKey;
|
|
3588
|
-
return query;
|
|
3589
|
-
};
|
|
3590
|
-
/**
|
|
3591
|
-
* Requires webhooks:write scope.
|
|
3592
|
-
* @summary Update a webhook
|
|
3593
|
-
*/
|
|
3594
|
-
export var v3WebhooksControllerUpdateWebhook = function (slug, webhookId, v3UpdateWebhookDto, options) {
|
|
3595
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'PATCH',
|
|
3596
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3597
|
-
data: v3UpdateWebhookDto }, options);
|
|
3598
|
-
};
|
|
3599
|
-
export var getV3WebhooksControllerUpdateWebhookMutationOptions = function (options) {
|
|
3600
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3601
|
-
var mutationFn = function (props) {
|
|
3602
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, webhookId = _a.webhookId, data = _a.data;
|
|
3603
|
-
return v3WebhooksControllerUpdateWebhook(slug, webhookId, data, requestOptions);
|
|
3604
|
-
};
|
|
3605
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3606
|
-
};
|
|
3607
|
-
/**
|
|
3608
|
-
* @summary Update a webhook
|
|
3609
|
-
*/
|
|
3610
|
-
export var useV3WebhooksControllerUpdateWebhook = function (options) {
|
|
3611
|
-
var mutationOptions = getV3WebhooksControllerUpdateWebhookMutationOptions(options);
|
|
3612
|
-
return useMutation(mutationOptions);
|
|
3613
|
-
};
|
|
3614
|
-
/**
|
|
3615
|
-
* Requires webhooks:write scope.
|
|
3616
|
-
* @summary Delete a webhook
|
|
3617
|
-
*/
|
|
3618
|
-
export var v3WebhooksControllerDeleteWebhook = function (slug, webhookId, options) {
|
|
3619
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/webhooks/").concat(webhookId), method: 'DELETE' }, options);
|
|
3620
|
-
};
|
|
3621
|
-
export var getV3WebhooksControllerDeleteWebhookMutationOptions = function (options) {
|
|
3622
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3623
|
-
var mutationFn = function (props) {
|
|
3624
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, webhookId = _a.webhookId;
|
|
3625
|
-
return v3WebhooksControllerDeleteWebhook(slug, webhookId, requestOptions);
|
|
3626
|
-
};
|
|
3627
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3628
|
-
};
|
|
3629
|
-
/**
|
|
3630
|
-
* @summary Delete a webhook
|
|
3631
|
-
*/
|
|
3632
|
-
export var useV3WebhooksControllerDeleteWebhook = function (options) {
|
|
3633
|
-
var mutationOptions = getV3WebhooksControllerDeleteWebhookMutationOptions(options);
|
|
3634
|
-
return useMutation(mutationOptions);
|
|
3635
|
-
};
|
|
3636
|
-
/**
|
|
3637
|
-
* Requires webhooks:read scope. Retrieves all incoming webhooks configured for this channel.
|
|
3638
|
-
* @summary List incoming webhooks for a channel
|
|
3639
|
-
*/
|
|
3640
|
-
export var v3ChannelIncomingWebhooksControllerGetChannelWebhooks = function (slug, channelId, options, signal) {
|
|
3641
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks"), method: 'GET', signal: signal
|
|
3642
|
-
}, options);
|
|
3643
|
-
};
|
|
3644
|
-
export var getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryKey = function (slug, channelId) {
|
|
3645
|
-
return ["/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks")];
|
|
3646
|
-
};
|
|
3647
|
-
export var getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryOptions = function (slug, channelId, options) {
|
|
3648
|
-
var _a;
|
|
3649
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3650
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryKey(slug, channelId);
|
|
3651
|
-
var queryFn = function (_a) {
|
|
3652
|
-
var signal = _a.signal;
|
|
3653
|
-
return v3ChannelIncomingWebhooksControllerGetChannelWebhooks(slug, channelId, requestOptions, signal);
|
|
3654
|
-
};
|
|
3655
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && channelId) }, queryOptions);
|
|
3656
|
-
};
|
|
3657
|
-
/**
|
|
3658
|
-
* @summary List incoming webhooks for a channel
|
|
3659
|
-
*/
|
|
3660
|
-
export var useV3ChannelIncomingWebhooksControllerGetChannelWebhooks = function (slug, channelId, options) {
|
|
3661
|
-
var queryOptions = getV3ChannelIncomingWebhooksControllerGetChannelWebhooksQueryOptions(slug, channelId, options);
|
|
3662
|
-
var query = useQuery(queryOptions);
|
|
3663
|
-
query.queryKey = queryOptions.queryKey;
|
|
3664
|
-
return query;
|
|
3665
|
-
};
|
|
3666
|
-
/**
|
|
3667
|
-
* Requires webhooks:write scope. Generates a new webhook token and secret.
|
|
3668
|
-
* @summary Create an incoming webhook for a channel
|
|
3669
|
-
*/
|
|
3670
|
-
export var v3ChannelIncomingWebhooksControllerCreateChannelWebhook = function (slug, channelId, createChannelIncomingWebhookDto, options) {
|
|
3671
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks"), method: 'POST',
|
|
3672
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3673
|
-
data: createChannelIncomingWebhookDto }, options);
|
|
3674
|
-
};
|
|
3675
|
-
export var getV3ChannelIncomingWebhooksControllerCreateChannelWebhookMutationOptions = function (options) {
|
|
3676
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3677
|
-
var mutationFn = function (props) {
|
|
3678
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, data = _a.data;
|
|
3679
|
-
return v3ChannelIncomingWebhooksControllerCreateChannelWebhook(slug, channelId, data, requestOptions);
|
|
2485
|
+
return workspaceIntegrationsControllerCreateWorkspaceIntegration(slug, data, requestOptions);
|
|
3680
2486
|
};
|
|
3681
2487
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3682
2488
|
};
|
|
3683
2489
|
/**
|
|
3684
|
-
* @summary Create
|
|
2490
|
+
* @summary Create a new integration for a workspace
|
|
3685
2491
|
*/
|
|
3686
|
-
export var
|
|
3687
|
-
var mutationOptions =
|
|
2492
|
+
export var useWorkspaceIntegrationsControllerCreateWorkspaceIntegration = function (options) {
|
|
2493
|
+
var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceIntegrationMutationOptions(options);
|
|
3688
2494
|
return useMutation(mutationOptions);
|
|
3689
2495
|
};
|
|
3690
2496
|
/**
|
|
3691
|
-
*
|
|
3692
|
-
* @summary Get details of a channel incoming webhook
|
|
2497
|
+
* @summary Get integration details
|
|
3693
2498
|
*/
|
|
3694
|
-
export var
|
|
3695
|
-
return customInstance({ url: "/api/
|
|
2499
|
+
export var workspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options, signal) {
|
|
2500
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'GET', signal: signal
|
|
3696
2501
|
}, options);
|
|
3697
2502
|
};
|
|
3698
|
-
export var
|
|
3699
|
-
return ["/api/
|
|
3700
|
-
};
|
|
3701
|
-
export var
|
|
3702
|
-
var _a;
|
|
3703
|
-
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3704
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
3705
|
-
var queryFn = function (_a) {
|
|
3706
|
-
var signal = _a.signal;
|
|
3707
|
-
return
|
|
3708
|
-
};
|
|
3709
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && channelId && webhookId) }, queryOptions);
|
|
3710
|
-
};
|
|
3711
|
-
/**
|
|
3712
|
-
* @summary Get details of a channel incoming webhook
|
|
3713
|
-
*/
|
|
3714
|
-
export var useV3ChannelIncomingWebhooksControllerGetChannelWebhook = function (slug, channelId, webhookId, options) {
|
|
3715
|
-
var queryOptions = getV3ChannelIncomingWebhooksControllerGetChannelWebhookQueryOptions(slug, channelId, webhookId, options);
|
|
3716
|
-
var query = useQuery(queryOptions);
|
|
3717
|
-
query.queryKey = queryOptions.queryKey;
|
|
3718
|
-
return query;
|
|
3719
|
-
};
|
|
3720
|
-
/**
|
|
3721
|
-
* Requires webhooks:write scope.
|
|
3722
|
-
* @summary Update a channel incoming webhook
|
|
3723
|
-
*/
|
|
3724
|
-
export var v3ChannelIncomingWebhooksControllerUpdateChannelWebhook = function (slug, channelId, webhookId, updateChannelIncomingWebhookDto, options) {
|
|
3725
|
-
return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/incoming-webhooks/").concat(webhookId), method: 'PATCH',
|
|
3726
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3727
|
-
data: updateChannelIncomingWebhookDto }, options);
|
|
3728
|
-
};
|
|
3729
|
-
export var getV3ChannelIncomingWebhooksControllerUpdateChannelWebhookMutationOptions = function (options) {
|
|
3730
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3731
|
-
var mutationFn = function (props) {
|
|
3732
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, webhookId = _a.webhookId, data = _a.data;
|
|
3733
|
-
return v3ChannelIncomingWebhooksControllerUpdateChannelWebhook(slug, channelId, webhookId, data, requestOptions);
|
|
2503
|
+
export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryKey = function (slug, integrationId) {
|
|
2504
|
+
return ["/api/workspaces/".concat(slug, "/integrations/").concat(integrationId)];
|
|
2505
|
+
};
|
|
2506
|
+
export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryOptions = function (slug, integrationId, options) {
|
|
2507
|
+
var _a;
|
|
2508
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
2509
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryKey(slug, integrationId);
|
|
2510
|
+
var queryFn = function (_a) {
|
|
2511
|
+
var signal = _a.signal;
|
|
2512
|
+
return workspaceIntegrationsControllerGetWorkspaceIntegration(slug, integrationId, requestOptions, signal);
|
|
3734
2513
|
};
|
|
3735
|
-
return __assign({
|
|
2514
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && integrationId) }, queryOptions);
|
|
3736
2515
|
};
|
|
3737
2516
|
/**
|
|
3738
|
-
* @summary
|
|
3739
|
-
*/
|
|
3740
|
-
export var
|
|
3741
|
-
var
|
|
3742
|
-
|
|
2517
|
+
* @summary Get integration details
|
|
2518
|
+
*/
|
|
2519
|
+
export var useWorkspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options) {
|
|
2520
|
+
var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryOptions(slug, integrationId, options);
|
|
2521
|
+
var query = useQuery(queryOptions);
|
|
2522
|
+
query.queryKey = queryOptions.queryKey;
|
|
2523
|
+
return query;
|
|
3743
2524
|
};
|
|
3744
2525
|
/**
|
|
3745
|
-
*
|
|
3746
|
-
* @summary Delete a channel incoming webhook
|
|
2526
|
+
* @summary Update an integration
|
|
3747
2527
|
*/
|
|
3748
|
-
export var
|
|
3749
|
-
return customInstance({ url: "/api/
|
|
2528
|
+
export var workspaceIntegrationsControllerUpdateWorkspaceIntegration = function (slug, integrationId, options) {
|
|
2529
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'PATCH' }, options);
|
|
3750
2530
|
};
|
|
3751
|
-
export var
|
|
2531
|
+
export var getWorkspaceIntegrationsControllerUpdateWorkspaceIntegrationMutationOptions = function (options) {
|
|
3752
2532
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3753
2533
|
var mutationFn = function (props) {
|
|
3754
|
-
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug,
|
|
3755
|
-
return
|
|
2534
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
|
|
2535
|
+
return workspaceIntegrationsControllerUpdateWorkspaceIntegration(slug, integrationId, requestOptions);
|
|
3756
2536
|
};
|
|
3757
2537
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3758
2538
|
};
|
|
3759
2539
|
/**
|
|
3760
|
-
* @summary
|
|
2540
|
+
* @summary Update an integration
|
|
3761
2541
|
*/
|
|
3762
|
-
export var
|
|
3763
|
-
var mutationOptions =
|
|
2542
|
+
export var useWorkspaceIntegrationsControllerUpdateWorkspaceIntegration = function (options) {
|
|
2543
|
+
var mutationOptions = getWorkspaceIntegrationsControllerUpdateWorkspaceIntegrationMutationOptions(options);
|
|
3764
2544
|
return useMutation(mutationOptions);
|
|
3765
2545
|
};
|
|
3766
2546
|
/**
|
|
3767
|
-
*
|
|
3768
|
-
* @summary Execute a channel incoming webhook (Token in URL)
|
|
2547
|
+
* @summary Delete an integration
|
|
3769
2548
|
*/
|
|
3770
|
-
export var
|
|
3771
|
-
return customInstance({ url: "/api/
|
|
3772
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3773
|
-
data: executeChannelIncomingWebhookDto }, options);
|
|
2549
|
+
export var workspaceIntegrationsControllerDeleteWorkspaceIntegration = function (slug, integrationId, options) {
|
|
2550
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'DELETE' }, options);
|
|
3774
2551
|
};
|
|
3775
|
-
export var
|
|
2552
|
+
export var getWorkspaceIntegrationsControllerDeleteWorkspaceIntegrationMutationOptions = function (options) {
|
|
3776
2553
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3777
2554
|
var mutationFn = function (props) {
|
|
3778
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
3779
|
-
return
|
|
2555
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
|
|
2556
|
+
return workspaceIntegrationsControllerDeleteWorkspaceIntegration(slug, integrationId, requestOptions);
|
|
3780
2557
|
};
|
|
3781
2558
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3782
2559
|
};
|
|
3783
2560
|
/**
|
|
3784
|
-
* @summary
|
|
2561
|
+
* @summary Delete an integration
|
|
3785
2562
|
*/
|
|
3786
|
-
export var
|
|
3787
|
-
var mutationOptions =
|
|
2563
|
+
export var useWorkspaceIntegrationsControllerDeleteWorkspaceIntegration = function (options) {
|
|
2564
|
+
var mutationOptions = getWorkspaceIntegrationsControllerDeleteWorkspaceIntegrationMutationOptions(options);
|
|
3788
2565
|
return useMutation(mutationOptions);
|
|
3789
2566
|
};
|
|
3790
2567
|
/**
|
|
3791
|
-
*
|
|
3792
|
-
* @summary Execute a channel incoming webhook (Channel in URL)
|
|
2568
|
+
* @summary Test an integration
|
|
3793
2569
|
*/
|
|
3794
|
-
export var
|
|
3795
|
-
return customInstance({ url: "/api/
|
|
3796
|
-
headers: { 'Content-Type': 'application/json', },
|
|
3797
|
-
data: executeChannelIncomingWebhookDto, params: params
|
|
3798
|
-
}, options);
|
|
2570
|
+
export var workspaceIntegrationsControllerTestWorkspaceIntegration = function (slug, integrationId, options) {
|
|
2571
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId, "/test"), method: 'POST' }, options);
|
|
3799
2572
|
};
|
|
3800
|
-
export var
|
|
2573
|
+
export var getWorkspaceIntegrationsControllerTestWorkspaceIntegrationMutationOptions = function (options) {
|
|
3801
2574
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3802
2575
|
var mutationFn = function (props) {
|
|
3803
|
-
var _a = props !== null && props !== void 0 ? props : {},
|
|
3804
|
-
return
|
|
2576
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
|
|
2577
|
+
return workspaceIntegrationsControllerTestWorkspaceIntegration(slug, integrationId, requestOptions);
|
|
3805
2578
|
};
|
|
3806
2579
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3807
2580
|
};
|
|
3808
2581
|
/**
|
|
3809
|
-
* @summary
|
|
2582
|
+
* @summary Test an integration
|
|
3810
2583
|
*/
|
|
3811
|
-
export var
|
|
3812
|
-
var mutationOptions =
|
|
2584
|
+
export var useWorkspaceIntegrationsControllerTestWorkspaceIntegration = function (options) {
|
|
2585
|
+
var mutationOptions = getWorkspaceIntegrationsControllerTestWorkspaceIntegrationMutationOptions(options);
|
|
3813
2586
|
return useMutation(mutationOptions);
|
|
3814
2587
|
};
|
|
3815
2588
|
/**
|
|
3816
|
-
* @summary Get
|
|
2589
|
+
* @summary Get all integration webhooks for a workspace
|
|
3817
2590
|
*/
|
|
3818
|
-
export var
|
|
3819
|
-
return customInstance({ url: "/api/
|
|
2591
|
+
export var workspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options, signal) {
|
|
2592
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'GET', signal: signal
|
|
3820
2593
|
}, options);
|
|
3821
2594
|
};
|
|
3822
|
-
export var
|
|
3823
|
-
return
|
|
2595
|
+
export var getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryKey = function (slug) {
|
|
2596
|
+
return ["/api/workspaces/".concat(slug, "/integrations/webhooks")];
|
|
3824
2597
|
};
|
|
3825
|
-
export var
|
|
2598
|
+
export var getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryOptions = function (slug, options) {
|
|
3826
2599
|
var _a;
|
|
3827
2600
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3828
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2601
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryKey(slug);
|
|
3829
2602
|
var queryFn = function (_a) {
|
|
3830
2603
|
var signal = _a.signal;
|
|
3831
|
-
return
|
|
2604
|
+
return workspaceIntegrationsControllerGetWorkspaceWebhooks(slug, requestOptions, signal);
|
|
3832
2605
|
};
|
|
3833
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
|
|
2606
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
|
|
3834
2607
|
};
|
|
3835
2608
|
/**
|
|
3836
|
-
* @summary Get
|
|
2609
|
+
* @summary Get all integration webhooks for a workspace
|
|
3837
2610
|
*/
|
|
3838
|
-
export var
|
|
3839
|
-
var queryOptions =
|
|
2611
|
+
export var useWorkspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options) {
|
|
2612
|
+
var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryOptions(slug, options);
|
|
3840
2613
|
var query = useQuery(queryOptions);
|
|
3841
2614
|
query.queryKey = queryOptions.queryKey;
|
|
3842
2615
|
return query;
|
|
3843
2616
|
};
|
|
3844
2617
|
/**
|
|
3845
|
-
* @summary Create a
|
|
2618
|
+
* @summary Create an integration webhook for a workspace
|
|
3846
2619
|
*/
|
|
3847
|
-
export var
|
|
3848
|
-
return customInstance({ url: "/api/
|
|
2620
|
+
export var workspaceIntegrationsControllerCreateWorkspaceWebhook = function (slug, createIntegrationWebhookDto, options) {
|
|
2621
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'POST',
|
|
3849
2622
|
headers: { 'Content-Type': 'application/json', },
|
|
3850
|
-
data:
|
|
2623
|
+
data: createIntegrationWebhookDto }, options);
|
|
3851
2624
|
};
|
|
3852
|
-
export var
|
|
2625
|
+
export var getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions = function (options) {
|
|
2626
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2627
|
+
var mutationFn = function (props) {
|
|
2628
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
|
|
2629
|
+
return workspaceIntegrationsControllerCreateWorkspaceWebhook(slug, data, requestOptions);
|
|
2630
|
+
};
|
|
2631
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2632
|
+
};
|
|
2633
|
+
/**
|
|
2634
|
+
* @summary Create an integration webhook for a workspace
|
|
2635
|
+
*/
|
|
2636
|
+
export var useWorkspaceIntegrationsControllerCreateWorkspaceWebhook = function (options) {
|
|
2637
|
+
var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions(options);
|
|
2638
|
+
return useMutation(mutationOptions);
|
|
2639
|
+
};
|
|
2640
|
+
export var ablyControllerGetToken = function (options) {
|
|
2641
|
+
return customInstance({ url: "/api/ably/token", method: 'POST' }, options);
|
|
2642
|
+
};
|
|
2643
|
+
export var getAblyControllerGetTokenMutationOptions = function (options) {
|
|
2644
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
2645
|
+
var mutationFn = function () {
|
|
2646
|
+
return ablyControllerGetToken(requestOptions);
|
|
2647
|
+
};
|
|
2648
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
2649
|
+
};
|
|
2650
|
+
export var useAblyControllerGetToken = function (options) {
|
|
2651
|
+
var mutationOptions = getAblyControllerGetTokenMutationOptions(options);
|
|
2652
|
+
return useMutation(mutationOptions);
|
|
2653
|
+
};
|
|
2654
|
+
/**
|
|
2655
|
+
* @summary Upload a file
|
|
2656
|
+
*/
|
|
2657
|
+
export var storageControllerUploadFile = function (storageControllerUploadFileBody, options) {
|
|
2658
|
+
var formData = new FormData();
|
|
2659
|
+
if (storageControllerUploadFileBody.file !== undefined) {
|
|
2660
|
+
formData.append('file', storageControllerUploadFileBody.file);
|
|
2661
|
+
}
|
|
2662
|
+
return customInstance({ url: "/api/storage/upload", method: 'POST',
|
|
2663
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
2664
|
+
data: formData }, options);
|
|
2665
|
+
};
|
|
2666
|
+
export var getStorageControllerUploadFileMutationOptions = function (options) {
|
|
3853
2667
|
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3854
2668
|
var mutationFn = function (props) {
|
|
3855
2669
|
var data = (props !== null && props !== void 0 ? props : {}).data;
|
|
3856
|
-
return
|
|
2670
|
+
return storageControllerUploadFile(data, requestOptions);
|
|
3857
2671
|
};
|
|
3858
2672
|
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3859
2673
|
};
|
|
3860
2674
|
/**
|
|
3861
|
-
* @summary
|
|
2675
|
+
* @summary Upload a file
|
|
3862
2676
|
*/
|
|
3863
|
-
export var
|
|
3864
|
-
var mutationOptions =
|
|
2677
|
+
export var useStorageControllerUploadFile = function (options) {
|
|
2678
|
+
var mutationOptions = getStorageControllerUploadFileMutationOptions(options);
|
|
3865
2679
|
return useMutation(mutationOptions);
|
|
3866
2680
|
};
|
|
3867
2681
|
/**
|
|
3868
|
-
* @summary
|
|
2682
|
+
* @summary Proxy file request using high-performance streaming
|
|
3869
2683
|
*/
|
|
3870
|
-
export var
|
|
3871
|
-
return customInstance({ url: "/
|
|
2684
|
+
export var shortUrlControllerRedirect = function (code, options, signal) {
|
|
2685
|
+
return customInstance({ url: "/s/".concat(code), method: 'GET', signal: signal
|
|
3872
2686
|
}, options);
|
|
3873
2687
|
};
|
|
3874
|
-
export var
|
|
3875
|
-
return ["/
|
|
2688
|
+
export var getShortUrlControllerRedirectQueryKey = function (code) {
|
|
2689
|
+
return ["/s/".concat(code)];
|
|
3876
2690
|
};
|
|
3877
|
-
export var
|
|
2691
|
+
export var getShortUrlControllerRedirectQueryOptions = function (code, options) {
|
|
3878
2692
|
var _a;
|
|
3879
2693
|
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
3880
|
-
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
2694
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getShortUrlControllerRedirectQueryKey(code);
|
|
3881
2695
|
var queryFn = function (_a) {
|
|
3882
2696
|
var signal = _a.signal;
|
|
3883
|
-
return
|
|
2697
|
+
return shortUrlControllerRedirect(code, requestOptions, signal);
|
|
3884
2698
|
};
|
|
3885
|
-
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(
|
|
2699
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(code) }, queryOptions);
|
|
3886
2700
|
};
|
|
3887
2701
|
/**
|
|
3888
|
-
* @summary
|
|
2702
|
+
* @summary Proxy file request using high-performance streaming
|
|
3889
2703
|
*/
|
|
3890
|
-
export var
|
|
3891
|
-
var queryOptions =
|
|
2704
|
+
export var useShortUrlControllerRedirect = function (code, options) {
|
|
2705
|
+
var queryOptions = getShortUrlControllerRedirectQueryOptions(code, options);
|
|
3892
2706
|
var query = useQuery(queryOptions);
|
|
3893
2707
|
query.queryKey = queryOptions.queryKey;
|
|
3894
2708
|
return query;
|
|
3895
2709
|
};
|
|
3896
|
-
/**
|
|
3897
|
-
* @summary Accept an invitation
|
|
3898
|
-
*/
|
|
3899
|
-
export var invitationsControllerAcceptInvitation = function (token, options) {
|
|
3900
|
-
return customInstance({ url: "/api/invitations/".concat(token, "/accept"), method: 'POST' }, options);
|
|
3901
|
-
};
|
|
3902
|
-
export var getInvitationsControllerAcceptInvitationMutationOptions = function (options) {
|
|
3903
|
-
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
3904
|
-
var mutationFn = function (props) {
|
|
3905
|
-
var token = (props !== null && props !== void 0 ? props : {}).token;
|
|
3906
|
-
return invitationsControllerAcceptInvitation(token, requestOptions);
|
|
3907
|
-
};
|
|
3908
|
-
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
3909
|
-
};
|
|
3910
|
-
/**
|
|
3911
|
-
* @summary Accept an invitation
|
|
3912
|
-
*/
|
|
3913
|
-
export var useInvitationsControllerAcceptInvitation = function (options) {
|
|
3914
|
-
var mutationOptions = getInvitationsControllerAcceptInvitationMutationOptions(options);
|
|
3915
|
-
return useMutation(mutationOptions);
|
|
3916
|
-
};
|
|
3917
2710
|
/**
|
|
3918
2711
|
* @summary Start a new call
|
|
3919
2712
|
*/
|
|
@@ -5411,6 +4204,77 @@ export var useChannelsControllerDeleteChannel = function (options) {
|
|
|
5411
4204
|
var mutationOptions = getChannelsControllerDeleteChannelMutationOptions(options);
|
|
5412
4205
|
return useMutation(mutationOptions);
|
|
5413
4206
|
};
|
|
4207
|
+
/**
|
|
4208
|
+
* @summary Get members of a channel
|
|
4209
|
+
*/
|
|
4210
|
+
export var channelsControllerGetChannelMembers = function (slug, channelId, options, signal) {
|
|
4211
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/members"), method: 'GET', signal: signal
|
|
4212
|
+
}, options);
|
|
4213
|
+
};
|
|
4214
|
+
export var getChannelsControllerGetChannelMembersQueryKey = function (slug, channelId) {
|
|
4215
|
+
return ["/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/members")];
|
|
4216
|
+
};
|
|
4217
|
+
export var getChannelsControllerGetChannelMembersQueryOptions = function (slug, channelId, options) {
|
|
4218
|
+
var _a;
|
|
4219
|
+
var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
|
|
4220
|
+
var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getChannelsControllerGetChannelMembersQueryKey(slug, channelId);
|
|
4221
|
+
var queryFn = function (_a) {
|
|
4222
|
+
var signal = _a.signal;
|
|
4223
|
+
return channelsControllerGetChannelMembers(slug, channelId, requestOptions, signal);
|
|
4224
|
+
};
|
|
4225
|
+
return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && channelId) }, queryOptions);
|
|
4226
|
+
};
|
|
4227
|
+
/**
|
|
4228
|
+
* @summary Get members of a channel
|
|
4229
|
+
*/
|
|
4230
|
+
export var useChannelsControllerGetChannelMembers = function (slug, channelId, options) {
|
|
4231
|
+
var queryOptions = getChannelsControllerGetChannelMembersQueryOptions(slug, channelId, options);
|
|
4232
|
+
var query = useQuery(queryOptions);
|
|
4233
|
+
query.queryKey = queryOptions.queryKey;
|
|
4234
|
+
return query;
|
|
4235
|
+
};
|
|
4236
|
+
/**
|
|
4237
|
+
* @summary Add members to a channel
|
|
4238
|
+
*/
|
|
4239
|
+
export var channelsControllerAddChannelMembers = function (slug, channelId, options) {
|
|
4240
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/members"), method: 'POST' }, options);
|
|
4241
|
+
};
|
|
4242
|
+
export var getChannelsControllerAddChannelMembersMutationOptions = function (options) {
|
|
4243
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
4244
|
+
var mutationFn = function (props) {
|
|
4245
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId;
|
|
4246
|
+
return channelsControllerAddChannelMembers(slug, channelId, requestOptions);
|
|
4247
|
+
};
|
|
4248
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
4249
|
+
};
|
|
4250
|
+
/**
|
|
4251
|
+
* @summary Add members to a channel
|
|
4252
|
+
*/
|
|
4253
|
+
export var useChannelsControllerAddChannelMembers = function (options) {
|
|
4254
|
+
var mutationOptions = getChannelsControllerAddChannelMembersMutationOptions(options);
|
|
4255
|
+
return useMutation(mutationOptions);
|
|
4256
|
+
};
|
|
4257
|
+
/**
|
|
4258
|
+
* @summary Remove a member from a channel
|
|
4259
|
+
*/
|
|
4260
|
+
export var channelsControllerRemoveChannelMember = function (slug, channelId, targetUserId, options) {
|
|
4261
|
+
return customInstance({ url: "/api/workspaces/".concat(slug, "/channels/").concat(channelId, "/members/").concat(targetUserId), method: 'DELETE' }, options);
|
|
4262
|
+
};
|
|
4263
|
+
export var getChannelsControllerRemoveChannelMemberMutationOptions = function (options) {
|
|
4264
|
+
var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
|
|
4265
|
+
var mutationFn = function (props) {
|
|
4266
|
+
var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, targetUserId = _a.targetUserId;
|
|
4267
|
+
return channelsControllerRemoveChannelMember(slug, channelId, targetUserId, requestOptions);
|
|
4268
|
+
};
|
|
4269
|
+
return __assign({ mutationFn: mutationFn }, mutationOptions);
|
|
4270
|
+
};
|
|
4271
|
+
/**
|
|
4272
|
+
* @summary Remove a member from a channel
|
|
4273
|
+
*/
|
|
4274
|
+
export var useChannelsControllerRemoveChannelMember = function (options) {
|
|
4275
|
+
var mutationOptions = getChannelsControllerRemoveChannelMemberMutationOptions(options);
|
|
4276
|
+
return useMutation(mutationOptions);
|
|
4277
|
+
};
|
|
5414
4278
|
/**
|
|
5415
4279
|
* @summary Get all departments in a workspace
|
|
5416
4280
|
*/
|