@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.
Files changed (73) hide show
  1. package/api/common.d.ts +17 -20
  2. package/api/common.d.ts.map +1 -1
  3. package/api/contact.d.ts +99 -101
  4. package/api/contact.d.ts.map +1 -1
  5. package/api/conversation.d.ts +322 -326
  6. package/api/conversation.d.ts.map +1 -1
  7. package/api/notification.d.ts +70 -73
  8. package/api/notification.d.ts.map +1 -1
  9. package/api/organization.d.ts +7 -9
  10. package/api/organization.d.ts.map +1 -1
  11. package/api/timeline-item.d.ts +261 -265
  12. package/api/timeline-item.d.ts.map +1 -1
  13. package/api/upload.d.ts +95 -98
  14. package/api/upload.d.ts.map +1 -1
  15. package/api/user.d.ts +19 -21
  16. package/api/user.d.ts.map +1 -1
  17. package/api/visitor.d.ts +110 -112
  18. package/api/visitor.d.ts.map +1 -1
  19. package/api/website.d.ts +177 -179
  20. package/api/website.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/realtime-events.d.ts +330 -332
  23. package/realtime-events.d.ts.map +1 -1
  24. package/schemas.d.ts +80 -82
  25. package/schemas.d.ts.map +1 -1
  26. package/trpc/contact.d.ts +78 -74
  27. package/trpc/contact.d.ts.map +1 -1
  28. package/trpc/contact.js +7 -4
  29. package/trpc/contact.js.map +1 -1
  30. package/trpc/conversation.d.ts +328 -330
  31. package/trpc/conversation.d.ts.map +1 -1
  32. package/trpc/visitor.d.ts +105 -107
  33. package/trpc/visitor.d.ts.map +1 -1
  34. package/api.d.ts +0 -71
  35. package/api.d.ts.map +0 -1
  36. package/checks.d.ts +0 -189
  37. package/checks.d.ts.map +0 -1
  38. package/coerce.d.ts +0 -9
  39. package/coerce.d.ts.map +0 -1
  40. package/core.d.ts +0 -35
  41. package/core.d.ts.map +0 -1
  42. package/errors.d.ts +0 -121
  43. package/errors.d.ts.map +0 -1
  44. package/errors2.d.ts +0 -24
  45. package/errors2.d.ts.map +0 -1
  46. package/index2.d.ts +0 -4
  47. package/index3.d.ts +0 -1
  48. package/metadata.d.ts +0 -1
  49. package/openapi-generator.d.ts +0 -1
  50. package/openapi-generator2.d.ts +0 -1
  51. package/openapi-generator3.d.ts +0 -1
  52. package/openapi30.d.ts +0 -125
  53. package/openapi30.d.ts.map +0 -1
  54. package/openapi31.d.ts +0 -131
  55. package/openapi31.d.ts.map +0 -1
  56. package/parse.d.ts +0 -17
  57. package/parse.d.ts.map +0 -1
  58. package/registries.d.ts +0 -32
  59. package/registries.d.ts.map +0 -1
  60. package/schemas2.d.ts +0 -685
  61. package/schemas2.d.ts.map +0 -1
  62. package/schemas3.d.ts +0 -325
  63. package/schemas3.d.ts.map +0 -1
  64. package/specification-extension.d.ts +0 -9
  65. package/specification-extension.d.ts.map +0 -1
  66. package/standard-schema.d.ts +0 -59
  67. package/standard-schema.d.ts.map +0 -1
  68. package/util.d.ts +0 -41
  69. package/util.d.ts.map +0 -1
  70. package/versions.d.ts +0 -9
  71. package/versions.d.ts.map +0 -1
  72. package/zod-extensions.d.ts +0 -39
  73. package/zod-extensions.d.ts.map +0 -1
@@ -1,34 +1,30 @@
1
- import { $strip } from "../schemas2.js";
2
- import { output } from "../core.js";
3
- import { ZodArray, ZodBoolean, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } from "../schemas3.js";
4
- import { ZodCoercedNumber } from "../coerce.js";
5
- import "../index3.js";
1
+ import { z } from "@hono/zod-openapi";
6
2
 
7
3
  //#region 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<{
16
- private: "private";
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<{
17
12
  public: "public";
13
+ private: "private";
18
14
  }>;
