@faiber/faiber-chat 0.11.7 → 0.12.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.
Files changed (2) hide show
  1. package/README.md +2 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -26,14 +26,7 @@ const conversation = await api.createConversation({
26
26
  kind: "direct",
27
27
  member_ids: [recipientUserId],
28
28
  });
29
- const sent = await api.sendMessage(conversation.data.data.id, { content: { text: "Hello" } });
30
-
31
- // Compare sender_id with the authenticated IDP user's ID to distinguish sides
32
- // in a direct chat. It is null for assistant or other non-user messages.
33
- const sentByCurrentUser = sent.data.data.sender_id === currentUserId;
34
- const assistants = await api.managedAssistants();
35
- const models = await api.assistantModels();
36
- const pendingInputs = await api.aiRuntimeInputs(conversation.data.data.id);
29
+ await api.sendMessage(conversation.data.data.id, { content: { text: "Hello" } });
37
30
  ```
38
31
 
39
32
  ## Complete capability
@@ -45,7 +38,7 @@ This package exposes 32 registered operations from the chat service. Common work
45
38
  | `main` | 1 | `GET` |
46
39
  | `routes` | 31 | `DELETE`, `GET`, `POST`, `PUT` |
47
40
 
48
- The SDK covers the complete conversation view and moderation surface: conversations, members, messages, attachments, reactions, read cursors, realtime authorization and SSE events. Assistant administration includes list/get/create/update/delete, model and context catalogs, customer-action content, AI messages, selected DRM media, Session room context, pending runtime inputs, and runtime-input completion. AI turns are executed and billed by Infera Agentic; Chat coordinates conversation context and reconciliation.
41
+ AI turns are executed and billed by Infera Agentic; Chat only coordinates conversation context and reconciliation. The events endpoint is an SSE stream and can be requested with normal SDK authorization headers.
49
42
 
50
43
  ## Authentication and authorization
51
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faiber/faiber-chat",
3
- "version": "0.11.7",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -16,6 +16,6 @@
16
16
  "README.md"
17
17
  ],
18
18
  "dependencies": {
19
- "@faiber/sdk-core": "0.11.7"
19
+ "@faiber/sdk-core": "0.12.0"
20
20
  }
21
21
  }