@origonai/web-sdk 0.1.1 → 0.1.2
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 +10 -7
- package/dist/index.d.ts +4 -4
- package/dist/origon-web-sdk.js +616 -575
- package/dist/origon-web-sdk.js.map +1 -1
- package/docs/contract.md +20 -19
- package/package.json +1 -1
package/docs/contract.md
CHANGED
|
@@ -34,25 +34,26 @@ reciprocal cross-repository contract ledger.
|
|
|
34
34
|
|
|
35
35
|
## Release gate
|
|
36
36
|
|
|
37
|
-
Run typecheck, unit tests, and the production build, then rebuild
|
|
38
|
-
`workspace/web/chat`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
Run typecheck, unit tests, and the production build, then rebuild both linked
|
|
38
|
+
`workspace/web/chat` and `workspace/web/cx` consumers. Inspect the packed
|
|
39
|
+
declarations and artifact bytes before publication. Publishing to npm remains
|
|
40
|
+
an owner action and is never part of an implementation spin.
|
|
41
|
+
|
|
42
|
+
## Live-chat monitoring and optional message metadata
|
|
43
|
+
|
|
44
|
+
- Version 0.1.2 exposes optional `Message.metadata` and optional
|
|
45
|
+
`MessageMetadata.audience`. ORPC messages plus REST directory/history rows
|
|
46
|
+
normalize missing/null containers to `undefined`, while a present object with
|
|
47
|
+
a missing/null/empty audience remains `{}`. Lowercase `internal|all` is
|
|
48
|
+
preserved and every other non-empty value fails without trimming. Received
|
|
49
|
+
`TypingEvent.metadata` remains required and known.
|
|
50
|
+
- Ordinary participant message and typing calls omit request metadata. CX
|
|
51
|
+
resolves participant-purpose omission to `all`; monitor-purpose omission is
|
|
52
|
+
invalid. Monitor consumers therefore validate and send an explicit
|
|
53
|
+
`internal|all` audience for every message and typing operation.
|
|
54
|
+
- CX remains the authorization and projection boundary. Optional parsing never
|
|
55
|
+
authorizes an internal row for an external consumer, and newly authored CX
|
|
56
|
+
storage/events/replay/history/directory values remain explicit.
|
|
56
57
|
- `onTyping` receives exactly `{participantId, role, userId, userName, state,
|
|
57
58
|
metadata}`. Inbound watchdogs are participant-keyed; one participant's off
|
|
58
59
|
or message cannot clear an unrelated participant.
|