@paramms/chat-widget 1.0.26 → 1.0.28
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/dist/embed.js +4 -6
- package/dist/embed.js.map +1 -1
- package/dist/index.js +281 -280
- package/dist/index.js.map +1 -1
- package/dist/protocol/entities.d.ts +6 -0
- package/dist/protocol/frames.d.ts +14 -0
- package/package.json +1 -1
|
@@ -66,6 +66,12 @@ export interface Conversation {
|
|
|
66
66
|
profileId: ProfileId;
|
|
67
67
|
subjectId?: SubjectId;
|
|
68
68
|
guestId: UserId;
|
|
69
|
+
/** Host-supplied display info for an identified guest (widget `user` option).
|
|
70
|
+
* Display metadata only — identity is still the token/guestId. */
|
|
71
|
+
guestName?: string;
|
|
72
|
+
guestEmail?: string;
|
|
73
|
+
guestAvatar?: string;
|
|
74
|
+
guestMeta?: Record<string, string>;
|
|
69
75
|
participants: UserId[];
|
|
70
76
|
assignedAgentId?: UserId;
|
|
71
77
|
aiActive?: boolean;
|
|
@@ -14,6 +14,16 @@ export type ClientFrame = {
|
|
|
14
14
|
pageTitle?: string;
|
|
15
15
|
subjectTitle?: string;
|
|
16
16
|
subjectMeta?: string;
|
|
17
|
+
linkFrom?: UserId;
|
|
18
|
+
/** Host-supplied display info for the guest — persisted onto the
|
|
19
|
+
* conversation server-side so agents see who they're talking to.
|
|
20
|
+
* Display metadata only, never used for authorization. */
|
|
21
|
+
userInfo?: {
|
|
22
|
+
name?: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
avatar?: string;
|
|
25
|
+
meta?: Record<string, string>;
|
|
26
|
+
};
|
|
17
27
|
} | {
|
|
18
28
|
type: 'send';
|
|
19
29
|
conversationId: ConversationId;
|
|
@@ -97,6 +107,10 @@ export type ClientFrame = {
|
|
|
97
107
|
} | {
|
|
98
108
|
type: 'fetchPrekey';
|
|
99
109
|
targetUserId: UserId;
|
|
110
|
+
} | {
|
|
111
|
+
type: 'subscribe_inbox';
|
|
112
|
+
} | {
|
|
113
|
+
type: 'unsubscribe_inbox';
|
|
100
114
|
} | {
|
|
101
115
|
type: 'ping';
|
|
102
116
|
};
|