@iblai/data-layer 1.2.3 → 1.2.4

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
@@ -42206,179 +42206,224 @@ const moderationLogsApiReducer = moderationLogsApiSlice.reducer;
42206
42206
  const { useGetModerationLogsQuery, useLazyGetModerationLogsQuery, useDeleteModerationLogMutation, } = moderationLogsApiSlice;
42207
42207
 
42208
42208
  const MEMORY_REDUCER_PATH = 'memoryApiSlice';
42209
- const MEMORY_ENDPOINTS = {
42210
- GET_MEMORIES: {
42209
+ const MEMORY_QUERY_KEYS = {
42210
+ MEMSEARCH_USER_SETTINGS: () => ['MEMSEARCH_USER_SETTINGS'],
42211
+ MEMSEARCH_GLOBAL_MEMORIES: () => ['MEMSEARCH_GLOBAL_MEMORIES'],
42212
+ MEMSEARCH_MENTOR_MEMORIES: () => ['MEMSEARCH_MENTOR_MEMORIES'],
42213
+ MEMSEARCH_MEMORY_CATEGORIES: () => ['MEMSEARCH_MEMORY_CATEGORIES'],
42214
+ MEMSEARCH_PLATFORM_CONFIG: () => ['MEMSEARCH_PLATFORM_CONFIG'],
42215
+ };
42216
+ const MEMSEARCH_ENDPOINTS = {
42217
+ // User Memory Settings
42218
+ GET_USER_SETTINGS: {
42211
42219
  service: exports.SERVICES.AXD,
42212
- path: (tenantKey, username) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memories/`,
42220
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/memsearch-settings/`,
42213
42221
  },
42214
- GET_MEMORY_CATEGORIES: {
42222
+ UPDATE_USER_SETTINGS: {
42215
42223
  service: exports.SERVICES.AXD,
42216
- path: (tenantKey, username) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memory-categories/`,
42224
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/memsearch-settings/`,
42217
42225
  },
42218
- GET_MENTOR_USER_SETTINGS: {
42226
+ // Global Memories
42227
+ GET_GLOBAL_MEMORIES: {
42219
42228
  service: exports.SERVICES.AXD,
42220
- path: (tenantKey, username, mentorId) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/mentors/${mentorId}/mentor-user-settings/`,
42229
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/global-memories/`,
42221
42230
  },
42222
- UPDATE_MENTOR_USER_SETTINGS: {
42231
+ CREATE_GLOBAL_MEMORY: {
42223
42232
  service: exports.SERVICES.AXD,
42224
- path: (tenantKey, username, mentorId) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/mentors/${mentorId}/mentor-user-settings/`,
42233
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/global-memories/`,
42225
42234
  },
42226
- DELETE_MEMORY: {
42235
+ DELETE_GLOBAL_MEMORY: {
42227
42236
  service: exports.SERVICES.AXD,
42228
- path: (tenantKey, username, memoryId) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memory-entries/${memoryId}/`,
42237
+ path: (org, userId, memoryId) => `/api/ai-mentor/orgs/${org}/users/${userId}/global-memories/${memoryId}/`,
42229
42238
  },
42230
- DELETE_MEMORY_BY_CATEGORY: {
42239
+ // Mentor-Specific Memories
42240
+ GET_MENTOR_MEMORIES: {
42231
42241
  service: exports.SERVICES.AXD,
42232
- path: (tenantKey, username, category) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memory-entries/${category}/`,
42242
+ path: (org, userId, mentorId) => `/api/ai-mentor/orgs/${org}/users/${userId}/mentors/${mentorId}/mentor-memories/`,
42233
42243
  },
42234
- UPDATE_MEMORY_ENTRY: {
42244
+ CREATE_MENTOR_MEMORY: {
42235
42245
  service: exports.SERVICES.AXD,
42236
- path: (tenantKey, username, entryId) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memory-entries/${entryId}/`,
42246
+ path: (org, userId, mentorId) => `/api/ai-mentor/orgs/${org}/users/${userId}/mentors/${mentorId}/mentor-memories/`,
42237
42247
  },
42238
- CREATE_MEMORY: {
42248
+ UPDATE_MENTOR_MEMORY: {
42239
42249
  service: exports.SERVICES.AXD,
42240
- path: (tenantKey, username) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memories/`,
42250
+ path: (org, userId, mentorId, memoryId) => `/api/ai-mentor/orgs/${org}/users/${userId}/mentors/${mentorId}/mentor-memories/${memoryId}/`,
42241
42251
  },
42242
- GET_MEMORY_FILTERS: {
42252
+ DELETE_MENTOR_MEMORY: {
42243
42253
  service: exports.SERVICES.AXD,
42244
- path: (tenantKey, username) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/memory-filter/`,
42254
+ path: (org, userId, mentorId, memoryId) => `/api/ai-mentor/orgs/${org}/users/${userId}/mentors/${mentorId}/mentor-memories/${memoryId}/`,
42245
42255
  },
42246
- GET_FILTERED_MEMORIES: {
42256
+ // Memory Categories (Admin)
42257
+ GET_MEMSEARCH_CATEGORIES: {
42247
42258
  service: exports.SERVICES.AXD,
42248
- path: (tenantKey, username) => `/api/ai-mentor/orgs/${tenantKey}/users/${username}/filtered-memories/`,
42259
+ path: (org, mentorId) => `/api/ai-mentor/orgs/${org}/mentors/${mentorId}/memory-categories/`,
42260
+ },
42261
+ CREATE_MEMSEARCH_CATEGORY: {
42262
+ service: exports.SERVICES.AXD,
42263
+ path: (org, mentorId) => `/api/ai-mentor/orgs/${org}/mentors/${mentorId}/memory-categories/`,
42264
+ },
42265
+ UPDATE_MEMSEARCH_CATEGORY: {
42266
+ service: exports.SERVICES.AXD,
42267
+ path: (org, mentorId, categoryId) => `/api/ai-mentor/orgs/${org}/mentors/${mentorId}/memory-categories/${categoryId}/`,
42268
+ },
42269
+ DELETE_MEMSEARCH_CATEGORY: {
42270
+ service: exports.SERVICES.AXD,
42271
+ path: (org, mentorId, categoryId) => `/api/ai-mentor/orgs/${org}/mentors/${mentorId}/memory-categories/${categoryId}/`,
42272
+ },
42273
+ // Platform Configuration
42274
+ GET_MEMSEARCH_CONFIG: {
42275
+ service: exports.SERVICES.AXD,
42276
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/memsearch-config/`,
42277
+ },
42278
+ UPDATE_MEMSEARCH_CONFIG: {
42279
+ service: exports.SERVICES.AXD,
42280
+ path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/memsearch-config/`,
42249
42281
  },
42250
- };
42251
- const MEMORY_QUERY_KEYS = {
42252
- GET_MEMORIES: () => ['MEMORIES'],
42253
- GET_MEMORY_CATEGORIES: () => ['MEMORY_CATEGORIES'],
42254
- GET_MENTOR_USER_SETTINGS: () => ['MENTOR_USER_SETTINGS'],
42255
- GET_FILTERED_MEMORIES: () => ['FILTERED_MEMORIES'],
42256
42282
  };
42257
42283
 
42258
42284
  const memoryApiSlice = react.createApi({
42259
42285
  reducerPath: MEMORY_REDUCER_PATH,
42260
42286
  tagTypes: [
42261
- ...MEMORY_QUERY_KEYS.GET_MEMORIES(),
42262
- ...MEMORY_QUERY_KEYS.GET_MEMORY_CATEGORIES(),
42263
- ...MEMORY_QUERY_KEYS.GET_MENTOR_USER_SETTINGS(),
42264
- ...MEMORY_QUERY_KEYS.GET_FILTERED_MEMORIES(),
42287
+ ...MEMORY_QUERY_KEYS.MEMSEARCH_USER_SETTINGS(),
42288
+ ...MEMORY_QUERY_KEYS.MEMSEARCH_GLOBAL_MEMORIES(),
42289
+ ...MEMORY_QUERY_KEYS.MEMSEARCH_MENTOR_MEMORIES(),
42290
+ ...MEMORY_QUERY_KEYS.MEMSEARCH_MEMORY_CATEGORIES(),
42291
+ ...MEMORY_QUERY_KEYS.MEMSEARCH_PLATFORM_CONFIG(),
42265
42292
  ],
42266
42293
  baseQuery: iblFetchBaseQuery,
42267
42294
  endpoints: (builder) => ({
42268
- getMemories: builder.query({
42269
- query: (args) => {
42270
- return {
42271
- url: MEMORY_ENDPOINTS.GET_MEMORIES.path(args.tenantKey, args.username),
42272
- params: args.params,
42273
- service: MEMORY_ENDPOINTS.GET_MEMORIES.service,
42274
- };
42275
- },
42276
- providesTags: MEMORY_QUERY_KEYS.GET_MEMORIES(),
42295
+ // User Memory Settings
42296
+ getUserMemorySettings: builder.query({
42297
+ query: (args) => ({
42298
+ url: MEMSEARCH_ENDPOINTS.GET_USER_SETTINGS.path(args.org, args.userId),
42299
+ service: MEMSEARCH_ENDPOINTS.GET_USER_SETTINGS.service,
42300
+ }),
42301
+ providesTags: MEMORY_QUERY_KEYS.MEMSEARCH_USER_SETTINGS(),
42277
42302
  }),
42278
- getMemoryCategories: builder.query({
42279
- query: (args) => {
42280
- return {
42281
- url: MEMORY_ENDPOINTS.GET_MEMORY_CATEGORIES.path(args.tenantKey, args.username),
42282
- service: MEMORY_ENDPOINTS.GET_MEMORY_CATEGORIES.service,
42283
- };
42284
- },
42285
- providesTags: MEMORY_QUERY_KEYS.GET_MEMORY_CATEGORIES(),
42303
+ updateUserMemorySettings: builder.mutation({
42304
+ query: (args) => ({
42305
+ url: MEMSEARCH_ENDPOINTS.UPDATE_USER_SETTINGS.path(args.org, args.userId),
42306
+ service: MEMSEARCH_ENDPOINTS.UPDATE_USER_SETTINGS.service,
42307
+ method: 'PUT',
42308
+ body: args.settings,
42309
+ }),
42310
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_USER_SETTINGS(),
42286
42311
  }),
42287
- getMentorUserSettings: builder.query({
42288
- query: (args) => {
42289
- return {
42290
- url: MEMORY_ENDPOINTS.GET_MENTOR_USER_SETTINGS.path(args.tenantKey, args.username, args.mentorId),
42291
- service: MEMORY_ENDPOINTS.GET_MENTOR_USER_SETTINGS.service,
42292
- };
42293
- },
42294
- providesTags: MEMORY_QUERY_KEYS.GET_MENTOR_USER_SETTINGS(),
42312
+ // Global Memories
42313
+ getGlobalMemories: builder.query({
42314
+ query: (args) => ({
42315
+ url: MEMSEARCH_ENDPOINTS.GET_GLOBAL_MEMORIES.path(args.org, args.userId),
42316
+ service: MEMSEARCH_ENDPOINTS.GET_GLOBAL_MEMORIES.service,
42317
+ params: args.params,
42318
+ }),
42319
+ providesTags: MEMORY_QUERY_KEYS.MEMSEARCH_GLOBAL_MEMORIES(),
42295
42320
  }),
42296
- updateMentorUserSettings: builder.mutation({
42297
- query: (args) => {
42298
- return {
42299
- url: MEMORY_ENDPOINTS.UPDATE_MENTOR_USER_SETTINGS.path(args.tenantKey, args.username, args.mentorId),
42300
- method: 'POST',
42301
- body: args.settings,
42302
- service: MEMORY_ENDPOINTS.UPDATE_MENTOR_USER_SETTINGS.service,
42303
- };
42304
- },
42305
- invalidatesTags: MEMORY_QUERY_KEYS.GET_MENTOR_USER_SETTINGS(),
42321
+ createGlobalMemory: builder.mutation({
42322
+ query: (args) => ({
42323
+ url: MEMSEARCH_ENDPOINTS.CREATE_GLOBAL_MEMORY.path(args.org, args.userId),
42324
+ service: MEMSEARCH_ENDPOINTS.CREATE_GLOBAL_MEMORY.service,
42325
+ method: 'POST',
42326
+ body: { content: args.content },
42327
+ }),
42328
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_GLOBAL_MEMORIES(),
42306
42329
  }),
42307
- deleteMemory: builder.mutation({
42308
- query: (args) => {
42309
- return {
42310
- url: MEMORY_ENDPOINTS.DELETE_MEMORY.path(args.tenantKey, args.username, args.memoryId),
42311
- method: 'DELETE',
42312
- service: MEMORY_ENDPOINTS.DELETE_MEMORY.service,
42313
- };
42314
- },
42315
- invalidatesTags: [
42316
- ...MEMORY_QUERY_KEYS.GET_MEMORIES(),
42317
- ...MEMORY_QUERY_KEYS.GET_FILTERED_MEMORIES(),
42318
- ],
42330
+ deleteGlobalMemory: builder.mutation({
42331
+ query: (args) => ({
42332
+ url: MEMSEARCH_ENDPOINTS.DELETE_GLOBAL_MEMORY.path(args.org, args.userId, args.memoryId),
42333
+ service: MEMSEARCH_ENDPOINTS.DELETE_GLOBAL_MEMORY.service,
42334
+ method: 'DELETE',
42335
+ }),
42336
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_GLOBAL_MEMORIES(),
42319
42337
  }),
42320
- deleteMemoryByCategory: builder.mutation({
42321
- query: (args) => {
42322
- return {
42323
- url: MEMORY_ENDPOINTS.DELETE_MEMORY_BY_CATEGORY.path(args.tenantKey, args.username, args.category),
42324
- method: 'DELETE',
42325
- service: MEMORY_ENDPOINTS.DELETE_MEMORY_BY_CATEGORY.service,
42326
- };
42327
- },
42328
- invalidatesTags: [
42329
- ...MEMORY_QUERY_KEYS.GET_MEMORIES(),
42330
- ...MEMORY_QUERY_KEYS.GET_FILTERED_MEMORIES(),
42331
- ],
42338
+ // Mentor-Specific Memories
42339
+ getMentorMemories: builder.query({
42340
+ query: (args) => ({
42341
+ url: MEMSEARCH_ENDPOINTS.GET_MENTOR_MEMORIES.path(args.org, args.userId, args.mentorId),
42342
+ service: MEMSEARCH_ENDPOINTS.GET_MENTOR_MEMORIES.service,
42343
+ params: args.params,
42344
+ }),
42345
+ providesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MENTOR_MEMORIES(),
42332
42346
  }),
42333
- updateMemoryEntry: builder.mutation({
42334
- query: (args) => {
42335
- return {
42336
- url: MEMORY_ENDPOINTS.UPDATE_MEMORY_ENTRY.path(args.tenantKey, args.username, args.entryId),
42337
- method: 'POST',
42338
- body: args.data,
42339
- service: MEMORY_ENDPOINTS.UPDATE_MEMORY_ENTRY.service,
42340
- };
42341
- },
42342
- invalidatesTags: [
42343
- ...MEMORY_QUERY_KEYS.GET_MEMORIES(),
42344
- ...MEMORY_QUERY_KEYS.GET_FILTERED_MEMORIES(),
42345
- ],
42347
+ createMentorMemory: builder.mutation({
42348
+ query: (args) => ({
42349
+ url: MEMSEARCH_ENDPOINTS.CREATE_MENTOR_MEMORY.path(args.org, args.userId, args.mentorId),
42350
+ service: MEMSEARCH_ENDPOINTS.CREATE_MENTOR_MEMORY.service,
42351
+ method: 'POST',
42352
+ body: args.data,
42353
+ }),
42354
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MENTOR_MEMORIES(),
42346
42355
  }),
42347
- createMemory: builder.mutation({
42348
- query: (args) => {
42349
- return {
42350
- url: MEMORY_ENDPOINTS.CREATE_MEMORY.path(args.tenantKey, args.username),
42351
- method: 'POST',
42352
- body: args.data,
42353
- service: MEMORY_ENDPOINTS.CREATE_MEMORY.service,
42354
- };
42355
- },
42356
- invalidatesTags: [
42357
- ...MEMORY_QUERY_KEYS.GET_MEMORIES(),
42358
- ...MEMORY_QUERY_KEYS.GET_FILTERED_MEMORIES(),
42359
- ],
42356
+ updateMentorMemory: builder.mutation({
42357
+ query: (args) => ({
42358
+ url: MEMSEARCH_ENDPOINTS.UPDATE_MENTOR_MEMORY.path(args.org, args.userId, args.mentorId, args.memoryId),
42359
+ service: MEMSEARCH_ENDPOINTS.UPDATE_MENTOR_MEMORY.service,
42360
+ method: 'PATCH',
42361
+ body: args.data,
42362
+ }),
42363
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MENTOR_MEMORIES(),
42360
42364
  }),
42361
- getMemoryFilters: builder.query({
42362
- query: (args) => {
42363
- return {
42364
- url: MEMORY_ENDPOINTS.GET_MEMORY_FILTERS.path(args.tenantKey, args.username),
42365
- service: MEMORY_ENDPOINTS.GET_MEMORY_FILTERS.service,
42366
- };
42367
- },
42365
+ deleteMentorMemory: builder.mutation({
42366
+ query: (args) => ({
42367
+ url: MEMSEARCH_ENDPOINTS.DELETE_MENTOR_MEMORY.path(args.org, args.userId, args.mentorId, args.memoryId),
42368
+ service: MEMSEARCH_ENDPOINTS.DELETE_MENTOR_MEMORY.service,
42369
+ method: 'DELETE',
42370
+ }),
42371
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MENTOR_MEMORIES(),
42368
42372
  }),
42369
- getFilteredMemories: builder.query({
42370
- query: (args) => {
42371
- return {
42372
- url: MEMORY_ENDPOINTS.GET_FILTERED_MEMORIES.path(args.tenantKey, args.username),
42373
- params: args.params,
42374
- service: MEMORY_ENDPOINTS.GET_FILTERED_MEMORIES.service,
42375
- };
42376
- },
42377
- providesTags: MEMORY_QUERY_KEYS.GET_FILTERED_MEMORIES(),
42373
+ // Memory Categories (Admin)
42374
+ getMemoryCategoriesAdmin: builder.query({
42375
+ query: (args) => ({
42376
+ url: MEMSEARCH_ENDPOINTS.GET_MEMSEARCH_CATEGORIES.path(args.org, args.mentorId),
42377
+ service: MEMSEARCH_ENDPOINTS.GET_MEMSEARCH_CATEGORIES.service,
42378
+ }),
42379
+ providesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MEMORY_CATEGORIES(),
42380
+ }),
42381
+ createMemoryCategory: builder.mutation({
42382
+ query: (args) => ({
42383
+ url: MEMSEARCH_ENDPOINTS.CREATE_MEMSEARCH_CATEGORY.path(args.org, args.mentorId),
42384
+ service: MEMSEARCH_ENDPOINTS.CREATE_MEMSEARCH_CATEGORY.service,
42385
+ method: 'POST',
42386
+ body: args.data,
42387
+ }),
42388
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MEMORY_CATEGORIES(),
42389
+ }),
42390
+ updateMemoryCategory: builder.mutation({
42391
+ query: (args) => ({
42392
+ url: MEMSEARCH_ENDPOINTS.UPDATE_MEMSEARCH_CATEGORY.path(args.org, args.mentorId, args.categoryId),
42393
+ service: MEMSEARCH_ENDPOINTS.UPDATE_MEMSEARCH_CATEGORY.service,
42394
+ method: 'PATCH',
42395
+ body: args.data,
42396
+ }),
42397
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MEMORY_CATEGORIES(),
42398
+ }),
42399
+ deleteMemoryCategory: builder.mutation({
42400
+ query: (args) => ({
42401
+ url: MEMSEARCH_ENDPOINTS.DELETE_MEMSEARCH_CATEGORY.path(args.org, args.mentorId, args.categoryId),
42402
+ service: MEMSEARCH_ENDPOINTS.DELETE_MEMSEARCH_CATEGORY.service,
42403
+ method: 'DELETE',
42404
+ }),
42405
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_MEMORY_CATEGORIES(),
42406
+ }),
42407
+ // Platform Configuration
42408
+ getMemsearchConfig: builder.query({
42409
+ query: (args) => ({
42410
+ url: MEMSEARCH_ENDPOINTS.GET_MEMSEARCH_CONFIG.path(args.org, args.userId),
42411
+ service: MEMSEARCH_ENDPOINTS.GET_MEMSEARCH_CONFIG.service,
42412
+ }),
42413
+ providesTags: MEMORY_QUERY_KEYS.MEMSEARCH_PLATFORM_CONFIG(),
42414
+ }),
42415
+ updateMemsearchConfig: builder.mutation({
42416
+ query: (args) => ({
42417
+ url: MEMSEARCH_ENDPOINTS.UPDATE_MEMSEARCH_CONFIG.path(args.org, args.userId),
42418
+ service: MEMSEARCH_ENDPOINTS.UPDATE_MEMSEARCH_CONFIG.service,
42419
+ method: 'POST',
42420
+ body: args.config,
42421
+ }),
42422
+ invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_PLATFORM_CONFIG(),
42378
42423
  }),
42379
42424
  }),
42380
42425
  });
42381
- const { useGetMemoriesQuery, useLazyGetMemoriesQuery, useGetMemoryCategoriesQuery, useLazyGetMemoryCategoriesQuery, useGetMentorUserSettingsQuery, useLazyGetMentorUserSettingsQuery, useUpdateMentorUserSettingsMutation, useDeleteMemoryMutation, useDeleteMemoryByCategoryMutation, useUpdateMemoryEntryMutation, useCreateMemoryMutation, useGetMemoryFiltersQuery, useLazyGetMemoryFiltersQuery, useGetFilteredMemoriesQuery, useLazyGetFilteredMemoriesQuery, } = memoryApiSlice;
42426
+ const { useGetUserMemorySettingsQuery, useLazyGetUserMemorySettingsQuery, useUpdateUserMemorySettingsMutation, useGetGlobalMemoriesQuery, useLazyGetGlobalMemoriesQuery, useCreateGlobalMemoryMutation, useDeleteGlobalMemoryMutation, useGetMentorMemoriesQuery, useLazyGetMentorMemoriesQuery, useCreateMentorMemoryMutation, useUpdateMentorMemoryMutation, useDeleteMentorMemoryMutation, useGetMemoryCategoriesAdminQuery, useLazyGetMemoryCategoriesAdminQuery, useCreateMemoryCategoryMutation, useUpdateMemoryCategoryMutation, useDeleteMemoryCategoryMutation, useGetMemsearchConfigQuery, useLazyGetMemsearchConfigQuery, useUpdateMemsearchConfigMutation, } = memoryApiSlice;
42382
42427
 
42383
42428
  const MCP_REDUCER_PATH = 'mcpApiSlice';
42384
42429
  const MCP_ENDPOINTS = {
@@ -43568,9 +43613,9 @@ exports.LOGO_ENDPOINTS = LOGO_ENDPOINTS;
43568
43613
  exports.MCP_ENDPOINTS = MCP_ENDPOINTS;
43569
43614
  exports.MCP_REDUCER_PATH = MCP_REDUCER_PATH;
43570
43615
  exports.MCP_TAG_TYPES = MCP_TAG_TYPES;
43571
- exports.MEMORY_ENDPOINTS = MEMORY_ENDPOINTS;
43572
43616
  exports.MEMORY_QUERY_KEYS = MEMORY_QUERY_KEYS;
43573
43617
  exports.MEMORY_REDUCER_PATH = MEMORY_REDUCER_PATH;
43618
+ exports.MEMSEARCH_ENDPOINTS = MEMSEARCH_ENDPOINTS;
43574
43619
  exports.MENTORS_QUERY_KEYS = MENTORS_QUERY_KEYS;
43575
43620
  exports.MENTORS_REDUCER_PATH = MENTORS_REDUCER_PATH;
43576
43621
  exports.MENTOR_CUSTOM_ENDPOINTS = MENTOR_CUSTOM_ENDPOINTS;
@@ -43686,11 +43731,13 @@ exports.useCreateCredentialMutation = useCreateCredentialMutation;
43686
43731
  exports.useCreateCustomDomainMutation = useCreateCustomDomainMutation;
43687
43732
  exports.useCreateDisclaimerMutation = useCreateDisclaimerMutation;
43688
43733
  exports.useCreateExternalMappingMutation = useCreateExternalMappingMutation;
43734
+ exports.useCreateGlobalMemoryMutation = useCreateGlobalMemoryMutation;
43689
43735
  exports.useCreateIntegrationCredentialMutation = useCreateIntegrationCredentialMutation;
43690
43736
  exports.useCreateLLMCredentialMutation = useCreateLLMCredentialMutation;
43691
43737
  exports.useCreateMCPServerConnectionMutation = useCreateMCPServerConnectionMutation;
43692
43738
  exports.useCreateMCPServerMutation = useCreateMCPServerMutation;
43693
- exports.useCreateMemoryMutation = useCreateMemoryMutation;
43739
+ exports.useCreateMemoryCategoryMutation = useCreateMemoryCategoryMutation;
43740
+ exports.useCreateMentorMemoryMutation = useCreateMentorMemoryMutation;
43694
43741
  exports.useCreateMentorMutation = useCreateMentorMutation;
43695
43742
  exports.useCreateNotificationPreviewMutation = useCreateNotificationPreviewMutation;
43696
43743
  exports.useCreateOrUpdateUserDesiredSkillMutation = useCreateOrUpdateUserDesiredSkillMutation;
@@ -43727,10 +43774,11 @@ exports.useDeleteCredentialMutation = useDeleteCredentialMutation;
43727
43774
  exports.useDeleteCustomDomainMutation = useDeleteCustomDomainMutation;
43728
43775
  exports.useDeleteDisclaimerMutation = useDeleteDisclaimerMutation;
43729
43776
  exports.useDeleteExternalMappingMutation = useDeleteExternalMappingMutation;
43777
+ exports.useDeleteGlobalMemoryMutation = useDeleteGlobalMemoryMutation;
43730
43778
  exports.useDeleteIntegrationCredentialMutation = useDeleteIntegrationCredentialMutation;
43731
43779
  exports.useDeleteMCPServerMutation = useDeleteMCPServerMutation;
43732
- exports.useDeleteMemoryByCategoryMutation = useDeleteMemoryByCategoryMutation;
43733
- exports.useDeleteMemoryMutation = useDeleteMemoryMutation;
43780
+ exports.useDeleteMemoryCategoryMutation = useDeleteMemoryCategoryMutation;
43781
+ exports.useDeleteMentorMemoryMutation = useDeleteMentorMemoryMutation;
43734
43782
  exports.useDeleteMentorMutation = useDeleteMentorMutation;
43735
43783
  exports.useDeleteMessageMutation = useDeleteMessageMutation;
43736
43784
  exports.useDeleteModerationLogMutation = useDeleteModerationLogMutation;
@@ -43795,9 +43843,9 @@ exports.useGetEnrollmentCourseSearchQuery = useGetEnrollmentCourseSearchQuery;
43795
43843
  exports.useGetExamInfoQuery = useGetExamInfoQuery;
43796
43844
  exports.useGetExternalMappingQuery = useGetExternalMappingQuery;
43797
43845
  exports.useGetFileUploadUrlMutation = useGetFileUploadUrlMutation;
43798
- exports.useGetFilteredMemoriesQuery = useGetFilteredMemoriesQuery;
43799
43846
  exports.useGetFinancialStatsQuery = useGetFinancialStatsQuery;
43800
43847
  exports.useGetFreeUsageCountQuery = useGetFreeUsageCountQuery;
43848
+ exports.useGetGlobalMemoriesQuery = useGetGlobalMemoriesQuery;
43801
43849
  exports.useGetGuidedPromptsQuery = useGetGuidedPromptsQuery;
43802
43850
  exports.useGetIntegrationCredentialsQuery = useGetIntegrationCredentialsQuery;
43803
43851
  exports.useGetIntegrationCredentialsSchemaQuery = useGetIntegrationCredentialsSchemaQuery;
@@ -43809,16 +43857,15 @@ exports.useGetMCPServerQuery = useGetMCPServerQuery;
43809
43857
  exports.useGetMCPServersQuery = useGetMCPServersQuery;
43810
43858
  exports.useGetMaskedIntegrationCredentialsQuery = useGetMaskedIntegrationCredentialsQuery;
43811
43859
  exports.useGetMaskedLLMCredentialsQuery = useGetMaskedLLMCredentialsQuery;
43812
- exports.useGetMemoriesQuery = useGetMemoriesQuery;
43813
- exports.useGetMemoryCategoriesQuery = useGetMemoryCategoriesQuery;
43814
- exports.useGetMemoryFiltersQuery = useGetMemoryFiltersQuery;
43860
+ exports.useGetMemoryCategoriesAdminQuery = useGetMemoryCategoriesAdminQuery;
43861
+ exports.useGetMemsearchConfigQuery = useGetMemsearchConfigQuery;
43815
43862
  exports.useGetMentorCategoriesQuery = useGetMentorCategoriesQuery;
43816
43863
  exports.useGetMentorCategoryGroupsQuery = useGetMentorCategoryGroupsQuery;
43817
43864
  exports.useGetMentorDetailsQuery = useGetMentorDetailsQuery;
43865
+ exports.useGetMentorMemoriesQuery = useGetMentorMemoriesQuery;
43818
43866
  exports.useGetMentorPublicSettingsQuery = useGetMentorPublicSettingsQuery;
43819
43867
  exports.useGetMentorSettingsQuery = useGetMentorSettingsQuery;
43820
43868
  exports.useGetMentorSummariesQuery = useGetMentorSummariesQuery;
43821
- exports.useGetMentorUserSettingsQuery = useGetMentorUserSettingsQuery;
43822
43869
  exports.useGetMentorsQuery = useGetMentorsQuery;
43823
43870
  exports.useGetMfeContextQuery = useGetMfeContextQuery;
43824
43871
  exports.useGetModerationLogsQuery = useGetModerationLogsQuery;
@@ -43907,6 +43954,7 @@ exports.useGetUserEnrolledProgramsQuery = useGetUserEnrolledProgramsQuery;
43907
43954
  exports.useGetUserExperienceQuery = useGetUserExperienceQuery;
43908
43955
  exports.useGetUserInstitutionsQuery = useGetUserInstitutionsQuery;
43909
43956
  exports.useGetUserInvitationsQuery = useGetUserInvitationsQuery;
43957
+ exports.useGetUserMemorySettingsQuery = useGetUserMemorySettingsQuery;
43910
43958
  exports.useGetUserMetadataEdxQuery = useGetUserMetadataEdxQuery;
43911
43959
  exports.useGetUserMetadataQuery = useGetUserMetadataQuery;
43912
43960
  exports.useGetUserMetricsPieChartQuery = useGetUserMetricsPieChartQuery;
@@ -43953,8 +44001,8 @@ exports.useLazyGetDownloadReportFromURLQuery = useLazyGetDownloadReportFromURLQu
43953
44001
  exports.useLazyGetEnrollmentCourseSearchQuery = useLazyGetEnrollmentCourseSearchQuery;
43954
44002
  exports.useLazyGetExamInfoQuery = useLazyGetExamInfoQuery;
43955
44003
  exports.useLazyGetExternalMappingQuery = useLazyGetExternalMappingQuery;
43956
- exports.useLazyGetFilteredMemoriesQuery = useLazyGetFilteredMemoriesQuery;
43957
44004
  exports.useLazyGetFreeUsageCountQuery = useLazyGetFreeUsageCountQuery;
44005
+ exports.useLazyGetGlobalMemoriesQuery = useLazyGetGlobalMemoriesQuery;
43958
44006
  exports.useLazyGetGuidedPromptsQuery = useLazyGetGuidedPromptsQuery;
43959
44007
  exports.useLazyGetIntegrationCredentialsQuery = useLazyGetIntegrationCredentialsQuery;
43960
44008
  exports.useLazyGetIntegrationCredentialsSchemaQuery = useLazyGetIntegrationCredentialsSchemaQuery;
@@ -43963,16 +44011,15 @@ exports.useLazyGetLLMCredentialsQuery = useLazyGetLLMCredentialsQuery;
43963
44011
  exports.useLazyGetLlmsQuery = useLazyGetLlmsQuery;
43964
44012
  exports.useLazyGetMCPServerQuery = useLazyGetMCPServerQuery;
43965
44013
  exports.useLazyGetMCPServersQuery = useLazyGetMCPServersQuery;
43966
- exports.useLazyGetMemoriesQuery = useLazyGetMemoriesQuery;
43967
- exports.useLazyGetMemoryCategoriesQuery = useLazyGetMemoryCategoriesQuery;
43968
- exports.useLazyGetMemoryFiltersQuery = useLazyGetMemoryFiltersQuery;
44014
+ exports.useLazyGetMemoryCategoriesAdminQuery = useLazyGetMemoryCategoriesAdminQuery;
44015
+ exports.useLazyGetMemsearchConfigQuery = useLazyGetMemsearchConfigQuery;
43969
44016
  exports.useLazyGetMentorCategoriesQuery = useLazyGetMentorCategoriesQuery;
43970
44017
  exports.useLazyGetMentorCategoryGroupsQuery = useLazyGetMentorCategoryGroupsQuery;
43971
44018
  exports.useLazyGetMentorDetailsQuery = useLazyGetMentorDetailsQuery;
44019
+ exports.useLazyGetMentorMemoriesQuery = useLazyGetMentorMemoriesQuery;
43972
44020
  exports.useLazyGetMentorPublicSettingsQuery = useLazyGetMentorPublicSettingsQuery;
43973
44021
  exports.useLazyGetMentorSettingsQuery = useLazyGetMentorSettingsQuery;
43974
44022
  exports.useLazyGetMentorSummariesQuery = useLazyGetMentorSummariesQuery;
43975
- exports.useLazyGetMentorUserSettingsQuery = useLazyGetMentorUserSettingsQuery;
43976
44023
  exports.useLazyGetMentorsQuery = useLazyGetMentorsQuery;
43977
44024
  exports.useLazyGetModerationLogsQuery = useLazyGetModerationLogsQuery;
43978
44025
  exports.useLazyGetNodeTypesQuery = useLazyGetNodeTypesQuery;
@@ -44033,6 +44080,7 @@ exports.useLazyGetUserEnrolledProgramsQuery = useLazyGetUserEnrolledProgramsQuer
44033
44080
  exports.useLazyGetUserExperienceQuery = useLazyGetUserExperienceQuery;
44034
44081
  exports.useLazyGetUserInstitutionsQuery = useLazyGetUserInstitutionsQuery;
44035
44082
  exports.useLazyGetUserInvitationsQuery = useLazyGetUserInvitationsQuery;
44083
+ exports.useLazyGetUserMemorySettingsQuery = useLazyGetUserMemorySettingsQuery;
44036
44084
  exports.useLazyGetUserMetadataEdxQuery = useLazyGetUserMetadataEdxQuery;
44037
44085
  exports.useLazyGetUserMetadataQuery = useLazyGetUserMetadataQuery;
44038
44086
  exports.useLazyGetUserProjectDetailsQuery = useLazyGetUserProjectDetailsQuery;
@@ -44094,8 +44142,9 @@ exports.useUpdateDisclaimerMutation = useUpdateDisclaimerMutation;
44094
44142
  exports.useUpdateExamAttemptMutation = useUpdateExamAttemptMutation;
44095
44143
  exports.useUpdateIntegrationCredentialMutation = useUpdateIntegrationCredentialMutation;
44096
44144
  exports.useUpdateMCPServerMutation = useUpdateMCPServerMutation;
44097
- exports.useUpdateMemoryEntryMutation = useUpdateMemoryEntryMutation;
44098
- exports.useUpdateMentorUserSettingsMutation = useUpdateMentorUserSettingsMutation;
44145
+ exports.useUpdateMemoryCategoryMutation = useUpdateMemoryCategoryMutation;
44146
+ exports.useUpdateMemsearchConfigMutation = useUpdateMemsearchConfigMutation;
44147
+ exports.useUpdateMentorMemoryMutation = useUpdateMentorMemoryMutation;
44099
44148
  exports.useUpdateMessageFeedbackMutation = useUpdateMessageFeedbackMutation;
44100
44149
  exports.useUpdatePlatformImageAssetMutation = useUpdatePlatformImageAssetMutation;
44101
44150
  exports.useUpdatePlatformInfoMutation = useUpdatePlatformInfoMutation;
@@ -44114,6 +44163,7 @@ exports.useUpdateTenantMetadataMutation = useUpdateTenantMetadataMutation;
44114
44163
  exports.useUpdateUserAccountMutation = useUpdateUserAccountMutation;
44115
44164
  exports.useUpdateUserEducationMutation = useUpdateUserEducationMutation;
44116
44165
  exports.useUpdateUserExperienceMutation = useUpdateUserExperienceMutation;
44166
+ exports.useUpdateUserMemorySettingsMutation = useUpdateUserMemorySettingsMutation;
44117
44167
  exports.useUpdateUserMetadataEdxMutation = useUpdateUserMetadataEdxMutation;
44118
44168
  exports.useUpdateUserMetadataMutation = useUpdateUserMetadataMutation;
44119
44169
  exports.useUpdateUserOnboardingStatusMutation = useUpdateUserOnboardingStatusMutation;