@cossistant/types 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/api/common.d.ts +47 -0
  2. package/api/common.d.ts.map +1 -0
  3. package/api/contact.d.ts +140 -0
  4. package/api/contact.d.ts.map +1 -0
  5. package/api/conversation.d.ts +95 -0
  6. package/api/conversation.d.ts.map +1 -0
  7. package/api/organization.d.ts +17 -0
  8. package/{dist/api → api}/organization.d.ts.map +1 -1
  9. package/api/timeline-item.d.ts +274 -0
  10. package/api/timeline-item.d.ts.map +1 -0
  11. package/api/upload.d.ts +103 -0
  12. package/api/upload.d.ts.map +1 -0
  13. package/api/user.d.ts +29 -0
  14. package/api/user.d.ts.map +1 -0
  15. package/api/visitor.d.ts +127 -0
  16. package/api/visitor.d.ts.map +1 -0
  17. package/api/website.d.ts +194 -0
  18. package/api/website.d.ts.map +1 -0
  19. package/api.d.ts +71 -0
  20. package/api.d.ts.map +1 -0
  21. package/checks.d.ts +189 -0
  22. package/checks.d.ts.map +1 -0
  23. package/coerce.d.ts +9 -0
  24. package/coerce.d.ts.map +1 -0
  25. package/core.d.ts +35 -0
  26. package/core.d.ts.map +1 -0
  27. package/errors.d.ts +121 -0
  28. package/errors.d.ts.map +1 -0
  29. package/errors2.d.ts +24 -0
  30. package/errors2.d.ts.map +1 -0
  31. package/index2.d.ts +4 -0
  32. package/index3.d.ts +1 -0
  33. package/metadata.d.ts +1 -0
  34. package/openapi-generator.d.ts +1 -0
  35. package/openapi-generator2.d.ts +1 -0
  36. package/openapi-generator3.d.ts +1 -0
  37. package/openapi30.d.ts +125 -0
  38. package/openapi30.d.ts.map +1 -0
  39. package/openapi31.d.ts +131 -0
  40. package/openapi31.d.ts.map +1 -0
  41. package/package.json +12 -16
  42. package/parse.d.ts +17 -0
  43. package/parse.d.ts.map +1 -0
  44. package/realtime-events.d.ts +138 -0
  45. package/realtime-events.d.ts.map +1 -0
  46. package/registries.d.ts +32 -0
  47. package/registries.d.ts.map +1 -0
  48. package/schemas.d.ts +46 -0
  49. package/schemas.d.ts.map +1 -0
  50. package/schemas2.d.ts +685 -0
  51. package/schemas2.d.ts.map +1 -0
  52. package/schemas3.d.ts +325 -0
  53. package/schemas3.d.ts.map +1 -0
  54. package/specification-extension.d.ts +9 -0
  55. package/specification-extension.d.ts.map +1 -0
  56. package/standard-schema.d.ts +59 -0
  57. package/standard-schema.d.ts.map +1 -0
  58. package/trpc/contact.d.ts +70 -0
  59. package/trpc/contact.d.ts.map +1 -0
  60. package/trpc/conversation.d.ts +141 -0
  61. package/trpc/conversation.d.ts.map +1 -0
  62. package/trpc/visitor.d.ts +55 -0
  63. package/trpc/visitor.d.ts.map +1 -0
  64. package/util.d.ts +41 -0
  65. package/util.d.ts.map +1 -0
  66. package/versions.d.ts +9 -0
  67. package/versions.d.ts.map +1 -0
  68. package/zod-extensions.d.ts +39 -0
  69. package/zod-extensions.d.ts.map +1 -0
  70. package/dist/api/common.d.ts +0 -44
  71. package/dist/api/common.d.ts.map +0 -1
  72. package/dist/api/contact.d.ts +0 -138
  73. package/dist/api/contact.d.ts.map +0 -1
  74. package/dist/api/conversation.d.ts +0 -91
  75. package/dist/api/conversation.d.ts.map +0 -1
  76. package/dist/api/organization.d.ts +0 -15
  77. package/dist/api/timeline-item.d.ts +0 -270
  78. package/dist/api/timeline-item.d.ts.map +0 -1
  79. package/dist/api/upload.d.ts +0 -100
  80. package/dist/api/upload.d.ts.map +0 -1
  81. package/dist/api/user.d.ts +0 -27
  82. package/dist/api/user.d.ts.map +0 -1
  83. package/dist/api/visitor.d.ts +0 -125
  84. package/dist/api/visitor.d.ts.map +0 -1
  85. package/dist/api/website.d.ts +0 -192
  86. package/dist/api/website.d.ts.map +0 -1
  87. package/dist/realtime-events.d.ts +0 -136
  88. package/dist/realtime-events.d.ts.map +0 -1
  89. package/dist/schemas.d.ts +0 -44
  90. package/dist/schemas.d.ts.map +0 -1
  91. package/dist/trpc/contact.d.ts +0 -68
  92. package/dist/trpc/contact.d.ts.map +0 -1
  93. package/dist/trpc/conversation.d.ts +0 -139
  94. package/dist/trpc/conversation.d.ts.map +0 -1
  95. package/dist/trpc/visitor.d.ts +0 -53
  96. package/dist/trpc/visitor.d.ts.map +0 -1
  97. /package/{dist/api → api}/common.js +0 -0
  98. /package/{dist/api → api}/common.js.map +0 -0
  99. /package/{dist/api → api}/contact.js +0 -0
  100. /package/{dist/api → api}/contact.js.map +0 -0
  101. /package/{dist/api → api}/conversation.js +0 -0
  102. /package/{dist/api → api}/conversation.js.map +0 -0
  103. /package/{dist/api → api}/index.d.ts +0 -0
  104. /package/{dist/api → api}/index.js +0 -0
  105. /package/{dist/api → api}/organization.js +0 -0
  106. /package/{dist/api → api}/organization.js.map +0 -0
  107. /package/{dist/api → api}/timeline-item.js +0 -0
  108. /package/{dist/api → api}/timeline-item.js.map +0 -0
  109. /package/{dist/api → api}/upload.js +0 -0
  110. /package/{dist/api → api}/upload.js.map +0 -0
  111. /package/{dist/api → api}/user.js +0 -0
  112. /package/{dist/api → api}/user.js.map +0 -0
  113. /package/{dist/api → api}/visitor.js +0 -0
  114. /package/{dist/api → api}/visitor.js.map +0 -0
  115. /package/{dist/api → api}/website.js +0 -0
  116. /package/{dist/api → api}/website.js.map +0 -0
  117. /package/{dist/enums.d.ts → enums.d.ts} +0 -0
  118. /package/{dist/enums.d.ts.map → enums.d.ts.map} +0 -0
  119. /package/{dist/enums.js → enums.js} +0 -0
  120. /package/{dist/enums.js.map → enums.js.map} +0 -0
  121. /package/{dist/index.d.ts → index.d.ts} +0 -0
  122. /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
  123. /package/{dist/index.js → index.js} +0 -0
  124. /package/{dist/presence.d.ts → presence.d.ts} +0 -0
  125. /package/{dist/presence.d.ts.map → presence.d.ts.map} +0 -0
  126. /package/{dist/presence.js → presence.js} +0 -0
  127. /package/{dist/presence.js.map → presence.js.map} +0 -0
  128. /package/{dist/realtime-events.js → realtime-events.js} +0 -0
  129. /package/{dist/realtime-events.js.map → realtime-events.js.map} +0 -0
  130. /package/{dist/schemas.js → schemas.js} +0 -0
  131. /package/{dist/schemas.js.map → schemas.js.map} +0 -0
  132. /package/{dist/trpc → trpc}/contact.js +0 -0
  133. /package/{dist/trpc → trpc}/contact.js.map +0 -0
  134. /package/{dist/trpc → trpc}/conversation.js +0 -0
  135. /package/{dist/trpc → trpc}/conversation.js.map +0 -0
  136. /package/{dist/trpc → trpc}/visitor.js +0 -0
  137. /package/{dist/trpc → trpc}/visitor.js.map +0 -0
