@cossistant/core 0.0.25 → 0.0.28

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