@cossistant/types 0.0.24 → 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 (71) 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 -80
  27. package/trpc/contact.d.ts.map +1 -1
  28. package/trpc/conversation.d.ts +328 -330
  29. package/trpc/conversation.d.ts.map +1 -1
  30. package/trpc/visitor.d.ts +105 -107
  31. package/trpc/visitor.d.ts.map +1 -1
  32. package/api.d.ts +0 -71
  33. package/api.d.ts.map +0 -1
  34. package/checks.d.ts +0 -189
  35. package/checks.d.ts.map +0 -1
  36. package/coerce.d.ts +0 -9
  37. package/coerce.d.ts.map +0 -1
  38. package/core.d.ts +0 -35
  39. package/core.d.ts.map +0 -1
  40. package/errors.d.ts +0 -121
  41. package/errors.d.ts.map +0 -1
  42. package/errors2.d.ts +0 -24
  43. package/errors2.d.ts.map +0 -1
  44. package/index2.d.ts +0 -4
  45. package/index3.d.ts +0 -1
  46. package/metadata.d.ts +0 -1
  47. package/openapi-generator.d.ts +0 -1
  48. package/openapi-generator2.d.ts +0 -1
  49. package/openapi-generator3.d.ts +0 -1
  50. package/openapi30.d.ts +0 -125
  51. package/openapi30.d.ts.map +0 -1
  52. package/openapi31.d.ts +0 -131
  53. package/openapi31.d.ts.map +0 -1
  54. package/parse.d.ts +0 -17
  55. package/parse.d.ts.map +0 -1
  56. package/registries.d.ts +0 -32
  57. package/registries.d.ts.map +0 -1
  58. package/schemas2.d.ts +0 -685
  59. package/schemas2.d.ts.map +0 -1
  60. package/schemas3.d.ts +0 -325
  61. package/schemas3.d.ts.map +0 -1
  62. package/specification-extension.d.ts +0 -9
  63. package/specification-extension.d.ts.map +0 -1
  64. package/standard-schema.d.ts +0 -59
  65. package/standard-schema.d.ts.map +0 -1
  66. package/util.d.ts +0 -41
  67. package/util.d.ts.map +0 -1
  68. package/versions.d.ts +0 -9
  69. package/versions.d.ts.map +0 -1
  70. package/zod-extensions.d.ts +0 -39
  71. package/zod-extensions.d.ts.map +0 -1