@@ -1,270 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/timeline-item.d.ts
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<{
27
- [x: string]: any;
28
- }>;
29
- actorUserId: z.ZodNullable<z.ZodString>;
30
- actorAiAgentId: z.ZodNullable<z.ZodString>;
31
- targetUserId: z.ZodNullable<z.ZodString>;
32
- targetAiAgentId: z.ZodNullable<z.ZodString>;
33
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
- }, z.core.$strip>;
35
- declare const timelineItemPartsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
36
- type: z.ZodLiteral<"text">;
37
- text: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- type: z.ZodLiteral<"event">;
40
- eventType: z.ZodEnum<{
41
- [x: string]: any;
42
- }>;
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>]>>;
63
- declare const timelineItemSchema: z.ZodObject<{
64
- id: z.ZodOptional<z.ZodString>;
65
- conversationId: z.ZodString;
66
- organizationId: z.ZodString;
67
- visibility: z.ZodEnum<{
68
- [x: string]: any;
69
- }>;
70
- type: z.ZodEnum<{
71
- [x: string]: any;
72
- }>;
73
- text: z.ZodNullable<z.ZodString>;
74
- tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
76
- type: z.ZodLiteral<"text">;
77
- text: z.ZodString;
78
- }, z.core.$strip>, z.ZodObject<{
79
- type: z.ZodLiteral<"event">;
80
- eventType: z.ZodEnum<{
81
- [x: string]: any;
82
- }>;
83
- actorUserId: z.ZodNullable<z.ZodString>;
84
- actorAiAgentId: z.ZodNullable<z.ZodString>;
85
- targetUserId: z.ZodNullable<z.ZodString>;
86
- targetAiAgentId: z.ZodNullable<z.ZodString>;
87
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
- }, z.core.$strip>, z.ZodObject<{
89
- type: z.ZodLiteral<"image">;
90
- url: z.ZodString;
91
- mediaType: z.ZodString;
92
- fileName: z.ZodOptional<z.ZodString>;
93
- size: z.ZodOptional<z.ZodNumber>;
94
- width: z.ZodOptional<z.ZodNumber>;
95
- height: z.ZodOptional<z.ZodNumber>;
96
- }, z.core.$strip>, z.ZodObject<{
97
- type: z.ZodLiteral<"file">;
98
- url: z.ZodString;
99
- mediaType: z.ZodString;
100
- fileName: z.ZodOptional<z.ZodString>;
101
- size: z.ZodOptional<z.ZodNumber>;
102
- }, z.core.$strip>]>>;
103
- userId: z.ZodNullable<z.ZodString>;
104
- aiAgentId: z.ZodNullable<z.ZodString>;
105
- visitorId: z.ZodNullable<z.ZodString>;
106
- createdAt: z.ZodString;
107
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
- }, z.core.$strip>;
109
- type timelineItemSchema = z.infer<typeof timelineItemSchema>;
110
- type TimelineItem = z.infer<typeof timelineItemSchema>;
111
- type TimelineItemParts = z.infer<typeof timelineItemPartsSchema>;
112
- type TimelinePartText = z.infer<typeof timelinePartTextSchema>;
113
- type TimelinePartImage = z.infer<typeof timelinePartImageSchema>;
114
- type TimelinePartFile = z.infer<typeof timelineFileSchema>;
115
- type TimelinePartEvent = z.infer<typeof timelinePartEventSchema>;
116
- declare const getConversationTimelineItemsRequestSchema: z.ZodObject<{
117
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
118
- cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
- }, z.core.$strip>;
120
- type GetConversationTimelineItemsRequest = z.infer<typeof getConversationTimelineItemsRequestSchema>;
121
- declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
122
- items: z.ZodArray<z.ZodObject<{
123
- id: z.ZodOptional<z.ZodString>;
124
- conversationId: z.ZodString;
125
- organizationId: z.ZodString;
126
- visibility: z.ZodEnum<{
127
- [x: string]: any;
128
- }>;
129
- type: z.ZodEnum<{
130
- [x: string]: any;
131
- }>;
132
- text: z.ZodNullable<z.ZodString>;
133
- tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
135
- type: z.ZodLiteral<"text">;
136
- text: z.ZodString;
137
- }, z.core.$strip>, z.ZodObject<{
138
- type: z.ZodLiteral<"event">;
139
- eventType: z.ZodEnum<{
140
- [x: string]: any;
141
- }>;
142
- actorUserId: z.ZodNullable<z.ZodString>;
143
- actorAiAgentId: z.ZodNullable<z.ZodString>;
144
- targetUserId: z.ZodNullable<z.ZodString>;
145
- targetAiAgentId: z.ZodNullable<z.ZodString>;
146
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
- }, z.core.$strip>, z.ZodObject<{
148
- type: z.ZodLiteral<"image">;
149
- url: z.ZodString;
150
- mediaType: z.ZodString;
151
- fileName: z.ZodOptional<z.ZodString>;
152
- size: z.ZodOptional<z.ZodNumber>;
153
- width: z.ZodOptional<z.ZodNumber>;
154
- height: z.ZodOptional<z.ZodNumber>;
155
- }, z.core.$strip>, z.ZodObject<{
156
- type: z.ZodLiteral<"file">;
157
- url: z.ZodString;
158
- mediaType: z.ZodString;
159
- fileName: z.ZodOptional<z.ZodString>;
160
- size: z.ZodOptional<z.ZodNumber>;
161
- }, z.core.$strip>]>>;
162
- userId: z.ZodNullable<z.ZodString>;
163
- aiAgentId: z.ZodNullable<z.ZodString>;
164
- visitorId: z.ZodNullable<z.ZodString>;
165
- createdAt: z.ZodString;
166
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
- }, z.core.$strip>>;
168
- nextCursor: z.ZodNullable<z.ZodString>;
169
- hasNextPage: z.ZodBoolean;
170
- }, z.core.$strip>;
171
- type GetConversationTimelineItemsResponse = z.infer<typeof getConversationTimelineItemsResponseSchema>;
172
- declare const sendTimelineItemRequestSchema: z.ZodObject<{
173
- conversationId: z.ZodString;
174
- item: z.ZodObject<{
175
- id: z.ZodOptional<z.ZodString>;
176
- type: z.ZodDefault<z.ZodEnum<{
177
- [x: string]: any;
178
- }>>;
179
- text: z.ZodString;
180
- parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
181
- type: z.ZodLiteral<"text">;
182
- text: z.ZodString;
183
- }, z.core.$strip>, z.ZodObject<{
184
- type: z.ZodLiteral<"event">;
185
- eventType: z.ZodEnum<{
186
- [x: string]: any;
187
- }>;
188
- actorUserId: z.ZodNullable<z.ZodString>;
189
- actorAiAgentId: z.ZodNullable<z.ZodString>;
190
- targetUserId: z.ZodNullable<z.ZodString>;
191
- targetAiAgentId: z.ZodNullable<z.ZodString>;
192
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
- }, z.core.$strip>, z.ZodObject<{
194
- type: z.ZodLiteral<"image">;
195
- url: z.ZodString;
196
- mediaType: z.ZodString;
197
- fileName: z.ZodOptional<z.ZodString>;
198
- size: z.ZodOptional<z.ZodNumber>;
199
- width: z.ZodOptional<z.ZodNumber>;
200
- height: z.ZodOptional<z.ZodNumber>;
201
- }, z.core.$strip>, z.ZodObject<{
202
- type: z.ZodLiteral<"file">;
203
- url: z.ZodString;
204
- mediaType: z.ZodString;
205
- fileName: z.ZodOptional<z.ZodString>;
206
- size: z.ZodOptional<z.ZodNumber>;
207
- }, z.core.$strip>]>>>;
208
- visibility: z.ZodDefault<z.ZodEnum<{
209
- [x: string]: any;
210
- }>>;
211
- tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
- aiAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
- visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
- createdAt: z.ZodOptional<z.ZodString>;
216
- }, z.core.$strip>;
217
- }, z.core.$strip>;
218
- type SendTimelineItemRequest = z.infer<typeof sendTimelineItemRequestSchema>;
219
- declare const sendTimelineItemResponseSchema: z.ZodObject<{
220
- item: z.ZodObject<{
221
- id: z.ZodOptional<z.ZodString>;
222
- conversationId: z.ZodString;
223
- organizationId: z.ZodString;
224
- visibility: z.ZodEnum<{
225
- [x: string]: any;
226
- }>;
227
- type: z.ZodEnum<{
228
- [x: string]: any;
229
- }>;
230
- text: z.ZodNullable<z.ZodString>;
231
- tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
233
- type: z.ZodLiteral<"text">;
234
- text: z.ZodString;
235
- }, z.core.$strip>, z.ZodObject<{
236
- type: z.ZodLiteral<"event">;
237
- eventType: z.ZodEnum<{
238
- [x: string]: any;
239
- }>;
240
- actorUserId: z.ZodNullable<z.ZodString>;
241
- actorAiAgentId: z.ZodNullable<z.ZodString>;
242
- targetUserId: z.ZodNullable<z.ZodString>;
243
- targetAiAgentId: z.ZodNullable<z.ZodString>;
244
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
- }, z.core.$strip>, z.ZodObject<{
246
- type: z.ZodLiteral<"image">;
247
- url: z.ZodString;
248
- mediaType: z.ZodString;
249
- fileName: z.ZodOptional<z.ZodString>;
250
- size: z.ZodOptional<z.ZodNumber>;
251
- width: z.ZodOptional<z.ZodNumber>;
252
- height: z.ZodOptional<z.ZodNumber>;
253
- }, z.core.$strip>, z.ZodObject<{
254
- type: z.ZodLiteral<"file">;
255
- url: z.ZodString;
256
- mediaType: z.ZodString;
257
- fileName: z.ZodOptional<z.ZodString>;
258
- size: z.ZodOptional<z.ZodNumber>;
259
- }, z.core.$strip>]>>;
260
- userId: z.ZodNullable<z.ZodString>;
261
- aiAgentId: z.ZodNullable<z.ZodString>;
262
- visitorId: z.ZodNullable<z.ZodString>;
263
- createdAt: z.ZodString;
264
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
- }, z.core.$strip>;
266
- }, z.core.$strip>;
267
- type SendTimelineItemResponse = z.infer<typeof sendTimelineItemResponseSchema>;
268
- //#endregion
269
- export { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartText, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, timelineItemPartsSchema, timelineItemSchema };
270
- //# sourceMappingURL=timeline-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../src/api/timeline-item.ts"],"sourcesContent":[],"mappings":";;;cAQM,yBAAuB,CAAA,CAAA;;EAAvB,GAAA,aAAA;;;;;;;cAwBA,wBAAsB,CAAA,CAAA;;;;cAStB,oBAAkB,CAAA,CAAA;;EAjCK,GAAA,aAAA;EAAA,SAAA,aAAA;EAwBvB,QAAA,eAAA,YAOJ,CAAA;;;cAoBI,yBAAuB,CAAA,CAAA;EA3BD,IAAA,cAAA,CAAA,OAAA,CAAA;EAAA,SAAA,WAAA,CAAA;IAStB,CAAA,CAAA,EAAA,MAAA,CAAA,EAAA,GAAA;;;;;;;;cA2DO,yBAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,mBAAA,CAAA,CAAA;EA3DZ,IAAA,cAAA,CAAA,MAAA,CAAA;EAAA,IAAA,aAAA;AAAA,CAAA,eAkBlB,CAAA,aAuCJ,CAAA;;;;;;;;;;;;;;;EAvC2B,IAAA,eAAA,YAAA,CAAA;EAAA,KAAA,eAAA,YAAA,CAAA;EAyChB,MAAA,eAAA,YAYV,CAAA;;;;EAZiC,SAAA,aAAA;;;;cAcvB,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAdK,IAAA,cAAA,CAAA,MAAA,CAAA;IAAA,GAAA,aAAA;IAAA,SAAA,aAAA;IAcvB,QAAA,eAkDX,YAAA,CAAA;;;;;;;;;KAEU,kBAAA,GAAqB,CAAA,CAAE,aAAa;KAEpC,YAAA,GAAe,CAAA,CAAE,aAAa;KAC9B,iBAAA,GAAoB,CAAA,CAAE,aAAa;KAEnC,gBAAA,GAAmB,CAAA,CAAE,aAAa;KAClC,iBAAA,GAAoB,CAAA,CAAE,aAAa;KACnC,gBAAA,GAAmB,CAAA,CAAE,aAAa;KAClC,iBAAA,GAAoB,CAAA,CAAE,aAAa;cAGlC,2CAAyC,CAAA,CAAA;;;;KAe1C,mCAAA,GAAsC,CAAA,CAAE,aAC5C;cAGK,4CAA0C,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAlFxB,SAAA,eAAA,cAAA,YAAA,CAAA,CAAA;EAAA,CAAA,eAAA,CAAA,CAAA;EAoDnB,UAAA,eAAkB,YAAkB,CAAA;EAEpC,WAAA,cAAY;AACxB,CAAA,eAAY,CAAA;AAEA,KA0CA,oCAAA,GAAuC,CAAA,CAAE,KA1CP,CAAA,OA2CtC,0CA3C8B,CAAA;AAC1B,cA8CC,6BA9CkC,EA8CL,CAAA,CAAA,SA9CV,CAAE;EACtB,cAAA,aAAgB;EAChB,IAAA,aAAA,CAAA;IAGC,EAAA,eAAA,YAAA,CAAA;;;;;;;MAAyC,IAAA,aAAA;IAAA,CAAA,eAAA,CAAA,aAAA,CAAA;MAe1C,IAAA,cAAA,CAAA,OAAA,CAAA;MAIC,SAAA,WAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0ED,uBAAA,GAA0B,CAAA,CAAE,aAChC;cAGK,gCAA8B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA9EY,QAAA,eAAA,YAAA,CAAA;MAAA,IAAA,eAAA,YAAA,CAAA;IAiB3C,CAAA,eAAA,CAAA,CAAA,CAAA,CAAA;IAKC,MAAA,eAAA,YAkDV,CAAA;;;;;;;KAgBS,wBAAA,GAA2B,CAAA,CAAE,aACjC"}
@@ -1,100 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/upload.d.ts
4
- declare const uploadOrganizationIdSchema: z.ZodString;
5
- declare const uploadWebsiteIdSchema: z.ZodString;
6
- declare const uploadConversationIdSchema: z.ZodString;
7
- declare const uploadUserIdSchema: z.ZodString;
8
- declare const uploadContactIdSchema: z.ZodString;
9
- declare const uploadVisitorIdSchema: z.ZodString;
10
- declare const uploadPathSchema: z.ZodString;
11
- declare const uploadFileNameSchema: z.ZodString;
12
- declare const uploadFileExtensionSchema: z.ZodString;
13
- declare const uploadScopeConversationSchema: z.ZodObject<{
14
- type: z.ZodLiteral<"conversation">;
15
- conversationId: z.ZodString;
16
- organizationId: z.ZodString;
17
- websiteId: z.ZodString;
18
- }, z.core.$strip>;
19
- declare const uploadScopeUserSchema: z.ZodObject<{
20
- type: z.ZodLiteral<"user">;
21
- userId: z.ZodString;
22
- organizationId: z.ZodString;
23
- websiteId: z.ZodString;
24
- }, z.core.$strip>;
25
- declare const uploadScopeContactSchema: z.ZodObject<{
26
- type: z.ZodLiteral<"contact">;
27
- contactId: z.ZodString;
28
- organizationId: z.ZodString;
29
- websiteId: z.ZodString;
30
- }, z.core.$strip>;
31
- declare const uploadScopeVisitorSchema: z.ZodObject<{
32
- type: z.ZodLiteral<"visitor">;
33
- visitorId: z.ZodString;
34
- organizationId: z.ZodString;
35
- websiteId: z.ZodString;
36
- }, z.core.$strip>;
37
- declare const uploadScopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
38
- type: z.ZodLiteral<"conversation">;
39
- conversationId: z.ZodString;
40
- organizationId: z.ZodString;
41
- websiteId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- type: z.ZodLiteral<"user">;
44
- userId: z.ZodString;
45
- organizationId: z.ZodString;
46
- websiteId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- type: z.ZodLiteral<"contact">;
49
- contactId: z.ZodString;
50
- organizationId: z.ZodString;
51
- websiteId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- type: z.ZodLiteral<"visitor">;
54
- visitorId: z.ZodString;
55
- organizationId: z.ZodString;
56
- websiteId: z.ZodString;
57
- }, z.core.$strip>], "type">;
58
- declare const generateUploadUrlRequestSchema: z.ZodObject<{
59
- contentType: z.ZodString;
60
- websiteId: z.ZodString;
61
- scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
- type: z.ZodLiteral<"conversation">;
63
- conversationId: z.ZodString;
64
- organizationId: z.ZodString;
65
- websiteId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- type: z.ZodLiteral<"user">;
68
- userId: z.ZodString;
69
- organizationId: z.ZodString;
70
- websiteId: z.ZodString;
71
- }, z.core.$strip>, z.ZodObject<{
72
- type: z.ZodLiteral<"contact">;
73
- contactId: z.ZodString;
74
- organizationId: z.ZodString;
75
- websiteId: z.ZodString;
76
- }, z.core.$strip>, z.ZodObject<{
77
- type: z.ZodLiteral<"visitor">;
78
- visitorId: z.ZodString;
79
- organizationId: z.ZodString;
80
- websiteId: z.ZodString;
81
- }, z.core.$strip>], "type">;
82
- path: z.ZodOptional<z.ZodString>;
83
- fileName: z.ZodOptional<z.ZodString>;
84
- fileExtension: z.ZodOptional<z.ZodString>;
85
- useCdn: z.ZodOptional<z.ZodBoolean>;
86
- expiresInSeconds: z.ZodOptional<z.ZodNumber>;
87
- }, z.core.$strip>;
88
- type GenerateUploadUrlRequest = z.infer<typeof generateUploadUrlRequestSchema>;
89
- declare const generateUploadUrlResponseSchema: z.ZodObject<{
90
- uploadUrl: z.ZodString;
91
- key: z.ZodString;
92
- bucket: z.ZodString;
93
- expiresAt: z.ZodString;
94
- contentType: z.ZodString;
95
- publicUrl: z.ZodString;
96
- }, z.core.$strip>;
97
- type GenerateUploadUrlResponse = z.infer<typeof generateUploadUrlResponseSchema>;
98
- //#endregion
99
- export { GenerateUploadUrlRequest, GenerateUploadUrlResponse, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema };
100
- //# sourceMappingURL=upload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/api/upload.ts"],"sourcesContent":[],"mappings":";;;cAIa,4BAA0B,CAAA,CAAA;cAK1B,uBAAqB,CAAA,CAAA;AALrB,cAUA,0BAV0B,EAUA,CAAA,CAAA,SAPrC;AAEW,cAUA,kBAPX,EAO6B,CAAA,CAAA,SAVG;AAKrB,cAUA,qBAPX,EAOgC,CAAA,CAAA,SAVK;AAK1B,cAUA,qBAVkB,EAUG,CAAA,CAAA,SAPhC;AAEW,cAUA,gBAPX,EAO2B,CAAA,CAAA,SAVK;AAKrB,cAWA,oBAXqB,EAWD,CAAA,CAAA,SAR/B;AAEW,cAiBA,yBAjBgB,EAiBS,CAAA,CAAA,SAbpC;AAEW,cA2BA,6BA3BoB,EA2BS,CAAA,CAAA,SAlBvC,CAAA;EAEU,IAAA,cAAA,CAAA,cASV,CAAA;EAOU,cAAA,aAAA;;;;cAWA,uBAAqB,CAAA,CAAA;;EAXQ,MAAA,aAAA;EAAA,cAAA,aAAA;EAW7B,SAAA,aAAA;;cAWA,0BAAwB,CAAA,CAAA;;;;EAXH,SAAA,aAAA;CAAA,eAAA,CAAA;AAWrB,cAWA,wBAFV,EAEkC,CAAA,CAAA,SAFlC,CAAA;;;;;;AATkC,cAsBxB,iBAtBwB,EAsBP,CAAA,CAAA,qBAtBO,CAAA,CAsBP,CAAA,CAAA,SAtBO,CAAA;EAAA,IAAA,cAAA,CAAA,cAAA,CAAA;EAWxB,cAAA,aASV;;;;;;EATkC,cAAA,aAAA;EAAA,SAAA,aAAA;AAWrC,CAAA,eAAa,CAAA,aAUV,CAAA;;;;;;EAV2B,IAAA,cAAA,CAAA,SAAA,CAAA;;;;;cAYjB,gCAA8B,CAAA,CAAA;;;;;;;;;;;;;;IAZb,IAAA,cAAA,CAAA,SAAA,CAAA;IAAA,SAAA,aAAA;IAYjB,cAAA,aAAA;;;;;;;;;;;;;;KAgCD,wBAAA,GAA2B,CAAA,CAAE,aACjC;cAGK,iCAA+B,CAAA,CAAA;;;;;;;;KAmChC,yBAAA,GAA4B,CAAA,CAAE,aAClC"}
@@ -1,27 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/user.d.ts
4
-
5
- /**
6
- * Visitor data update request schema
7
- */
8
- declare const userResponseSchema: z.ZodObject<{
9
- id: z.ZodULID;
10
- name: z.ZodOptional<z.ZodString>;
11
- email: z.ZodEmail;
12
- role: z.ZodNullable<z.ZodString>;
13
- image: z.ZodNullable<z.ZodURL>;
14
- createdAt: z.ZodString;
15
- updatedAt: z.ZodString;
16
- lastSeenAt: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>;
18
- declare const updateUserProfileRequestSchema: z.ZodObject<{
19
- userId: z.ZodULID;
20
- name: z.ZodString;
21
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
23
- type UserResponse = z.infer<typeof userResponseSchema>;
24
- type UpdateUserProfileRequest = z.infer<typeof updateUserProfileRequestSchema>;
25
- //#endregion
26
- export { UpdateUserProfileRequest, UserResponse, updateUserProfileRequestSchema, userResponseSchema };
27
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","names":[],"sources":["../../src/api/user.ts"],"sourcesContent":[],"mappings":";;;;;;AAKA;cAAa,oBAAkB,CAAA,CAAA;;;;;;;;;;cAsClB,gCAA8B,CAAA,CAAA;;;EAtCZ,KAAA,eAAA,cAAA,YAAA,CAAA,CAAA;CAAA,eAAA,CAAA;AAsClB,KAuBD,YAAA,GAAe,CAAA,CAAE,KAvBhB,CAAA,OAuB6B,kBAFvC,CAAA;KAGS,wBAAA,GAA2B,CAAA,CAAE,aACjC"}
@@ -1,125 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/visitor.d.ts
4
-
5
- /**
6
- * Visitor metadata are stored as key value pairs
7
- * Values can be strings, numbers, booleans, or null
8
- */
9
- declare const visitorMetadataSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;
10
- /**
11
- * Contact information for identified visitors
12
- */
13
- declare const publicContactResponseSchema: z.ZodObject<{
14
- id: z.ZodULID;
15
- name: z.ZodNullable<z.ZodString>;
16
- email: z.ZodNullable<z.ZodString>;
17
- image: z.ZodNullable<z.ZodString>;
18
- metadataHash: z.ZodOptional<z.ZodString>;
19
- }, z.core.$strip>;
20
- type PublicContact = z.infer<typeof publicContactResponseSchema>;
21
- type VisitorMetadata = z.infer<typeof visitorMetadataSchema>;
22
- /**
23
- * Visitor data update request schema
24
- */
25
- declare const updateVisitorRequestSchema: z.ZodObject<{
26
- externalId: z.ZodOptional<z.ZodString>;
27
- name: z.ZodOptional<z.ZodString>;
28
- email: z.ZodOptional<z.ZodString>;
29
- browser: z.ZodOptional<z.ZodString>;
30
- browserVersion: z.ZodOptional<z.ZodString>;
31
- os: z.ZodOptional<z.ZodString>;
32
- osVersion: z.ZodOptional<z.ZodString>;
33
- device: z.ZodOptional<z.ZodString>;
34
- deviceType: z.ZodOptional<z.ZodEnum<{
35
- unknown: "unknown";
36
- desktop: "desktop";
37
- mobile: "mobile";
38
- tablet: "tablet";
39
- }>>;
40
- ip: z.ZodOptional<z.ZodString>;
41
- city: z.ZodOptional<z.ZodString>;
42
- region: z.ZodOptional<z.ZodString>;
43
- country: z.ZodOptional<z.ZodString>;
44
- countryCode: z.ZodOptional<z.ZodString>;
45
- latitude: z.ZodOptional<z.ZodNumber>;
46
- longitude: z.ZodOptional<z.ZodNumber>;
47
- language: z.ZodOptional<z.ZodString>;
48
- timezone: z.ZodOptional<z.ZodString>;
49
- screenResolution: z.ZodOptional<z.ZodString>;
50
- viewport: z.ZodOptional<z.ZodString>;
51
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
52
- }, z.core.$strip>;
53
- type UpdateVisitorRequest = z.infer<typeof updateVisitorRequestSchema>;
54
- declare const updateVisitorMetadataRequestSchema: z.ZodObject<{
55
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;
56
- }, z.core.$strip>;
57
- type UpdateVisitorMetadataRequest = z.infer<typeof updateVisitorMetadataRequestSchema>;
58
- declare const visitorProfileSchema: z.ZodObject<{
59
- id: z.ZodULID;
60
- lastSeenAt: z.ZodNullable<z.ZodString>;
61
- blockedAt: z.ZodNullable<z.ZodString>;
62
- blockedByUserId: z.ZodNullable<z.ZodString>;
63
- isBlocked: z.ZodBoolean;
64
- contact: z.ZodNullable<z.ZodObject<{
65
- id: z.ZodULID;
66
- name: z.ZodNullable<z.ZodString>;
67
- email: z.ZodNullable<z.ZodString>;
68
- image: z.ZodNullable<z.ZodString>;
69
- metadataHash: z.ZodOptional<z.ZodString>;
70
- }, z.core.$strip>>;
71
- }, z.core.$strip>;
72
- /**
73
- * Visitor response schema
74
- */
75
- declare const visitorResponseSchema: z.ZodObject<{
76
- id: z.ZodULID;
77
- browser: z.ZodNullable<z.ZodString>;
78
- browserVersion: z.ZodNullable<z.ZodString>;
79
- os: z.ZodNullable<z.ZodString>;
80
- osVersion: z.ZodNullable<z.ZodString>;
81
- device: z.ZodNullable<z.ZodString>;
82
- deviceType: z.ZodNullable<z.ZodString>;
83
- ip: z.ZodNullable<z.ZodString>;
84
- city: z.ZodNullable<z.ZodString>;
85
- region: z.ZodNullable<z.ZodString>;
86
- country: z.ZodNullable<z.ZodString>;
87
- countryCode: z.ZodNullable<z.ZodString>;
88
- latitude: z.ZodNullable<z.ZodNumber>;
89
- longitude: z.ZodNullable<z.ZodNumber>;
90
- language: z.ZodNullable<z.ZodString>;
91
- timezone: z.ZodNullable<z.ZodString>;
92
- screenResolution: z.ZodNullable<z.ZodString>;
93
- viewport: z.ZodNullable<z.ZodString>;
94
- createdAt: z.ZodString;
95
- updatedAt: z.ZodString;
96
- lastSeenAt: z.ZodNullable<z.ZodString>;
97
- websiteId: z.ZodULID;
98
- organizationId: z.ZodULID;
99
- blockedAt: z.ZodNullable<z.ZodString>;
100
- blockedByUserId: z.ZodNullable<z.ZodString>;
101
- isBlocked: z.ZodBoolean;
102
- contact: any;
103
- }, z.core.$strip>;
104
- type Visitor = z.infer<typeof visitorResponseSchema>;
105
- type VisitorResponse = Visitor;
106
- /**
107
- * Visitor response schema
108
- */
109
- declare const publicVisitorResponseSchema: z.ZodObject<{
110
- id: z.ZodULID;
111
- isBlocked: z.ZodBoolean;
112
- language: z.ZodNullable<z.ZodString>;
113
- contact: z.ZodNullable<z.ZodObject<{
114
- id: z.ZodULID;
115
- name: z.ZodNullable<z.ZodString>;
116
- email: z.ZodNullable<z.ZodString>;
117
- image: z.ZodNullable<z.ZodString>;
118
- metadataHash: z.ZodOptional<z.ZodString>;
119
- }, z.core.$strip>>;
120
- }, z.core.$strip>;
121
- type PublicVisitor = z.infer<typeof publicVisitorResponseSchema>;
122
- type PublicVisitorResponse = PublicVisitor;
123
- //#endregion
124
- export { PublicContact, PublicVisitor, PublicVisitorResponse, UpdateVisitorMetadataRequest, UpdateVisitorRequest, Visitor, VisitorMetadata, VisitorResponse, publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema };
125
- //# sourceMappingURL=visitor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visitor.d.ts","names":[],"sources":["../../src/api/visitor.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;;AAAkC,cAArB,qBAAqB,EAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,UAAA,CAAA,CAAA,EAAA,CAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;;;AAAA,cAQrB,2BARqB,EAQM,CAAA,CAAA,SARN,CAAA;EAAA,EAAA,WAAA;EAAA,IAAA,eAAA,YAAA,CAAA;EAAA,KAAA,eAAA,YAAA,CAAA;EAAA,KAAA,eAAA,YAAA,CAAA;EAQrB,YAAA,eAAA,YAsBX,CAAA;;KAEU,aAAA,GAAgB,CAAA,CAAE,aAAa;KAE/B,eAAA,GAAkB,CAAA,CAAE,aAAa;;;;cAKhC,4BAA0B,CAAA,CAAA;;;;EA/BC,OAAA,eAAA,YAAA,CAAA;EAAA,cAAA,eAAA,YAAA,CAAA;EAwB5B,EAAA,eAAa,YAAkB,CAAA;EAE/B,SAAA,eAAe,YAAkB,CAAA;EAKhC,MAAA,eAAA,YAsJX,CAAA;;;;;;;;;;;;;;;;;;;;KAEU,oBAAA,GAAuB,CAAA,CAAE,aAAa;cAErC,oCAAkC,CAAA,CAAA;;;KAOnC,4BAAA,GAA+B,CAAA,CAAE,aACrC;cAGK,sBAAoB,CAAA,CAAA;;;;;;;;;;;;;;;;;cA2BpB,uBAAqB,CAAA,CAAA;;;;;;;;;;EAhMK,MAAA,eAAA,YAAA,CAAA;EAAA,OAAA,eAAA,YAAA,CAAA;EAwJ3B,WAAA,eAAoB,YAAkB,CAAA;EAErC,QAAA,eAAA,YAAA,CAAA;;;;;;;;;;;EAAkC,SAAA,eAAA,YAAA,CAAA;EAAA,eAAA,eAAA,YAAA,CAAA;EAOnC,SAAA,cAAA;EAIC,OAAA,EAAA,GAAA;;KAwID,OAAA,GAAU,CAAA,CAAE,aAAa;KACzB,eAAA,GAAkB;;;;cAKjB,6BAA2B,CAAA,CAAA;;;;;;;;;;;;KAyB5B,aAAA,GAAgB,CAAA,CAAE,aAAa;KAC/B,qBAAA,GAAwB"}