@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/conversation.d.ts
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $strip } from "./schemas.js";
|
|
2
|
+
import { output } from "./core.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } from "./schemas2.js";
|
|
4
|
+
import { ZodCoercedNumber } from "./coerce.js";
|
|
5
|
+
import "./index3.js";
|
|
2
6
|
|
|
3
7
|
//#region ../types/src/api/conversation.d.ts
|
|
4
8
|
|
|
5
|
-
declare const createConversationResponseSchema:
|
|
6
|
-
initialTimelineItems:
|
|
7
|
-
id:
|
|
8
|
-
conversationId:
|
|
9
|
-
organizationId:
|
|
10
|
-
visibility:
|
|
9
|
+
declare const createConversationResponseSchema: ZodObject<{
|
|
10
|
+
initialTimelineItems: ZodArray<ZodObject<{
|
|
11
|
+
id: ZodOptional<ZodString>;
|
|
12
|
+
conversationId: ZodString;
|
|
13
|
+
organizationId: ZodString;
|
|
14
|
+
visibility: ZodEnum<{
|
|
11
15
|
public: "public";
|
|
12
16
|
private: "private";
|
|
13
17
|
}>;
|
|
14
|
-
type:
|
|
18
|
+
type: ZodEnum<{
|
|
15
19
|
message: "message";
|
|
16
20
|
event: "event";
|
|
17
21
|
identification: "identification";
|
|
18
22
|
}>;
|
|
19
|
-
text:
|
|
20
|
-
tool:
|
|
21
|
-
parts:
|
|
22
|
-
type:
|
|
23
|
-
text:
|
|
24
|
-
},
|
|
25
|
-
type:
|
|
26
|
-
eventType:
|
|
23
|
+
text: ZodNullable<ZodString>;
|
|
24
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
25
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
26
|
+
type: ZodLiteral<"text">;
|
|
27
|
+
text: ZodString;
|
|
28
|
+
}, $strip>, ZodObject<{
|
|
29
|
+
type: ZodLiteral<"event">;
|
|
30
|
+
eventType: ZodEnum<{
|
|
27
31
|
assigned: "assigned";
|
|
28
32
|
unassigned: "unassigned";
|
|
29
33
|
participant_requested: "participant_requested";
|
|
@@ -39,66 +43,66 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
39
43
|
visitor_unblocked: "visitor_unblocked";
|
|
40
44
|
visitor_identified: "visitor_identified";
|
|
41
45
|
}>;
|
|
42
|
-
actorUserId:
|
|
43
|
-
actorAiAgentId:
|
|
44
|
-
targetUserId:
|
|
45
|
-
targetAiAgentId:
|
|
46
|
-
message:
|
|
47
|
-
},
|
|
48
|
-
type:
|
|
49
|
-
url:
|
|
50
|
-
mediaType:
|
|
51
|
-
fileName:
|
|
52
|
-
size:
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
55
|
-
},
|
|
56
|
-
type:
|
|
57
|
-
url:
|
|
58
|
-
mediaType:
|
|
59
|
-
fileName:
|
|
60
|
-
size:
|
|
61
|
-
},
|
|
62
|
-
userId:
|
|
63
|
-
aiAgentId:
|
|
64
|
-
visitorId:
|
|
65
|
-
createdAt:
|
|
66
|
-
deletedAt:
|
|
67
|
-
},
|
|
68
|
-
conversation:
|
|
69
|
-
id:
|
|
70
|
-
title:
|
|
71
|
-
createdAt:
|
|
72
|
-
updatedAt:
|
|
73
|
-
visitorId:
|
|
74
|
-
websiteId:
|
|
75
|
-
status:
|
|
46
|
+
actorUserId: ZodNullable<ZodString>;
|
|
47
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
48
|
+
targetUserId: ZodNullable<ZodString>;
|
|
49
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
50
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
51
|
+
}, $strip>, ZodObject<{
|
|
52
|
+
type: ZodLiteral<"image">;
|
|
53
|
+
url: ZodString;
|
|
54
|
+
mediaType: ZodString;
|
|
55
|
+
fileName: ZodOptional<ZodString>;
|
|
56
|
+
size: ZodOptional<ZodNumber>;
|
|
57
|
+
width: ZodOptional<ZodNumber>;
|
|
58
|
+
height: ZodOptional<ZodNumber>;
|
|
59
|
+
}, $strip>, ZodObject<{
|
|
60
|
+
type: ZodLiteral<"file">;
|
|
61
|
+
url: ZodString;
|
|
62
|
+
mediaType: ZodString;
|
|
63
|
+
fileName: ZodOptional<ZodString>;
|
|
64
|
+
size: ZodOptional<ZodNumber>;
|
|
65
|
+
}, $strip>]>>;
|
|
66
|
+
userId: ZodNullable<ZodString>;
|
|
67
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
68
|
+
visitorId: ZodNullable<ZodString>;
|
|
69
|
+
createdAt: ZodString;
|
|
70
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
71
|
+
}, $strip>>;
|
|
72
|
+
conversation: ZodObject<{
|
|
73
|
+
id: ZodString;
|
|
74
|
+
title: ZodOptional<ZodString>;
|
|
75
|
+
createdAt: ZodString;
|
|
76
|
+
updatedAt: ZodString;
|
|
77
|
+
visitorId: ZodString;
|
|
78
|
+
websiteId: ZodString;
|
|
79
|
+
status: ZodDefault<ZodEnum<{
|
|
76
80
|
resolved: "resolved";
|
|
77
81
|
open: "open";
|
|
78
82
|
spam: "spam";
|
|
79
83
|
}>>;
|
|
80
|
-
deletedAt:
|
|
81
|
-
lastTimelineItem:
|
|
82
|
-
id:
|
|
83
|
-
conversationId:
|
|
84
|
-
organizationId:
|
|
85
|
-
visibility:
|
|
84
|
+
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
85
|
+
lastTimelineItem: ZodOptional<ZodObject<{
|
|
86
|
+
id: ZodOptional<ZodString>;
|
|
87
|
+
conversationId: ZodString;
|
|
88
|
+
organizationId: ZodString;
|
|
89
|
+
visibility: ZodEnum<{
|
|
86
90
|
public: "public";
|
|
87
91
|
private: "private";
|
|
88
92
|
}>;
|
|
89
|
-
type:
|
|
93
|
+
type: ZodEnum<{
|
|
90
94
|
message: "message";
|
|
91
95
|
event: "event";
|
|
92
96
|
identification: "identification";
|
|
93
97
|
}>;
|
|
94
|
-
text:
|
|
95
|
-
tool:
|
|
96
|
-
parts:
|
|
97
|
-
type:
|
|
98
|
-
text:
|
|
99
|
-
},
|
|
100
|
-
type:
|
|
101
|
-
eventType:
|
|
98
|
+
text: ZodNullable<ZodString>;
|
|
99
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
100
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
101
|
+
type: ZodLiteral<"text">;
|
|
102
|
+
text: ZodString;
|
|
103
|
+
}, $strip>, ZodObject<{
|
|
104
|
+
type: ZodLiteral<"event">;
|
|
105
|
+
eventType: ZodEnum<{
|
|
102
106
|
assigned: "assigned";
|
|
103
107
|
unassigned: "unassigned";
|
|
104
108
|
participant_requested: "participant_requested";
|
|
@@ -114,88 +118,88 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
114
118
|
visitor_unblocked: "visitor_unblocked";
|
|
115
119
|
visitor_identified: "visitor_identified";
|
|
116
120
|
}>;
|
|
117
|
-
actorUserId:
|
|
118
|
-
actorAiAgentId:
|
|
119
|
-
targetUserId:
|
|
120
|
-
targetAiAgentId:
|
|
121
|
-
message:
|
|
122
|
-
},
|
|
123
|
-
type:
|
|
124
|
-
url:
|
|
125
|
-
mediaType:
|
|
126
|
-
fileName:
|
|
127
|
-
size:
|
|
128
|
-
width:
|
|
129
|
-
height:
|
|
130
|
-
},
|
|
131
|
-
type:
|
|
132
|
-
url:
|
|
133
|
-
mediaType:
|
|
134
|
-
fileName:
|
|
135
|
-
size:
|
|
136
|
-
},
|
|
137
|
-
userId:
|
|
138
|
-
aiAgentId:
|
|
139
|
-
visitorId:
|
|
140
|
-
createdAt:
|
|
141
|
-
deletedAt:
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
type CreateConversationResponseBody =
|
|
146
|
-
declare const listConversationsRequestSchema:
|
|
147
|
-
visitorId:
|
|
148
|
-
page:
|
|
149
|
-
limit:
|
|
150
|
-
status:
|
|
121
|
+
actorUserId: ZodNullable<ZodString>;
|
|
122
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
123
|
+
targetUserId: ZodNullable<ZodString>;
|
|
124
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
125
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
126
|
+
}, $strip>, ZodObject<{
|
|
127
|
+
type: ZodLiteral<"image">;
|
|
128
|
+
url: ZodString;
|
|
129
|
+
mediaType: ZodString;
|
|
130
|
+
fileName: ZodOptional<ZodString>;
|
|
131
|
+
size: ZodOptional<ZodNumber>;
|
|
132
|
+
width: ZodOptional<ZodNumber>;
|
|
133
|
+
height: ZodOptional<ZodNumber>;
|
|
134
|
+
}, $strip>, ZodObject<{
|
|
135
|
+
type: ZodLiteral<"file">;
|
|
136
|
+
url: ZodString;
|
|
137
|
+
mediaType: ZodString;
|
|
138
|
+
fileName: ZodOptional<ZodString>;
|
|
139
|
+
size: ZodOptional<ZodNumber>;
|
|
140
|
+
}, $strip>]>>;
|
|
141
|
+
userId: ZodNullable<ZodString>;
|
|
142
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
143
|
+
visitorId: ZodNullable<ZodString>;
|
|
144
|
+
createdAt: ZodString;
|
|
145
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
146
|
+
}, $strip>>;
|
|
147
|
+
}, $strip>;
|
|
148
|
+
}, $strip>;
|
|
149
|
+
type CreateConversationResponseBody = output<typeof createConversationResponseSchema>;
|
|
150
|
+
declare const listConversationsRequestSchema: ZodObject<{
|
|
151
|
+
visitorId: ZodOptional<ZodString>;
|
|
152
|
+
page: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
153
|
+
limit: ZodDefault<ZodCoercedNumber<unknown>>;
|
|
154
|
+
status: ZodOptional<ZodEnum<{
|
|
151
155
|
open: "open";
|
|
152
156
|
closed: "closed";
|
|
153
157
|
}>>;
|
|
154
|
-
orderBy:
|
|
158
|
+
orderBy: ZodDefault<ZodEnum<{
|
|
155
159
|
createdAt: "createdAt";
|
|
156
160
|
updatedAt: "updatedAt";
|
|
157
161
|
}>>;
|
|
158
|
-
order:
|
|
162
|
+
order: ZodDefault<ZodEnum<{
|
|
159
163
|
desc: "desc";
|
|
160
164
|
asc: "asc";
|
|
161
165
|
}>>;
|
|
162
|
-
},
|
|
163
|
-
type ListConversationsRequest =
|
|
164
|
-
declare const listConversationsResponseSchema:
|
|
165
|
-
conversations:
|
|
166
|
-
id:
|
|
167
|
-
title:
|
|
168
|
-
createdAt:
|
|
169
|
-
updatedAt:
|
|
170
|
-
visitorId:
|
|
171
|
-
websiteId:
|
|
172
|
-
status:
|
|
166
|
+
}, $strip>;
|
|
167
|
+
type ListConversationsRequest = output<typeof listConversationsRequestSchema>;
|
|
168
|
+
declare const listConversationsResponseSchema: ZodObject<{
|
|
169
|
+
conversations: ZodArray<ZodObject<{
|
|
170
|
+
id: ZodString;
|
|
171
|
+
title: ZodOptional<ZodString>;
|
|
172
|
+
createdAt: ZodString;
|
|
173
|
+
updatedAt: ZodString;
|
|
174
|
+
visitorId: ZodString;
|
|
175
|
+
websiteId: ZodString;
|
|
176
|
+
status: ZodDefault<ZodEnum<{
|
|
173
177
|
resolved: "resolved";
|
|
174
178
|
open: "open";
|
|
175
179
|
spam: "spam";
|
|
176
180
|
}>>;
|
|
177
|
-
deletedAt:
|
|
178
|
-
lastTimelineItem:
|
|
179
|
-
id:
|
|
180
|
-
conversationId:
|
|
181
|
-
organizationId:
|
|
182
|
-
visibility:
|
|
181
|
+
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
182
|
+
lastTimelineItem: ZodOptional<ZodObject<{
|
|
183
|
+
id: ZodOptional<ZodString>;
|
|
184
|
+
conversationId: ZodString;
|
|
185
|
+
organizationId: ZodString;
|
|
186
|
+
visibility: ZodEnum<{
|
|
183
187
|
public: "public";
|
|
184
188
|
private: "private";
|
|
185
189
|
}>;
|
|
186
|
-
type:
|
|
190
|
+
type: ZodEnum<{
|
|
187
191
|
message: "message";
|
|
188
192
|
event: "event";
|
|
189
193
|
identification: "identification";
|
|
190
194
|
}>;
|
|
191
|
-
text:
|
|
192
|
-
tool:
|
|
193
|
-
parts:
|
|
194
|
-
type:
|
|
195
|
-
text:
|
|
196
|
-
},
|
|
197
|
-
type:
|
|
198
|
-
eventType:
|
|
195
|
+
text: ZodNullable<ZodString>;
|
|
196
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
197
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
198
|
+
type: ZodLiteral<"text">;
|
|
199
|
+
text: ZodString;
|
|
200
|
+
}, $strip>, ZodObject<{
|
|
201
|
+
type: ZodLiteral<"event">;
|
|
202
|
+
eventType: ZodEnum<{
|
|
199
203
|
assigned: "assigned";
|
|
200
204
|
unassigned: "unassigned";
|
|
201
205
|
participant_requested: "participant_requested";
|
|
@@ -211,81 +215,81 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
211
215
|
visitor_unblocked: "visitor_unblocked";
|
|
212
216
|
visitor_identified: "visitor_identified";
|
|
213
217
|
}>;
|
|
214
|
-
actorUserId:
|
|
215
|
-
actorAiAgentId:
|
|
216
|
-
targetUserId:
|
|
217
|
-
targetAiAgentId:
|
|
218
|
-
message:
|
|
219
|
-
},
|
|
220
|
-
type:
|
|
221
|
-
url:
|
|
222
|
-
mediaType:
|
|
223
|
-
fileName:
|
|
224
|
-
size:
|
|
225
|
-
width:
|
|
226
|
-
height:
|
|
227
|
-
},
|
|
228
|
-
type:
|
|
229
|
-
url:
|
|
230
|
-
mediaType:
|
|
231
|
-
fileName:
|
|
232
|
-
size:
|
|
233
|
-
},
|
|
234
|
-
userId:
|
|
235
|
-
aiAgentId:
|
|
236
|
-
visitorId:
|
|
237
|
-
createdAt:
|
|
238
|
-
deletedAt:
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
pagination:
|
|
242
|
-
page:
|
|
243
|
-
limit:
|
|
244
|
-
total:
|
|
245
|
-
totalPages:
|
|
246
|
-
hasMore:
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
type ListConversationsResponse =
|
|
250
|
-
declare const getConversationRequestSchema:
|
|
251
|
-
conversationId:
|
|
252
|
-
},
|
|
253
|
-
type GetConversationRequest =
|
|
254
|
-
declare const getConversationResponseSchema:
|
|
255
|
-
conversation:
|
|
256
|
-
id:
|
|
257
|
-
title:
|
|
258
|
-
createdAt:
|
|
259
|
-
updatedAt:
|
|
260
|
-
visitorId:
|
|
261
|
-
websiteId:
|
|
262
|
-
status:
|
|
218
|
+
actorUserId: ZodNullable<ZodString>;
|
|
219
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
220
|
+
targetUserId: ZodNullable<ZodString>;
|
|
221
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
222
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
223
|
+
}, $strip>, ZodObject<{
|
|
224
|
+
type: ZodLiteral<"image">;
|
|
225
|
+
url: ZodString;
|
|
226
|
+
mediaType: ZodString;
|
|
227
|
+
fileName: ZodOptional<ZodString>;
|
|
228
|
+
size: ZodOptional<ZodNumber>;
|
|
229
|
+
width: ZodOptional<ZodNumber>;
|
|
230
|
+
height: ZodOptional<ZodNumber>;
|
|
231
|
+
}, $strip>, ZodObject<{
|
|
232
|
+
type: ZodLiteral<"file">;
|
|
233
|
+
url: ZodString;
|
|
234
|
+
mediaType: ZodString;
|
|
235
|
+
fileName: ZodOptional<ZodString>;
|
|
236
|
+
size: ZodOptional<ZodNumber>;
|
|
237
|
+
}, $strip>]>>;
|
|
238
|
+
userId: ZodNullable<ZodString>;
|
|
239
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
240
|
+
visitorId: ZodNullable<ZodString>;
|
|
241
|
+
createdAt: ZodString;
|
|
242
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
243
|
+
}, $strip>>;
|
|
244
|
+
}, $strip>>;
|
|
245
|
+
pagination: ZodObject<{
|
|
246
|
+
page: ZodNumber;
|
|
247
|
+
limit: ZodNumber;
|
|
248
|
+
total: ZodNumber;
|
|
249
|
+
totalPages: ZodNumber;
|
|
250
|
+
hasMore: ZodBoolean;
|
|
251
|
+
}, $strip>;
|
|
252
|
+
}, $strip>;
|
|
253
|
+
type ListConversationsResponse = output<typeof listConversationsResponseSchema>;
|
|
254
|
+
declare const getConversationRequestSchema: ZodObject<{
|
|
255
|
+
conversationId: ZodString;
|
|
256
|
+
}, $strip>;
|
|
257
|
+
type GetConversationRequest = output<typeof getConversationRequestSchema>;
|
|
258
|
+
declare const getConversationResponseSchema: ZodObject<{
|
|
259
|
+
conversation: ZodObject<{
|
|
260
|
+
id: ZodString;
|
|
261
|
+
title: ZodOptional<ZodString>;
|
|
262
|
+
createdAt: ZodString;
|
|
263
|
+
updatedAt: ZodString;
|
|
264
|
+
visitorId: ZodString;
|
|
265
|
+
websiteId: ZodString;
|
|
266
|
+
status: ZodDefault<ZodEnum<{
|
|
263
267
|
resolved: "resolved";
|
|
264
268
|
open: "open";
|
|
265
269
|
spam: "spam";
|
|
266
270
|
}>>;
|
|
267
|
-
deletedAt:
|
|
268
|
-
lastTimelineItem:
|
|
269
|
-
id:
|
|
270
|
-
conversationId:
|
|
271
|
-
organizationId:
|
|
272
|
-
visibility:
|
|
271
|
+
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
272
|
+
lastTimelineItem: ZodOptional<ZodObject<{
|
|
273
|
+
id: ZodOptional<ZodString>;
|
|
274
|
+
conversationId: ZodString;
|
|
275
|
+
organizationId: ZodString;
|
|
276
|
+
visibility: ZodEnum<{
|
|
273
277
|
public: "public";
|
|
274
278
|
private: "private";
|
|
275
279
|
}>;
|
|
276
|
-
type:
|
|
280
|
+
type: ZodEnum<{
|
|
277
281
|
message: "message";
|
|
278
282
|
event: "event";
|
|
279
283
|
identification: "identification";
|
|
280
284
|
}>;
|
|
281
|
-
text:
|
|
282
|
-
tool:
|
|
283
|
-
parts:
|
|
284
|
-
type:
|
|
285
|
-
text:
|
|
286
|
-
},
|
|
287
|
-
type:
|
|
288
|
-
eventType:
|
|
285
|
+
text: ZodNullable<ZodString>;
|
|
286
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
287
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
288
|
+
type: ZodLiteral<"text">;
|
|
289
|
+
text: ZodString;
|
|
290
|
+
}, $strip>, ZodObject<{
|
|
291
|
+
type: ZodLiteral<"event">;
|
|
292
|
+
eventType: ZodEnum<{
|
|
289
293
|
assigned: "assigned";
|
|
290
294
|
unassigned: "unassigned";
|
|
291
295
|
participant_requested: "participant_requested";
|
|
@@ -301,35 +305,35 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
301
305
|
visitor_unblocked: "visitor_unblocked";
|
|
302
306
|
visitor_identified: "visitor_identified";
|
|
303
307
|
}>;
|
|
304
|
-
actorUserId:
|
|
305
|
-
actorAiAgentId:
|
|
306
|
-
targetUserId:
|
|
307
|
-
targetAiAgentId:
|
|
308
|
-
message:
|
|
309
|
-
},
|
|
310
|
-
type:
|
|
311
|
-
url:
|
|
312
|
-
mediaType:
|
|
313
|
-
fileName:
|
|
314
|
-
size:
|
|
315
|
-
width:
|
|
316
|
-
height:
|
|
317
|
-
},
|
|
318
|
-
type:
|
|
319
|
-
url:
|
|
320
|
-
mediaType:
|
|
321
|
-
fileName:
|
|
322
|
-
size:
|
|
323
|
-
},
|
|
324
|
-
userId:
|
|
325
|
-
aiAgentId:
|
|
326
|
-
visitorId:
|
|
327
|
-
createdAt:
|
|
328
|
-
deletedAt:
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
type GetConversationResponse =
|
|
308
|
+
actorUserId: ZodNullable<ZodString>;
|
|
309
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
310
|
+
targetUserId: ZodNullable<ZodString>;
|
|
311
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
312
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
313
|
+
}, $strip>, ZodObject<{
|
|
314
|
+
type: ZodLiteral<"image">;
|
|
315
|
+
url: ZodString;
|
|
316
|
+
mediaType: ZodString;
|
|
317
|
+
fileName: ZodOptional<ZodString>;
|
|
318
|
+
size: ZodOptional<ZodNumber>;
|
|
319
|
+
width: ZodOptional<ZodNumber>;
|
|
320
|
+
height: ZodOptional<ZodNumber>;
|
|
321
|
+
}, $strip>, ZodObject<{
|
|
322
|
+
type: ZodLiteral<"file">;
|
|
323
|
+
url: ZodString;
|
|
324
|
+
mediaType: ZodString;
|
|
325
|
+
fileName: ZodOptional<ZodString>;
|
|
326
|
+
size: ZodOptional<ZodNumber>;
|
|
327
|
+
}, $strip>]>>;
|
|
328
|
+
userId: ZodNullable<ZodString>;
|
|
329
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
330
|
+
visitorId: ZodNullable<ZodString>;
|
|
331
|
+
createdAt: ZodString;
|
|
332
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
333
|
+
}, $strip>>;
|
|
334
|
+
}, $strip>;
|
|
335
|
+
}, $strip>;
|
|
336
|
+
type GetConversationResponse = output<typeof getConversationResponseSchema>;
|
|
333
337
|
//#endregion
|
|
334
338
|
export { CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, ListConversationsRequest, ListConversationsResponse };
|
|
335
339
|
//# sourceMappingURL=conversation.d.ts.map
|
package/conversation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA8Ba,kCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAA,CAAA,CAAA;MAAA,IAAA,aAAA,UAAA,CAAA;MASjC,IAAA,aAAA,YAA8B,UAClC,CAAA,CAAA;MAGK,KAAA,UAAA,SA2BV,CAAA,SAAA,UAAA,CAAA;;;;;;;;;;;;;;UA3BwC,WAAA,EAAA,aAAA;UAAA,QAAA,EAAA,UAAA;UA6B/B,QAAA,EAAA,UAAwB;UAIvB,eAAA,EAAA,iBAaV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAlDS,8BAAA,GAAiC,cACrC;cAGK,gCAA8B;;;;;;;;;;;;;;;;;KA6B/B,wBAAA,GAA2B,cAC/B;cAGK,iCAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,cAAA,EAAA,gBAAA;UAAA,gBAAA,EAAA,kBAAA;UAehC,SAAA,EAAA,WAAyB;UAIxB,WAAA,EAAA,aAQV;;;UARsC,eAAA,EAAA,iBAAA;UAAA,iBAAA,EAAA,mBAAA;UAU7B,kBAAsB,EAAA,oBAC1B;QAGK,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAlBD,yBAAA,GAA4B,cAChC;cAGK,8BAA4B;;;KAU7B,sBAAA,GAAyB,cAC7B;cAGK,+BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,SAAA,EAAA,WAAA;UAAA,WAAA,EAAA,aAAA;UAQ9B,QAAA,EAAuB,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAvB,uBAAA,GAA0B,cAC9B"}
|
package/core.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Class } from "./util.js";
|
|
2
|
+
import { SomeType } from "./schemas.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/core.d.cts
|
|
5
|
+
type ZodTrait = {
|
|
6
|
+
_zod: {
|
|
7
|
+
def: any;
|
|
8
|
+
[k: string]: any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
|
|
12
|
+
new (def: D): T;
|
|
13
|
+
init(inst: T, def: D): asserts inst is T;
|
|
14
|
+
}
|
|
15
|
+
declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
|
|
16
|
+
Parent?: typeof Class;
|
|
17
|
+
}): $constructor<T, D>;
|
|
18
|
+
declare const $brand: unique symbol;
|
|
19
|
+
type $brand<T extends string | number | symbol = string | number | symbol> = {
|
|
20
|
+
[$brand]: { [k in T]: true };
|
|
21
|
+
};
|
|
22
|
+
type $ZodBranded<T extends SomeType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
|
|
23
|
+
type input<T> = T extends {
|
|
24
|
+
_zod: {
|
|
25
|
+
input: any;
|
|
26
|
+
};
|
|
27
|
+
} ? T["_zod"]["input"] : unknown;
|
|
28
|
+
type output<T> = T extends {
|
|
29
|
+
_zod: {
|
|
30
|
+
output: any;
|
|
31
|
+
};
|
|
32
|
+
} ? T["_zod"]["output"] : unknown;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { $ZodBranded, $constructor, input, output };
|
|
35
|
+
//# sourceMappingURL=core.d.ts.map
|
package/core.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","names":["errors","schemas","Class","ZodTrait","$constructor","T","D","NEVER","$brand","$ZodBranded","Brand","SomeType","output","Record","$ZodAsyncError","Error","$ZodEncodeError","input","infer","$ZodConfig","$ZodErrorMap","globalConfig","config","Partial"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/core.d.cts"],"sourcesContent":["import type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nimport type { Class } from \"./util.cjs\";\ntype ZodTrait = {\n _zod: {\n def: any;\n [k: string]: any;\n };\n};\nexport interface $constructor<T extends ZodTrait, D = T[\"_zod\"][\"def\"]> {\n new (def: D): T;\n init(inst: T, def: D): asserts inst is T;\n}\n/** A special constant with type `never` */\nexport declare const NEVER: never;\nexport declare function $constructor<T extends ZodTrait, D = T[\"_zod\"][\"def\"]>(name: string, initializer: (inst: T, def: D) => void, params?: {\n Parent?: typeof Class;\n}): $constructor<T, D>;\nexport declare const $brand: unique symbol;\nexport type $brand<T extends string | number | symbol = string | number | symbol> = {\n [$brand]: {\n [k in T]: true;\n };\n};\nexport type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<\"_zod\", Record<\"output\", output<T> & $brand<Brand>>>;\nexport declare class $ZodAsyncError extends Error {\n constructor();\n}\nexport declare class $ZodEncodeError extends Error {\n constructor(name: string);\n}\nexport type input<T> = T extends {\n _zod: {\n input: any;\n };\n} ? T[\"_zod\"][\"input\"] : unknown;\nexport type output<T> = T extends {\n _zod: {\n output: any;\n };\n} ? T[\"_zod\"][\"output\"] : unknown;\nexport type { output as infer };\nexport interface $ZodConfig {\n /** Custom error map. Overrides `config().localeError`. */\n customError?: errors.$ZodErrorMap | undefined;\n /** Localized error map. Lowest priority. */\n localeError?: errors.$ZodErrorMap | undefined;\n /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */\n jitless?: boolean | undefined;\n}\nexport declare const globalConfig: $ZodConfig;\nexport declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;\n"],"x_google_ignoreList":[0],"mappings":";;;;KAGKG,QAAAA;EAAAA,IAAAA,EAAAA;IAMYC,GAAAA,EAAAA,GAAAA;IAAuBD,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;EAAcE,CAAAA;CACxCC;AAAID,UADDD,YACCC,CAAAA,UADsBF,QACtBE,EAAAA,IADoCA,CACpCA,CAAAA,MAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA;EACHA,KAAAA,GAAAA,EADDC,CACCD,CAAAA,EADGA,CACHA;EAAQC,IAAAA,CAAAA,IAAAA,EAARD,CAAQC,EAAAA,GAAAA,EAAAA,CAAAA,CAAAA,EAAAA,QAAAA,IAAAA,IAAoBD,CAApBC;;AAIwBH,iBAAvBC,YAAuBD,CAAAA,UAAAA,QAAAA,EAAAA,IAAcE,CAAdF,CAAAA,MAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,IAAAA,EAAAA,MAAAA,EAAAA,WAAAA,EAAAA,CAAAA,IAAAA,EAAkEE,CAAlEF,EAAAA,GAAAA,EAA0EG,CAA1EH,EAAAA,GAAAA,IAAAA,EAAAA,MAAkEE,CAAlEF,EAAAA;EAAcE,MAAAA,CAAAA,EAAAA,OACzCH,KADyCG;CAAoDA,CAAAA,EAE7GD,YAF6GC,CAEhGA,CAFgGA,EAE7FC,CAF6FD,CAAAA;AAAQC,cAGpGE,MAHoGF,EAAAA,OAAAA,MAAAA;AACrGJ,KAGRM,MAHQN,CAAAA,UAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,CAAAA,GAAAA;EACHG,CAGZG,MAAAA,CAHYH,EAAAA,QAIHA,CAJMC,GAAAA,IAAAA,EAAhBF;CAAY;AACKI,KAMTC,WAN8B,CAAA,UAMRR,QANQ,EAAA,cAAA,MAAA,GAAA,MAAA,GAAA,MAAA,CAAA,GAMoDI,CANpD,GAMwDQ,MANxD,CAAA,MAAA,EAMuEA,MANvE,CAAA,QAAA,EAMwFD,MANxF,CAM+FP,CAN/F,CAAA,GAMoGG,MANpG,CAM2GE,KAN3G,CAAA,CAAA,CAAA;AAM2GA,KAOzIO,KAPyIP,CAAAA,CAAAA,CAAAA,GAO9HL,CAP8HK,SAAAA;EAAPF,IAAAA,EAAAA;IAA7BK,KAAAA,EAAAA,GAAAA;EAAfA,CAAAA;CAAM,GAWpGR,CAXoG,CAAA,MAAA,CAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAO5FY,KAKAL,MALK,CAAA,CAAAP,CAAAA,GAKOA,CALPA,SAIZ;EACOO,IAAAA,EAAAA;;;IAIRP"}
|