@scryme/chat 2.91.29 → 2.91.61

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.
@@ -28,11 +28,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
28
28
  import { useMutation, useQuery } from '@tanstack/react-query';
29
29
  import { customInstance } from '../custom-instance';
30
30
  // eslint-disable-next-line @typescript-eslint/no-redeclare
31
- export var ScheduledNotificationsControllerUpdateNotificationBodyAction = {
32
- pause: 'pause',
33
- resume: 'resume',
34
- };
35
- // eslint-disable-next-line @typescript-eslint/no-redeclare
36
31
  export var DepartmentsControllerGetAnnouncementsPriority = {
37
32
  low: 'low',
38
33
  normal: 'normal',
@@ -51,11 +46,17 @@ export var FriendsControllerGetFriendRequestsType = {
51
46
  outgoing: 'outgoing',
52
47
  };
53
48
  // eslint-disable-next-line @typescript-eslint/no-redeclare
54
- export var UsersControllerRegisterDeviceTokenBodyPlatform = {
55
- web: 'web',
56
- ios: 'ios',
57
- android: 'android',
58
- desktop: 'desktop',
49
+ export var UpdateScheduledNotificationDtoScheduleType = {
50
+ custom: 'custom',
51
+ once: 'once',
52
+ daily: 'daily',
53
+ weekly: 'weekly',
54
+ monthly: 'monthly',
55
+ };
56
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
57
+ export var UpdateScheduledNotificationDtoAction = {
58
+ pause: 'pause',
59
+ resume: 'resume',
59
60
  };
60
61
  // eslint-disable-next-line @typescript-eslint/no-redeclare
61
62
  export var CreateScheduledNotificationDtoScheduleType = {
@@ -199,6 +200,27 @@ export var V3ProvisionWorkspaceDtoInitialMembersItemRole = {
199
200
  export var V3TokenRequestDtoGrantType = {
200
201
  client_credentials: 'client_credentials',
201
202
  };
203
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
204
+ export var RegisterDeviceTokenDtoPlatform = {
205
+ web: 'web',
206
+ ios: 'ios',
207
+ android: 'android',
208
+ desktop: 'desktop',
209
+ };
210
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
211
+ export var UpdateUserProfileDtoStatus = {
212
+ online: 'online',
213
+ offline: 'offline',
214
+ away: 'away',
215
+ dnd: 'dnd',
216
+ };
217
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
218
+ export var UpdateUserStatusDtoStatus = {
219
+ online: 'online',
220
+ offline: 'offline',
221
+ away: 'away',
222
+ dnd: 'dnd',
223
+ };
202
224
  /**
203
225
  * @summary Check health
204
226
  */
@@ -405,13 +427,16 @@ export var useUsersControllerGetMe = function (options) {
405
427
  /**
406
428
  * @summary Update current user profile
407
429
  */
408
- export var usersControllerPatchMe = function (options) {
409
- return customInstance({ url: "/api/users/me", method: 'PATCH' }, options);
430
+ export var usersControllerPatchMe = function (updateUserProfileDto, options) {
431
+ return customInstance({ url: "/api/users/me", method: 'PATCH',
432
+ headers: { 'Content-Type': 'application/json', },
433
+ data: updateUserProfileDto }, options);
410
434
  };
411
435
  export var getUsersControllerPatchMeMutationOptions = function (options) {
412
436
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
413
- var mutationFn = function () {
414
- return usersControllerPatchMe(requestOptions);
437
+ var mutationFn = function (props) {
438
+ var data = (props !== null && props !== void 0 ? props : {}).data;
439
+ return usersControllerPatchMe(data, requestOptions);
415
440
  };
416
441
  return __assign({ mutationFn: mutationFn }, mutationOptions);
417
442
  };
@@ -425,13 +450,16 @@ export var useUsersControllerPatchMe = function (options) {
425
450
  /**
426
451
  * @summary Update current user profile
427
452
  */
428
- export var usersControllerUpdateMe = function (options) {
429
- return customInstance({ url: "/api/users/me", method: 'POST' }, options);
453
+ export var usersControllerUpdateMe = function (updateUserProfileDto, options) {
454
+ return customInstance({ url: "/api/users/me", method: 'POST',
455
+ headers: { 'Content-Type': 'application/json', },
456
+ data: updateUserProfileDto }, options);
430
457
  };
431
458
  export var getUsersControllerUpdateMeMutationOptions = function (options) {
432
459
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
433
- var mutationFn = function () {
434
- return usersControllerUpdateMe(requestOptions);
460
+ var mutationFn = function (props) {
461
+ var data = (props !== null && props !== void 0 ? props : {}).data;
462
+ return usersControllerUpdateMe(data, requestOptions);
435
463
  };
436
464
  return __assign({ mutationFn: mutationFn }, mutationOptions);
437
465
  };
@@ -474,14 +502,16 @@ export var useUsersControllerGetUser = function (id, options) {
474
502
  /**
475
503
  * @summary Update user profile by ID
476
504
  */
477
- export var usersControllerPatchUser = function (id, options) {
478
- return customInstance({ url: "/api/users/".concat(id), method: 'PATCH' }, options);
505
+ export var usersControllerPatchUser = function (id, updateUserProfileDto, options) {
506
+ return customInstance({ url: "/api/users/".concat(id), method: 'PATCH',
507
+ headers: { 'Content-Type': 'application/json', },
508
+ data: updateUserProfileDto }, options);
479
509
  };
480
510
  export var getUsersControllerPatchUserMutationOptions = function (options) {
481
511
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
482
512
  var mutationFn = function (props) {
483
- var id = (props !== null && props !== void 0 ? props : {}).id;
484
- return usersControllerPatchUser(id, requestOptions);
513
+ var _a = props !== null && props !== void 0 ? props : {}, id = _a.id, data = _a.data;
514
+ return usersControllerPatchUser(id, data, requestOptions);
485
515
  };
486
516
  return __assign({ mutationFn: mutationFn }, mutationOptions);
487
517
  };
@@ -566,13 +596,16 @@ export var useUsersControllerUnblockUser = function (options) {
566
596
  /**
567
597
  * @summary Update current user status
568
598
  */
569
- export var usersControllerUpdateMyStatus = function (options) {
570
- return customInstance({ url: "/api/users/me/status", method: 'PATCH' }, options);
599
+ export var usersControllerUpdateMyStatus = function (updateUserStatusDto, options) {
600
+ return customInstance({ url: "/api/users/me/status", method: 'PATCH',
601
+ headers: { 'Content-Type': 'application/json', },
602
+ data: updateUserStatusDto }, options);
571
603
  };
572
604
  export var getUsersControllerUpdateMyStatusMutationOptions = function (options) {
573
605
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
574
- var mutationFn = function () {
575
- return usersControllerUpdateMyStatus(requestOptions);
606
+ var mutationFn = function (props) {
607
+ var data = (props !== null && props !== void 0 ? props : {}).data;
608
+ return usersControllerUpdateMyStatus(data, requestOptions);
576
609
  };
577
610
  return __assign({ mutationFn: mutationFn }, mutationOptions);
578
611
  };
@@ -586,10 +619,10 @@ export var useUsersControllerUpdateMyStatus = function (options) {
586
619
  /**
587
620
  * @summary Register a device token for push notifications
588
621
  */
589
- export var usersControllerRegisterDeviceToken = function (usersControllerRegisterDeviceTokenBody, options) {
622
+ export var usersControllerRegisterDeviceToken = function (registerDeviceTokenDto, options) {
590
623
  return customInstance({ url: "/api/users/me/device-tokens", method: 'POST',
591
624
  headers: { 'Content-Type': 'application/json', },
592
- data: usersControllerRegisterDeviceTokenBody }, options);
625
+ data: registerDeviceTokenDto }, options);
593
626
  };
594
627
  export var getUsersControllerRegisterDeviceTokenMutationOptions = function (options) {
595
628
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
@@ -638,15 +671,17 @@ export var useUsersControllerGetDeviceTokens = function (options) {
638
671
  /**
639
672
  * @summary Deactivate a device token
640
673
  */
641
- export var usersControllerDeleteDeviceToken = function (params, options) {
642
- return customInstance({ url: "/api/users/me/device-tokens", method: 'DELETE', params: params
674
+ export var usersControllerDeleteDeviceToken = function (deleteDeviceTokenDto, params, options) {
675
+ return customInstance({ url: "/api/users/me/device-tokens", method: 'DELETE',
676
+ headers: { 'Content-Type': 'application/json', },
677
+ data: deleteDeviceTokenDto, params: params
643
678
  }, options);
644
679
  };
645
680
  export var getUsersControllerDeleteDeviceTokenMutationOptions = function (options) {
646
681
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
647
682
  var mutationFn = function (props) {
648
- var params = (props !== null && props !== void 0 ? props : {}).params;
649
- return usersControllerDeleteDeviceToken(params, requestOptions);
683
+ var _a = props !== null && props !== void 0 ? props : {}, data = _a.data, params = _a.params;
684
+ return usersControllerDeleteDeviceToken(data, params, requestOptions);
650
685
  };
651
686
  return __assign({ mutationFn: mutationFn }, mutationOptions);
652
687
  };
@@ -1292,7 +1327,7 @@ export var useV3WorkspacesControllerGetWorkspaceMembers = function (slug, option
1292
1327
  return query;
1293
1328
  };
1294
1329
  /**
1295
- * Add a new member to a specific workspace. Requires members:write scope.
1330
+ * Add a new member to a specific workspace using user email, user ID, or workspace member ID. Requires members:write scope.
1296
1331
  * @summary Add a member to the workspace (Enterprise M2M)
1297
1332
  */
1298
1333
  export var v3WorkspacesControllerAddWorkspaceMember = function (slug, v3AddMemberDto, options) {
@@ -1316,49 +1351,49 @@ export var useV3WorkspacesControllerAddWorkspaceMember = function (options) {
1316
1351
  return useMutation(mutationOptions);
1317
1352
  };
1318
1353
  /**
1319
- * Retrieve details of a specific workspace member by userId. Requires members:read scope.
1354
+ * Retrieve details of a specific workspace member by member ID, user ID, or user email address. Requires members:read scope.
1320
1355
  * @summary Get details of a specific workspace member (Enterprise M2M)
1321
1356
  */
1322
- export var v3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options, signal) {
1323
- return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'GET', signal: signal
1357
+ export var v3WorkspacesControllerGetWorkspaceMember = function (slug, memberId, options, signal) {
1358
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(memberId), method: 'GET', signal: signal
1324
1359
  }, options);
1325
1360
  };
1326
- export var getV3WorkspacesControllerGetWorkspaceMemberQueryKey = function (slug, userId) {
1327
- return ["/api/v3/workspaces/".concat(slug, "/members/").concat(userId)];
1361
+ export var getV3WorkspacesControllerGetWorkspaceMemberQueryKey = function (slug, memberId) {
1362
+ return ["/api/v3/workspaces/".concat(slug, "/members/").concat(memberId)];
1328
1363
  };
1329
- export var getV3WorkspacesControllerGetWorkspaceMemberQueryOptions = function (slug, userId, options) {
1364
+ export var getV3WorkspacesControllerGetWorkspaceMemberQueryOptions = function (slug, memberId, options) {
1330
1365
  var _a;
1331
1366
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
1332
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceMemberQueryKey(slug, userId);
1367
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetWorkspaceMemberQueryKey(slug, memberId);
1333
1368
  var queryFn = function (_a) {
1334
1369
  var signal = _a.signal;
1335
- return v3WorkspacesControllerGetWorkspaceMember(slug, userId, requestOptions, signal);
1370
+ return v3WorkspacesControllerGetWorkspaceMember(slug, memberId, requestOptions, signal);
1336
1371
  };
1337
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && userId) }, queryOptions);
1372
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && memberId) }, queryOptions);
1338
1373
  };
1339
1374
  /**
1340
1375
  * @summary Get details of a specific workspace member (Enterprise M2M)
1341
1376
  */
1342
- export var useV3WorkspacesControllerGetWorkspaceMember = function (slug, userId, options) {
1343
- var queryOptions = getV3WorkspacesControllerGetWorkspaceMemberQueryOptions(slug, userId, options);
1377
+ export var useV3WorkspacesControllerGetWorkspaceMember = function (slug, memberId, options) {
1378
+ var queryOptions = getV3WorkspacesControllerGetWorkspaceMemberQueryOptions(slug, memberId, options);
1344
1379
  var query = useQuery(queryOptions);
1345
1380
  query.queryKey = queryOptions.queryKey;
1346
1381
  return query;
1347
1382
  };
1348
1383
  /**
1349
- * Update the role of a specific workspace member. Requires members:write scope.
1384
+ * Update the role of a specific workspace member by member ID, user ID, or user email address. Requires members:write scope.
1350
1385
  * @summary Update a workspace member role (Enterprise M2M)
1351
1386
  */
1352
- export var v3WorkspacesControllerUpdateWorkspaceMember = function (slug, userId, v3UpdateMemberRoleDto, options) {
1353
- return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'PATCH',
1387
+ export var v3WorkspacesControllerUpdateWorkspaceMember = function (slug, memberId, v3UpdateMemberRoleDto, options) {
1388
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(memberId), method: 'PATCH',
1354
1389
  headers: { 'Content-Type': 'application/json', },
1355
1390
  data: v3UpdateMemberRoleDto }, options);
1356
1391
  };
1357
1392
  export var getV3WorkspacesControllerUpdateWorkspaceMemberMutationOptions = function (options) {
1358
1393
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1359
1394
  var mutationFn = function (props) {
1360
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, userId = _a.userId, data = _a.data;
1361
- return v3WorkspacesControllerUpdateWorkspaceMember(slug, userId, data, requestOptions);
1395
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, memberId = _a.memberId, data = _a.data;
1396
+ return v3WorkspacesControllerUpdateWorkspaceMember(slug, memberId, data, requestOptions);
1362
1397
  };
1363
1398
  return __assign({ mutationFn: mutationFn }, mutationOptions);
1364
1399
  };
@@ -1370,17 +1405,17 @@ export var useV3WorkspacesControllerUpdateWorkspaceMember = function (options) {
1370
1405
  return useMutation(mutationOptions);
1371
1406
  };
1372
1407
  /**
1373
- * Remove a workspace member by userId. Requires members:write scope.
1408
+ * Remove a workspace member by member ID, user ID, or user email address. Requires members:write scope.
1374
1409
  * @summary Remove a member from the workspace (Enterprise M2M)
1375
1410
  */
1376
- export var v3WorkspacesControllerDeleteWorkspaceMember = function (slug, userId, options) {
1377
- return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(userId), method: 'DELETE' }, options);
1411
+ export var v3WorkspacesControllerDeleteWorkspaceMember = function (slug, memberId, options) {
1412
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/members/").concat(memberId), method: 'DELETE' }, options);
1378
1413
  };
1379
1414
  export var getV3WorkspacesControllerDeleteWorkspaceMemberMutationOptions = function (options) {
1380
1415
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1381
1416
  var mutationFn = function (props) {
1382
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, userId = _a.userId;
1383
- return v3WorkspacesControllerDeleteWorkspaceMember(slug, userId, requestOptions);
1417
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, memberId = _a.memberId;
1418
+ return v3WorkspacesControllerDeleteWorkspaceMember(slug, memberId, requestOptions);
1384
1419
  };
1385
1420
  return __assign({ mutationFn: mutationFn }, mutationOptions);
1386
1421
  };
@@ -1552,7 +1587,7 @@ export var useV3WorkspacesControllerGetChannelMembers = function (slug, channelI
1552
1587
  return query;
1553
1588
  };
1554
1589
  /**
1555
- * Add user(s) to a channel with customizable role and permissions. Requires channels:write scope.
1590
+ * Add user(s) to a channel using user IDs, member IDs, or email addresses with customizable role and permissions. Requires channels:write scope.
1556
1591
  * @summary Add members to a channel (Enterprise M2M)
1557
1592
  */
1558
1593
  export var v3WorkspacesControllerAddChannelMembers = function (slug, channelId, v3AddChannelMemberDto, options) {
@@ -1576,19 +1611,19 @@ export var useV3WorkspacesControllerAddChannelMembers = function (options) {
1576
1611
  return useMutation(mutationOptions);
1577
1612
  };
1578
1613
  /**
1579
- * Update the role or bitwise permissions of a channel member. Requires channels:write scope.
1614
+ * Update the role or bitwise permissions of a channel member using user ID, member ID, or email address. Requires channels:write scope.
1580
1615
  * @summary Update channel member role and permissions (Enterprise M2M)
1581
1616
  */
1582
- export var v3WorkspacesControllerUpdateChannelMember = function (slug, channelId, userId, v3UpdateChannelMemberDto, options) {
1583
- return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/members/").concat(userId), method: 'PATCH',
1617
+ export var v3WorkspacesControllerUpdateChannelMember = function (slug, channelId, memberId, v3UpdateChannelMemberDto, options) {
1618
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/members/").concat(memberId), method: 'PATCH',
1584
1619
  headers: { 'Content-Type': 'application/json', },
1585
1620
  data: v3UpdateChannelMemberDto }, options);
1586
1621
  };
1587
1622
  export var getV3WorkspacesControllerUpdateChannelMemberMutationOptions = function (options) {
1588
1623
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1589
1624
  var mutationFn = function (props) {
1590
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, userId = _a.userId, data = _a.data;
1591
- return v3WorkspacesControllerUpdateChannelMember(slug, channelId, userId, data, requestOptions);
1625
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, memberId = _a.memberId, data = _a.data;
1626
+ return v3WorkspacesControllerUpdateChannelMember(slug, channelId, memberId, data, requestOptions);
1592
1627
  };
1593
1628
  return __assign({ mutationFn: mutationFn }, mutationOptions);
1594
1629
  };
@@ -1600,17 +1635,17 @@ export var useV3WorkspacesControllerUpdateChannelMember = function (options) {
1600
1635
  return useMutation(mutationOptions);
1601
1636
  };
1602
1637
  /**
1603
- * Remove a specific member from a channel. Requires channels:write scope.
1638
+ * Remove a specific member from a channel using user ID, workspace member ID, or email address. Requires channels:write scope.
1604
1639
  * @summary Remove a member from a channel (Enterprise M2M)
1605
1640
  */
1606
- export var v3WorkspacesControllerDeleteChannelMember = function (slug, channelId, userId, options) {
1607
- return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/members/").concat(userId), method: 'DELETE' }, options);
1641
+ export var v3WorkspacesControllerDeleteChannelMember = function (slug, channelId, memberId, options) {
1642
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/members/").concat(memberId), method: 'DELETE' }, options);
1608
1643
  };
1609
1644
  export var getV3WorkspacesControllerDeleteChannelMemberMutationOptions = function (options) {
1610
1645
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1611
1646
  var mutationFn = function (props) {
1612
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, userId = _a.userId;
1613
- return v3WorkspacesControllerDeleteChannelMember(slug, channelId, userId, requestOptions);
1647
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, memberId = _a.memberId;
1648
+ return v3WorkspacesControllerDeleteChannelMember(slug, channelId, memberId, requestOptions);
1614
1649
  };
1615
1650
  return __assign({ mutationFn: mutationFn }, mutationOptions);
1616
1651
  };
@@ -1621,6 +1656,146 @@ export var useV3WorkspacesControllerDeleteChannelMember = function (options) {
1621
1656
  var mutationOptions = getV3WorkspacesControllerDeleteChannelMemberMutationOptions(options);
1622
1657
  return useMutation(mutationOptions);
1623
1658
  };
1659
+ /**
1660
+ * Retrieve message history for a channel in a workspace. Requires messages:read scope.
1661
+ * @summary Get channel messages (Enterprise M2M)
1662
+ */
1663
+ export var v3WorkspacesControllerGetChannelMessages = function (slug, channelId, params, options, signal) {
1664
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages"), method: 'GET', params: params, signal: signal
1665
+ }, options);
1666
+ };
1667
+ export var getV3WorkspacesControllerGetChannelMessagesQueryKey = function (slug, channelId, params) {
1668
+ return __spreadArray(["/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages")], (params ? [params] : []), true);
1669
+ };
1670
+ export var getV3WorkspacesControllerGetChannelMessagesQueryOptions = function (slug, channelId, params, options) {
1671
+ var _a;
1672
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
1673
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3WorkspacesControllerGetChannelMessagesQueryKey(slug, channelId, params);
1674
+ var queryFn = function (_a) {
1675
+ var signal = _a.signal;
1676
+ return v3WorkspacesControllerGetChannelMessages(slug, channelId, params, requestOptions, signal);
1677
+ };
1678
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && channelId) }, queryOptions);
1679
+ };
1680
+ /**
1681
+ * @summary Get channel messages (Enterprise M2M)
1682
+ */
1683
+ export var useV3WorkspacesControllerGetChannelMessages = function (slug, channelId, params, options) {
1684
+ var queryOptions = getV3WorkspacesControllerGetChannelMessagesQueryOptions(slug, channelId, params, options);
1685
+ var query = useQuery(queryOptions);
1686
+ query.queryKey = queryOptions.queryKey;
1687
+ return query;
1688
+ };
1689
+ /**
1690
+ * Send a message to a channel. Requires messages:send scope.
1691
+ * @summary Send a message to a channel (Enterprise M2M)
1692
+ */
1693
+ export var v3WorkspacesControllerCreateChannelMessage = function (slug, channelId, options) {
1694
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages"), method: 'POST' }, options);
1695
+ };
1696
+ export var getV3WorkspacesControllerCreateChannelMessageMutationOptions = function (options) {
1697
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1698
+ var mutationFn = function (props) {
1699
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId;
1700
+ return v3WorkspacesControllerCreateChannelMessage(slug, channelId, requestOptions);
1701
+ };
1702
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
1703
+ };
1704
+ /**
1705
+ * @summary Send a message to a channel (Enterprise M2M)
1706
+ */
1707
+ export var useV3WorkspacesControllerCreateChannelMessage = function (options) {
1708
+ var mutationOptions = getV3WorkspacesControllerCreateChannelMessageMutationOptions(options);
1709
+ return useMutation(mutationOptions);
1710
+ };
1711
+ /**
1712
+ * Update content of a message. Requires messages:send scope.
1713
+ * @summary Update a channel message (Enterprise M2M)
1714
+ */
1715
+ export var v3WorkspacesControllerUpdateChannelMessage = function (slug, channelId, messageId, options) {
1716
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId), method: 'PATCH' }, options);
1717
+ };
1718
+ export var getV3WorkspacesControllerUpdateChannelMessageMutationOptions = function (options) {
1719
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1720
+ var mutationFn = function (props) {
1721
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, messageId = _a.messageId;
1722
+ return v3WorkspacesControllerUpdateChannelMessage(slug, channelId, messageId, requestOptions);
1723
+ };
1724
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
1725
+ };
1726
+ /**
1727
+ * @summary Update a channel message (Enterprise M2M)
1728
+ */
1729
+ export var useV3WorkspacesControllerUpdateChannelMessage = function (options) {
1730
+ var mutationOptions = getV3WorkspacesControllerUpdateChannelMessageMutationOptions(options);
1731
+ return useMutation(mutationOptions);
1732
+ };
1733
+ /**
1734
+ * Delete a message. Requires messages:send scope.
1735
+ * @summary Delete a channel message (Enterprise M2M)
1736
+ */
1737
+ export var v3WorkspacesControllerDeleteChannelMessage = function (slug, channelId, messageId, options) {
1738
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId), method: 'DELETE' }, options);
1739
+ };
1740
+ export var getV3WorkspacesControllerDeleteChannelMessageMutationOptions = function (options) {
1741
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1742
+ var mutationFn = function (props) {
1743
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, messageId = _a.messageId;
1744
+ return v3WorkspacesControllerDeleteChannelMessage(slug, channelId, messageId, requestOptions);
1745
+ };
1746
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
1747
+ };
1748
+ /**
1749
+ * @summary Delete a channel message (Enterprise M2M)
1750
+ */
1751
+ export var useV3WorkspacesControllerDeleteChannelMessage = function (options) {
1752
+ var mutationOptions = getV3WorkspacesControllerDeleteChannelMessageMutationOptions(options);
1753
+ return useMutation(mutationOptions);
1754
+ };
1755
+ /**
1756
+ * Add an emoji reaction to a message. Requires messages:send scope.
1757
+ * @summary Add a reaction to a channel message (Enterprise M2M)
1758
+ */
1759
+ export var v3WorkspacesControllerAddChannelMessageReaction = function (slug, channelId, messageId, options) {
1760
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId, "/reactions"), method: 'POST' }, options);
1761
+ };
1762
+ export var getV3WorkspacesControllerAddChannelMessageReactionMutationOptions = function (options) {
1763
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1764
+ var mutationFn = function (props) {
1765
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, messageId = _a.messageId;
1766
+ return v3WorkspacesControllerAddChannelMessageReaction(slug, channelId, messageId, requestOptions);
1767
+ };
1768
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
1769
+ };
1770
+ /**
1771
+ * @summary Add a reaction to a channel message (Enterprise M2M)
1772
+ */
1773
+ export var useV3WorkspacesControllerAddChannelMessageReaction = function (options) {
1774
+ var mutationOptions = getV3WorkspacesControllerAddChannelMessageReactionMutationOptions(options);
1775
+ return useMutation(mutationOptions);
1776
+ };
1777
+ /**
1778
+ * Remove an emoji reaction from a message. Requires messages:send scope.
1779
+ * @summary Remove a reaction from a channel message (Enterprise M2M)
1780
+ */
1781
+ export var v3WorkspacesControllerRemoveChannelMessageReaction = function (slug, channelId, messageId, emoji, options) {
1782
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/channels/").concat(channelId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
1783
+ };
1784
+ export var getV3WorkspacesControllerRemoveChannelMessageReactionMutationOptions = function (options) {
1785
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
1786
+ var mutationFn = function (props) {
1787
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, channelId = _a.channelId, messageId = _a.messageId, emoji = _a.emoji;
1788
+ return v3WorkspacesControllerRemoveChannelMessageReaction(slug, channelId, messageId, emoji, requestOptions);
1789
+ };
1790
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
1791
+ };
1792
+ /**
1793
+ * @summary Remove a reaction from a channel message (Enterprise M2M)
1794
+ */
1795
+ export var useV3WorkspacesControllerRemoveChannelMessageReaction = function (options) {
1796
+ var mutationOptions = getV3WorkspacesControllerRemoveChannelMessageReactionMutationOptions(options);
1797
+ return useMutation(mutationOptions);
1798
+ };
1624
1799
  /**
1625
1800
  * Requires webhooks:read scope. Retrieves all webhooks configured for this workspace.
1626
1801
  * @summary List all webhooks in the workspace
@@ -1751,6 +1926,36 @@ export var useV3WebhooksControllerDeleteWebhook = function (options) {
1751
1926
  var mutationOptions = getV3WebhooksControllerDeleteWebhookMutationOptions(options);
1752
1927
  return useMutation(mutationOptions);
1753
1928
  };
1929
+ /**
1930
+ * Requires webhooks:read scope. Retrieves all incoming webhooks configured across all channels in this workspace.
1931
+ * @summary List all incoming webhooks in a workspace
1932
+ */
1933
+ export var v3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooks = function (slug, options, signal) {
1934
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/incoming-webhooks"), method: 'GET', signal: signal
1935
+ }, options);
1936
+ };
1937
+ export var getV3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooksQueryKey = function (slug) {
1938
+ return ["/api/v3/workspaces/".concat(slug, "/incoming-webhooks")];
1939
+ };
1940
+ export var getV3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooksQueryOptions = function (slug, options) {
1941
+ var _a;
1942
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
1943
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooksQueryKey(slug);
1944
+ var queryFn = function (_a) {
1945
+ var signal = _a.signal;
1946
+ return v3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooks(slug, requestOptions, signal);
1947
+ };
1948
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
1949
+ };
1950
+ /**
1951
+ * @summary List all incoming webhooks in a workspace
1952
+ */
1953
+ export var useV3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooks = function (slug, options) {
1954
+ var queryOptions = getV3ChannelIncomingWebhooksControllerGetWorkspaceIncomingWebhooksQueryOptions(slug, options);
1955
+ var query = useQuery(queryOptions);
1956
+ query.queryKey = queryOptions.queryKey;
1957
+ return query;
1958
+ };
1754
1959
  /**
1755
1960
  * Requires webhooks:read scope. Retrieves all incoming webhooks configured for this channel.
1756
1961
  * @summary List incoming webhooks for a channel
@@ -2108,1825 +2313,2403 @@ export var useV3OrganizationsControllerDeleteM2mApplication = function (options)
2108
2313
  return useMutation(mutationOptions);
2109
2314
  };
2110
2315
  /**
2111
- * @summary Get notifications for the current user
2316
+ * @summary List bot applications
2112
2317
  */
