@cossistant/core 0.0.24 → 0.0.26

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.
Files changed (69) hide show
  1. package/_virtual/rolldown_runtime.js +1 -10
  2. package/client.d.ts +1 -1
  3. package/client.js +1 -1
  4. package/contact.d.ts +19 -22
  5. package/contact.d.ts.map +1 -1
  6. package/conversation.d.ts +316 -320
  7. package/conversation.d.ts.map +1 -1
  8. package/index.d.ts +2 -1
  9. package/index.js +2 -1
  10. package/package.json +4 -2
  11. package/realtime-events.d.ts +324 -326
  12. package/realtime-events.d.ts.map +1 -1
  13. package/schemas.d.ts +100 -670
  14. package/schemas.d.ts.map +1 -1
  15. package/store/seen-store.d.ts +1 -1
  16. package/store/timeline-items-store.js +1 -1
  17. package/timeline-item.d.ts +193 -197
  18. package/timeline-item.d.ts.map +1 -1
  19. package/types/src/api/timeline-item.js +120 -0
  20. package/types/src/api/timeline-item.js.map +1 -0
  21. package/types/src/enums.js.map +1 -0
  22. package/visitor-name.d.ts +36 -0
  23. package/visitor-name.d.ts.map +1 -0
  24. package/visitor-name.js +271 -0
  25. package/visitor-name.js.map +1 -0
  26. package/api.d.ts +0 -71
  27. package/api.d.ts.map +0 -1
  28. package/checks.d.ts +0 -189
  29. package/checks.d.ts.map +0 -1
  30. package/coerce.d.ts +0 -9
  31. package/coerce.d.ts.map +0 -1
  32. package/core.d.ts +0 -35
  33. package/core.d.ts.map +0 -1
  34. package/errors.d.ts +0 -121
  35. package/errors.d.ts.map +0 -1
  36. package/errors2.d.ts +0 -24
  37. package/errors2.d.ts.map +0 -1
  38. package/index2.d.ts +0 -4
  39. package/index3.d.ts +0 -1
  40. package/metadata.d.ts +0 -1
  41. package/openapi-generator.d.ts +0 -1
  42. package/openapi-generator2.d.ts +0 -1
  43. package/openapi-generator3.d.ts +0 -1
  44. package/openapi30.d.ts +0 -125
  45. package/openapi30.d.ts.map +0 -1
  46. package/openapi31.d.ts +0 -131
  47. package/openapi31.d.ts.map +0 -1
  48. package/packages/types/src/api/timeline-item.js +0 -122
  49. package/packages/types/src/api/timeline-item.js.map +0 -1
  50. package/packages/types/src/enums.js.map +0 -1
  51. package/parse.d.ts +0 -17
  52. package/parse.d.ts.map +0 -1
  53. package/registries.d.ts +0 -32
  54. package/registries.d.ts.map +0 -1
  55. package/schemas2.d.ts +0 -320
  56. package/schemas2.d.ts.map +0 -1
  57. package/schemas3.d.ts +0 -105
  58. package/schemas3.d.ts.map +0 -1
  59. package/specification-extension.d.ts +0 -9
  60. package/specification-extension.d.ts.map +0 -1
  61. package/standard-schema.d.ts +0 -59
  62. package/standard-schema.d.ts.map +0 -1
  63. package/util.d.ts +0 -41
  64. package/util.d.ts.map +0 -1
  65. package/versions.d.ts +0 -9
  66. package/versions.d.ts.map +0 -1
  67. package/zod-extensions.d.ts +0 -39
  68. package/zod-extensions.d.ts.map +0 -1
  69. /package/{packages/types → types}/src/enums.js +0 -0
package/conversation.d.ts CHANGED
@@ -1,34 +1,30 @@
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";
1
+ import { z } from "@hono/zod-openapi";
6
2
 
7
3
  //#region ../types/src/api/conversation.d.ts
