@cossistant/react 0.0.29 → 0.0.31

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 (305) hide show
  1. package/README.md +3 -1
  2. package/_virtual/rolldown_runtime.js +9 -23
  3. package/hooks/index.d.ts +2 -2
  4. package/hooks/private/store/use-conversations-store.d.ts +2 -0
  5. package/hooks/private/store/use-conversations-store.d.ts.map +1 -1
  6. package/hooks/private/store/use-conversations-store.js +15 -8
  7. package/hooks/private/store/use-conversations-store.js.map +1 -1
  8. package/hooks/private/store/use-store-selector.d.ts +3 -0
  9. package/hooks/private/store/use-store-selector.d.ts.map +1 -1
  10. package/hooks/private/store/use-store-selector.js +4 -8
  11. package/hooks/private/store/use-store-selector.js.map +1 -1
  12. package/hooks/private/store/use-website-store.d.ts +3 -1
  13. package/hooks/private/store/use-website-store.d.ts.map +1 -1
  14. package/hooks/private/store/use-website-store.js +14 -6
  15. package/hooks/private/store/use-website-store.js.map +1 -1
  16. package/hooks/private/use-client-query.d.ts +1 -1
  17. package/hooks/private/use-client-query.d.ts.map +1 -1
  18. package/hooks/private/use-client-query.js +1 -0
  19. package/hooks/private/use-client-query.js.map +1 -1
  20. package/hooks/private/use-default-messages.d.ts +1 -1
  21. package/hooks/private/use-grouped-messages.d.ts +2 -2
  22. package/hooks/private/use-grouped-messages.d.ts.map +1 -1
  23. package/hooks/private/use-grouped-messages.js +34 -10
  24. package/hooks/private/use-grouped-messages.js.map +1 -1
  25. package/hooks/private/use-rest-client.d.ts +13 -3
  26. package/hooks/private/use-rest-client.d.ts.map +1 -1
  27. package/hooks/private/use-rest-client.js +49 -22
  28. package/hooks/private/use-rest-client.js.map +1 -1
  29. package/hooks/private/use-visitor-typing-reporter.d.ts +1 -1
  30. package/hooks/use-conversation-auto-seen.d.ts +1 -1
  31. package/hooks/use-conversation-page.d.ts +1 -1
  32. package/hooks/use-conversation-page.d.ts.map +1 -1
  33. package/hooks/use-conversation-page.js +13 -4
  34. package/hooks/use-conversation-page.js.map +1 -1
  35. package/hooks/use-conversation-preview.d.ts +3 -1
  36. package/hooks/use-conversation-preview.d.ts.map +1 -1
  37. package/hooks/use-conversation-preview.js +8 -4
  38. package/hooks/use-conversation-preview.js.map +1 -1
  39. package/hooks/use-conversation-seen.d.ts +1 -1
  40. package/hooks/use-conversation-timeline-items.d.ts +1 -1
  41. package/hooks/use-conversation-timeline-items.js +2 -3
  42. package/hooks/use-conversation-timeline-items.js.map +1 -1
  43. package/hooks/use-conversation-timeline.d.ts +1 -1
  44. package/hooks/use-conversation.d.ts +1 -1
  45. package/hooks/use-conversation.js +2 -3
  46. package/hooks/use-conversation.js.map +1 -1
  47. package/hooks/use-conversations.d.ts +1 -1
  48. package/hooks/use-conversations.js +5 -3
  49. package/hooks/use-conversations.js.map +1 -1
  50. package/hooks/use-create-conversation.d.ts +3 -3
  51. package/hooks/use-create-conversation.js +1 -0
  52. package/hooks/use-create-conversation.js.map +1 -1
  53. package/hooks/use-file-upload.d.ts +1 -1
  54. package/hooks/use-file-upload.js +3 -3
  55. package/hooks/use-file-upload.js.map +1 -1
  56. package/hooks/use-home-page.js +3 -3
  57. package/hooks/use-home-page.js.map +1 -1
  58. package/hooks/use-message-composer.d.ts +10 -3
  59. package/hooks/use-message-composer.d.ts.map +1 -1
  60. package/hooks/use-message-composer.js +5 -2
  61. package/hooks/use-message-composer.js.map +1 -1
  62. package/hooks/use-realtime-support.d.ts +1 -1
  63. package/hooks/use-send-message.d.ts +8 -2
  64. package/hooks/use-send-message.d.ts.map +1 -1
  65. package/hooks/use-send-message.js +5 -3
  66. package/hooks/use-send-message.js.map +1 -1
  67. package/hooks/use-visitor.js +2 -2
  68. package/hooks/use-visitor.js.map +1 -1
  69. package/identify-visitor.d.ts.map +1 -1
  70. package/identify-visitor.js +15 -1
  71. package/identify-visitor.js.map +1 -1
  72. package/index.d.ts +2 -2
  73. package/index.js +1 -1
  74. package/package.json +6 -3
  75. package/{conversation.d.ts → packages/types/src/api/conversation.d.ts} +374 -64
  76. package/packages/types/src/api/conversation.d.ts.map +1 -0
  77. package/packages/types/src/api/timeline-item.d.ts +460 -0
  78. package/packages/types/src/api/timeline-item.d.ts.map +1 -0
  79. package/{realtime-events.d.ts → packages/types/src/realtime-events.d.ts} +449 -47
  80. package/packages/types/src/realtime-events.d.ts.map +1 -0
  81. package/{schemas3.d.ts → packages/types/src/schemas.d.ts} +97 -19
  82. package/packages/types/src/schemas.d.ts.map +1 -0
  83. package/primitives/avatar/avatar.js +1 -1
  84. package/primitives/avatar/avatar.js.map +1 -1
  85. package/primitives/avatar/fallback.js +1 -1
  86. package/primitives/avatar/fallback.js.map +1 -1
  87. package/primitives/avatar/image.js +1 -1
  88. package/primitives/avatar/image.js.map +1 -1
  89. package/primitives/button.js +1 -1
  90. package/primitives/button.js.map +1 -1
  91. package/primitives/conversation-timeline.d.ts +1 -1
  92. package/primitives/conversation-timeline.js +4 -4
  93. package/primitives/conversation-timeline.js.map +1 -1
  94. package/primitives/day-separator.js +3 -3
  95. package/primitives/day-separator.js.map +1 -1
  96. package/primitives/multimodal-input.d.ts +2 -2
  97. package/primitives/multimodal-input.d.ts.map +1 -1
  98. package/primitives/multimodal-input.js +2 -2
  99. package/primitives/multimodal-input.js.map +1 -1
  100. package/primitives/timeline-item-attachments.d.ts +1 -1
  101. package/primitives/timeline-item-attachments.js +6 -7
  102. package/primitives/timeline-item-attachments.js.map +1 -1
  103. package/primitives/timeline-item-group.d.ts +1 -1
  104. package/primitives/timeline-item-group.js +7 -7
  105. package/primitives/timeline-item-group.js.map +1 -1
  106. package/primitives/timeline-item.d.ts +1 -1
  107. package/primitives/timeline-item.d.ts.map +1 -1
  108. package/primitives/timeline-item.js +54 -14
  109. package/primitives/timeline-item.js.map +1 -1
  110. package/primitives/trigger.js +1 -1
  111. package/primitives/trigger.js.map +1 -1
  112. package/primitives/window.js +1 -1
  113. package/primitives/window.js.map +1 -1
  114. package/provider.d.ts +4 -2
  115. package/provider.d.ts.map +1 -1
  116. package/provider.js +56 -8
  117. package/provider.js.map +1 -1
  118. package/realtime/event-filter.d.ts +4 -1
  119. package/realtime/event-filter.d.ts.map +1 -1
  120. package/realtime/event-filter.js +14 -0
  121. package/realtime/event-filter.js.map +1 -1
  122. package/realtime/provider.d.ts +1 -1
  123. package/realtime/provider.d.ts.map +1 -1
  124. package/realtime/provider.js +1 -2
  125. package/realtime/provider.js.map +1 -1
  126. package/realtime/seen-store.d.ts +2 -2
  127. package/realtime/support-provider.js +3 -2
  128. package/realtime/support-provider.js.map +1 -1
  129. package/realtime/typing-store.d.ts +1 -1
  130. package/realtime/use-realtime.d.ts +1 -1
  131. package/support/components/avatar-stack.d.ts.map +1 -1
  132. package/support/components/avatar-stack.js +32 -12
  133. package/support/components/avatar-stack.js.map +1 -1
  134. package/support/components/avatar.d.ts +34 -3
  135. package/support/components/avatar.d.ts.map +1 -1
  136. package/support/components/avatar.js +61 -8
  137. package/support/components/avatar.js.map +1 -1
  138. package/support/components/button.d.ts +4 -2
  139. package/support/components/button.d.ts.map +1 -1
  140. package/support/components/button.js +3 -3
  141. package/support/components/button.js.map +1 -1
  142. package/support/components/configuration-error.d.ts +16 -0
  143. package/support/components/configuration-error.d.ts.map +1 -0
  144. package/support/components/configuration-error.js +162 -0
  145. package/support/components/configuration-error.js.map +1 -0
  146. package/support/components/content.js +1 -2
  147. package/support/components/content.js.map +1 -1
  148. package/support/components/conversation-button-link.js +18 -23
  149. package/support/components/conversation-button-link.js.map +1 -1
  150. package/support/components/conversation-event.d.ts.map +1 -1
  151. package/support/components/conversation-event.js +7 -5
  152. package/support/components/conversation-event.js.map +1 -1
  153. package/support/components/conversation-resolved-feedback.d.ts +21 -0
  154. package/support/components/conversation-resolved-feedback.d.ts.map +1 -0
  155. package/support/components/conversation-resolved-feedback.js +59 -0
  156. package/support/components/conversation-resolved-feedback.js.map +1 -0
  157. package/support/components/conversation-timeline-utils.d.ts +5 -0
  158. package/support/components/conversation-timeline-utils.d.ts.map +1 -0
  159. package/support/components/conversation-timeline-utils.js +10 -0
  160. package/support/components/conversation-timeline-utils.js.map +1 -0
  161. package/support/components/conversation-timeline.d.ts +1 -1
  162. package/support/components/conversation-timeline.d.ts.map +1 -1
  163. package/support/components/conversation-timeline.js +5 -4
  164. package/support/components/conversation-timeline.js.map +1 -1
  165. package/support/components/header.js +1 -1
  166. package/support/components/icons.d.ts +1 -1
  167. package/support/components/icons.d.ts.map +1 -1
  168. package/support/components/icons.js +6 -2
  169. package/support/components/icons.js.map +1 -1
  170. package/support/components/image-lightbox.d.ts +1 -1
  171. package/support/components/image-lightbox.js +1 -2
  172. package/support/components/image-lightbox.js.map +1 -1
  173. package/support/components/index.d.ts +2 -1
  174. package/support/components/index.js +3 -2
  175. package/support/components/multimodal-input.js +0 -1
  176. package/support/components/multimodal-input.js.map +1 -1
  177. package/support/components/navigation-tab.js +1 -1
  178. package/support/components/online-indicator.d.ts +50 -0
  179. package/support/components/online-indicator.d.ts.map +1 -0
  180. package/support/components/online-indicator.js +65 -0
  181. package/support/components/online-indicator.js.map +1 -0
  182. package/support/components/root.js +0 -1
  183. package/support/components/root.js.map +1 -1
  184. package/support/components/timeline-identification-tool.js +4 -4
  185. package/support/components/timeline-identification-tool.js.map +1 -1
  186. package/support/components/timeline-message-group.d.ts +1 -1
  187. package/support/components/timeline-message-group.d.ts.map +1 -1
  188. package/support/components/timeline-message-group.js +6 -4
  189. package/support/components/timeline-message-group.js.map +1 -1
  190. package/support/components/timeline-message-item.d.ts +1 -1
  191. package/support/components/timeline-message-item.js +4 -4
  192. package/support/components/timeline-message-item.js.map +1 -1
  193. package/support/components/trigger.js +1 -2
  194. package/support/components/trigger.js.map +1 -1
  195. package/support/components/typing-indicator.js +1 -1
  196. package/support/components/typing-indicator.js.map +1 -1
  197. package/support/context/controlled-state.js +0 -1
  198. package/support/context/controlled-state.js.map +1 -1
  199. package/support/context/events.d.ts +1 -1
  200. package/support/context/events.js +0 -1
  201. package/support/context/events.js.map +1 -1
  202. package/support/context/handle.js +0 -1
  203. package/support/context/handle.js.map +1 -1
  204. package/support/context/identification.d.ts +33 -0
  205. package/support/context/identification.d.ts.map +1 -0
  206. package/support/context/identification.js +34 -0
  207. package/support/context/identification.js.map +1 -0
  208. package/support/context/positioning.js +0 -1
  209. package/support/context/positioning.js.map +1 -1
  210. package/support/context/slots.js +0 -1
  211. package/support/context/slots.js.map +1 -1
  212. package/support/context/websocket.d.ts +1 -1
  213. package/support/context/websocket.js +0 -1
  214. package/support/context/websocket.js.map +1 -1
  215. package/support/index.d.ts.map +1 -1
  216. package/support/index.js +51 -18
  217. package/support/index.js.map +1 -1
  218. package/support/pages/conversation-history.js +2 -1
  219. package/support/pages/conversation-history.js.map +1 -1
  220. package/support/pages/conversation.d.ts +1 -1
  221. package/support/pages/conversation.d.ts.map +1 -1
  222. package/support/pages/conversation.js +34 -8
  223. package/support/pages/conversation.js.map +1 -1
  224. package/support/pages/home.js +5 -3
  225. package/support/pages/home.js.map +1 -1
  226. package/support/router.d.ts.map +1 -1
  227. package/support/router.js +4 -0
  228. package/support/router.js.map +1 -1
  229. package/support/store/support-store.js +0 -1
  230. package/support/store/support-store.js.map +1 -1
  231. package/support/{support-C7Xaw-N6.css → support-DmViRaga.css} +2 -2
  232. package/support/{support-C7Xaw-N6.css.map → support-DmViRaga.css.map} +1 -1
  233. package/support/text/index.js +1 -1
  234. package/support/text/index.js.map +1 -1
  235. package/support/text/locales/en.js +10 -1
  236. package/support/text/locales/en.js.map +1 -1
  237. package/support/text/locales/es.js +10 -1
  238. package/support/text/locales/es.js.map +1 -1
  239. package/support/text/locales/fr.js +10 -1
  240. package/support/text/locales/fr.js.map +1 -1
  241. package/support/text/locales/keys.d.ts +11 -0
  242. package/support/text/locales/keys.d.ts.map +1 -1
  243. package/support/text/locales/keys.js +3 -0
  244. package/support/text/locales/keys.js.map +1 -1
  245. package/support/utils/index.d.ts +1 -1
  246. package/support-config.js +0 -1
  247. package/support-config.js.map +1 -1
  248. package/support.css +1 -1
  249. package/tailwind.css +1 -1
  250. package/utils/conversation.d.ts.map +1 -1
  251. package/utils/conversation.js +1 -3
  252. package/utils/conversation.js.map +1 -1
  253. package/utils/use-render-element.js +2 -2
  254. package/utils/use-render-element.js.map +1 -1
  255. package/api.d.ts +0 -71
  256. package/api.d.ts.map +0 -1
  257. package/checks.d.ts +0 -189
  258. package/checks.d.ts.map +0 -1
  259. package/clsx.d.ts +0 -7
  260. package/clsx.d.ts.map +0 -1
  261. package/coerce.d.ts +0 -9
  262. package/coerce.d.ts.map +0 -1
  263. package/conversation.d.ts.map +0 -1
  264. package/core.d.ts +0 -35
  265. package/core.d.ts.map +0 -1
  266. package/errors.d.ts +0 -130
  267. package/errors.d.ts.map +0 -1
  268. package/errors2.d.ts +0 -24
  269. package/errors2.d.ts.map +0 -1
  270. package/index2.d.ts +0 -4
  271. package/index3.d.ts +0 -1
  272. package/json-schema.d.ts +0 -70
  273. package/json-schema.d.ts.map +0 -1
  274. package/metadata.d.ts +0 -1
  275. package/openapi-generator.d.ts +0 -1
  276. package/openapi-generator2.d.ts +0 -1
  277. package/openapi-generator3.d.ts +0 -1
  278. package/openapi30.d.ts +0 -125
  279. package/openapi30.d.ts.map +0 -1
  280. package/openapi31.d.ts +0 -131
  281. package/openapi31.d.ts.map +0 -1
  282. package/parse.d.ts +0 -17
  283. package/parse.d.ts.map +0 -1
  284. package/realtime-events.d.ts.map +0 -1
  285. package/registries.d.ts +0 -32
  286. package/registries.d.ts.map +0 -1
  287. package/schemas.d.ts +0 -971
  288. package/schemas.d.ts.map +0 -1
  289. package/schemas2.d.ts +0 -345
  290. package/schemas2.d.ts.map +0 -1
  291. package/schemas3.d.ts.map +0 -1
  292. package/specification-extension.d.ts +0 -9
  293. package/specification-extension.d.ts.map +0 -1
  294. package/standard-schema.d.ts +0 -121
  295. package/standard-schema.d.ts.map +0 -1
  296. package/timeline-item.d.ts +0 -227
  297. package/timeline-item.d.ts.map +0 -1
  298. package/to-json-schema.d.ts +0 -96
  299. package/to-json-schema.d.ts.map +0 -1
  300. package/util.d.ts +0 -45
  301. package/util.d.ts.map +0 -1
  302. package/versions.d.ts +0 -9
  303. package/versions.d.ts.map +0 -1
  304. package/zod-extensions.d.ts +0 -39
  305. package/zod-extensions.d.ts.map +0 -1