2113
- export var notificationsControllerGetNotifications = function (params, options, signal) {
2114
- return customInstance({ url: "/api/notifications", method: 'GET', params: params, signal: signal
2318
+ export var v3ApplicationsControllerListApplications0 = function (options, signal) {
2319
+ return customInstance({ url: "/api/v3/applications", method: 'GET', signal: signal
2115
2320
  }, options);
2116
2321
  };
2117
- export var getNotificationsControllerGetNotificationsQueryKey = function (params) {
2118
- return __spreadArray(["/api/notifications"], (params ? [params] : []), true);
2322
+ export var getV3ApplicationsControllerListApplications0QueryKey = function () {
2323
+ return ["/api/v3/applications"];
2119
2324
  };
2120
- export var getNotificationsControllerGetNotificationsQueryOptions = function (params, options) {
2325
+ export var getV3ApplicationsControllerListApplications0QueryOptions = function (options) {
2121
2326
  var _a;
2122
2327
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2123
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetNotificationsQueryKey(params);
2328
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ApplicationsControllerListApplications0QueryKey();
2124
2329
  var queryFn = function (_a) {
2125
2330
  var signal = _a.signal;
2126
- return notificationsControllerGetNotifications(params, requestOptions, signal);
2331
+ return v3ApplicationsControllerListApplications0(requestOptions, signal);
2127
2332
  };
2128
2333
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2129
2334
  };
2130
2335
  /**
2131
- * @summary Get notifications for the current user
2336
+ * @summary List bot applications
2132
2337
  */
2133
- export var useNotificationsControllerGetNotifications = function (params, options) {
2134
- var queryOptions = getNotificationsControllerGetNotificationsQueryOptions(params, options);
2338
+ export var useV3ApplicationsControllerListApplications0 = function (options) {
2339
+ var queryOptions = getV3ApplicationsControllerListApplications0QueryOptions(options);
2135
2340
  var query = useQuery(queryOptions);
2136
2341
  query.queryKey = queryOptions.queryKey;
2137
2342
  return query;
2138
2343
  };
2139
2344
  /**
2140
- * @summary Get a single notification by ID
2345
+ * @summary Create a bot application
2141
2346
  */
2142
- export var notificationsControllerGetNotificationById = function (notificationId, options, signal) {
2143
- return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'GET', signal: signal
2347
+ export var v3ApplicationsControllerCreateApplication0 = function (options) {
2348
+ return customInstance({ url: "/api/v3/applications", method: 'POST' }, options);
2349
+ };
2350
+ export var getV3ApplicationsControllerCreateApplication0MutationOptions = function (options) {
2351
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2352
+ var mutationFn = function () {
2353
+ return v3ApplicationsControllerCreateApplication0(requestOptions);
2354
+ };
2355
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2356
+ };
2357
+ /**
2358
+ * @summary Create a bot application
2359
+ */
2360
+ export var useV3ApplicationsControllerCreateApplication0 = function (options) {
2361
+ var mutationOptions = getV3ApplicationsControllerCreateApplication0MutationOptions(options);
2362
+ return useMutation(mutationOptions);
2363
+ };
2364
+ /**
2365
+ * @summary List bot applications
2366
+ */
2367
+ export var v3ApplicationsControllerListApplications1 = function (options, signal) {
2368
+ return customInstance({ url: "/api/v2/applications", method: 'GET', signal: signal
2144
2369
  }, options);
2145
2370
  };
2146
- export var getNotificationsControllerGetNotificationByIdQueryKey = function (notificationId) {
2147
- return ["/api/notifications/".concat(notificationId)];
2371
+ export var getV3ApplicationsControllerListApplications1QueryKey = function () {
2372
+ return ["/api/v2/applications"];
2148
2373
  };
2149
- export var getNotificationsControllerGetNotificationByIdQueryOptions = function (notificationId, options) {
2374
+ export var getV3ApplicationsControllerListApplications1QueryOptions = function (options) {
2150
2375
  var _a;
2151
2376
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2152
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetNotificationByIdQueryKey(notificationId);
2377
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ApplicationsControllerListApplications1QueryKey();
2153
2378
  var queryFn = function (_a) {
2154
2379
  var signal = _a.signal;
2155
- return notificationsControllerGetNotificationById(notificationId, requestOptions, signal);
2380
+ return v3ApplicationsControllerListApplications1(requestOptions, signal);
2156
2381
  };
2157
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(notificationId) }, queryOptions);
2382
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2158
2383
  };
2159
2384
  /**
2160
- * @summary Get a single notification by ID
2385
+ * @summary List bot applications
2161
2386
  */
2162
- export var useNotificationsControllerGetNotificationById = function (notificationId, options) {
2163
- var queryOptions = getNotificationsControllerGetNotificationByIdQueryOptions(notificationId, options);
2387
+ export var useV3ApplicationsControllerListApplications1 = function (options) {
2388
+ var queryOptions = getV3ApplicationsControllerListApplications1QueryOptions(options);
2164
2389
  var query = useQuery(queryOptions);
2165
2390
  query.queryKey = queryOptions.queryKey;
2166
2391
  return query;
2167
2392
  };
2168
2393
  /**
2169
- * @summary Update a notification (e.g. mark as read)
2394
+ * @summary Create a bot application
2170
2395
  */
2171
- export var notificationsControllerUpdateNotification = function (notificationId, updateNotificationDto, options) {
2172
- return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'PATCH',
2173
- headers: { 'Content-Type': 'application/json', },
2174
- data: updateNotificationDto }, options);
2396
+ export var v3ApplicationsControllerCreateApplication1 = function (options) {
2397
+ return customInstance({ url: "/api/v2/applications", method: 'POST' }, options);
2175
2398
  };
2176
- export var getNotificationsControllerUpdateNotificationMutationOptions = function (options) {
2399
+ export var getV3ApplicationsControllerCreateApplication1MutationOptions = function (options) {
2177
2400
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2178
- var mutationFn = function (props) {
2179
- var _a = props !== null && props !== void 0 ? props : {}, notificationId = _a.notificationId, data = _a.data;
2180
- return notificationsControllerUpdateNotification(notificationId, data, requestOptions);
2401
+ var mutationFn = function () {
2402
+ return v3ApplicationsControllerCreateApplication1(requestOptions);
2181
2403
  };
2182
2404
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2183
2405
  };
2184
2406
  /**
2185
- * @summary Update a notification (e.g. mark as read)
2407
+ * @summary Create a bot application
2186
2408
  */
2187
- export var useNotificationsControllerUpdateNotification = function (options) {
2188
- var mutationOptions = getNotificationsControllerUpdateNotificationMutationOptions(options);
2409
+ export var useV3ApplicationsControllerCreateApplication1 = function (options) {
2410
+ var mutationOptions = getV3ApplicationsControllerCreateApplication1MutationOptions(options);
2189
2411
  return useMutation(mutationOptions);
2190
2412
  };
2191
2413
  /**
2192
- * @summary Delete a notification
2414
+ * @summary Get application details
2193
2415
  */
2194
- export var notificationsControllerDeleteNotification = function (notificationId, options) {
2195
- return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'DELETE' }, options);
2416
+ export var v3ApplicationsControllerGetApplication0 = function (id, options, signal) {
2417
+ return customInstance({ url: "/api/v3/applications/".concat(id), method: 'GET', signal: signal
2418
+ }, options);
2196
2419
  };
2197
- export var getNotificationsControllerDeleteNotificationMutationOptions = function (options) {
2420
+ export var getV3ApplicationsControllerGetApplication0QueryKey = function (id) {
2421
+ return ["/api/v3/applications/".concat(id)];
2422
+ };
2423
+ export var getV3ApplicationsControllerGetApplication0QueryOptions = function (id, options) {
2424
+ var _a;
2425
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2426
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ApplicationsControllerGetApplication0QueryKey(id);
2427
+ var queryFn = function (_a) {
2428
+ var signal = _a.signal;
2429
+ return v3ApplicationsControllerGetApplication0(id, requestOptions, signal);
2430
+ };
2431
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
2432
+ };
2433
+ /**
2434
+ * @summary Get application details
2435
+ */
2436
+ export var useV3ApplicationsControllerGetApplication0 = function (id, options) {
2437
+ var queryOptions = getV3ApplicationsControllerGetApplication0QueryOptions(id, options);
2438
+ var query = useQuery(queryOptions);
2439
+ query.queryKey = queryOptions.queryKey;
2440
+ return query;
2441
+ };
2442
+ /**
2443
+ * @summary Update bot application
2444
+ */
2445
+ export var v3ApplicationsControllerUpdateApplication = function (id, options) {
2446
+ return customInstance({ url: "/api/v3/applications/".concat(id), method: 'PATCH' }, options);
2447
+ };
2448
+ export var getV3ApplicationsControllerUpdateApplicationMutationOptions = function (options) {
2198
2449
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2199
2450
  var mutationFn = function (props) {
2200
- var notificationId = (props !== null && props !== void 0 ? props : {}).notificationId;
2201
- return notificationsControllerDeleteNotification(notificationId, requestOptions);
2451
+ var id = (props !== null && props !== void 0 ? props : {}).id;
2452
+ return v3ApplicationsControllerUpdateApplication(id, requestOptions);
2202
2453
  };
2203
2454
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2204
2455
  };
2205
2456
  /**
2206
- * @summary Delete a notification
2457
+ * @summary Update bot application
2207
2458
  */
2208
- export var useNotificationsControllerDeleteNotification = function (options) {
2209
- var mutationOptions = getNotificationsControllerDeleteNotificationMutationOptions(options);
2459
+ export var useV3ApplicationsControllerUpdateApplication = function (options) {
2460
+ var mutationOptions = getV3ApplicationsControllerUpdateApplicationMutationOptions(options);
2210
2461
  return useMutation(mutationOptions);
2211
2462
  };
2212
2463
  /**
2213
- * @summary Mark all notifications as read
2464
+ * @summary Delete bot application
2214
2465
  */
2215
- export var notificationsControllerMarkAllRead = function (options) {
2216
- return customInstance({ url: "/api/notifications/mark-all-read", method: 'POST' }, options);
2466
+ export var v3ApplicationsControllerDeleteApplication = function (id, options) {
2467
+ return customInstance({ url: "/api/v3/applications/".concat(id), method: 'DELETE' }, options);
2217
2468
  };
2218
- export var getNotificationsControllerMarkAllReadMutationOptions = function (options) {
2469
+ export var getV3ApplicationsControllerDeleteApplicationMutationOptions = function (options) {
2219
2470
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2220
- var mutationFn = function () {
2221
- return notificationsControllerMarkAllRead(requestOptions);
2471
+ var mutationFn = function (props) {
2472
+ var id = (props !== null && props !== void 0 ? props : {}).id;
2473
+ return v3ApplicationsControllerDeleteApplication(id, requestOptions);
2222
2474
  };
2223
2475
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2224
2476
  };
2225
2477
  /**
2226
- * @summary Mark all notifications as read
2478
+ * @summary Delete bot application
2227
2479
  */
2228
- export var useNotificationsControllerMarkAllRead = function (options) {
2229
- var mutationOptions = getNotificationsControllerMarkAllReadMutationOptions(options);
2480
+ export var useV3ApplicationsControllerDeleteApplication = function (options) {
2481
+ var mutationOptions = getV3ApplicationsControllerDeleteApplicationMutationOptions(options);
2230
2482
  return useMutation(mutationOptions);
2231
2483
  };
2232
2484
  /**
2233
- * @summary Get notification settings for a workspace
2485
+ * @summary Get application details
2234
2486
  */
2235
- export var notificationsControllerGetWorkspaceSettings = function (params, options, signal) {
2236
- return customInstance({ url: "/api/notifications/settings/workspace", method: 'GET', params: params, signal: signal
2487
+ export var v3ApplicationsControllerGetApplication1 = function (id, options, signal) {
2488
+ return customInstance({ url: "/api/v2/applications/".concat(id), method: 'GET', signal: signal
2237
2489
  }, options);
2238
2490
  };
2239
- export var getNotificationsControllerGetWorkspaceSettingsQueryKey = function (params) {
2240
- return __spreadArray(["/api/notifications/settings/workspace"], (params ? [params] : []), true);
2491
+ export var getV3ApplicationsControllerGetApplication1QueryKey = function (id) {
2492
+ return ["/api/v2/applications/".concat(id)];
2241
2493
  };
2242
- export var getNotificationsControllerGetWorkspaceSettingsQueryOptions = function (params, options) {
2494
+ export var getV3ApplicationsControllerGetApplication1QueryOptions = function (id, options) {
2243
2495
  var _a;
2244
2496
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2245
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetWorkspaceSettingsQueryKey(params);
2497
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ApplicationsControllerGetApplication1QueryKey(id);
2246
2498
  var queryFn = function (_a) {
2247
2499
  var signal = _a.signal;
2248
- return notificationsControllerGetWorkspaceSettings(params, requestOptions, signal);
2500
+ return v3ApplicationsControllerGetApplication1(id, requestOptions, signal);
2249
2501
  };
2250
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2502
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(id) }, queryOptions);
2251
2503
  };
2252
2504
  /**
2253
- * @summary Get notification settings for a workspace
2505
+ * @summary Get application details
2254
2506
  */
2255
- export var useNotificationsControllerGetWorkspaceSettings = function (params, options) {
2256
- var queryOptions = getNotificationsControllerGetWorkspaceSettingsQueryOptions(params, options);
2507
+ export var useV3ApplicationsControllerGetApplication1 = function (id, options) {
2508
+ var queryOptions = getV3ApplicationsControllerGetApplication1QueryOptions(id, options);
2257
2509
  var query = useQuery(queryOptions);
2258
2510
  query.queryKey = queryOptions.queryKey;
2259
2511
  return query;
2260
2512
  };
2261
2513
  /**
2262
- * @summary Update notification settings for a workspace
2514
+ * @summary Reset bot token
2263
2515
  */
2264
- export var notificationsControllerUpdateWorkspaceSettings = function (workspaceSettingsDto, options) {
2265
- return customInstance({ url: "/api/notifications/settings/workspace", method: 'PATCH',
2266
- headers: { 'Content-Type': 'application/json', },
2267
- data: workspaceSettingsDto }, options);
2516
+ export var v3ApplicationsControllerResetToken0 = function (id, options) {
2517
+ return customInstance({ url: "/api/v3/applications/".concat(id, "/reset-token"), method: 'POST' }, options);
2268
2518
  };
2269
- export var getNotificationsControllerUpdateWorkspaceSettingsMutationOptions = function (options) {
2519
+ export var getV3ApplicationsControllerResetToken0MutationOptions = function (options) {
2270
2520
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2271
2521
  var mutationFn = function (props) {
2272
- var data = (props !== null && props !== void 0 ? props : {}).data;
2273
- return notificationsControllerUpdateWorkspaceSettings(data, requestOptions);
2522
+ var id = (props !== null && props !== void 0 ? props : {}).id;
2523
+ return v3ApplicationsControllerResetToken0(id, requestOptions);
2274
2524
  };
2275
2525
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2276
2526
  };
2277
2527
  /**
2278
- * @summary Update notification settings for a workspace
2528
+ * @summary Reset bot token
2279
2529
  */
2280
- export var useNotificationsControllerUpdateWorkspaceSettings = function (options) {
2281
- var mutationOptions = getNotificationsControllerUpdateWorkspaceSettingsMutationOptions(options);
2530
+ export var useV3ApplicationsControllerResetToken0 = function (options) {
2531
+ var mutationOptions = getV3ApplicationsControllerResetToken0MutationOptions(options);
2282
2532
  return useMutation(mutationOptions);
2283
2533
  };
2284
2534
  /**
2285
- * @summary Get notification settings for a channel
2535
+ * @summary Reset bot token
2286
2536
  */
2287
- export var notificationsControllerGetChannelSettings = function (params, options, signal) {
2288
- return customInstance({ url: "/api/notifications/settings/channel", method: 'GET', params: params, signal: signal
2289
- }, options);
2537
+ export var v3ApplicationsControllerResetToken1 = function (id, options) {
2538
+ return customInstance({ url: "/api/v2/applications/".concat(id, "/reset-token"), method: 'POST' }, options);
2290
2539
  };
2291
- export var getNotificationsControllerGetChannelSettingsQueryKey = function (params) {
2292
- return __spreadArray(["/api/notifications/settings/channel"], (params ? [params] : []), true);
2293
- };
2294
- export var getNotificationsControllerGetChannelSettingsQueryOptions = function (params, options) {
2295
- var _a;
2296
- var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2297
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetChannelSettingsQueryKey(params);
2298
- var queryFn = function (_a) {
2299
- var signal = _a.signal;
2300
- return notificationsControllerGetChannelSettings(params, requestOptions, signal);
2540
+ export var getV3ApplicationsControllerResetToken1MutationOptions = function (options) {
2541
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2542
+ var mutationFn = function (props) {
2543
+ var id = (props !== null && props !== void 0 ? props : {}).id;
2544
+ return v3ApplicationsControllerResetToken1(id, requestOptions);
2301
2545
  };
2302
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2546
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2303
2547
  };
2304
2548
  /**
2305
- * @summary Get notification settings for a channel
2549
+ * @summary Reset bot token
2550
+ */
2551
+ export var useV3ApplicationsControllerResetToken1 = function (options) {
2552
+ var mutationOptions = getV3ApplicationsControllerResetToken1MutationOptions(options);
2553
+ return useMutation(mutationOptions);
2554
+ };
2555
+ /**
2556
+ * @summary Install bot application to a workspace
2306
2557
  */
2307
- export var useNotificationsControllerGetChannelSettings = function (params, options) {
2308
- var queryOptions = getNotificationsControllerGetChannelSettingsQueryOptions(params, options);
2309
- var query = useQuery(queryOptions);
2310
- query.queryKey = queryOptions.queryKey;
2311
- return query;
2558
+ export var v3ApplicationsControllerInstallApplication0 = function (id, options) {
2559
+ return customInstance({ url: "/api/v3/applications/".concat(id, "/install"), method: 'POST' }, options);
2560
+ };
2561
+ export var getV3ApplicationsControllerInstallApplication0MutationOptions = function (options) {
2562
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2563
+ var mutationFn = function (props) {
2564
+ var id = (props !== null && props !== void 0 ? props : {}).id;
2565
+ return v3ApplicationsControllerInstallApplication0(id, requestOptions);
2566
+ };
2567
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2312
2568
  };
2313
2569
  /**
2314
- * @summary Update notification settings for a channel
2570
+ * @summary Install bot application to a workspace
2571
+ */
2572
+ export var useV3ApplicationsControllerInstallApplication0 = function (options) {
2573
+ var mutationOptions = getV3ApplicationsControllerInstallApplication0MutationOptions(options);
2574
+ return useMutation(mutationOptions);
2575
+ };
2576
+ /**
2577
+ * @summary Install bot application to a workspace
2315
2578
  */
2316
- export var notificationsControllerUpdateChannelSettings = function (channelSettingsDto, options) {
2317
- return customInstance({ url: "/api/notifications/settings/channel", method: 'PATCH',
2318
- headers: { 'Content-Type': 'application/json', },
2319
- data: channelSettingsDto }, options);
2579
+ export var v3ApplicationsControllerInstallApplication1 = function (id, options) {
2580
+ return customInstance({ url: "/api/v2/applications/".concat(id, "/install"), method: 'POST' }, options);
2320
2581
  };
2321
- export var getNotificationsControllerUpdateChannelSettingsMutationOptions = function (options) {
2582
+ export var getV3ApplicationsControllerInstallApplication1MutationOptions = function (options) {
2322
2583
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2323
2584
  var mutationFn = function (props) {
2324
- var data = (props !== null && props !== void 0 ? props : {}).data;
2325
- return notificationsControllerUpdateChannelSettings(data, requestOptions);
2585
+ var id = (props !== null && props !== void 0 ? props : {}).id;
2586
+ return v3ApplicationsControllerInstallApplication1(id, requestOptions);
2326
2587
  };
2327
2588
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2328
2589
  };
2329
2590
  /**
2330
- * @summary Update notification settings for a channel
2591
+ * @summary Install bot application to a workspace
2331
2592
  */
2332
- export var useNotificationsControllerUpdateChannelSettings = function (options) {
2333
- var mutationOptions = getNotificationsControllerUpdateChannelSettingsMutationOptions(options);
2593
+ export var useV3ApplicationsControllerInstallApplication1 = function (options) {
2594
+ var mutationOptions = getV3ApplicationsControllerInstallApplication1MutationOptions(options);
2334
2595
  return useMutation(mutationOptions);
2335
2596
  };
2336
2597
  /**
2337
- * @summary Get invitations for the current user
2598
+ * @summary List installed bots in workspace
2338
2599
  */
2339
- export var invitationsControllerGetInvitations = function (params, options, signal) {
2340
- return customInstance({ url: "/api/invitations", method: 'GET', params: params, signal: signal
2600
+ export var v3ApplicationsControllerListWorkspaceBots = function (slug, options, signal) {
2601
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/bots"), method: 'GET', signal: signal
2341
2602
  }, options);
2342
2603
  };
2343
- export var getInvitationsControllerGetInvitationsQueryKey = function (params) {
2344
- return __spreadArray(["/api/invitations"], (params ? [params] : []), true);
2604
+ export var getV3ApplicationsControllerListWorkspaceBotsQueryKey = function (slug) {
2605
+ return ["/api/v3/workspaces/".concat(slug, "/bots")];
2345
2606
  };
2346
- export var getInvitationsControllerGetInvitationsQueryOptions = function (params, options) {
2607
+ export var getV3ApplicationsControllerListWorkspaceBotsQueryOptions = function (slug, options) {
2347
2608
  var _a;
2348
2609
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2349
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getInvitationsControllerGetInvitationsQueryKey(params);
2610
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3ApplicationsControllerListWorkspaceBotsQueryKey(slug);
2350
2611
  var queryFn = function (_a) {
2351
2612
  var signal = _a.signal;
2352
- return invitationsControllerGetInvitations(params, requestOptions, signal);
2613
+ return v3ApplicationsControllerListWorkspaceBots(slug, requestOptions, signal);
2353
2614
  };
2354
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2615
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
2355
2616
  };
2356
2617
  /**
2357
- * @summary Get invitations for the current user
2618
+ * @summary List installed bots in workspace
2358
2619
  */
2359
- export var useInvitationsControllerGetInvitations = function (params, options) {
2360
- var queryOptions = getInvitationsControllerGetInvitationsQueryOptions(params, options);
2620
+ export var useV3ApplicationsControllerListWorkspaceBots = function (slug, options) {
2621
+ var queryOptions = getV3ApplicationsControllerListWorkspaceBotsQueryOptions(slug, options);
2361
2622
  var query = useQuery(queryOptions);
2362
2623
  query.queryKey = queryOptions.queryKey;
2363
2624
  return query;
2364
2625
  };
2365
2626
  /**
2366
- * @summary Create a new invitation
2627
+ * @summary Add a bot to a workspace
2367
2628
  */
2368
- export var invitationsControllerCreateInvitation = function (createInvitationDto, options) {
2369
- return customInstance({ url: "/api/invitations", method: 'POST',
2370
- headers: { 'Content-Type': 'application/json', },
2371
- data: createInvitationDto }, options);
2629
+ export var v3ApplicationsControllerAddBotToWorkspace = function (slug, options) {
2630
+ return customInstance({ url: "/api/v3/workspaces/".concat(slug, "/bots"), method: 'POST' }, options);
2372
2631
  };
2373
- export var getInvitationsControllerCreateInvitationMutationOptions = function (options) {
2632
+ export var getV3ApplicationsControllerAddBotToWorkspaceMutationOptions = function (options) {
2374
2633
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2375
2634
  var mutationFn = function (props) {
2376
- var data = (props !== null && props !== void 0 ? props : {}).data;
2377
- return invitationsControllerCreateInvitation(data, requestOptions);
2635
+ var slug = (props !== null && props !== void 0 ? props : {}).slug;
2636
+ return v3ApplicationsControllerAddBotToWorkspace(slug, requestOptions);
2378
2637
  };
2379
2638
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2380
2639
  };
2381
2640
  /**
2382
- * @summary Create a new invitation
2641
+ * @summary Add a bot to a workspace
2383
2642
  */
2384
- export var useInvitationsControllerCreateInvitation = function (options) {
2385
- var mutationOptions = getInvitationsControllerCreateInvitationMutationOptions(options);
2643
+ export var useV3ApplicationsControllerAddBotToWorkspace = function (options) {
2644
+ var mutationOptions = getV3ApplicationsControllerAddBotToWorkspaceMutationOptions(options);
2386
2645
  return useMutation(mutationOptions);
2387
2646
  };
2388
2647
  /**
2389
- * @summary Get invitation details by token
2648
+ * Retrieve active direct message conversations for the authenticated user/bot. Requires messages:read scope.
2649
+ * @summary List direct message conversations (Enterprise M2M V3)
2390
2650
  */
2391
- export var invitationsControllerGetInvitationByToken = function (token, options, signal) {
2392
- return customInstance({ url: "/api/invitations/".concat(token), method: 'GET', signal: signal
2651
+ export var v3DmsControllerGetDms = function (options, signal) {
2652
+ return customInstance({ url: "/api/v3/dms", method: 'GET', signal: signal
2393
2653
  }, options);
2394
2654
  };
2395
- export var getInvitationsControllerGetInvitationByTokenQueryKey = function (token) {
2396
- return ["/api/invitations/".concat(token)];
2655
+ export var getV3DmsControllerGetDmsQueryKey = function () {
2656
+ return ["/api/v3/dms"];
2397
2657
  };
2398
- export var getInvitationsControllerGetInvitationByTokenQueryOptions = function (token, options) {
2658
+ export var getV3DmsControllerGetDmsQueryOptions = function (options) {
2399
2659
  var _a;
2400
2660
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2401
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getInvitationsControllerGetInvitationByTokenQueryKey(token);
2661
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3DmsControllerGetDmsQueryKey();
2402
2662
  var queryFn = function (_a) {
2403
2663
  var signal = _a.signal;
2404
- return invitationsControllerGetInvitationByToken(token, requestOptions, signal);
2664
+ return v3DmsControllerGetDms(requestOptions, signal);
2405
2665
  };
2406
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(token) }, queryOptions);
2666
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2407
2667
  };
2408
2668
  /**
2409
- * @summary Get invitation details by token
2669
+ * @summary List direct message conversations (Enterprise M2M V3)
2410
2670
  */
2411
- export var useInvitationsControllerGetInvitationByToken = function (token, options) {
2412
- var queryOptions = getInvitationsControllerGetInvitationByTokenQueryOptions(token, options);
2671
+ export var useV3DmsControllerGetDms = function (options) {
2672
+ var queryOptions = getV3DmsControllerGetDmsQueryOptions(options);
2413
2673
  var query = useQuery(queryOptions);
2414
2674
  query.queryKey = queryOptions.queryKey;
2415
2675
  return query;
2416
2676
  };
2417
2677
  /**
2418
- * @summary Accept an invitation
2678
+ * Create a new DM conversation with a target user. Requires messages:send scope.
2679
+ * @summary Create or retrieve a direct message conversation (Enterprise M2M V3)
2419
2680
  */
2420
- export var invitationsControllerAcceptInvitation = function (token, options) {
2421
- return customInstance({ url: "/api/invitations/".concat(token, "/accept"), method: 'POST' }, options);
2681
+ export var v3DmsControllerCreateDm = function (v3CreateDmDto, options) {
2682
+ return customInstance({ url: "/api/v3/dms", method: 'POST',
2683
+ headers: { 'Content-Type': 'application/json', },
2684
+ data: v3CreateDmDto }, options);
2422
2685
  };
2423
- export var getInvitationsControllerAcceptInvitationMutationOptions = function (options) {
2686
+ export var getV3DmsControllerCreateDmMutationOptions = function (options) {
2424
2687
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2425
2688
  var mutationFn = function (props) {
2426
- var token = (props !== null && props !== void 0 ? props : {}).token;
2427
- return invitationsControllerAcceptInvitation(token, requestOptions);
2689
+ var data = (props !== null && props !== void 0 ? props : {}).data;
2690
+ return v3DmsControllerCreateDm(data, requestOptions);
2428
2691
  };
2429
2692
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2430
2693
  };
2431
2694
  /**
2432
- * @summary Accept an invitation
2695
+ * @summary Create or retrieve a direct message conversation (Enterprise M2M V3)
2433
2696
  */
2434
- export var useInvitationsControllerAcceptInvitation = function (options) {
2435
- var mutationOptions = getInvitationsControllerAcceptInvitationMutationOptions(options);
2697
+ export var useV3DmsControllerCreateDm = function (options) {
2698
+ var mutationOptions = getV3DmsControllerCreateDmMutationOptions(options);
2436
2699
  return useMutation(mutationOptions);
2437
2700
  };
2438
2701
  /**
2439
- * @summary Handle Plane webhook
2702
+ * Retrieve specific direct message conversation details. Requires messages:read scope.
2703
+ * @summary Get details of a direct message conversation (Enterprise M2M V3)
2440
2704
  */
2441
- export var integrationsControllerHandlePlaneWebhook = function (options) {
2442
- return customInstance({ url: "/api/integrations/plane/webhook", method: 'POST' }, options);
2705
+ export var v3DmsControllerGetDm = function (dmId, options, signal) {
2706
+ return customInstance({ url: "/api/v3/dms/".concat(dmId), method: 'GET', signal: signal
2707
+ }, options);
2443
2708
  };
2444
- export var getIntegrationsControllerHandlePlaneWebhookMutationOptions = function (options) {
2445
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2446
- var mutationFn = function () {
2447
- return integrationsControllerHandlePlaneWebhook(requestOptions);
2709
+ export var getV3DmsControllerGetDmQueryKey = function (dmId) {
2710
+ return ["/api/v3/dms/".concat(dmId)];
2711
+ };
2712
+ export var getV3DmsControllerGetDmQueryOptions = function (dmId, options) {
2713
+ var _a;
2714
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2715
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3DmsControllerGetDmQueryKey(dmId);
2716
+ var queryFn = function (_a) {
2717
+ var signal = _a.signal;
2718
+ return v3DmsControllerGetDm(dmId, requestOptions, signal);
2448
2719
  };
2449
- return __assign({ mutationFn: mutationFn }, mutationOptions);
2720
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(dmId) }, queryOptions);
2450
2721
  };
2451
2722
  /**
2452
- * @summary Handle Plane webhook
2453
- */
2454
- export var useIntegrationsControllerHandlePlaneWebhook = function (options) {
2455
- var mutationOptions = getIntegrationsControllerHandlePlaneWebhookMutationOptions(options);
2456
- return useMutation(mutationOptions);
2723
+ * @summary Get details of a direct message conversation (Enterprise M2M V3)
2724
+ */
2725
+ export var useV3DmsControllerGetDm = function (dmId, options) {
2726
+ var queryOptions = getV3DmsControllerGetDmQueryOptions(dmId, options);
2727
+ var query = useQuery(queryOptions);
2728
+ query.queryKey = queryOptions.queryKey;
2729
+ return query;
2457
2730
  };
2458
2731
  /**
2459
- * @summary Handle Huly webhook
2732
+ * Delete a direct message conversation. Requires messages:send scope.
2733
+ * @summary Delete a direct message conversation (Enterprise M2M V3)
2460
2734
  */
2461
- export var integrationsControllerHandleHulyWebhook = function (id, options) {
2462
- return customInstance({ url: "/api/integrations/huly/webhook/".concat(id), method: 'POST' }, options);
2735
+ export var v3DmsControllerDeleteDm = function (dmId, options) {
2736
+ return customInstance({ url: "/api/v3/dms/".concat(dmId), method: 'DELETE' }, options);
2463
2737
  };
2464
- export var getIntegrationsControllerHandleHulyWebhookMutationOptions = function (options) {
2738
+ export var getV3DmsControllerDeleteDmMutationOptions = function (options) {
2465
2739
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2466
2740
  var mutationFn = function (props) {
2467
- var id = (props !== null && props !== void 0 ? props : {}).id;
2468
- return integrationsControllerHandleHulyWebhook(id, requestOptions);
2741
+ var dmId = (props !== null && props !== void 0 ? props : {}).dmId;
2742
+ return v3DmsControllerDeleteDm(dmId, requestOptions);
2469
2743
  };
2470
2744
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2471
2745
  };
2472
2746
  /**
2473
- * @summary Handle Huly webhook
2747
+ * @summary Delete a direct message conversation (Enterprise M2M V3)
2474
2748
  */
2475
- export var useIntegrationsControllerHandleHulyWebhook = function (options) {
2476
- var mutationOptions = getIntegrationsControllerHandleHulyWebhookMutationOptions(options);
2749
+ export var useV3DmsControllerDeleteDm = function (options) {
2750
+ var mutationOptions = getV3DmsControllerDeleteDmMutationOptions(options);
2477
2751
  return useMutation(mutationOptions);
2478
2752
  };
2479
2753
  /**
2480
- * @summary Get integration statistics
2754
+ * Retrieve message history for a direct message conversation. Requires messages:read scope.
2755
+ * @summary Get direct message conversation messages (Enterprise M2M V3)
2481
2756
  */
2482
- export var integrationsControllerGetStats = function (options, signal) {
2483
- return customInstance({ url: "/api/integrations/stats", method: 'GET', signal: signal
2757
+ export var v3DmsControllerGetMessages = function (dmId, params, options, signal) {
2758
+ return customInstance({ url: "/api/v3/dms/".concat(dmId, "/messages"), method: 'GET', params: params, signal: signal
2484
2759
  }, options);
2485
2760
  };
2486
- export var getIntegrationsControllerGetStatsQueryKey = function () {
2487
- return ["/api/integrations/stats"];
2761
+ export var getV3DmsControllerGetMessagesQueryKey = function (dmId, params) {
2762
+ return __spreadArray(["/api/v3/dms/".concat(dmId, "/messages")], (params ? [params] : []), true);
2488
2763
  };
2489
- export var getIntegrationsControllerGetStatsQueryOptions = function (options) {
2764
+ export var getV3DmsControllerGetMessagesQueryOptions = function (dmId, params, options) {
2490
2765
  var _a;
2491
2766
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2492
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetStatsQueryKey();
2767
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getV3DmsControllerGetMessagesQueryKey(dmId, params);
2493
2768
  var queryFn = function (_a) {
2494
2769
  var signal = _a.signal;
2495
- return integrationsControllerGetStats(requestOptions, signal);
2770
+ return v3DmsControllerGetMessages(dmId, params, requestOptions, signal);
2496
2771
  };
2497
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2772
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(dmId) }, queryOptions);
2498
2773
  };
2499
2774
  /**
2500
- * @summary Get integration statistics
2775
+ * @summary Get direct message conversation messages (Enterprise M2M V3)
2501
2776
  */
2502
- export var useIntegrationsControllerGetStats = function (options) {
2503
- var queryOptions = getIntegrationsControllerGetStatsQueryOptions(options);
2777
+ export var useV3DmsControllerGetMessages = function (dmId, params, options) {
2778
+ var queryOptions = getV3DmsControllerGetMessagesQueryOptions(dmId, params, options);
2504
2779
  var query = useQuery(queryOptions);
2505
2780
  query.queryKey = queryOptions.queryKey;
2506
2781
  return query;
2507
2782
  };
2508
2783
  /**
2509
- * @summary Get all integration webhooks
2784
+ * Send a message in a DM conversation. Requires messages:send scope.
2785
+ * @summary Send a message in a direct message conversation (Enterprise M2M V3)
2510
2786
  */
2511
- export var integrationsControllerGetWebhooks = function (options, signal) {
2512
- return customInstance({ url: "/api/integrations/webhooks", method: 'GET', signal: signal
2513
- }, options);
2787
+ export var v3DmsControllerCreateMessage = function (dmId, options) {
2788
+ return customInstance({ url: "/api/v3/dms/".concat(dmId, "/messages"), method: 'POST' }, options);
2514
2789
  };
2515
- export var getIntegrationsControllerGetWebhooksQueryKey = function () {
2516
- return ["/api/integrations/webhooks"];
2517
- };
2518
- export var getIntegrationsControllerGetWebhooksQueryOptions = function (options) {
2519
- var _a;
2520
- var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2521
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetWebhooksQueryKey();
2522
- var queryFn = function (_a) {
2523
- var signal = _a.signal;
2524
- return integrationsControllerGetWebhooks(requestOptions, signal);
2790
+ export var getV3DmsControllerCreateMessageMutationOptions = function (options) {
2791
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2792
+ var mutationFn = function (props) {
2793
+ var dmId = (props !== null && props !== void 0 ? props : {}).dmId;
2794
+ return v3DmsControllerCreateMessage(dmId, requestOptions);
2525
2795
  };
2526
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2796
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2527
2797
  };
2528
2798
  /**
2529
- * @summary Get all integration webhooks
2530
- */
2531
- export var useIntegrationsControllerGetWebhooks = function (options) {
2532
- var queryOptions = getIntegrationsControllerGetWebhooksQueryOptions(options);
2533
- var query = useQuery(queryOptions);
2534
- query.queryKey = queryOptions.queryKey;
2535
- return query;
2799
+ * @summary Send a message in a direct message conversation (Enterprise M2M V3)
2800
+ */
2801
+ export var useV3DmsControllerCreateMessage = function (options) {
2802
+ var mutationOptions = getV3DmsControllerCreateMessageMutationOptions(options);
2803
+ return useMutation(mutationOptions);
2536
2804
  };
2537
2805
  /**
2538
- * @summary Create an integration webhook
2806
+ * Update content of a direct message. Requires messages:send scope.
2807
+ * @summary Update a direct message (Enterprise M2M V3)
2539
2808
  */
2540
- export var integrationsControllerCreateWebhook = function (createIntegrationWebhookDto, options) {
2541
- return customInstance({ url: "/api/integrations/webhooks", method: 'POST',
2542
- headers: { 'Content-Type': 'application/json', },
2543
- data: createIntegrationWebhookDto }, options);
2809
+ export var v3DmsControllerUpdateMessage = function (dmId, messageId, options) {
2810
+ return customInstance({ url: "/api/v3/dms/".concat(dmId, "/messages/").concat(messageId), method: 'PATCH' }, options);
2544
2811
  };
2545
- export var getIntegrationsControllerCreateWebhookMutationOptions = function (options) {
2812
+ export var getV3DmsControllerUpdateMessageMutationOptions = function (options) {
2546
2813
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2547
2814
  var mutationFn = function (props) {
2548
- var data = (props !== null && props !== void 0 ? props : {}).data;
2549
- return integrationsControllerCreateWebhook(data, requestOptions);
2815
+ var _a = props !== null && props !== void 0 ? props : {}, dmId = _a.dmId, messageId = _a.messageId;
2816
+ return v3DmsControllerUpdateMessage(dmId, messageId, requestOptions);
2550
2817
  };
2551
2818
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2552
2819
  };
2553
2820
  /**
2554
- * @summary Create an integration webhook
2821
+ * @summary Update a direct message (Enterprise M2M V3)
2555
2822
  */
2556
- export var useIntegrationsControllerCreateWebhook = function (options) {
2557
- var mutationOptions = getIntegrationsControllerCreateWebhookMutationOptions(options);
2823
+ export var useV3DmsControllerUpdateMessage = function (options) {
2824
+ var mutationOptions = getV3DmsControllerUpdateMessageMutationOptions(options);
2558
2825
  return useMutation(mutationOptions);
2559
2826
  };
2560
2827
  /**
2561
- * @summary Update an integration webhook
2828
+ * Delete a direct message. Requires messages:send scope.
2829
+ * @summary Delete a direct message (Enterprise M2M V3)
2562
2830
  */
2563
- export var integrationsControllerUpdateWebhook = function (webhookId, options) {
2564
- return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'PATCH' }, options);
2831
+ export var v3DmsControllerDeleteMessage = function (dmId, messageId, options) {
2832
+ return customInstance({ url: "/api/v3/dms/".concat(dmId, "/messages/").concat(messageId), method: 'DELETE' }, options);
2565
2833
  };
2566
- export var getIntegrationsControllerUpdateWebhookMutationOptions = function (options) {
2834
+ export var getV3DmsControllerDeleteMessageMutationOptions = function (options) {
2567
2835
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2568
2836
  var mutationFn = function (props) {
2569
- var webhookId = (props !== null && props !== void 0 ? props : {}).webhookId;
2570
- return integrationsControllerUpdateWebhook(webhookId, requestOptions);
2837
+ var _a = props !== null && props !== void 0 ? props : {}, dmId = _a.dmId, messageId = _a.messageId;
2838
+ return v3DmsControllerDeleteMessage(dmId, messageId, requestOptions);
2571
2839
  };
2572
2840
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2573
2841
  };
2574
2842
  /**
2575
- * @summary Update an integration webhook
2843
+ * @summary Delete a direct message (Enterprise M2M V3)
2576
2844
  */
2577
- export var useIntegrationsControllerUpdateWebhook = function (options) {
2578
- var mutationOptions = getIntegrationsControllerUpdateWebhookMutationOptions(options);
2845
+ export var useV3DmsControllerDeleteMessage = function (options) {
2846
+ var mutationOptions = getV3DmsControllerDeleteMessageMutationOptions(options);
2579
2847
  return useMutation(mutationOptions);
2580
2848
  };
2581
2849
  /**
2582
- * @summary Delete an integration webhook
2850
+ * Add an emoji reaction to a DM message. Requires messages:send scope.
2851
+ * @summary Add a reaction to a direct message (Enterprise M2M V3)
2583
2852
  */
2584
- export var integrationsControllerDeleteWebhook = function (webhookId, options) {
2585
- return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'DELETE' }, options);
2853
+ export var v3DmsControllerAddReaction = function (dmId, messageId, options) {
2854
+ return customInstance({ url: "/api/v3/dms/".concat(dmId, "/messages/").concat(messageId, "/reactions"), method: 'POST' }, options);
2586
2855
  };
2587
- export var getIntegrationsControllerDeleteWebhookMutationOptions = function (options) {
2856
+ export var getV3DmsControllerAddReactionMutationOptions = function (options) {
2588
2857
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2589
2858
  var mutationFn = function (props) {
2590
- var webhookId = (props !== null && props !== void 0 ? props : {}).webhookId;
2591
- return integrationsControllerDeleteWebhook(webhookId, requestOptions);
2859
+ var _a = props !== null && props !== void 0 ? props : {}, dmId = _a.dmId, messageId = _a.messageId;
2860
+ return v3DmsControllerAddReaction(dmId, messageId, requestOptions);
2592
2861
  };
2593
2862
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2594
2863
  };
2595
2864
  /**
2596
- * @summary Delete an integration webhook
2865
+ * @summary Add a reaction to a direct message (Enterprise M2M V3)
2597
2866
  */
2598
- export var useIntegrationsControllerDeleteWebhook = function (options) {
2599
- var mutationOptions = getIntegrationsControllerDeleteWebhookMutationOptions(options);
2867
+ export var useV3DmsControllerAddReaction = function (options) {
2868
+ var mutationOptions = getV3DmsControllerAddReactionMutationOptions(options);
2600
2869
  return useMutation(mutationOptions);
2601
2870
  };
2602
2871
  /**
2603
- * @summary Get integration webhook logs
2872
+ * Remove an emoji reaction from a DM message. Requires messages:send scope.
2873
+ * @summary Remove a reaction from a direct message (Enterprise M2M V3)
2604
2874
  */
2605
- export var integrationsControllerGetWebhookLogs = function (webhookId, options, signal) {
2606
- return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId, "/logs"), method: 'GET', signal: signal
2607
- }, options);
2875
+ export var v3DmsControllerRemoveReaction = function (dmId, messageId, emoji, options) {
2876
+ return customInstance({ url: "/api/v3/dms/".concat(dmId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
2608
2877
  };
2609
- export var getIntegrationsControllerGetWebhookLogsQueryKey = function (webhookId) {
2610
- return ["/api/integrations/webhooks/".concat(webhookId, "/logs")];
2611
- };
2612
- export var getIntegrationsControllerGetWebhookLogsQueryOptions = function (webhookId, options) {
2613
- var _a;
2614
- var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2615
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetWebhookLogsQueryKey(webhookId);
2616
- var queryFn = function (_a) {
2617
- var signal = _a.signal;
2618
- return integrationsControllerGetWebhookLogs(webhookId, requestOptions, signal);
2878
+ export var getV3DmsControllerRemoveReactionMutationOptions = function (options) {
2879
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2880
+ var mutationFn = function (props) {
2881
+ var _a = props !== null && props !== void 0 ? props : {}, dmId = _a.dmId, messageId = _a.messageId, emoji = _a.emoji;
2882
+ return v3DmsControllerRemoveReaction(dmId, messageId, emoji, requestOptions);
2619
2883
  };
2620
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(webhookId) }, queryOptions);
2884
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2621
2885
  };
2622
2886
  /**
2623
- * @summary Get integration webhook logs
2624
- */
2625
- export var useIntegrationsControllerGetWebhookLogs = function (webhookId, options) {
2626
- var queryOptions = getIntegrationsControllerGetWebhookLogsQueryOptions(webhookId, options);
2627
- var query = useQuery(queryOptions);
2628
- query.queryKey = queryOptions.queryKey;
2629
- return query;
2887
+ * @summary Remove a reaction from a direct message (Enterprise M2M V3)
2888
+ */
2889
+ export var useV3DmsControllerRemoveReaction = function (options) {
2890
+ var mutationOptions = getV3DmsControllerRemoveReactionMutationOptions(options);
2891
+ return useMutation(mutationOptions);
2630
2892
  };
2631
2893
  /**
2632
- * @summary Get all integration API keys
2894
+ * @summary Get global channels
2633
2895
  */
2634
- export var integrationsControllerGetApiKeys = function (options, signal) {
2635
- return customInstance({ url: "/api/integrations/api-keys", method: 'GET', signal: signal
2896
+ export var channelsControllerGetGlobalChannels = function (options, signal) {
2897
+ return customInstance({ url: "/api/channels", method: 'GET', signal: signal
2636
2898
  }, options);
2637
2899
  };
2638
- export var getIntegrationsControllerGetApiKeysQueryKey = function () {
2639
- return ["/api/integrations/api-keys"];
2900
+ export var getChannelsControllerGetGlobalChannelsQueryKey = function () {
2901
+ return ["/api/channels"];
2640
2902
  };
2641
- export var getIntegrationsControllerGetApiKeysQueryOptions = function (options) {
2903
+ export var getChannelsControllerGetGlobalChannelsQueryOptions = function (options) {
2642
2904
  var _a;
2643
2905
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2644
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetApiKeysQueryKey();
2906
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getChannelsControllerGetGlobalChannelsQueryKey();
2645
2907
  var queryFn = function (_a) {
2646
2908
  var signal = _a.signal;
2647
- return integrationsControllerGetApiKeys(requestOptions, signal);
2909
+ return channelsControllerGetGlobalChannels(requestOptions, signal);
2648
2910
  };
2649
2911
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2650
2912
  };
2651
2913
  /**
2652
- * @summary Get all integration API keys
2914
+ * @summary Get global channels
2653
2915
  */
2654
- export var useIntegrationsControllerGetApiKeys = function (options) {
2655
- var queryOptions = getIntegrationsControllerGetApiKeysQueryOptions(options);
2916
+ export var useChannelsControllerGetGlobalChannels = function (options) {
2917
+ var queryOptions = getChannelsControllerGetGlobalChannelsQueryOptions(options);
2656
2918
  var query = useQuery(queryOptions);
2657
2919
  query.queryKey = queryOptions.queryKey;
2658
2920
  return query;
2659
2921
  };
2660
2922
  /**
2661
- * @summary Update an integration API key
2923
+ * @summary Create a new channel in a workspace
2662
2924
  */
2663
- export var integrationsControllerUpdateApiKey = function (keyId, options) {
2664
- return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'PATCH' }, options);
2665
- };
2666
- export var getIntegrationsControllerUpdateApiKeyMutationOptions = function (options) {
2667
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2668
- var mutationFn = function (props) {
2669
- var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
2670
- return integrationsControllerUpdateApiKey(keyId, requestOptions);
2671
- };
2672
- return __assign({ mutationFn: mutationFn }, mutationOptions);
2673
- };
2674
- /**
2675
- * @summary Update an integration API key
2676
- */
2677
- export var useIntegrationsControllerUpdateApiKey = function (options) {
2678
- var mutationOptions = getIntegrationsControllerUpdateApiKeyMutationOptions(options);
2679
- return useMutation(mutationOptions);
2680
- };
2681
- /**
2682
- * @summary Delete an integration API key
2683
- */
2684
- export var integrationsControllerDeleteApiKey = function (keyId, options) {
2685
- return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'DELETE' }, options);
2925
+ export var channelsControllerCreateChannel = function (slug, createWorkspaceChannelDto, options) {
2926
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/channels"), method: 'POST',
2927
+ headers: { 'Content-Type': 'application/json', },
2928
+ data: createWorkspaceChannelDto }, options);
2686
2929
  };
2687
- export var getIntegrationsControllerDeleteApiKeyMutationOptions = function (options) {
2930
+ export var getChannelsControllerCreateChannelMutationOptions = function (options) {
2688
2931
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2689
2932
  var mutationFn = function (props) {
2690
- var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
2691
- return integrationsControllerDeleteApiKey(keyId, requestOptions);
2933
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
2934
+ return channelsControllerCreateChannel(slug, data, requestOptions);
2692
2935
  };
2693
2936
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2694
2937
  };
2695
2938
  /**
2696
- * @summary Delete an integration API key
2939
+ * @summary Create a new channel in a workspace
2697
2940
  */
2698
- export var useIntegrationsControllerDeleteApiKey = function (options) {
2699
- var mutationOptions = getIntegrationsControllerDeleteApiKeyMutationOptions(options);
2941
+ export var useChannelsControllerCreateChannel = function (options) {
2942
+ var mutationOptions = getChannelsControllerCreateChannelMutationOptions(options);
2700
2943
  return useMutation(mutationOptions);
2701
2944
  };
2702
2945
  /**
2703
- * @summary Get all integrations for a workspace
2946
+ * @summary Get messages from a channel
2704
2947
  */
2705
- export var workspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options, signal) {
2706
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'GET', signal: signal
2948
+ export var channelsControllerGetMessages = function (channelId, params, options, signal) {
2949
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages"), method: 'GET', params: params, signal: signal
2707
2950
  }, options);
2708
2951
  };
2709
- export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryKey = function (slug) {
2710
- return ["/api/workspaces/".concat(slug, "/integrations")];
2952
+ export var getChannelsControllerGetMessagesQueryKey = function (channelId, params) {
2953
+ return __spreadArray(["/api/channels/".concat(channelId, "/messages")], (params ? [params] : []), true);
2711
2954
  };
2712
- export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryOptions = function (slug, options) {
2955
+ export var getChannelsControllerGetMessagesQueryOptions = function (channelId, params, options) {
2713
2956
  var _a;
2714
2957
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2715
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryKey(slug);
2958
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getChannelsControllerGetMessagesQueryKey(channelId, params);
2716
2959
  var queryFn = function (_a) {
2717
2960
  var signal = _a.signal;
2718
- return workspaceIntegrationsControllerGetWorkspaceIntegrations(slug, requestOptions, signal);
2961
+ return channelsControllerGetMessages(channelId, params, requestOptions, signal);
2719
2962
  };
2720
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
2963
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(channelId) }, queryOptions);
2721
2964
  };
2722
2965
  /**
2723
- * @summary Get all integrations for a workspace
2966
+ * @summary Get messages from a channel
2724
2967
  */
2725
- export var useWorkspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options) {
2726
- var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryOptions(slug, options);
2968
+ export var useChannelsControllerGetMessages = function (channelId, params, options) {
2969
+ var queryOptions = getChannelsControllerGetMessagesQueryOptions(channelId, params, options);
2727
2970
  var query = useQuery(queryOptions);
2728
2971
  query.queryKey = queryOptions.queryKey;
2729
2972
  return query;
2730
2973
  };
2731
2974
  /**
2732
- * @summary Create a new integration for a workspace
2975
+ * @summary Send a message to a channel
2733
2976
  */
2734
- export var workspaceIntegrationsControllerCreateWorkspaceIntegration = function (slug, createIntegrationDto, options) {
2735
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'POST',
2736
- headers: { 'Content-Type': 'application/json', },
2737
- data: createIntegrationDto }, options);
2977
+ export var channelsControllerCreateMessage = function (channelId, options) {
2978
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages"), method: 'POST' }, options);
2738
2979
  };
2739
- export var getWorkspaceIntegrationsControllerCreateWorkspaceIntegrationMutationOptions = function (options) {
2980
+ export var getChannelsControllerCreateMessageMutationOptions = function (options) {
2740
2981
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2741
2982
  var mutationFn = function (props) {
2742
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
2743
- return workspaceIntegrationsControllerCreateWorkspaceIntegration(slug, data, requestOptions);
2983
+ var channelId = (props !== null && props !== void 0 ? props : {}).channelId;
2984
+ return channelsControllerCreateMessage(channelId, requestOptions);
2744
2985
  };
2745
2986
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2746
2987
  };
2747
2988
  /**
2748
- * @summary Create a new integration for a workspace
2989
+ * @summary Send a message to a channel
2749
2990
  */
2750
- export var useWorkspaceIntegrationsControllerCreateWorkspaceIntegration = function (options) {
2751
- var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceIntegrationMutationOptions(options);
2991
+ export var useChannelsControllerCreateMessage = function (options) {
2992
+ var mutationOptions = getChannelsControllerCreateMessageMutationOptions(options);
2752
2993
  return useMutation(mutationOptions);
2753
2994
  };
2754
2995
  /**
2755
- * @summary Get integration details
2996
+ * @summary Update a message
2756
2997
  */
2757
- export var workspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options, signal) {
2758
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'GET', signal: signal
2759
- }, options);
2760
- };
2761
- export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryKey = function (slug, integrationId) {
2762
- return ["/api/workspaces/".concat(slug, "/integrations/").concat(integrationId)];
2998
+ export var channelsControllerUpdateMessage = function (channelId, messageId, channelsControllerUpdateMessageBody, options) {
2999
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId), method: 'PATCH',
3000
+ headers: { 'Content-Type': 'application/json', },
3001
+ data: channelsControllerUpdateMessageBody }, options);
2763
3002
  };
2764
- export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryOptions = function (slug, integrationId, options) {
2765
- var _a;
2766
- var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2767
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryKey(slug, integrationId);
2768
- var queryFn = function (_a) {
2769
- var signal = _a.signal;
2770
- return workspaceIntegrationsControllerGetWorkspaceIntegration(slug, integrationId, requestOptions, signal);
3003
+ export var getChannelsControllerUpdateMessageMutationOptions = function (options) {
3004
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3005
+ var mutationFn = function (props) {
3006
+ var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId, data = _a.data;
3007
+ return channelsControllerUpdateMessage(channelId, messageId, data, requestOptions);
2771
3008
  };
2772
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && integrationId) }, queryOptions);
3009
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2773
3010
  };
2774
3011
  /**
2775
- * @summary Get integration details
2776
- */
2777
- export var useWorkspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options) {
2778
- var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryOptions(slug, integrationId, options);
2779
- var query = useQuery(queryOptions);
2780
- query.queryKey = queryOptions.queryKey;
2781
- return query;
3012
+ * @summary Update a message
3013
+ */
3014
+ export var useChannelsControllerUpdateMessage = function (options) {
3015
+ var mutationOptions = getChannelsControllerUpdateMessageMutationOptions(options);
3016
+ return useMutation(mutationOptions);
2782
3017
  };
2783
3018
  /**
2784
- * @summary Update an integration
3019
+ * @summary Delete a message
2785
3020
  */
2786
- export var workspaceIntegrationsControllerUpdateWorkspaceIntegration = function (slug, integrationId, options) {
2787
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'PATCH' }, options);
3021
+ export var channelsControllerDeleteMessage = function (channelId, messageId, options) {
3022
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId), method: 'DELETE' }, options);
2788
3023
  };
2789
- export var getWorkspaceIntegrationsControllerUpdateWorkspaceIntegrationMutationOptions = function (options) {
3024
+ export var getChannelsControllerDeleteMessageMutationOptions = function (options) {
2790
3025
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2791
3026
  var mutationFn = function (props) {
2792
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
2793
- return workspaceIntegrationsControllerUpdateWorkspaceIntegration(slug, integrationId, requestOptions);
3027
+ var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId;
3028
+ return channelsControllerDeleteMessage(channelId, messageId, requestOptions);
2794
3029
  };
2795
3030
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2796
3031
  };
2797
3032
  /**
2798
- * @summary Update an integration
3033
+ * @summary Delete a message
2799
3034
  */
2800
- export var useWorkspaceIntegrationsControllerUpdateWorkspaceIntegration = function (options) {
2801
- var mutationOptions = getWorkspaceIntegrationsControllerUpdateWorkspaceIntegrationMutationOptions(options);
3035
+ export var useChannelsControllerDeleteMessage = function (options) {
3036
+ var mutationOptions = getChannelsControllerDeleteMessageMutationOptions(options);
2802
3037
  return useMutation(mutationOptions);
2803
3038
  };
2804
3039
  /**
2805
- * @summary Delete an integration
3040
+ * @summary Mark messages as read
2806
3041
  */
2807
- export var workspaceIntegrationsControllerDeleteWorkspaceIntegration = function (slug, integrationId, options) {
2808
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'DELETE' }, options);
3042
+ export var channelsControllerMarkAsRead = function (channelId, channelsControllerMarkAsReadBody, options) {
3043
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages/read"), method: 'POST',
3044
+ headers: { 'Content-Type': 'application/json', },
3045
+ data: channelsControllerMarkAsReadBody }, options);
2809
3046
  };
2810
- export var getWorkspaceIntegrationsControllerDeleteWorkspaceIntegrationMutationOptions = function (options) {
3047
+ export var getChannelsControllerMarkAsReadMutationOptions = function (options) {
2811
3048
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2812
3049
  var mutationFn = function (props) {
2813
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
2814
- return workspaceIntegrationsControllerDeleteWorkspaceIntegration(slug, integrationId, requestOptions);
3050
+ var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, data = _a.data;
3051
+ return channelsControllerMarkAsRead(channelId, data, requestOptions);
2815
3052
  };
2816
3053
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2817
3054
  };
2818
3055
  /**
2819
- * @summary Delete an integration
3056
+ * @summary Mark messages as read
2820
3057
  */
2821
- export var useWorkspaceIntegrationsControllerDeleteWorkspaceIntegration = function (options) {
2822
- var mutationOptions = getWorkspaceIntegrationsControllerDeleteWorkspaceIntegrationMutationOptions(options);
3058
+ export var useChannelsControllerMarkAsRead = function (options) {
3059
+ var mutationOptions = getChannelsControllerMarkAsReadMutationOptions(options);
2823
3060
  return useMutation(mutationOptions);
2824
3061
  };
2825
3062
  /**
2826
- * @summary Test an integration
3063
+ * @summary Add a reaction to a message
2827
3064
  */
2828
- export var workspaceIntegrationsControllerTestWorkspaceIntegration = function (slug, integrationId, options) {
2829
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId, "/test"), method: 'POST' }, options);
3065
+ export var channelsControllerAddReaction = function (channelId, messageId, channelsControllerAddReactionBody, options) {
3066
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
3067
+ headers: { 'Content-Type': 'application/json', },
3068
+ data: channelsControllerAddReactionBody }, options);
2830
3069
  };
2831
- export var getWorkspaceIntegrationsControllerTestWorkspaceIntegrationMutationOptions = function (options) {
3070
+ export var getChannelsControllerAddReactionMutationOptions = function (options) {
2832
3071
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2833
3072
  var mutationFn = function (props) {
2834
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
2835
- return workspaceIntegrationsControllerTestWorkspaceIntegration(slug, integrationId, requestOptions);
3073
+ var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId, data = _a.data;
3074
+ return channelsControllerAddReaction(channelId, messageId, data, requestOptions);
2836
3075
  };
2837
3076
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2838
3077
  };
2839
3078
  /**
2840
- * @summary Test an integration
3079
+ * @summary Add a reaction to a message
2841
3080
  */
2842
- export var useWorkspaceIntegrationsControllerTestWorkspaceIntegration = function (options) {
2843
- var mutationOptions = getWorkspaceIntegrationsControllerTestWorkspaceIntegrationMutationOptions(options);
3081
+ export var useChannelsControllerAddReaction = function (options) {
3082
+ var mutationOptions = getChannelsControllerAddReactionMutationOptions(options);
2844
3083
  return useMutation(mutationOptions);
2845
3084
  };
2846
3085
  /**
2847
- * @summary Get all integration webhooks for a workspace
3086
+ * @summary Remove a reaction from a message
2848
3087
  */
2849
- export var workspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options, signal) {
2850
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'GET', signal: signal
2851
- }, options);
2852
- };
2853
- export var getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryKey = function (slug) {
2854
- return ["/api/workspaces/".concat(slug, "/integrations/webhooks")];
3088
+ export var channelsControllerRemoveReaction = function (channelId, messageId, emoji, options) {
3089
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
2855
3090
  };
2856
- export var getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryOptions = function (slug, options) {
2857
- var _a;
2858
- var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2859
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryKey(slug);
2860
- var queryFn = function (_a) {
2861
- var signal = _a.signal;
2862
- return workspaceIntegrationsControllerGetWorkspaceWebhooks(slug, requestOptions, signal);
3091
+ export var getChannelsControllerRemoveReactionMutationOptions = function (options) {
3092
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3093
+ var mutationFn = function (props) {
3094
+ var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId, emoji = _a.emoji;
3095
+ return channelsControllerRemoveReaction(channelId, messageId, emoji, requestOptions);
2863
3096
  };
2864
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
3097
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
2865
3098
  };
2866
3099
  /**
2867
- * @summary Get all integration webhooks for a workspace
2868
- */
2869
- export var useWorkspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options) {
2870
- var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryOptions(slug, options);
2871
- var query = useQuery(queryOptions);
2872
- query.queryKey = queryOptions.queryKey;
2873
- return query;
3100
+ * @summary Remove a reaction from a message
3101
+ */
3102
+ export var useChannelsControllerRemoveReaction = function (options) {
3103
+ var mutationOptions = getChannelsControllerRemoveReactionMutationOptions(options);
3104
+ return useMutation(mutationOptions);
2874
3105
  };
2875
3106
  /**
2876
- * @summary Create an integration webhook for a workspace
3107
+ * @summary Share a channel with another workspace
2877
3108
  */
2878
- export var workspaceIntegrationsControllerCreateWorkspaceWebhook = function (slug, createIntegrationWebhookDto, options) {
2879
- return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'POST',
2880
- headers: { 'Content-Type': 'application/json', },
2881
- data: createIntegrationWebhookDto }, options);
3109
+ export var channelsControllerShareChannel = function (channelId, options) {
3110
+ return customInstance({ url: "/api/channels/".concat(channelId, "/share"), method: 'POST' }, options);
2882
3111
  };
2883
- export var getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions = function (options) {
3112
+ export var getChannelsControllerShareChannelMutationOptions = function (options) {
2884
3113
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2885
3114
  var mutationFn = function (props) {
2886
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
2887
- return workspaceIntegrationsControllerCreateWorkspaceWebhook(slug, data, requestOptions);
3115
+ var channelId = (props !== null && props !== void 0 ? props : {}).channelId;
3116
+ return channelsControllerShareChannel(channelId, requestOptions);
2888
3117
  };
2889
3118
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2890
3119
  };
2891
3120
  /**
2892
- * @summary Create an integration webhook for a workspace
3121
+ * @summary Share a channel with another workspace
2893
3122
  */
2894
- export var useWorkspaceIntegrationsControllerCreateWorkspaceWebhook = function (options) {
2895
- var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions(options);
3123
+ export var useChannelsControllerShareChannel = function (options) {
3124
+ var mutationOptions = getChannelsControllerShareChannelMutationOptions(options);
2896
3125
  return useMutation(mutationOptions);
2897
3126
  };
2898
- export var ablyControllerGetToken = function (options) {
2899
- return customInstance({ url: "/api/ably/token", method: 'POST' }, options);
3127
+ /**
3128
+ * @summary Reply to a message
3129
+ */
3130
+ export var channelsControllerCreateReply = function (channelId, messageId, options) {
3131
+ return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reply"), method: 'POST' }, options);
2900
3132
  };
2901
- export var getAblyControllerGetTokenMutationOptions = function (options) {
3133
+ export var getChannelsControllerCreateReplyMutationOptions = function (options) {
2902
3134
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2903
- var mutationFn = function () {
2904
- return ablyControllerGetToken(requestOptions);
3135
+ var mutationFn = function (props) {
3136
+ var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId;
3137
+ return channelsControllerCreateReply(channelId, messageId, requestOptions);
2905
3138
  };
2906
3139
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2907
3140
  };
2908
- export var useAblyControllerGetToken = function (options) {
2909
- var mutationOptions = getAblyControllerGetTokenMutationOptions(options);
3141
+ /**
3142
+ * @summary Reply to a message
3143
+ */
3144
+ export var useChannelsControllerCreateReply = function (options) {
3145
+ var mutationOptions = getChannelsControllerCreateReplyMutationOptions(options);
2910
3146
  return useMutation(mutationOptions);
2911
3147
  };
2912
3148
  /**
2913
- * @summary Upload a file
3149
+ * @summary Get notifications for the current user
2914
3150
  */
2915
- export var storageControllerUploadFile = function (storageControllerUploadFileBody, options) {
2916
- var formData = new FormData();
2917
- if (storageControllerUploadFileBody.file !== undefined) {
2918
- formData.append('file', storageControllerUploadFileBody.file);
2919
- }
2920
- return customInstance({ url: "/api/storage/upload", method: 'POST',
2921
- headers: { 'Content-Type': 'multipart/form-data', },
2922
- data: formData }, options);
3151
+ export var notificationsControllerGetNotifications = function (params, options, signal) {
3152
+ return customInstance({ url: "/api/notifications", method: 'GET', params: params, signal: signal
3153
+ }, options);
2923
3154
  };
2924
- export var getStorageControllerUploadFileMutationOptions = function (options) {
2925
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2926
- var mutationFn = function (props) {
2927
- var data = (props !== null && props !== void 0 ? props : {}).data;
2928
- return storageControllerUploadFile(data, requestOptions);
3155
+ export var getNotificationsControllerGetNotificationsQueryKey = function (params) {
3156
+ return __spreadArray(["/api/notifications"], (params ? [params] : []), true);
3157
+ };
3158
+ export var getNotificationsControllerGetNotificationsQueryOptions = function (params, options) {
3159
+ var _a;
3160
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3161
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetNotificationsQueryKey(params);
3162
+ var queryFn = function (_a) {
3163
+ var signal = _a.signal;
3164
+ return notificationsControllerGetNotifications(params, requestOptions, signal);
2929
3165
  };
2930
- return __assign({ mutationFn: mutationFn }, mutationOptions);
3166
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
2931
3167
  };
2932
3168
  /**
2933
- * @summary Upload a file
2934
- */
2935
- export var useStorageControllerUploadFile = function (options) {
2936
- var mutationOptions = getStorageControllerUploadFileMutationOptions(options);
2937
- return useMutation(mutationOptions);
3169
+ * @summary Get notifications for the current user
3170
+ */
3171
+ export var useNotificationsControllerGetNotifications = function (params, options) {
3172
+ var queryOptions = getNotificationsControllerGetNotificationsQueryOptions(params, options);
3173
+ var query = useQuery(queryOptions);
3174
+ query.queryKey = queryOptions.queryKey;
3175
+ return query;
2938
3176
  };
2939
3177
  /**
2940
- * @summary Proxy file request using high-performance streaming
3178
+ * @summary Get a single notification by ID
2941
3179
  */
2942
- export var shortUrlControllerRedirect = function (code, options, signal) {
2943
- return customInstance({ url: "/s/".concat(code), method: 'GET', signal: signal
3180
+ export var notificationsControllerGetNotificationById = function (notificationId, options, signal) {
3181
+ return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'GET', signal: signal
2944
3182
  }, options);
2945
3183
  };
2946
- export var getShortUrlControllerRedirectQueryKey = function (code) {
2947
- return ["/s/".concat(code)];
3184
+ export var getNotificationsControllerGetNotificationByIdQueryKey = function (notificationId) {
3185
+ return ["/api/notifications/".concat(notificationId)];
2948
3186
  };
2949
- export var getShortUrlControllerRedirectQueryOptions = function (code, options) {
3187
+ export var getNotificationsControllerGetNotificationByIdQueryOptions = function (notificationId, options) {
2950
3188
  var _a;
2951
3189
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
2952
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getShortUrlControllerRedirectQueryKey(code);
3190
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetNotificationByIdQueryKey(notificationId);
2953
3191
  var queryFn = function (_a) {
2954
3192
  var signal = _a.signal;
2955
- return shortUrlControllerRedirect(code, requestOptions, signal);
3193
+ return notificationsControllerGetNotificationById(notificationId, requestOptions, signal);
2956
3194
  };
2957
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(code) }, queryOptions);
3195
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(notificationId) }, queryOptions);
2958
3196
  };
2959
3197
  /**
2960
- * @summary Proxy file request using high-performance streaming
3198
+ * @summary Get a single notification by ID
2961
3199
  */
2962
- export var useShortUrlControllerRedirect = function (code, options) {
2963
- var queryOptions = getShortUrlControllerRedirectQueryOptions(code, options);
3200
+ export var useNotificationsControllerGetNotificationById = function (notificationId, options) {
3201
+ var queryOptions = getNotificationsControllerGetNotificationByIdQueryOptions(notificationId, options);
2964
3202
  var query = useQuery(queryOptions);
2965
3203
  query.queryKey = queryOptions.queryKey;
2966
3204
  return query;
2967
3205
  };
2968
3206
  /**
2969
- * @summary Start a new call
3207
+ * @summary Update a notification (e.g. mark as read)
2970
3208
  */
2971
- export var callsControllerStartCall = function (startCallDto, options) {
2972
- return customInstance({ url: "/api/calls", method: 'POST',
3209
+ export var notificationsControllerUpdateNotification = function (notificationId, updateNotificationDto, options) {
3210
+ return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'PATCH',
2973
3211
  headers: { 'Content-Type': 'application/json', },
2974
- data: startCallDto }, options);
3212
+ data: updateNotificationDto }, options);
2975
3213
  };
2976
- export var getCallsControllerStartCallMutationOptions = function (options) {
3214
+ export var getNotificationsControllerUpdateNotificationMutationOptions = function (options) {
2977
3215
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
2978
3216
  var mutationFn = function (props) {
2979
- var data = (props !== null && props !== void 0 ? props : {}).data;
2980
- return callsControllerStartCall(data, requestOptions);
3217
+ var _a = props !== null && props !== void 0 ? props : {}, notificationId = _a.notificationId, data = _a.data;
3218
+ return notificationsControllerUpdateNotification(notificationId, data, requestOptions);
2981
3219
  };
2982
3220
  return __assign({ mutationFn: mutationFn }, mutationOptions);
2983
3221
  };
2984
3222
  /**
2985
- * @summary Start a new call
3223
+ * @summary Update a notification (e.g. mark as read)
2986
3224
  */
2987
- export var useCallsControllerStartCall = function (options) {
2988
- var mutationOptions = getCallsControllerStartCallMutationOptions(options);
3225
+ export var useNotificationsControllerUpdateNotification = function (options) {
3226
+ var mutationOptions = getNotificationsControllerUpdateNotificationMutationOptions(options);
2989
3227
  return useMutation(mutationOptions);
2990
3228
  };
2991
3229
  /**
2992
- * @summary Update call state
3230
+ * @summary Delete a notification
2993
3231
  */
2994
- export var callsControllerUpdateCall = function (callId, updateCallDto, options) {
2995
- return customInstance({ url: "/api/calls/".concat(callId), method: 'PATCH',
2996
- headers: { 'Content-Type': 'application/json', },
2997
- data: updateCallDto }, options);
3232
+ export var notificationsControllerDeleteNotification = function (notificationId, options) {
3233
+ return customInstance({ url: "/api/notifications/".concat(notificationId), method: 'DELETE' }, options);
2998
3234
  };
2999
- export var getCallsControllerUpdateCallMutationOptions = function (options) {
3235
+ export var getNotificationsControllerDeleteNotificationMutationOptions = function (options) {
3000
3236
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3001
3237
  var mutationFn = function (props) {
3002
- var _a = props !== null && props !== void 0 ? props : {}, callId = _a.callId, data = _a.data;
3003
- return callsControllerUpdateCall(callId, data, requestOptions);
3238
+ var notificationId = (props !== null && props !== void 0 ? props : {}).notificationId;
3239
+ return notificationsControllerDeleteNotification(notificationId, requestOptions);
3004
3240
  };
3005
3241
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3006
3242
  };
3007
3243
  /**
3008
- * @summary Update call state
3244
+ * @summary Delete a notification
3009
3245
  */
3010
- export var useCallsControllerUpdateCall = function (options) {
3011
- var mutationOptions = getCallsControllerUpdateCallMutationOptions(options);
3246
+ export var useNotificationsControllerDeleteNotification = function (options) {
3247
+ var mutationOptions = getNotificationsControllerDeleteNotificationMutationOptions(options);
3012
3248
  return useMutation(mutationOptions);
3013
3249
  };
3014
3250
  /**
3015
- * @summary Invite a user to a call
3251
+ * @summary Mark all notifications as read
3016
3252
  */
3017
- export var callsControllerInviteToCall = function (callId, options) {
3018
- return customInstance({ url: "/api/calls/".concat(callId, "/invite"), method: 'POST' }, options);
3253
+ export var notificationsControllerMarkAllRead = function (options) {
3254
+ return customInstance({ url: "/api/notifications/mark-all-read", method: 'POST' }, options);
3019
3255
  };
3020
- export var getCallsControllerInviteToCallMutationOptions = function (options) {
3256
+ export var getNotificationsControllerMarkAllReadMutationOptions = function (options) {
3021
3257
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3022
- var mutationFn = function (props) {
3023
- var callId = (props !== null && props !== void 0 ? props : {}).callId;
3024
- return callsControllerInviteToCall(callId, requestOptions);
3258
+ var mutationFn = function () {
3259
+ return notificationsControllerMarkAllRead(requestOptions);
3025
3260
  };
3026
3261
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3027
3262
  };
3028
3263
  /**
3029
- * @summary Invite a user to a call
3264
+ * @summary Mark all notifications as read
3030
3265
  */
3031
- export var useCallsControllerInviteToCall = function (options) {
3032
- var mutationOptions = getCallsControllerInviteToCallMutationOptions(options);
3266
+ export var useNotificationsControllerMarkAllRead = function (options) {
3267
+ var mutationOptions = getNotificationsControllerMarkAllReadMutationOptions(options);
3033
3268
  return useMutation(mutationOptions);
3034
3269
  };
3035
3270
  /**
3036
- * @summary Get participants in a call
3271
+ * @summary Get notification settings for a workspace
3037
3272
  */
3038
- export var callsControllerGetParticipants = function (callId, options, signal) {
3039
- return customInstance({ url: "/api/calls/".concat(callId, "/participants"), method: 'GET', signal: signal
3273
+ export var notificationsControllerGetWorkspaceSettings = function (params, options, signal) {
3274
+ return customInstance({ url: "/api/notifications/settings/workspace", method: 'GET', params: params, signal: signal
3040
3275
  }, options);
3041
3276
  };
3042
- export var getCallsControllerGetParticipantsQueryKey = function (callId) {
3043
- return ["/api/calls/".concat(callId, "/participants")];
3277
+ export var getNotificationsControllerGetWorkspaceSettingsQueryKey = function (params) {
3278
+ return __spreadArray(["/api/notifications/settings/workspace"], (params ? [params] : []), true);
3044
3279
  };
3045
- export var getCallsControllerGetParticipantsQueryOptions = function (callId, options) {
3280
+ export var getNotificationsControllerGetWorkspaceSettingsQueryOptions = function (params, options) {
3046
3281
  var _a;
3047
3282
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3048
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getCallsControllerGetParticipantsQueryKey(callId);
3283
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetWorkspaceSettingsQueryKey(params);
3049
3284
  var queryFn = function (_a) {
3050
3285
  var signal = _a.signal;
3051
- return callsControllerGetParticipants(callId, requestOptions, signal);
3286
+ return notificationsControllerGetWorkspaceSettings(params, requestOptions, signal);
3052
3287
  };
3053
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(callId) }, queryOptions);
3288
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3054
3289
  };
3055
3290
  /**
3056
- * @summary Get participants in a call
3291
+ * @summary Get notification settings for a workspace
3057
3292
  */
3058
- export var useCallsControllerGetParticipants = function (callId, options) {
3059
- var queryOptions = getCallsControllerGetParticipantsQueryOptions(callId, options);
3293
+ export var useNotificationsControllerGetWorkspaceSettings = function (params, options) {
3294
+ var queryOptions = getNotificationsControllerGetWorkspaceSettingsQueryOptions(params, options);
3060
3295
  var query = useQuery(queryOptions);
3061
3296
  query.queryKey = queryOptions.queryKey;
3062
3297
  return query;
3063
3298
  };
3064
3299
  /**
3065
- * @summary Get scheduled calls for a workspace
3300
+ * @summary Update notification settings for a workspace
3066
3301
  */
3067
- export var callsControllerGetScheduledCalls = function (params, options, signal) {
3068
- return customInstance({ url: "/api/calls/scheduled", method: 'GET', params: params, signal: signal
3302
+ export var notificationsControllerUpdateWorkspaceSettings = function (workspaceSettingsDto, options) {
3303
+ return customInstance({ url: "/api/notifications/settings/workspace", method: 'PATCH',
3304
+ headers: { 'Content-Type': 'application/json', },
3305
+ data: workspaceSettingsDto }, options);
3306
+ };
3307
+ export var getNotificationsControllerUpdateWorkspaceSettingsMutationOptions = function (options) {
3308
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3309
+ var mutationFn = function (props) {
3310
+ var data = (props !== null && props !== void 0 ? props : {}).data;
3311
+ return notificationsControllerUpdateWorkspaceSettings(data, requestOptions);
3312
+ };
3313
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3314
+ };
3315
+ /**
3316
+ * @summary Update notification settings for a workspace
3317
+ */
3318
+ export var useNotificationsControllerUpdateWorkspaceSettings = function (options) {
3319
+ var mutationOptions = getNotificationsControllerUpdateWorkspaceSettingsMutationOptions(options);
3320
+ return useMutation(mutationOptions);
3321
+ };
3322
+ /**
3323
+ * @summary Get notification settings for a channel
3324
+ */
3325
+ export var notificationsControllerGetChannelSettings = function (params, options, signal) {
3326
+ return customInstance({ url: "/api/notifications/settings/channel", method: 'GET', params: params, signal: signal
3069
3327
  }, options);
3070
3328
  };
3071
- export var getCallsControllerGetScheduledCallsQueryKey = function (params) {
3072
- return __spreadArray(["/api/calls/scheduled"], (params ? [params] : []), true);
3329
+ export var getNotificationsControllerGetChannelSettingsQueryKey = function (params) {
3330
+ return __spreadArray(["/api/notifications/settings/channel"], (params ? [params] : []), true);
3073
3331
  };
3074
- export var getCallsControllerGetScheduledCallsQueryOptions = function (params, options) {
3332
+ export var getNotificationsControllerGetChannelSettingsQueryOptions = function (params, options) {
3075
3333
  var _a;
3076
3334
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3077
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getCallsControllerGetScheduledCallsQueryKey(params);
3335
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getNotificationsControllerGetChannelSettingsQueryKey(params);
3078
3336
  var queryFn = function (_a) {
3079
3337
  var signal = _a.signal;
3080
- return callsControllerGetScheduledCalls(params, requestOptions, signal);
3338
+ return notificationsControllerGetChannelSettings(params, requestOptions, signal);
3081
3339
  };
3082
3340
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3083
3341
  };
3084
3342
  /**
3085
- * @summary Get scheduled calls for a workspace
3343
+ * @summary Get notification settings for a channel
3086
3344
  */
3087
- export var useCallsControllerGetScheduledCalls = function (params, options) {
3088
- var queryOptions = getCallsControllerGetScheduledCallsQueryOptions(params, options);
3345
+ export var useNotificationsControllerGetChannelSettings = function (params, options) {
3346
+ var queryOptions = getNotificationsControllerGetChannelSettingsQueryOptions(params, options);
3089
3347
  var query = useQuery(queryOptions);
3090
3348
  query.queryKey = queryOptions.queryKey;
3091
3349
  return query;
3092
3350
  };
3093
3351
  /**
3094
- * @summary Schedule a call
3095
- */
3096
- export var callsControllerScheduleCall = function (scheduleCallDto, options) {
3097
- return customInstance({ url: "/api/calls/scheduled", method: 'POST',
3098
- headers: { 'Content-Type': 'application/json', },
3099
- data: scheduleCallDto }, options);
3100
- };
3101
- export var getCallsControllerScheduleCallMutationOptions = function (options) {
3102
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3103
- var mutationFn = function (props) {
3104
- var data = (props !== null && props !== void 0 ? props : {}).data;
3105
- return callsControllerScheduleCall(data, requestOptions);
3106
- };
3107
- return __assign({ mutationFn: mutationFn }, mutationOptions);
3108
- };
3109
- /**
3110
- * @summary Schedule a call
3111
- */
3112
- export var useCallsControllerScheduleCall = function (options) {
3113
- var mutationOptions = getCallsControllerScheduleCallMutationOptions(options);
3114
- return useMutation(mutationOptions);
3115
- };
3116
- /**
3117
- * @summary Play a soundboard sound
3352
+ * @summary Update notification settings for a channel
3118
3353
  */
3119
- export var callsControllerPlaySoundboardSound = function (soundboardSoundDto, options) {
3120
- return customInstance({ url: "/api/calls/soundboard", method: 'POST',
3354
+ export var notificationsControllerUpdateChannelSettings = function (channelSettingsDto, options) {
3355
+ return customInstance({ url: "/api/notifications/settings/channel", method: 'PATCH',
3121
3356
  headers: { 'Content-Type': 'application/json', },
3122
- data: soundboardSoundDto }, options);
3357
+ data: channelSettingsDto }, options);
3123
3358
  };
3124
- export var getCallsControllerPlaySoundboardSoundMutationOptions = function (options) {
3359
+ export var getNotificationsControllerUpdateChannelSettingsMutationOptions = function (options) {
3125
3360
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3126
3361
  var mutationFn = function (props) {
3127
3362
  var data = (props !== null && props !== void 0 ? props : {}).data;
3128
- return callsControllerPlaySoundboardSound(data, requestOptions);
3363
+ return notificationsControllerUpdateChannelSettings(data, requestOptions);
3129
3364
  };
3130
3365
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3131
3366
  };
3132
3367
  /**
3133
- * @summary Play a soundboard sound
3368
+ * @summary Update notification settings for a channel
3134
3369
  */
3135
- export var useCallsControllerPlaySoundboardSound = function (options) {
3136
- var mutationOptions = getCallsControllerPlaySoundboardSoundMutationOptions(options);
3370
+ export var useNotificationsControllerUpdateChannelSettings = function (options) {
3371
+ var mutationOptions = getNotificationsControllerUpdateChannelSettingsMutationOptions(options);
3137
3372
  return useMutation(mutationOptions);
3138
3373
  };
3139
3374
  /**
3140
- * @summary Get global channels
3375
+ * @summary Get all DM conversations for the current user
3141
3376
  */
3142
- export var channelsControllerGetGlobalChannels = function (options, signal) {
3143
- return customInstance({ url: "/api/channels", method: 'GET', signal: signal
3377
+ export var dmsControllerGetDms = function (options, signal) {
3378
+ return customInstance({ url: "/api/dms", method: 'GET', signal: signal
3144
3379
  }, options);
3145
3380
  };
3146
- export var getChannelsControllerGetGlobalChannelsQueryKey = function () {
3147
- return ["/api/channels"];
3381
+ export var getDmsControllerGetDmsQueryKey = function () {
3382
+ return ["/api/dms"];
3148
3383
  };
3149
- export var getChannelsControllerGetGlobalChannelsQueryOptions = function (options) {
3384
+ export var getDmsControllerGetDmsQueryOptions = function (options) {
3150
3385
  var _a;
3151
3386
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3152
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getChannelsControllerGetGlobalChannelsQueryKey();
3387
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDmsControllerGetDmsQueryKey();
3153
3388
  var queryFn = function (_a) {
3154
3389
  var signal = _a.signal;
3155
- return channelsControllerGetGlobalChannels(requestOptions, signal);
3390
+ return dmsControllerGetDms(requestOptions, signal);
3156
3391
  };
3157
3392
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3158
3393
  };
3159
3394
  /**
3160
- * @summary Get global channels
3395
+ * @summary Get all DM conversations for the current user
3161
3396
  */
3162
- export var useChannelsControllerGetGlobalChannels = function (options) {
3163
- var queryOptions = getChannelsControllerGetGlobalChannelsQueryOptions(options);
3397
+ export var useDmsControllerGetDms = function (options) {
3398
+ var queryOptions = getDmsControllerGetDmsQueryOptions(options);
3164
3399
  var query = useQuery(queryOptions);
3165
3400
  query.queryKey = queryOptions.queryKey;
3166
3401
  return query;
3167
3402
  };
3168
3403
  /**
3169
- * @summary Create a new channel in a workspace
3404
+ * @summary Start a new DM conversation
3170
3405
  */
3171
- export var channelsControllerCreateChannel = function (slug, createWorkspaceChannelDto, options) {
3172
- return customInstance({ url: "/api/workspaces/".concat(slug, "/channels"), method: 'POST',
3406
+ export var dmsControllerCreateDm = function (createDmDto, options) {
3407
+ return customInstance({ url: "/api/dms", method: 'POST',
3173
3408
  headers: { 'Content-Type': 'application/json', },
3174
- data: createWorkspaceChannelDto }, options);
3409
+ data: createDmDto }, options);
3175
3410
  };
3176
- export var getChannelsControllerCreateChannelMutationOptions = function (options) {
3411
+ export var getDmsControllerCreateDmMutationOptions = function (options) {
3177
3412
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3178
3413
  var mutationFn = function (props) {
3179
- var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
3180
- return channelsControllerCreateChannel(slug, data, requestOptions);
3414
+ var data = (props !== null && props !== void 0 ? props : {}).data;
3415
+ return dmsControllerCreateDm(data, requestOptions);
3181
3416
  };
3182
3417
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3183
3418
  };
3184
3419
  /**
3185
- * @summary Create a new channel in a workspace
3420
+ * @summary Start a new DM conversation
3186
3421
  */
3187
- export var useChannelsControllerCreateChannel = function (options) {
3188
- var mutationOptions = getChannelsControllerCreateChannelMutationOptions(options);
3422
+ export var useDmsControllerCreateDm = function (options) {
3423
+ var mutationOptions = getDmsControllerCreateDmMutationOptions(options);
3189
3424
  return useMutation(mutationOptions);
3190
3425
  };
3191
3426
  /**
3192
- * @summary Get messages from a channel
3427
+ * @summary Get DM conversation details
3193
3428
  */
3194
- export var channelsControllerGetMessages = function (channelId, params, options, signal) {
3195
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages"), method: 'GET', params: params, signal: signal
3429
+ export var dmsControllerGetDm = function (conversationId, options, signal) {
3430
+ return customInstance({ url: "/api/dms/".concat(conversationId), method: 'GET', signal: signal
3196
3431
  }, options);
3197
3432
  };
3198
- export var getChannelsControllerGetMessagesQueryKey = function (channelId, params) {
3199
- return __spreadArray(["/api/channels/".concat(channelId, "/messages")], (params ? [params] : []), true);
3433
+ export var getDmsControllerGetDmQueryKey = function (conversationId) {
3434
+ return ["/api/dms/".concat(conversationId)];
3200
3435
  };
3201
- export var getChannelsControllerGetMessagesQueryOptions = function (channelId, params, options) {
3436
+ export var getDmsControllerGetDmQueryOptions = function (conversationId, options) {
3202
3437
  var _a;
3203
3438
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3204
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getChannelsControllerGetMessagesQueryKey(channelId, params);
3439
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDmsControllerGetDmQueryKey(conversationId);
3205
3440
  var queryFn = function (_a) {
3206
3441
  var signal = _a.signal;
3207
- return channelsControllerGetMessages(channelId, params, requestOptions, signal);
3442
+ return dmsControllerGetDm(conversationId, requestOptions, signal);
3208
3443
  };
3209
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(channelId) }, queryOptions);
3444
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(conversationId) }, queryOptions);
3210
3445
  };
3211
3446
  /**
3212
- * @summary Get messages from a channel
3447
+ * @summary Get DM conversation details
3213
3448
  */
3214
- export var useChannelsControllerGetMessages = function (channelId, params, options) {
3215
- var queryOptions = getChannelsControllerGetMessagesQueryOptions(channelId, params, options);
3449
+ export var useDmsControllerGetDm = function (conversationId, options) {
3450
+ var queryOptions = getDmsControllerGetDmQueryOptions(conversationId, options);
3216
3451
  var query = useQuery(queryOptions);
3217
3452
  query.queryKey = queryOptions.queryKey;
3218
3453
  return query;
3219
3454
  };
3220
3455
  /**
3221
- * @summary Send a message to a channel
3456
+ * @summary Delete a DM conversation
3222
3457
  */
3223
- export var channelsControllerCreateMessage = function (channelId, options) {
3224
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages"), method: 'POST' }, options);
3458
+ export var dmsControllerDeleteDm = function (conversationId, options) {
3459
+ return customInstance({ url: "/api/dms/".concat(conversationId), method: 'DELETE' }, options);
3225
3460
  };
3226
- export var getChannelsControllerCreateMessageMutationOptions = function (options) {
3461
+ export var getDmsControllerDeleteDmMutationOptions = function (options) {
3227
3462
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3228
3463
  var mutationFn = function (props) {
3229
- var channelId = (props !== null && props !== void 0 ? props : {}).channelId;
3230
- return channelsControllerCreateMessage(channelId, requestOptions);
3464
+ var conversationId = (props !== null && props !== void 0 ? props : {}).conversationId;
3465
+ return dmsControllerDeleteDm(conversationId, requestOptions);
3231
3466
  };
3232
3467
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3233
3468
  };
3234
3469
  /**
3235
- * @summary Send a message to a channel
3470
+ * @summary Delete a DM conversation
3236
3471
  */
3237
- export var useChannelsControllerCreateMessage = function (options) {
3238
- var mutationOptions = getChannelsControllerCreateMessageMutationOptions(options);
3472
+ export var useDmsControllerDeleteDm = function (options) {
3473
+ var mutationOptions = getDmsControllerDeleteDmMutationOptions(options);
3239
3474
  return useMutation(mutationOptions);
3240
3475
  };
3241
3476
  /**
3242
- * @summary Update a message
3477
+ * @summary Get messages in a DM conversation
3243
3478
  */
3244
- export var channelsControllerUpdateMessage = function (channelId, messageId, channelsControllerUpdateMessageBody, options) {
3245
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId), method: 'PATCH',
3246
- headers: { 'Content-Type': 'application/json', },
3247
- data: channelsControllerUpdateMessageBody }, options);
3479
+ export var dmsControllerGetMessages = function (conversationId, params, options, signal) {
3480
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages"), method: 'GET', params: params, signal: signal
3481
+ }, options);
3248
3482
  };
3249
- export var getChannelsControllerUpdateMessageMutationOptions = function (options) {
3250
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3251
- var mutationFn = function (props) {
3252
- var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId, data = _a.data;
3253
- return channelsControllerUpdateMessage(channelId, messageId, data, requestOptions);
3483
+ export var getDmsControllerGetMessagesQueryKey = function (conversationId, params) {
3484
+ return __spreadArray(["/api/dms/".concat(conversationId, "/messages")], (params ? [params] : []), true);
3485
+ };
3486
+ export var getDmsControllerGetMessagesQueryOptions = function (conversationId, params, options) {
3487
+ var _a;
3488
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3489
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDmsControllerGetMessagesQueryKey(conversationId, params);
3490
+ var queryFn = function (_a) {
3491
+ var signal = _a.signal;
3492
+ return dmsControllerGetMessages(conversationId, params, requestOptions, signal);
3254
3493
  };
3255
- return __assign({ mutationFn: mutationFn }, mutationOptions);
3494
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(conversationId) }, queryOptions);
3256
3495
  };
3257
3496
  /**
3258
- * @summary Update a message
3259
- */
3260
- export var useChannelsControllerUpdateMessage = function (options) {
3261
- var mutationOptions = getChannelsControllerUpdateMessageMutationOptions(options);
3262
- return useMutation(mutationOptions);
3497
+ * @summary Get messages in a DM conversation
3498
+ */
3499
+ export var useDmsControllerGetMessages = function (conversationId, params, options) {
3500
+ var queryOptions = getDmsControllerGetMessagesQueryOptions(conversationId, params, options);
3501
+ var query = useQuery(queryOptions);
3502
+ query.queryKey = queryOptions.queryKey;
3503
+ return query;
3263
3504
  };
3264
3505
  /**
3265
- * @summary Delete a message
3506
+ * @summary Send a message in a DM
3266
3507
  */
3267
- export var channelsControllerDeleteMessage = function (channelId, messageId, options) {
3268
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId), method: 'DELETE' }, options);
3508
+ export var dmsControllerCreateMessage = function (conversationId, options) {
3509
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages"), method: 'POST' }, options);
3269
3510
  };
3270
- export var getChannelsControllerDeleteMessageMutationOptions = function (options) {
3511
+ export var getDmsControllerCreateMessageMutationOptions = function (options) {
3271
3512
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3272
3513
  var mutationFn = function (props) {
3273
- var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId;
3274
- return channelsControllerDeleteMessage(channelId, messageId, requestOptions);
3514
+ var conversationId = (props !== null && props !== void 0 ? props : {}).conversationId;
3515
+ return dmsControllerCreateMessage(conversationId, requestOptions);
3275
3516
  };
3276
3517
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3277
3518
  };
3278
3519
  /**
3279
- * @summary Delete a message
3520
+ * @summary Send a message in a DM
3280
3521
  */
3281
- export var useChannelsControllerDeleteMessage = function (options) {
3282
- var mutationOptions = getChannelsControllerDeleteMessageMutationOptions(options);
3522
+ export var useDmsControllerCreateMessage = function (options) {
3523
+ var mutationOptions = getDmsControllerCreateMessageMutationOptions(options);
3283
3524
  return useMutation(mutationOptions);
3284
3525
  };
3285
3526
  /**
3286
- * @summary Mark messages as read
3527
+ * @summary Update a DM message
3287
3528
  */
3288
- export var channelsControllerMarkAsRead = function (channelId, channelsControllerMarkAsReadBody, options) {
3289
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages/read"), method: 'POST',
3529
+ export var dmsControllerUpdateMessage = function (conversationId, messageId, updateDmMessageDto, options) {
3530
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId), method: 'PATCH',
3290
3531
  headers: { 'Content-Type': 'application/json', },
3291
- data: channelsControllerMarkAsReadBody }, options);
3532
+ data: updateDmMessageDto }, options);
3292
3533
  };
3293
- export var getChannelsControllerMarkAsReadMutationOptions = function (options) {
3534
+ export var getDmsControllerUpdateMessageMutationOptions = function (options) {
3294
3535
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3295
3536
  var mutationFn = function (props) {
3296
- var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, data = _a.data;
3297
- return channelsControllerMarkAsRead(channelId, data, requestOptions);
3537
+ var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId, data = _a.data;
3538
+ return dmsControllerUpdateMessage(conversationId, messageId, data, requestOptions);
3298
3539
  };
3299
3540
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3300
3541
  };
3301
3542
  /**
3302
- * @summary Mark messages as read
3543
+ * @summary Update a DM message
3303
3544
  */
3304
- export var useChannelsControllerMarkAsRead = function (options) {
3305
- var mutationOptions = getChannelsControllerMarkAsReadMutationOptions(options);
3545
+ export var useDmsControllerUpdateMessage = function (options) {
3546
+ var mutationOptions = getDmsControllerUpdateMessageMutationOptions(options);
3306
3547
  return useMutation(mutationOptions);
3307
3548
  };
3308
3549
  /**
3309
- * @summary Add a reaction to a message
3550
+ * @summary Delete a DM message
3310
3551
  */
3311
- export var channelsControllerAddReaction = function (channelId, messageId, channelsControllerAddReactionBody, options) {
3312
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
3313
- headers: { 'Content-Type': 'application/json', },
3314
- data: channelsControllerAddReactionBody }, options);
3552
+ export var dmsControllerDeleteMessage = function (conversationId, messageId, options) {
3553
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId), method: 'DELETE' }, options);
3315
3554
  };
3316
- export var getChannelsControllerAddReactionMutationOptions = function (options) {
3555
+ export var getDmsControllerDeleteMessageMutationOptions = function (options) {
3317
3556
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3318
3557
  var mutationFn = function (props) {
3319
- var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId, data = _a.data;
3320
- return channelsControllerAddReaction(channelId, messageId, data, requestOptions);
3558
+ var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId;
3559
+ return dmsControllerDeleteMessage(conversationId, messageId, requestOptions);
3321
3560
  };
3322
3561
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3323
3562
  };
3324
3563
  /**
3325
- * @summary Add a reaction to a message
3564
+ * @summary Delete a DM message
3326
3565
  */
3327
- export var useChannelsControllerAddReaction = function (options) {
3328
- var mutationOptions = getChannelsControllerAddReactionMutationOptions(options);
3566
+ export var useDmsControllerDeleteMessage = function (options) {
3567
+ var mutationOptions = getDmsControllerDeleteMessageMutationOptions(options);
3329
3568
  return useMutation(mutationOptions);
3330
3569
  };
3331
3570
  /**
3332
- * @summary Remove a reaction from a message
3571
+ * @summary Mark messages as read in a DM
3333
3572
  */
3334
- export var channelsControllerRemoveReaction = function (channelId, messageId, emoji, options) {
3335
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
3573
+ export var dmsControllerMarkAsRead = function (conversationId, markAsReadDto, options) {
3574
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/read"), method: 'POST',
3575
+ headers: { 'Content-Type': 'application/json', },
3576
+ data: markAsReadDto }, options);
3336
3577
  };
3337
- export var getChannelsControllerRemoveReactionMutationOptions = function (options) {
3578
+ export var getDmsControllerMarkAsReadMutationOptions = function (options) {
3338
3579
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3339
3580
  var mutationFn = function (props) {
3340
- var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId, emoji = _a.emoji;
3341
- return channelsControllerRemoveReaction(channelId, messageId, emoji, requestOptions);
3581
+ var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, data = _a.data;
3582
+ return dmsControllerMarkAsRead(conversationId, data, requestOptions);
3342
3583
  };
3343
3584
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3344
3585
  };
3345
3586
  /**
3346
- * @summary Remove a reaction from a message
3587
+ * @summary Mark messages as read in a DM
3347
3588
  */
3348
- export var useChannelsControllerRemoveReaction = function (options) {
3349
- var mutationOptions = getChannelsControllerRemoveReactionMutationOptions(options);
3589
+ export var useDmsControllerMarkAsRead = function (options) {
3590
+ var mutationOptions = getDmsControllerMarkAsReadMutationOptions(options);
3350
3591
  return useMutation(mutationOptions);
3351
3592
  };
3352
3593
  /**
3353
- * @summary Share a channel with another workspace
3594
+ * @summary Add a reaction to a DM message
3354
3595
  */
3355
- export var channelsControllerShareChannel = function (channelId, options) {
3356
- return customInstance({ url: "/api/channels/".concat(channelId, "/share"), method: 'POST' }, options);
3596
+ export var dmsControllerAddReaction = function (conversationId, messageId, dmsControllerAddReactionBody, options) {
3597
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
3598
+ headers: { 'Content-Type': 'application/json', },
3599
+ data: dmsControllerAddReactionBody }, options);
3357
3600
  };
3358
- export var getChannelsControllerShareChannelMutationOptions = function (options) {
3601
+ export var getDmsControllerAddReactionMutationOptions = function (options) {
3359
3602
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3360
3603
  var mutationFn = function (props) {
3361
- var channelId = (props !== null && props !== void 0 ? props : {}).channelId;
3362
- return channelsControllerShareChannel(channelId, requestOptions);
3604
+ var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId, data = _a.data;
3605
+ return dmsControllerAddReaction(conversationId, messageId, data, requestOptions);
3363
3606
  };
3364
3607
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3365
3608
  };
3366
3609
  /**
3367
- * @summary Share a channel with another workspace
3610
+ * @summary Add a reaction to a DM message
3368
3611
  */
3369
- export var useChannelsControllerShareChannel = function (options) {
3370
- var mutationOptions = getChannelsControllerShareChannelMutationOptions(options);
3612
+ export var useDmsControllerAddReaction = function (options) {
3613
+ var mutationOptions = getDmsControllerAddReactionMutationOptions(options);
3371
3614
  return useMutation(mutationOptions);
3372
3615
  };
3373
3616
  /**
3374
- * @summary Reply to a message
3617
+ * @summary Remove a reaction from a DM message
3375
3618
  */
3376
- export var channelsControllerCreateReply = function (channelId, messageId, options) {
3377
- return customInstance({ url: "/api/channels/".concat(channelId, "/messages/").concat(messageId, "/reply"), method: 'POST' }, options);
3619
+ export var dmsControllerRemoveReaction = function (conversationId, messageId, emoji, options) {
3620
+ return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
3378
3621
  };
3379
- export var getChannelsControllerCreateReplyMutationOptions = function (options) {
3622
+ export var getDmsControllerRemoveReactionMutationOptions = function (options) {
3380
3623
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3381
3624
  var mutationFn = function (props) {
3382
- var _a = props !== null && props !== void 0 ? props : {}, channelId = _a.channelId, messageId = _a.messageId;
3383
- return channelsControllerCreateReply(channelId, messageId, requestOptions);
3625
+ var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId, emoji = _a.emoji;
3626
+ return dmsControllerRemoveReaction(conversationId, messageId, emoji, requestOptions);
3384
3627
  };
3385
3628
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3386
3629
  };
3387
3630
  /**
3388
- * @summary Reply to a message
3631
+ * @summary Remove a reaction from a DM message
3389
3632
  */
3390
- export var useChannelsControllerCreateReply = function (options) {
3391
- var mutationOptions = getChannelsControllerCreateReplyMutationOptions(options);
3633
+ export var useDmsControllerRemoveReaction = function (options) {
3634
+ var mutationOptions = getDmsControllerRemoveReactionMutationOptions(options);
3392
3635
  return useMutation(mutationOptions);
3393
3636
  };
3394
3637
  /**
3395
- * @summary Get global system statistics
3638
+ * @summary Get invitations for the current user
3396
3639
  */
3397
- export var adminControllerGetStats = function (options, signal) {
3398
- return customInstance({ url: "/api/admin/stats", method: 'GET', signal: signal
3640
+ export var invitationsControllerGetInvitations = function (params, options, signal) {
3641
+ return customInstance({ url: "/api/invitations", method: 'GET', params: params, signal: signal
3399
3642
  }, options);
3400
3643
  };
3401
- export var getAdminControllerGetStatsQueryKey = function () {
3402
- return ["/api/admin/stats"];
3644
+ export var getInvitationsControllerGetInvitationsQueryKey = function (params) {
3645
+ return __spreadArray(["/api/invitations"], (params ? [params] : []), true);
3403
3646
  };
3404
- export var getAdminControllerGetStatsQueryOptions = function (options) {
3647
+ export var getInvitationsControllerGetInvitationsQueryOptions = function (params, options) {
3405
3648
  var _a;
3406
3649
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3407
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetStatsQueryKey();
3650
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getInvitationsControllerGetInvitationsQueryKey(params);
3408
3651
  var queryFn = function (_a) {
3409
3652
  var signal = _a.signal;
3410
- return adminControllerGetStats(requestOptions, signal);
3653
+ return invitationsControllerGetInvitations(params, requestOptions, signal);
3411
3654
  };
3412
3655
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3413
3656
  };
3414
3657
  /**
3415
- * @summary Get global system statistics
3658
+ * @summary Get invitations for the current user
3416
3659
  */
3417
- export var useAdminControllerGetStats = function (options) {
3418
- var queryOptions = getAdminControllerGetStatsQueryOptions(options);
3660
+ export var useInvitationsControllerGetInvitations = function (params, options) {
3661
+ var queryOptions = getInvitationsControllerGetInvitationsQueryOptions(params, options);
3419
3662
  var query = useQuery(queryOptions);
3420
3663
  query.queryKey = queryOptions.queryKey;
3421
3664
  return query;
3422
3665
  };
3423
3666
  /**
3424
- * @summary Get all members across all workspaces
3667
+ * @summary Create a new invitation
3425
3668
  */
3426
- export var adminControllerGetMembers = function (params, options, signal) {
3427
- return customInstance({ url: "/api/admin/members", method: 'GET', params: params, signal: signal
3428
- }, options);
3669
+ export var invitationsControllerCreateInvitation = function (createInvitationDto, options) {
3670
+ return customInstance({ url: "/api/invitations", method: 'POST',
3671
+ headers: { 'Content-Type': 'application/json', },
3672
+ data: createInvitationDto }, options);
3429
3673
  };
3430
- export var getAdminControllerGetMembersQueryKey = function (params) {
3431
- return __spreadArray(["/api/admin/members"], (params ? [params] : []), true);
3674
+ export var getInvitationsControllerCreateInvitationMutationOptions = function (options) {
3675
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3676
+ var mutationFn = function (props) {
3677
+ var data = (props !== null && props !== void 0 ? props : {}).data;
3678
+ return invitationsControllerCreateInvitation(data, requestOptions);
3679
+ };
3680
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3432
3681
  };
3433
- export var getAdminControllerGetMembersQueryOptions = function (params, options) {
3682
+ /**
3683
+ * @summary Create a new invitation
3684
+ */
3685
+ export var useInvitationsControllerCreateInvitation = function (options) {
3686
+ var mutationOptions = getInvitationsControllerCreateInvitationMutationOptions(options);
3687
+ return useMutation(mutationOptions);
3688
+ };
3689
+ /**
3690
+ * @summary Get invitation details by token
3691
+ */
3692
+ export var invitationsControllerGetInvitationByToken = function (token, options, signal) {
3693
+ return customInstance({ url: "/api/invitations/".concat(token), method: 'GET', signal: signal
3694
+ }, options);
3695
+ };
3696
+ export var getInvitationsControllerGetInvitationByTokenQueryKey = function (token) {
3697
+ return ["/api/invitations/".concat(token)];
3698
+ };
3699
+ export var getInvitationsControllerGetInvitationByTokenQueryOptions = function (token, options) {
3434
3700
  var _a;
3435
3701
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3436
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetMembersQueryKey(params);
3702
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getInvitationsControllerGetInvitationByTokenQueryKey(token);
3437
3703
  var queryFn = function (_a) {
3438
3704
  var signal = _a.signal;
3439
- return adminControllerGetMembers(params, requestOptions, signal);
3705
+ return invitationsControllerGetInvitationByToken(token, requestOptions, signal);
3706
+ };
3707
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(token) }, queryOptions);
3708
+ };
3709
+ /**
3710
+ * @summary Get invitation details by token
3711
+ */
3712
+ export var useInvitationsControllerGetInvitationByToken = function (token, options) {
3713
+ var queryOptions = getInvitationsControllerGetInvitationByTokenQueryOptions(token, options);
3714
+ var query = useQuery(queryOptions);
3715
+ query.queryKey = queryOptions.queryKey;
3716
+ return query;
3717
+ };
3718
+ /**
3719
+ * @summary Accept an invitation
3720
+ */
3721
+ export var invitationsControllerAcceptInvitation = function (token, options) {
3722
+ return customInstance({ url: "/api/invitations/".concat(token, "/accept"), method: 'POST' }, options);
3723
+ };
3724
+ export var getInvitationsControllerAcceptInvitationMutationOptions = function (options) {
3725
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3726
+ var mutationFn = function (props) {
3727
+ var token = (props !== null && props !== void 0 ? props : {}).token;
3728
+ return invitationsControllerAcceptInvitation(token, requestOptions);
3729
+ };
3730
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3731
+ };
3732
+ /**
3733
+ * @summary Accept an invitation
3734
+ */
3735
+ export var useInvitationsControllerAcceptInvitation = function (options) {
3736
+ var mutationOptions = getInvitationsControllerAcceptInvitationMutationOptions(options);
3737
+ return useMutation(mutationOptions);
3738
+ };
3739
+ /**
3740
+ * @summary Handle Plane webhook
3741
+ */
3742
+ export var integrationsControllerHandlePlaneWebhook = function (options) {
3743
+ return customInstance({ url: "/api/integrations/plane/webhook", method: 'POST' }, options);
3744
+ };
3745
+ export var getIntegrationsControllerHandlePlaneWebhookMutationOptions = function (options) {
3746
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3747
+ var mutationFn = function () {
3748
+ return integrationsControllerHandlePlaneWebhook(requestOptions);
3749
+ };
3750
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3751
+ };
3752
+ /**
3753
+ * @summary Handle Plane webhook
3754
+ */
3755
+ export var useIntegrationsControllerHandlePlaneWebhook = function (options) {
3756
+ var mutationOptions = getIntegrationsControllerHandlePlaneWebhookMutationOptions(options);
3757
+ return useMutation(mutationOptions);
3758
+ };
3759
+ /**
3760
+ * @summary Handle Huly webhook
3761
+ */
3762
+ export var integrationsControllerHandleHulyWebhook = function (id, options) {
3763
+ return customInstance({ url: "/api/integrations/huly/webhook/".concat(id), method: 'POST' }, options);
3764
+ };
3765
+ export var getIntegrationsControllerHandleHulyWebhookMutationOptions = function (options) {
3766
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3767
+ var mutationFn = function (props) {
3768
+ var id = (props !== null && props !== void 0 ? props : {}).id;
3769
+ return integrationsControllerHandleHulyWebhook(id, requestOptions);
3770
+ };
3771
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3772
+ };
3773
+ /**
3774
+ * @summary Handle Huly webhook
3775
+ */
3776
+ export var useIntegrationsControllerHandleHulyWebhook = function (options) {
3777
+ var mutationOptions = getIntegrationsControllerHandleHulyWebhookMutationOptions(options);
3778
+ return useMutation(mutationOptions);
3779
+ };
3780
+ /**
3781
+ * @summary Get integration statistics
3782
+ */
3783
+ export var integrationsControllerGetStats = function (options, signal) {
3784
+ return customInstance({ url: "/api/integrations/stats", method: 'GET', signal: signal
3785
+ }, options);
3786
+ };
3787
+ export var getIntegrationsControllerGetStatsQueryKey = function () {
3788
+ return ["/api/integrations/stats"];
3789
+ };
3790
+ export var getIntegrationsControllerGetStatsQueryOptions = function (options) {
3791
+ var _a;
3792
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3793
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetStatsQueryKey();
3794
+ var queryFn = function (_a) {
3795
+ var signal = _a.signal;
3796
+ return integrationsControllerGetStats(requestOptions, signal);
3440
3797
  };
3441
3798
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3442
3799
  };
3443
3800
  /**
3444
- * @summary Get all members across all workspaces
3801
+ * @summary Get integration statistics
3445
3802
  */
3446
- export var useAdminControllerGetMembers = function (params, options) {
3447
- var queryOptions = getAdminControllerGetMembersQueryOptions(params, options);
3803
+ export var useIntegrationsControllerGetStats = function (options) {
3804
+ var queryOptions = getIntegrationsControllerGetStatsQueryOptions(options);
3448
3805
  var query = useQuery(queryOptions);
3449
3806
  query.queryKey = queryOptions.queryKey;
3450
3807
  return query;
3451
3808
  };
3452
3809
  /**
3453
- * @summary Update member role
3810
+ * @summary Get all integration webhooks
3454
3811
  */
3455
- export var adminControllerUpdateMemberRole = function (userId, options) {
3456
- return customInstance({ url: "/api/admin/members/".concat(userId, "/role"), method: 'PATCH' }, options);
3812
+ export var integrationsControllerGetWebhooks = function (options, signal) {
3813
+ return customInstance({ url: "/api/integrations/webhooks", method: 'GET', signal: signal
3814
+ }, options);
3815
+ };
3816
+ export var getIntegrationsControllerGetWebhooksQueryKey = function () {
3817
+ return ["/api/integrations/webhooks"];
3818
+ };
3819
+ export var getIntegrationsControllerGetWebhooksQueryOptions = function (options) {
3820
+ var _a;
3821
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3822
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetWebhooksQueryKey();
3823
+ var queryFn = function (_a) {
3824
+ var signal = _a.signal;
3825
+ return integrationsControllerGetWebhooks(requestOptions, signal);
3826
+ };
3827
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3828
+ };
3829
+ /**
3830
+ * @summary Get all integration webhooks
3831
+ */
3832
+ export var useIntegrationsControllerGetWebhooks = function (options) {
3833
+ var queryOptions = getIntegrationsControllerGetWebhooksQueryOptions(options);
3834
+ var query = useQuery(queryOptions);
3835
+ query.queryKey = queryOptions.queryKey;
3836
+ return query;
3837
+ };
3838
+ /**
3839
+ * @summary Create an integration webhook
3840
+ */
3841
+ export var integrationsControllerCreateWebhook = function (createIntegrationWebhookDto, options) {
3842
+ return customInstance({ url: "/api/integrations/webhooks", method: 'POST',
3843
+ headers: { 'Content-Type': 'application/json', },
3844
+ data: createIntegrationWebhookDto }, options);
3845
+ };
3846
+ export var getIntegrationsControllerCreateWebhookMutationOptions = function (options) {
3847
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3848
+ var mutationFn = function (props) {
3849
+ var data = (props !== null && props !== void 0 ? props : {}).data;
3850
+ return integrationsControllerCreateWebhook(data, requestOptions);
3851
+ };
3852
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3853
+ };
3854
+ /**
3855
+ * @summary Create an integration webhook
3856
+ */
3857
+ export var useIntegrationsControllerCreateWebhook = function (options) {
3858
+ var mutationOptions = getIntegrationsControllerCreateWebhookMutationOptions(options);
3859
+ return useMutation(mutationOptions);
3860
+ };
3861
+ /**
3862
+ * @summary Update an integration webhook
3863
+ */
3864
+ export var integrationsControllerUpdateWebhook = function (webhookId, options) {
3865
+ return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'PATCH' }, options);
3866
+ };
3867
+ export var getIntegrationsControllerUpdateWebhookMutationOptions = function (options) {
3868
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3869
+ var mutationFn = function (props) {
3870
+ var webhookId = (props !== null && props !== void 0 ? props : {}).webhookId;
3871
+ return integrationsControllerUpdateWebhook(webhookId, requestOptions);
3872
+ };
3873
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3874
+ };
3875
+ /**
3876
+ * @summary Update an integration webhook
3877
+ */
3878
+ export var useIntegrationsControllerUpdateWebhook = function (options) {
3879
+ var mutationOptions = getIntegrationsControllerUpdateWebhookMutationOptions(options);
3880
+ return useMutation(mutationOptions);
3881
+ };
3882
+ /**
3883
+ * @summary Delete an integration webhook
3884
+ */
3885
+ export var integrationsControllerDeleteWebhook = function (webhookId, options) {
3886
+ return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId), method: 'DELETE' }, options);
3887
+ };
3888
+ export var getIntegrationsControllerDeleteWebhookMutationOptions = function (options) {
3889
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3890
+ var mutationFn = function (props) {
3891
+ var webhookId = (props !== null && props !== void 0 ? props : {}).webhookId;
3892
+ return integrationsControllerDeleteWebhook(webhookId, requestOptions);
3893
+ };
3894
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3895
+ };
3896
+ /**
3897
+ * @summary Delete an integration webhook
3898
+ */
3899
+ export var useIntegrationsControllerDeleteWebhook = function (options) {
3900
+ var mutationOptions = getIntegrationsControllerDeleteWebhookMutationOptions(options);
3901
+ return useMutation(mutationOptions);
3902
+ };
3903
+ /**
3904
+ * @summary Get integration webhook logs
3905
+ */
3906
+ export var integrationsControllerGetWebhookLogs = function (webhookId, options, signal) {
3907
+ return customInstance({ url: "/api/integrations/webhooks/".concat(webhookId, "/logs"), method: 'GET', signal: signal
3908
+ }, options);
3909
+ };
3910
+ export var getIntegrationsControllerGetWebhookLogsQueryKey = function (webhookId) {
3911
+ return ["/api/integrations/webhooks/".concat(webhookId, "/logs")];
3912
+ };
3913
+ export var getIntegrationsControllerGetWebhookLogsQueryOptions = function (webhookId, options) {
3914
+ var _a;
3915
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3916
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetWebhookLogsQueryKey(webhookId);
3917
+ var queryFn = function (_a) {
3918
+ var signal = _a.signal;
3919
+ return integrationsControllerGetWebhookLogs(webhookId, requestOptions, signal);
3920
+ };
3921
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(webhookId) }, queryOptions);
3922
+ };
3923
+ /**
3924
+ * @summary Get integration webhook logs
3925
+ */
3926
+ export var useIntegrationsControllerGetWebhookLogs = function (webhookId, options) {
3927
+ var queryOptions = getIntegrationsControllerGetWebhookLogsQueryOptions(webhookId, options);
3928
+ var query = useQuery(queryOptions);
3929
+ query.queryKey = queryOptions.queryKey;
3930
+ return query;
3931
+ };
3932
+ /**
3933
+ * @summary Get all integration API keys
3934
+ */
3935
+ export var integrationsControllerGetApiKeys = function (options, signal) {
3936
+ return customInstance({ url: "/api/integrations/api-keys", method: 'GET', signal: signal
3937
+ }, options);
3938
+ };
3939
+ export var getIntegrationsControllerGetApiKeysQueryKey = function () {
3940
+ return ["/api/integrations/api-keys"];
3941
+ };
3942
+ export var getIntegrationsControllerGetApiKeysQueryOptions = function (options) {
3943
+ var _a;
3944
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3945
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getIntegrationsControllerGetApiKeysQueryKey();
3946
+ var queryFn = function (_a) {
3947
+ var signal = _a.signal;
3948
+ return integrationsControllerGetApiKeys(requestOptions, signal);
3949
+ };
3950
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3951
+ };
3952
+ /**
3953
+ * @summary Get all integration API keys
3954
+ */
3955
+ export var useIntegrationsControllerGetApiKeys = function (options) {
3956
+ var queryOptions = getIntegrationsControllerGetApiKeysQueryOptions(options);
3957
+ var query = useQuery(queryOptions);
3958
+ query.queryKey = queryOptions.queryKey;
3959
+ return query;
3960
+ };
3961
+ /**
3962
+ * @summary Update an integration API key
3963
+ */
3964
+ export var integrationsControllerUpdateApiKey = function (keyId, options) {
3965
+ return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'PATCH' }, options);
3966
+ };
3967
+ export var getIntegrationsControllerUpdateApiKeyMutationOptions = function (options) {
3968
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3969
+ var mutationFn = function (props) {
3970
+ var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
3971
+ return integrationsControllerUpdateApiKey(keyId, requestOptions);
3972
+ };
3973
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3974
+ };
3975
+ /**
3976
+ * @summary Update an integration API key
3977
+ */
3978
+ export var useIntegrationsControllerUpdateApiKey = function (options) {
3979
+ var mutationOptions = getIntegrationsControllerUpdateApiKeyMutationOptions(options);
3980
+ return useMutation(mutationOptions);
3981
+ };
3982
+ /**
3983
+ * @summary Delete an integration API key
3984
+ */
3985
+ export var integrationsControllerDeleteApiKey = function (keyId, options) {
3986
+ return customInstance({ url: "/api/integrations/api-keys/".concat(keyId), method: 'DELETE' }, options);
3987
+ };
3988
+ export var getIntegrationsControllerDeleteApiKeyMutationOptions = function (options) {
3989
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3990
+ var mutationFn = function (props) {
3991
+ var keyId = (props !== null && props !== void 0 ? props : {}).keyId;
3992
+ return integrationsControllerDeleteApiKey(keyId, requestOptions);
3993
+ };
3994
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
3995
+ };
3996
+ /**
3997
+ * @summary Delete an integration API key
3998
+ */
3999
+ export var useIntegrationsControllerDeleteApiKey = function (options) {
4000
+ var mutationOptions = getIntegrationsControllerDeleteApiKeyMutationOptions(options);
4001
+ return useMutation(mutationOptions);
4002
+ };
4003
+ /**
4004
+ * @summary Get all integrations for a workspace
4005
+ */
4006
+ export var workspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options, signal) {
4007
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'GET', signal: signal
4008
+ }, options);
4009
+ };
4010
+ export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryKey = function (slug) {
4011
+ return ["/api/workspaces/".concat(slug, "/integrations")];
4012
+ };
4013
+ export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryOptions = function (slug, options) {
4014
+ var _a;
4015
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
4016
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryKey(slug);
4017
+ var queryFn = function (_a) {
4018
+ var signal = _a.signal;
4019
+ return workspaceIntegrationsControllerGetWorkspaceIntegrations(slug, requestOptions, signal);
4020
+ };
4021
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
4022
+ };
4023
+ /**
4024
+ * @summary Get all integrations for a workspace
4025
+ */
4026
+ export var useWorkspaceIntegrationsControllerGetWorkspaceIntegrations = function (slug, options) {
4027
+ var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceIntegrationsQueryOptions(slug, options);
4028
+ var query = useQuery(queryOptions);
4029
+ query.queryKey = queryOptions.queryKey;
4030
+ return query;
4031
+ };
4032
+ /**
4033
+ * @summary Create a new integration for a workspace
4034
+ */
4035
+ export var workspaceIntegrationsControllerCreateWorkspaceIntegration = function (slug, createIntegrationDto, options) {
4036
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations"), method: 'POST',
4037
+ headers: { 'Content-Type': 'application/json', },
4038
+ data: createIntegrationDto }, options);
4039
+ };
4040
+ export var getWorkspaceIntegrationsControllerCreateWorkspaceIntegrationMutationOptions = function (options) {
4041
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4042
+ var mutationFn = function (props) {
4043
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
4044
+ return workspaceIntegrationsControllerCreateWorkspaceIntegration(slug, data, requestOptions);
4045
+ };
4046
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4047
+ };
4048
+ /**
4049
+ * @summary Create a new integration for a workspace
4050
+ */
4051
+ export var useWorkspaceIntegrationsControllerCreateWorkspaceIntegration = function (options) {
4052
+ var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceIntegrationMutationOptions(options);
4053
+ return useMutation(mutationOptions);
4054
+ };
4055
+ /**
4056
+ * @summary Get integration details
4057
+ */
4058
+ export var workspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options, signal) {
4059
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'GET', signal: signal
4060
+ }, options);
4061
+ };
4062
+ export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryKey = function (slug, integrationId) {
4063
+ return ["/api/workspaces/".concat(slug, "/integrations/").concat(integrationId)];
4064
+ };
4065
+ export var getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryOptions = function (slug, integrationId, options) {
4066
+ var _a;
4067
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
4068
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryKey(slug, integrationId);
4069
+ var queryFn = function (_a) {
4070
+ var signal = _a.signal;
4071
+ return workspaceIntegrationsControllerGetWorkspaceIntegration(slug, integrationId, requestOptions, signal);
4072
+ };
4073
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug && integrationId) }, queryOptions);
4074
+ };
4075
+ /**
4076
+ * @summary Get integration details
4077
+ */
4078
+ export var useWorkspaceIntegrationsControllerGetWorkspaceIntegration = function (slug, integrationId, options) {
4079
+ var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceIntegrationQueryOptions(slug, integrationId, options);
4080
+ var query = useQuery(queryOptions);
4081
+ query.queryKey = queryOptions.queryKey;
4082
+ return query;
4083
+ };
4084
+ /**
4085
+ * @summary Update an integration
4086
+ */
4087
+ export var workspaceIntegrationsControllerUpdateWorkspaceIntegration = function (slug, integrationId, options) {
4088
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'PATCH' }, options);
4089
+ };
4090
+ export var getWorkspaceIntegrationsControllerUpdateWorkspaceIntegrationMutationOptions = function (options) {
4091
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4092
+ var mutationFn = function (props) {
4093
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
4094
+ return workspaceIntegrationsControllerUpdateWorkspaceIntegration(slug, integrationId, requestOptions);
4095
+ };
4096
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4097
+ };
4098
+ /**
4099
+ * @summary Update an integration
4100
+ */
4101
+ export var useWorkspaceIntegrationsControllerUpdateWorkspaceIntegration = function (options) {
4102
+ var mutationOptions = getWorkspaceIntegrationsControllerUpdateWorkspaceIntegrationMutationOptions(options);
4103
+ return useMutation(mutationOptions);
4104
+ };
4105
+ /**
4106
+ * @summary Delete an integration
4107
+ */
4108
+ export var workspaceIntegrationsControllerDeleteWorkspaceIntegration = function (slug, integrationId, options) {
4109
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId), method: 'DELETE' }, options);
4110
+ };
4111
+ export var getWorkspaceIntegrationsControllerDeleteWorkspaceIntegrationMutationOptions = function (options) {
4112
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4113
+ var mutationFn = function (props) {
4114
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
4115
+ return workspaceIntegrationsControllerDeleteWorkspaceIntegration(slug, integrationId, requestOptions);
4116
+ };
4117
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4118
+ };
4119
+ /**
4120
+ * @summary Delete an integration
4121
+ */
4122
+ export var useWorkspaceIntegrationsControllerDeleteWorkspaceIntegration = function (options) {
4123
+ var mutationOptions = getWorkspaceIntegrationsControllerDeleteWorkspaceIntegrationMutationOptions(options);
4124
+ return useMutation(mutationOptions);
4125
+ };
4126
+ /**
4127
+ * @summary Test an integration
4128
+ */
4129
+ export var workspaceIntegrationsControllerTestWorkspaceIntegration = function (slug, integrationId, options) {
4130
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/").concat(integrationId, "/test"), method: 'POST' }, options);
4131
+ };
4132
+ export var getWorkspaceIntegrationsControllerTestWorkspaceIntegrationMutationOptions = function (options) {
4133
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4134
+ var mutationFn = function (props) {
4135
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, integrationId = _a.integrationId;
4136
+ return workspaceIntegrationsControllerTestWorkspaceIntegration(slug, integrationId, requestOptions);
4137
+ };
4138
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4139
+ };
4140
+ /**
4141
+ * @summary Test an integration
4142
+ */
4143
+ export var useWorkspaceIntegrationsControllerTestWorkspaceIntegration = function (options) {
4144
+ var mutationOptions = getWorkspaceIntegrationsControllerTestWorkspaceIntegrationMutationOptions(options);
4145
+ return useMutation(mutationOptions);
4146
+ };
4147
+ /**
4148
+ * @summary Get all integration webhooks for a workspace
4149
+ */
4150
+ export var workspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options, signal) {
4151
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'GET', signal: signal
4152
+ }, options);
4153
+ };
4154
+ export var getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryKey = function (slug) {
4155
+ return ["/api/workspaces/".concat(slug, "/integrations/webhooks")];
4156
+ };
4157
+ export var getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryOptions = function (slug, options) {
4158
+ var _a;
4159
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
4160
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryKey(slug);
4161
+ var queryFn = function (_a) {
4162
+ var signal = _a.signal;
4163
+ return workspaceIntegrationsControllerGetWorkspaceWebhooks(slug, requestOptions, signal);
4164
+ };
4165
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(slug) }, queryOptions);
4166
+ };
4167
+ /**
4168
+ * @summary Get all integration webhooks for a workspace
4169
+ */
4170
+ export var useWorkspaceIntegrationsControllerGetWorkspaceWebhooks = function (slug, options) {
4171
+ var queryOptions = getWorkspaceIntegrationsControllerGetWorkspaceWebhooksQueryOptions(slug, options);
4172
+ var query = useQuery(queryOptions);
4173
+ query.queryKey = queryOptions.queryKey;
4174
+ return query;
4175
+ };
4176
+ /**
4177
+ * @summary Create an integration webhook for a workspace
4178
+ */
4179
+ export var workspaceIntegrationsControllerCreateWorkspaceWebhook = function (slug, createIntegrationWebhookDto, options) {
4180
+ return customInstance({ url: "/api/workspaces/".concat(slug, "/integrations/webhooks"), method: 'POST',
4181
+ headers: { 'Content-Type': 'application/json', },
4182
+ data: createIntegrationWebhookDto }, options);
4183
+ };
4184
+ export var getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions = function (options) {
4185
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4186
+ var mutationFn = function (props) {
4187
+ var _a = props !== null && props !== void 0 ? props : {}, slug = _a.slug, data = _a.data;
4188
+ return workspaceIntegrationsControllerCreateWorkspaceWebhook(slug, data, requestOptions);
4189
+ };
4190
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4191
+ };
4192
+ /**
4193
+ * @summary Create an integration webhook for a workspace
4194
+ */
4195
+ export var useWorkspaceIntegrationsControllerCreateWorkspaceWebhook = function (options) {
4196
+ var mutationOptions = getWorkspaceIntegrationsControllerCreateWorkspaceWebhookMutationOptions(options);
4197
+ return useMutation(mutationOptions);
4198
+ };
4199
+ export var ablyControllerGetToken = function (options) {
4200
+ return customInstance({ url: "/api/ably/token", method: 'POST' }, options);
4201
+ };
4202
+ export var getAblyControllerGetTokenMutationOptions = function (options) {
4203
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4204
+ var mutationFn = function () {
4205
+ return ablyControllerGetToken(requestOptions);
4206
+ };
4207
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4208
+ };
4209
+ export var useAblyControllerGetToken = function (options) {
4210
+ var mutationOptions = getAblyControllerGetTokenMutationOptions(options);
4211
+ return useMutation(mutationOptions);
4212
+ };
4213
+ /**
4214
+ * @summary Upload a file
4215
+ */
4216
+ export var storageControllerUploadFile = function (storageControllerUploadFileBody, options) {
4217
+ var formData = new FormData();
4218
+ if (storageControllerUploadFileBody.file !== undefined) {
4219
+ formData.append('file', storageControllerUploadFileBody.file);
4220
+ }
4221
+ return customInstance({ url: "/api/storage/upload", method: 'POST',
4222
+ headers: { 'Content-Type': 'multipart/form-data', },
4223
+ data: formData }, options);
3457
4224
  };
3458
- export var getAdminControllerUpdateMemberRoleMutationOptions = function (options) {
4225
+ export var getStorageControllerUploadFileMutationOptions = function (options) {
3459
4226
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3460
4227
  var mutationFn = function (props) {
3461
- var userId = (props !== null && props !== void 0 ? props : {}).userId;
3462
- return adminControllerUpdateMemberRole(userId, requestOptions);
4228
+ var data = (props !== null && props !== void 0 ? props : {}).data;
4229
+ return storageControllerUploadFile(data, requestOptions);
3463
4230
  };
3464
4231
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3465
4232
  };
3466
4233
  /**
3467
- * @summary Update member role
4234
+ * @summary Upload a file
3468
4235
  */
3469
- export var useAdminControllerUpdateMemberRole = function (options) {
3470
- var mutationOptions = getAdminControllerUpdateMemberRoleMutationOptions(options);
4236
+ export var useStorageControllerUploadFile = function (options) {
4237
+ var mutationOptions = getStorageControllerUploadFileMutationOptions(options);
3471
4238
  return useMutation(mutationOptions);
3472
4239
  };
3473
4240
  /**
3474
- * @summary Get assets by type
4241
+ * @summary Proxy file request using high-performance streaming
3475
4242
  */
3476
- export var adminControllerGetAssets = function (params, options, signal) {
3477
- return customInstance({ url: "/api/admin/assets", method: 'GET', params: params, signal: signal
4243
+ export var shortUrlControllerRedirect = function (code, options, signal) {
4244
+ return customInstance({ url: "/s/".concat(code), method: 'GET', signal: signal
3478
4245
  }, options);
3479
4246
  };
3480
- export var getAdminControllerGetAssetsQueryKey = function (params) {
3481
- return __spreadArray(["/api/admin/assets"], (params ? [params] : []), true);
4247
+ export var getShortUrlControllerRedirectQueryKey = function (code) {
4248
+ return ["/s/".concat(code)];
3482
4249
  };
3483
- export var getAdminControllerGetAssetsQueryOptions = function (params, options) {
4250
+ export var getShortUrlControllerRedirectQueryOptions = function (code, options) {
3484
4251
  var _a;
3485
4252
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3486
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetAssetsQueryKey(params);
4253
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getShortUrlControllerRedirectQueryKey(code);
3487
4254
  var queryFn = function (_a) {
3488
4255
  var signal = _a.signal;
3489
- return adminControllerGetAssets(params, requestOptions, signal);
4256
+ return shortUrlControllerRedirect(code, requestOptions, signal);
3490
4257
  };
3491
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
4258
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(code) }, queryOptions);
3492
4259
  };
3493
4260
  /**
3494
- * @summary Get assets by type
4261
+ * @summary Proxy file request using high-performance streaming
3495
4262
  */
3496
- export var useAdminControllerGetAssets = function (params, options) {
3497
- var queryOptions = getAdminControllerGetAssetsQueryOptions(params, options);
4263
+ export var useShortUrlControllerRedirect = function (code, options) {
4264
+ var queryOptions = getShortUrlControllerRedirectQueryOptions(code, options);
3498
4265
  var query = useQuery(queryOptions);
3499
4266
  query.queryKey = queryOptions.queryKey;
3500
4267
  return query;
3501
4268
  };
3502
4269
  /**
3503
- * @summary Create a new asset
4270
+ * @summary Start a new call
3504
4271
  */
3505
- export var adminControllerCreateAsset = function (options) {
3506
- return customInstance({ url: "/api/admin/assets", method: 'POST' }, options);
4272
+ export var callsControllerStartCall = function (startCallDto, options) {
4273
+ return customInstance({ url: "/api/calls", method: 'POST',
4274
+ headers: { 'Content-Type': 'application/json', },
4275
+ data: startCallDto }, options);
3507
4276
  };
3508
- export var getAdminControllerCreateAssetMutationOptions = function (options) {
4277
+ export var getCallsControllerStartCallMutationOptions = function (options) {
3509
4278
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3510
- var mutationFn = function () {
3511
- return adminControllerCreateAsset(requestOptions);
4279
+ var mutationFn = function (props) {
4280
+ var data = (props !== null && props !== void 0 ? props : {}).data;
4281
+ return callsControllerStartCall(data, requestOptions);
3512
4282
  };
3513
4283
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3514
4284
  };
3515
4285
  /**
3516
- * @summary Create a new asset
4286
+ * @summary Start a new call
3517
4287
  */
3518
- export var useAdminControllerCreateAsset = function (options) {
3519
- var mutationOptions = getAdminControllerCreateAssetMutationOptions(options);
4288
+ export var useCallsControllerStartCall = function (options) {
4289
+ var mutationOptions = getCallsControllerStartCallMutationOptions(options);
3520
4290
  return useMutation(mutationOptions);
3521
4291
  };
3522
4292
  /**
3523
- * @summary Update an existing asset
4293
+ * @summary Update call state
3524
4294
  */
3525
- export var adminControllerUpdateAsset = function (options) {
3526
- return customInstance({ url: "/api/admin/assets", method: 'PATCH' }, options);
4295
+ export var callsControllerUpdateCall = function (callId, updateCallDto, options) {
4296
+ return customInstance({ url: "/api/calls/".concat(callId), method: 'PATCH',
4297
+ headers: { 'Content-Type': 'application/json', },
4298
+ data: updateCallDto }, options);
3527
4299
  };
3528
- export var getAdminControllerUpdateAssetMutationOptions = function (options) {
4300
+ export var getCallsControllerUpdateCallMutationOptions = function (options) {
3529
4301
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3530
- var mutationFn = function () {
3531
- return adminControllerUpdateAsset(requestOptions);
4302
+ var mutationFn = function (props) {
4303
+ var _a = props !== null && props !== void 0 ? props : {}, callId = _a.callId, data = _a.data;
4304
+ return callsControllerUpdateCall(callId, data, requestOptions);
3532
4305
  };
3533
4306
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3534
4307
  };
3535
4308
  /**
3536
- * @summary Update an existing asset
4309
+ * @summary Update call state
3537
4310
  */
3538
- export var useAdminControllerUpdateAsset = function (options) {
3539
- var mutationOptions = getAdminControllerUpdateAssetMutationOptions(options);
4311
+ export var useCallsControllerUpdateCall = function (options) {
4312
+ var mutationOptions = getCallsControllerUpdateCallMutationOptions(options);
3540
4313
  return useMutation(mutationOptions);
3541
4314
  };
3542
4315
  /**
3543
- * @summary Delete an asset
4316
+ * @summary Invite a user to a call
3544
4317
  */
3545
- export var adminControllerDeleteAsset = function (params, options) {
3546
- return customInstance({ url: "/api/admin/assets", method: 'DELETE', params: params
3547
- }, options);
4318
+ export var callsControllerInviteToCall = function (callId, options) {
4319
+ return customInstance({ url: "/api/calls/".concat(callId, "/invite"), method: 'POST' }, options);
3548
4320
  };
3549
- export var getAdminControllerDeleteAssetMutationOptions = function (options) {
4321
+ export var getCallsControllerInviteToCallMutationOptions = function (options) {
3550
4322
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3551
4323
  var mutationFn = function (props) {
3552
- var params = (props !== null && props !== void 0 ? props : {}).params;
3553
- return adminControllerDeleteAsset(params, requestOptions);
4324
+ var callId = (props !== null && props !== void 0 ? props : {}).callId;
4325
+ return callsControllerInviteToCall(callId, requestOptions);
3554
4326
  };
3555
4327
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3556
4328
  };
3557
4329
  /**
3558
- * @summary Delete an asset
4330
+ * @summary Invite a user to a call
3559
4331
  */
3560
- export var useAdminControllerDeleteAsset = function (options) {
3561
- var mutationOptions = getAdminControllerDeleteAssetMutationOptions(options);
4332
+ export var useCallsControllerInviteToCall = function (options) {
4333
+ var mutationOptions = getCallsControllerInviteToCallMutationOptions(options);
3562
4334
  return useMutation(mutationOptions);
3563
4335
  };
3564
4336
  /**
3565
- * @summary Get profile assets
4337
+ * @summary Get participants in a call
3566
4338
  */
3567
- export var adminControllerGetProfileAssets = function (options, signal) {
3568
- return customInstance({ url: "/api/admin/profile-assets", method: 'GET', signal: signal
4339
+ export var callsControllerGetParticipants = function (callId, options, signal) {
4340
+ return customInstance({ url: "/api/calls/".concat(callId, "/participants"), method: 'GET', signal: signal
3569
4341
  }, options);
3570
4342
  };
3571
- export var getAdminControllerGetProfileAssetsQueryKey = function () {
3572
- return ["/api/admin/profile-assets"];
4343
+ export var getCallsControllerGetParticipantsQueryKey = function (callId) {
4344
+ return ["/api/calls/".concat(callId, "/participants")];
3573
4345
  };
3574
- export var getAdminControllerGetProfileAssetsQueryOptions = function (options) {
4346
+ export var getCallsControllerGetParticipantsQueryOptions = function (callId, options) {
3575
4347
  var _a;
3576
4348
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3577
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetProfileAssetsQueryKey();
4349
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getCallsControllerGetParticipantsQueryKey(callId);
3578
4350
  var queryFn = function (_a) {
3579
4351
  var signal = _a.signal;
3580
- return adminControllerGetProfileAssets(requestOptions, signal);
4352
+ return callsControllerGetParticipants(callId, requestOptions, signal);
3581
4353
  };
3582
- return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
4354
+ return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(callId) }, queryOptions);
3583
4355
  };
3584
4356
  /**
3585
- * @summary Get profile assets
4357
+ * @summary Get participants in a call
3586
4358
  */
3587
- export var useAdminControllerGetProfileAssets = function (options) {
3588
- var queryOptions = getAdminControllerGetProfileAssetsQueryOptions(options);
4359
+ export var useCallsControllerGetParticipants = function (callId, options) {
4360
+ var queryOptions = getCallsControllerGetParticipantsQueryOptions(callId, options);
3589
4361
  var query = useQuery(queryOptions);
3590
4362
  query.queryKey = queryOptions.queryKey;
3591
4363
  return query;
3592
4364
  };
3593
4365
  /**
3594
- * @summary Create a profile asset
3595
- */
3596
- export var adminControllerCreateProfileAsset = function (options) {
3597
- return customInstance({ url: "/api/admin/profile-assets", method: 'POST' }, options);
3598
- };
3599
- export var getAdminControllerCreateProfileAssetMutationOptions = function (options) {
3600
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3601
- var mutationFn = function () {
3602
- return adminControllerCreateProfileAsset(requestOptions);
3603
- };
3604
- return __assign({ mutationFn: mutationFn }, mutationOptions);
3605
- };
3606
- /**
3607
- * @summary Create a profile asset
3608
- */
3609
- export var useAdminControllerCreateProfileAsset = function (options) {
3610
- var mutationOptions = getAdminControllerCreateProfileAssetMutationOptions(options);
3611
- return useMutation(mutationOptions);
3612
- };
3613
- /**
3614
- * @summary Get asset statistics
4366
+ * @summary Get scheduled calls for a workspace
3615
4367
  */
3616
- export var adminControllerGetAssetStats = function (params, options, signal) {
3617
- return customInstance({ url: "/api/admin/assets/stats", method: 'GET', params: params, signal: signal
4368
+ export var callsControllerGetScheduledCalls = function (params, options, signal) {
4369
+ return customInstance({ url: "/api/calls/scheduled", method: 'GET', params: params, signal: signal
3618
4370
  }, options);
3619
4371
  };
3620
- export var getAdminControllerGetAssetStatsQueryKey = function (params) {
3621
- return __spreadArray(["/api/admin/assets/stats"], (params ? [params] : []), true);
4372
+ export var getCallsControllerGetScheduledCallsQueryKey = function (params) {
4373
+ return __spreadArray(["/api/calls/scheduled"], (params ? [params] : []), true);
3622
4374
  };
3623
- export var getAdminControllerGetAssetStatsQueryOptions = function (params, options) {
4375
+ export var getCallsControllerGetScheduledCallsQueryOptions = function (params, options) {
3624
4376
  var _a;
3625
4377
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3626
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetAssetStatsQueryKey(params);
4378
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getCallsControllerGetScheduledCallsQueryKey(params);
3627
4379
  var queryFn = function (_a) {
3628
4380
  var signal = _a.signal;
3629
- return adminControllerGetAssetStats(params, requestOptions, signal);
4381
+ return callsControllerGetScheduledCalls(params, requestOptions, signal);
3630
4382
  };
3631
4383
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3632
4384
  };
3633
4385
  /**
3634
- * @summary Get asset statistics
4386
+ * @summary Get scheduled calls for a workspace
3635
4387
  */
3636
- export var useAdminControllerGetAssetStats = function (params, options) {
3637
- var queryOptions = getAdminControllerGetAssetStatsQueryOptions(params, options);
4388
+ export var useCallsControllerGetScheduledCalls = function (params, options) {
4389
+ var queryOptions = getCallsControllerGetScheduledCallsQueryOptions(params, options);
3638
4390
  var query = useQuery(queryOptions);
3639
4391
  query.queryKey = queryOptions.queryKey;
3640
4392
  return query;
3641
4393
  };
3642
4394
  /**
3643
- * @summary Upload a file to Sanity
4395
+ * @summary Schedule a call
3644
4396
  */
3645
- export var adminControllerUploadFile = function (adminControllerUploadFileBody, options) {
3646
- var formData = new FormData();
3647
- if (adminControllerUploadFileBody.file !== undefined) {
3648
- formData.append('file', adminControllerUploadFileBody.file);
3649
- }
3650
- return customInstance({ url: "/api/admin/upload", method: 'POST',
3651
- headers: { 'Content-Type': 'multipart/form-data', },
3652
- data: formData }, options);
4397
+ export var callsControllerScheduleCall = function (scheduleCallDto, options) {
4398
+ return customInstance({ url: "/api/calls/scheduled", method: 'POST',
4399
+ headers: { 'Content-Type': 'application/json', },
4400
+ data: scheduleCallDto }, options);
3653
4401
  };
3654
- export var getAdminControllerUploadFileMutationOptions = function (options) {
4402
+ export var getCallsControllerScheduleCallMutationOptions = function (options) {
3655
4403
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3656
4404
  var mutationFn = function (props) {
3657
4405
  var data = (props !== null && props !== void 0 ? props : {}).data;
3658
- return adminControllerUploadFile(data, requestOptions);
4406
+ return callsControllerScheduleCall(data, requestOptions);
3659
4407
  };
3660
4408
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3661
4409
  };
3662
4410
  /**
3663
- * @summary Upload a file to Sanity
4411
+ * @summary Schedule a call
3664
4412
  */
3665
- export var useAdminControllerUploadFile = function (options) {
3666
- var mutationOptions = getAdminControllerUploadFileMutationOptions(options);
4413
+ export var useCallsControllerScheduleCall = function (options) {
4414
+ var mutationOptions = getCallsControllerScheduleCallMutationOptions(options);
3667
4415
  return useMutation(mutationOptions);
3668
4416
  };
3669
4417
  /**
3670
- * @summary Get all DM conversations for the current user
4418
+ * @summary Play a soundboard sound
3671
4419
  */
3672
- export var dmsControllerGetDms = function (options, signal) {
3673
- return customInstance({ url: "/api/dms", method: 'GET', signal: signal
4420
+ export var callsControllerPlaySoundboardSound = function (soundboardSoundDto, options) {
4421
+ return customInstance({ url: "/api/calls/soundboard", method: 'POST',
4422
+ headers: { 'Content-Type': 'application/json', },
4423
+ data: soundboardSoundDto }, options);
4424
+ };
4425
+ export var getCallsControllerPlaySoundboardSoundMutationOptions = function (options) {
4426
+ var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
4427
+ var mutationFn = function (props) {
4428
+ var data = (props !== null && props !== void 0 ? props : {}).data;
4429
+ return callsControllerPlaySoundboardSound(data, requestOptions);
4430
+ };
4431
+ return __assign({ mutationFn: mutationFn }, mutationOptions);
4432
+ };
4433
+ /**
4434
+ * @summary Play a soundboard sound
4435
+ */
4436
+ export var useCallsControllerPlaySoundboardSound = function (options) {
4437
+ var mutationOptions = getCallsControllerPlaySoundboardSoundMutationOptions(options);
4438
+ return useMutation(mutationOptions);
4439
+ };
4440
+ /**
4441
+ * @summary Get global system statistics
4442
+ */
4443
+ export var adminControllerGetStats = function (options, signal) {
4444
+ return customInstance({ url: "/api/admin/stats", method: 'GET', signal: signal
3674
4445
  }, options);
3675
4446
  };
3676
- export var getDmsControllerGetDmsQueryKey = function () {
3677
- return ["/api/dms"];
4447
+ export var getAdminControllerGetStatsQueryKey = function () {
4448
+ return ["/api/admin/stats"];
3678
4449
  };
3679
- export var getDmsControllerGetDmsQueryOptions = function (options) {
4450
+ export var getAdminControllerGetStatsQueryOptions = function (options) {
3680
4451
  var _a;
3681
4452
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3682
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDmsControllerGetDmsQueryKey();
4453
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetStatsQueryKey();
3683
4454
  var queryFn = function (_a) {
3684
4455
  var signal = _a.signal;
3685
- return dmsControllerGetDms(requestOptions, signal);
4456
+ return adminControllerGetStats(requestOptions, signal);
3686
4457
  };
3687
4458
  return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3688
4459
  };
3689
4460
  /**
3690
- * @summary Get all DM conversations for the current user
3691
- */
3692
- export var useDmsControllerGetDms = function (options) {
3693
- var queryOptions = getDmsControllerGetDmsQueryOptions(options);
3694
- var query = useQuery(queryOptions);
3695
- query.queryKey = queryOptions.queryKey;
3696
- return query;
3697
- };
3698
- /**
3699
- * @summary Start a new DM conversation
4461
+ * @summary Get global system statistics
3700
4462
  */
3701
- export var dmsControllerCreateDm = function (createDmDto, options) {
3702
- return customInstance({ url: "/api/dms", method: 'POST',
3703
- headers: { 'Content-Type': 'application/json', },
3704
- data: createDmDto }, options);
3705
- };
3706
- export var getDmsControllerCreateDmMutationOptions = function (options) {
3707
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3708
- var mutationFn = function (props) {
3709
- var data = (props !== null && props !== void 0 ? props : {}).data;
3710
- return dmsControllerCreateDm(data, requestOptions);
3711
- };
3712
- return __assign({ mutationFn: mutationFn }, mutationOptions);
3713
- };
3714
- /**
3715
- * @summary Start a new DM conversation
3716
- */
3717
- export var useDmsControllerCreateDm = function (options) {
3718
- var mutationOptions = getDmsControllerCreateDmMutationOptions(options);
3719
- return useMutation(mutationOptions);
4463
+ export var useAdminControllerGetStats = function (options) {
4464
+ var queryOptions = getAdminControllerGetStatsQueryOptions(options);
4465
+ var query = useQuery(queryOptions);
4466
+ query.queryKey = queryOptions.queryKey;
4467
+ return query;
3720
4468
  };
3721
4469
  /**
3722
- * @summary Get DM conversation details
4470
+ * @summary Get all members across all workspaces
3723
4471
  */
3724
- export var dmsControllerGetDm = function (conversationId, options, signal) {
3725
- return customInstance({ url: "/api/dms/".concat(conversationId), method: 'GET', signal: signal
4472
+ export var adminControllerGetMembers = function (params, options, signal) {
4473
+ return customInstance({ url: "/api/admin/members", method: 'GET', params: params, signal: signal
3726
4474
  }, options);
3727
4475
  };
3728
- export var getDmsControllerGetDmQueryKey = function (conversationId) {
3729
- return ["/api/dms/".concat(conversationId)];
4476
+ export var getAdminControllerGetMembersQueryKey = function (params) {
4477
+ return __spreadArray(["/api/admin/members"], (params ? [params] : []), true);
3730
4478
  };
3731
- export var getDmsControllerGetDmQueryOptions = function (conversationId, options) {
4479
+ export var getAdminControllerGetMembersQueryOptions = function (params, options) {
3732
4480
  var _a;
3733
4481
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3734
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDmsControllerGetDmQueryKey(conversationId);
4482
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetMembersQueryKey(params);
3735
4483
  var queryFn = function (_a) {
3736
4484
  var signal = _a.signal;
3737
- return dmsControllerGetDm(conversationId, requestOptions, signal);
4485
+ return adminControllerGetMembers(params, requestOptions, signal);
3738
4486
  };
3739
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(conversationId) }, queryOptions);
4487
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3740
4488
  };
3741
4489
  /**
3742
- * @summary Get DM conversation details
4490
+ * @summary Get all members across all workspaces
3743
4491
  */
3744
- export var useDmsControllerGetDm = function (conversationId, options) {
3745
- var queryOptions = getDmsControllerGetDmQueryOptions(conversationId, options);
4492
+ export var useAdminControllerGetMembers = function (params, options) {
4493
+ var queryOptions = getAdminControllerGetMembersQueryOptions(params, options);
3746
4494
  var query = useQuery(queryOptions);
3747
4495
  query.queryKey = queryOptions.queryKey;
3748
4496
  return query;
3749
4497
  };
3750
4498
  /**
3751
- * @summary Delete a DM conversation
4499
+ * @summary Update member role
3752
4500
  */
3753
- export var dmsControllerDeleteDm = function (conversationId, options) {
3754
- return customInstance({ url: "/api/dms/".concat(conversationId), method: 'DELETE' }, options);
4501
+ export var adminControllerUpdateMemberRole = function (userId, options) {
4502
+ return customInstance({ url: "/api/admin/members/".concat(userId, "/role"), method: 'PATCH' }, options);
3755
4503
  };
3756
- export var getDmsControllerDeleteDmMutationOptions = function (options) {
4504
+ export var getAdminControllerUpdateMemberRoleMutationOptions = function (options) {
3757
4505
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3758
4506
  var mutationFn = function (props) {
3759
- var conversationId = (props !== null && props !== void 0 ? props : {}).conversationId;
3760
- return dmsControllerDeleteDm(conversationId, requestOptions);
4507
+ var userId = (props !== null && props !== void 0 ? props : {}).userId;
4508
+ return adminControllerUpdateMemberRole(userId, requestOptions);
3761
4509
  };
3762
4510
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3763
4511
  };
3764
4512
  /**
3765
- * @summary Delete a DM conversation
4513
+ * @summary Update member role
3766
4514
  */
3767
- export var useDmsControllerDeleteDm = function (options) {
3768
- var mutationOptions = getDmsControllerDeleteDmMutationOptions(options);
4515
+ export var useAdminControllerUpdateMemberRole = function (options) {
4516
+ var mutationOptions = getAdminControllerUpdateMemberRoleMutationOptions(options);
3769
4517
  return useMutation(mutationOptions);
3770
4518
  };
3771
4519
  /**
3772
- * @summary Get messages in a DM conversation
4520
+ * @summary Get assets by type
3773
4521
  */
3774
- export var dmsControllerGetMessages = function (conversationId, params, options, signal) {
3775
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages"), method: 'GET', params: params, signal: signal
4522
+ export var adminControllerGetAssets = function (params, options, signal) {
4523
+ return customInstance({ url: "/api/admin/assets", method: 'GET', params: params, signal: signal
3776
4524
  }, options);
3777
4525
  };
3778
- export var getDmsControllerGetMessagesQueryKey = function (conversationId, params) {
3779
- return __spreadArray(["/api/dms/".concat(conversationId, "/messages")], (params ? [params] : []), true);
4526
+ export var getAdminControllerGetAssetsQueryKey = function (params) {
4527
+ return __spreadArray(["/api/admin/assets"], (params ? [params] : []), true);
3780
4528
  };
3781
- export var getDmsControllerGetMessagesQueryOptions = function (conversationId, params, options) {
4529
+ export var getAdminControllerGetAssetsQueryOptions = function (params, options) {
3782
4530
  var _a;
3783
4531
  var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
3784
- var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getDmsControllerGetMessagesQueryKey(conversationId, params);
4532
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetAssetsQueryKey(params);
3785
4533
  var queryFn = function (_a) {
3786
4534
  var signal = _a.signal;
3787
- return dmsControllerGetMessages(conversationId, params, requestOptions, signal);
4535
+ return adminControllerGetAssets(params, requestOptions, signal);
3788
4536
  };
3789
- return __assign({ queryKey: queryKey, queryFn: queryFn, enabled: !!(conversationId) }, queryOptions);
4537
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3790
4538
  };
3791
4539
  /**
3792
- * @summary Get messages in a DM conversation
4540
+ * @summary Get assets by type
3793
4541
  */
3794
- export var useDmsControllerGetMessages = function (conversationId, params, options) {
3795
- var queryOptions = getDmsControllerGetMessagesQueryOptions(conversationId, params, options);
4542
+ export var useAdminControllerGetAssets = function (params, options) {
4543
+ var queryOptions = getAdminControllerGetAssetsQueryOptions(params, options);
3796
4544
  var query = useQuery(queryOptions);
3797
4545
  query.queryKey = queryOptions.queryKey;
3798
4546
  return query;
3799
4547
  };
3800
4548
  /**
3801
- * @summary Send a message in a DM
4549
+ * @summary Create a new asset
3802
4550
  */
3803
- export var dmsControllerCreateMessage = function (conversationId, options) {
3804
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages"), method: 'POST' }, options);
4551
+ export var adminControllerCreateAsset = function (options) {
4552
+ return customInstance({ url: "/api/admin/assets", method: 'POST' }, options);
3805
4553
  };
3806
- export var getDmsControllerCreateMessageMutationOptions = function (options) {
4554
+ export var getAdminControllerCreateAssetMutationOptions = function (options) {
3807
4555
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3808
- var mutationFn = function (props) {
3809
- var conversationId = (props !== null && props !== void 0 ? props : {}).conversationId;
3810
- return dmsControllerCreateMessage(conversationId, requestOptions);
4556
+ var mutationFn = function () {
4557
+ return adminControllerCreateAsset(requestOptions);
3811
4558
  };
3812
4559
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3813
4560
  };
3814
4561
  /**
3815
- * @summary Send a message in a DM
4562
+ * @summary Create a new asset
3816
4563
  */
3817
- export var useDmsControllerCreateMessage = function (options) {
3818
- var mutationOptions = getDmsControllerCreateMessageMutationOptions(options);
4564
+ export var useAdminControllerCreateAsset = function (options) {
4565
+ var mutationOptions = getAdminControllerCreateAssetMutationOptions(options);
3819
4566
  return useMutation(mutationOptions);
3820
4567
  };
3821
4568
  /**
3822
- * @summary Update a DM message
4569
+ * @summary Update an existing asset
3823
4570
  */
3824
- export var dmsControllerUpdateMessage = function (conversationId, messageId, updateDmMessageDto, options) {
3825
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId), method: 'PATCH',
3826
- headers: { 'Content-Type': 'application/json', },
3827
- data: updateDmMessageDto }, options);
4571
+ export var adminControllerUpdateAsset = function (options) {
4572
+ return customInstance({ url: "/api/admin/assets", method: 'PATCH' }, options);
3828
4573
  };
3829
- export var getDmsControllerUpdateMessageMutationOptions = function (options) {
4574
+ export var getAdminControllerUpdateAssetMutationOptions = function (options) {
3830
4575
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3831
- var mutationFn = function (props) {
3832
- var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId, data = _a.data;
3833
- return dmsControllerUpdateMessage(conversationId, messageId, data, requestOptions);
4576
+ var mutationFn = function () {
4577
+ return adminControllerUpdateAsset(requestOptions);
3834
4578
  };
3835
4579
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3836
4580
  };
3837
4581
  /**
3838
- * @summary Update a DM message
4582
+ * @summary Update an existing asset
3839
4583
  */
3840
- export var useDmsControllerUpdateMessage = function (options) {
3841
- var mutationOptions = getDmsControllerUpdateMessageMutationOptions(options);
4584
+ export var useAdminControllerUpdateAsset = function (options) {
4585
+ var mutationOptions = getAdminControllerUpdateAssetMutationOptions(options);
3842
4586
  return useMutation(mutationOptions);
3843
4587
  };
3844
4588
  /**
3845
- * @summary Delete a DM message
4589
+ * @summary Delete an asset
3846
4590
  */
3847
- export var dmsControllerDeleteMessage = function (conversationId, messageId, options) {
3848
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId), method: 'DELETE' }, options);
4591
+ export var adminControllerDeleteAsset = function (params, options) {
4592
+ return customInstance({ url: "/api/admin/assets", method: 'DELETE', params: params
4593
+ }, options);
3849
4594
  };
3850
- export var getDmsControllerDeleteMessageMutationOptions = function (options) {
4595
+ export var getAdminControllerDeleteAssetMutationOptions = function (options) {
3851
4596
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3852
4597
  var mutationFn = function (props) {
3853
- var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId;
3854
- return dmsControllerDeleteMessage(conversationId, messageId, requestOptions);
4598
+ var params = (props !== null && props !== void 0 ? props : {}).params;
4599
+ return adminControllerDeleteAsset(params, requestOptions);
3855
4600
  };
3856
4601
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3857
4602
  };
3858
4603
  /**
3859
- * @summary Delete a DM message
4604
+ * @summary Delete an asset
3860
4605
  */
3861
- export var useDmsControllerDeleteMessage = function (options) {
3862
- var mutationOptions = getDmsControllerDeleteMessageMutationOptions(options);
4606
+ export var useAdminControllerDeleteAsset = function (options) {
4607
+ var mutationOptions = getAdminControllerDeleteAssetMutationOptions(options);
3863
4608
  return useMutation(mutationOptions);
3864
4609
  };
3865
4610
  /**
3866
- * @summary Mark messages as read in a DM
4611
+ * @summary Get profile assets
3867
4612
  */
3868
- export var dmsControllerMarkAsRead = function (conversationId, markAsReadDto, options) {
3869
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/read"), method: 'POST',
3870
- headers: { 'Content-Type': 'application/json', },
3871
- data: markAsReadDto }, options);
4613
+ export var adminControllerGetProfileAssets = function (options, signal) {
4614
+ return customInstance({ url: "/api/admin/profile-assets", method: 'GET', signal: signal
4615
+ }, options);
3872
4616
  };
3873
- export var getDmsControllerMarkAsReadMutationOptions = function (options) {
3874
- var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3875
- var mutationFn = function (props) {
3876
- var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, data = _a.data;
3877
- return dmsControllerMarkAsRead(conversationId, data, requestOptions);
4617
+ export var getAdminControllerGetProfileAssetsQueryKey = function () {
4618
+ return ["/api/admin/profile-assets"];
4619
+ };
4620
+ export var getAdminControllerGetProfileAssetsQueryOptions = function (options) {
4621
+ var _a;
4622
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
4623
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetProfileAssetsQueryKey();
4624
+ var queryFn = function (_a) {
4625
+ var signal = _a.signal;
4626
+ return adminControllerGetProfileAssets(requestOptions, signal);
3878
4627
  };
3879
- return __assign({ mutationFn: mutationFn }, mutationOptions);
4628
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
3880
4629
  };
3881
4630
  /**
3882
- * @summary Mark messages as read in a DM
3883
- */
3884
- export var useDmsControllerMarkAsRead = function (options) {
3885
- var mutationOptions = getDmsControllerMarkAsReadMutationOptions(options);
3886
- return useMutation(mutationOptions);
4631
+ * @summary Get profile assets
4632
+ */
4633
+ export var useAdminControllerGetProfileAssets = function (options) {
4634
+ var queryOptions = getAdminControllerGetProfileAssetsQueryOptions(options);
4635
+ var query = useQuery(queryOptions);
4636
+ query.queryKey = queryOptions.queryKey;
4637
+ return query;
3887
4638
  };
3888
4639
  /**
3889
- * @summary Add a reaction to a DM message
4640
+ * @summary Create a profile asset
3890
4641
  */
3891
- export var dmsControllerAddReaction = function (conversationId, messageId, dmsControllerAddReactionBody, options) {
3892
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId, "/reactions"), method: 'POST',
3893
- headers: { 'Content-Type': 'application/json', },
3894
- data: dmsControllerAddReactionBody }, options);
4642
+ export var adminControllerCreateProfileAsset = function (options) {
4643
+ return customInstance({ url: "/api/admin/profile-assets", method: 'POST' }, options);
3895
4644
  };
3896
- export var getDmsControllerAddReactionMutationOptions = function (options) {
4645
+ export var getAdminControllerCreateProfileAssetMutationOptions = function (options) {
3897
4646
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3898
- var mutationFn = function (props) {
3899
- var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId, data = _a.data;
3900
- return dmsControllerAddReaction(conversationId, messageId, data, requestOptions);
4647
+ var mutationFn = function () {
4648
+ return adminControllerCreateProfileAsset(requestOptions);
3901
4649
  };
3902
4650
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3903
4651
  };
3904
4652
  /**
3905
- * @summary Add a reaction to a DM message
4653
+ * @summary Create a profile asset
3906
4654
  */
3907
- export var useDmsControllerAddReaction = function (options) {
3908
- var mutationOptions = getDmsControllerAddReactionMutationOptions(options);
4655
+ export var useAdminControllerCreateProfileAsset = function (options) {
4656
+ var mutationOptions = getAdminControllerCreateProfileAssetMutationOptions(options);
3909
4657
  return useMutation(mutationOptions);
3910
4658
  };
3911
4659
  /**
3912
- * @summary Remove a reaction from a DM message
4660
+ * @summary Get asset statistics
3913
4661
  */
3914
- export var dmsControllerRemoveReaction = function (conversationId, messageId, emoji, options) {
3915
- return customInstance({ url: "/api/dms/".concat(conversationId, "/messages/").concat(messageId, "/reactions/").concat(emoji), method: 'DELETE' }, options);
4662
+ export var adminControllerGetAssetStats = function (params, options, signal) {
4663
+ return customInstance({ url: "/api/admin/assets/stats", method: 'GET', params: params, signal: signal
4664
+ }, options);
3916
4665
  };
3917
- export var getDmsControllerRemoveReactionMutationOptions = function (options) {
4666
+ export var getAdminControllerGetAssetStatsQueryKey = function (params) {
4667
+ return __spreadArray(["/api/admin/assets/stats"], (params ? [params] : []), true);
4668
+ };
4669
+ export var getAdminControllerGetAssetStatsQueryOptions = function (params, options) {
4670
+ var _a;
4671
+ var _b = options !== null && options !== void 0 ? options : {}, queryOptions = _b.query, requestOptions = _b.request;
4672
+ var queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAdminControllerGetAssetStatsQueryKey(params);
4673
+ var queryFn = function (_a) {
4674
+ var signal = _a.signal;
4675
+ return adminControllerGetAssetStats(params, requestOptions, signal);
4676
+ };
4677
+ return __assign({ queryKey: queryKey, queryFn: queryFn }, queryOptions);
4678
+ };
4679
+ /**
4680
+ * @summary Get asset statistics
4681
+ */
4682
+ export var useAdminControllerGetAssetStats = function (params, options) {
4683
+ var queryOptions = getAdminControllerGetAssetStatsQueryOptions(params, options);
4684
+ var query = useQuery(queryOptions);
4685
+ query.queryKey = queryOptions.queryKey;
4686
+ return query;
4687
+ };
4688
+ /**
4689
+ * @summary Upload a file to Sanity
4690
+ */
4691
+ export var adminControllerUploadFile = function (adminControllerUploadFileBody, options) {
4692
+ var formData = new FormData();
4693
+ if (adminControllerUploadFileBody.file !== undefined) {
4694
+ formData.append('file', adminControllerUploadFileBody.file);
4695
+ }
4696
+ return customInstance({ url: "/api/admin/upload", method: 'POST',
4697
+ headers: { 'Content-Type': 'multipart/form-data', },
4698
+ data: formData }, options);
4699
+ };
4700
+ export var getAdminControllerUploadFileMutationOptions = function (options) {
3918
4701
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
3919
4702
  var mutationFn = function (props) {
3920
- var _a = props !== null && props !== void 0 ? props : {}, conversationId = _a.conversationId, messageId = _a.messageId, emoji = _a.emoji;
3921
- return dmsControllerRemoveReaction(conversationId, messageId, emoji, requestOptions);
4703
+ var data = (props !== null && props !== void 0 ? props : {}).data;
4704
+ return adminControllerUploadFile(data, requestOptions);
3922
4705
  };
3923
4706
  return __assign({ mutationFn: mutationFn }, mutationOptions);
3924
4707
  };
3925
4708
  /**
3926
- * @summary Remove a reaction from a DM message
4709
+ * @summary Upload a file to Sanity
3927
4710
  */
3928
- export var useDmsControllerRemoveReaction = function (options) {
3929
- var mutationOptions = getDmsControllerRemoveReactionMutationOptions(options);
4711
+ export var useAdminControllerUploadFile = function (options) {
4712
+ var mutationOptions = getAdminControllerUploadFileMutationOptions(options);
3930
4713
  return useMutation(mutationOptions);
3931
4714
  };
3932
4715
  /**
@@ -5656,10 +6439,10 @@ export var useScheduledNotificationsControllerCreateNotification = function (opt
5656
6439
  /**
5657
6440
  * @summary Update a scheduled notification
5658
6441
  */
5659
- export var scheduledNotificationsControllerUpdateNotification = function (id, scheduledNotificationsControllerUpdateNotificationBody, options) {
6442
+ export var scheduledNotificationsControllerUpdateNotification = function (id, updateScheduledNotificationDto, options) {
5660
6443
  return customInstance({ url: "/api/scheduled-notifications/".concat(id), method: 'PATCH',
5661
6444
  headers: { 'Content-Type': 'application/json', },
5662
- data: scheduledNotificationsControllerUpdateNotificationBody }, options);
6445
+ data: updateScheduledNotificationDto }, options);
5663
6446
  };
5664
6447
  export var getScheduledNotificationsControllerUpdateNotificationMutationOptions = function (options) {
5665
6448
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
@@ -5729,13 +6512,16 @@ export var useAssetsControllerGetEligibleAssets = function (options) {
5729
6512
  /**
5730
6513
  * @summary Create a support ticket
5731
6514
  */
5732
- export var supportControllerCreateTicket = function (options) {
5733
- return customInstance({ url: "/api/support/tickets", method: 'POST' }, options);
6515
+ export var supportControllerCreateTicket = function (createTicketDto, options) {
6516
+ return customInstance({ url: "/api/support/tickets", method: 'POST',
6517
+ headers: { 'Content-Type': 'application/json', },
6518
+ data: createTicketDto }, options);
5734
6519
  };
5735
6520
  export var getSupportControllerCreateTicketMutationOptions = function (options) {
5736
6521
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
5737
- var mutationFn = function () {
5738
- return supportControllerCreateTicket(requestOptions);
6522
+ var mutationFn = function (props) {
6523
+ var data = (props !== null && props !== void 0 ? props : {}).data;
6524
+ return supportControllerCreateTicket(data, requestOptions);
5739
6525
  };
5740
6526
  return __assign({ mutationFn: mutationFn }, mutationOptions);
5741
6527
  };
@@ -5778,13 +6564,16 @@ export var useSupportControllerGetTickets = function (params, options) {
5778
6564
  /**
5779
6565
  * @summary Start a live chat session
5780
6566
  */
5781
- export var supportControllerStartLiveChat = function (options) {
5782
- return customInstance({ url: "/api/support/live-chat", method: 'POST' }, options);
6567
+ export var supportControllerStartLiveChat = function (startLiveChatDto, options) {
6568
+ return customInstance({ url: "/api/support/live-chat", method: 'POST',
6569
+ headers: { 'Content-Type': 'application/json', },
6570
+ data: startLiveChatDto }, options);
5783
6571
  };
5784
6572
  export var getSupportControllerStartLiveChatMutationOptions = function (options) {
5785
6573
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
5786
- var mutationFn = function () {
5787
- return supportControllerStartLiveChat(requestOptions);
6574
+ var mutationFn = function (props) {
6575
+ var data = (props !== null && props !== void 0 ? props : {}).data;
6576
+ return supportControllerStartLiveChat(data, requestOptions);
5788
6577
  };
5789
6578
  return __assign({ mutationFn: mutationFn }, mutationOptions);
5790
6579
  };
@@ -5819,14 +6608,16 @@ export var useSupportControllerEndLiveChat = function (options) {
5819
6608
  /**
5820
6609
  * @summary Update ticket status
5821
6610
  */
5822
- export var supportControllerUpdateTicketStatus = function (ticketId, options) {
5823
- return customInstance({ url: "/api/support/tickets/".concat(ticketId, "/status"), method: 'PATCH' }, options);
6611
+ export var supportControllerUpdateTicketStatus = function (ticketId, updateTicketStatusDto, options) {
6612
+ return customInstance({ url: "/api/support/tickets/".concat(ticketId, "/status"), method: 'PATCH',
6613
+ headers: { 'Content-Type': 'application/json', },
6614
+ data: updateTicketStatusDto }, options);
5824
6615
  };
5825
6616
  export var getSupportControllerUpdateTicketStatusMutationOptions = function (options) {
5826
6617
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
5827
6618
  var mutationFn = function (props) {
5828
- var ticketId = (props !== null && props !== void 0 ? props : {}).ticketId;
5829
- return supportControllerUpdateTicketStatus(ticketId, requestOptions);
6619
+ var _a = props !== null && props !== void 0 ? props : {}, ticketId = _a.ticketId, data = _a.data;
6620
+ return supportControllerUpdateTicketStatus(ticketId, data, requestOptions);
5830
6621
  };
5831
6622
  return __assign({ mutationFn: mutationFn }, mutationOptions);
5832
6623
  };
@@ -5840,14 +6631,16 @@ export var useSupportControllerUpdateTicketStatus = function (options) {
5840
6631
  /**
5841
6632
  * @summary Assign ticket to an agent
5842
6633
  */
5843
- export var supportControllerAssignTicket = function (ticketId, options) {
5844
- return customInstance({ url: "/api/support/tickets/".concat(ticketId, "/assign"), method: 'PATCH' }, options);
6634
+ export var supportControllerAssignTicket = function (ticketId, assignTicketDto, options) {
6635
+ return customInstance({ url: "/api/support/tickets/".concat(ticketId, "/assign"), method: 'PATCH',
6636
+ headers: { 'Content-Type': 'application/json', },
6637
+ data: assignTicketDto }, options);
5845
6638
  };
5846
6639
  export var getSupportControllerAssignTicketMutationOptions = function (options) {
5847
6640
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
5848
6641
  var mutationFn = function (props) {
5849
- var ticketId = (props !== null && props !== void 0 ? props : {}).ticketId;
5850
- return supportControllerAssignTicket(ticketId, requestOptions);
6642
+ var _a = props !== null && props !== void 0 ? props : {}, ticketId = _a.ticketId, data = _a.data;
6643
+ return supportControllerAssignTicket(ticketId, data, requestOptions);
5851
6644
  };
5852
6645
  return __assign({ mutationFn: mutationFn }, mutationOptions);
5853
6646
  };
@@ -5861,13 +6654,16 @@ export var useSupportControllerAssignTicket = function (options) {
5861
6654
  /**
5862
6655
  * @summary Create or update customer profile
5863
6656
  */
5864
- export var supportControllerCreateCustomerProfile = function (options) {
5865
- return customInstance({ url: "/api/support/customers", method: 'POST' }, options);
6657
+ export var supportControllerCreateCustomerProfile = function (createCustomerProfileDto, options) {
6658
+ return customInstance({ url: "/api/support/customers", method: 'POST',
6659
+ headers: { 'Content-Type': 'application/json', },
6660
+ data: createCustomerProfileDto }, options);
5866
6661
  };
5867
6662
  export var getSupportControllerCreateCustomerProfileMutationOptions = function (options) {
5868
6663
  var _a = options !== null && options !== void 0 ? options : {}, mutationOptions = _a.mutation, requestOptions = _a.request;
5869
- var mutationFn = function () {
5870
- return supportControllerCreateCustomerProfile(requestOptions);
6664
+ var mutationFn = function (props) {
6665
+ var data = (props !== null && props !== void 0 ? props : {}).data;
6666
+ return supportControllerCreateCustomerProfile(data, requestOptions);
5871
6667
  };
5872
6668
  return __assign({ mutationFn: mutationFn }, mutationOptions);
5873
6669
  };