8
- declare const createConversationRequestSchema: ZodObject<{
9
- visitorId: ZodOptional<ZodString>;
10
- conversationId: ZodOptional<ZodString>;
11
- defaultTimelineItems: ZodArray<ZodObject<{
12
- id: ZodOptional<ZodString>;
13
- conversationId: ZodString;
14
- organizationId: ZodString;
15
- visibility: ZodEnum<{
4
+ declare const createConversationRequestSchema: z.ZodObject<{
5
+ visitorId: z.ZodOptional<z.ZodString>;
6
+ conversationId: z.ZodOptional<z.ZodString>;
7
+ defaultTimelineItems: z.ZodArray<z.ZodObject<{
8
+ id: z.ZodOptional<z.ZodString>;
9
+ conversationId: z.ZodString;
10
+ organizationId: z.ZodString;
11
+ visibility: z.ZodEnum<{
16
12
  public: "public";
17
13
  private: "private";
18
14
  }>;
19
- type: ZodEnum<{
20
- event: "event";
15
+ type: z.ZodEnum<{
21
16
  message: "message";
17
+ event: "event";
22
18
  identification: "identification";
23
19
  }>;
24
- text: ZodNullable<ZodString>;
25
- tool: ZodOptional<ZodNullable<ZodString>>;
26
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
27
- type: ZodLiteral<"text">;
28
- text: ZodString;
29
- }, $strip>, ZodObject<{
30
- type: ZodLiteral<"event">;
31
- eventType: ZodEnum<{
20
+ text: z.ZodNullable<z.ZodString>;
21
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
23
+ type: z.ZodLiteral<"text">;
24
+ text: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<"event">;
27
+ eventType: z.ZodEnum<{
32
28
  assigned: "assigned";
33
29
  unassigned: "unassigned";
34
30
  participant_requested: "participant_requested";
@@ -44,64 +40,64 @@ declare const createConversationRequestSchema: ZodObject<{
44
40
  visitor_unblocked: "visitor_unblocked";
45
41
  visitor_identified: "visitor_identified";
46
42
  }>;
47
- actorUserId: ZodNullable<ZodString>;
48
- actorAiAgentId: ZodNullable<ZodString>;
49
- targetUserId: ZodNullable<ZodString>;
50
- targetAiAgentId: ZodNullable<ZodString>;
51
- message: ZodOptional<ZodNullable<ZodString>>;
52
- }, $strip>, ZodObject<{
53
- type: ZodLiteral<"image">;
54
- url: ZodString;
55
- mediaType: ZodString;
56
- fileName: ZodOptional<ZodString>;
57
- size: ZodOptional<ZodNumber>;
58
- width: ZodOptional<ZodNumber>;
59
- height: ZodOptional<ZodNumber>;
60
- }, $strip>, ZodObject<{
61
- type: ZodLiteral<"file">;
62
- url: ZodString;
63
- mediaType: ZodString;
64
- fileName: ZodOptional<ZodString>;
65
- size: ZodOptional<ZodNumber>;
66
- }, $strip>, ZodObject<{
67
- type: ZodLiteral<"metadata">;
68
- source: ZodEnum<{
43
+ actorUserId: z.ZodNullable<z.ZodString>;
44
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
45
+ targetUserId: z.ZodNullable<z.ZodString>;
46
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
47
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ type: z.ZodLiteral<"image">;
50
+ url: z.ZodString;
51
+ mediaType: z.ZodString;
52
+ fileName: z.ZodOptional<z.ZodString>;
53
+ size: z.ZodOptional<z.ZodNumber>;
54
+ width: z.ZodOptional<z.ZodNumber>;
55
+ height: z.ZodOptional<z.ZodNumber>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodLiteral<"file">;
58
+ url: z.ZodString;
59
+ mediaType: z.ZodString;
60
+ fileName: z.ZodOptional<z.ZodString>;
61
+ size: z.ZodOptional<z.ZodNumber>;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ type: z.ZodLiteral<"metadata">;
64
+ source: z.ZodEnum<{
69
65
  email: "email";
70
66
  widget: "widget";
71
67
  api: "api";
72
68
  }>;
73
- }, $strip>]>>;
74
- userId: ZodNullable<ZodString>;
75
- aiAgentId: ZodNullable<ZodString>;
76
- visitorId: ZodNullable<ZodString>;
77
- createdAt: ZodString;
78
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
79
- }, $strip>>;
80
- channel: ZodDefault<ZodString>;
81
- }, $strip>;
82
- type CreateConversationRequestBody = output<typeof createConversationRequestSchema>;
83
- declare const createConversationResponseSchema: ZodObject<{
84
- initialTimelineItems: ZodArray<ZodObject<{
85
- id: ZodOptional<ZodString>;
86
- conversationId: ZodString;
87
- organizationId: ZodString;
88
- visibility: ZodEnum<{
69
+ }, z.core.$strip>]>>;
70
+ userId: z.ZodNullable<z.ZodString>;
71
+ aiAgentId: z.ZodNullable<z.ZodString>;
72
+ visitorId: z.ZodNullable<z.ZodString>;
73
+ createdAt: z.ZodString;
74
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ }, z.core.$strip>>;
76
+ channel: z.ZodDefault<z.ZodString>;
77
+ }, z.core.$strip>;
78
+ type CreateConversationRequestBody = z.infer<typeof createConversationRequestSchema>;
79
+ declare const createConversationResponseSchema: z.ZodObject<{
80
+ initialTimelineItems: z.ZodArray<z.ZodObject<{
81
+ id: z.ZodOptional<z.ZodString>;
82
+ conversationId: z.ZodString;
83
+ organizationId: z.ZodString;
84
+ visibility: z.ZodEnum<{
89
85
  public: "public";
90
86
  private: "private";
91
87
  }>;
92
- type: ZodEnum<{
93
- event: "event";
88
+ type: z.ZodEnum<{
94
89
  message: "message";
90
+ event: "event";
95
91
  identification: "identification";
96
92
  }>;
97
- text: ZodNullable<ZodString>;
98
- tool: ZodOptional<ZodNullable<ZodString>>;
99
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
100
- type: ZodLiteral<"text">;
101
- text: ZodString;
102
- }, $strip>, ZodObject<{
103
- type: ZodLiteral<"event">;
104
- eventType: ZodEnum<{
93
+ text: z.ZodNullable<z.ZodString>;
94
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
96
+ type: z.ZodLiteral<"text">;
97
+ text: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<"event">;
100
+ eventType: z.ZodEnum<{
105
101
  assigned: "assigned";
106
102
  unassigned: "unassigned";
107
103
  participant_requested: "participant_requested";
@@ -117,73 +113,73 @@ declare const createConversationResponseSchema: ZodObject<{
117
113
  visitor_unblocked: "visitor_unblocked";
118
114
  visitor_identified: "visitor_identified";
119
115
  }>;
120
- actorUserId: ZodNullable<ZodString>;
121
- actorAiAgentId: ZodNullable<ZodString>;
122
- targetUserId: ZodNullable<ZodString>;
123
- targetAiAgentId: ZodNullable<ZodString>;
124
- message: ZodOptional<ZodNullable<ZodString>>;
125
- }, $strip>, ZodObject<{
126
- type: ZodLiteral<"image">;
127
- url: ZodString;
128
- mediaType: ZodString;
129
- fileName: ZodOptional<ZodString>;
130
- size: ZodOptional<ZodNumber>;
131
- width: ZodOptional<ZodNumber>;
132
- height: ZodOptional<ZodNumber>;
133
- }, $strip>, ZodObject<{
134
- type: ZodLiteral<"file">;
135
- url: ZodString;
136
- mediaType: ZodString;
137
- fileName: ZodOptional<ZodString>;
138
- size: ZodOptional<ZodNumber>;
139
- }, $strip>, ZodObject<{
140
- type: ZodLiteral<"metadata">;
141
- source: ZodEnum<{
116
+ actorUserId: z.ZodNullable<z.ZodString>;
117
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
118
+ targetUserId: z.ZodNullable<z.ZodString>;
119
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
120
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ type: z.ZodLiteral<"image">;
123
+ url: z.ZodString;
124
+ mediaType: z.ZodString;
125
+ fileName: z.ZodOptional<z.ZodString>;
126
+ size: z.ZodOptional<z.ZodNumber>;
127
+ width: z.ZodOptional<z.ZodNumber>;
128
+ height: z.ZodOptional<z.ZodNumber>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ type: z.ZodLiteral<"file">;
131
+ url: z.ZodString;
132
+ mediaType: z.ZodString;
133
+ fileName: z.ZodOptional<z.ZodString>;
134
+ size: z.ZodOptional<z.ZodNumber>;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ type: z.ZodLiteral<"metadata">;
137
+ source: z.ZodEnum<{
142
138
  email: "email";
143
139
  widget: "widget";
144
140
  api: "api";
145
141
  }>;
146
- }, $strip>]>>;
147
- userId: ZodNullable<ZodString>;
148
- aiAgentId: ZodNullable<ZodString>;
149
- visitorId: ZodNullable<ZodString>;
150
- createdAt: ZodString;
151
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
152
- }, $strip>>;
153
- conversation: ZodObject<{
154
- id: ZodString;
155
- title: ZodOptional<ZodString>;
156
- createdAt: ZodString;
157
- updatedAt: ZodString;
158
- visitorId: ZodString;
159
- websiteId: ZodString;
160
- status: ZodDefault<ZodEnum<{
142
+ }, z.core.$strip>]>>;
143
+ userId: z.ZodNullable<z.ZodString>;
144
+ aiAgentId: z.ZodNullable<z.ZodString>;
145
+ visitorId: z.ZodNullable<z.ZodString>;
146
+ createdAt: z.ZodString;
147
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ }, z.core.$strip>>;
149
+ conversation: z.ZodObject<{
150
+ id: z.ZodString;
151
+ title: z.ZodOptional<z.ZodString>;
152
+ createdAt: z.ZodString;
153
+ updatedAt: z.ZodString;
154
+ visitorId: z.ZodString;
155
+ websiteId: z.ZodString;
156
+ status: z.ZodDefault<z.ZodEnum<{
161
157
  resolved: "resolved";
162
158
  open: "open";
163
159
  spam: "spam";
164
160
  }>>;
165
- deletedAt: ZodDefault<ZodNullable<ZodString>>;
166
- lastTimelineItem: ZodOptional<ZodObject<{
167
- id: ZodOptional<ZodString>;
168
- conversationId: ZodString;
169
- organizationId: ZodString;
170
- visibility: ZodEnum<{
161
+ deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
162
+ lastTimelineItem: z.ZodOptional<z.ZodObject<{
163
+ id: z.ZodOptional<z.ZodString>;
164
+ conversationId: z.ZodString;
165
+ organizationId: z.ZodString;
166
+ visibility: z.ZodEnum<{
171
167
  public: "public";
172
168
  private: "private";
173
169
  }>;
174
- type: ZodEnum<{
175
- event: "event";
170
+ type: z.ZodEnum<{
176
171
  message: "message";
172
+ event: "event";
177
173
  identification: "identification";
178
174
  }>;
179
- text: ZodNullable<ZodString>;
180
- tool: ZodOptional<ZodNullable<ZodString>>;
181
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
182
- type: ZodLiteral<"text">;
183
- text: ZodString;
184
- }, $strip>, ZodObject<{
185
- type: ZodLiteral<"event">;
186
- eventType: ZodEnum<{
175
+ text: z.ZodNullable<z.ZodString>;
176
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
178
+ type: z.ZodLiteral<"text">;
179
+ text: z.ZodString;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ type: z.ZodLiteral<"event">;
182
+ eventType: z.ZodEnum<{
187
183
  assigned: "assigned";
188
184
  unassigned: "unassigned";
189
185
  participant_requested: "participant_requested";
@@ -199,95 +195,95 @@ declare const createConversationResponseSchema: ZodObject<{
199
195
  visitor_unblocked: "visitor_unblocked";
200
196
  visitor_identified: "visitor_identified";
201
197
  }>;
202
- actorUserId: ZodNullable<ZodString>;
203
- actorAiAgentId: ZodNullable<ZodString>;
204
- targetUserId: ZodNullable<ZodString>;
205
- targetAiAgentId: ZodNullable<ZodString>;
206
- message: ZodOptional<ZodNullable<ZodString>>;
207
- }, $strip>, ZodObject<{
208
- type: ZodLiteral<"image">;
209
- url: ZodString;
210
- mediaType: ZodString;
211
- fileName: ZodOptional<ZodString>;
212
- size: ZodOptional<ZodNumber>;
213
- width: ZodOptional<ZodNumber>;
214
- height: ZodOptional<ZodNumber>;
215
- }, $strip>, ZodObject<{
216
- type: ZodLiteral<"file">;
217
- url: ZodString;
218
- mediaType: ZodString;
219
- fileName: ZodOptional<ZodString>;
220
- size: ZodOptional<ZodNumber>;
221
- }, $strip>, ZodObject<{
222
- type: ZodLiteral<"metadata">;
223
- source: ZodEnum<{
198
+ actorUserId: z.ZodNullable<z.ZodString>;
199
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
200
+ targetUserId: z.ZodNullable<z.ZodString>;
201
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
202
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ type: z.ZodLiteral<"image">;
205
+ url: z.ZodString;
206
+ mediaType: z.ZodString;
207
+ fileName: z.ZodOptional<z.ZodString>;
208
+ size: z.ZodOptional<z.ZodNumber>;
209
+ width: z.ZodOptional<z.ZodNumber>;
210
+ height: z.ZodOptional<z.ZodNumber>;
211
+ }, z.core.$strip>, z.ZodObject<{
212
+ type: z.ZodLiteral<"file">;
213
+ url: z.ZodString;
214
+ mediaType: z.ZodString;
215
+ fileName: z.ZodOptional<z.ZodString>;
216
+ size: z.ZodOptional<z.ZodNumber>;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ type: z.ZodLiteral<"metadata">;
219
+ source: z.ZodEnum<{
224
220
  email: "email";
225
221
  widget: "widget";
226
222
  api: "api";
227
223
  }>;
228
- }, $strip>]>>;
229
- userId: ZodNullable<ZodString>;
230
- aiAgentId: ZodNullable<ZodString>;
231
- visitorId: ZodNullable<ZodString>;
232
- createdAt: ZodString;
233
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
234
- }, $strip>>;
235
- }, $strip>;
236
- }, $strip>;
237
- type CreateConversationResponseBody = output<typeof createConversationResponseSchema>;
238
- declare const listConversationsRequestSchema: ZodObject<{
239
- visitorId: ZodOptional<ZodString>;
240
- page: ZodDefault<ZodCoercedNumber<unknown>>;
241
- limit: ZodDefault<ZodCoercedNumber<unknown>>;
242
- status: ZodOptional<ZodEnum<{
224
+ }, z.core.$strip>]>>;
225
+ userId: z.ZodNullable<z.ZodString>;
226
+ aiAgentId: z.ZodNullable<z.ZodString>;
227
+ visitorId: z.ZodNullable<z.ZodString>;
228
+ createdAt: z.ZodString;
229
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ }, z.core.$strip>>;
231
+ }, z.core.$strip>;
232
+ }, z.core.$strip>;
233
+ type CreateConversationResponseBody = z.infer<typeof createConversationResponseSchema>;
234
+ declare const listConversationsRequestSchema: z.ZodObject<{
235
+ visitorId: z.ZodOptional<z.ZodString>;
236
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
237
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
238
+ status: z.ZodOptional<z.ZodEnum<{
243
239
  open: "open";
244
240
  closed: "closed";
245
241
  }>>;
246
- orderBy: ZodDefault<ZodEnum<{
242
+ orderBy: z.ZodDefault<z.ZodEnum<{
247
243
  createdAt: "createdAt";
248
244
  updatedAt: "updatedAt";
249
245
  }>>;
250
- order: ZodDefault<ZodEnum<{
246
+ order: z.ZodDefault<z.ZodEnum<{
251
247
  asc: "asc";
252
248
  desc: "desc";
253
249
  }>>;
254
- }, $strip>;
255
- type ListConversationsRequest = output<typeof listConversationsRequestSchema>;
256
- declare const listConversationsResponseSchema: ZodObject<{
257
- conversations: ZodArray<ZodObject<{
258
- id: ZodString;
259
- title: ZodOptional<ZodString>;
260
- createdAt: ZodString;
261
- updatedAt: ZodString;
262
- visitorId: ZodString;
263
- websiteId: ZodString;
264
- status: ZodDefault<ZodEnum<{
250
+ }, z.core.$strip>;
251
+ type ListConversationsRequest = z.infer<typeof listConversationsRequestSchema>;
252
+ declare const listConversationsResponseSchema: z.ZodObject<{
253
+ conversations: z.ZodArray<z.ZodObject<{
254
+ id: z.ZodString;
255
+ title: z.ZodOptional<z.ZodString>;
256
+ createdAt: z.ZodString;
257
+ updatedAt: z.ZodString;
258
+ visitorId: z.ZodString;
259
+ websiteId: z.ZodString;
260
+ status: z.ZodDefault<z.ZodEnum<{
265
261
  resolved: "resolved";
266
262
  open: "open";
267
263
  spam: "spam";
268
264
  }>>;
269
- deletedAt: ZodDefault<ZodNullable<ZodString>>;
270
- lastTimelineItem: ZodOptional<ZodObject<{
271
- id: ZodOptional<ZodString>;
272
- conversationId: ZodString;
273
- organizationId: ZodString;
274
- visibility: ZodEnum<{
265
+ deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
266
+ lastTimelineItem: z.ZodOptional<z.ZodObject<{
267
+ id: z.ZodOptional<z.ZodString>;
268
+ conversationId: z.ZodString;
269
+ organizationId: z.ZodString;
270
+ visibility: z.ZodEnum<{
275
271
  public: "public";
276
272
  private: "private";
277
273
  }>;
278
- type: ZodEnum<{
279
- event: "event";
274
+ type: z.ZodEnum<{
280
275
  message: "message";
276
+ event: "event";
281
277
  identification: "identification";
282
278
  }>;
283
- text: ZodNullable<ZodString>;
284
- tool: ZodOptional<ZodNullable<ZodString>>;
285
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
286
- type: ZodLiteral<"text">;
287
- text: ZodString;
288
- }, $strip>, ZodObject<{
289
- type: ZodLiteral<"event">;
290
- eventType: ZodEnum<{
279
+ text: z.ZodNullable<z.ZodString>;
280
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
282
+ type: z.ZodLiteral<"text">;
283
+ text: z.ZodString;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ type: z.ZodLiteral<"event">;
286
+ eventType: z.ZodEnum<{
291
287
  assigned: "assigned";
292
288
  unassigned: "unassigned";
293
289
  participant_requested: "participant_requested";
@@ -303,88 +299,88 @@ declare const listConversationsResponseSchema: ZodObject<{
303
299
  visitor_unblocked: "visitor_unblocked";
304
300
  visitor_identified: "visitor_identified";
305
301
  }>;
306
- actorUserId: ZodNullable<ZodString>;
307
- actorAiAgentId: ZodNullable<ZodString>;
308
- targetUserId: ZodNullable<ZodString>;
309
- targetAiAgentId: ZodNullable<ZodString>;
310
- message: ZodOptional<ZodNullable<ZodString>>;
311
- }, $strip>, ZodObject<{
312
- type: ZodLiteral<"image">;
313
- url: ZodString;
314
- mediaType: ZodString;
315
- fileName: ZodOptional<ZodString>;
316
- size: ZodOptional<ZodNumber>;
317
- width: ZodOptional<ZodNumber>;
318
- height: ZodOptional<ZodNumber>;
319
- }, $strip>, ZodObject<{
320
- type: ZodLiteral<"file">;
321
- url: ZodString;
322
- mediaType: ZodString;
323
- fileName: ZodOptional<ZodString>;
324
- size: ZodOptional<ZodNumber>;
325
- }, $strip>, ZodObject<{
326
- type: ZodLiteral<"metadata">;
327
- source: ZodEnum<{
302
+ actorUserId: z.ZodNullable<z.ZodString>;
303
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
304
+ targetUserId: z.ZodNullable<z.ZodString>;
305
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
306
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ }, z.core.$strip>, z.ZodObject<{
308
+ type: z.ZodLiteral<"image">;
309
+ url: z.ZodString;
310
+ mediaType: z.ZodString;
311
+ fileName: z.ZodOptional<z.ZodString>;
312
+ size: z.ZodOptional<z.ZodNumber>;
313
+ width: z.ZodOptional<z.ZodNumber>;
314
+ height: z.ZodOptional<z.ZodNumber>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ type: z.ZodLiteral<"file">;
317
+ url: z.ZodString;
318
+ mediaType: z.ZodString;
319
+ fileName: z.ZodOptional<z.ZodString>;
320
+ size: z.ZodOptional<z.ZodNumber>;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ type: z.ZodLiteral<"metadata">;
323
+ source: z.ZodEnum<{
328
324
  email: "email";
329
325
  widget: "widget";
330
326
  api: "api";
331
327
  }>;
332
- }, $strip>]>>;
333
- userId: ZodNullable<ZodString>;
334
- aiAgentId: ZodNullable<ZodString>;
335
- visitorId: ZodNullable<ZodString>;
336
- createdAt: ZodString;
337
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
338
- }, $strip>>;
339
- }, $strip>>;
340
- pagination: ZodObject<{
341
- page: ZodNumber;
342
- limit: ZodNumber;
343
- total: ZodNumber;
344
- totalPages: ZodNumber;
345
- hasMore: ZodBoolean;
346
- }, $strip>;
347
- }, $strip>;
348
- type ListConversationsResponse = output<typeof listConversationsResponseSchema>;
349
- declare const getConversationRequestSchema: ZodObject<{
350
- conversationId: ZodString;
351
- }, $strip>;
352
- type GetConversationRequest = output<typeof getConversationRequestSchema>;
353
- declare const getConversationResponseSchema: ZodObject<{
354
- conversation: ZodObject<{
355
- id: ZodString;
356
- title: ZodOptional<ZodString>;
357
- createdAt: ZodString;
358
- updatedAt: ZodString;
359
- visitorId: ZodString;
360
- websiteId: ZodString;
361
- status: ZodDefault<ZodEnum<{
328
+ }, z.core.$strip>]>>;
329
+ userId: z.ZodNullable<z.ZodString>;
330
+ aiAgentId: z.ZodNullable<z.ZodString>;
331
+ visitorId: z.ZodNullable<z.ZodString>;
332
+ createdAt: z.ZodString;
333
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
+ }, z.core.$strip>>;
335
+ }, z.core.$strip>>;
336
+ pagination: z.ZodObject<{
337
+ page: z.ZodNumber;
338
+ limit: z.ZodNumber;
339
+ total: z.ZodNumber;
340
+ totalPages: z.ZodNumber;
341
+ hasMore: z.ZodBoolean;
342
+ }, z.core.$strip>;
343
+ }, z.core.$strip>;
344
+ type ListConversationsResponse = z.infer<typeof listConversationsResponseSchema>;
345
+ declare const getConversationRequestSchema: z.ZodObject<{
346
+ conversationId: z.ZodString;
347
+ }, z.core.$strip>;
348
+ type GetConversationRequest = z.infer<typeof getConversationRequestSchema>;
349
+ declare const getConversationResponseSchema: z.ZodObject<{
350
+ conversation: z.ZodObject<{
351
+ id: z.ZodString;
352
+ title: z.ZodOptional<z.ZodString>;
353
+ createdAt: z.ZodString;
354
+ updatedAt: z.ZodString;
355
+ visitorId: z.ZodString;
356
+ websiteId: z.ZodString;
357
+ status: z.ZodDefault<z.ZodEnum<{
362
358
  resolved: "resolved";
363
359
  open: "open";
364
360
  spam: "spam";
365
361
  }>>;
366
- deletedAt: ZodDefault<ZodNullable<ZodString>>;
367
- lastTimelineItem: ZodOptional<ZodObject<{
368
- id: ZodOptional<ZodString>;
369
- conversationId: ZodString;
370
- organizationId: ZodString;
371
- visibility: ZodEnum<{
362
+ deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
363
+ lastTimelineItem: z.ZodOptional<z.ZodObject<{
364
+ id: z.ZodOptional<z.ZodString>;
365
+ conversationId: z.ZodString;
366
+ organizationId: z.ZodString;
367
+ visibility: z.ZodEnum<{
372
368
  public: "public";
373
369
  private: "private";
374
370
  }>;
375
- type: ZodEnum<{
376
- event: "event";
371
+ type: z.ZodEnum<{
377
372
  message: "message";
373
+ event: "event";
378
374
  identification: "identification";
379
375
  }>;
380
- text: ZodNullable<ZodString>;
381
- tool: ZodOptional<ZodNullable<ZodString>>;
382
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
383
- type: ZodLiteral<"text">;
384
- text: ZodString;
385
- }, $strip>, ZodObject<{
386
- type: ZodLiteral<"event">;
387
- eventType: ZodEnum<{
376
+ text: z.ZodNullable<z.ZodString>;
377
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
379
+ type: z.ZodLiteral<"text">;
380
+ text: z.ZodString;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ type: z.ZodLiteral<"event">;
383
+ eventType: z.ZodEnum<{
388
384
  assigned: "assigned";
389
385
  unassigned: "unassigned";
390
386
  participant_requested: "participant_requested";
@@ -400,72 +396,72 @@ declare const getConversationResponseSchema: ZodObject<{
400
396
  visitor_unblocked: "visitor_unblocked";
401
397
  visitor_identified: "visitor_identified";
402
398
  }>;
403
- actorUserId: ZodNullable<ZodString>;
404
- actorAiAgentId: ZodNullable<ZodString>;
405
- targetUserId: ZodNullable<ZodString>;
406
- targetAiAgentId: ZodNullable<ZodString>;
407
- message: ZodOptional<ZodNullable<ZodString>>;
408
- }, $strip>, ZodObject<{
409
- type: ZodLiteral<"image">;
410
- url: ZodString;
411
- mediaType: ZodString;
412
- fileName: ZodOptional<ZodString>;
413
- size: ZodOptional<ZodNumber>;
414
- width: ZodOptional<ZodNumber>;
415
- height: ZodOptional<ZodNumber>;
416
- }, $strip>, ZodObject<{
417
- type: ZodLiteral<"file">;
418
- url: ZodString;
419
- mediaType: ZodString;
420
- fileName: ZodOptional<ZodString>;
421
- size: ZodOptional<ZodNumber>;
422
- }, $strip>, ZodObject<{
423
- type: ZodLiteral<"metadata">;
424
- source: ZodEnum<{
399
+ actorUserId: z.ZodNullable<z.ZodString>;
400
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
401
+ targetUserId: z.ZodNullable<z.ZodString>;
402
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
403
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ type: z.ZodLiteral<"image">;
406
+ url: z.ZodString;
407
+ mediaType: z.ZodString;
408
+ fileName: z.ZodOptional<z.ZodString>;
409
+ size: z.ZodOptional<z.ZodNumber>;
410
+ width: z.ZodOptional<z.ZodNumber>;
411
+ height: z.ZodOptional<z.ZodNumber>;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ type: z.ZodLiteral<"file">;
414
+ url: z.ZodString;
415
+ mediaType: z.ZodString;
416
+ fileName: z.ZodOptional<z.ZodString>;
417
+ size: z.ZodOptional<z.ZodNumber>;
418
+ }, z.core.$strip>, z.ZodObject<{
419
+ type: z.ZodLiteral<"metadata">;
420
+ source: z.ZodEnum<{
425
421
  email: "email";
426
422
  widget: "widget";
427
423
  api: "api";
428
424
  }>;
429
- }, $strip>]>>;
430
- userId: ZodNullable<ZodString>;
431
- aiAgentId: ZodNullable<ZodString>;
432
- visitorId: ZodNullable<ZodString>;
433
- createdAt: ZodString;
434
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
435
- }, $strip>>;
436
- }, $strip>;
437
- }, $strip>;
438
- type GetConversationResponse = output<typeof getConversationResponseSchema>;
439
- declare const markConversationSeenRequestSchema: ZodObject<{
440
- visitorId: ZodOptional<ZodString>;
441
- }, $strip>;
442
- type MarkConversationSeenRequestBody = output<typeof markConversationSeenRequestSchema>;
443
- declare const markConversationSeenResponseSchema: ZodObject<{
444
- conversationId: ZodString;
445
- lastSeenAt: ZodString;
446
- }, $strip>;
447
- type MarkConversationSeenResponseBody = output<typeof markConversationSeenResponseSchema>;
448
- declare const setConversationTypingResponseSchema: ZodObject<{
449
- conversationId: ZodString;
450
- isTyping: ZodBoolean;
451
- visitorPreview: ZodNullable<ZodString>;
452
- sentAt: ZodString;
453
- }, $strip>;
454
- type SetConversationTypingResponseBody = output<typeof setConversationTypingResponseSchema>;
455
- declare const getConversationSeenDataResponseSchema: ZodObject<{
456
- seenData: ZodArray<ZodObject<{
457
- id: ZodString;
458
- conversationId: ZodString;
459
- userId: ZodNullable<ZodString>;
460
- visitorId: ZodNullable<ZodString>;
461
- aiAgentId: ZodNullable<ZodString>;
462
- lastSeenAt: ZodString;
463
- createdAt: ZodString;
464
- updatedAt: ZodString;
465
- deletedAt: ZodNullable<ZodString>;
466
- }, $strip>>;
467
- }, $strip>;
468
- type GetConversationSeenDataResponse = output<typeof getConversationSeenDataResponseSchema>;
425
+ }, z.core.$strip>]>>;
426
+ userId: z.ZodNullable<z.ZodString>;
427
+ aiAgentId: z.ZodNullable<z.ZodString>;
428
+ visitorId: z.ZodNullable<z.ZodString>;
429
+ createdAt: z.ZodString;
430
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ }, z.core.$strip>>;
432
+ }, z.core.$strip>;
433
+ }, z.core.$strip>;
434
+ type GetConversationResponse = z.infer<typeof getConversationResponseSchema>;
435
+ declare const markConversationSeenRequestSchema: z.ZodObject<{
436
+ visitorId: z.ZodOptional<z.ZodString>;
437
+ }, z.core.$strip>;
438
+ type MarkConversationSeenRequestBody = z.infer<typeof markConversationSeenRequestSchema>;
439
+ declare const markConversationSeenResponseSchema: z.ZodObject<{
440
+ conversationId: z.ZodString;
441
+ lastSeenAt: z.ZodString;
442
+ }, z.core.$strip>;
443
+ type MarkConversationSeenResponseBody = z.infer<typeof markConversationSeenResponseSchema>;
444
+ declare const setConversationTypingResponseSchema: z.ZodObject<{
445
+ conversationId: z.ZodString;
446
+ isTyping: z.ZodBoolean;
447
+ visitorPreview: z.ZodNullable<z.ZodString>;
448
+ sentAt: z.ZodString;
449
+ }, z.core.$strip>;
450
+ type SetConversationTypingResponseBody = z.infer<typeof setConversationTypingResponseSchema>;
451
+ declare const getConversationSeenDataResponseSchema: z.ZodObject<{
452
+ seenData: z.ZodArray<z.ZodObject<{
453
+ id: z.ZodString;
454
+ conversationId: z.ZodString;
455
+ userId: z.ZodNullable<z.ZodString>;
456
+ visitorId: z.ZodNullable<z.ZodString>;
457
+ aiAgentId: z.ZodNullable<z.ZodString>;
458
+ lastSeenAt: z.ZodString;
459
+ createdAt: z.ZodString;
460
+ updatedAt: z.ZodString;
461
+ deletedAt: z.ZodNullable<z.ZodString>;
462
+ }, z.core.$strip>>;
463
+ }, z.core.$strip>;
464
+ type GetConversationSeenDataResponse = z.infer<typeof getConversationSeenDataResponseSchema>;
469
465
  //#endregion
470
466
  export { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingResponseBody };
471
467
  //# sourceMappingURL=conversation.d.ts.map