@cossistant/types 0.0.23 → 0.0.25
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/common.d.ts +17 -20
- package/api/common.d.ts.map +1 -1
- package/api/contact.d.ts +99 -101
- package/api/contact.d.ts.map +1 -1
- package/api/conversation.d.ts +322 -326
- package/api/conversation.d.ts.map +1 -1
- package/api/notification.d.ts +70 -73
- package/api/notification.d.ts.map +1 -1
- package/api/organization.d.ts +7 -9
- package/api/organization.d.ts.map +1 -1
- package/api/timeline-item.d.ts +261 -265
- package/api/timeline-item.d.ts.map +1 -1
- package/api/upload.d.ts +95 -98
- package/api/upload.d.ts.map +1 -1
- package/api/user.d.ts +19 -21
- package/api/user.d.ts.map +1 -1
- package/api/visitor.d.ts +110 -112
- package/api/visitor.d.ts.map +1 -1
- package/api/website.d.ts +177 -179
- package/api/website.d.ts.map +1 -1
- package/package.json +1 -1
- package/realtime-events.d.ts +330 -332
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +80 -82
- package/schemas.d.ts.map +1 -1
- package/trpc/contact.d.ts +78 -74
- package/trpc/contact.d.ts.map +1 -1
- package/trpc/contact.js +7 -4
- package/trpc/contact.js.map +1 -1
- package/trpc/conversation.d.ts +328 -330
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/visitor.d.ts +105 -107
- package/trpc/visitor.d.ts.map +1 -1
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -121
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas2.d.ts +0 -685
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts +0 -325
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -59
- package/standard-schema.d.ts.map +0 -1
- package/util.d.ts +0 -41
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
package/realtime-events.d.ts
CHANGED
|
@@ -1,147 +1,145 @@
|
|
|
1
|
-
import {
|
|
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 "./schemas3.js";
|
|
1
|
+
import { z } from "zod";
|
|
4
2
|
|
|
5
3
|
//#region src/realtime-events.d.ts
|
|
6
|
-
declare const baseRealtimeEvent: ZodObject<{
|
|
7
|
-
websiteId: ZodString;
|
|
8
|
-
organizationId: ZodString;
|
|
9
|
-
visitorId: ZodNullable<ZodString>;
|
|
10
|
-
userId: ZodNullable<ZodString>;
|
|
11
|
-
},
|
|
4
|
+
declare const baseRealtimeEvent: z.ZodObject<{
|
|
5
|
+
websiteId: z.ZodString;
|
|
6
|
+
organizationId: z.ZodString;
|
|
7
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
8
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
12
10
|
/**
|
|
13
11
|
* Central event system for real-time communication
|
|
14
12
|
* All WebSocket and Redis Pub/Sub events are defined here
|
|
15
13
|
*/
|
|
16
14
|
declare const realtimeSchema: {
|
|
17
|
-
readonly userConnected: ZodObject<{
|
|
18
|
-
websiteId: ZodString;
|
|
19
|
-
organizationId: ZodString;
|
|
20
|
-
visitorId: ZodNullable<ZodString>;
|
|
21
|
-
userId: ZodNullable<ZodString>;
|
|
22
|
-
connectionId: ZodString;
|
|
23
|
-
},
|
|
24
|
-
readonly userDisconnected: ZodObject<{
|
|
25
|
-
websiteId: ZodString;
|
|
26
|
-
organizationId: ZodString;
|
|
27
|
-
visitorId: ZodNullable<ZodString>;
|
|
28
|
-
userId: ZodNullable<ZodString>;
|
|
29
|
-
connectionId: ZodString;
|
|
30
|
-
},
|
|
31
|
-
readonly visitorConnected: ZodObject<{
|
|
32
|
-
websiteId: ZodString;
|
|
33
|
-
organizationId: ZodString;
|
|
34
|
-
userId: ZodNullable<ZodString>;
|
|
35
|
-
visitorId: ZodString;
|
|
36
|
-
connectionId: ZodString;
|
|
37
|
-
},
|
|
38
|
-
readonly visitorDisconnected: ZodObject<{
|
|
39
|
-
websiteId: ZodString;
|
|
40
|
-
organizationId: ZodString;
|
|
41
|
-
userId: ZodNullable<ZodString>;
|
|
42
|
-
visitorId: ZodString;
|
|
43
|
-
connectionId: ZodString;
|
|
44
|
-
},
|
|
45
|
-
readonly userPresenceUpdate: ZodObject<{
|
|
46
|
-
websiteId: ZodString;
|
|
47
|
-
organizationId: ZodString;
|
|
48
|
-
visitorId: ZodNullable<ZodString>;
|
|
49
|
-
userId: ZodString;
|
|
50
|
-
status: ZodEnum<{
|
|
15
|
+
readonly userConnected: z.ZodObject<{
|
|
16
|
+
websiteId: z.ZodString;
|
|
17
|
+
organizationId: z.ZodString;
|
|
18
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
readonly userDisconnected: z.ZodObject<{
|
|
23
|
+
websiteId: z.ZodString;
|
|
24
|
+
organizationId: z.ZodString;
|
|
25
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
readonly visitorConnected: z.ZodObject<{
|
|
30
|
+
websiteId: z.ZodString;
|
|
31
|
+
organizationId: z.ZodString;
|
|
32
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
33
|
+
visitorId: z.ZodString;
|
|
34
|
+
connectionId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
readonly visitorDisconnected: z.ZodObject<{
|
|
37
|
+
websiteId: z.ZodString;
|
|
38
|
+
organizationId: z.ZodString;
|
|
39
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
visitorId: z.ZodString;
|
|
41
|
+
connectionId: z.ZodString;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
readonly userPresenceUpdate: z.ZodObject<{
|
|
44
|
+
websiteId: z.ZodString;
|
|
45
|
+
organizationId: z.ZodString;
|
|
46
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
47
|
+
userId: z.ZodString;
|
|
48
|
+
status: z.ZodEnum<{
|
|
51
49
|
online: "online";
|
|
52
50
|
away: "away";
|
|
53
51
|
offline: "offline";
|
|
54
52
|
}>;
|
|
55
|
-
lastSeen: ZodString;
|
|
56
|
-
},
|
|
57
|
-
readonly conversationSeen: ZodObject<{
|
|
58
|
-
websiteId: ZodString;
|
|
59
|
-
organizationId: ZodString;
|
|
60
|
-
visitorId: ZodNullable<ZodString>;
|
|
61
|
-
userId: ZodNullable<ZodString>;
|
|
62
|
-
conversationId: ZodString;
|
|
63
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
64
|
-
lastSeenAt: ZodString;
|
|
65
|
-
},
|
|
66
|
-
readonly conversationTyping: ZodObject<{
|
|
67
|
-
websiteId: ZodString;
|
|
68
|
-
organizationId: ZodString;
|
|
69
|
-
visitorId: ZodNullable<ZodString>;
|
|
70
|
-
userId: ZodNullable<ZodString>;
|
|
71
|
-
conversationId: ZodString;
|
|
72
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
73
|
-
isTyping: ZodBoolean;
|
|
74
|
-
visitorPreview: ZodOptional<ZodNullable<ZodString>>;
|
|
75
|
-
},
|
|
76
|
-
readonly timelineItemCreated: ZodObject<{
|
|
77
|
-
websiteId: ZodString;
|
|
78
|
-
organizationId: ZodString;
|
|
79
|
-
visitorId: ZodNullable<ZodString>;
|
|
80
|
-
userId: ZodNullable<ZodString>;
|
|
81
|
-
conversationId: ZodString;
|
|
82
|
-
item: ZodObject<{
|
|
83
|
-
id: ZodString;
|
|
84
|
-
conversationId: ZodString;
|
|
85
|
-
organizationId: ZodString;
|
|
86
|
-
visibility: ZodEnum<{
|
|
87
|
-
private: "private";
|
|
53
|
+
lastSeen: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
readonly conversationSeen: z.ZodObject<{
|
|
56
|
+
websiteId: z.ZodString;
|
|
57
|
+
organizationId: z.ZodString;
|
|
58
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
60
|
+
conversationId: z.ZodString;
|
|
61
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
lastSeenAt: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
readonly conversationTyping: z.ZodObject<{
|
|
65
|
+
websiteId: z.ZodString;
|
|
66
|
+
organizationId: z.ZodString;
|
|
67
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
68
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
69
|
+
conversationId: z.ZodString;
|
|
70
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
71
|
+
isTyping: z.ZodBoolean;
|
|
72
|
+
visitorPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
readonly timelineItemCreated: z.ZodObject<{
|
|
75
|
+
websiteId: z.ZodString;
|
|
76
|
+
organizationId: z.ZodString;
|
|
77
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
78
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
79
|
+
conversationId: z.ZodString;
|
|
80
|
+
item: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
conversationId: z.ZodString;
|
|
83
|
+
organizationId: z.ZodString;
|
|
84
|
+
visibility: z.ZodEnum<{
|
|
88
85
|
public: "public";
|
|
86
|
+
private: "private";
|
|
89
87
|
}>;
|
|
90
|
-
type: ZodEnum<{
|
|
88
|
+
type: z.ZodEnum<{
|
|
91
89
|
message: "message";
|
|
92
90
|
event: "event";
|
|
93
91
|
identification: "identification";
|
|
94
92
|
}>;
|
|
95
|
-
text: ZodNullable<ZodString>;
|
|
96
|
-
parts: ZodArray<ZodUnknown>;
|
|
97
|
-
userId: ZodNullable<ZodString>;
|
|
98
|
-
visitorId: ZodNullable<ZodString>;
|
|
99
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
100
|
-
createdAt: ZodString;
|
|
101
|
-
deletedAt: ZodNullable<ZodString>;
|
|
102
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
readonly conversationCreated: ZodObject<{
|
|
106
|
-
websiteId: ZodString;
|
|
107
|
-
organizationId: ZodString;
|
|
108
|
-
visitorId: ZodNullable<ZodString>;
|
|
109
|
-
userId: ZodNullable<ZodString>;
|
|
110
|
-
conversationId: ZodString;
|
|
111
|
-
conversation: ZodObject<{
|
|
112
|
-
id: ZodString;
|
|
113
|
-
title: ZodOptional<ZodString>;
|
|
114
|
-
createdAt: ZodString;
|
|
115
|
-
updatedAt: ZodString;
|
|
116
|
-
visitorId: ZodString;
|
|
117
|
-
websiteId: ZodString;
|
|
118
|
-
status: ZodDefault<ZodEnum<{
|
|
93
|
+
text: z.ZodNullable<z.ZodString>;
|
|
94
|
+
parts: z.ZodArray<z.ZodUnknown>;
|
|
95
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
96
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
97
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
98
|
+
createdAt: z.ZodString;
|
|
99
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
100
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
readonly conversationCreated: z.ZodObject<{
|
|
104
|
+
websiteId: z.ZodString;
|
|
105
|
+
organizationId: z.ZodString;
|
|
106
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
107
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
108
|
+
conversationId: z.ZodString;
|
|
109
|
+
conversation: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
title: z.ZodOptional<z.ZodString>;
|
|
112
|
+
createdAt: z.ZodString;
|
|
113
|
+
updatedAt: z.ZodString;
|
|
114
|
+
visitorId: z.ZodString;
|
|
115
|
+
websiteId: z.ZodString;
|
|
116
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
119
117
|
open: "open";
|
|
120
118
|
resolved: "resolved";
|
|
121
119
|
spam: "spam";
|
|
122
120
|
}>>;
|
|
123
|
-
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
124
|
-
lastTimelineItem: ZodOptional<ZodObject<{
|
|
125
|
-
id: ZodOptional<ZodString>;
|
|
126
|
-
conversationId: ZodString;
|
|
127
|
-
organizationId: ZodString;
|
|
128
|
-
visibility: ZodEnum<{
|
|
129
|
-
private: "private";
|
|
121
|
+
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
id: z.ZodOptional<z.ZodString>;
|
|
124
|
+
conversationId: z.ZodString;
|
|
125
|
+
organizationId: z.ZodString;
|
|
126
|
+
visibility: z.ZodEnum<{
|
|
130
127
|
public: "public";
|
|
128
|
+
private: "private";
|
|
131
129
|
}>;
|
|
132
|
-
type: ZodEnum<{
|
|
130
|
+
type: z.ZodEnum<{
|
|
133
131
|
message: "message";
|
|
134
132
|
event: "event";
|
|
135
133
|
identification: "identification";
|
|
136
134
|
}>;
|
|
137
|
-
text: ZodNullable<ZodString>;
|
|
138
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
139
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
140
|
-
type: ZodLiteral<"text">;
|
|
141
|
-
text: ZodString;
|
|
142
|
-
},
|
|
143
|
-
type: ZodLiteral<"event">;
|
|
144
|
-
eventType: ZodEnum<{
|
|
135
|
+
text: z.ZodNullable<z.ZodString>;
|
|
136
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
138
|
+
type: z.ZodLiteral<"text">;
|
|
139
|
+
text: z.ZodString;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"event">;
|
|
142
|
+
eventType: z.ZodEnum<{
|
|
145
143
|
resolved: "resolved";
|
|
146
144
|
assigned: "assigned";
|
|
147
145
|
unassigned: "unassigned";
|
|
@@ -157,104 +155,104 @@ declare const realtimeSchema: {
|
|
|
157
155
|
visitor_unblocked: "visitor_unblocked";
|
|
158
156
|
visitor_identified: "visitor_identified";
|
|
159
157
|
}>;
|
|
160
|
-
actorUserId: ZodNullable<ZodString>;
|
|
161
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
162
|
-
targetUserId: ZodNullable<ZodString>;
|
|
163
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
164
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
165
|
-
},
|
|
166
|
-
type: ZodLiteral<"image">;
|
|
167
|
-
url: ZodString;
|
|
168
|
-
mediaType: ZodString;
|
|
169
|
-
fileName: ZodOptional<ZodString>;
|
|
170
|
-
size: ZodOptional<ZodNumber>;
|
|
171
|
-
width: ZodOptional<ZodNumber>;
|
|
172
|
-
height: ZodOptional<ZodNumber>;
|
|
173
|
-
},
|
|
174
|
-
type: ZodLiteral<"file">;
|
|
175
|
-
url: ZodString;
|
|
176
|
-
mediaType: ZodString;
|
|
177
|
-
fileName: ZodOptional<ZodString>;
|
|
178
|
-
size: ZodOptional<ZodNumber>;
|
|
179
|
-
},
|
|
180
|
-
type: ZodLiteral<"metadata">;
|
|
181
|
-
source: ZodEnum<{
|
|
158
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
159
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
160
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
161
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
162
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
type: z.ZodLiteral<"image">;
|
|
165
|
+
url: z.ZodString;
|
|
166
|
+
mediaType: z.ZodString;
|
|
167
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
168
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
172
|
+
type: z.ZodLiteral<"file">;
|
|
173
|
+
url: z.ZodString;
|
|
174
|
+
mediaType: z.ZodString;
|
|
175
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
176
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"metadata">;
|
|
179
|
+
source: z.ZodEnum<{
|
|
182
180
|
email: "email";
|
|
183
181
|
widget: "widget";
|
|
184
182
|
api: "api";
|
|
185
183
|
}>;
|
|
186
|
-
},
|
|
187
|
-
userId: ZodNullable<ZodString>;
|
|
188
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
189
|
-
visitorId: ZodNullable<ZodString>;
|
|
190
|
-
createdAt: ZodString;
|
|
191
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
|
-
header: ZodObject<{
|
|
195
|
-
id: ZodString;
|
|
196
|
-
status: ZodEnum<{
|
|
184
|
+
}, z.core.$strip>]>>;
|
|
185
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
186
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
187
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
188
|
+
createdAt: z.ZodString;
|
|
189
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
header: z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
status: z.ZodEnum<{
|
|
197
195
|
open: "open";
|
|
198
196
|
resolved: "resolved";
|
|
199
197
|
spam: "spam";
|
|
200
198
|
}>;
|
|
201
|
-
priority: ZodEnum<{
|
|
199
|
+
priority: z.ZodEnum<{
|
|
202
200
|
low: "low";
|
|
203
201
|
normal: "normal";
|
|
204
202
|
high: "high";
|
|
205
203
|
urgent: "urgent";
|
|
206
204
|
}>;
|
|
207
|
-
organizationId: ZodString;
|
|
208
|
-
visitorId: ZodString;
|
|
209
|
-
visitor: ZodObject<{
|
|
210
|
-
id: ZodULID;
|
|
211
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
212
|
-
blockedAt: ZodNullable<ZodString>;
|
|
213
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
214
|
-
isBlocked: ZodBoolean;
|
|
215
|
-
contact: ZodNullable<ZodObject<{
|
|
216
|
-
id: ZodULID;
|
|
217
|
-
name: ZodNullable<ZodString>;
|
|
218
|
-
email: ZodNullable<ZodString>;
|
|
219
|
-
image: ZodNullable<ZodString>;
|
|
220
|
-
metadataHash: ZodOptional<ZodString>;
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
websiteId: ZodString;
|
|
224
|
-
channel: ZodString;
|
|
225
|
-
title: ZodNullable<ZodString>;
|
|
226
|
-
resolutionTime: ZodNullable<ZodNumber>;
|
|
227
|
-
startedAt: ZodNullable<ZodString>;
|
|
228
|
-
firstResponseAt: ZodNullable<ZodString>;
|
|
229
|
-
resolvedAt: ZodNullable<ZodString>;
|
|
230
|
-
resolvedByUserId: ZodNullable<ZodString>;
|
|
231
|
-
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
232
|
-
createdAt: ZodString;
|
|
233
|
-
updatedAt: ZodString;
|
|
234
|
-
deletedAt: ZodNullable<ZodString>;
|
|
235
|
-
lastMessageAt: ZodNullable<ZodString>;
|
|
236
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
237
|
-
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
238
|
-
id: ZodOptional<ZodString>;
|
|
239
|
-
conversationId: ZodString;
|
|
240
|
-
organizationId: ZodString;
|
|
241
|
-
visibility: ZodEnum<{
|
|
242
|
-
private: "private";
|
|
205
|
+
organizationId: z.ZodString;
|
|
206
|
+
visitorId: z.ZodString;
|
|
207
|
+
visitor: z.ZodObject<{
|
|
208
|
+
id: z.ZodULID;
|
|
209
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
210
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
211
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
212
|
+
isBlocked: z.ZodBoolean;
|
|
213
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
214
|
+
id: z.ZodULID;
|
|
215
|
+
name: z.ZodNullable<z.ZodString>;
|
|
216
|
+
email: z.ZodNullable<z.ZodString>;
|
|
217
|
+
image: z.ZodNullable<z.ZodString>;
|
|
218
|
+
metadataHash: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
websiteId: z.ZodString;
|
|
222
|
+
channel: z.ZodString;
|
|
223
|
+
title: z.ZodNullable<z.ZodString>;
|
|
224
|
+
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
225
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
226
|
+
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
227
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
228
|
+
resolvedByUserId: z.ZodNullable<z.ZodString>;
|
|
229
|
+
resolvedByAiAgentId: z.ZodNullable<z.ZodString>;
|
|
230
|
+
createdAt: z.ZodString;
|
|
231
|
+
updatedAt: z.ZodString;
|
|
232
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
233
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
234
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
235
|
+
lastMessageTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
236
|
+
id: z.ZodOptional<z.ZodString>;
|
|
237
|
+
conversationId: z.ZodString;
|
|
238
|
+
organizationId: z.ZodString;
|
|
239
|
+
visibility: z.ZodEnum<{
|
|
243
240
|
public: "public";
|
|
241
|
+
private: "private";
|
|
244
242
|
}>;
|
|
245
|
-
type: ZodEnum<{
|
|
243
|
+
type: z.ZodEnum<{
|
|
246
244
|
message: "message";
|
|
247
245
|
event: "event";
|
|
248
246
|
identification: "identification";
|
|
249
247
|
}>;
|
|
250
|
-
text: ZodNullable<ZodString>;
|
|
251
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
252
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
253
|
-
type: ZodLiteral<"text">;
|
|
254
|
-
text: ZodString;
|
|
255
|
-
},
|
|
256
|
-
type: ZodLiteral<"event">;
|
|
257
|
-
eventType: ZodEnum<{
|
|
248
|
+
text: z.ZodNullable<z.ZodString>;
|
|
249
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<"text">;
|
|
252
|
+
text: z.ZodString;
|
|
253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
+
type: z.ZodLiteral<"event">;
|
|
255
|
+
eventType: z.ZodEnum<{
|
|
258
256
|
resolved: "resolved";
|
|
259
257
|
assigned: "assigned";
|
|
260
258
|
unassigned: "unassigned";
|
|
@@ -270,60 +268,60 @@ declare const realtimeSchema: {
|
|
|
270
268
|
visitor_unblocked: "visitor_unblocked";
|
|
271
269
|
visitor_identified: "visitor_identified";
|
|
272
270
|
}>;
|
|
273
|
-
actorUserId: ZodNullable<ZodString>;
|
|
274
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
275
|
-
targetUserId: ZodNullable<ZodString>;
|
|
276
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
277
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
278
|
-
},
|
|
279
|
-
type: ZodLiteral<"image">;
|
|
280
|
-
url: ZodString;
|
|
281
|
-
mediaType: ZodString;
|
|
282
|
-
fileName: ZodOptional<ZodString>;
|
|
283
|
-
size: ZodOptional<ZodNumber>;
|
|
284
|
-
width: ZodOptional<ZodNumber>;
|
|
285
|
-
height: ZodOptional<ZodNumber>;
|
|
286
|
-
},
|
|
287
|
-
type: ZodLiteral<"file">;
|
|
288
|
-
url: ZodString;
|
|
289
|
-
mediaType: ZodString;
|
|
290
|
-
fileName: ZodOptional<ZodString>;
|
|
291
|
-
size: ZodOptional<ZodNumber>;
|
|
292
|
-
},
|
|
293
|
-
type: ZodLiteral<"metadata">;
|
|
294
|
-
source: ZodEnum<{
|
|
271
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
272
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
273
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
274
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
275
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
+
type: z.ZodLiteral<"image">;
|
|
278
|
+
url: z.ZodString;
|
|
279
|
+
mediaType: z.ZodString;
|
|
280
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
281
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
type: z.ZodLiteral<"file">;
|
|
286
|
+
url: z.ZodString;
|
|
287
|
+
mediaType: z.ZodString;
|
|
288
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
289
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
type: z.ZodLiteral<"metadata">;
|
|
292
|
+
source: z.ZodEnum<{
|
|
295
293
|
email: "email";
|
|
296
294
|
widget: "widget";
|
|
297
295
|
api: "api";
|
|
298
296
|
}>;
|
|
299
|
-
},
|
|
300
|
-
userId: ZodNullable<ZodString>;
|
|
301
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
302
|
-
visitorId: ZodNullable<ZodString>;
|
|
303
|
-
createdAt: ZodString;
|
|
304
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
305
|
-
},
|
|
306
|
-
lastTimelineItem: ZodNullable<ZodObject<{
|
|
307
|
-
id: ZodOptional<ZodString>;
|
|
308
|
-
conversationId: ZodString;
|
|
309
|
-
organizationId: ZodString;
|
|
310
|
-
visibility: ZodEnum<{
|
|
311
|
-
private: "private";
|
|
297
|
+
}, z.core.$strip>]>>;
|
|
298
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
299
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
300
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
301
|
+
createdAt: z.ZodString;
|
|
302
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
lastTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
305
|
+
id: z.ZodOptional<z.ZodString>;
|
|
306
|
+
conversationId: z.ZodString;
|
|
307
|
+
organizationId: z.ZodString;
|
|
308
|
+
visibility: z.ZodEnum<{
|
|
312
309
|
public: "public";
|
|
310
|
+
private: "private";
|
|
313
311
|
}>;
|
|
314
|
-
type: ZodEnum<{
|
|
312
|
+
type: z.ZodEnum<{
|
|
315
313
|
message: "message";
|
|
316
314
|
event: "event";
|
|
317
315
|
identification: "identification";
|
|
318
316
|
}>;
|
|
319
|
-
text: ZodNullable<ZodString>;
|
|
320
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
321
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
322
|
-
type: ZodLiteral<"text">;
|
|
323
|
-
text: ZodString;
|
|
324
|
-
},
|
|
325
|
-
type: ZodLiteral<"event">;
|
|
326
|
-
eventType: ZodEnum<{
|
|
317
|
+
text: z.ZodNullable<z.ZodString>;
|
|
318
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
320
|
+
type: z.ZodLiteral<"text">;
|
|
321
|
+
text: z.ZodString;
|
|
322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
+
type: z.ZodLiteral<"event">;
|
|
324
|
+
eventType: z.ZodEnum<{
|
|
327
325
|
resolved: "resolved";
|
|
328
326
|
assigned: "assigned";
|
|
329
327
|
unassigned: "unassigned";
|
|
@@ -339,104 +337,104 @@ declare const realtimeSchema: {
|
|
|
339
337
|
visitor_unblocked: "visitor_unblocked";
|
|
340
338
|
visitor_identified: "visitor_identified";
|
|
341
339
|
}>;
|
|
342
|
-
actorUserId: ZodNullable<ZodString>;
|
|
343
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
344
|
-
targetUserId: ZodNullable<ZodString>;
|
|
345
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
346
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
347
|
-
},
|
|
348
|
-
type: ZodLiteral<"image">;
|
|
349
|
-
url: ZodString;
|
|
350
|
-
mediaType: ZodString;
|
|
351
|
-
fileName: ZodOptional<ZodString>;
|
|
352
|
-
size: ZodOptional<ZodNumber>;
|
|
353
|
-
width: ZodOptional<ZodNumber>;
|
|
354
|
-
height: ZodOptional<ZodNumber>;
|
|
355
|
-
},
|
|
356
|
-
type: ZodLiteral<"file">;
|
|
357
|
-
url: ZodString;
|
|
358
|
-
mediaType: ZodString;
|
|
359
|
-
fileName: ZodOptional<ZodString>;
|
|
360
|
-
size: ZodOptional<ZodNumber>;
|
|
361
|
-
},
|
|
362
|
-
type: ZodLiteral<"metadata">;
|
|
363
|
-
source: ZodEnum<{
|
|
340
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
341
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
342
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
343
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
344
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"image">;
|
|
347
|
+
url: z.ZodString;
|
|
348
|
+
mediaType: z.ZodString;
|
|
349
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
350
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
type: z.ZodLiteral<"file">;
|
|
355
|
+
url: z.ZodString;
|
|
356
|
+
mediaType: z.ZodString;
|
|
357
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
358
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
360
|
+
type: z.ZodLiteral<"metadata">;
|
|
361
|
+
source: z.ZodEnum<{
|
|
364
362
|
email: "email";
|
|
365
363
|
widget: "widget";
|
|
366
364
|
api: "api";
|
|
367
365
|
}>;
|
|
368
|
-
},
|
|
369
|
-
userId: ZodNullable<ZodString>;
|
|
370
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
371
|
-
visitorId: ZodNullable<ZodString>;
|
|
372
|
-
createdAt: ZodString;
|
|
373
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
374
|
-
},
|
|
375
|
-
viewIds: ZodArray<ZodString>;
|
|
376
|
-
seenData: ZodArray<ZodObject<{
|
|
377
|
-
id: ZodString;
|
|
378
|
-
conversationId: ZodString;
|
|
379
|
-
userId: ZodNullable<ZodString>;
|
|
380
|
-
visitorId: ZodNullable<ZodString>;
|
|
381
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
382
|
-
lastSeenAt: ZodString;
|
|
383
|
-
createdAt: ZodString;
|
|
384
|
-
updatedAt: ZodString;
|
|
385
|
-
deletedAt: ZodNullable<ZodString>;
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
},
|
|
389
|
-
readonly visitorIdentified: ZodObject<{
|
|
390
|
-
websiteId: ZodString;
|
|
391
|
-
organizationId: ZodString;
|
|
392
|
-
userId: ZodNullable<ZodString>;
|
|
393
|
-
visitorId: ZodString;
|
|
394
|
-
visitor: ZodObject<{
|
|
395
|
-
id: ZodULID;
|
|
396
|
-
browser: ZodNullable<ZodString>;
|
|
397
|
-
browserVersion: ZodNullable<ZodString>;
|
|
398
|
-
os: ZodNullable<ZodString>;
|
|
399
|
-
osVersion: ZodNullable<ZodString>;
|
|
400
|
-
device: ZodNullable<ZodString>;
|
|
401
|
-
deviceType: ZodNullable<ZodString>;
|
|
402
|
-
ip: ZodNullable<ZodString>;
|
|
403
|
-
city: ZodNullable<ZodString>;
|
|
404
|
-
region: ZodNullable<ZodString>;
|
|
405
|
-
country: ZodNullable<ZodString>;
|
|
406
|
-
countryCode: ZodNullable<ZodString>;
|
|
407
|
-
latitude: ZodNullable<ZodNumber>;
|
|
408
|
-
longitude: ZodNullable<ZodNumber>;
|
|
409
|
-
language: ZodNullable<ZodString>;
|
|
410
|
-
timezone: ZodNullable<ZodString>;
|
|
411
|
-
screenResolution: ZodNullable<ZodString>;
|
|
412
|
-
viewport: ZodNullable<ZodString>;
|
|
413
|
-
createdAt: ZodString;
|
|
414
|
-
updatedAt: ZodString;
|
|
415
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
416
|
-
websiteId: ZodULID;
|
|
417
|
-
organizationId: ZodULID;
|
|
418
|
-
blockedAt: ZodNullable<ZodString>;
|
|
419
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
420
|
-
isBlocked: ZodBoolean;
|
|
421
|
-
contact: ZodNullable<ZodObject<{
|
|
422
|
-
id: ZodULID;
|
|
423
|
-
externalId: ZodNullable<ZodString>;
|
|
424
|
-
name: ZodNullable<ZodString>;
|
|
425
|
-
email: ZodNullable<ZodEmail>;
|
|
426
|
-
image: ZodNullable<ZodURL>;
|
|
427
|
-
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
428
|
-
contactOrganizationId: ZodNullable<ZodULID>;
|
|
429
|
-
websiteId: ZodULID;
|
|
430
|
-
organizationId: ZodULID;
|
|
431
|
-
userId: ZodNullable<ZodULID>;
|
|
432
|
-
createdAt: ZodString;
|
|
433
|
-
updatedAt: ZodString;
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
},
|
|
366
|
+
}, z.core.$strip>]>>;
|
|
367
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
368
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
369
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
370
|
+
createdAt: z.ZodString;
|
|
371
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
viewIds: z.ZodArray<z.ZodString>;
|
|
374
|
+
seenData: z.ZodArray<z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
conversationId: z.ZodString;
|
|
377
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
378
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
379
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
380
|
+
lastSeenAt: z.ZodString;
|
|
381
|
+
createdAt: z.ZodString;
|
|
382
|
+
updatedAt: z.ZodString;
|
|
383
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
readonly visitorIdentified: z.ZodObject<{
|
|
388
|
+
websiteId: z.ZodString;
|
|
389
|
+
organizationId: z.ZodString;
|
|
390
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
391
|
+
visitorId: z.ZodString;
|
|
392
|
+
visitor: z.ZodObject<{
|
|
393
|
+
id: z.ZodULID;
|
|
394
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
395
|
+
browserVersion: z.ZodNullable<z.ZodString>;
|
|
396
|
+
os: z.ZodNullable<z.ZodString>;
|
|
397
|
+
osVersion: z.ZodNullable<z.ZodString>;
|
|
398
|
+
device: z.ZodNullable<z.ZodString>;
|
|
399
|
+
deviceType: z.ZodNullable<z.ZodString>;
|
|
400
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
401
|
+
city: z.ZodNullable<z.ZodString>;
|
|
402
|
+
region: z.ZodNullable<z.ZodString>;
|
|
403
|
+
country: z.ZodNullable<z.ZodString>;
|
|
404
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
405
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
406
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
407
|
+
language: z.ZodNullable<z.ZodString>;
|
|
408
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
409
|
+
screenResolution: z.ZodNullable<z.ZodString>;
|
|
410
|
+
viewport: z.ZodNullable<z.ZodString>;
|
|
411
|
+
createdAt: z.ZodString;
|
|
412
|
+
updatedAt: z.ZodString;
|
|
413
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
414
|
+
websiteId: z.ZodULID;
|
|
415
|
+
organizationId: z.ZodULID;
|
|
416
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
417
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
418
|
+
isBlocked: z.ZodBoolean;
|
|
419
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
420
|
+
id: z.ZodULID;
|
|
421
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
422
|
+
name: z.ZodNullable<z.ZodString>;
|
|
423
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
424
|
+
image: z.ZodNullable<z.ZodURL>;
|
|
425
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
|
|
426
|
+
contactOrganizationId: z.ZodNullable<z.ZodULID>;
|
|
427
|
+
websiteId: z.ZodULID;
|
|
428
|
+
organizationId: z.ZodULID;
|
|
429
|
+
userId: z.ZodNullable<z.ZodULID>;
|
|
430
|
+
createdAt: z.ZodString;
|
|
431
|
+
updatedAt: z.ZodString;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
}, z.core.$strip>;
|
|
437
435
|
};
|
|
438
436
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
439
|
-
type RealtimeEventPayload<T extends RealtimeEventType> =
|
|
437
|
+
type RealtimeEventPayload<T extends RealtimeEventType> = z.infer<(typeof realtimeSchema)[T]>;
|
|
440
438
|
type RealtimeEvent<T extends RealtimeEventType> = {
|
|
441
439
|
type: T;
|
|
442
440
|
payload: RealtimeEventPayload<T>;
|