@cossistant/core 0.0.28 → 0.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/_virtual/rolldown_runtime.js +27 -12
- package/ai-sdk-utils.d.ts +141 -0
- package/ai-sdk-utils.d.ts.map +1 -0
- package/ai-sdk-utils.js +255 -0
- package/ai-sdk-utils.js.map +1 -0
- package/client.d.ts +17 -7
- package/client.d.ts.map +1 -1
- package/client.js +34 -3
- package/client.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/package.json +1 -1
- package/privacy-filter.d.ts +112 -0
- package/privacy-filter.d.ts.map +1 -0
- package/privacy-filter.js +170 -0
- package/privacy-filter.js.map +1 -0
- package/rest-client.d.ts +4 -4
- package/rest-client.d.ts.map +1 -1
- package/rest-client.js +4 -4
- package/rest-client.js.map +1 -1
- package/store/conversations-store.d.ts +1 -1
- package/store/seen-store.d.ts +2 -2
- package/store/timeline-items-store.d.ts +5 -5
- package/store/timeline-items-store.d.ts.map +1 -1
- package/store/timeline-items-store.js +1 -1
- package/store/timeline-items-store.js.map +1 -1
- package/store/typing-store.d.ts +1 -1
- package/store/typing-store.d.ts.map +1 -1
- package/store/typing-store.js +12 -19
- package/store/typing-store.js.map +1 -1
- package/types/src/api/contact.d.ts.map +1 -0
- package/{conversation.d.ts → types/src/api/conversation.d.ts} +458 -78
- package/types/src/api/conversation.d.ts.map +1 -0
- package/types/src/api/timeline-item.d.ts +602 -0
- package/types/src/api/timeline-item.d.ts.map +1 -0
- package/types/src/api/timeline-item.js +67 -19
- package/types/src/api/timeline-item.js.map +1 -1
- package/types/src/api/upload.d.ts.map +1 -0
- package/types/src/enums.js +4 -1
- package/types/src/enums.js.map +1 -1
- package/types/src/realtime-events.d.ts +1000 -0
- package/types/src/realtime-events.d.ts.map +1 -0
- package/{schemas.d.ts → types/src/schemas.d.ts} +92 -16
- package/types/src/schemas.d.ts.map +1 -0
- package/contact.d.ts.map +0 -1
- package/conversation.d.ts.map +0 -1
- package/realtime-events.d.ts +0 -478
- package/realtime-events.d.ts.map +0 -1
- package/schemas.d.ts.map +0 -1
- package/timeline-item.d.ts +0 -298
- package/timeline-item.d.ts.map +0 -1
- package/upload.d.ts.map +0 -1
- /package/{contact.d.ts → types/src/api/contact.d.ts} +0 -0
- /package/{upload.d.ts → types/src/api/upload.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAqBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8VD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB"}
|
|
@@ -10,8 +10,8 @@ declare const conversationSchema: z.ZodObject<{
|
|
|
10
10
|
visitorId: z.ZodString;
|
|
11
11
|
websiteId: z.ZodString;
|
|
12
12
|
status: z.ZodDefault<z.ZodEnum<{
|
|
13
|
-
resolved: "resolved";
|
|
14
13
|
open: "open";
|
|
14
|
+
resolved: "resolved";
|
|
15
15
|
spam: "spam";
|
|
16
16
|
}>>;
|
|
17
17
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -34,9 +34,100 @@ declare const conversationSchema: z.ZodObject<{
|
|
|
34
34
|
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
35
35
|
type: z.ZodLiteral<"text">;
|
|
36
36
|
text: z.ZodString;
|
|
37
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
streaming: "streaming";
|
|
39
|
+
done: "done";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"reasoning">;
|
|
43
|
+
text: z.ZodString;
|
|
44
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
streaming: "streaming";
|
|
46
|
+
done: "done";
|
|
47
|
+
}>>;
|
|
48
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
public: "public";
|
|
52
|
+
private: "private";
|
|
53
|
+
}>>;
|
|
54
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
55
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodString;
|
|
60
|
+
toolCallId: z.ZodString;
|
|
61
|
+
toolName: z.ZodString;
|
|
62
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
63
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
64
|
+
state: z.ZodEnum<{
|
|
65
|
+
error: "error";
|
|
66
|
+
partial: "partial";
|
|
67
|
+
result: "result";
|
|
68
|
+
}>;
|
|
69
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
70
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
public: "public";
|
|
74
|
+
private: "private";
|
|
75
|
+
}>>;
|
|
76
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
77
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$loose>>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"source-url">;
|
|
82
|
+
sourceId: z.ZodString;
|
|
83
|
+
url: z.ZodString;
|
|
84
|
+
title: z.ZodOptional<z.ZodString>;
|
|
85
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
public: "public";
|
|
89
|
+
private: "private";
|
|
90
|
+
}>>;
|
|
91
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
92
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$loose>>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"source-document">;
|
|
97
|
+
sourceId: z.ZodString;
|
|
98
|
+
mediaType: z.ZodString;
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
101
|
+
providerMetadata: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
cossistant: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
public: "public";
|
|
105
|
+
private: "private";
|
|
106
|
+
}>>;
|
|
107
|
+
progressMessage: z.ZodOptional<z.ZodString>;
|
|
108
|
+
knowledgeId: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$loose>>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"step-start">;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
type: z.ZodLiteral<"file">;
|
|
115
|
+
url: z.ZodString;
|
|
116
|
+
mediaType: z.ZodString;
|
|
117
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
118
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
type: z.ZodLiteral<"image">;
|
|
121
|
+
url: z.ZodString;
|
|
122
|
+
mediaType: z.ZodString;
|
|
123
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
124
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
37
127
|
}, z.core.$strip>, z.ZodObject<{
|
|
38
128
|
type: z.ZodLiteral<"event">;
|
|
39
129
|
eventType: z.ZodEnum<{
|
|
130
|
+
resolved: "resolved";
|
|
40
131
|
assigned: "assigned";
|
|
41
132
|
unassigned: "unassigned";
|
|
42
133
|
participant_requested: "participant_requested";
|
|
@@ -46,7 +137,6 @@ declare const conversationSchema: z.ZodObject<{
|
|
|
46
137
|
priority_changed: "priority_changed";
|
|
47
138
|
tag_added: "tag_added";
|
|
48
139
|
tag_removed: "tag_removed";
|
|
49
|
-
resolved: "resolved";
|
|
50
140
|
reopened: "reopened";
|
|
51
141
|
visitor_blocked: "visitor_blocked";
|
|
52
142
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -57,20 +147,6 @@ declare const conversationSchema: z.ZodObject<{
|
|
|
57
147
|
targetUserId: z.ZodNullable<z.ZodString>;
|
|
58
148
|
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
59
149
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
type: z.ZodLiteral<"image">;
|
|
62
|
-
url: z.ZodString;
|
|
63
|
-
mediaType: z.ZodString;
|
|
64
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
65
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
type: z.ZodLiteral<"file">;
|
|
70
|
-
url: z.ZodString;
|
|
71
|
-
mediaType: z.ZodString;
|
|
72
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
73
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
74
150
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
151
|
type: z.ZodLiteral<"metadata">;
|
|
76
152
|
source: z.ZodEnum<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;cAkBa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBnB,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;EArBJ,SAAA,eAAA,YAAA,CAAA;EAAA,SAAA,eAAA,YAAA,CAAA;EAmBnB,UAAA,aAAY;EAEX,SAAA,aAAA;;;;KAYD,gBAAA,GAAmB,CAAA,CAAE,aAAa"}
|
package/contact.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../types/src/api/contact.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmQa,+BAA6B,CAAA,CAAA;;;;;;;;;;;;;;;;;KAQ9B,uBAAA,GAA0B,CAAA,CAAE,aAChC"}
|
package/conversation.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAES,6BAAA,GAAgC,CAAA,CAAE,aACtC;cAGK,kCAAgC,CAAA,CAAA;;;;;;MA1BD,MAAA,EAAA,QAAA;MAAA,OAAA,EAAA,SAAA;IAsBhC,CAAA,CAAA;IAIC,IAAA,WAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASD,8BAAA,GAAiC,CAAA,CAAE,aACvC;cAGK,gCAA8B,CAAA,CAAA;;;;;;;;;;;;;;IAbE,IAAA,EAAA,MAAA;EAAA,CAAA,CAAA,CAAA;AAS7C,CAAA,eAAY,CAAA;AAIC,KA6BD,wBAAA,GAA2B,CAAA,CAAE,KAFtC,CAAA,OAGK,8BAHL,CAAA;cAMU,iCAA+B,CAAA,CAAA;;;;;;;;;;;;;IAjCD,SAAA,cAAA,cAAA,YAAA,CAAA,CAAA;IAAA,iBAAA,eAAA,cAAA,YAAA,CAAA,CAAA;IA6B/B,gBAAA,eAAwB,YAC5B,CAAA;MAGK,EAAA,eAAA,YAaV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAES,yBAAA,GAA4B,CAAA,CAAE,aAClC;cAGK,8BAA4B,CAAA,CAAA;;;KAU7B,sBAAA,GAAyB,CAAA,CAAE,aAC/B;cAGK,+BAA6B,CAAA,CAAA;;;;;;;;;;;;;;;;MAjCE,EAAA,eAAA,YAAA,CAAA;MAAA,cAAA,aAAA;MAehC,cAAA,aAAyB;MAIxB,UAAA,WAAA,CAAA;;;MAA4B,CAAA,CAAA;MAAA,IAAA,WAAA,CAAA;QAU7B,OAAA,EAAA,SAAsB;QAIrB,KAAA,EAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQD,uBAAA,GAA0B,CAAA,CAAE,aAChC;cAGK,mCAAiC,CAAA,CAAA;;;KAYlC,+BAAA,GAAkC,CAAA,CAAE,aACxC;cAGK,oCAAkC,CAAA,CAAA;;;;KAcnC,gCAAA,GAAmC,CAAA,CAAE,aACzC;cA0BK,qCAAmC,CAAA,CAAA;;;;;;KAoBpC,iCAAA,GAAoC,CAAA,CAAE,aAC1C;cAGK,uCAAqC,CAAA,CAAA;;;;;;IA7FR,SAAA,eAAA,YAAA,CAAA;IAAA,UAAA,aAAA;IAQ9B,SAAA,aAAuB;IAItB,SAAA,aAAA;;;;AAAiC,KAwHlC,+BAAA,GAAkC,CAAA,CAAE,KAxHF,CAAA,OAyHtC,qCAzHsC,CAAA"}
|
package/realtime-events.d.ts
DELETED
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region ../types/src/realtime-events.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Central event system for real-time communication
|
|
7
|
-
* All WebSocket and Redis Pub/Sub events are defined here
|
|
8
|
-
*/
|
|
9
|
-
declare const realtimeSchema: {
|
|
10
|
-
readonly userConnected: z.ZodObject<{
|
|
11
|
-
websiteId: z.ZodString;
|
|
12
|
-
organizationId: z.ZodString;
|
|
13
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
14
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
readonly userDisconnected: z.ZodObject<{
|
|
18
|
-
websiteId: z.ZodString;
|
|
19
|
-
organizationId: z.ZodString;
|
|
20
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
21
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
readonly visitorConnected: z.ZodObject<{
|
|
25
|
-
websiteId: z.ZodString;
|
|
26
|
-
organizationId: z.ZodString;
|
|
27
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
28
|
-
visitorId: z.ZodString;
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
readonly visitorDisconnected: z.ZodObject<{
|
|
32
|
-
websiteId: z.ZodString;
|
|
33
|
-
organizationId: z.ZodString;
|
|
34
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
35
|
-
visitorId: z.ZodString;
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
readonly userPresenceUpdate: z.ZodObject<{
|
|
39
|
-
websiteId: z.ZodString;
|
|
40
|
-
organizationId: z.ZodString;
|
|
41
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
42
|
-
userId: z.ZodString;
|
|
43
|
-
status: z.ZodEnum<{
|
|
44
|
-
online: "online";
|
|
45
|
-
away: "away";
|
|
46
|
-
offline: "offline";
|
|
47
|
-
}>;
|
|
48
|
-
lastSeen: z.ZodString;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
readonly conversationSeen: z.ZodObject<{
|
|
51
|
-
websiteId: z.ZodString;
|
|
52
|
-
organizationId: z.ZodString;
|
|
53
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
54
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
55
|
-
conversationId: z.ZodString;
|
|
56
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
57
|
-
lastSeenAt: z.ZodString;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
readonly conversationTyping: z.ZodObject<{
|
|
60
|
-
websiteId: z.ZodString;
|
|
61
|
-
organizationId: z.ZodString;
|
|
62
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
63
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
64
|
-
conversationId: z.ZodString;
|
|
65
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
66
|
-
isTyping: z.ZodBoolean;
|
|
67
|
-
visitorPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
readonly timelineItemCreated: z.ZodObject<{
|
|
70
|
-
websiteId: z.ZodString;
|
|
71
|
-
organizationId: z.ZodString;
|
|
72
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
73
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
74
|
-
conversationId: z.ZodString;
|
|
75
|
-
item: z.ZodObject<{
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
conversationId: z.ZodString;
|
|
78
|
-
organizationId: z.ZodString;
|
|
79
|
-
visibility: z.ZodEnum<{
|
|
80
|
-
public: "public";
|
|
81
|
-
private: "private";
|
|
82
|
-
}>;
|
|
83
|
-
type: z.ZodEnum<{
|
|
84
|
-
message: "message";
|
|
85
|
-
event: "event";
|
|
86
|
-
identification: "identification";
|
|
87
|
-
}>;
|
|
88
|
-
text: z.ZodNullable<z.ZodString>;
|
|
89
|
-
parts: z.ZodArray<z.ZodUnknown>;
|
|
90
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
91
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
92
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
93
|
-
createdAt: z.ZodString;
|
|
94
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
95
|
-
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
readonly conversationCreated: z.ZodObject<{
|
|
99
|
-
websiteId: z.ZodString;
|
|
100
|
-
organizationId: z.ZodString;
|
|
101
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
102
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
103
|
-
conversationId: z.ZodString;
|
|
104
|
-
conversation: z.ZodObject<{
|
|
105
|
-
id: z.ZodString;
|
|
106
|
-
title: z.ZodOptional<z.ZodString>;
|
|
107
|
-
createdAt: z.ZodString;
|
|
108
|
-
updatedAt: z.ZodString;
|
|
109
|
-
visitorId: z.ZodString;
|
|
110
|
-
websiteId: z.ZodString;
|
|
111
|
-
status: z.ZodDefault<z.ZodEnum<{
|
|
112
|
-
resolved: "resolved";
|
|
113
|
-
open: "open";
|
|
114
|
-
spam: "spam";
|
|
115
|
-
}>>;
|
|
116
|
-
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
117
|
-
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
119
|
-
id: z.ZodOptional<z.ZodString>;
|
|
120
|
-
conversationId: z.ZodString;
|
|
121
|
-
organizationId: z.ZodString;
|
|
122
|
-
visibility: z.ZodEnum<{
|
|
123
|
-
public: "public";
|
|
124
|
-
private: "private";
|
|
125
|
-
}>;
|
|
126
|
-
type: z.ZodEnum<{
|
|
127
|
-
message: "message";
|
|
128
|
-
event: "event";
|
|
129
|
-
identification: "identification";
|
|
130
|
-
}>;
|
|
131
|
-
text: z.ZodNullable<z.ZodString>;
|
|
132
|
-
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
-
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
134
|
-
type: z.ZodLiteral<"text">;
|
|
135
|
-
text: z.ZodString;
|
|
136
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
-
type: z.ZodLiteral<"event">;
|
|
138
|
-
eventType: z.ZodEnum<{
|
|
139
|
-
assigned: "assigned";
|
|
140
|
-
unassigned: "unassigned";
|
|
141
|
-
participant_requested: "participant_requested";
|
|
142
|
-
participant_joined: "participant_joined";
|
|
143
|
-
participant_left: "participant_left";
|
|
144
|
-
status_changed: "status_changed";
|
|
145
|
-
priority_changed: "priority_changed";
|
|
146
|
-
tag_added: "tag_added";
|
|
147
|
-
tag_removed: "tag_removed";
|
|
148
|
-
resolved: "resolved";
|
|
149
|
-
reopened: "reopened";
|
|
150
|
-
visitor_blocked: "visitor_blocked";
|
|
151
|
-
visitor_unblocked: "visitor_unblocked";
|
|
152
|
-
visitor_identified: "visitor_identified";
|
|
153
|
-
}>;
|
|
154
|
-
actorUserId: z.ZodNullable<z.ZodString>;
|
|
155
|
-
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
156
|
-
targetUserId: z.ZodNullable<z.ZodString>;
|
|
157
|
-
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
158
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
-
type: z.ZodLiteral<"image">;
|
|
161
|
-
url: z.ZodString;
|
|
162
|
-
mediaType: z.ZodString;
|
|
163
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
164
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
166
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
-
type: z.ZodLiteral<"file">;
|
|
169
|
-
url: z.ZodString;
|
|
170
|
-
mediaType: z.ZodString;
|
|
171
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
172
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
-
type: z.ZodLiteral<"metadata">;
|
|
175
|
-
source: z.ZodEnum<{
|
|
176
|
-
email: "email";
|
|
177
|
-
widget: "widget";
|
|
178
|
-
api: "api";
|
|
179
|
-
}>;
|
|
180
|
-
}, z.core.$strip>]>>;
|
|
181
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
182
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
183
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
184
|
-
createdAt: z.ZodString;
|
|
185
|
-
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
|
-
}, z.core.$strip>>;
|
|
187
|
-
}, z.core.$strip>;
|
|
188
|
-
header: z.ZodObject<{
|
|
189
|
-
id: z.ZodString;
|
|
190
|
-
status: z.ZodEnum<{
|
|
191
|
-
resolved: "resolved";
|
|
192
|
-
open: "open";
|
|
193
|
-
spam: "spam";
|
|
194
|
-
}>;
|
|
195
|
-
priority: z.ZodEnum<{
|
|
196
|
-
low: "low";
|
|
197
|
-
normal: "normal";
|
|
198
|
-
high: "high";
|
|
199
|
-
urgent: "urgent";
|
|
200
|
-
}>;
|
|
201
|
-
organizationId: z.ZodString;
|
|
202
|
-
visitorId: z.ZodString;
|
|
203
|
-
visitor: z.ZodObject<{
|
|
204
|
-
id: z.ZodULID;
|
|
205
|
-
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
206
|
-
blockedAt: z.ZodNullable<z.ZodString>;
|
|
207
|
-
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
208
|
-
isBlocked: z.ZodBoolean;
|
|
209
|
-
contact: z.ZodNullable<z.ZodObject<{
|
|
210
|
-
id: z.ZodULID;
|
|
211
|
-
name: z.ZodNullable<z.ZodString>;
|
|
212
|
-
email: z.ZodNullable<z.ZodString>;
|
|
213
|
-
image: z.ZodNullable<z.ZodString>;
|
|
214
|
-
metadataHash: z.ZodOptional<z.ZodString>;
|
|
215
|
-
}, z.core.$strip>>;
|
|
216
|
-
}, z.core.$strip>;
|
|
217
|
-
websiteId: z.ZodString;
|
|
218
|
-
channel: z.ZodString;
|
|
219
|
-
title: z.ZodNullable<z.ZodString>;
|
|
220
|
-
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
221
|
-
startedAt: z.ZodNullable<z.ZodString>;
|
|
222
|
-
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
223
|
-
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
224
|
-
resolvedByUserId: z.ZodNullable<z.ZodString>;
|
|
225
|
-
resolvedByAiAgentId: z.ZodNullable<z.ZodString>;
|
|
226
|
-
createdAt: z.ZodString;
|
|
227
|
-
updatedAt: z.ZodString;
|
|
228
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
229
|
-
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
230
|
-
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
231
|
-
lastMessageTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
232
|
-
id: z.ZodOptional<z.ZodString>;
|
|
233
|
-
conversationId: z.ZodString;
|
|
234
|
-
organizationId: z.ZodString;
|
|
235
|
-
visibility: z.ZodEnum<{
|
|
236
|
-
public: "public";
|
|
237
|
-
private: "private";
|
|
238
|
-
}>;
|
|
239
|
-
type: z.ZodEnum<{
|
|
240
|
-
message: "message";
|
|
241
|
-
event: "event";
|
|
242
|
-
identification: "identification";
|
|
243
|
-
}>;
|
|
244
|
-
text: z.ZodNullable<z.ZodString>;
|
|
245
|
-
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
|
-
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
247
|
-
type: z.ZodLiteral<"text">;
|
|
248
|
-
text: z.ZodString;
|
|
249
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
-
type: z.ZodLiteral<"event">;
|
|
251
|
-
eventType: z.ZodEnum<{
|
|
252
|
-
assigned: "assigned";
|
|
253
|
-
unassigned: "unassigned";
|
|
254
|
-
participant_requested: "participant_requested";
|
|
255
|
-
participant_joined: "participant_joined";
|
|
256
|
-
participant_left: "participant_left";
|
|
257
|
-
status_changed: "status_changed";
|
|
258
|
-
priority_changed: "priority_changed";
|
|
259
|
-
tag_added: "tag_added";
|
|
260
|
-
tag_removed: "tag_removed";
|
|
261
|
-
resolved: "resolved";
|
|
262
|
-
reopened: "reopened";
|
|
263
|
-
visitor_blocked: "visitor_blocked";
|
|
264
|
-
visitor_unblocked: "visitor_unblocked";
|
|
265
|
-
visitor_identified: "visitor_identified";
|
|
266
|
-
}>;
|
|
267
|
-
actorUserId: z.ZodNullable<z.ZodString>;
|
|
268
|
-
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
269
|
-
targetUserId: z.ZodNullable<z.ZodString>;
|
|
270
|
-
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
271
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
-
type: z.ZodLiteral<"image">;
|
|
274
|
-
url: z.ZodString;
|
|
275
|
-
mediaType: z.ZodString;
|
|
276
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
277
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
278
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
279
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
280
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
281
|
-
type: z.ZodLiteral<"file">;
|
|
282
|
-
url: z.ZodString;
|
|
283
|
-
mediaType: z.ZodString;
|
|
284
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
285
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
286
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
-
type: z.ZodLiteral<"metadata">;
|
|
288
|
-
source: z.ZodEnum<{
|
|
289
|
-
email: "email";
|
|
290
|
-
widget: "widget";
|
|
291
|
-
api: "api";
|
|
292
|
-
}>;
|
|
293
|
-
}, z.core.$strip>]>>;
|
|
294
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
295
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
296
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
297
|
-
createdAt: z.ZodString;
|
|
298
|
-
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
-
}, z.core.$strip>>;
|
|
300
|
-
lastTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
301
|
-
id: z.ZodOptional<z.ZodString>;
|
|
302
|
-
conversationId: z.ZodString;
|
|
303
|
-
organizationId: z.ZodString;
|
|
304
|
-
visibility: z.ZodEnum<{
|
|
305
|
-
public: "public";
|
|
306
|
-
private: "private";
|
|
307
|
-
}>;
|
|
308
|
-
type: z.ZodEnum<{
|
|
309
|
-
message: "message";
|
|
310
|
-
event: "event";
|
|
311
|
-
identification: "identification";
|
|
312
|
-
}>;
|
|
313
|
-
text: z.ZodNullable<z.ZodString>;
|
|
314
|
-
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
-
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
316
|
-
type: z.ZodLiteral<"text">;
|
|
317
|
-
text: z.ZodString;
|
|
318
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
-
type: z.ZodLiteral<"event">;
|
|
320
|
-
eventType: z.ZodEnum<{
|
|
321
|
-
assigned: "assigned";
|
|
322
|
-
unassigned: "unassigned";
|
|
323
|
-
participant_requested: "participant_requested";
|
|
324
|
-
participant_joined: "participant_joined";
|
|
325
|
-
participant_left: "participant_left";
|
|
326
|
-
status_changed: "status_changed";
|
|
327
|
-
priority_changed: "priority_changed";
|
|
328
|
-
tag_added: "tag_added";
|
|
329
|
-
tag_removed: "tag_removed";
|
|
330
|
-
resolved: "resolved";
|
|
331
|
-
reopened: "reopened";
|
|
332
|
-
visitor_blocked: "visitor_blocked";
|
|
333
|
-
visitor_unblocked: "visitor_unblocked";
|
|
334
|
-
visitor_identified: "visitor_identified";
|
|
335
|
-
}>;
|
|
336
|
-
actorUserId: z.ZodNullable<z.ZodString>;
|
|
337
|
-
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
338
|
-
targetUserId: z.ZodNullable<z.ZodString>;
|
|
339
|
-
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
340
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
-
type: z.ZodLiteral<"image">;
|
|
343
|
-
url: z.ZodString;
|
|
344
|
-
mediaType: z.ZodString;
|
|
345
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
346
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
347
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
348
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
349
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
-
type: z.ZodLiteral<"file">;
|
|
351
|
-
url: z.ZodString;
|
|
352
|
-
mediaType: z.ZodString;
|
|
353
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
354
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
355
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
356
|
-
type: z.ZodLiteral<"metadata">;
|
|
357
|
-
source: z.ZodEnum<{
|
|
358
|
-
email: "email";
|
|
359
|
-
widget: "widget";
|
|
360
|
-
api: "api";
|
|
361
|
-
}>;
|
|
362
|
-
}, z.core.$strip>]>>;
|
|
363
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
364
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
365
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
366
|
-
createdAt: z.ZodString;
|
|
367
|
-
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
|
-
}, z.core.$strip>>;
|
|
369
|
-
viewIds: z.ZodArray<z.ZodString>;
|
|
370
|
-
seenData: z.ZodArray<z.ZodObject<{
|
|
371
|
-
id: z.ZodString;
|
|
372
|
-
conversationId: z.ZodString;
|
|
373
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
374
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
375
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
376
|
-
lastSeenAt: z.ZodString;
|
|
377
|
-
createdAt: z.ZodString;
|
|
378
|
-
updatedAt: z.ZodString;
|
|
379
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
380
|
-
}, z.core.$strip>>;
|
|
381
|
-
}, z.core.$strip>;
|
|
382
|
-
}, z.core.$strip>;
|
|
383
|
-
readonly visitorIdentified: z.ZodObject<{
|
|
384
|
-
websiteId: z.ZodString;
|
|
385
|
-
organizationId: z.ZodString;
|
|
386
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
387
|
-
visitorId: z.ZodString;
|
|
388
|
-
visitor: z.ZodObject<{
|
|
389
|
-
id: z.ZodULID;
|
|
390
|
-
browser: z.ZodNullable<z.ZodString>;
|
|
391
|
-
browserVersion: z.ZodNullable<z.ZodString>;
|
|
392
|
-
os: z.ZodNullable<z.ZodString>;
|
|
393
|
-
osVersion: z.ZodNullable<z.ZodString>;
|
|
394
|
-
device: z.ZodNullable<z.ZodString>;
|
|
395
|
-
deviceType: z.ZodNullable<z.ZodString>;
|
|
396
|
-
ip: z.ZodNullable<z.ZodString>;
|
|
397
|
-
city: z.ZodNullable<z.ZodString>;
|
|
398
|
-
region: z.ZodNullable<z.ZodString>;
|
|
399
|
-
country: z.ZodNullable<z.ZodString>;
|
|
400
|
-
countryCode: z.ZodNullable<z.ZodString>;
|
|
401
|
-
latitude: z.ZodNullable<z.ZodNumber>;
|
|
402
|
-
longitude: z.ZodNullable<z.ZodNumber>;
|
|
403
|
-
language: z.ZodNullable<z.ZodString>;
|
|
404
|
-
timezone: z.ZodNullable<z.ZodString>;
|
|
405
|
-
screenResolution: z.ZodNullable<z.ZodString>;
|
|
406
|
-
viewport: z.ZodNullable<z.ZodString>;
|
|
407
|
-
createdAt: z.ZodString;
|
|
408
|
-
updatedAt: z.ZodString;
|
|
409
|
-
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
410
|
-
websiteId: z.ZodULID;
|
|
411
|
-
organizationId: z.ZodULID;
|
|
412
|
-
blockedAt: z.ZodNullable<z.ZodString>;
|
|
413
|
-
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
414
|
-
isBlocked: z.ZodBoolean;
|
|
415
|
-
contact: z.ZodNullable<z.ZodObject<{
|
|
416
|
-
id: z.ZodULID;
|
|
417
|
-
externalId: z.ZodNullable<z.ZodString>;
|
|
418
|
-
name: z.ZodNullable<z.ZodString>;
|
|
419
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
420
|
-
image: z.ZodNullable<z.ZodURL>;
|
|
421
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
|
|
422
|
-
contactOrganizationId: z.ZodNullable<z.ZodULID>;
|
|
423
|
-
websiteId: z.ZodULID;
|
|
424
|
-
organizationId: z.ZodULID;
|
|
425
|
-
userId: z.ZodNullable<z.ZodULID>;
|
|
426
|
-
createdAt: z.ZodString;
|
|
427
|
-
updatedAt: z.ZodString;
|
|
428
|
-
}, z.core.$strip>>;
|
|
429
|
-
}, z.core.$strip>;
|
|
430
|
-
}, z.core.$strip>;
|
|
431
|
-
readonly conversationEventCreated: z.ZodObject<{
|
|
432
|
-
websiteId: z.ZodString;
|
|
433
|
-
organizationId: z.ZodString;
|
|
434
|
-
visitorId: z.ZodNullable<z.ZodString>;
|
|
435
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
436
|
-
conversationId: z.ZodString;
|
|
437
|
-
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
438
|
-
event: z.ZodObject<{
|
|
439
|
-
id: z.ZodString;
|
|
440
|
-
conversationId: z.ZodString;
|
|
441
|
-
organizationId: z.ZodString;
|
|
442
|
-
type: z.ZodEnum<{
|
|
443
|
-
assigned: "assigned";
|
|
444
|
-
unassigned: "unassigned";
|
|
445
|
-
participant_requested: "participant_requested";
|
|
446
|
-
participant_joined: "participant_joined";
|
|
447
|
-
participant_left: "participant_left";
|
|
448
|
-
status_changed: "status_changed";
|
|
449
|
-
priority_changed: "priority_changed";
|
|
450
|
-
tag_added: "tag_added";
|
|
451
|
-
tag_removed: "tag_removed";
|
|
452
|
-
resolved: "resolved";
|
|
453
|
-
reopened: "reopened";
|
|
454
|
-
visitor_blocked: "visitor_blocked";
|
|
455
|
-
visitor_unblocked: "visitor_unblocked";
|
|
456
|
-
visitor_identified: "visitor_identified";
|
|
457
|
-
}>;
|
|
458
|
-
actorUserId: z.ZodNullable<z.ZodString>;
|
|
459
|
-
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
460
|
-
targetUserId: z.ZodNullable<z.ZodString>;
|
|
461
|
-
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
462
|
-
message: z.ZodNullable<z.ZodString>;
|
|
463
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
464
|
-
createdAt: z.ZodString;
|
|
465
|
-
updatedAt: z.ZodString;
|
|
466
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
467
|
-
}, z.core.$strip>;
|
|
468
|
-
}, z.core.$strip>;
|
|
469
|
-
};
|
|
470
|
-
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
471
|
-
type RealtimeEventPayload<T extends RealtimeEventType> = z.infer<(typeof realtimeSchema)[T]>;
|
|
472
|
-
type RealtimeEvent<T extends RealtimeEventType> = {
|
|
473
|
-
type: T;
|
|
474
|
-
payload: RealtimeEventPayload<T>;
|
|
475
|
-
};
|
|
476
|
-
//#endregion
|
|
477
|
-
export { RealtimeEvent };
|
|
478
|
-
//# sourceMappingURL=realtime-events.d.ts.map
|
package/realtime-events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAqBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqGD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB"}
|
package/schemas.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;cAkBa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,SAAA,eAAA,YAAA,CAAA;IAAA,SAAA,eAAA,YAAA,CAAA;IAmBnB,SAAA,aAAY;IAEX,SAAA,eAUX,cAAA,YAAA,CAAA,CAAA;;;KAZU,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;;;;;;;;AAAA,KAYvB,gBAAA,GAAmB,CAAA,CAAE,KAZE,CAAA,OAYW,sBAZX,CAAA"}
|