The widget is one custom element, <diosc-chat>. The embed loader mounts it for you; in a framework
app you render it yourself. Configuration beyond the attributes below is set with
diosc('config', …).
When you embed via the loader script, you don’t set these by hand. The loader resolves them from your
embed key and mounts the element for you.
Most of these can also be set with diosc('config', …).
Set bind-endpoint as an attribute rather than through config: an attribute lands before auto-connect
dispatches the bind, so it avoids a config/connect race.
mode="embed" requires the embeddedPanelMode capability (Enterprise tier). Without it the element
renders nothing.
A restore is rejected because the session isn’t owned by the bound identity — the kit drops the persisted token and starts fresh. Payload: { code, message }.
session:list
The session list arrives.
session:renamed / session:pinned
A session is renamed or (un)pinned.
session:path_changed
The session’s page context changes.
session:state_changed
Session state changes.
session:user_changed
The session’s user identity changes.
session:upgraded
An anonymous session is promoted in place to an authenticated one (the visitor signed in).