@aastrika/ai-elements 0.2.0 → 0.2.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/README.md CHANGED
@@ -260,7 +260,7 @@ Three things, and nothing else.
260
260
  |---|---|
261
261
  | `apiBase` | Where the service is, no trailing slash. Empty string means same-origin. |
262
262
  | `getAuthHeaders` | Headers proving the caller may use the service — in practice a bearer token. |
263
- | `creator` | The username of whoever is signed into **your** application. |
263
+ | `creator` | Who is signed into **your** application — their name or email, shown as-is in the usage report. |
264
264
  | `onError` | Optional. Called whenever a request fails, so your monitoring hears about it. |
265
265
 
266
266
  **Both are functions, and both are called on every request.** Tokens expire: a
@@ -268,6 +268,9 @@ string handed over at startup stops working mid-session and the package has no
268
268
  way to ask for a fresh one. A function lets you return whatever your own auth
269
269
  library currently holds, and lets you switch user without reloading.
270
270
 
271
+ `creator` should be a **name or email** — it is displayed as-is in the usage
272
+ report, so `asha.kumari` reads well and a UUID does not.
273
+
271
274
  `creator` is **attribution, not identity**. It is recorded against anything the
272
275
  call creates and the usage report groups by it. Nothing verifies it — the
273
276
  gateway decides whether the call is allowed at all.
@@ -284,8 +287,8 @@ needs:
284
287
 
285
288
  | Feature | Groups |
286
289
  |---|---|
287
- | `aastrika-content-studio` | `contentCreate`, `contentRead`, `contentUpdate` |
288
- | `aastrika-assessment` | `contentCreate`, `contentRead`, `contentUpdate` |
290
+ | `aastrika-content-studio` | `contentCreate`, `contentAccess`, `contentUpdate` |
291
+ | `aastrika-assessment` | `contentCreate`, `contentAccess`, `contentUpdate` |
289
292
  | `aastrika-reports` | `contentAdmin` |
290
293
 
291
294
  Deleting anything needs `contentAdmin` as well. Without `contentUpdate` the