@@ -1,8 +1,8 @@
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 { $loose, $strip } from "../../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js";
2
+ import { output } from "../../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js";
3
+ import { ZodArray, ZodBoolean, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodUnion, ZodUnknown } from "../../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js";
4
+ import { ZodCoercedNumber } from "../../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js";
5
+ import "../../../../node_modules/.bun/@hono+zod-openapi@1.2.0+114bfa29adc0f5d0/node_modules/@hono/zod-openapi/dist/index.js";
6
6
 
7
7
  //#region ../types/src/api/conversation.d.ts
8
8
 
@@ -25,6 +25,96 @@ declare const createConversationResponseSchema: ZodObject<{
25
25
  parts: ZodArray<ZodUnion<readonly [ZodObject<{
26
26
  type: ZodLiteral<"text">;
27
27
  text: ZodString;
28
+ state: ZodOptional<ZodEnum<{
29
+ streaming: "streaming";
30
+ done: "done";
31
+ }>>;
32
+ }, $strip>, ZodObject<{
33
+ type: ZodLiteral<"reasoning">;
34
+ text: ZodString;
35
+ state: ZodOptional<ZodEnum<{
36
+ streaming: "streaming";
37
+ done: "done";
38
+ }>>;
39
+ providerMetadata: ZodOptional<ZodObject<{
40
+ cossistant: ZodOptional<ZodObject<{
41
+ visibility: ZodOptional<ZodEnum<{
42
+ public: "public";
43
+ private: "private";
44
+ }>>;
45
+ progressMessage: ZodOptional<ZodString>;
46
+ knowledgeId: ZodOptional<ZodString>;
47
+ }, $strip>>;
48
+ }, $loose>>;
49
+ }, $strip>, ZodObject<{
50
+ type: ZodString;
51
+ toolCallId: ZodString;
52
+ toolName: ZodString;
53
+ input: ZodRecord<ZodString, ZodUnknown>;
54
+ output: ZodOptional<ZodUnknown>;
55
+ state: ZodEnum<{
56
+ error: "error";
57
+ partial: "partial";
58
+ result: "result";
59
+ }>;
60
+ errorText: ZodOptional<ZodString>;
61
+ providerMetadata: ZodOptional<ZodObject<{
62
+ cossistant: ZodOptional<ZodObject<{
63
+ visibility: ZodOptional<ZodEnum<{
64
+ public: "public";
65
+ private: "private";
66
+ }>>;
67
+ progressMessage: ZodOptional<ZodString>;
68
+ knowledgeId: ZodOptional<ZodString>;
69
+ }, $strip>>;
70
+ }, $loose>>;
71
+ }, $strip>, ZodObject<{
72
+ type: ZodLiteral<"source-url">;
73
+ sourceId: ZodString;
74
+ url: ZodString;
75
+ title: ZodOptional<ZodString>;
76
+ providerMetadata: ZodOptional<ZodObject<{
77
+ cossistant: ZodOptional<ZodObject<{
78
+ visibility: ZodOptional<ZodEnum<{
79
+ public: "public";
80
+ private: "private";
81
+ }>>;
82
+ progressMessage: ZodOptional<ZodString>;
83
+ knowledgeId: ZodOptional<ZodString>;
84
+ }, $strip>>;
85
+ }, $loose>>;
86
+ }, $strip>, ZodObject<{
87
+ type: ZodLiteral<"source-document">;
88
+ sourceId: ZodString;
89
+ mediaType: ZodString;
90
+ title: ZodString;
91
+ filename: ZodOptional<ZodString>;
92
+ providerMetadata: ZodOptional<ZodObject<{
93
+ cossistant: ZodOptional<ZodObject<{
94
+ visibility: ZodOptional<ZodEnum<{
95
+ public: "public";
96
+ private: "private";
97
+ }>>;
98
+ progressMessage: ZodOptional<ZodString>;
99
+ knowledgeId: ZodOptional<ZodString>;
100
+ }, $strip>>;
101
+ }, $loose>>;
102
+ }, $strip>, ZodObject<{
103
+ type: ZodLiteral<"step-start">;
104
+ }, $strip>, ZodObject<{
105
+ type: ZodLiteral<"file">;
106
+ url: ZodString;
107
+ mediaType: ZodString;
108
+ filename: ZodOptional<ZodString>;
109
+ size: ZodOptional<ZodNumber>;
110
+ }, $strip>, ZodObject<{
111
+ type: ZodLiteral<"image">;
112
+ url: ZodString;
113
+ mediaType: ZodString;
114
+ filename: ZodOptional<ZodString>;
115
+ size: ZodOptional<ZodNumber>;
116
+ width: ZodOptional<ZodNumber>;
117
+ height: ZodOptional<ZodNumber>;
28
118
  }, $strip>, ZodObject<{
29
119
  type: ZodLiteral<"event">;
30
120
  eventType: ZodEnum<{
@@ -48,20 +138,6 @@ declare const createConversationResponseSchema: ZodObject<{
48
138
  targetUserId: ZodNullable<ZodString>;
49
139
  targetAiAgentId: ZodNullable<ZodString>;
50
140
  message: ZodOptional<ZodNullable<ZodString>>;
51
- }, $strip>, ZodObject<{
52
- type: ZodLiteral<"image">;
53
- url: ZodString;
54
- mediaType: ZodString;
55
- fileName: ZodOptional<ZodString>;
56
- size: ZodOptional<ZodNumber>;
57
- width: ZodOptional<ZodNumber>;
58
- height: ZodOptional<ZodNumber>;
59
- }, $strip>, ZodObject<{
60
- type: ZodLiteral<"file">;
61
- url: ZodString;
62
- mediaType: ZodString;
63
- fileName: ZodOptional<ZodString>;
64
- size: ZodOptional<ZodNumber>;
65
141
  }, $strip>, ZodObject<{
66
142
  type: ZodLiteral<"metadata">;
67
143
  source: ZodEnum<{
@@ -84,10 +160,12 @@ declare const createConversationResponseSchema: ZodObject<{
84
160
  visitorId: ZodString;
85
161
  websiteId: ZodString;
86
162
  status: ZodDefault<ZodEnum<{
87
- open: "open";
88
163
  resolved: "resolved";
164
+ open: "open";
89
165
  spam: "spam";
90
166
  }>>;
167
+ visitorRating: ZodOptional<ZodNullable<ZodNumber>>;
168
+ visitorRatingAt: ZodOptional<ZodNullable<ZodString>>;
91
169
  deletedAt: ZodDefault<ZodNullable<ZodString>>;
92
170
  visitorLastSeenAt: ZodOptional<ZodNullable<ZodString>>;
93
171
  lastTimelineItem: ZodOptional<ZodObject<{
@@ -108,6 +186,96 @@ declare const createConversationResponseSchema: ZodObject<{
108
186
  parts: ZodArray<ZodUnion<readonly [ZodObject<{
109
187
  type: ZodLiteral<"text">;
110
188
  text: ZodString;
189
+ state: ZodOptional<ZodEnum<{
190
+ streaming: "streaming";
191
+ done: "done";
192
+ }>>;
193
+ }, $strip>, ZodObject<{
194
+ type: ZodLiteral<"reasoning">;
195
+ text: ZodString;
196
+ state: ZodOptional<ZodEnum<{
197
+ streaming: "streaming";
198
+ done: "done";
199
+ }>>;
200
+ providerMetadata: ZodOptional<ZodObject<{
201
+ cossistant: ZodOptional<ZodObject<{
202
+ visibility: ZodOptional<ZodEnum<{
203
+ public: "public";
204
+ private: "private";
205
+ }>>;
206
+ progressMessage: ZodOptional<ZodString>;
207
+ knowledgeId: ZodOptional<ZodString>;
208
+ }, $strip>>;
209
+ }, $loose>>;
210
+ }, $strip>, ZodObject<{
211
+ type: ZodString;
212
+ toolCallId: ZodString;
213
+ toolName: ZodString;
214
+ input: ZodRecord<ZodString, ZodUnknown>;
215
+ output: ZodOptional<ZodUnknown>;
216
+ state: ZodEnum<{
217
+ error: "error";
218
+ partial: "partial";
219
+ result: "result";
220
+ }>;
221
+ errorText: ZodOptional<ZodString>;
222
+ providerMetadata: ZodOptional<ZodObject<{
223
+ cossistant: ZodOptional<ZodObject<{
224
+ visibility: ZodOptional<ZodEnum<{
225
+ public: "public";
226
+ private: "private";
227
+ }>>;
228
+ progressMessage: ZodOptional<ZodString>;
229
+ knowledgeId: ZodOptional<ZodString>;
230
+ }, $strip>>;
231
+ }, $loose>>;
232
+ }, $strip>, ZodObject<{
233
+ type: ZodLiteral<"source-url">;
234
+ sourceId: ZodString;
235
+ url: ZodString;
236
+ title: ZodOptional<ZodString>;
237
+ providerMetadata: ZodOptional<ZodObject<{
238
+ cossistant: ZodOptional<ZodObject<{
239
+ visibility: ZodOptional<ZodEnum<{
240
+ public: "public";
241
+ private: "private";
242
+ }>>;
243
+ progressMessage: ZodOptional<ZodString>;
244
+ knowledgeId: ZodOptional<ZodString>;
245
+ }, $strip>>;
246
+ }, $loose>>;
247
+ }, $strip>, ZodObject<{
248
+ type: ZodLiteral<"source-document">;
249
+ sourceId: ZodString;
250
+ mediaType: ZodString;
251
+ title: ZodString;
252
+ filename: ZodOptional<ZodString>;
253
+ providerMetadata: ZodOptional<ZodObject<{
254
+ cossistant: ZodOptional<ZodObject<{
255
+ visibility: ZodOptional<ZodEnum<{
256
+ public: "public";
257
+ private: "private";
258
+ }>>;
259
+ progressMessage: ZodOptional<ZodString>;
260
+ knowledgeId: ZodOptional<ZodString>;
261
+ }, $strip>>;
262
+ }, $loose>>;
263
+ }, $strip>, ZodObject<{
264
+ type: ZodLiteral<"step-start">;
265
+ }, $strip>, ZodObject<{
266
+ type: ZodLiteral<"file">;
267
+ url: ZodString;
268
+ mediaType: ZodString;
269
+ filename: ZodOptional<ZodString>;
270
+ size: ZodOptional<ZodNumber>;
271
+ }, $strip>, ZodObject<{
272
+ type: ZodLiteral<"image">;
273
+ url: ZodString;
274
+ mediaType: ZodString;
275
+ filename: ZodOptional<ZodString>;
276
+ size: ZodOptional<ZodNumber>;
277
+ width: ZodOptional<ZodNumber>;
278
+ height: ZodOptional<ZodNumber>;
111
279
  }, $strip>, ZodObject<{
112
280
  type: ZodLiteral<"event">;
113
281
  eventType: ZodEnum<{
@@ -131,20 +299,6 @@ declare const createConversationResponseSchema: ZodObject<{
131
299
  targetUserId: ZodNullable<ZodString>;
132
300
  targetAiAgentId: ZodNullable<ZodString>;
133
301
  message: ZodOptional<ZodNullable<ZodString>>;
134
- }, $strip>, ZodObject<{
135
- type: ZodLiteral<"image">;
136
- url: ZodString;
137
- mediaType: ZodString;
138
- fileName: ZodOptional<ZodString>;
139
- size: ZodOptional<ZodNumber>;
140
- width: ZodOptional<ZodNumber>;
141
- height: ZodOptional<ZodNumber>;
142
- }, $strip>, ZodObject<{
143
- type: ZodLiteral<"file">;
144
- url: ZodString;
145
- mediaType: ZodString;
146
- fileName: ZodOptional<ZodString>;
147
- size: ZodOptional<ZodNumber>;
148
302
  }, $strip>, ZodObject<{
149
303
  type: ZodLiteral<"metadata">;
150
304
  source: ZodEnum<{
@@ -189,10 +343,12 @@ declare const listConversationsResponseSchema: ZodObject<{
189
343
  visitorId: ZodString;
190
344
  websiteId: ZodString;
191
345
  status: ZodDefault<ZodEnum<{
192
- open: "open";
193
346
  resolved: "resolved";
347
+ open: "open";
194
348
  spam: "spam";
195
349
  }>>;
350
+ visitorRating: ZodOptional<ZodNullable<ZodNumber>>;
351
+ visitorRatingAt: ZodOptional<ZodNullable<ZodString>>;
196
352
  deletedAt: ZodDefault<ZodNullable<ZodString>>;
197
353
  visitorLastSeenAt: ZodOptional<ZodNullable<ZodString>>;
198
354
  lastTimelineItem: ZodOptional<ZodObject<{
@@ -213,6 +369,96 @@ declare const listConversationsResponseSchema: ZodObject<{
213
369
  parts: ZodArray<ZodUnion<readonly [ZodObject<{
214
370
  type: ZodLiteral<"text">;
215
371
  text: ZodString;
372
+ state: ZodOptional<ZodEnum<{
373
+ streaming: "streaming";
374
+ done: "done";
375
+ }>>;
376
+ }, $strip>, ZodObject<{
377
+ type: ZodLiteral<"reasoning">;
378
+ text: ZodString;
379
+ state: ZodOptional<ZodEnum<{
380
+ streaming: "streaming";
381
+ done: "done";
382
+ }>>;
383
+ providerMetadata: ZodOptional<ZodObject<{
384
+ cossistant: ZodOptional<ZodObject<{
385
+ visibility: ZodOptional<ZodEnum<{
386
+ public: "public";
387
+ private: "private";
388
+ }>>;
389
+ progressMessage: ZodOptional<ZodString>;
390
+ knowledgeId: ZodOptional<ZodString>;
391
+ }, $strip>>;
392
+ }, $loose>>;
393
+ }, $strip>, ZodObject<{
394
+ type: ZodString;
395
+ toolCallId: ZodString;
396
+ toolName: ZodString;
397
+ input: ZodRecord<ZodString, ZodUnknown>;
398
+ output: ZodOptional<ZodUnknown>;
399
+ state: ZodEnum<{
400
+ error: "error";
401
+ partial: "partial";
402
+ result: "result";
403
+ }>;
404
+ errorText: ZodOptional<ZodString>;
405
+ providerMetadata: ZodOptional<ZodObject<{
406
+ cossistant: ZodOptional<ZodObject<{
407
+ visibility: ZodOptional<ZodEnum<{
408
+ public: "public";
409
+ private: "private";
410
+ }>>;
411
+ progressMessage: ZodOptional<ZodString>;
412
+ knowledgeId: ZodOptional<ZodString>;
413
+ }, $strip>>;
414
+ }, $loose>>;
415
+ }, $strip>, ZodObject<{
416
+ type: ZodLiteral<"source-url">;
417
+ sourceId: ZodString;
418
+ url: ZodString;
419
+ title: ZodOptional<ZodString>;
420
+ providerMetadata: ZodOptional<ZodObject<{
421
+ cossistant: ZodOptional<ZodObject<{
422
+ visibility: ZodOptional<ZodEnum<{
423
+ public: "public";
424
+ private: "private";
425
+ }>>;
426
+ progressMessage: ZodOptional<ZodString>;
427
+ knowledgeId: ZodOptional<ZodString>;
428
+ }, $strip>>;
429
+ }, $loose>>;
430
+ }, $strip>, ZodObject<{
431
+ type: ZodLiteral<"source-document">;
432
+ sourceId: ZodString;
433
+ mediaType: ZodString;
434
+ title: ZodString;
435
+ filename: ZodOptional<ZodString>;
436
+ providerMetadata: ZodOptional<ZodObject<{
437
+ cossistant: ZodOptional<ZodObject<{
438
+ visibility: ZodOptional<ZodEnum<{
439
+ public: "public";
440
+ private: "private";
441
+ }>>;
442
+ progressMessage: ZodOptional<ZodString>;
443
+ knowledgeId: ZodOptional<ZodString>;
444
+ }, $strip>>;
445
+ }, $loose>>;
446
+ }, $strip>, ZodObject<{
447
+ type: ZodLiteral<"step-start">;
448
+ }, $strip>, ZodObject<{
449
+ type: ZodLiteral<"file">;
450
+ url: ZodString;
451
+ mediaType: ZodString;
452
+ filename: ZodOptional<ZodString>;
453
+ size: ZodOptional<ZodNumber>;
454
+ }, $strip>, ZodObject<{
455
+ type: ZodLiteral<"image">;
456
+ url: ZodString;
457
+ mediaType: ZodString;
458
+ filename: ZodOptional<ZodString>;
459
+ size: ZodOptional<ZodNumber>;
460
+ width: ZodOptional<ZodNumber>;
461
+ height: ZodOptional<ZodNumber>;
216
462
  }, $strip>, ZodObject<{
217
463
  type: ZodLiteral<"event">;
218
464
  eventType: ZodEnum<{
@@ -236,20 +482,6 @@ declare const listConversationsResponseSchema: ZodObject<{
236
482
  targetUserId: ZodNullable<ZodString>;
237
483
  targetAiAgentId: ZodNullable<ZodString>;
238
484
  message: ZodOptional<ZodNullable<ZodString>>;
239
- }, $strip>, ZodObject<{
240
- type: ZodLiteral<"image">;
241
- url: ZodString;
242
- mediaType: ZodString;
243
- fileName: ZodOptional<ZodString>;
244
- size: ZodOptional<ZodNumber>;
245
- width: ZodOptional<ZodNumber>;
246
- height: ZodOptional<ZodNumber>;
247
- }, $strip>, ZodObject<{
248
- type: ZodLiteral<"file">;
249
- url: ZodString;
250
- mediaType: ZodString;
251
- fileName: ZodOptional<ZodString>;
252
- size: ZodOptional<ZodNumber>;
253
485
  }, $strip>, ZodObject<{
254
486
  type: ZodLiteral<"metadata">;
255
487
  source: ZodEnum<{
@@ -287,10 +519,12 @@ declare const getConversationResponseSchema: ZodObject<{
287
519
  visitorId: ZodString;
288
520
  websiteId: ZodString;
289
521
  status: ZodDefault<ZodEnum<{
290
- open: "open";
291
522
  resolved: "resolved";
523
+ open: "open";
292
524
  spam: "spam";
293
525
  }>>;
526
+ visitorRating: ZodOptional<ZodNullable<ZodNumber>>;
527
+ visitorRatingAt: ZodOptional<ZodNullable<ZodString>>;
294
528
  deletedAt: ZodDefault<ZodNullable<ZodString>>;
295
529
  visitorLastSeenAt: ZodOptional<ZodNullable<ZodString>>;
296
530
  lastTimelineItem: ZodOptional<ZodObject<{
@@ -311,6 +545,96 @@ declare const getConversationResponseSchema: ZodObject<{
311
545
  parts: ZodArray<ZodUnion<readonly [ZodObject<{
312
546
  type: ZodLiteral<"text">;
313
547
  text: ZodString;
548
+ state: ZodOptional<ZodEnum<{
549
+ streaming: "streaming";
550
+ done: "done";
551
+ }>>;
552
+ }, $strip>, ZodObject<{
553
+ type: ZodLiteral<"reasoning">;
554
+ text: ZodString;
555
+ state: ZodOptional<ZodEnum<{
556
+ streaming: "streaming";
557
+ done: "done";
558
+ }>>;
559
+ providerMetadata: ZodOptional<ZodObject<{
560
+ cossistant: ZodOptional<ZodObject<{
561
+ visibility: ZodOptional<ZodEnum<{
562
+ public: "public";
563
+ private: "private";
564
+ }>>;
565
+ progressMessage: ZodOptional<ZodString>;
566
+ knowledgeId: ZodOptional<ZodString>;
567
+ }, $strip>>;
568
+ }, $loose>>;
569
+ }, $strip>, ZodObject<{
570
+ type: ZodString;
571
+ toolCallId: ZodString;
572
+ toolName: ZodString;
573
+ input: ZodRecord<ZodString, ZodUnknown>;
574
+ output: ZodOptional<ZodUnknown>;
575
+ state: ZodEnum<{
576
+ error: "error";
577
+ partial: "partial";
578
+ result: "result";
579
+ }>;
580
+ errorText: ZodOptional<ZodString>;
581
+ providerMetadata: ZodOptional<ZodObject<{
582
+ cossistant: ZodOptional<ZodObject<{
583
+ visibility: ZodOptional<ZodEnum<{
584
+ public: "public";
585
+ private: "private";
586
+ }>>;
587
+ progressMessage: ZodOptional<ZodString>;
588
+ knowledgeId: ZodOptional<ZodString>;
589
+ }, $strip>>;
590
+ }, $loose>>;
591
+ }, $strip>, ZodObject<{
592
+ type: ZodLiteral<"source-url">;
593
+ sourceId: ZodString;
594
+ url: ZodString;
595
+ title: ZodOptional<ZodString>;
596
+ providerMetadata: ZodOptional<ZodObject<{
597
+ cossistant: ZodOptional<ZodObject<{
598
+ visibility: ZodOptional<ZodEnum<{
599
+ public: "public";
600
+ private: "private";
601
+ }>>;
602
+ progressMessage: ZodOptional<ZodString>;
603
+ knowledgeId: ZodOptional<ZodString>;
604
+ }, $strip>>;
605
+ }, $loose>>;
606
+ }, $strip>, ZodObject<{
607
+ type: ZodLiteral<"source-document">;
608
+ sourceId: ZodString;
609
+ mediaType: ZodString;
610
+ title: ZodString;
611
+ filename: ZodOptional<ZodString>;
612
+ providerMetadata: ZodOptional<ZodObject<{
613
+ cossistant: ZodOptional<ZodObject<{
614
+ visibility: ZodOptional<ZodEnum<{
615
+ public: "public";
616
+ private: "private";
617
+ }>>;
618
+ progressMessage: ZodOptional<ZodString>;
619
+ knowledgeId: ZodOptional<ZodString>;
620
+ }, $strip>>;
621
+ }, $loose>>;
622
+ }, $strip>, ZodObject<{
623
+ type: ZodLiteral<"step-start">;
624
+ }, $strip>, ZodObject<{
625
+ type: ZodLiteral<"file">;
626
+ url: ZodString;
627
+ mediaType: ZodString;
628
+ filename: ZodOptional<ZodString>;
629
+ size: ZodOptional<ZodNumber>;
630
+ }, $strip>, ZodObject<{
631
+ type: ZodLiteral<"image">;
632
+ url: ZodString;
633
+ mediaType: ZodString;
634
+ filename: ZodOptional<ZodString>;
635
+ size: ZodOptional<ZodNumber>;
636
+ width: ZodOptional<ZodNumber>;
637
+ height: ZodOptional<ZodNumber>;
314
638
  }, $strip>, ZodObject<{
315
639
  type: ZodLiteral<"event">;
316
640
  eventType: ZodEnum<{
@@ -334,20 +658,6 @@ declare const getConversationResponseSchema: ZodObject<{
334
658
  targetUserId: ZodNullable<ZodString>;
335
659
  targetAiAgentId: ZodNullable<ZodString>;
336
660
  message: ZodOptional<ZodNullable<ZodString>>;
337
- }, $strip>, ZodObject<{
338
- type: ZodLiteral<"image">;
339
- url: ZodString;
340
- mediaType: ZodString;
341
- fileName: ZodOptional<ZodString>;
342
- size: ZodOptional<ZodNumber>;
343
- width: ZodOptional<ZodNumber>;
344
- height: ZodOptional<ZodNumber>;
345
- }, $strip>, ZodObject<{
346
- type: ZodLiteral<"file">;
347
- url: ZodString;
348
- mediaType: ZodString;
349
- fileName: ZodOptional<ZodString>;
350
- size: ZodOptional<ZodNumber>;
351
661
  }, $strip>, ZodObject<{
352
662
  type: ZodLiteral<"metadata">;
353
663
  source: ZodEnum<{
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.d.ts","names":[],"sources":["../../../../../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA8Ba,kCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAA,CAAA,CAAA,CAAA;YAAA,eAAA,aAAA,UAAA,CAAA;YASjC,WAAA,aACJ,UAAA,CAAA;UAGK,CAAA,QAAA,CA2BV,CAAA;;;;;;;;;;;;;;QA3BwC,gBAAA,aAAA,UAAA,CAAA;UAAA,UAAA,aAAA,UAAA,CAAA;YA6B/B,UAAwB,aAC5B,QAAA,CAAA;cAGK,MAAA,EAAA,QAaV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAlDS,8BAAA,GAAiC,cACrC;cAGK,gCAA8B;;;;;;;;;;;;;;;;;KA6B/B,wBAAA,GAA2B,cAC/B;cAGK,iCAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAA,IAAA,YAAA,CAAA,YAAA,CAAA;QAAA,QAAA,WAAA;QAehC,GAAA,WAAyB;QAIxB,KAAA,aAQV,UAAA,CAAA;;;YARsC,UAAA,aAAA,QAAA,CAAA;cAAA,MAAA,EAAA,QAAA;cAU7B,OAAsB,EAAA,SAC1B;YAGK,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAlBD,yBAAA,GAA4B,cAChC;cAGK,8BAA4B;;;KAU7B,sBAAA,GAAyB,cAC7B;cAGK,+BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAA,QAAA,WAAA;QAAA,SAAA,WAAA;QAQ9B,KAAA,WAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAvB,uBAAA,GAA0B,cAC9B"}