19
- type: ZodEnum<{
15
+ type: z.ZodEnum<{
20
16
  message: "message";
21
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
  resolved: "resolved";
33
29
  assigned: "assigned";
34
30
  unassigned: "unassigned";
@@ -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<{
89
- private: "private";
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<{
90
85
  public: "public";
86
+ private: "private";
91
87
  }>;
92
- type: ZodEnum<{
88
+ type: z.ZodEnum<{
93
89
  message: "message";
94
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
  resolved: "resolved";
106
102
  assigned: "assigned";
107
103
  unassigned: "unassigned";
@@ -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
  open: "open";
162
158
  resolved: "resolved";
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<{
171
- private: "private";
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<{
172
167
  public: "public";
168
+ private: "private";
173
169
  }>;
174
- type: ZodEnum<{
170
+ type: z.ZodEnum<{
175
171
  message: "message";
176
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
  resolved: "resolved";
188
184
  assigned: "assigned";
189
185
  unassigned: "unassigned";
@@ -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
  open: "open";
266
262
  resolved: "resolved";
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<{
275
- private: "private";
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<{
276
271
  public: "public";
272
+ private: "private";
277
273
  }>;
278
- type: ZodEnum<{
274
+ type: z.ZodEnum<{
279
275
  message: "message";
280
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
  resolved: "resolved";
292
288
  assigned: "assigned";
293
289
  unassigned: "unassigned";
@@ -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
  open: "open";
363
359
  resolved: "resolved";
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<{
372
- private: "private";
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<{
373
368
  public: "public";
369
+ private: "private";
374
370
  }>;
375
- type: ZodEnum<{
371
+ type: z.ZodEnum<{
376
372
  message: "message";
377
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
  resolved: "resolved";
389
385
  assigned: "assigned";
390
386
  unassigned: "unassigned";
@@ -400,78 +396,78 @@ 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 setConversationTypingRequestSchema: ZodObject<{
449
- isTyping: ZodBoolean;
450
- visitorPreview: ZodOptional<ZodString>;
451
- visitorId: ZodOptional<ZodString>;
452
- }, $strip>;
453
- type SetConversationTypingRequestBody = output<typeof setConversationTypingRequestSchema>;
454
- declare const setConversationTypingResponseSchema: ZodObject<{
455
- conversationId: ZodString;
456
- isTyping: ZodBoolean;
457
- visitorPreview: ZodNullable<ZodString>;
458
- sentAt: ZodString;
459
- }, $strip>;
460
- type SetConversationTypingResponseBody = output<typeof setConversationTypingResponseSchema>;
461
- declare const getConversationSeenDataResponseSchema: ZodObject<{
462
- seenData: ZodArray<ZodObject<{
463
- id: ZodString;
464
- conversationId: ZodString;
465
- userId: ZodNullable<ZodString>;
466
- visitorId: ZodNullable<ZodString>;
467
- aiAgentId: ZodNullable<ZodString>;
468
- lastSeenAt: ZodString;
469
- createdAt: ZodString;
470
- updatedAt: ZodString;
471
- deletedAt: ZodNullable<ZodString>;
472
- }, $strip>>;
473
- }, $strip>;
474
- 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 setConversationTypingRequestSchema: z.ZodObject<{
445
+ isTyping: z.ZodBoolean;
446
+ visitorPreview: z.ZodOptional<z.ZodString>;
447
+ visitorId: z.ZodOptional<z.ZodString>;
448
+ }, z.core.$strip>;
449
+ type SetConversationTypingRequestBody = z.infer<typeof setConversationTypingRequestSchema>;
450
+ declare const setConversationTypingResponseSchema: z.ZodObject<{
451
+ conversationId: z.ZodString;
452
+ isTyping: z.ZodBoolean;
453
+ visitorPreview: z.ZodNullable<z.ZodString>;
454
+ sentAt: z.ZodString;
455
+ }, z.core.$strip>;
456
+ type SetConversationTypingResponseBody = z.infer<typeof setConversationTypingResponseSchema>;
457
+ declare const getConversationSeenDataResponseSchema: z.ZodObject<{
458
+ seenData: z.ZodArray<z.ZodObject<{
459
+ id: z.ZodString;
460
+ conversationId: z.ZodString;
461
+ userId: z.ZodNullable<z.ZodString>;
462
+ visitorId: z.ZodNullable<z.ZodString>;
463
+ aiAgentId: z.ZodNullable<z.ZodString>;
464
+ lastSeenAt: z.ZodString;
465
+ createdAt: z.ZodString;
466
+ updatedAt: z.ZodString;
467
+ deletedAt: z.ZodNullable<z.ZodString>;
468
+ }, z.core.$strip>>;
469
+ }, z.core.$strip>;
470
+ type GetConversationSeenDataResponse = z.infer<typeof getConversationSeenDataResponseSchema>;
475
471
  //#endregion
476
472
  export { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema };
477
473
  //# sourceMappingURL=conversation.d.ts.map