@iblai/data-layer 1.28.0 → 1.29.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.d.ts CHANGED
@@ -226,11 +226,11 @@ declare const useGetApiKeysQuery: <R extends Record<string, any> = _reduxjs_tool
226
226
  isError: false;
227
227
  }, "error">>)>> & {
228
228
  status: _reduxjs_toolkit_query.QueryStatus;
229
- }>(arg: {
229
+ }>(arg: typeof _reduxjs_toolkit_query.skipToken | {
230
230
  platformKey: string;
231
231
  page?: number;
232
232
  pageSize?: number;
233
- } | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
233
+ }, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
234
234
  skip?: boolean;
235
235
  refetchOnMountOrArgChange?: boolean | number;
236
236
  } & {
@@ -607,10 +607,10 @@ declare const useGetApiKeyQuery: <R extends Record<string, any> = _reduxjs_toolk
607
607
  isError: false;
608
608
  }, "error">>)>> & {
609
609
  status: _reduxjs_toolkit_query.QueryStatus;
610
- }>(arg: {
610
+ }>(arg: typeof _reduxjs_toolkit_query.skipToken | {
611
611
  name: string;
612
612
  platformKey: string;
613
- } | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
613
+ }, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
614
614
  skip?: boolean;
615
615
  refetchOnMountOrArgChange?: boolean | number;
616
616
  } & {
@@ -967,9 +967,9 @@ declare const useGetApiKeyFieldPermissionsQuery: <R extends Record<string, any>
967
967
  isError: false;
968
968
  }, "error">>)>> & {
969
969
  status: _reduxjs_toolkit_query.QueryStatus;
970
- }>(arg: {
970
+ }>(arg: typeof _reduxjs_toolkit_query.skipToken | {
971
971
  platformKey: string;
972
- } | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
972
+ }, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
973
973
  skip?: boolean;
974
974
  refetchOnMountOrArgChange?: boolean | number;
975
975
  } & {
@@ -1710,13 +1710,13 @@ declare const useGetChatHistoryFilterQuery: <R extends Record<string, any> = _re
1710
1710
  isError: false;
1711
1711
  }, "error">>)>> & {
1712
1712
  status: _reduxjs_toolkit_query.QueryStatus;
1713
- }>(arg: typeof _reduxjs_toolkit_query.skipToken | {
1713
+ }>(arg: {
1714
1714
  org: string;
1715
1715
  endDate?: string;
1716
1716
  mentorId?: string;
1717
1717
  monthlyRange?: boolean;
1718
1718
  startDate?: string;
1719
- }, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
1719
+ } | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
1720
1720
  skip?: boolean;
1721
1721
  refetchOnMountOrArgChange?: boolean | number;
1722
1722
  } & {
@@ -2153,7 +2153,7 @@ declare const useGetChatHistoryQuery: <R extends Record<string, any> = _reduxjs_
2153
2153
  isError: false;
2154
2154
  }, "error">>)>> & {
2155
2155
  status: _reduxjs_toolkit_query.QueryStatus;
2156
- }>(arg: typeof _reduxjs_toolkit_query.skipToken | {
2156
+ }>(arg: {
2157
2157
  org: string;
2158
2158
  endDate?: string;
2159
2159
  filterUserId?: string;
@@ -2163,7 +2163,7 @@ declare const useGetChatHistoryQuery: <R extends Record<string, any> = _reduxjs_
2163
2163
  sentiment?: string;
2164
2164
  startDate?: string;
2165
2165
  topics?: string;
2166
- }, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
2166
+ } | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
2167
2167
  skip?: boolean;
2168
2168
  refetchOnMountOrArgChange?: boolean | number;
2169
2169
  } & {
@@ -2812,11 +2812,11 @@ declare const useGetChatHistoryExportStatusQuery: <R extends Record<string, any>
2812
2812
  isError: false;
2813
2813
  }, "error">>)>> & {
2814
2814
  status: _reduxjs_toolkit_query.QueryStatus;
2815
- }>(arg: typeof _reduxjs_toolkit_query.skipToken | {
2815
+ }>(arg: {
2816
2816
  key: string;
2817
2817
  reportName: string;
2818
2818
  mentorUniqueId?: string;
2819
- }, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
2819
+ } | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
2820
2820
  skip?: boolean;
2821
2821
  refetchOnMountOrArgChange?: boolean | number;
2822
2822
  } & {
package/dist/index.esm.js CHANGED
@@ -42296,7 +42296,8 @@ const chatPrivacyApiSlice = createApi({
42296
42296
  reducerPath: 'chatPrivacyApiSlice',
42297
42297
  // Callers read the failure itself: the 403 a locked mentor answers to a
42298
42298
  // `disable-chathistory` flip carries its reason in `data.detail`, and the
42299
- // one-way 400 carries it under the field name. `iblFetchBaseQuery` throws
42299
+ // 400 refusing to re-enable an orphaned session carries it under the field
42300
+ // name. `iblFetchBaseQuery` throws
42300
42301
  // its errors, which reach `.unwrap()` and the hooks as `{}`.
42301
42302
  baseQuery: withReturnedErrors(iblFetchBaseQuery),
42302
42303
  tagTypes: ['TenantChatPrivacyConfig', 'UserChatPrivacySettings', 'ChatPrivacyEffective'],
@@ -42348,10 +42349,11 @@ const chatPrivacyApiSlice = createApi({
42348
42349
  },
42349
42350
  providesTags: ['ChatPrivacyEffective'],
42350
42351
  }),
42351
- // One-way switch: flipping a session to disable_chathistory: true also
42352
- // removes it from the user's history list (backend nulls Session.student).
42353
- // Per the spec, true → false is rejected with 400; the user must start a
42354
- // new conversation to resume history.
42352
+ // Two-way flip. `true` stops saving new messages; a session that already
42353
+ // has history keeps its owner (stays listed), an EMPTY one is orphaned
42354
+ // (backend nulls Session.student). `false` resumes history on the same
42355
+ // session, refused only for an orphaned session (400 for an admin, 404
42356
+ // for its own user — the ownership check fails first).
42355
42357
  //
42356
42358
  // Important — this endpoint lives under `/api/ai-mentor/…`, NOT under
42357
42359
  // `/api/ai-account/…` like the other chat-privacy endpoints. The
@@ -46568,7 +46570,7 @@ const CUSTOM_DOMAIN_REDUCER_PATH = 'customDomainApiSlice';
46568
46570
  const CUSTOM_DOMAIN_ENDPOINTS = {
46569
46571
  GET_CUSTOM_DOMAINS: {
46570
46572
  service: SERVICES.DM,
46571
- path: () => `/api/custom-domains`,
46573
+ path: () => `/api/custom-domains/`,
46572
46574
  },
46573
46575
  CREATE_CUSTOM_DOMAIN: {
46574
46576
  service: SERVICES.DM,