@paramms/chat-widget 1.0.28 → 1.0.30
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/connection.d.ts +6 -0
- package/dist/embed.js +4 -4
- package/dist/embed.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +545 -2058
- package/dist/index.js.map +1 -1
- package/dist/protocol/entities.d.ts +4 -0
- package/dist/protocol/frames.d.ts +2 -1
- package/package.json +9 -1
|
@@ -72,6 +72,9 @@ export interface Conversation {
|
|
|
72
72
|
guestEmail?: string;
|
|
73
73
|
guestAvatar?: string;
|
|
74
74
|
guestMeta?: Record<string, string>;
|
|
75
|
+
/** True once the guest's identity has been proven by a signed ES256 JWT
|
|
76
|
+
* against the chatroom's guestPublicKey (secure identity mode). */
|
|
77
|
+
guestVerified?: boolean;
|
|
75
78
|
participants: UserId[];
|
|
76
79
|
assignedAgentId?: UserId;
|
|
77
80
|
aiActive?: boolean;
|
|
@@ -124,3 +127,4 @@ export interface Subject {
|
|
|
124
127
|
* single source of truth for "is this conversation finished?". */
|
|
125
128
|
export declare const TERMINAL_STATES: ReadonlySet<string>;
|
|
126
129
|
export declare function isTerminalState(state: string): boolean;
|
|
130
|
+
export type Channel = 'widget' | 'email' | 'sms' | 'whatsapp' | 'instagram' | 'kakao' | 'messenger' | 'line';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConnectionId, ConversationId, MessageId, ProfileId, SubjectId, UserId } from './ids.js';
|
|
2
|
-
import type { Conversation, Message, MessageContent, Subject, AnnotationStroke } from './entities.js';
|
|
2
|
+
import type { Channel, Conversation, Message, MessageContent, Subject, AnnotationStroke } from './entities.js';
|
|
3
3
|
import type { ManifestAction } from './actions.js';
|
|
4
4
|
export type ErrorCode = 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'BAD_REQUEST' | 'RATE_LIMITED' | 'PAYLOAD_TOO_LARGE' | 'CONFLICT' | 'INTERNAL';
|
|
5
5
|
export type ClientFrame = {
|
|
@@ -30,6 +30,7 @@ export type ClientFrame = {
|
|
|
30
30
|
clientMsgId: string;
|
|
31
31
|
content: MessageContent;
|
|
32
32
|
replyToId?: MessageId;
|
|
33
|
+
via?: Channel[];
|
|
33
34
|
} | {
|
|
34
35
|
type: 'sync';
|
|
35
36
|
conversationId: ConversationId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paramms/chat-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "Embeddable real-time chat widget for the Relay platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -73,6 +73,14 @@
|
|
|
73
73
|
"./chatlist": {
|
|
74
74
|
"types": "./dist/chatlist.d.ts",
|
|
75
75
|
"default": "./dist/chatlist.js"
|
|
76
|
+
},
|
|
77
|
+
"./core": {
|
|
78
|
+
"types": "./dist/core.d.ts",
|
|
79
|
+
"default": "./dist/core.js"
|
|
80
|
+
},
|
|
81
|
+
"./hooks": {
|
|
82
|
+
"types": "./dist/hooks.d.ts",
|
|
83
|
+
"default": "./dist/hooks.js"
|
|
76
84
|
}
|
|
77
85
|
},
|
|
78
86
|
"peerDependencies": {
|