@iblai/data-layer 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -42727,6 +42727,7 @@ const MEMORY_QUERY_KEYS = {
42727
42727
  MEMSEARCH_MENTOR_MEMORIES: () => ['MEMSEARCH_MENTOR_MEMORIES'],
42728
42728
  MEMSEARCH_MEMORY_CATEGORIES: () => ['MEMSEARCH_MEMORY_CATEGORIES'],
42729
42729
  MEMSEARCH_PLATFORM_CONFIG: () => ['MEMSEARCH_PLATFORM_CONFIG'],
42730
+ MEMSEARCH_STATUS: () => ['MEMSEARCH_STATUS'],
42730
42731
  };
42731
42732
  const MEMSEARCH_ENDPOINTS = {
42732
42733
  // User Memory Settings
@@ -42794,6 +42795,11 @@ const MEMSEARCH_ENDPOINTS = {
42794
42795
  service: exports.SERVICES.AXD,
42795
42796
  path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/memsearch-config/`,
42796
42797
  },
42798
+ // Memsearch Status (available to students and admins)
42799
+ GET_MEMSEARCH_STATUS: {
42800
+ service: exports.SERVICES.AXD,
42801
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/memsearch-status/`,
42802
+ },
42797
42803
  };
42798
42804
 
42799
42805
  const memoryApiSlice = react.createApi({
@@ -42804,6 +42810,7 @@ const memoryApiSlice = react.createApi({
42804
42810
  ...MEMORY_QUERY_KEYS.MEMSEARCH_MENTOR_MEMORIES(),
42805
42811
  ...MEMORY_QUERY_KEYS.MEMSEARCH_MEMORY_CATEGORIES(),
42806
42812
  ...MEMORY_QUERY_KEYS.MEMSEARCH_PLATFORM_CONFIG(),
42813
+ ...MEMORY_QUERY_KEYS.MEMSEARCH_STATUS(),
42807
42814
  ],
42808
42815
  baseQuery: iblFetchBaseQuery,
42809
42816
  endpoints: (builder) => ({
@@ -42936,9 +42943,17 @@ const memoryApiSlice = react.createApi({
42936
42943
  }),
42937
42944
  invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_PLATFORM_CONFIG(),
42938
42945
  }),
42946
+ // Memsearch Status (student + admin accessible)
42947
+ getMemsearchStatus: builder.query({
42948
+ query: (args) => ({
42949
+ url: MEMSEARCH_ENDPOINTS.GET_MEMSEARCH_STATUS.path(args.org, args.userId),
42950
+ service: MEMSEARCH_ENDPOINTS.GET_MEMSEARCH_STATUS.service,
42951
+ }),
42952
+ providesTags: MEMORY_QUERY_KEYS.MEMSEARCH_STATUS(),
42953
+ }),
42939
42954
  }),
42940
42955
  });
42941
- const { useGetUserMemorySettingsQuery, useLazyGetUserMemorySettingsQuery, useUpdateUserMemorySettingsMutation, useGetGlobalMemoriesQuery, useLazyGetGlobalMemoriesQuery, useCreateGlobalMemoryMutation, useDeleteGlobalMemoryMutation, useGetMentorMemoriesQuery, useLazyGetMentorMemoriesQuery, useCreateMentorMemoryMutation, useUpdateMentorMemoryMutation, useDeleteMentorMemoryMutation, useGetMemoryCategoriesAdminQuery, useLazyGetMemoryCategoriesAdminQuery, useCreateMemoryCategoryMutation, useUpdateMemoryCategoryMutation, useDeleteMemoryCategoryMutation, useGetMemsearchConfigQuery, useLazyGetMemsearchConfigQuery, useUpdateMemsearchConfigMutation, } = memoryApiSlice;
42956
+ const { useGetUserMemorySettingsQuery, useLazyGetUserMemorySettingsQuery, useUpdateUserMemorySettingsMutation, useGetGlobalMemoriesQuery, useLazyGetGlobalMemoriesQuery, useCreateGlobalMemoryMutation, useDeleteGlobalMemoryMutation, useGetMentorMemoriesQuery, useLazyGetMentorMemoriesQuery, useCreateMentorMemoryMutation, useUpdateMentorMemoryMutation, useDeleteMentorMemoryMutation, useGetMemoryCategoriesAdminQuery, useLazyGetMemoryCategoriesAdminQuery, useCreateMemoryCategoryMutation, useUpdateMemoryCategoryMutation, useDeleteMemoryCategoryMutation, useGetMemsearchConfigQuery, useLazyGetMemsearchConfigQuery, useUpdateMemsearchConfigMutation, useGetMemsearchStatusQuery, useLazyGetMemsearchStatusQuery, } = memoryApiSlice;
42942
42957
 
42943
42958
  const MCP_REDUCER_PATH = 'mcpApiSlice';
42944
42959
  const MCP_ENDPOINTS = {
@@ -44415,6 +44430,7 @@ exports.useGetMaskedIntegrationCredentialsQuery = useGetMaskedIntegrationCredent
44415
44430
  exports.useGetMaskedLLMCredentialsQuery = useGetMaskedLLMCredentialsQuery;
44416
44431
  exports.useGetMemoryCategoriesAdminQuery = useGetMemoryCategoriesAdminQuery;
44417
44432
  exports.useGetMemsearchConfigQuery = useGetMemsearchConfigQuery;
44433
+ exports.useGetMemsearchStatusQuery = useGetMemsearchStatusQuery;
44418
44434
  exports.useGetMentorCategoriesQuery = useGetMentorCategoriesQuery;
44419
44435
  exports.useGetMentorCategoryGroupsQuery = useGetMentorCategoryGroupsQuery;
44420
44436
  exports.useGetMentorDetailsQuery = useGetMentorDetailsQuery;
@@ -44589,6 +44605,7 @@ exports.useLazyGetMCPServerQuery = useLazyGetMCPServerQuery;
44589
44605
  exports.useLazyGetMCPServersQuery = useLazyGetMCPServersQuery;
44590
44606
  exports.useLazyGetMemoryCategoriesAdminQuery = useLazyGetMemoryCategoriesAdminQuery;
44591
44607
  exports.useLazyGetMemsearchConfigQuery = useLazyGetMemsearchConfigQuery;
44608
+ exports.useLazyGetMemsearchStatusQuery = useLazyGetMemsearchStatusQuery;
44592
44609
  exports.useLazyGetMentorCategoriesQuery = useLazyGetMentorCategoriesQuery;
44593
44610
  exports.useLazyGetMentorCategoryGroupsQuery = useLazyGetMentorCategoryGroupsQuery;
44594
44611
  exports.useLazyGetMentorDetailsQuery = useLazyGetMentorDetailsQuery;