@iblai/data-layer 1.8.8 → 1.8.9
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 +3075 -202
- package/dist/index.esm.js +103 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +118 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/core/api-slice.d.ts +3058 -201
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40433,6 +40433,9 @@ const coreApiSlice = react.createApi({
|
|
|
40433
40433
|
'RbacPolicies',
|
|
40434
40434
|
'RbacRoles',
|
|
40435
40435
|
'RbacTeamsAccess',
|
|
40436
|
+
'LtiKeys',
|
|
40437
|
+
'LtiMentors',
|
|
40438
|
+
'LtiTools',
|
|
40436
40439
|
],
|
|
40437
40440
|
endpoints: (builder) => ({
|
|
40438
40441
|
createRedirectToken: builder.mutation({
|
|
@@ -40717,9 +40720,107 @@ const coreApiSlice = react.createApi({
|
|
|
40717
40720
|
...buildEndpointFromDmService(CoreService.coreRbacTeamsAccessCreate),
|
|
40718
40721
|
invalidatesTags: ['RbacTeamsAccess'],
|
|
40719
40722
|
}),
|
|
40723
|
+
// ── LTI 1.3 Provider: Keys (platform-wide RSA signing keys) ──
|
|
40724
|
+
getLtiKeys: builder.query({
|
|
40725
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysList),
|
|
40726
|
+
providesTags: ['LtiKeys'],
|
|
40727
|
+
}),
|
|
40728
|
+
getLtiKeyDetail: builder.query({
|
|
40729
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysRetrieve),
|
|
40730
|
+
providesTags: ['LtiKeys'],
|
|
40731
|
+
}),
|
|
40732
|
+
createLtiKey: builder.mutation({
|
|
40733
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysCreate),
|
|
40734
|
+
invalidatesTags: ['LtiKeys'],
|
|
40735
|
+
}),
|
|
40736
|
+
updateLtiKey: builder.mutation({
|
|
40737
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysUpdate),
|
|
40738
|
+
invalidatesTags: ['LtiKeys'],
|
|
40739
|
+
}),
|
|
40740
|
+
deleteLtiKey: builder.mutation({
|
|
40741
|
+
// Deleting a key that is still attached to a tool returns 400/409 — fail
|
|
40742
|
+
// fast and surface the message instead of retrying the request 5 times.
|
|
40743
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiKeysDestroy, {
|
|
40744
|
+
expectedErrorStatuses: [400, 409],
|
|
40745
|
+
}),
|
|
40746
|
+
invalidatesTags: ['LtiKeys'],
|
|
40747
|
+
}),
|
|
40748
|
+
// ── LTI 1.3 Provider: Agent (Mentor) Links ──
|
|
40749
|
+
// Custom call so we can pass the optional `mentor_id` query param (the
|
|
40750
|
+
// mentor's unique_id) and let the backend scope the list to one agent.
|
|
40751
|
+
// The generated CoreService.coreLti1P3ProviderLtiMentorsList only sends
|
|
40752
|
+
// platform_key.
|
|
40753
|
+
getLtiMentors: builder.query({
|
|
40754
|
+
...buildEndpointFromService(exports.SERVICES.DM, async (args) => {
|
|
40755
|
+
const queryParams = new URLSearchParams({ platform_key: args.platformKey });
|
|
40756
|
+
if (args.mentorId)
|
|
40757
|
+
queryParams.set('mentor_id', args.mentorId);
|
|
40758
|
+
const url = `${OpenAPI.BASE}/api/core/lti/1p3/provider/lti-mentors/?${queryParams.toString()}`;
|
|
40759
|
+
const response = await fetch(url, {
|
|
40760
|
+
method: 'GET',
|
|
40761
|
+
headers: OpenAPI.HEADERS,
|
|
40762
|
+
credentials: 'omit',
|
|
40763
|
+
});
|
|
40764
|
+
if (!response.ok) {
|
|
40765
|
+
throw Object.assign(new Error('Failed to fetch LTI mentors'), {
|
|
40766
|
+
status: response.status,
|
|
40767
|
+
body: await response.text(),
|
|
40768
|
+
});
|
|
40769
|
+
}
|
|
40770
|
+
return response.json();
|
|
40771
|
+
}),
|
|
40772
|
+
providesTags: ['LtiMentors'],
|
|
40773
|
+
}),
|
|
40774
|
+
getLtiMentorDetail: builder.query({
|
|
40775
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsRetrieve),
|
|
40776
|
+
providesTags: ['LtiMentors'],
|
|
40777
|
+
}),
|
|
40778
|
+
createLtiMentor: builder.mutation({
|
|
40779
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsCreate),
|
|
40780
|
+
invalidatesTags: ['LtiMentors'],
|
|
40781
|
+
}),
|
|
40782
|
+
updateLtiMentor: builder.mutation({
|
|
40783
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsUpdate),
|
|
40784
|
+
invalidatesTags: ['LtiMentors'],
|
|
40785
|
+
}),
|
|
40786
|
+
deleteLtiMentor: builder.mutation({
|
|
40787
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiMentorsDestroy, {
|
|
40788
|
+
expectedErrorStatuses: [400, 409],
|
|
40789
|
+
}),
|
|
40790
|
+
invalidatesTags: ['LtiMentors'],
|
|
40791
|
+
}),
|
|
40792
|
+
// ── LTI 1.3 Provider: Tools (platform-wide LTI Platform integrations) ──
|
|
40793
|
+
getLtiTools: builder.query({
|
|
40794
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsList),
|
|
40795
|
+
providesTags: ['LtiTools'],
|
|
40796
|
+
}),
|
|
40797
|
+
getLtiToolDetail: builder.query({
|
|
40798
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsRetrieve),
|
|
40799
|
+
providesTags: ['LtiTools'],
|
|
40800
|
+
}),
|
|
40801
|
+
createLtiTool: builder.mutation({
|
|
40802
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsCreate),
|
|
40803
|
+
invalidatesTags: ['LtiTools'],
|
|
40804
|
+
}),
|
|
40805
|
+
updateLtiTool: builder.mutation({
|
|
40806
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsUpdate),
|
|
40807
|
+
invalidatesTags: ['LtiTools'],
|
|
40808
|
+
}),
|
|
40809
|
+
deleteLtiTool: builder.mutation({
|
|
40810
|
+
...buildEndpointFromDmService(CoreService.coreLti1P3ProviderLtiToolsDestroy, {
|
|
40811
|
+
expectedErrorStatuses: [400, 409],
|
|
40812
|
+
}),
|
|
40813
|
+
invalidatesTags: ['LtiTools'],
|
|
40814
|
+
}),
|
|
40720
40815
|
}),
|
|
40721
40816
|
});
|
|
40722
|
-
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,
|
|
40817
|
+
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,
|
|
40818
|
+
// LTI Keys
|
|
40819
|
+
useGetLtiKeysQuery, useGetLtiKeyDetailQuery, useLazyGetLtiKeyDetailQuery, useCreateLtiKeyMutation, useUpdateLtiKeyMutation, useDeleteLtiKeyMutation,
|
|
40820
|
+
// LTI Agent (Mentor) Links
|
|
40821
|
+
useGetLtiMentorsQuery, useGetLtiMentorDetailQuery, useCreateLtiMentorMutation, useUpdateLtiMentorMutation, useDeleteLtiMentorMutation,
|
|
40822
|
+
// LTI Tools
|
|
40823
|
+
useGetLtiToolsQuery, useGetLtiToolDetailQuery, useCreateLtiToolMutation, useUpdateLtiToolMutation, useDeleteLtiToolMutation, } = coreApiSlice;
|
|
40723
40824
|
|
|
40724
40825
|
const LOGO_ENDPOINTS = {
|
|
40725
40826
|
light_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo`,
|
|
@@ -45976,6 +46077,9 @@ exports.useCreateGlobalMemoryMutation = useCreateGlobalMemoryMutation;
|
|
|
45976
46077
|
exports.useCreateGuestCheckoutMutation = useCreateGuestCheckoutMutation;
|
|
45977
46078
|
exports.useCreateIntegrationCredentialMutation = useCreateIntegrationCredentialMutation;
|
|
45978
46079
|
exports.useCreateLLMCredentialMutation = useCreateLLMCredentialMutation;
|
|
46080
|
+
exports.useCreateLtiKeyMutation = useCreateLtiKeyMutation;
|
|
46081
|
+
exports.useCreateLtiMentorMutation = useCreateLtiMentorMutation;
|
|
46082
|
+
exports.useCreateLtiToolMutation = useCreateLtiToolMutation;
|
|
45979
46083
|
exports.useCreateMCPServerConnectionMutation = useCreateMCPServerConnectionMutation;
|
|
45980
46084
|
exports.useCreateMCPServerMutation = useCreateMCPServerMutation;
|
|
45981
46085
|
exports.useCreateMemoryCategoryMutation = useCreateMemoryCategoryMutation;
|
|
@@ -46026,6 +46130,9 @@ exports.useDeleteDisclaimerMutation = useDeleteDisclaimerMutation;
|
|
|
46026
46130
|
exports.useDeleteExternalMappingMutation = useDeleteExternalMappingMutation;
|
|
46027
46131
|
exports.useDeleteGlobalMemoryMutation = useDeleteGlobalMemoryMutation;
|
|
46028
46132
|
exports.useDeleteIntegrationCredentialMutation = useDeleteIntegrationCredentialMutation;
|
|
46133
|
+
exports.useDeleteLtiKeyMutation = useDeleteLtiKeyMutation;
|
|
46134
|
+
exports.useDeleteLtiMentorMutation = useDeleteLtiMentorMutation;
|
|
46135
|
+
exports.useDeleteLtiToolMutation = useDeleteLtiToolMutation;
|
|
46029
46136
|
exports.useDeleteMCPServerMutation = useDeleteMCPServerMutation;
|
|
46030
46137
|
exports.useDeleteMemoryCategoryMutation = useDeleteMemoryCategoryMutation;
|
|
46031
46138
|
exports.useDeleteMentorMemoryMutation = useDeleteMentorMemoryMutation;
|
|
@@ -46131,6 +46238,12 @@ exports.useGetItemSubscriptionQuery = useGetItemSubscriptionQuery;
|
|
|
46131
46238
|
exports.useGetLLMCredentialsQuery = useGetLLMCredentialsQuery;
|
|
46132
46239
|
exports.useGetLearnerDetailsQuery = useGetLearnerDetailsQuery;
|
|
46133
46240
|
exports.useGetLlmsQuery = useGetLlmsQuery;
|
|
46241
|
+
exports.useGetLtiKeyDetailQuery = useGetLtiKeyDetailQuery;
|
|
46242
|
+
exports.useGetLtiKeysQuery = useGetLtiKeysQuery;
|
|
46243
|
+
exports.useGetLtiMentorDetailQuery = useGetLtiMentorDetailQuery;
|
|
46244
|
+
exports.useGetLtiMentorsQuery = useGetLtiMentorsQuery;
|
|
46245
|
+
exports.useGetLtiToolDetailQuery = useGetLtiToolDetailQuery;
|
|
46246
|
+
exports.useGetLtiToolsQuery = useGetLtiToolsQuery;
|
|
46134
46247
|
exports.useGetMCPServerConnectionsQuery = useGetMCPServerConnectionsQuery;
|
|
46135
46248
|
exports.useGetMCPServerQuery = useGetMCPServerQuery;
|
|
46136
46249
|
exports.useGetMCPServersQuery = useGetMCPServersQuery;
|
|
@@ -46340,6 +46453,7 @@ exports.useLazyGetIssuersQuery = useLazyGetIssuersQuery;
|
|
|
46340
46453
|
exports.useLazyGetItemSubscriptionQuery = useLazyGetItemSubscriptionQuery;
|
|
46341
46454
|
exports.useLazyGetLLMCredentialsQuery = useLazyGetLLMCredentialsQuery;
|
|
46342
46455
|
exports.useLazyGetLlmsQuery = useLazyGetLlmsQuery;
|
|
46456
|
+
exports.useLazyGetLtiKeyDetailQuery = useLazyGetLtiKeyDetailQuery;
|
|
46343
46457
|
exports.useLazyGetMCPServerQuery = useLazyGetMCPServerQuery;
|
|
46344
46458
|
exports.useLazyGetMCPServersQuery = useLazyGetMCPServersQuery;
|
|
46345
46459
|
exports.useLazyGetMemoryCategoriesAdminQuery = useLazyGetMemoryCategoriesAdminQuery;
|
|
@@ -46519,6 +46633,9 @@ exports.useUpdateCredentialMutation = useUpdateCredentialMutation;
|
|
|
46519
46633
|
exports.useUpdateDisclaimerMutation = useUpdateDisclaimerMutation;
|
|
46520
46634
|
exports.useUpdateExamAttemptMutation = useUpdateExamAttemptMutation;
|
|
46521
46635
|
exports.useUpdateIntegrationCredentialMutation = useUpdateIntegrationCredentialMutation;
|
|
46636
|
+
exports.useUpdateLtiKeyMutation = useUpdateLtiKeyMutation;
|
|
46637
|
+
exports.useUpdateLtiMentorMutation = useUpdateLtiMentorMutation;
|
|
46638
|
+
exports.useUpdateLtiToolMutation = useUpdateLtiToolMutation;
|
|
46522
46639
|
exports.useUpdateMCPServerMutation = useUpdateMCPServerMutation;
|
|
46523
46640
|
exports.useUpdateMemoryCategoryMutation = useUpdateMemoryCategoryMutation;
|
|
46524
46641
|
exports.useUpdateMemsearchConfigMutation = useUpdateMemsearchConfigMutation;
|