@iblai/data-layer 1.28.0 → 1.29.0

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
@@ -42298,7 +42298,8 @@ const chatPrivacyApiSlice = react.createApi({
42298
42298
  reducerPath: 'chatPrivacyApiSlice',
42299
42299
  // Callers read the failure itself: the 403 a locked mentor answers to a
42300
42300
  // `disable-chathistory` flip carries its reason in `data.detail`, and the
42301
- // one-way 400 carries it under the field name. `iblFetchBaseQuery` throws
42301
+ // 400 refusing to re-enable an orphaned session carries it under the field
42302
+ // name. `iblFetchBaseQuery` throws
42302
42303
  // its errors, which reach `.unwrap()` and the hooks as `{}`.
42303
42304
  baseQuery: withReturnedErrors(iblFetchBaseQuery),
42304
42305
  tagTypes: ['TenantChatPrivacyConfig', 'UserChatPrivacySettings', 'ChatPrivacyEffective'],
@@ -42350,10 +42351,11 @@ const chatPrivacyApiSlice = react.createApi({
42350
42351
  },
42351
42352
  providesTags: ['ChatPrivacyEffective'],
42352
42353
  }),
42353
- // One-way switch: flipping a session to disable_chathistory: true also
42354
- // removes it from the user's history list (backend nulls Session.student).
42355
- // Per the spec, true → false is rejected with 400; the user must start a
42356
- // new conversation to resume history.
42354
+ // Two-way flip. `true` stops saving new messages; a session that already
42355
+ // has history keeps its owner (stays listed), an EMPTY one is orphaned
42356
+ // (backend nulls Session.student). `false` resumes history on the same
42357
+ // session, refused only for an orphaned session (400 for an admin, 404
42358
+ // for its own user — the ownership check fails first).
42357
42359
  //
42358
42360
  // Important — this endpoint lives under `/api/ai-mentor/…`, NOT under
42359
42361
  // `/api/ai-account/…` like the other chat-privacy endpoints. The