@tangle-network/ui 11.24.0 → 11.25.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.
@@ -11,3 +11,23 @@ export interface SessionMessage {
11
11
  /** Monotonically increasing insertion index for stable ordering. */
12
12
  _insertionIndex?: number;
13
13
  }
14
+
15
+ /**
16
+ * Who wrote a chat message, for a transcript with more than one person beside
17
+ * the agent: a client, an attorney and the agent in one thread.
18
+ */
19
+ export interface ChatAuthor {
20
+ /**
21
+ * Stable participant id. A transcript's `viewerId` is compared with it to
22
+ * tell the reader's own messages apart, and it keys the avatar's tone.
23
+ */
24
+ id: string;
25
+ name: string;
26
+ /**
27
+ * The participant's part in the conversation, shown as a tag beside the
28
+ * name, such as "Attorney". Unrelated to the message's `role`.
29
+ */
30
+ role?: string;
31
+ /** Falls back to initials when absent or when the image fails to load. */
32
+ avatarUrl?: string;
33
+ }