@@ -1,33 +1,29 @@
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/timeline-item.d.ts
8
- declare const timelinePartImageSchema: ZodObject<{
9
- type: ZodLiteral<"image">;
10
- url: ZodString;
11
- mediaType: ZodString;
12
- fileName: ZodOptional<ZodString>;
13
- size: ZodOptional<ZodNumber>;
14
- width: ZodOptional<ZodNumber>;
15
- height: ZodOptional<ZodNumber>;
16
- }, $strip>;
17
- declare const timelinePartTextSchema: ZodObject<{
18
- type: ZodLiteral<"text">;
19
- text: ZodString;
20
- }, $strip>;
21
- declare const timelineFileSchema: ZodObject<{
22
- type: ZodLiteral<"file">;
23
- url: ZodString;
24
- mediaType: ZodString;
25
- fileName: ZodOptional<ZodString>;
26
- size: ZodOptional<ZodNumber>;
27
- }, $strip>;
28
- declare const timelinePartEventSchema: ZodObject<{
29
- type: ZodLiteral<"event">;
30
- eventType: ZodEnum<{
4
+ declare const timelinePartImageSchema: z.ZodObject<{
5
+ type: z.ZodLiteral<"image">;
6
+ url: z.ZodString;
7
+ mediaType: z.ZodString;
8
+ fileName: z.ZodOptional<z.ZodString>;
9
+ size: z.ZodOptional<z.ZodNumber>;
10
+ width: z.ZodOptional<z.ZodNumber>;
11
+ height: z.ZodOptional<z.ZodNumber>;
12
+ }, z.core.$strip>;
13
+ declare const timelinePartTextSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<"text">;
15
+ text: z.ZodString;
16
+ }, z.core.$strip>;
17
+ declare const timelineFileSchema: z.ZodObject<{
18
+ type: z.ZodLiteral<"file">;
19
+ url: z.ZodString;
20
+ mediaType: z.ZodString;
21
+ fileName: z.ZodOptional<z.ZodString>;
22
+ size: z.ZodOptional<z.ZodNumber>;
23
+ }, z.core.$strip>;
24
+ declare const timelinePartEventSchema: z.ZodObject<{
25
+ type: z.ZodLiteral<"event">;
26
+ eventType: z.ZodEnum<{
31
27
  resolved: "resolved";
32
28
  assigned: "assigned";
33
29
  unassigned: "unassigned";
@@ -43,26 +39,26 @@ declare const timelinePartEventSchema: ZodObject<{
43
39
  visitor_unblocked: "visitor_unblocked";
44
40
  visitor_identified: "visitor_identified";
45
41
  }>;
46
- actorUserId: ZodNullable<ZodString>;
47
- actorAiAgentId: ZodNullable<ZodString>;
48
- targetUserId: ZodNullable<ZodString>;
49
- targetAiAgentId: ZodNullable<ZodString>;
50
- message: ZodOptional<ZodNullable<ZodString>>;
51
- }, $strip>;
52
- declare const timelinePartMetadataSchema: ZodObject<{
53
- type: ZodLiteral<"metadata">;
54
- source: ZodEnum<{
42
+ actorUserId: z.ZodNullable<z.ZodString>;
43
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
44
+ targetUserId: z.ZodNullable<z.ZodString>;
45
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
46
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ }, z.core.$strip>;
48
+ declare const timelinePartMetadataSchema: z.ZodObject<{
49
+ type: z.ZodLiteral<"metadata">;
50
+ source: z.ZodEnum<{
55
51
  email: "email";
56
52
  widget: "widget";
57
53
  api: "api";
58
54
  }>;
59
- }, $strip>;
60
- declare const timelineItemPartsSchema: ZodArray<ZodUnion<readonly [ZodObject<{
61
- type: ZodLiteral<"text">;
62
- text: ZodString;
63
- }, $strip>, ZodObject<{
64
- type: ZodLiteral<"event">;
65
- eventType: ZodEnum<{
55
+ }, z.core.$strip>;
56
+ declare const timelineItemPartsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
57
+ type: z.ZodLiteral<"text">;
58
+ text: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ type: z.ZodLiteral<"event">;
61
+ eventType: z.ZodEnum<{
66
62
  resolved: "resolved";
67
63
  assigned: "assigned";
68
64
  unassigned: "unassigned";
@@ -78,54 +74,54 @@ declare const timelineItemPartsSchema: ZodArray<ZodUnion<readonly [ZodObject<{
78
74
  visitor_unblocked: "visitor_unblocked";
79
75
  visitor_identified: "visitor_identified";
80
76
  }>;
81
- actorUserId: ZodNullable<ZodString>;
82
- actorAiAgentId: ZodNullable<ZodString>;
83
- targetUserId: ZodNullable<ZodString>;
84
- targetAiAgentId: ZodNullable<ZodString>;
85
- message: ZodOptional<ZodNullable<ZodString>>;
86
- }, $strip>, ZodObject<{
87
- type: ZodLiteral<"image">;
88
- url: ZodString;
89
- mediaType: ZodString;
90
- fileName: ZodOptional<ZodString>;
91
- size: ZodOptional<ZodNumber>;
92
- width: ZodOptional<ZodNumber>;
93
- height: ZodOptional<ZodNumber>;
94
- }, $strip>, ZodObject<{
95
- type: ZodLiteral<"file">;
96
- url: ZodString;
97
- mediaType: ZodString;
98
- fileName: ZodOptional<ZodString>;
99
- size: ZodOptional<ZodNumber>;
100
- }, $strip>, ZodObject<{
101
- type: ZodLiteral<"metadata">;
102
- source: ZodEnum<{
77
+ actorUserId: z.ZodNullable<z.ZodString>;
78
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
79
+ targetUserId: z.ZodNullable<z.ZodString>;
80
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
81
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodLiteral<"image">;
84
+ url: z.ZodString;
85
+ mediaType: z.ZodString;
86
+ fileName: z.ZodOptional<z.ZodString>;
87
+ size: z.ZodOptional<z.ZodNumber>;
88
+ width: z.ZodOptional<z.ZodNumber>;
89
+ height: z.ZodOptional<z.ZodNumber>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<"file">;
92
+ url: z.ZodString;
93
+ mediaType: z.ZodString;
94
+ fileName: z.ZodOptional<z.ZodString>;
95
+ size: z.ZodOptional<z.ZodNumber>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ type: z.ZodLiteral<"metadata">;
98
+ source: z.ZodEnum<{
103
99
  email: "email";
104
100
  widget: "widget";
105
101
  api: "api";
106
102
  }>;
107
- }, $strip>]>>;
108
- declare const timelineItemSchema: ZodObject<{
109
- id: ZodOptional<ZodString>;
110
- conversationId: ZodString;
111
- organizationId: ZodString;
112
- visibility: ZodEnum<{
113
- private: "private";
103
+ }, z.core.$strip>]>>;
104
+ declare const timelineItemSchema: z.ZodObject<{
105
+ id: z.ZodOptional<z.ZodString>;
106
+ conversationId: z.ZodString;
107
+ organizationId: z.ZodString;
108
+ visibility: z.ZodEnum<{
114
109
  public: "public";
110
+ private: "private";
115
111
  }>;
116
- type: ZodEnum<{
112
+ type: z.ZodEnum<{
117
113
  message: "message";
118
114
  event: "event";
119
115
  identification: "identification";
120
116
  }>;
121
- text: ZodNullable<ZodString>;
122
- tool: ZodOptional<ZodNullable<ZodString>>;
123
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
124
- type: ZodLiteral<"text">;
125
- text: ZodString;
126
- }, $strip>, ZodObject<{
127
- type: ZodLiteral<"event">;
128
- eventType: ZodEnum<{
117
+ text: z.ZodNullable<z.ZodString>;
118
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
120
+ type: z.ZodLiteral<"text">;
121
+ text: z.ZodString;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<"event">;
124
+ eventType: z.ZodEnum<{
129
125
  resolved: "resolved";
130
126
  assigned: "assigned";
131
127
  unassigned: "unassigned";
@@ -141,74 +137,74 @@ declare const timelineItemSchema: ZodObject<{
141
137
  visitor_unblocked: "visitor_unblocked";
142
138
  visitor_identified: "visitor_identified";
143
139
  }>;
144
- actorUserId: ZodNullable<ZodString>;
145
- actorAiAgentId: ZodNullable<ZodString>;
146
- targetUserId: ZodNullable<ZodString>;
147
- targetAiAgentId: ZodNullable<ZodString>;
148
- message: ZodOptional<ZodNullable<ZodString>>;
149
- }, $strip>, ZodObject<{
150
- type: ZodLiteral<"image">;
151
- url: ZodString;
152
- mediaType: ZodString;
153
- fileName: ZodOptional<ZodString>;
154
- size: ZodOptional<ZodNumber>;
155
- width: ZodOptional<ZodNumber>;
156
- height: ZodOptional<ZodNumber>;
157
- }, $strip>, ZodObject<{
158
- type: ZodLiteral<"file">;
159
- url: ZodString;
160
- mediaType: ZodString;
161
- fileName: ZodOptional<ZodString>;
162
- size: ZodOptional<ZodNumber>;
163
- }, $strip>, ZodObject<{
164
- type: ZodLiteral<"metadata">;
165
- source: ZodEnum<{
140
+ actorUserId: z.ZodNullable<z.ZodString>;
141
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
142
+ targetUserId: z.ZodNullable<z.ZodString>;
143
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
144
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ type: z.ZodLiteral<"image">;
147
+ url: z.ZodString;
148
+ mediaType: z.ZodString;
149
+ fileName: z.ZodOptional<z.ZodString>;
150
+ size: z.ZodOptional<z.ZodNumber>;
151
+ width: z.ZodOptional<z.ZodNumber>;
152
+ height: z.ZodOptional<z.ZodNumber>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"file">;
155
+ url: z.ZodString;
156
+ mediaType: z.ZodString;
157
+ fileName: z.ZodOptional<z.ZodString>;
158
+ size: z.ZodOptional<z.ZodNumber>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ type: z.ZodLiteral<"metadata">;
161
+ source: z.ZodEnum<{
166
162
  email: "email";
167
163
  widget: "widget";
168
164
  api: "api";
169
165
  }>;
170
- }, $strip>]>>;
171
- userId: ZodNullable<ZodString>;
172
- aiAgentId: ZodNullable<ZodString>;
173
- visitorId: ZodNullable<ZodString>;
174
- createdAt: ZodString;
175
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
176
- }, $strip>;
177
- type timelineItemSchema = output<typeof timelineItemSchema>;
178
- type TimelineItem = output<typeof timelineItemSchema>;
179
- type TimelineItemParts = output<typeof timelineItemPartsSchema>;
180
- type TimelinePartText = output<typeof timelinePartTextSchema>;
181
- type TimelinePartImage = output<typeof timelinePartImageSchema>;
182
- type TimelinePartFile = output<typeof timelineFileSchema>;
183
- type TimelinePartEvent = output<typeof timelinePartEventSchema>;
184
- type TimelinePartMetadata = output<typeof timelinePartMetadataSchema>;
185
- declare const getConversationTimelineItemsRequestSchema: ZodObject<{
186
- limit: ZodDefault<ZodCoercedNumber<unknown>>;
187
- cursor: ZodOptional<ZodNullable<ZodString>>;
188
- }, $strip>;
189
- type GetConversationTimelineItemsRequest = output<typeof getConversationTimelineItemsRequestSchema>;
190
- declare const getConversationTimelineItemsResponseSchema: ZodObject<{
191
- items: ZodArray<ZodObject<{
192
- id: ZodOptional<ZodString>;
193
- conversationId: ZodString;
194
- organizationId: ZodString;
195
- visibility: ZodEnum<{
196
- private: "private";
166
+ }, z.core.$strip>]>>;
167
+ userId: z.ZodNullable<z.ZodString>;
168
+ aiAgentId: z.ZodNullable<z.ZodString>;
169
+ visitorId: z.ZodNullable<z.ZodString>;
170
+ createdAt: z.ZodString;
171
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ }, z.core.$strip>;
173
+ type timelineItemSchema = z.infer<typeof timelineItemSchema>;
174
+ type TimelineItem = z.infer<typeof timelineItemSchema>;
175
+ type TimelineItemParts = z.infer<typeof timelineItemPartsSchema>;
176
+ type TimelinePartText = z.infer<typeof timelinePartTextSchema>;
177
+ type TimelinePartImage = z.infer<typeof timelinePartImageSchema>;
178
+ type TimelinePartFile = z.infer<typeof timelineFileSchema>;
179
+ type TimelinePartEvent = z.infer<typeof timelinePartEventSchema>;
180
+ type TimelinePartMetadata = z.infer<typeof timelinePartMetadataSchema>;
181
+ declare const getConversationTimelineItemsRequestSchema: z.ZodObject<{
182
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
183
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ }, z.core.$strip>;
185
+ type GetConversationTimelineItemsRequest = z.infer<typeof getConversationTimelineItemsRequestSchema>;
186
+ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
187
+ items: z.ZodArray<z.ZodObject<{
188
+ id: z.ZodOptional<z.ZodString>;
189
+ conversationId: z.ZodString;
190
+ organizationId: z.ZodString;
191
+ visibility: z.ZodEnum<{
197
192
  public: "public";
193
+ private: "private";
198
194
  }>;
199
- type: ZodEnum<{
195
+ type: z.ZodEnum<{
200
196
  message: "message";
201
197
  event: "event";
202
198
  identification: "identification";
203
199
  }>;
204
- text: ZodNullable<ZodString>;
205
- tool: ZodOptional<ZodNullable<ZodString>>;
206
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
207
- type: ZodLiteral<"text">;
208
- text: ZodString;
209
- }, $strip>, ZodObject<{
210
- type: ZodLiteral<"event">;
211
- eventType: ZodEnum<{
200
+ text: z.ZodNullable<z.ZodString>;
201
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
203
+ type: z.ZodLiteral<"text">;
204
+ text: z.ZodString;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ type: z.ZodLiteral<"event">;
207
+ eventType: z.ZodEnum<{
212
208
  resolved: "resolved";
213
209
  assigned: "assigned";
214
210
  unassigned: "unassigned";
@@ -224,58 +220,58 @@ declare const getConversationTimelineItemsResponseSchema: ZodObject<{
224
220
  visitor_unblocked: "visitor_unblocked";
225
221
  visitor_identified: "visitor_identified";
226
222
  }>;
227
- actorUserId: ZodNullable<ZodString>;
228
- actorAiAgentId: ZodNullable<ZodString>;
229
- targetUserId: ZodNullable<ZodString>;
230
- targetAiAgentId: ZodNullable<ZodString>;
231
- message: ZodOptional<ZodNullable<ZodString>>;
232
- }, $strip>, ZodObject<{
233
- type: ZodLiteral<"image">;
234
- url: ZodString;
235
- mediaType: ZodString;
236
- fileName: ZodOptional<ZodString>;
237
- size: ZodOptional<ZodNumber>;
238
- width: ZodOptional<ZodNumber>;
239
- height: ZodOptional<ZodNumber>;
240
- }, $strip>, ZodObject<{
241
- type: ZodLiteral<"file">;
242
- url: ZodString;
243
- mediaType: ZodString;
244
- fileName: ZodOptional<ZodString>;
245
- size: ZodOptional<ZodNumber>;
246
- }, $strip>, ZodObject<{
247
- type: ZodLiteral<"metadata">;
248
- source: ZodEnum<{
223
+ actorUserId: z.ZodNullable<z.ZodString>;
224
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
225
+ targetUserId: z.ZodNullable<z.ZodString>;
226
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
227
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ type: z.ZodLiteral<"image">;
230
+ url: z.ZodString;
231
+ mediaType: z.ZodString;
232
+ fileName: z.ZodOptional<z.ZodString>;
233
+ size: z.ZodOptional<z.ZodNumber>;
234
+ width: z.ZodOptional<z.ZodNumber>;
235
+ height: z.ZodOptional<z.ZodNumber>;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ type: z.ZodLiteral<"file">;
238
+ url: z.ZodString;
239
+ mediaType: z.ZodString;
240
+ fileName: z.ZodOptional<z.ZodString>;
241
+ size: z.ZodOptional<z.ZodNumber>;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ type: z.ZodLiteral<"metadata">;
244
+ source: z.ZodEnum<{
249
245
  email: "email";
250
246
  widget: "widget";
251
247
  api: "api";
252
248
  }>;
253
- }, $strip>]>>;
254
- userId: ZodNullable<ZodString>;
255
- aiAgentId: ZodNullable<ZodString>;
256
- visitorId: ZodNullable<ZodString>;
257
- createdAt: ZodString;
258
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
259
- }, $strip>>;
260
- nextCursor: ZodNullable<ZodString>;
261
- hasNextPage: ZodBoolean;
262
- }, $strip>;
263
- type GetConversationTimelineItemsResponse = output<typeof getConversationTimelineItemsResponseSchema>;
264
- declare const sendTimelineItemRequestSchema: ZodObject<{
265
- conversationId: ZodString;
266
- item: ZodObject<{
267
- id: ZodOptional<ZodString>;
268
- type: ZodDefault<ZodEnum<{
249
+ }, z.core.$strip>]>>;
250
+ userId: z.ZodNullable<z.ZodString>;
251
+ aiAgentId: z.ZodNullable<z.ZodString>;
252
+ visitorId: z.ZodNullable<z.ZodString>;
253
+ createdAt: z.ZodString;
254
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ }, z.core.$strip>>;
256
+ nextCursor: z.ZodNullable<z.ZodString>;
257
+ hasNextPage: z.ZodBoolean;
258
+ }, z.core.$strip>;
259
+ type GetConversationTimelineItemsResponse = z.infer<typeof getConversationTimelineItemsResponseSchema>;
260
+ declare const sendTimelineItemRequestSchema: z.ZodObject<{
261
+ conversationId: z.ZodString;
262
+ item: z.ZodObject<{
263
+ id: z.ZodOptional<z.ZodString>;
264
+ type: z.ZodDefault<z.ZodEnum<{
269
265
  message: "message";
270
266
  event: "event";
271
267
  }>>;
272
- text: ZodString;
273
- parts: ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{
274
- type: ZodLiteral<"text">;
275
- text: ZodString;
276
- }, $strip>, ZodObject<{
277
- type: ZodLiteral<"event">;
278
- eventType: ZodEnum<{
268
+ text: z.ZodString;
269
+ parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
270
+ type: z.ZodLiteral<"text">;
271
+ text: z.ZodString;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ type: z.ZodLiteral<"event">;
274
+ eventType: z.ZodEnum<{
279
275
  resolved: "resolved";
280
276
  assigned: "assigned";
281
277
  unassigned: "unassigned";
@@ -291,67 +287,67 @@ declare const sendTimelineItemRequestSchema: ZodObject<{
291
287
  visitor_unblocked: "visitor_unblocked";
292
288
  visitor_identified: "visitor_identified";
293
289
  }>;
294
- actorUserId: ZodNullable<ZodString>;
295
- actorAiAgentId: ZodNullable<ZodString>;
296
- targetUserId: ZodNullable<ZodString>;
297
- targetAiAgentId: ZodNullable<ZodString>;
298
- message: ZodOptional<ZodNullable<ZodString>>;
299
- }, $strip>, ZodObject<{
300
- type: ZodLiteral<"image">;
301
- url: ZodString;
302
- mediaType: ZodString;
303
- fileName: ZodOptional<ZodString>;
304
- size: ZodOptional<ZodNumber>;
305
- width: ZodOptional<ZodNumber>;
306
- height: ZodOptional<ZodNumber>;
307
- }, $strip>, ZodObject<{
308
- type: ZodLiteral<"file">;
309
- url: ZodString;
310
- mediaType: ZodString;
311
- fileName: ZodOptional<ZodString>;
312
- size: ZodOptional<ZodNumber>;
313
- }, $strip>, ZodObject<{
314
- type: ZodLiteral<"metadata">;
315
- source: ZodEnum<{
290
+ actorUserId: z.ZodNullable<z.ZodString>;
291
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
292
+ targetUserId: z.ZodNullable<z.ZodString>;
293
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
294
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ }, z.core.$strip>, z.ZodObject<{
296
+ type: z.ZodLiteral<"image">;
297
+ url: z.ZodString;
298
+ mediaType: z.ZodString;
299
+ fileName: z.ZodOptional<z.ZodString>;
300
+ size: z.ZodOptional<z.ZodNumber>;
301
+ width: z.ZodOptional<z.ZodNumber>;
302
+ height: z.ZodOptional<z.ZodNumber>;
303
+ }, z.core.$strip>, z.ZodObject<{
304
+ type: z.ZodLiteral<"file">;
305
+ url: z.ZodString;
306
+ mediaType: z.ZodString;
307
+ fileName: z.ZodOptional<z.ZodString>;
308
+ size: z.ZodOptional<z.ZodNumber>;
309
+ }, z.core.$strip>, z.ZodObject<{
310
+ type: z.ZodLiteral<"metadata">;
311
+ source: z.ZodEnum<{
316
312
  email: "email";
317
313
  widget: "widget";
318
314
  api: "api";
319
315
  }>;
320
- }, $strip>]>>>;
321
- visibility: ZodDefault<ZodEnum<{
322
- private: "private";
316
+ }, z.core.$strip>]>>>;
317
+ visibility: z.ZodDefault<z.ZodEnum<{
323
318
  public: "public";
324
- }>>;
325
- tool: ZodOptional<ZodNullable<ZodString>>;
326
- userId: ZodOptional<ZodNullable<ZodString>>;
327
- aiAgentId: ZodOptional<ZodNullable<ZodString>>;
328
- visitorId: ZodOptional<ZodNullable<ZodString>>;
329
- createdAt: ZodOptional<ZodString>;
330
- }, $strip>;
331
- }, $strip>;
332
- type SendTimelineItemRequest = output<typeof sendTimelineItemRequestSchema>;
333
- declare const sendTimelineItemResponseSchema: ZodObject<{
334
- item: ZodObject<{
335
- id: ZodOptional<ZodString>;
336
- conversationId: ZodString;
337
- organizationId: ZodString;
338
- visibility: ZodEnum<{
339
319
  private: "private";
320
+ }>>;
321
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ aiAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ createdAt: z.ZodOptional<z.ZodString>;
326
+ }, z.core.$strip>;
327
+ }, z.core.$strip>;
328
+ type SendTimelineItemRequest = z.infer<typeof sendTimelineItemRequestSchema>;
329
+ declare const sendTimelineItemResponseSchema: z.ZodObject<{
330
+ item: z.ZodObject<{
331
+ id: z.ZodOptional<z.ZodString>;
332
+ conversationId: z.ZodString;
333
+ organizationId: z.ZodString;
334
+ visibility: z.ZodEnum<{
340
335
  public: "public";
336
+ private: "private";
341
337
  }>;
342
- type: ZodEnum<{
338
+ type: z.ZodEnum<{
343
339
  message: "message";
344
340
  event: "event";
345
341
  identification: "identification";
346
342
  }>;
347
- text: ZodNullable<ZodString>;
348
- tool: ZodOptional<ZodNullable<ZodString>>;
349
- parts: ZodArray<ZodUnion<readonly [ZodObject<{
350
- type: ZodLiteral<"text">;
351
- text: ZodString;
352
- }, $strip>, ZodObject<{
353
- type: ZodLiteral<"event">;
354
- eventType: ZodEnum<{
343
+ text: z.ZodNullable<z.ZodString>;
344
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
346
+ type: z.ZodLiteral<"text">;
347
+ text: z.ZodString;
348
+ }, z.core.$strip>, z.ZodObject<{
349
+ type: z.ZodLiteral<"event">;
350
+ eventType: z.ZodEnum<{
355
351
  resolved: "resolved";
356
352
  assigned: "assigned";
357
353
  unassigned: "unassigned";
@@ -367,41 +363,41 @@ declare const sendTimelineItemResponseSchema: ZodObject<{
367
363
  visitor_unblocked: "visitor_unblocked";
368
364
  visitor_identified: "visitor_identified";
369
365
  }>;
370
- actorUserId: ZodNullable<ZodString>;
371
- actorAiAgentId: ZodNullable<ZodString>;
372
- targetUserId: ZodNullable<ZodString>;
373
- targetAiAgentId: ZodNullable<ZodString>;
374
- message: ZodOptional<ZodNullable<ZodString>>;
375
- }, $strip>, ZodObject<{
376
- type: ZodLiteral<"image">;
377
- url: ZodString;
378
- mediaType: ZodString;
379
- fileName: ZodOptional<ZodString>;
380
- size: ZodOptional<ZodNumber>;
381
- width: ZodOptional<ZodNumber>;
382
- height: ZodOptional<ZodNumber>;
383
- }, $strip>, ZodObject<{
384
- type: ZodLiteral<"file">;
385
- url: ZodString;
386
- mediaType: ZodString;
387
- fileName: ZodOptional<ZodString>;
388
- size: ZodOptional<ZodNumber>;
389
- }, $strip>, ZodObject<{
390
- type: ZodLiteral<"metadata">;
391
- source: ZodEnum<{
366
+ actorUserId: z.ZodNullable<z.ZodString>;
367
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
368
+ targetUserId: z.ZodNullable<z.ZodString>;
369
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
370
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ }, z.core.$strip>, z.ZodObject<{
372
+ type: z.ZodLiteral<"image">;
373
+ url: z.ZodString;
374
+ mediaType: z.ZodString;
375
+ fileName: z.ZodOptional<z.ZodString>;
376
+ size: z.ZodOptional<z.ZodNumber>;
377
+ width: z.ZodOptional<z.ZodNumber>;
378
+ height: z.ZodOptional<z.ZodNumber>;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ type: z.ZodLiteral<"file">;
381
+ url: z.ZodString;
382
+ mediaType: z.ZodString;
383
+ fileName: z.ZodOptional<z.ZodString>;
384
+ size: z.ZodOptional<z.ZodNumber>;
385
+ }, z.core.$strip>, z.ZodObject<{
386
+ type: z.ZodLiteral<"metadata">;
387
+ source: z.ZodEnum<{
392
388
  email: "email";
393
389
  widget: "widget";
394
390
  api: "api";
395
391
  }>;
396
- }, $strip>]>>;
397
- userId: ZodNullable<ZodString>;
398
- aiAgentId: ZodNullable<ZodString>;
399
- visitorId: ZodNullable<ZodString>;
400
- createdAt: ZodString;
401
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
402
- }, $strip>;
403
- }, $strip>;
404
- type SendTimelineItemResponse = output<typeof sendTimelineItemResponseSchema>;
392
+ }, z.core.$strip>]>>;
393
+ userId: z.ZodNullable<z.ZodString>;
394
+ aiAgentId: z.ZodNullable<z.ZodString>;
395
+ visitorId: z.ZodNullable<z.ZodString>;
396
+ createdAt: z.ZodString;
397
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
398
+ }, z.core.$strip>;
399
+ }, z.core.$strip>;
400
+ type SendTimelineItemResponse = z.infer<typeof sendTimelineItemResponseSchema>;
405
401
  //#endregion
406
402
  export { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, timelineItemPartsSchema, timelineItemSchema };
407
403
  //# sourceMappingURL=timeline-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../src/api/timeline-item.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQM,yBAAuB;;;;;;EAAvB,KAAA,aAAA,UAsBJ,CAAA;;;cAEI,wBAAsB;;;;cAStB,oBAAkB;;;;;;CAjCK,QAAA,CAAA;cAmDvB,uBAnDuB,EAmDA,SAnDA,CAAA;EAwBvB,IAAA,YAAA,CAAA,OAOJ,CAAA;;;;IAP0B,UAAA,EAAA,YAAA;IAAA,qBAAA,EAAA,uBAAA;IAStB,kBAgBJ,EAAA,oBAAA;;;;;;;;;IAhBsB,kBAAA,EAAA,oBAAA;EAAA,CAAA,CAAA;EAkBlB,WAAA,aAuCJ,UAAA,CAAA;;;;;;cAEI,4BAA0B;;;;;;;;cASnB,yBAAuB,SAAA,mBAAA;EAlDP,IAAA,YAAA,CAAA,MAAA,CAAA;EAAA,I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