@cossistant/react 0.0.6 → 0.0.8
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/api.d.ts +71 -0
- package/api.d.ts.map +1 -0
- package/checks.d.ts +189 -0
- package/checks.d.ts.map +1 -0
- package/clsx.d.ts +7 -0
- package/clsx.d.ts.map +1 -0
- package/coerce.d.ts +9 -0
- package/coerce.d.ts.map +1 -0
- package/conversation.d.ts +224 -220
- package/conversation.d.ts.map +1 -1
- package/core.d.ts +35 -0
- package/core.d.ts.map +1 -0
- package/errors.d.ts +121 -0
- package/errors.d.ts.map +1 -0
- package/errors2.d.ts +24 -0
- package/errors2.d.ts.map +1 -0
- package/hooks/private/use-grouped-messages.d.ts +1 -1
- package/hooks/use-conversation-seen.d.ts +1 -1
- package/hooks/use-create-conversation.d.ts +1 -1
- package/hooks/use-realtime-support.d.ts.map +1 -1
- package/index2.d.ts +4 -0
- package/index3.d.ts +1 -0
- package/index4.d.ts +18 -0
- package/index4.d.ts.map +1 -0
- package/index5.d.ts +999 -0
- package/index5.d.ts.map +1 -0
- package/index6.d.ts +6 -0
- package/metadata.d.ts +1 -0
- package/openapi-generator.d.ts +1 -0
- package/openapi-generator2.d.ts +1 -0
- package/openapi-generator3.d.ts +1 -0
- package/openapi30.d.ts +125 -0
- package/openapi30.d.ts.map +1 -0
- package/openapi31.d.ts +131 -0
- package/openapi31.d.ts.map +1 -0
- package/package.json +15 -3
- package/parse.d.ts +17 -0
- package/parse.d.ts.map +1 -0
- package/primitives/avatar/image.d.ts +1 -1
- package/primitives/multimodal-input.d.ts +2 -2
- package/primitives/multimodal-input.d.ts.map +1 -1
- package/react.d.ts +4 -0
- package/realtime/seen-store.d.ts +1 -1
- package/realtime-events.d.ts +274 -272
- package/realtime-events.d.ts.map +1 -1
- package/registries.d.ts +32 -0
- package/registries.d.ts.map +1 -0
- package/schemas.d.ts +670 -93
- package/schemas.d.ts.map +1 -1
- package/schemas2.d.ts +320 -0
- package/schemas2.d.ts.map +1 -0
- package/schemas3.d.ts +98 -0
- package/schemas3.d.ts.map +1 -0
- package/specification-extension.d.ts +9 -0
- package/specification-extension.d.ts.map +1 -0
- package/standard-schema.d.ts +59 -0
- package/standard-schema.d.ts.map +1 -0
- package/support/components/button.d.ts +1 -1
- package/support/components/text-effect.d.ts +2 -1
- package/support/components/text-effect.d.ts.map +1 -1
- package/support/components/typing-indicator.d.ts.map +1 -1
- package/support/text/index.js +2 -0
- package/support/text/index.js.map +1 -1
- package/support/text/runtime.js +1 -0
- package/support/text/runtime.js.map +1 -1
- package/support/utils/index.d.ts +1 -1
- package/support.css +1 -1
- package/timeline-item.d.ts +97 -93
- package/timeline-item.d.ts.map +1 -1
- package/types.d-BJcRxCew.d.ts +39 -0
- package/types.d-BJcRxCew.d.ts.map +1 -0
- package/util.d.ts +41 -0
- package/util.d.ts.map +1 -0
- package/utils/use-render-element.d.ts.map +1 -1
- package/versions.d.ts +9 -0
- package/versions.d.ts.map +1 -0
- package/zod-extensions.d.ts +39 -0
- package/zod-extensions.d.ts.map +1 -0
package/realtime-events.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $strip } from "./schemas.js";
|
|
2
|
+
import { output } from "./core.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodDefault, ZodEmail, ZodEnum, ZodLiteral, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion, ZodUnknown } from "./schemas2.js";
|
|
2
4
|
|
|
3
5
|
//#region ../types/src/realtime-events.d.ts
|
|
4
6
|
|
|
@@ -7,134 +9,134 @@ import { z } from "zod";
|
|
|
7
9
|
* All WebSocket and Redis Pub/Sub events are defined here
|
|
8
10
|
*/
|
|
9
11
|
declare const realtimeSchema: {
|
|
10
|
-
readonly userConnected:
|
|
11
|
-
websiteId:
|
|
12
|
-
organizationId:
|
|
13
|
-
visitorId:
|
|
14
|
-
userId:
|
|
15
|
-
connectionId:
|
|
16
|
-
},
|
|
17
|
-
readonly userDisconnected:
|
|
18
|
-
websiteId:
|
|
19
|
-
organizationId:
|
|
20
|
-
visitorId:
|
|
21
|
-
userId:
|
|
22
|
-
connectionId:
|
|
23
|
-
},
|
|
24
|
-
readonly visitorConnected:
|
|
25
|
-
websiteId:
|
|
26
|
-
organizationId:
|
|
27
|
-
userId:
|
|
28
|
-
visitorId:
|
|
29
|
-
connectionId:
|
|
30
|
-
},
|
|
31
|
-
readonly visitorDisconnected:
|
|
32
|
-
websiteId:
|
|
33
|
-
organizationId:
|
|
34
|
-
userId:
|
|
35
|
-
visitorId:
|
|
36
|
-
connectionId:
|
|
37
|
-
},
|
|
38
|
-
readonly userPresenceUpdate:
|
|
39
|
-
websiteId:
|
|
40
|
-
organizationId:
|
|
41
|
-
visitorId:
|
|
42
|
-
userId:
|
|
43
|
-
status:
|
|
12
|
+
readonly userConnected: ZodObject<{
|
|
13
|
+
websiteId: ZodString;
|
|
14
|
+
organizationId: ZodString;
|
|
15
|
+
visitorId: ZodNullable<ZodString>;
|
|
16
|
+
userId: ZodNullable<ZodString>;
|
|
17
|
+
connectionId: ZodString;
|
|
18
|
+
}, $strip>;
|
|
19
|
+
readonly userDisconnected: ZodObject<{
|
|
20
|
+
websiteId: ZodString;
|
|
21
|
+
organizationId: ZodString;
|
|
22
|
+
visitorId: ZodNullable<ZodString>;
|
|
23
|
+
userId: ZodNullable<ZodString>;
|
|
24
|
+
connectionId: ZodString;
|
|
25
|
+
}, $strip>;
|
|
26
|
+
readonly visitorConnected: ZodObject<{
|
|
27
|
+
websiteId: ZodString;
|
|
28
|
+
organizationId: ZodString;
|
|
29
|
+
userId: ZodNullable<ZodString>;
|
|
30
|
+
visitorId: ZodString;
|
|
31
|
+
connectionId: ZodString;
|
|
32
|
+
}, $strip>;
|
|
33
|
+
readonly visitorDisconnected: ZodObject<{
|
|
34
|
+
websiteId: ZodString;
|
|
35
|
+
organizationId: ZodString;
|
|
36
|
+
userId: ZodNullable<ZodString>;
|
|
37
|
+
visitorId: ZodString;
|
|
38
|
+
connectionId: ZodString;
|
|
39
|
+
}, $strip>;
|
|
40
|
+
readonly userPresenceUpdate: ZodObject<{
|
|
41
|
+
websiteId: ZodString;
|
|
42
|
+
organizationId: ZodString;
|
|
43
|
+
visitorId: ZodNullable<ZodString>;
|
|
44
|
+
userId: ZodString;
|
|
45
|
+
status: ZodEnum<{
|
|
44
46
|
online: "online";
|
|
45
47
|
away: "away";
|
|
46
48
|
offline: "offline";
|
|
47
49
|
}>;
|
|
48
|
-
lastSeen:
|
|
49
|
-
},
|
|
50
|
-
readonly conversationSeen:
|
|
51
|
-
websiteId:
|
|
52
|
-
organizationId:
|
|
53
|
-
visitorId:
|
|
54
|
-
userId:
|
|
55
|
-
conversationId:
|
|
56
|
-
aiAgentId:
|
|
57
|
-
lastSeenAt:
|
|
58
|
-
},
|
|
59
|
-
readonly conversationTyping:
|
|
60
|
-
websiteId:
|
|
61
|
-
organizationId:
|
|
62
|
-
visitorId:
|
|
63
|
-
userId:
|
|
64
|
-
conversationId:
|
|
65
|
-
aiAgentId:
|
|
66
|
-
isTyping:
|
|
67
|
-
visitorPreview:
|
|
68
|
-
},
|
|
69
|
-
readonly timelineItemCreated:
|
|
70
|
-
websiteId:
|
|
71
|
-
organizationId:
|
|
72
|
-
visitorId:
|
|
73
|
-
userId:
|
|
74
|
-
conversationId:
|
|
75
|
-
item:
|
|
76
|
-
id:
|
|
77
|
-
conversationId:
|
|
78
|
-
organizationId:
|
|
79
|
-
visibility:
|
|
50
|
+
lastSeen: ZodString;
|
|
51
|
+
}, $strip>;
|
|
52
|
+
readonly conversationSeen: ZodObject<{
|
|
53
|
+
websiteId: ZodString;
|
|
54
|
+
organizationId: ZodString;
|
|
55
|
+
visitorId: ZodNullable<ZodString>;
|
|
56
|
+
userId: ZodNullable<ZodString>;
|
|
57
|
+
conversationId: ZodString;
|
|
58
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
59
|
+
lastSeenAt: ZodString;
|
|
60
|
+
}, $strip>;
|
|
61
|
+
readonly conversationTyping: ZodObject<{
|
|
62
|
+
websiteId: ZodString;
|
|
63
|
+
organizationId: ZodString;
|
|
64
|
+
visitorId: ZodNullable<ZodString>;
|
|
65
|
+
userId: ZodNullable<ZodString>;
|
|
66
|
+
conversationId: ZodString;
|
|
67
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
68
|
+
isTyping: ZodBoolean;
|
|
69
|
+
visitorPreview: ZodOptional<ZodNullable<ZodString>>;
|
|
70
|
+
}, $strip>;
|
|
71
|
+
readonly timelineItemCreated: ZodObject<{
|
|
72
|
+
websiteId: ZodString;
|
|
73
|
+
organizationId: ZodString;
|
|
74
|
+
visitorId: ZodNullable<ZodString>;
|
|
75
|
+
userId: ZodNullable<ZodString>;
|
|
76
|
+
conversationId: ZodString;
|
|
77
|
+
item: ZodObject<{
|
|
78
|
+
id: ZodString;
|
|
79
|
+
conversationId: ZodString;
|
|
80
|
+
organizationId: ZodString;
|
|
81
|
+
visibility: ZodEnum<{
|
|
80
82
|
public: "public";
|
|
81
83
|
private: "private";
|
|
82
84
|
}>;
|
|
83
|
-
type:
|
|
85
|
+
type: ZodEnum<{
|
|
84
86
|
message: "message";
|
|
85
87
|
event: "event";
|
|
86
88
|
identification: "identification";
|
|
87
89
|
}>;
|
|
88
|
-
text:
|
|
89
|
-
parts:
|
|
90
|
-
userId:
|
|
91
|
-
visitorId:
|
|
92
|
-
aiAgentId:
|
|
93
|
-
createdAt:
|
|
94
|
-
deletedAt:
|
|
95
|
-
tool:
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
readonly conversationCreated:
|
|
99
|
-
websiteId:
|
|
100
|
-
organizationId:
|
|
101
|
-
visitorId:
|
|
102
|
-
userId:
|
|
103
|
-
conversationId:
|
|
104
|
-
conversation:
|
|
105
|
-
id:
|
|
106
|
-
title:
|
|
107
|
-
createdAt:
|
|
108
|
-
updatedAt:
|
|
109
|
-
visitorId:
|
|
110
|
-
websiteId:
|
|
111
|
-
status:
|
|
90
|
+
text: ZodNullable<ZodString>;
|
|
91
|
+
parts: ZodArray<ZodUnknown>;
|
|
92
|
+
userId: ZodNullable<ZodString>;
|
|
93
|
+
visitorId: ZodNullable<ZodString>;
|
|
94
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
95
|
+
createdAt: ZodString;
|
|
96
|
+
deletedAt: ZodNullable<ZodString>;
|
|
97
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
98
|
+
}, $strip>;
|
|
99
|
+
}, $strip>;
|
|
100
|
+
readonly conversationCreated: ZodObject<{
|
|
101
|
+
websiteId: ZodString;
|
|
102
|
+
organizationId: ZodString;
|
|
103
|
+
visitorId: ZodNullable<ZodString>;
|
|
104
|
+
userId: ZodNullable<ZodString>;
|
|
105
|
+
conversationId: ZodString;
|
|
106
|
+
conversation: ZodObject<{
|
|
107
|
+
id: ZodString;
|
|
108
|
+
title: ZodOptional<ZodString>;
|
|
109
|
+
createdAt: ZodString;
|
|
110
|
+
updatedAt: ZodString;
|
|
111
|
+
visitorId: ZodString;
|
|
112
|
+
websiteId: ZodString;
|
|
113
|
+
status: ZodDefault<ZodEnum<{
|
|
112
114
|
resolved: "resolved";
|
|
113
115
|
open: "open";
|
|
114
116
|
spam: "spam";
|
|
115
117
|
}>>;
|
|
116
|
-
deletedAt:
|
|
117
|
-
lastTimelineItem:
|
|
118
|
-
id:
|
|
119
|
-
conversationId:
|
|
120
|
-
organizationId:
|
|
121
|
-
visibility:
|
|
118
|
+
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
119
|
+
lastTimelineItem: ZodOptional<ZodObject<{
|
|
120
|
+
id: ZodOptional<ZodString>;
|
|
121
|
+
conversationId: ZodString;
|
|
122
|
+
organizationId: ZodString;
|
|
123
|
+
visibility: ZodEnum<{
|
|
122
124
|
public: "public";
|
|
123
125
|
private: "private";
|
|
124
126
|
}>;
|
|
125
|
-
type:
|
|
127
|
+
type: ZodEnum<{
|
|
126
128
|
message: "message";
|
|
127
129
|
event: "event";
|
|
128
130
|
identification: "identification";
|
|
129
131
|
}>;
|
|
130
|
-
text:
|
|
131
|
-
tool:
|
|
132
|
-
parts:
|
|
133
|
-
type:
|
|
134
|
-
text:
|
|
135
|
-
},
|
|
136
|
-
type:
|
|
137
|
-
eventType:
|
|
132
|
+
text: ZodNullable<ZodString>;
|
|
133
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
134
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
135
|
+
type: ZodLiteral<"text">;
|
|
136
|
+
text: ZodString;
|
|
137
|
+
}, $strip>, ZodObject<{
|
|
138
|
+
type: ZodLiteral<"event">;
|
|
139
|
+
eventType: ZodEnum<{
|
|
138
140
|
assigned: "assigned";
|
|
139
141
|
unassigned: "unassigned";
|
|
140
142
|
participant_requested: "participant_requested";
|
|
@@ -150,97 +152,97 @@ declare const realtimeSchema: {
|
|
|
150
152
|
visitor_unblocked: "visitor_unblocked";
|
|
151
153
|
visitor_identified: "visitor_identified";
|
|
152
154
|
}>;
|
|
153
|
-
actorUserId:
|
|
154
|
-
actorAiAgentId:
|
|
155
|
-
targetUserId:
|
|
156
|
-
targetAiAgentId:
|
|
157
|
-
message:
|
|
158
|
-
},
|
|
159
|
-
type:
|
|
160
|
-
url:
|
|
161
|
-
mediaType:
|
|
162
|
-
fileName:
|
|
163
|
-
size:
|
|
164
|
-
width:
|
|
165
|
-
height:
|
|
166
|
-
},
|
|
167
|
-
type:
|
|
168
|
-
url:
|
|
169
|
-
mediaType:
|
|
170
|
-
fileName:
|
|
171
|
-
size:
|
|
172
|
-
},
|
|
173
|
-
userId:
|
|
174
|
-
aiAgentId:
|
|
175
|
-
visitorId:
|
|
176
|
-
createdAt:
|
|
177
|
-
deletedAt:
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
header:
|
|
181
|
-
id:
|
|
182
|
-
status:
|
|
155
|
+
actorUserId: ZodNullable<ZodString>;
|
|
156
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
157
|
+
targetUserId: ZodNullable<ZodString>;
|
|
158
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
159
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
160
|
+
}, $strip>, ZodObject<{
|
|
161
|
+
type: ZodLiteral<"image">;
|
|
162
|
+
url: ZodString;
|
|
163
|
+
mediaType: ZodString;
|
|
164
|
+
fileName: ZodOptional<ZodString>;
|
|
165
|
+
size: ZodOptional<ZodNumber>;
|
|
166
|
+
width: ZodOptional<ZodNumber>;
|
|
167
|
+
height: ZodOptional<ZodNumber>;
|
|
168
|
+
}, $strip>, ZodObject<{
|
|
169
|
+
type: ZodLiteral<"file">;
|
|
170
|
+
url: ZodString;
|
|
171
|
+
mediaType: ZodString;
|
|
172
|
+
fileName: ZodOptional<ZodString>;
|
|
173
|
+
size: ZodOptional<ZodNumber>;
|
|
174
|
+
}, $strip>]>>;
|
|
175
|
+
userId: ZodNullable<ZodString>;
|
|
176
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
177
|
+
visitorId: ZodNullable<ZodString>;
|
|
178
|
+
createdAt: ZodString;
|
|
179
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
180
|
+
}, $strip>>;
|
|
181
|
+
}, $strip>;
|
|
182
|
+
header: ZodObject<{
|
|
183
|
+
id: ZodString;
|
|
184
|
+
status: ZodEnum<{
|
|
183
185
|
resolved: "resolved";
|
|
184
186
|
open: "open";
|
|
185
187
|
spam: "spam";
|
|
186
188
|
}>;
|
|
187
|
-
priority:
|
|
189
|
+
priority: ZodEnum<{
|
|
190
|
+
normal: "normal";
|
|
188
191
|
high: "high";
|
|
189
192
|
low: "low";
|
|
190
|
-
normal: "normal";
|
|
191
193
|
urgent: "urgent";
|
|
192
194
|
}>;
|
|
193
|
-
organizationId:
|
|
194
|
-
visitorId:
|
|
195
|
-
visitor:
|
|
196
|
-
id:
|
|
197
|
-
lastSeenAt:
|
|
198
|
-
blockedAt:
|
|
199
|
-
blockedByUserId:
|
|
200
|
-
isBlocked:
|
|
201
|
-
contact:
|
|
202
|
-
id:
|
|
203
|
-
name:
|
|
204
|
-
email:
|
|
205
|
-
image:
|
|
206
|
-
metadataHash:
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
websiteId:
|
|
210
|
-
channel:
|
|
211
|
-
title:
|
|
212
|
-
resolutionTime:
|
|
213
|
-
startedAt:
|
|
214
|
-
firstResponseAt:
|
|
215
|
-
resolvedAt:
|
|
216
|
-
resolvedByUserId:
|
|
217
|
-
resolvedByAiAgentId:
|
|
218
|
-
createdAt:
|
|
219
|
-
updatedAt:
|
|
220
|
-
deletedAt:
|
|
221
|
-
lastMessageAt:
|
|
222
|
-
lastSeenAt:
|
|
223
|
-
lastTimelineItem:
|
|
224
|
-
id:
|
|
225
|
-
conversationId:
|
|
226
|
-
organizationId:
|
|
227
|
-
visibility:
|
|
195
|
+
organizationId: ZodString;
|
|
196
|
+
visitorId: ZodString;
|
|
197
|
+
visitor: ZodObject<{
|
|
198
|
+
id: ZodULID;
|
|
199
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
200
|
+
blockedAt: ZodNullable<ZodString>;
|
|
201
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
202
|
+
isBlocked: ZodBoolean;
|
|
203
|
+
contact: ZodNullable<ZodObject<{
|
|
204
|
+
id: ZodULID;
|
|
205
|
+
name: ZodNullable<ZodString>;
|
|
206
|
+
email: ZodNullable<ZodString>;
|
|
207
|
+
image: ZodNullable<ZodString>;
|
|
208
|
+
metadataHash: ZodOptional<ZodString>;
|
|
209
|
+
}, $strip>>;
|
|
210
|
+
}, $strip>;
|
|
211
|
+
websiteId: ZodString;
|
|
212
|
+
channel: ZodString;
|
|
213
|
+
title: ZodNullable<ZodString>;
|
|
214
|
+
resolutionTime: ZodNullable<ZodNumber>;
|
|
215
|
+
startedAt: ZodNullable<ZodString>;
|
|
216
|
+
firstResponseAt: ZodNullable<ZodString>;
|
|
217
|
+
resolvedAt: ZodNullable<ZodString>;
|
|
218
|
+
resolvedByUserId: ZodNullable<ZodString>;
|
|
219
|
+
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
220
|
+
createdAt: ZodString;
|
|
221
|
+
updatedAt: ZodString;
|
|
222
|
+
deletedAt: ZodNullable<ZodString>;
|
|
223
|
+
lastMessageAt: ZodNullable<ZodString>;
|
|
224
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
225
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
226
|
+
id: ZodOptional<ZodString>;
|
|
227
|
+
conversationId: ZodString;
|
|
228
|
+
organizationId: ZodString;
|
|
229
|
+
visibility: ZodEnum<{
|
|
228
230
|
public: "public";
|
|
229
231
|
private: "private";
|
|
230
232
|
}>;
|
|
231
|
-
type:
|
|
233
|
+
type: ZodEnum<{
|
|
232
234
|
message: "message";
|
|
233
235
|
event: "event";
|
|
234
236
|
identification: "identification";
|
|
235
237
|
}>;
|
|
236
|
-
text:
|
|
237
|
-
tool:
|
|
238
|
-
parts:
|
|
239
|
-
type:
|
|
240
|
-
text:
|
|
241
|
-
},
|
|
242
|
-
type:
|
|
243
|
-
eventType:
|
|
238
|
+
text: ZodNullable<ZodString>;
|
|
239
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
240
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
241
|
+
type: ZodLiteral<"text">;
|
|
242
|
+
text: ZodString;
|
|
243
|
+
}, $strip>, ZodObject<{
|
|
244
|
+
type: ZodLiteral<"event">;
|
|
245
|
+
eventType: ZodEnum<{
|
|
244
246
|
assigned: "assigned";
|
|
245
247
|
unassigned: "unassigned";
|
|
246
248
|
participant_requested: "participant_requested";
|
|
@@ -256,97 +258,97 @@ declare const realtimeSchema: {
|
|
|
256
258
|
visitor_unblocked: "visitor_unblocked";
|
|
257
259
|
visitor_identified: "visitor_identified";
|
|
258
260
|
}>;
|
|
259
|
-
actorUserId:
|
|
260
|
-
actorAiAgentId:
|
|
261
|
-
targetUserId:
|
|
262
|
-
targetAiAgentId:
|
|
263
|
-
message:
|
|
264
|
-
},
|
|
265
|
-
type:
|
|
266
|
-
url:
|
|
267
|
-
mediaType:
|
|
268
|
-
fileName:
|
|
269
|
-
size:
|
|
270
|
-
width:
|
|
271
|
-
height:
|
|
272
|
-
},
|
|
273
|
-
type:
|
|
274
|
-
url:
|
|
275
|
-
mediaType:
|
|
276
|
-
fileName:
|
|
277
|
-
size:
|
|
278
|
-
},
|
|
279
|
-
userId:
|
|
280
|
-
aiAgentId:
|
|
281
|
-
visitorId:
|
|
282
|
-
createdAt:
|
|
283
|
-
deletedAt:
|
|
284
|
-
},
|
|
285
|
-
viewIds:
|
|
286
|
-
seenData:
|
|
287
|
-
id:
|
|
288
|
-
conversationId:
|
|
289
|
-
userId:
|
|
290
|
-
visitorId:
|
|
291
|
-
aiAgentId:
|
|
292
|
-
lastSeenAt:
|
|
293
|
-
createdAt:
|
|
294
|
-
updatedAt:
|
|
295
|
-
deletedAt:
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
readonly visitorIdentified:
|
|
300
|
-
websiteId:
|
|
301
|
-
organizationId:
|
|
302
|
-
userId:
|
|
303
|
-
visitorId:
|
|
304
|
-
visitor:
|
|
305
|
-
id:
|
|
306
|
-
browser:
|
|
307
|
-
browserVersion:
|
|
308
|
-
os:
|
|
309
|
-
osVersion:
|
|
310
|
-
device:
|
|
311
|
-
deviceType:
|
|
312
|
-
ip:
|
|
313
|
-
city:
|
|
314
|
-
region:
|
|
315
|
-
country:
|
|
316
|
-
countryCode:
|
|
317
|
-
latitude:
|
|
318
|
-
longitude:
|
|
319
|
-
language:
|
|
320
|
-
timezone:
|
|
321
|
-
screenResolution:
|
|
322
|
-
viewport:
|
|
323
|
-
createdAt:
|
|
324
|
-
updatedAt:
|
|
325
|
-
lastSeenAt:
|
|
326
|
-
websiteId:
|
|
327
|
-
organizationId:
|
|
328
|
-
blockedAt:
|
|
329
|
-
blockedByUserId:
|
|
330
|
-
isBlocked:
|
|
331
|
-
contact:
|
|
332
|
-
id:
|
|
333
|
-
externalId:
|
|
334
|
-
name:
|
|
335
|
-
email:
|
|
336
|
-
image:
|
|
337
|
-
metadata:
|
|
338
|
-
contactOrganizationId:
|
|
339
|
-
websiteId:
|
|
340
|
-
organizationId:
|
|
341
|
-
userId:
|
|
342
|
-
createdAt:
|
|
343
|
-
updatedAt:
|
|
344
|
-
},
|
|
345
|
-
},
|
|
346
|
-
},
|
|
261
|
+
actorUserId: ZodNullable<ZodString>;
|
|
262
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
263
|
+
targetUserId: ZodNullable<ZodString>;
|
|
264
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
265
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
266
|
+
}, $strip>, ZodObject<{
|
|
267
|
+
type: ZodLiteral<"image">;
|
|
268
|
+
url: ZodString;
|
|
269
|
+
mediaType: ZodString;
|
|
270
|
+
fileName: ZodOptional<ZodString>;
|
|
271
|
+
size: ZodOptional<ZodNumber>;
|
|
272
|
+
width: ZodOptional<ZodNumber>;
|
|
273
|
+
height: ZodOptional<ZodNumber>;
|
|
274
|
+
}, $strip>, ZodObject<{
|
|
275
|
+
type: ZodLiteral<"file">;
|
|
276
|
+
url: ZodString;
|
|
277
|
+
mediaType: ZodString;
|
|
278
|
+
fileName: ZodOptional<ZodString>;
|
|
279
|
+
size: ZodOptional<ZodNumber>;
|
|
280
|
+
}, $strip>]>>;
|
|
281
|
+
userId: ZodNullable<ZodString>;
|
|
282
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
283
|
+
visitorId: ZodNullable<ZodString>;
|
|
284
|
+
createdAt: ZodString;
|
|
285
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
286
|
+
}, $strip>>;
|
|
287
|
+
viewIds: ZodArray<ZodString>;
|
|
288
|
+
seenData: ZodArray<ZodObject<{
|
|
289
|
+
id: ZodString;
|
|
290
|
+
conversationId: ZodString;
|
|
291
|
+
userId: ZodNullable<ZodString>;
|
|
292
|
+
visitorId: ZodNullable<ZodString>;
|
|
293
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
294
|
+
lastSeenAt: ZodString;
|
|
295
|
+
createdAt: ZodString;
|
|
296
|
+
updatedAt: ZodString;
|
|
297
|
+
deletedAt: ZodNullable<ZodString>;
|
|
298
|
+
}, $strip>>;
|
|
299
|
+
}, $strip>;
|
|
300
|
+
}, $strip>;
|
|
301
|
+
readonly visitorIdentified: ZodObject<{
|
|
302
|
+
websiteId: ZodString;
|
|
303
|
+
organizationId: ZodString;
|
|
304
|
+
userId: ZodNullable<ZodString>;
|
|
305
|
+
visitorId: ZodString;
|
|
306
|
+
visitor: ZodObject<{
|
|
307
|
+
id: ZodULID;
|
|
308
|
+
browser: ZodNullable<ZodString>;
|
|
309
|
+
browserVersion: ZodNullable<ZodString>;
|
|
310
|
+
os: ZodNullable<ZodString>;
|
|
311
|
+
osVersion: ZodNullable<ZodString>;
|
|
312
|
+
device: ZodNullable<ZodString>;
|
|
313
|
+
deviceType: ZodNullable<ZodString>;
|
|
314
|
+
ip: ZodNullable<ZodString>;
|
|
315
|
+
city: ZodNullable<ZodString>;
|
|
316
|
+
region: ZodNullable<ZodString>;
|
|
317
|
+
country: ZodNullable<ZodString>;
|
|
318
|
+
countryCode: ZodNullable<ZodString>;
|
|
319
|
+
latitude: ZodNullable<ZodNumber>;
|
|
320
|
+
longitude: ZodNullable<ZodNumber>;
|
|
321
|
+
language: ZodNullable<ZodString>;
|
|
322
|
+
timezone: ZodNullable<ZodString>;
|
|
323
|
+
screenResolution: ZodNullable<ZodString>;
|
|
324
|
+
viewport: ZodNullable<ZodString>;
|
|
325
|
+
createdAt: ZodString;
|
|
326
|
+
updatedAt: ZodString;
|
|
327
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
328
|
+
websiteId: ZodULID;
|
|
329
|
+
organizationId: ZodULID;
|
|
330
|
+
blockedAt: ZodNullable<ZodString>;
|
|
331
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
332
|
+
isBlocked: ZodBoolean;
|
|
333
|
+
contact: ZodNullable<ZodObject<{
|
|
334
|
+
id: ZodULID;
|
|
335
|
+
externalId: ZodNullable<ZodString>;
|
|
336
|
+
name: ZodNullable<ZodString>;
|
|
337
|
+
email: ZodNullable<ZodEmail>;
|
|
338
|
+
image: ZodNullable<ZodURL>;
|
|
339
|
+
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
340
|
+
contactOrganizationId: ZodNullable<ZodULID>;
|
|
341
|
+
websiteId: ZodULID;
|
|
342
|
+
organizationId: ZodULID;
|
|
343
|
+
userId: ZodNullable<ZodULID>;
|
|
344
|
+
createdAt: ZodString;
|
|
345
|
+
updatedAt: ZodString;
|
|
346
|
+
}, $strip>>;
|
|
347
|
+
}, $strip>;
|
|
348
|
+
}, $strip>;
|
|
347
349
|
};
|
|
348
350
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
349
|
-
type RealtimeEventPayload<T extends RealtimeEventType> =
|
|
351
|
+
type RealtimeEventPayload<T extends RealtimeEventType> = output<(typeof realtimeSchema)[T]>;
|
|
350
352
|
type RealtimeEvent<T extends RealtimeEventType> = {
|
|
351
353
|
type: T;
|
|
352
354
|
payload: RealtimeEventPayload<T>;
|
package/realtime-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAiBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmED,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB"}
|
package/registries.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { $ZodType } from "./schemas.js";
|
|
2
|
+
import { input, output } from "./core.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/registries.d.cts
|
|
5
|
+
declare const $output: unique symbol;
|
|
6
|
+
type $output = typeof $output;
|
|
7
|
+
declare const $input: unique symbol;
|
|
8
|
+
type $input = typeof $input;
|
|
9
|
+
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
|
|
10
|
+
type MetadataType = object | undefined;
|
|
11
|
+
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
12
|
+
_meta: Meta;
|
|
13
|
+
_schema: Schema;
|
|
14
|
+
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
|
15
|
+
_idmap: Map<string, Schema>;
|
|
16
|
+
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
17
|
+
clear(): this;
|
|
18
|
+
remove(schema: Schema): this;
|
|
19
|
+
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
20
|
+
has(schema: Schema): boolean;
|
|
21
|
+
}
|
|
22
|
+
interface JSONSchemaMeta {
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
deprecated?: boolean | undefined;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
interface GlobalMeta extends JSONSchemaMeta {}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { $ZodRegistry, $replace, GlobalMeta };
|
|
32
|
+
//# sourceMappingURL=registries.d.ts.map
|