@iblai/data-layer 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9330 -3933
- package/dist/index.esm.js +356 -44
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +394 -45
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/src/features/analytics/__tests__/learner-details.test.d.ts +1 -0
- package/dist/src/features/analytics/api-slice.d.ts +134 -1
- package/dist/src/features/analytics/constants.d.ts +4 -0
- package/dist/src/features/analytics/custom-api-slice.d.ts +8 -311
- package/dist/src/features/analytics/types.d.ts +117 -0
- package/dist/src/features/call-configurations/api-slice.d.ts +20 -20
- package/dist/src/features/chat/__tests__/api-slice.test.d.ts +1 -0
- package/dist/src/features/chat/api-slice.d.ts +882 -1
- package/dist/src/features/chat/constants.d.ts +7 -0
- package/dist/src/features/chat-privacy/api-slice.d.ts +1398 -0
- package/dist/src/features/chat-privacy/constants.d.ts +13 -0
- package/dist/src/features/core/__tests__/rbac-actions-definition.test.d.ts +1 -0
- package/dist/src/features/core/api-slice.d.ts +3479 -241
- package/dist/src/features/core/types.d.ts +5 -0
- package/dist/src/features/reports/api-slice.d.ts +1 -1
- package/dist/src/features/sessions/__tests__/api-slice.test.d.ts +1 -0
- package/dist/src/features/sessions/__tests__/url.test.d.ts +1 -0
- package/dist/src/features/sessions/api-slice.d.ts +122 -252
- package/dist/src/features/sessions/constants.d.ts +3 -0
- package/dist/src/features/sessions/url.d.ts +9 -0
- package/dist/src/features/user/api-slice.d.ts +14 -14
- package/dist/src/features/user/types.d.ts +6 -0
- package/dist/src/features/utils.d.ts +7 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/tests/features/analytics/custom-api-slice.test.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var react = require('@reduxjs/toolkit/query/react');
|
|
4
4
|
var query = require('@reduxjs/toolkit/query');
|
|
5
|
+
var react$1 = require('react');
|
|
5
6
|
|
|
6
7
|
class ApiError extends Error {
|
|
7
8
|
constructor(request, response, message) {
|
|
@@ -39241,6 +39242,13 @@ const buildEndpointFromDmService = (serviceFn, options) => buildEndpointFromServ
|
|
|
39241
39242
|
* Shortcut for building an endpoint using the AXD service.
|
|
39242
39243
|
*/
|
|
39243
39244
|
const buildEndpointFromAxdService = (serviceFn, options) => buildEndpointFromService(exports.SERVICES.AXD, serviceFn, options);
|
|
39245
|
+
/**
|
|
39246
|
+
* Build an endpoint from a hand-assembled URL (rather than a generated service
|
|
39247
|
+
* method), routed through `iblFetchBaseQuery`. Defaults to the DM service.
|
|
39248
|
+
*/
|
|
39249
|
+
const buildEndpointFromDmUrl = (buildUrl, service = exports.SERVICES.DM) => ({
|
|
39250
|
+
queryFn: async (args, api, extraOptions) => iblFetchBaseQuery({ url: buildUrl(args), service }, api, extraOptions),
|
|
39251
|
+
});
|
|
39244
39252
|
const isErrorObject = (data) => {
|
|
39245
39253
|
return (typeof data === 'object' &&
|
|
39246
39254
|
data !== null &&
|
|
@@ -39475,6 +39483,43 @@ const chatHistoryApiSlice = react.createApi({
|
|
|
39475
39483
|
});
|
|
39476
39484
|
const { useGetChatHistoryFilterQuery, useLazyGetChatHistoryFilterQuery, useGetChatHistoryQuery, useLazyGetChatHistoryQuery, useExportChatHistoryMutation, useGetChatHistoryExportStatusQuery, useLazyGetChatHistoryExportStatusQuery, } = chatHistoryApiSlice;
|
|
39477
39485
|
|
|
39486
|
+
const CHAT_CUSTOM_REDUCER_PATH = 'chatCustomApiSlice';
|
|
39487
|
+
/**
|
|
39488
|
+
* Recent-messages sidebar list pagination. The endpoint uses DRF
|
|
39489
|
+
* LimitOffsetPagination, so the page param is a row offset (not a page number).
|
|
39490
|
+
*/
|
|
39491
|
+
const RECENT_MESSAGES_PAGE_SIZE = 10;
|
|
39492
|
+
const RECENT_MESSAGES_LIMIT_PARAM = 'limit';
|
|
39493
|
+
const RECENT_MESSAGES_OFFSET_PARAM = 'offset';
|
|
39494
|
+
const CHAT_CUSTOM_ENDPOINTS = {
|
|
39495
|
+
GET_CHAT_MESSAGE_TTS: {
|
|
39496
|
+
path: (org, user_id, chat_message_id) => `/api/ai-mentor/orgs/${org}/users/${user_id}/chat-messages/${chat_message_id}/tts`,
|
|
39497
|
+
service: exports.SERVICES.DM,
|
|
39498
|
+
},
|
|
39499
|
+
};
|
|
39500
|
+
|
|
39501
|
+
/**
|
|
39502
|
+
* Derive the next row offset from a DRF LimitOffset response. Returns `undefined`
|
|
39503
|
+
* when there is no further page (missing/null `next`, or a non-paginated shape
|
|
39504
|
+
* such as a bare array), so the query degrades to a single page.
|
|
39505
|
+
*/
|
|
39506
|
+
const getNextRecentMessagesPageParam = (lastPage, lastPageParam) => lastPage && !Array.isArray(lastPage) && lastPage.next
|
|
39507
|
+
? lastPageParam + RECENT_MESSAGES_PAGE_SIZE
|
|
39508
|
+
: undefined;
|
|
39509
|
+
/**
|
|
39510
|
+
* Build the recent-messages URL for a given row offset. The endpoint uses DRF
|
|
39511
|
+
* LimitOffsetPagination (`limit`/`offset`), not page numbers.
|
|
39512
|
+
*/
|
|
39513
|
+
const buildRecentMessagesUrl = (args, pageParam) => {
|
|
39514
|
+
const params = new URLSearchParams();
|
|
39515
|
+
params.append(RECENT_MESSAGES_LIMIT_PARAM, String(RECENT_MESSAGES_PAGE_SIZE));
|
|
39516
|
+
params.append(RECENT_MESSAGES_OFFSET_PARAM, String(pageParam));
|
|
39517
|
+
if (args.mentor)
|
|
39518
|
+
params.append('mentor', args.mentor);
|
|
39519
|
+
if (args.search && args.search.trim() !== '')
|
|
39520
|
+
params.append('search', args.search.trim());
|
|
39521
|
+
return `/api/ai-mentor/orgs/${args.org}/users/${args.userId}/recent-messages/?${params.toString()}`;
|
|
39522
|
+
};
|
|
39478
39523
|
const chatApiSlice = react.createApi({
|
|
39479
39524
|
reducerPath: 'chatApiSlice',
|
|
39480
39525
|
baseQuery: iblFakeBaseQuery,
|
|
@@ -39509,6 +39554,21 @@ const chatApiSlice = react.createApi({
|
|
|
39509
39554
|
getRecentMessage: builder.query({
|
|
39510
39555
|
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersRecentMessagesRetrieve),
|
|
39511
39556
|
}),
|
|
39557
|
+
getRecentMessages: builder.infiniteQuery({
|
|
39558
|
+
infiniteQueryOptions: {
|
|
39559
|
+
initialPageParam: 0,
|
|
39560
|
+
getNextPageParam: (lastPage, _allPages, lastPageParam) => getNextRecentMessagesPageParam(lastPage, lastPageParam),
|
|
39561
|
+
},
|
|
39562
|
+
queryFn: async ({ queryArg, pageParam }, api, extraOptions) => {
|
|
39563
|
+
const url = buildRecentMessagesUrl(queryArg, pageParam);
|
|
39564
|
+
return iblFetchBaseQuery({
|
|
39565
|
+
url,
|
|
39566
|
+
method: 'GET',
|
|
39567
|
+
service: exports.SERVICES.DM,
|
|
39568
|
+
}, api, extraOptions);
|
|
39569
|
+
},
|
|
39570
|
+
providesTags: ['recentMessages'],
|
|
39571
|
+
}),
|
|
39512
39572
|
deleteMessage: builder.mutation({
|
|
39513
39573
|
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersSessionsDestroy),
|
|
39514
39574
|
}),
|
|
@@ -39523,15 +39583,7 @@ const chatApiSlice = react.createApi({
|
|
|
39523
39583
|
}),
|
|
39524
39584
|
}),
|
|
39525
39585
|
});
|
|
39526
|
-
const { useLazyGetPinnedMessagesQuery, useUnPinMessageMutation, useDeleteMessageMutation, useGetPinnedMessagesQuery, useAddPinnedMessageMutation, useGetVectorDocumentsQuery, useLazyGetVectorDocumentsQuery, useGetRecentMessageQuery, useLazyGetRecentMessageQuery, useUpdateMessageFeedbackMutation, useAudioToTextMutation, } = chatApiSlice;
|
|
39527
|
-
|
|
39528
|
-
const CHAT_CUSTOM_REDUCER_PATH = 'chatCustomApiSlice';
|
|
39529
|
-
const CHAT_CUSTOM_ENDPOINTS = {
|
|
39530
|
-
GET_CHAT_MESSAGE_TTS: {
|
|
39531
|
-
path: (org, user_id, chat_message_id) => `/api/ai-mentor/orgs/${org}/users/${user_id}/chat-messages/${chat_message_id}/tts`,
|
|
39532
|
-
service: exports.SERVICES.DM,
|
|
39533
|
-
},
|
|
39534
|
-
};
|
|
39586
|
+
const { useLazyGetPinnedMessagesQuery, useUnPinMessageMutation, useDeleteMessageMutation, useGetPinnedMessagesQuery, useAddPinnedMessageMutation, useGetVectorDocumentsQuery, useLazyGetVectorDocumentsQuery, useGetRecentMessageQuery, useLazyGetRecentMessageQuery, useGetRecentMessagesInfiniteQuery, useUpdateMessageFeedbackMutation, useAudioToTextMutation, } = chatApiSlice;
|
|
39535
39587
|
|
|
39536
39588
|
const chatCustomApiSlice = react.createApi({
|
|
39537
39589
|
reducerPath: CHAT_CUSTOM_REDUCER_PATH,
|
|
@@ -40234,8 +40286,8 @@ const USERS_ENDPOINTS = {
|
|
|
40234
40286
|
path: () => `/api/ibl/users/manage/metadata/`,
|
|
40235
40287
|
},
|
|
40236
40288
|
RESET_PASSWORD: {
|
|
40237
|
-
service: exports.SERVICES.
|
|
40238
|
-
path: () => `/account/password`,
|
|
40289
|
+
service: exports.SERVICES.LEGACY_LMS,
|
|
40290
|
+
path: () => `/ibl/edx/account/api/reset-password-token`,
|
|
40239
40291
|
},
|
|
40240
40292
|
UPDATE_USER_ROLES: {
|
|
40241
40293
|
service: exports.SERVICES.LMS,
|
|
@@ -40316,12 +40368,26 @@ const userApiSlice = react.createApi({
|
|
|
40316
40368
|
invalidatesTags: USERS_QUERY_KEYS.GET_USER_METADATA(),
|
|
40317
40369
|
}),
|
|
40318
40370
|
resetPassword: builder.mutation({
|
|
40319
|
-
query: (
|
|
40320
|
-
|
|
40321
|
-
|
|
40322
|
-
|
|
40323
|
-
|
|
40324
|
-
|
|
40371
|
+
query: ({ email, platformKey, redirectTo, app }) => {
|
|
40372
|
+
const payload = {
|
|
40373
|
+
email,
|
|
40374
|
+
};
|
|
40375
|
+
if (platformKey) {
|
|
40376
|
+
payload.platform_key = platformKey;
|
|
40377
|
+
}
|
|
40378
|
+
if (redirectTo) {
|
|
40379
|
+
payload.redirect_to = redirectTo;
|
|
40380
|
+
}
|
|
40381
|
+
if (app) {
|
|
40382
|
+
payload.app = app;
|
|
40383
|
+
}
|
|
40384
|
+
return {
|
|
40385
|
+
url: USERS_ENDPOINTS.RESET_PASSWORD.path(),
|
|
40386
|
+
service: USERS_ENDPOINTS.RESET_PASSWORD.service,
|
|
40387
|
+
body: payload,
|
|
40388
|
+
method: 'POST',
|
|
40389
|
+
};
|
|
40390
|
+
},
|
|
40325
40391
|
}),
|
|
40326
40392
|
updateUserRole: builder.mutation({
|
|
40327
40393
|
query: (args) => ({
|
|
@@ -40401,6 +40467,32 @@ const userApiSlice = react.createApi({
|
|
|
40401
40467
|
});
|
|
40402
40468
|
const { useGetUserMetadataQuery, useLazyGetUserMetadataQuery, useUpdateUserMetadataMutation, useUpdateUserAccountMutation, useResetPasswordMutation, useUpdateUserRoleMutation, useUploadProfileImageMutation, useRemoveProfileImageMutation, useGetUserMetadataEdxQuery, useLazyGetUserMetadataEdxQuery, useUpdateUserMetadataEdxMutation, useGetUserPlatformMetadataQuery, useLazyGetUserPlatformMetadataQuery, useUpdateUserPlatformMetadataMutation, } = userApiSlice;
|
|
40403
40469
|
|
|
40470
|
+
/**
|
|
40471
|
+
* Shared fetch for the paginated LTI provider list endpoints. Sends
|
|
40472
|
+
* `platform_key`, optional `mentor_id` (Agent Links), and `page` / `page_size`.
|
|
40473
|
+
*/
|
|
40474
|
+
async function fetchLtiList(path, args) {
|
|
40475
|
+
const queryParams = new URLSearchParams({ platform_key: args.platformKey });
|
|
40476
|
+
if (args.mentorId)
|
|
40477
|
+
queryParams.set('mentor_id', args.mentorId);
|
|
40478
|
+
if (args.page !== undefined)
|
|
40479
|
+
queryParams.set('page', String(args.page));
|
|
40480
|
+
if (args.pageSize !== undefined)
|
|
40481
|
+
queryParams.set('page_size', String(args.pageSize));
|
|
40482
|
+
const url = `${OpenAPI.BASE}/api/core/lti/1p3/provider/${path}/?${queryParams.toString()}`;
|
|
40483
|
+
const response = await fetch(url, {
|
|
40484
|
+
method: 'GET',
|
|
40485
|
+
headers: OpenAPI.HEADERS,
|
|
40486
|
+
credentials: 'omit',
|
|
40487
|
+
});
|
|
40488
|
+
if (!response.ok) {
|
|
40489
|
+
throw Object.assign(new Error(`Failed to fetch ${path}`), {
|
|
40490
|
+
status: response.status,
|
|
40491
|
+
body: await response.text(),
|
|
40492
|
+
});
|
|
40493
|
+
}
|
|
40494
|
+
return response.json();
|
|
40495
|
+
}
|
|
40404
40496
|
const coreApiSlice = react.createApi({
|
|
40405
40497
|
reducerPath: 'coreApiSlice',
|
|
40406
40498
|
baseQuery: iblFakeBaseQuery,
|
|
@@ -40411,6 +40503,9 @@ const coreApiSlice = react.createApi({
|
|
|
40411
40503
|
'RbacPolicies',
|
|
40412
40504
|
'RbacRoles',
|
|
40413
40505
|
'RbacTeamsAccess',
|
|
40506
|
+
'LtiKeys',
|
|
40507
|
+
'LtiMentors',
|
|
40508
|
+
'LtiTools',
|
|
40414
40509
|
],
|
|
40415
40510
|
endpoints: (builder) => ({
|
|
40416
40511
|
createRedirectToken: builder.mutation({
|
|
@@ -40670,6 +40765,23 @@ const coreApiSlice = react.createApi({
|
|
|
40670
40765
|
updateRbacMentorAccess: builder.mutation({
|
|
40671
40766
|
...buildEndpointFromDmService(CoreService.coreRbacMentorAccessCreate),
|
|
40672
40767
|
}),
|
|
40768
|
+
getRbacActionsDefinition: builder.query({
|
|
40769
|
+
...buildEndpointFromService(exports.SERVICES.DM, async () => {
|
|
40770
|
+
const url = `${OpenAPI.BASE}/api/core/rbac/actions/definitions/`;
|
|
40771
|
+
const response = await fetch(url, {
|
|
40772
|
+
method: 'GET',
|
|
40773
|
+
headers: OpenAPI.HEADERS,
|
|
40774
|
+
credentials: 'omit',
|
|
40775
|
+
});
|
|
40776
|
+
if (!response.ok) {
|
|
40777
|
+
throw Object.assign(new Error('Failed to fetch RBAC actions definitions'), {
|
|
40778
|
+
status: response.status,
|
|
40779
|
+
body: await response.text(),
|
|
40780
|
+
});
|
|
40781
|
+
}
|
|
40782
|
+
return response.json();
|
|
40783
|
+
}),
|
|
40784
|
+
}),
|
|
40673
40785
|
getRbacTeamsAccessList: builder.query({
|
|
40674
40786
|
...buildEndpointFromDmService(CoreService.coreRbacTeamsAccessList),
|
|
40675
40787
|
providesTags: ['RbacTeamsAccess'],
|
|
@@ -40678,9 +40790,90 @@ const coreApiSlice = react.createApi({
|
|
|
40678
40790
|
...buildEndpointFromDmService(CoreService.coreRbacTeamsAccessCreate),
|
|
40679
40791
|
invalidatesTags: ['RbacTeamsAccess'],
|
|
40680
40792
|
}),
|
|
40793
|
+
// ── LTI 1.3 Provider: Keys (platform-wide RSA signing keys) ──
|
|
40794
|
+
getLtiKeys: builder.query({
|
|
40795
|
+
...buildEndpointFromService(exports.SERVICES.DM, (args) => fetchLtiList('lti-keys', args)),
|
|
40796
|
+
providesTags: ['LtiKeys'],
|
|
40797
|
+
}),
|
|
40798
|
+
getLtiKeyDetail: builder.query({
|
|
40799
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysRetrieve),
|
|
40800
|
+
providesTags: ['LtiKeys'],
|
|
40801
|
+
}),
|
|
40802
|
+
createLtiKey: builder.mutation({
|
|
40803
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysCreate),
|
|
40804
|
+
invalidatesTags: ['LtiKeys'],
|
|
40805
|
+
}),
|
|
40806
|
+
updateLtiKey: builder.mutation({
|
|
40807
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysUpdate),
|
|
40808
|
+
invalidatesTags: ['LtiKeys'],
|
|
40809
|
+
}),
|
|
40810
|
+
deleteLtiKey: builder.mutation({
|
|
40811
|
+
// Deleting a key that is still attached to a tool returns 400/409 — fail
|
|
40812
|
+
// fast and surface the message instead of retrying the request 5 times.
|
|
40813
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysDestroy, {
|
|
40814
|
+
expectedErrorStatuses: [400, 409],
|
|
40815
|
+
}),
|
|
40816
|
+
invalidatesTags: ['LtiKeys'],
|
|
40817
|
+
}),
|
|
40818
|
+
// ── LTI 1.3 Provider: Agent (Mentor) Links ──
|
|
40819
|
+
// Custom call so we can pass the optional `mentor_id` query param (the
|
|
40820
|
+
// mentor's unique_id) and let the backend scope the list to one agent.
|
|
40821
|
+
// The generated CoreService.coreLti1P3ProviderLtiMentorsList only sends
|
|
40822
|
+
// platform_key.
|
|
40823
|
+
getLtiMentors: builder.query({
|
|
40824
|
+
...buildEndpointFromService(exports.SERVICES.DM, (args) => fetchLtiList('lti-mentors', args)),
|
|
40825
|
+
providesTags: ['LtiMentors'],
|
|
40826
|
+
}),
|
|
40827
|
+
getLtiMentorDetail: builder.query({
|
|
40828
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsRetrieve),
|
|
40829
|
+
providesTags: ['LtiMentors'],
|
|
40830
|
+
}),
|
|
40831
|
+
createLtiMentor: builder.mutation({
|
|
40832
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsCreate),
|
|
40833
|
+
invalidatesTags: ['LtiMentors'],
|
|
40834
|
+
}),
|
|
40835
|
+
updateLtiMentor: builder.mutation({
|
|
40836
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsUpdate),
|
|
40837
|
+
invalidatesTags: ['LtiMentors'],
|
|
40838
|
+
}),
|
|
40839
|
+
deleteLtiMentor: builder.mutation({
|
|
40840
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsDestroy, {
|
|
40841
|
+
expectedErrorStatuses: [400, 409],
|
|
40842
|
+
}),
|
|
40843
|
+
invalidatesTags: ['LtiMentors'],
|
|
40844
|
+
}),
|
|
40845
|
+
// ── LTI 1.3 Provider: Tools (platform-wide LTI Platform integrations) ──
|
|
40846
|
+
getLtiTools: builder.query({
|
|
40847
|
+
...buildEndpointFromService(exports.SERVICES.DM, (args) => fetchLtiList('lti-tools', args)),
|
|
40848
|
+
providesTags: ['LtiTools'],
|
|
40849
|
+
}),
|
|
40850
|
+
getLtiToolDetail: builder.query({
|
|
40851
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsRetrieve),
|
|
40852
|
+
providesTags: ['LtiTools'],
|
|
40853
|
+
}),
|
|
40854
|
+
createLtiTool: builder.mutation({
|
|
40855
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsCreate),
|
|
40856
|
+
invalidatesTags: ['LtiTools'],
|
|
40857
|
+
}),
|
|
40858
|
+
updateLtiTool: builder.mutation({
|
|
40859
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsUpdate),
|
|
40860
|
+
invalidatesTags: ['LtiTools'],
|
|
40861
|
+
}),
|
|
40862
|
+
deleteLtiTool: builder.mutation({
|
|
40863
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsDestroy, {
|
|
40864
|
+
expectedErrorStatuses: [400, 409],
|
|
40865
|
+
}),
|
|
40866
|
+
invalidatesTags: ['LtiTools'],
|
|
40867
|
+
}),
|
|
40681
40868
|
}),
|
|
40682
40869
|
});
|
|
40683
|
-
const { useCreateRedirectTokenMutation, useGetPlatformInfoQuery, useGetRbacPermissionsMutation, useLazyGetPlatformInfoQuery, useUpdatePlatformInfoMutation, useUpdateUserStatusMutation, useGetStudentMentorCreationStatusQuery, useSetStudentMentorCreationStatusMutation, useGetRbacGroupsQuery, useCreateRbacGroupMutation, useUpdateRbacGroupMutation, useDeleteRbacGroupMutation, useGetRbacGroupDetailsQuery, useGetRbacPoliciesQuery, useCreateRbacPolicyMutation, useUpdateRbacPolicyMutation, useDeleteRbacPolicyMutation, useGetRbacPolicyDetailsQuery, useGetRbacRolesQuery, useLazyGetRbacRolesQuery, useCreateRbacRoleMutation, useUpdateRbacRoleMutation, usePartialUpdateRbacRoleMutation, useDeleteRbacRoleMutation, useGetRbacRoleDetailsQuery, useGetDepartmentMemberCheckQuery, useLazyGetDepartmentMemberCheckQuery, useGetRbacMentorAccessListQuery, useUpdateRbacMentorAccessMutation, useGetRbacTeamsAccessListQuery, useLazyGetRbacTeamsAccessListQuery, useCreateRbacTeamsAccessMutation,
|
|
40870
|
+
const { useCreateRedirectTokenMutation, useGetPlatformInfoQuery, useGetRbacPermissionsMutation, useLazyGetPlatformInfoQuery, useUpdatePlatformInfoMutation, useUpdateUserStatusMutation, useGetStudentMentorCreationStatusQuery, useSetStudentMentorCreationStatusMutation, useGetRbacGroupsQuery, useCreateRbacGroupMutation, useUpdateRbacGroupMutation, useDeleteRbacGroupMutation, useGetRbacGroupDetailsQuery, useGetRbacPoliciesQuery, useCreateRbacPolicyMutation, useUpdateRbacPolicyMutation, useDeleteRbacPolicyMutation, useGetRbacPolicyDetailsQuery, useGetRbacRolesQuery, useLazyGetRbacRolesQuery, useCreateRbacRoleMutation, useUpdateRbacRoleMutation, usePartialUpdateRbacRoleMutation, useDeleteRbacRoleMutation, useGetRbacRoleDetailsQuery, useGetDepartmentMemberCheckQuery, useLazyGetDepartmentMemberCheckQuery, useGetRbacMentorAccessListQuery, useUpdateRbacMentorAccessMutation, useGetRbacActionsDefinitionQuery, useLazyGetRbacActionsDefinitionQuery, useGetRbacTeamsAccessListQuery, useLazyGetRbacTeamsAccessListQuery, useCreateRbacTeamsAccessMutation,
|
|
40871
|
+
// LTI Keys
|
|
40872
|
+
useGetLtiKeysQuery, useGetLtiKeyDetailQuery, useLazyGetLtiKeyDetailQuery, useCreateLtiKeyMutation, useUpdateLtiKeyMutation, useDeleteLtiKeyMutation,
|
|
40873
|
+
// LTI Agent (Mentor) Links
|
|
40874
|
+
useGetLtiMentorsQuery, useGetLtiMentorDetailQuery, useCreateLtiMentorMutation, useUpdateLtiMentorMutation, useDeleteLtiMentorMutation,
|
|
40875
|
+
// LTI Tools
|
|
40876
|
+
useGetLtiToolsQuery, useGetLtiToolDetailQuery, useCreateLtiToolMutation, useUpdateLtiToolMutation, useDeleteLtiToolMutation, } = coreApiSlice;
|
|
40684
40877
|
|
|
40685
40878
|
const LOGO_ENDPOINTS = {
|
|
40686
40879
|
light_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo`,
|
|
@@ -41112,6 +41305,92 @@ const credentialsApiSlice = react.createApi({
|
|
|
41112
41305
|
});
|
|
41113
41306
|
const { useGetCredentialsQuery, useLazyGetCredentialsQuery, useGetUserCredentialsQuery, useLazyGetUserCredentialsQuery, useCreateCallCredentialsMutation, useGetIntegrationCredentialsQuery, useLazyGetIntegrationCredentialsQuery, useCreateIntegrationCredentialMutation, useUpdateIntegrationCredentialMutation, useGetLLMCredentialsQuery, useLazyGetLLMCredentialsQuery, useCreateLLMCredentialMutation, useGetConnectedServiceAuthUrlQuery, useLazyGetConnectedServiceAuthUrlQuery, useConnectedServicesCallbackQuery, useLazyConnectedServicesCallbackQuery, useGetUsersAsAssertionsQuery, useLazyGetUsersAsAssertionsQuery, useCreateCredentialAssertionMutation, useGetCredentialsListQuery, useLazyGetCredentialsListQuery, useCreateCredentialMutation, useUpdateCredentialMutation, useDeleteCourseCredentialMutation, useGetProviderConfigQuery, useLazyGetProviderConfigQuery, useCreateProviderConfigMutation, useDeleteProviderConfigMutation, useGetExternalMappingQuery, useLazyGetExternalMappingQuery, useCreateExternalMappingMutation, useDeleteExternalMappingMutation, } = credentialsApiSlice;
|
|
41114
41307
|
|
|
41308
|
+
const chatPrivacyApiSlice = react.createApi({
|
|
41309
|
+
reducerPath: 'chatPrivacyApiSlice',
|
|
41310
|
+
baseQuery: iblFetchBaseQuery,
|
|
41311
|
+
tagTypes: ['TenantChatPrivacyConfig', 'UserChatPrivacySettings', 'ChatPrivacyEffective'],
|
|
41312
|
+
endpoints: (builder) => ({
|
|
41313
|
+
getTenantChatPrivacyConfig: builder.query({
|
|
41314
|
+
query: ({ org, userId }) => ({
|
|
41315
|
+
url: `/api/ai-account/orgs/${org}/users/${userId}/chat-privacy-config/`,
|
|
41316
|
+
service: exports.SERVICES.DM,
|
|
41317
|
+
}),
|
|
41318
|
+
providesTags: ['TenantChatPrivacyConfig'],
|
|
41319
|
+
}),
|
|
41320
|
+
updateTenantChatPrivacyConfig: builder.mutation({
|
|
41321
|
+
query: ({ org, userId, requestBody }) => ({
|
|
41322
|
+
url: `/api/ai-account/orgs/${org}/users/${userId}/chat-privacy-config/`,
|
|
41323
|
+
method: 'PATCH',
|
|
41324
|
+
body: requestBody,
|
|
41325
|
+
service: exports.SERVICES.DM,
|
|
41326
|
+
}),
|
|
41327
|
+
invalidatesTags: ['TenantChatPrivacyConfig', 'ChatPrivacyEffective'],
|
|
41328
|
+
}),
|
|
41329
|
+
getUserChatPrivacySettings: builder.query({
|
|
41330
|
+
query: ({ org, userId }) => ({
|
|
41331
|
+
url: `/api/ai-account/orgs/${org}/users/${userId}/chat-privacy-settings/`,
|
|
41332
|
+
service: exports.SERVICES.DM,
|
|
41333
|
+
}),
|
|
41334
|
+
providesTags: ['UserChatPrivacySettings'],
|
|
41335
|
+
}),
|
|
41336
|
+
updateUserChatPrivacySettings: builder.mutation({
|
|
41337
|
+
query: ({ org, userId, requestBody }) => ({
|
|
41338
|
+
url: `/api/ai-account/orgs/${org}/users/${userId}/chat-privacy-settings/`,
|
|
41339
|
+
method: 'POST',
|
|
41340
|
+
body: requestBody,
|
|
41341
|
+
service: exports.SERVICES.DM,
|
|
41342
|
+
}),
|
|
41343
|
+
invalidatesTags: ['UserChatPrivacySettings', 'ChatPrivacyEffective'],
|
|
41344
|
+
}),
|
|
41345
|
+
getChatPrivacyEffective: builder.query({
|
|
41346
|
+
query: ({ org, userId, mentor, session }) => {
|
|
41347
|
+
const params = new URLSearchParams();
|
|
41348
|
+
if (mentor)
|
|
41349
|
+
params.append('mentor', mentor);
|
|
41350
|
+
if (session)
|
|
41351
|
+
params.append('session', session);
|
|
41352
|
+
const qs = params.toString();
|
|
41353
|
+
return {
|
|
41354
|
+
url: `/api/ai-account/orgs/${org}/users/${userId}/chat-privacy-effective/${qs ? `?${qs}` : ''}`,
|
|
41355
|
+
service: exports.SERVICES.DM,
|
|
41356
|
+
};
|
|
41357
|
+
},
|
|
41358
|
+
providesTags: ['ChatPrivacyEffective'],
|
|
41359
|
+
}),
|
|
41360
|
+
// One-way switch: flipping a session to disable_chathistory: true also
|
|
41361
|
+
// removes it from the user's history list (backend nulls Session.student).
|
|
41362
|
+
// Per the spec, true → false is rejected with 400; the user must start a
|
|
41363
|
+
// new conversation to resume history.
|
|
41364
|
+
//
|
|
41365
|
+
// Important — this endpoint lives under `/api/ai-mentor/…`, NOT under
|
|
41366
|
+
// `/api/ai-account/…` like the other chat-privacy endpoints. The
|
|
41367
|
+
// generated typed client is
|
|
41368
|
+
// `AiMentorService.aiMentorOrgsUsersSessionsDisableChathistoryCreate`.
|
|
41369
|
+
// (Both prefixes resolve to the same dm host, so SERVICES.DM is fine.)
|
|
41370
|
+
updateSessionDisableChathistory: builder.mutation({
|
|
41371
|
+
query: ({ org, userId, sessionId, requestBody }) => ({
|
|
41372
|
+
url: `/api/ai-mentor/orgs/${org}/users/${userId}/sessions/${sessionId}/disable-chathistory/`,
|
|
41373
|
+
method: 'POST',
|
|
41374
|
+
body: requestBody,
|
|
41375
|
+
service: exports.SERVICES.DM,
|
|
41376
|
+
}),
|
|
41377
|
+
invalidatesTags: ['ChatPrivacyEffective'],
|
|
41378
|
+
}),
|
|
41379
|
+
}),
|
|
41380
|
+
});
|
|
41381
|
+
const { useGetTenantChatPrivacyConfigQuery, useLazyGetTenantChatPrivacyConfigQuery, useUpdateTenantChatPrivacyConfigMutation, useGetUserChatPrivacySettingsQuery, useLazyGetUserChatPrivacySettingsQuery, useUpdateUserChatPrivacySettingsMutation, useGetChatPrivacyEffectiveQuery, useLazyGetChatPrivacyEffectiveQuery, useUpdateSessionDisableChathistoryMutation, } = chatPrivacyApiSlice;
|
|
41382
|
+
|
|
41383
|
+
const ChatPrivacyModeEnum = {
|
|
41384
|
+
NORMAL: 'normal',
|
|
41385
|
+
ANONYMIZED: 'anonymized',
|
|
41386
|
+
DISABLED: 'disabled',
|
|
41387
|
+
};
|
|
41388
|
+
const CHAT_PRIVACY_MODES = [
|
|
41389
|
+
ChatPrivacyModeEnum.NORMAL,
|
|
41390
|
+
ChatPrivacyModeEnum.ANONYMIZED,
|
|
41391
|
+
ChatPrivacyModeEnum.DISABLED,
|
|
41392
|
+
];
|
|
41393
|
+
|
|
41115
41394
|
const userInvitationsApiSlice = react.createApi({
|
|
41116
41395
|
reducerPath: 'userInvitationsApiSlice',
|
|
41117
41396
|
baseQuery: iblFakeBaseQuery,
|
|
@@ -41600,6 +41879,23 @@ const stripeApiSlice = react.createApi({
|
|
|
41600
41879
|
});
|
|
41601
41880
|
const { useGetStripeContextQuery, useLazyGetStripeContextQuery, useGetStripePricingPageSessionQuery, useLazyGetStripePricingPageSessionQuery, useCreateStripeCheckoutSessionMutation, } = stripeApiSlice;
|
|
41602
41881
|
|
|
41882
|
+
const CHAT_HISTORY_PAGE_SIZE = 10;
|
|
41883
|
+
const CHAT_HISTORY_PAGE_PARAM = 'page';
|
|
41884
|
+
const CHAT_HISTORY_PAGE_SIZE_PARAM = 'page_size';
|
|
41885
|
+
|
|
41886
|
+
const buildChatHistoryQuery = (page, pageSize) => {
|
|
41887
|
+
const params = new URLSearchParams();
|
|
41888
|
+
if (page !== undefined)
|
|
41889
|
+
params.append(CHAT_HISTORY_PAGE_PARAM, page.toString());
|
|
41890
|
+
if (pageSize !== undefined) {
|
|
41891
|
+
params.append(CHAT_HISTORY_PAGE_SIZE_PARAM, pageSize.toString());
|
|
41892
|
+
}
|
|
41893
|
+
const queryString = params.toString();
|
|
41894
|
+
return queryString ? `?${queryString}` : '';
|
|
41895
|
+
};
|
|
41896
|
+
const buildSessionRetrieveUrl = ({ org, sessionId, userId, page, pageSize, }) => `/api/ai-mentor/orgs/${org}/users/${userId !== null && userId !== void 0 ? userId : ''}/sessions/${sessionId}/${buildChatHistoryQuery(page, pageSize)}`;
|
|
41897
|
+
const buildSharedSessionRetrieveUrl = ({ org, sessionId, userId, page, pageSize, }) => `/api/ai-mentor/orgs/${org}/users/${userId}/sessions/${sessionId}/shared/${buildChatHistoryQuery(page, pageSize)}`;
|
|
41898
|
+
|
|
41603
41899
|
const sessionApiSlice = react.createApi({
|
|
41604
41900
|
reducerPath: 'sessionApiSlice',
|
|
41605
41901
|
baseQuery: iblFakeBaseQuery,
|
|
@@ -41610,11 +41906,11 @@ const sessionApiSlice = react.createApi({
|
|
|
41610
41906
|
invalidatesTags: ['sessionId'],
|
|
41611
41907
|
}),
|
|
41612
41908
|
getSessionId: builder.query({
|
|
41613
|
-
...
|
|
41909
|
+
...buildEndpointFromDmUrl(buildSessionRetrieveUrl),
|
|
41614
41910
|
providesTags: ['sessionId'],
|
|
41615
41911
|
}),
|
|
41616
41912
|
getSharedSessionId: builder.query({
|
|
41617
|
-
...
|
|
41913
|
+
...buildEndpointFromDmUrl(buildSharedSessionRetrieveUrl),
|
|
41618
41914
|
providesTags: ['sessionId'],
|
|
41619
41915
|
}),
|
|
41620
41916
|
editSession: builder.mutation({
|
|
@@ -41767,6 +42063,10 @@ const NON_AI_ANALYTICS_ENDPOINTS = {
|
|
|
41767
42063
|
service: exports.SERVICES.DM,
|
|
41768
42064
|
path: (content_id) => `/api/analytics/content/details/${content_id}/`,
|
|
41769
42065
|
},
|
|
42066
|
+
GET_LEARNER_DETAILS: {
|
|
42067
|
+
service: exports.SERVICES.DM,
|
|
42068
|
+
path: (username, platform_key, metrics, course_id, include_edx_progress, program_id) => `/api/analytics/learner/details?username=${username}&platform_key=${platform_key}&metrics=${metrics}${course_id ? `&course_id=${encodeURIComponent(course_id)}` : ''}${program_id ? `&program_id=${encodeURIComponent(program_id)}` : ''}${include_edx_progress !== undefined ? `&include_edx_progress=${include_edx_progress}` : ''}`,
|
|
42069
|
+
},
|
|
41770
42070
|
};
|
|
41771
42071
|
const ANALYTICS_REDUCER_PATH = 'analyticsApiSlice';
|
|
41772
42072
|
|
|
@@ -42065,28 +42365,34 @@ const analyticsApiSlice = react.createApi({
|
|
|
42065
42365
|
params: args,
|
|
42066
42366
|
}),
|
|
42067
42367
|
}),
|
|
42068
|
-
|
|
42069
|
-
|
|
42070
|
-
|
|
42071
|
-
|
|
42072
|
-
const analyticsCustomSlice = react.createApi({
|
|
42073
|
-
reducerPath: 'analyticsCustomApiSlice',
|
|
42074
|
-
baseQuery: iblFetchBaseQuery,
|
|
42075
|
-
tagTypes: ['Analytics'],
|
|
42076
|
-
endpoints: (builder) => ({
|
|
42077
|
-
getDownloadReportFromURL: builder.query({
|
|
42078
|
-
query: ({ url }) => ({
|
|
42079
|
-
url: url,
|
|
42080
|
-
service: exports.SERVICES.DM,
|
|
42081
|
-
method: 'GET',
|
|
42082
|
-
responseHandler: (response) => response.blob(),
|
|
42368
|
+
getLearnerDetails: builder.query({
|
|
42369
|
+
query: (args) => ({
|
|
42370
|
+
url: NON_AI_ANALYTICS_ENDPOINTS.GET_LEARNER_DETAILS.path(args.username, args.platform_key, args.metrics, args.course_id, args.include_edx_progress, args.program_id),
|
|
42371
|
+
service: NON_AI_ANALYTICS_ENDPOINTS.GET_LEARNER_DETAILS.service,
|
|
42083
42372
|
}),
|
|
42084
|
-
// Blobs are non-serializable; disable caching to prevent Redux serialization warnings
|
|
42085
|
-
keepUnusedDataFor: 0,
|
|
42086
42373
|
}),
|
|
42087
42374
|
}),
|
|
42088
42375
|
});
|
|
42089
|
-
const {
|
|
42376
|
+
const { useGetOverviewSummaryQuery, useGetConversationQuery, useGetMostDiscussedTopicsQuery, useGetAverageMessagesPerSessionQuery, useGetRegisteredUsersTrendQuery, useGetUserMetricsQuery, useGetUserMetricsPieChartQuery, useGetUserCohortsOverTimeQuery, useGetTopStudentsByChatMessagesQuery, useGetTopicOverviewQuery, useGetTopicsSummaryQuery, useGetTopicStatisticsQuery, useGetTopicsStatsQuery, useGetUsersStatsQuery, useGetSessionStatsQuery, useGetTopicsDetailsStatsQuery, useGetAccessTimeHeatmapQuery, useGetUserDetailsStatsQuery, useGetAverageRatingQuery, useGetFinancialStatsQuery, useGetDetailedFinancialStatsQuery, useGetTranscriptsMessagesQuery, useGetTranscriptsMessagesDetailsQuery, useTimeTrackingMutation, useGetTranscriptsConversationHeadlineQuery, useGetContentAnalyticsQuery, useGetContentAnalyticsDetailsQuery, useGetLearnerDetailsQuery, } = analyticsApiSlice;
|
|
42377
|
+
|
|
42378
|
+
const useLazyGetDownloadReportFromURLQuery = () => {
|
|
42379
|
+
const fetchReportBlob = react$1.useCallback(({ url }) => {
|
|
42380
|
+
const promise = (async () => {
|
|
42381
|
+
const authHeaders = await getHeaders(exports.SERVICES.DM);
|
|
42382
|
+
const response = await fetch(url, {
|
|
42383
|
+
method: 'GET',
|
|
42384
|
+
credentials: 'omit',
|
|
42385
|
+
headers: { ...(authHeaders !== null && authHeaders !== void 0 ? authHeaders : {}) },
|
|
42386
|
+
});
|
|
42387
|
+
if (!response.ok) {
|
|
42388
|
+
throw new Error(`Failed to download report (status ${response.status})`);
|
|
42389
|
+
}
|
|
42390
|
+
return response.blob();
|
|
42391
|
+
})();
|
|
42392
|
+
return { unwrap: () => promise };
|
|
42393
|
+
}, []);
|
|
42394
|
+
return [fetchReportBlob];
|
|
42395
|
+
};
|
|
42090
42396
|
|
|
42091
42397
|
const reportsApiSlice = react.createApi({
|
|
42092
42398
|
reducerPath: 'reportsApiSlice',
|
|
@@ -42128,7 +42434,11 @@ const reportsApiSlice = react.createApi({
|
|
|
42128
42434
|
providesTags: ['reports'],
|
|
42129
42435
|
}),
|
|
42130
42436
|
getReportDetail: builder.query({
|
|
42131
|
-
...buildEndpointFromDmService(ReportsService.reportsPlatformsRetrieve2
|
|
42437
|
+
...buildEndpointFromDmService(({ key, reportName, mentor_unique_id }) => ReportsService.reportsPlatformsRetrieve2({
|
|
42438
|
+
key,
|
|
42439
|
+
reportName,
|
|
42440
|
+
mentorUniqueId: mentor_unique_id,
|
|
42441
|
+
})),
|
|
42132
42442
|
providesTags: ['reportDetail'],
|
|
42133
42443
|
}),
|
|
42134
42444
|
createReport: builder.mutation({
|
|
@@ -45469,7 +45779,6 @@ const mentorReducer = {
|
|
|
45469
45779
|
[artifactsApiSlice.reducerPath]: artifactsApiSlice.reducer,
|
|
45470
45780
|
[coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
|
|
45471
45781
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
45472
|
-
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
45473
45782
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
45474
45783
|
[auditLogsApiSlice.reducerPath]: auditLogsApiSlice.reducer,
|
|
45475
45784
|
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
@@ -45478,6 +45787,8 @@ const mentorReducer = {
|
|
|
45478
45787
|
[edxSsoApiSlice.reducerPath]: edxSsoApiSlice.reducer,
|
|
45479
45788
|
[clawApiSlice.reducerPath]: clawApiSlice.reducer,
|
|
45480
45789
|
[watchedGroupsApiSlice.reducerPath]: watchedGroupsApiSlice.reducer,
|
|
45790
|
+
[chatPrivacyApiSlice.reducerPath]: chatPrivacyApiSlice.reducer,
|
|
45791
|
+
[skillsApiSlice.reducerPath]: skillsApiSlice.reducer,
|
|
45481
45792
|
};
|
|
45482
45793
|
const mentorMiddleware = [
|
|
45483
45794
|
mentorApiSlice.middleware,
|
|
@@ -45524,7 +45835,6 @@ const mentorMiddleware = [
|
|
|
45524
45835
|
artifactsApiSlice.middleware,
|
|
45525
45836
|
coreFakeCustomPublicImageAssetApiSlice.middleware,
|
|
45526
45837
|
billingCustomSlice.middleware,
|
|
45527
|
-
analyticsCustomSlice.middleware,
|
|
45528
45838
|
retirementApiSlice.middleware,
|
|
45529
45839
|
auditLogsApiSlice.middleware,
|
|
45530
45840
|
monetizationApiSlice.middleware,
|
|
@@ -45533,6 +45843,8 @@ const mentorMiddleware = [
|
|
|
45533
45843
|
edxSsoApiSlice.middleware,
|
|
45534
45844
|
clawApiSlice.middleware,
|
|
45535
45845
|
watchedGroupsApiSlice.middleware,
|
|
45846
|
+
chatPrivacyApiSlice.middleware,
|
|
45847
|
+
skillsApiSlice.middleware,
|
|
45536
45848
|
];
|
|
45537
45849
|
|
|
45538
45850
|
const skillsReducer = {
|
|
@@ -45567,7 +45879,6 @@ const skillsReducer = {
|
|
|
45567
45879
|
[artifactsApiSlice.reducerPath]: artifactsApiSlice.reducer,
|
|
45568
45880
|
[coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
|
|
45569
45881
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
45570
|
-
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
45571
45882
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
45572
45883
|
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
45573
45884
|
[memoryApiSlice.reducerPath]: memoryApiSlice.reducer,
|
|
@@ -45575,6 +45886,7 @@ const skillsReducer = {
|
|
|
45575
45886
|
[courseMetadataApiSlice.reducerPath]: courseMetadataApiSlice.reducer,
|
|
45576
45887
|
[edxSsoApiSlice.reducerPath]: edxSsoApiSlice.reducer,
|
|
45577
45888
|
[watchedGroupsApiSlice.reducerPath]: watchedGroupsApiSlice.reducer,
|
|
45889
|
+
[chatPrivacyApiSlice.reducerPath]: chatPrivacyApiSlice.reducer,
|
|
45578
45890
|
};
|
|
45579
45891
|
const skillsMiddleware = [
|
|
45580
45892
|
perLearnerApiSlice.middleware,
|
|
@@ -45608,7 +45920,6 @@ const skillsMiddleware = [
|
|
|
45608
45920
|
artifactsApiSlice.middleware,
|
|
45609
45921
|
coreFakeCustomPublicImageAssetApiSlice.middleware,
|
|
45610
45922
|
billingCustomSlice.middleware,
|
|
45611
|
-
analyticsCustomSlice.middleware,
|
|
45612
45923
|
retirementApiSlice.middleware,
|
|
45613
45924
|
monetizationApiSlice.middleware,
|
|
45614
45925
|
memoryApiSlice.middleware,
|
|
@@ -45616,6 +45927,7 @@ const skillsMiddleware = [
|
|
|
45616
45927
|
courseMetadataApiSlice.middleware,
|
|
45617
45928
|
edxSsoApiSlice.middleware,
|
|
45618
45929
|
watchedGroupsApiSlice.middleware,
|
|
45930
|
+
chatPrivacyApiSlice.middleware,
|
|
45619
45931
|
];
|
|
45620
45932
|
|
|
45621
45933
|
const initializeDataLayer = (dmUrl, lmsUrl, legacyLmsUrl, storageService, httpErrorHandler = {}) => {
|
|
@@ -45633,6 +45945,10 @@ exports.AUDIT_LOGS_REDUCER_PATH = AUDIT_LOGS_REDUCER_PATH;
|
|
|
45633
45945
|
exports.CALL_CONFIGURATIONS_ENDPOINTS = CALL_CONFIGURATIONS_ENDPOINTS;
|
|
45634
45946
|
exports.CALL_CONFIGURATIONS_REDUCER_PATH = CALL_CONFIGURATIONS_REDUCER_PATH;
|
|
45635
45947
|
exports.CALL_CONFIGURATIONS_TAGS = CALL_CONFIGURATIONS_TAGS;
|
|
45948
|
+
exports.CHAT_HISTORY_PAGE_PARAM = CHAT_HISTORY_PAGE_PARAM;
|
|
45949
|
+
exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE;
|
|
45950
|
+
exports.CHAT_HISTORY_PAGE_SIZE_PARAM = CHAT_HISTORY_PAGE_SIZE_PARAM;
|
|
45951
|
+
exports.CHAT_PRIVACY_MODES = CHAT_PRIVACY_MODES;
|
|
45636
45952
|
exports.CLAW_ENDPOINTS = CLAW_ENDPOINTS;
|
|
45637
45953
|
exports.CLAW_REDUCER_PATH = CLAW_REDUCER_PATH;
|
|
45638
45954
|
exports.CLAW_TAG_TYPES = CLAW_TAG_TYPES;
|
|
@@ -45647,6 +45963,7 @@ exports.CUSTOM_AI_SEARCH_REDUCER_PATH = CUSTOM_AI_SEARCH_REDUCER_PATH;
|
|
|
45647
45963
|
exports.CUSTOM_DOMAIN_ENDPOINTS = CUSTOM_DOMAIN_ENDPOINTS;
|
|
45648
45964
|
exports.CUSTOM_DOMAIN_QUERY_KEYS = CUSTOM_DOMAIN_QUERY_KEYS;
|
|
45649
45965
|
exports.CUSTOM_DOMAIN_REDUCER_PATH = CUSTOM_DOMAIN_REDUCER_PATH;
|
|
45966
|
+
exports.ChatPrivacyModeEnum = ChatPrivacyModeEnum;
|
|
45650
45967
|
exports.DEFAULT_PRIVACY_ACTION = DEFAULT_PRIVACY_ACTION;
|
|
45651
45968
|
exports.DEFAULT_PRIVACY_RESPONSE = DEFAULT_PRIVACY_RESPONSE;
|
|
45652
45969
|
exports.DISCLAIMERS_ENDPOINTS = DISCLAIMERS_ENDPOINTS;
|
|
@@ -45698,7 +46015,6 @@ exports.WORKFLOWS_ENDPOINTS = WORKFLOWS_ENDPOINTS;
|
|
|
45698
46015
|
exports.WORKFLOWS_QUERY_KEYS = WORKFLOWS_QUERY_KEYS;
|
|
45699
46016
|
exports.WORKFLOWS_REDUCER_PATH = WORKFLOWS_REDUCER_PATH;
|
|
45700
46017
|
exports.analyticsApiSlice = analyticsApiSlice;
|
|
45701
|
-
exports.analyticsCustomSlice = analyticsCustomSlice;
|
|
45702
46018
|
exports.apiKeysApiReducer = apiKeysApiReducer;
|
|
45703
46019
|
exports.apiKeysApiSlice = apiKeysApiSlice;
|
|
45704
46020
|
exports.appApiReducer = appApiReducer;
|
|
@@ -45709,6 +46025,9 @@ exports.auditLogsApiSlice = auditLogsApiSlice;
|
|
|
45709
46025
|
exports.authApiSlice = authApiSlice;
|
|
45710
46026
|
exports.billingApiSlice = billingApiSlice;
|
|
45711
46027
|
exports.billingCustomSlice = billingCustomSlice;
|
|
46028
|
+
exports.buildRecentMessagesUrl = buildRecentMessagesUrl;
|
|
46029
|
+
exports.buildSessionRetrieveUrl = buildSessionRetrieveUrl;
|
|
46030
|
+
exports.buildSharedSessionRetrieveUrl = buildSharedSessionRetrieveUrl;
|
|
45712
46031
|
exports.callConfigurationsApiReducer = callConfigurationsApiReducer;
|
|
45713
46032
|
exports.callConfigurationsApiSlice = callConfigurationsApiSlice;
|
|
45714
46033
|
exports.careerApiSlice = careerApiSlice;
|
|
@@ -45717,6 +46036,7 @@ exports.chatApiSlice = chatApiSlice;
|
|
|
45717
46036
|
exports.chatCustomApiSlice = chatCustomApiSlice;
|
|
45718
46037
|
exports.chatFilesApiSlice = chatFilesApiSlice;
|
|
45719
46038
|
exports.chatHistoryApiSlice = chatHistoryApiSlice;
|
|
46039
|
+
exports.chatPrivacyApiSlice = chatPrivacyApiSlice;
|
|
45720
46040
|
exports.clawApiSlice = clawApiSlice;
|
|
45721
46041
|
exports.coreApiSlice = coreApiSlice;
|
|
45722
46042
|
exports.coreCustomApiSlice = coreCustomApiSlice;
|
|
@@ -45733,6 +46053,7 @@ exports.edxProctoringApiSlice = edxProctoringApiSlice;
|
|
|
45733
46053
|
exports.edxSsoApiSlice = edxSsoApiSlice;
|
|
45734
46054
|
exports.fakeBaseQueryWithLogging = fakeBaseQueryWithLogging;
|
|
45735
46055
|
exports.featureTags = featureTags;
|
|
46056
|
+
exports.getNextRecentMessagesPageParam = getNextRecentMessagesPageParam;
|
|
45736
46057
|
exports.iblFakeBaseQuery = iblFakeBaseQuery;
|
|
45737
46058
|
exports.initializeDataLayer = initializeDataLayer;
|
|
45738
46059
|
exports.isPoliciesResponse = isPoliciesResponse;
|
|
@@ -45813,6 +46134,9 @@ exports.useCreateGlobalMemoryMutation = useCreateGlobalMemoryMutation;
|
|
|
45813
46134
|
exports.useCreateGuestCheckoutMutation = useCreateGuestCheckoutMutation;
|
|
45814
46135
|
exports.useCreateIntegrationCredentialMutation = useCreateIntegrationCredentialMutation;
|
|
45815
46136
|
exports.useCreateLLMCredentialMutation = useCreateLLMCredentialMutation;
|
|
46137
|
+
exports.useCreateLtiKeyMutation = useCreateLtiKeyMutation;
|
|
46138
|
+
exports.useCreateLtiMentorMutation = useCreateLtiMentorMutation;
|
|
46139
|
+
exports.useCreateLtiToolMutation = useCreateLtiToolMutation;
|
|
45816
46140
|
exports.useCreateMCPServerConnectionMutation = useCreateMCPServerConnectionMutation;
|
|
45817
46141
|
exports.useCreateMCPServerMutation = useCreateMCPServerMutation;
|
|
45818
46142
|
exports.useCreateMemoryCategoryMutation = useCreateMemoryCategoryMutation;
|
|
@@ -45863,6 +46187,9 @@ exports.useDeleteDisclaimerMutation = useDeleteDisclaimerMutation;
|
|
|
45863
46187
|
exports.useDeleteExternalMappingMutation = useDeleteExternalMappingMutation;
|
|
45864
46188
|
exports.useDeleteGlobalMemoryMutation = useDeleteGlobalMemoryMutation;
|
|
45865
46189
|
exports.useDeleteIntegrationCredentialMutation = useDeleteIntegrationCredentialMutation;
|
|
46190
|
+
exports.useDeleteLtiKeyMutation = useDeleteLtiKeyMutation;
|
|
46191
|
+
exports.useDeleteLtiMentorMutation = useDeleteLtiMentorMutation;
|
|
46192
|
+
exports.useDeleteLtiToolMutation = useDeleteLtiToolMutation;
|
|
45866
46193
|
exports.useDeleteMCPServerMutation = useDeleteMCPServerMutation;
|
|
45867
46194
|
exports.useDeleteMemoryCategoryMutation = useDeleteMemoryCategoryMutation;
|
|
45868
46195
|
exports.useDeleteMentorMemoryMutation = useDeleteMentorMemoryMutation;
|
|
@@ -45927,6 +46254,7 @@ exports.useGetChatHistoryFilterQuery = useGetChatHistoryFilterQuery;
|
|
|
45927
46254
|
exports.useGetChatHistoryQuery = useGetChatHistoryQuery;
|
|
45928
46255
|
exports.useGetChatMessageTtsQuery = useGetChatMessageTtsQuery;
|
|
45929
46256
|
exports.useGetChatMessagesForSessionQuery = useGetChatMessagesForSessionQuery;
|
|
46257
|
+
exports.useGetChatPrivacyEffectiveQuery = useGetChatPrivacyEffectiveQuery;
|
|
45930
46258
|
exports.useGetClawInstanceQuery = useGetClawInstanceQuery;
|
|
45931
46259
|
exports.useGetClawInstancesQuery = useGetClawInstancesQuery;
|
|
45932
46260
|
exports.useGetClawMentorConfigQuery = useGetClawMentorConfigQuery;
|
|
@@ -45951,7 +46279,6 @@ exports.useGetDepartmentMemberCheckQuery = useGetDepartmentMemberCheckQuery;
|
|
|
45951
46279
|
exports.useGetDesiredSkillsQuery = useGetDesiredSkillsQuery;
|
|
45952
46280
|
exports.useGetDetailedFinancialStatsQuery = useGetDetailedFinancialStatsQuery;
|
|
45953
46281
|
exports.useGetDisclaimersQuery = useGetDisclaimersQuery;
|
|
45954
|
-
exports.useGetDownloadReportFromURLQuery = useGetDownloadReportFromURLQuery;
|
|
45955
46282
|
exports.useGetEdxSSOTokenQuery = useGetEdxSSOTokenQuery;
|
|
45956
46283
|
exports.useGetEnrollmentCourseSearchQuery = useGetEnrollmentCourseSearchQuery;
|
|
45957
46284
|
exports.useGetExamInfoQuery = useGetExamInfoQuery;
|
|
@@ -45966,7 +46293,14 @@ exports.useGetIntegrationCredentialsSchemaQuery = useGetIntegrationCredentialsSc
|
|
|
45966
46293
|
exports.useGetIssuersQuery = useGetIssuersQuery;
|
|
45967
46294
|
exports.useGetItemSubscriptionQuery = useGetItemSubscriptionQuery;
|
|
45968
46295
|
exports.useGetLLMCredentialsQuery = useGetLLMCredentialsQuery;
|
|
46296
|
+
exports.useGetLearnerDetailsQuery = useGetLearnerDetailsQuery;
|
|
45969
46297
|
exports.useGetLlmsQuery = useGetLlmsQuery;
|
|
46298
|
+
exports.useGetLtiKeyDetailQuery = useGetLtiKeyDetailQuery;
|
|
46299
|
+
exports.useGetLtiKeysQuery = useGetLtiKeysQuery;
|
|
46300
|
+
exports.useGetLtiMentorDetailQuery = useGetLtiMentorDetailQuery;
|
|
46301
|
+
exports.useGetLtiMentorsQuery = useGetLtiMentorsQuery;
|
|
46302
|
+
exports.useGetLtiToolDetailQuery = useGetLtiToolDetailQuery;
|
|
46303
|
+
exports.useGetLtiToolsQuery = useGetLtiToolsQuery;
|
|
45970
46304
|
exports.useGetMCPServerConnectionsQuery = useGetMCPServerConnectionsQuery;
|
|
45971
46305
|
exports.useGetMCPServerQuery = useGetMCPServerQuery;
|
|
45972
46306
|
exports.useGetMCPServersQuery = useGetMCPServersQuery;
|
|
@@ -46025,6 +46359,7 @@ exports.useGetPublicMentorsQuery = useGetPublicMentorsQuery;
|
|
|
46025
46359
|
exports.useGetPublicPlatformImageAssetFileUrlQuery = useGetPublicPlatformImageAssetFileUrlQuery;
|
|
46026
46360
|
exports.useGetPublicPlatformMembershipQuery = useGetPublicPlatformMembershipQuery;
|
|
46027
46361
|
exports.useGetPublicPricingQuery = useGetPublicPricingQuery;
|
|
46362
|
+
exports.useGetRbacActionsDefinitionQuery = useGetRbacActionsDefinitionQuery;
|
|
46028
46363
|
exports.useGetRbacGroupDetailsQuery = useGetRbacGroupDetailsQuery;
|
|
46029
46364
|
exports.useGetRbacGroupsQuery = useGetRbacGroupsQuery;
|
|
46030
46365
|
exports.useGetRbacMentorAccessListQuery = useGetRbacMentorAccessListQuery;
|
|
@@ -46035,6 +46370,7 @@ exports.useGetRbacRoleDetailsQuery = useGetRbacRoleDetailsQuery;
|
|
|
46035
46370
|
exports.useGetRbacRolesQuery = useGetRbacRolesQuery;
|
|
46036
46371
|
exports.useGetRbacTeamsAccessListQuery = useGetRbacTeamsAccessListQuery;
|
|
46037
46372
|
exports.useGetRecentMessageQuery = useGetRecentMessageQuery;
|
|
46373
|
+
exports.useGetRecentMessagesInfiniteQuery = useGetRecentMessagesInfiniteQuery;
|
|
46038
46374
|
exports.useGetRecentlyAccessedMentorsQuery = useGetRecentlyAccessedMentorsQuery;
|
|
46039
46375
|
exports.useGetRecommendationsAiSearchQuery = useGetRecommendationsAiSearchQuery;
|
|
46040
46376
|
exports.useGetRecommendedPromptsListQuery = useGetRecommendedPromptsListQuery;
|
|
@@ -46057,6 +46393,7 @@ exports.useGetStripePricingPageSessionQuery = useGetStripePricingPageSessionQuer
|
|
|
46057
46393
|
exports.useGetStudentMentorCreationStatusQuery = useGetStudentMentorCreationStatusQuery;
|
|
46058
46394
|
exports.useGetTemplateDetailsQuery = useGetTemplateDetailsQuery;
|
|
46059
46395
|
exports.useGetTemplatesQuery = useGetTemplatesQuery;
|
|
46396
|
+
exports.useGetTenantChatPrivacyConfigQuery = useGetTenantChatPrivacyConfigQuery;
|
|
46060
46397
|
exports.useGetTenantMetadataQuery = useGetTenantMetadataQuery;
|
|
46061
46398
|
exports.useGetToolsQuery = useGetToolsQuery;
|
|
46062
46399
|
exports.useGetTopStudentsByChatMessagesQuery = useGetTopStudentsByChatMessagesQuery;
|
|
@@ -46074,6 +46411,7 @@ exports.useGetUserAppsQuery = useGetUserAppsQuery;
|
|
|
46074
46411
|
exports.useGetUserAssignedCoursesQuery = useGetUserAssignedCoursesQuery;
|
|
46075
46412
|
exports.useGetUserAssignedPathwaysQuery = useGetUserAssignedPathwaysQuery;
|
|
46076
46413
|
exports.useGetUserCatalogPathwaysQuery = useGetUserCatalogPathwaysQuery;
|
|
46414
|
+
exports.useGetUserChatPrivacySettingsQuery = useGetUserChatPrivacySettingsQuery;
|
|
46077
46415
|
exports.useGetUserCohortsOverTimeQuery = useGetUserCohortsOverTimeQuery;
|
|
46078
46416
|
exports.useGetUserCompaniesQuery = useGetUserCompaniesQuery;
|
|
46079
46417
|
exports.useGetUserCredentialsQuery = useGetUserCredentialsQuery;
|
|
@@ -46138,6 +46476,7 @@ exports.useLazyGetChatHistoryFilterQuery = useLazyGetChatHistoryFilterQuery;
|
|
|
46138
46476
|
exports.useLazyGetChatHistoryQuery = useLazyGetChatHistoryQuery;
|
|
46139
46477
|
exports.useLazyGetChatMessageTtsQuery = useLazyGetChatMessageTtsQuery;
|
|
46140
46478
|
exports.useLazyGetChatMessagesForSessionQuery = useLazyGetChatMessagesForSessionQuery;
|
|
46479
|
+
exports.useLazyGetChatPrivacyEffectiveQuery = useLazyGetChatPrivacyEffectiveQuery;
|
|
46141
46480
|
exports.useLazyGetClawInstanceQuery = useLazyGetClawInstanceQuery;
|
|
46142
46481
|
exports.useLazyGetClawInstancesQuery = useLazyGetClawInstancesQuery;
|
|
46143
46482
|
exports.useLazyGetClawMentorConfigQuery = useLazyGetClawMentorConfigQuery;
|
|
@@ -46172,6 +46511,7 @@ exports.useLazyGetIssuersQuery = useLazyGetIssuersQuery;
|
|
|
46172
46511
|
exports.useLazyGetItemSubscriptionQuery = useLazyGetItemSubscriptionQuery;
|
|
46173
46512
|
exports.useLazyGetLLMCredentialsQuery = useLazyGetLLMCredentialsQuery;
|
|
46174
46513
|
exports.useLazyGetLlmsQuery = useLazyGetLlmsQuery;
|
|
46514
|
+
exports.useLazyGetLtiKeyDetailQuery = useLazyGetLtiKeyDetailQuery;
|
|
46175
46515
|
exports.useLazyGetMCPServerQuery = useLazyGetMCPServerQuery;
|
|
46176
46516
|
exports.useLazyGetMCPServersQuery = useLazyGetMCPServersQuery;
|
|
46177
46517
|
exports.useLazyGetMemoryCategoriesAdminQuery = useLazyGetMemoryCategoriesAdminQuery;
|
|
@@ -46219,6 +46559,7 @@ exports.useLazyGetPublicMentorsQuery = useLazyGetPublicMentorsQuery;
|
|
|
46219
46559
|
exports.useLazyGetPublicPlatformImageAssetFileUrlQuery = useLazyGetPublicPlatformImageAssetFileUrlQuery;
|
|
46220
46560
|
exports.useLazyGetPublicPlatformMembershipQuery = useLazyGetPublicPlatformMembershipQuery;
|
|
46221
46561
|
exports.useLazyGetPublicPricingQuery = useLazyGetPublicPricingQuery;
|
|
46562
|
+
exports.useLazyGetRbacActionsDefinitionQuery = useLazyGetRbacActionsDefinitionQuery;
|
|
46222
46563
|
exports.useLazyGetRbacRolesQuery = useLazyGetRbacRolesQuery;
|
|
46223
46564
|
exports.useLazyGetRbacTeamsAccessListQuery = useLazyGetRbacTeamsAccessListQuery;
|
|
46224
46565
|
exports.useLazyGetRecentMessageQuery = useLazyGetRecentMessageQuery;
|
|
@@ -46241,6 +46582,7 @@ exports.useLazyGetStripeContextQuery = useLazyGetStripeContextQuery;
|
|
|
46241
46582
|
exports.useLazyGetStripePricingPageSessionQuery = useLazyGetStripePricingPageSessionQuery;
|
|
46242
46583
|
exports.useLazyGetTemplateDetailsQuery = useLazyGetTemplateDetailsQuery;
|
|
46243
46584
|
exports.useLazyGetTemplatesQuery = useLazyGetTemplatesQuery;
|
|
46585
|
+
exports.useLazyGetTenantChatPrivacyConfigQuery = useLazyGetTenantChatPrivacyConfigQuery;
|
|
46244
46586
|
exports.useLazyGetTenantMetadataQuery = useLazyGetTenantMetadataQuery;
|
|
46245
46587
|
exports.useLazyGetToolsQuery = useLazyGetToolsQuery;
|
|
46246
46588
|
exports.useLazyGetTrainingDocumentRetrainScheduleQuery = useLazyGetTrainingDocumentRetrainScheduleQuery;
|
|
@@ -46249,6 +46591,7 @@ exports.useLazyGetUserAppsQuery = useLazyGetUserAppsQuery;
|
|
|
46249
46591
|
exports.useLazyGetUserAssignedCoursesQuery = useLazyGetUserAssignedCoursesQuery;
|
|
46250
46592
|
exports.useLazyGetUserAssignedPathwaysQuery = useLazyGetUserAssignedPathwaysQuery;
|
|
46251
46593
|
exports.useLazyGetUserCatalogPathwaysQuery = useLazyGetUserCatalogPathwaysQuery;
|
|
46594
|
+
exports.useLazyGetUserChatPrivacySettingsQuery = useLazyGetUserChatPrivacySettingsQuery;
|
|
46252
46595
|
exports.useLazyGetUserCompaniesQuery = useLazyGetUserCompaniesQuery;
|
|
46253
46596
|
exports.useLazyGetUserCredentialsQuery = useLazyGetUserCredentialsQuery;
|
|
46254
46597
|
exports.useLazyGetUserDesiredSkillsQuery = useLazyGetUserDesiredSkillsQuery;
|
|
@@ -46348,6 +46691,9 @@ exports.useUpdateCredentialMutation = useUpdateCredentialMutation;
|
|
|
46348
46691
|
exports.useUpdateDisclaimerMutation = useUpdateDisclaimerMutation;
|
|
46349
46692
|
exports.useUpdateExamAttemptMutation = useUpdateExamAttemptMutation;
|
|
46350
46693
|
exports.useUpdateIntegrationCredentialMutation = useUpdateIntegrationCredentialMutation;
|
|
46694
|
+
exports.useUpdateLtiKeyMutation = useUpdateLtiKeyMutation;
|
|
46695
|
+
exports.useUpdateLtiMentorMutation = useUpdateLtiMentorMutation;
|
|
46696
|
+
exports.useUpdateLtiToolMutation = useUpdateLtiToolMutation;
|
|
46351
46697
|
exports.useUpdateMCPServerMutation = useUpdateMCPServerMutation;
|
|
46352
46698
|
exports.useUpdateMemoryCategoryMutation = useUpdateMemoryCategoryMutation;
|
|
46353
46699
|
exports.useUpdateMemsearchConfigMutation = useUpdateMemsearchConfigMutation;
|
|
@@ -46368,10 +46714,13 @@ exports.useUpdateRbacMentorAccessMutation = useUpdateRbacMentorAccessMutation;
|
|
|
46368
46714
|
exports.useUpdateRbacPolicyMutation = useUpdateRbacPolicyMutation;
|
|
46369
46715
|
exports.useUpdateRbacRoleMutation = useUpdateRbacRoleMutation;
|
|
46370
46716
|
exports.useUpdateRecommendedPromptMutation = useUpdateRecommendedPromptMutation;
|
|
46717
|
+
exports.useUpdateSessionDisableChathistoryMutation = useUpdateSessionDisableChathistoryMutation;
|
|
46371
46718
|
exports.useUpdateShareableLinkMutation = useUpdateShareableLinkMutation;
|
|
46372
46719
|
exports.useUpdateTemplateMutation = useUpdateTemplateMutation;
|
|
46720
|
+
exports.useUpdateTenantChatPrivacyConfigMutation = useUpdateTenantChatPrivacyConfigMutation;
|
|
46373
46721
|
exports.useUpdateTenantMetadataMutation = useUpdateTenantMetadataMutation;
|
|
46374
46722
|
exports.useUpdateUserAccountMutation = useUpdateUserAccountMutation;
|
|
46723
|
+
exports.useUpdateUserChatPrivacySettingsMutation = useUpdateUserChatPrivacySettingsMutation;
|
|
46375
46724
|
exports.useUpdateUserEducationMutation = useUpdateUserEducationMutation;
|
|
46376
46725
|
exports.useUpdateUserExperienceMutation = useUpdateUserExperienceMutation;
|
|
46377
46726
|
exports.useUpdateUserMemorySettingsMutation = useUpdateUserMemorySettingsMutation;
|