@onlive.ai/common-121 0.2.199 → 0.2.228

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 (514) hide show
  1. package/{audi-dark.theme-CwD9I0E3.d.cts → audi-dark.theme-C92mx6HX.d.cts} +1 -1
  2. package/{audi-dark.theme-CwD9I0E3.d.ts → audi-dark.theme-C92mx6HX.d.ts} +1 -1
  3. package/{audi.theme-UpbZQ49h.d.cts → audi.theme-b5_HO8i0.d.cts} +1 -1
  4. package/{audi.theme-UpbZQ49h.d.ts → audi.theme-b5_HO8i0.d.ts} +1 -1
  5. package/{australia.theme-o9dMWVmn.d.cts → australia.theme-Cr_KZr4r.d.cts} +1 -1
  6. package/{australia.theme-o9dMWVmn.d.ts → australia.theme-Cr_KZr4r.d.ts} +1 -1
  7. package/{chunk-H2PJ6KN6.js → chunk-JB6NDWSG.js} +1 -1
  8. package/components/asset/asset-modal-portal.cjs +1 -1
  9. package/components/asset/asset-modal-portal.d.cts +1 -1
  10. package/components/asset/asset-modal-portal.d.ts +1 -1
  11. package/components/asset/asset-modal-portal.js +1 -1
  12. package/components/asset/asset.cjs +2 -2
  13. package/components/asset/asset.d.cts +1 -1
  14. package/components/asset/asset.d.ts +1 -1
  15. package/components/asset/asset.js +2 -2
  16. package/components/asset/asset.loaders.cjs +1 -1
  17. package/components/asset/asset.loaders.d.cts +1 -1
  18. package/components/asset/asset.loaders.d.ts +1 -1
  19. package/components/asset/asset.loaders.js +1 -1
  20. package/components/asset/asset.renderer.cjs +2 -2
  21. package/components/asset/asset.renderer.d.cts +1 -1
  22. package/components/asset/asset.renderer.d.ts +1 -1
  23. package/components/asset/asset.renderer.js +2 -2
  24. package/components/asset/asset.styles.cjs +1 -1
  25. package/components/asset/asset.styles.d.cts +1 -1
  26. package/components/asset/asset.styles.d.ts +1 -1
  27. package/components/asset/asset.styles.js +1 -1
  28. package/components/asset/asset.types.cjs +1 -1
  29. package/components/asset/asset.types.d.cts +1 -1
  30. package/components/asset/asset.types.d.ts +1 -1
  31. package/components/asset/asset.types.js +1 -1
  32. package/components/asset/index.cjs +2 -2
  33. package/components/asset/index.d.cts +1 -1
  34. package/components/asset/index.d.ts +1 -1
  35. package/components/asset/index.js +2 -2
  36. package/components/player/player.cjs +1 -1
  37. package/components/player/player.d.cts +1 -1
  38. package/components/player/player.d.ts +1 -1
  39. package/components/player/player.js +1 -1
  40. package/components/player/player.styles.cjs +1 -1
  41. package/components/player/player.styles.d.cts +1 -1
  42. package/components/player/player.styles.d.ts +1 -1
  43. package/components/player/player.styles.js +1 -1
  44. package/components/side-bar/index.cjs +1 -1
  45. package/components/side-bar/index.d.cts +1 -1
  46. package/components/side-bar/index.d.ts +1 -1
  47. package/components/side-bar/index.js +1 -1
  48. package/components/side-bar/side-bar.cjs +1 -1
  49. package/components/side-bar/side-bar.d.cts +1 -1
  50. package/components/side-bar/side-bar.d.ts +1 -1
  51. package/components/side-bar/side-bar.js +1 -1
  52. package/components/side-bar/side-bar.styles.cjs +1 -1
  53. package/components/side-bar/side-bar.styles.d.cts +1 -1
  54. package/components/side-bar/side-bar.styles.d.ts +1 -1
  55. package/components/side-bar/side-bar.styles.js +1 -1
  56. package/components/side-bar/side-bar.types.cjs +1 -1
  57. package/components/side-bar/side-bar.types.d.cts +1 -1
  58. package/components/side-bar/side-bar.types.d.ts +1 -1
  59. package/components/side-bar/side-bar.types.js +1 -1
  60. package/components/upload/index.cjs +1 -1
  61. package/components/upload/index.d.cts +1 -1
  62. package/components/upload/index.d.ts +1 -1
  63. package/components/upload/index.js +1 -1
  64. package/components/upload/upload.cjs +1 -1
  65. package/components/upload/upload.d.cts +1 -1
  66. package/components/upload/upload.d.ts +1 -1
  67. package/components/upload/upload.js +1 -1
  68. package/components/upload/upload.styles.cjs +1 -1
  69. package/components/upload/upload.styles.d.cts +1 -1
  70. package/components/upload/upload.styles.d.ts +1 -1
  71. package/components/upload/upload.styles.js +1 -1
  72. package/components/upload/upload.types.cjs +1 -1
  73. package/components/upload/upload.types.d.cts +1 -1
  74. package/components/upload/upload.types.d.ts +1 -1
  75. package/components/upload/upload.types.js +1 -1
  76. package/{cuernavaca.theme-CoN1RWZa.d.cts → cuernavaca.theme-gwX4a0qX.d.cts} +1 -1
  77. package/{cuernavaca.theme-CoN1RWZa.d.ts → cuernavaca.theme-gwX4a0qX.d.ts} +1 -1
  78. package/{cupra-diagonal.theme-dpmVg1PK.d.cts → cupra-diagonal.theme-YeEq5NNx.d.cts} +1 -1
  79. package/{cupra-diagonal.theme-dpmVg1PK.d.ts → cupra-diagonal.theme-YeEq5NNx.d.ts} +1 -1
  80. package/{cupra-events.theme-DNLS7KDk.d.cts → cupra-events.theme-CZsQUILE.d.cts} +1 -1
  81. package/{cupra-events.theme-DNLS7KDk.d.ts → cupra-events.theme-CZsQUILE.d.ts} +1 -1
  82. package/{cupra.theme-B2ynqc3l.d.cts → cupra.theme-Dwf_KC9c.d.cts} +1 -1
  83. package/{cupra.theme-B2ynqc3l.d.ts → cupra.theme-Dwf_KC9c.d.ts} +1 -1
  84. package/dark-DSX5vBCc.d.cts +11 -0
  85. package/dark-DSX5vBCc.d.ts +11 -0
  86. package/{germany.theme-D4y6ZZ9P.d.cts → germany.theme-BZHEis96.d.cts} +1 -1
  87. package/{germany.theme-D4y6ZZ9P.d.ts → germany.theme-BZHEis96.d.ts} +1 -1
  88. package/{hyundai.theme-D20gCVHo.d.cts → hyundai.theme-CZ3-e75P.d.cts} +1 -1
  89. package/{hyundai.theme-D20gCVHo.d.ts → hyundai.theme-CZ3-e75P.d.ts} +1 -1
  90. package/index.cjs +92 -91
  91. package/index.d.cts +27 -5
  92. package/index.d.ts +27 -5
  93. package/index.iife.js +8720 -0
  94. package/index.js +118 -117
  95. package/{italy.theme--pc0L5YH.d.cts → italy.theme-e_NIp9gB.d.cts} +1 -1
  96. package/{italy.theme--pc0L5YH.d.ts → italy.theme-e_NIp9gB.d.ts} +1 -1
  97. package/jac-dark.theme-CID5X7cE.d.cts +11 -0
  98. package/jac-dark.theme-CID5X7cE.d.ts +11 -0
  99. package/jac.theme-C7kaj89z.d.cts +11 -0
  100. package/jac.theme-C7kaj89z.d.ts +11 -0
  101. package/light-DNobHysW.d.cts +11 -0
  102. package/light-DNobHysW.d.ts +11 -0
  103. package/{magimix.theme-DGN2p61n.d.cts → magimix.theme-_PJhrflU.d.cts} +1 -1
  104. package/{magimix.theme-DGN2p61n.d.ts → magimix.theme-_PJhrflU.d.ts} +1 -1
  105. package/{media-I2UT6LCZ.js → media-Z2KW3VEA.js} +2 -2
  106. package/{onlive-ai.theme-Csf9HHTX.d.cts → onlive-ai.theme-DQYkXql5.d.cts} +1 -1
  107. package/{onlive-ai.theme-Csf9HHTX.d.ts → onlive-ai.theme-DQYkXql5.d.ts} +1 -1
  108. package/{onlive.theme-BRD-Zi1_.d.cts → onlive.theme-D_SLBReG.d.cts} +1 -1
  109. package/{onlive.theme-BRD-Zi1_.d.ts → onlive.theme-D_SLBReG.d.ts} +1 -1
  110. package/package.json +8 -8
  111. package/react/components/asset/Asset.cjs +1 -1
  112. package/react/components/asset/Asset.jsx +1 -1
  113. package/react/components/side-bar/SideBar.cjs +1 -1
  114. package/react/components/side-bar/SideBar.jsx +1 -1
  115. package/react/components/upload/Upload.cjs +1 -1
  116. package/react/components/upload/Upload.jsx +1 -1
  117. package/{seat-cupra.theme-Ba-ZrvD5.d.cts → seat-cupra.theme-DaKdJYyc.d.cts} +1 -1
  118. package/{seat-cupra.theme-Ba-ZrvD5.d.ts → seat-cupra.theme-DaKdJYyc.d.ts} +1 -1
  119. package/{seat.theme-kkb_0PwM.d.cts → seat.theme-BkE3lDxJ.d.cts} +1 -1
  120. package/{seat.theme-kkb_0PwM.d.ts → seat.theme-BkE3lDxJ.d.ts} +1 -1
  121. package/services/audio.service.cjs +1 -1
  122. package/services/audio.service.d.cts +1 -1
  123. package/services/audio.service.d.ts +1 -1
  124. package/services/audio.service.js +1 -1
  125. package/services/conversation/conversation.service.cjs +2 -2
  126. package/services/conversation/conversation.service.d.cts +6 -2
  127. package/services/conversation/conversation.service.d.ts +6 -2
  128. package/services/conversation/conversation.service.js +2 -2
  129. package/services/conversation/conversation.types.cjs +2 -2
  130. package/services/conversation/conversation.types.d.cts +21 -3
  131. package/services/conversation/conversation.types.d.ts +21 -3
  132. package/services/conversation/conversation.types.js +2 -2
  133. package/services/conversation/index.cjs +2 -2
  134. package/services/conversation/index.d.cts +1 -1
  135. package/services/conversation/index.d.ts +1 -1
  136. package/services/conversation/index.js +2 -2
  137. package/services/conversation/mock/actor/agent.cjs +1 -1
  138. package/services/conversation/mock/actor/agent.d.cts +1 -1
  139. package/services/conversation/mock/actor/agent.d.ts +1 -1
  140. package/services/conversation/mock/actor/agent.js +1 -1
  141. package/services/conversation/mock/actor/index.cjs +1 -1
  142. package/services/conversation/mock/actor/index.d.cts +1 -1
  143. package/services/conversation/mock/actor/index.d.ts +1 -1
  144. package/services/conversation/mock/actor/index.js +1 -1
  145. package/services/conversation/mock/actor/strategies.cjs +1 -1
  146. package/services/conversation/mock/actor/strategies.d.cts +1 -1
  147. package/services/conversation/mock/actor/strategies.d.ts +1 -1
  148. package/services/conversation/mock/actor/strategies.js +1 -1
  149. package/services/conversation/mock/errors.cjs +1 -1
  150. package/services/conversation/mock/errors.d.cts +1 -1
  151. package/services/conversation/mock/errors.d.ts +1 -1
  152. package/services/conversation/mock/errors.js +1 -1
  153. package/services/conversation/mock/events.cjs +1 -1
  154. package/services/conversation/mock/events.d.cts +1 -1
  155. package/services/conversation/mock/events.d.ts +1 -1
  156. package/services/conversation/mock/events.js +1 -1
  157. package/services/conversation/mock/factory.cjs +2 -2
  158. package/services/conversation/mock/factory.d.cts +1 -1
  159. package/services/conversation/mock/factory.d.ts +1 -1
  160. package/services/conversation/mock/factory.js +2 -2
  161. package/services/conversation/mock/fixtures.cjs +1 -1
  162. package/services/conversation/mock/fixtures.d.cts +1 -1
  163. package/services/conversation/mock/fixtures.d.ts +1 -1
  164. package/services/conversation/mock/fixtures.js +1 -1
  165. package/services/conversation/mock/generators.cjs +1 -1
  166. package/services/conversation/mock/generators.d.cts +1 -1
  167. package/services/conversation/mock/generators.d.ts +1 -1
  168. package/services/conversation/mock/generators.js +1 -1
  169. package/services/conversation/mock/index.cjs +2 -2
  170. package/services/conversation/mock/index.d.cts +1 -1
  171. package/services/conversation/mock/index.d.ts +1 -1
  172. package/services/conversation/mock/index.js +2 -2
  173. package/services/conversation/mock/livekit/index.cjs +1 -1
  174. package/services/conversation/mock/livekit/index.d.cts +1 -1
  175. package/services/conversation/mock/livekit/index.d.ts +1 -1
  176. package/services/conversation/mock/livekit/index.js +1 -1
  177. package/services/conversation/mock/livekit/local-participant.cjs +1 -1
  178. package/services/conversation/mock/livekit/local-participant.d.cts +1 -1
  179. package/services/conversation/mock/livekit/local-participant.d.ts +1 -1
  180. package/services/conversation/mock/livekit/local-participant.js +1 -1
  181. package/services/conversation/mock/livekit/participant.cjs +1 -1
  182. package/services/conversation/mock/livekit/participant.d.cts +1 -1
  183. package/services/conversation/mock/livekit/participant.d.ts +1 -1
  184. package/services/conversation/mock/livekit/participant.js +1 -1
  185. package/services/conversation/mock/livekit/room.cjs +1 -1
  186. package/services/conversation/mock/livekit/room.d.cts +1 -1
  187. package/services/conversation/mock/livekit/room.d.ts +1 -1
  188. package/services/conversation/mock/livekit/room.js +1 -1
  189. package/services/conversation/mock/livekit/streams.cjs +1 -1
  190. package/services/conversation/mock/livekit/streams.d.cts +1 -1
  191. package/services/conversation/mock/livekit/streams.d.ts +1 -1
  192. package/services/conversation/mock/livekit/streams.js +1 -1
  193. package/services/conversation/mock/livekit/tracks.cjs +1 -1
  194. package/services/conversation/mock/livekit/tracks.d.cts +1 -1
  195. package/services/conversation/mock/livekit/tracks.d.ts +1 -1
  196. package/services/conversation/mock/livekit/tracks.js +1 -1
  197. package/services/conversation/mock/media.cjs +1 -1
  198. package/services/conversation/mock/media.d.cts +1 -1
  199. package/services/conversation/mock/media.d.ts +1 -1
  200. package/services/conversation/mock/media.js +1 -1
  201. package/services/conversation/mock/service.cjs +1 -1
  202. package/services/conversation/mock/service.d.cts +1 -1
  203. package/services/conversation/mock/service.d.ts +1 -1
  204. package/services/conversation/mock/service.js +1 -1
  205. package/services/conversation/mock/service.test.cjs +2 -2
  206. package/services/conversation/mock/service.test.d.cts +1 -1
  207. package/services/conversation/mock/service.test.d.ts +1 -1
  208. package/services/conversation/mock/service.test.js +2 -2
  209. package/services/conversation/mock/state.cjs +1 -1
  210. package/services/conversation/mock/state.d.cts +1 -1
  211. package/services/conversation/mock/state.d.ts +1 -1
  212. package/services/conversation/mock/state.js +1 -1
  213. package/services/conversation/mock/storybook.cjs +2 -2
  214. package/services/conversation/mock/storybook.d.cts +1 -1
  215. package/services/conversation/mock/storybook.d.ts +1 -1
  216. package/services/conversation/mock/storybook.js +2 -2
  217. package/services/conversation/mock/types.cjs +1 -1
  218. package/services/conversation/mock/types.d.cts +1 -1
  219. package/services/conversation/mock/types.d.ts +1 -1
  220. package/services/conversation/mock/types.js +1 -1
  221. package/services/deep-link.service.cjs +1 -1
  222. package/services/deep-link.service.d.cts +1 -1
  223. package/services/deep-link.service.d.ts +1 -1
  224. package/services/deep-link.service.js +1 -1
  225. package/services/faqs/faqs.service.cjs +1 -1
  226. package/services/faqs/faqs.service.d.cts +1 -1
  227. package/services/faqs/faqs.service.d.ts +1 -1
  228. package/services/faqs/faqs.service.js +1 -1
  229. package/services/faqs/faqs.types.cjs +1 -1
  230. package/services/faqs/faqs.types.d.cts +1 -1
  231. package/services/faqs/faqs.types.d.ts +1 -1
  232. package/services/faqs/faqs.types.js +1 -1
  233. package/services/faqs/index.cjs +1 -1
  234. package/services/faqs/index.d.cts +1 -1
  235. package/services/faqs/index.d.ts +1 -1
  236. package/services/faqs/index.js +1 -1
  237. package/services/file/file.service.cjs +1 -1
  238. package/services/file/file.service.d.cts +1 -1
  239. package/services/file/file.service.d.ts +1 -1
  240. package/services/file/file.service.js +1 -1
  241. package/services/file/file.types.cjs +1 -1
  242. package/services/file/file.types.d.cts +1 -1
  243. package/services/file/file.types.d.ts +1 -1
  244. package/services/file/file.types.js +1 -1
  245. package/services/file/index.cjs +1 -1
  246. package/services/file/index.d.cts +1 -1
  247. package/services/file/index.d.ts +1 -1
  248. package/services/file/index.js +1 -1
  249. package/services/firebase/firebase-api.cjs +1 -1
  250. package/services/firebase/firebase-api.d.cts +1 -1
  251. package/services/firebase/firebase-api.d.ts +1 -1
  252. package/services/firebase/firebase-api.js +1 -1
  253. package/services/multimedia/config.example.cjs +1 -1
  254. package/services/multimedia/config.example.d.cts +1 -1
  255. package/services/multimedia/config.example.d.ts +1 -1
  256. package/services/multimedia/config.example.js +1 -1
  257. package/services/multimedia/index.cjs +1 -1
  258. package/services/multimedia/index.d.cts +1 -1
  259. package/services/multimedia/index.d.ts +1 -1
  260. package/services/multimedia/index.js +1 -1
  261. package/services/multimedia/multimedia.service.cjs +1 -1
  262. package/services/multimedia/multimedia.service.d.cts +1 -1
  263. package/services/multimedia/multimedia.service.d.ts +1 -1
  264. package/services/multimedia/multimedia.service.js +1 -1
  265. package/services/multimedia/multimedia.types.cjs +1 -1
  266. package/services/multimedia/multimedia.types.d.cts +1 -1
  267. package/services/multimedia/multimedia.types.d.ts +1 -1
  268. package/services/multimedia/multimedia.types.js +1 -1
  269. package/services/product/index.cjs +1 -1
  270. package/services/product/index.d.cts +1 -1
  271. package/services/product/index.d.ts +1 -1
  272. package/services/product/index.js +1 -1
  273. package/services/product/product.service.cjs +1 -1
  274. package/services/product/product.service.d.cts +1 -1
  275. package/services/product/product.service.d.ts +1 -1
  276. package/services/product/product.service.js +1 -1
  277. package/services/product/product.types.cjs +1 -1
  278. package/services/product/product.types.d.cts +1 -1
  279. package/services/product/product.types.d.ts +1 -1
  280. package/services/product/product.types.js +1 -1
  281. package/services/request.provider.cjs +1 -1
  282. package/services/request.provider.d.cts +1 -1
  283. package/services/request.provider.d.ts +1 -1
  284. package/services/request.provider.js +1 -1
  285. package/services/session.service.cjs +1 -1
  286. package/services/session.service.d.cts +1 -1
  287. package/services/session.service.d.ts +1 -1
  288. package/services/session.service.js +1 -1
  289. package/services/sessions-api.service.cjs +2 -0
  290. package/services/sessions-api.service.d.cts +23 -0
  291. package/services/sessions-api.service.d.ts +23 -0
  292. package/services/sessions-api.service.js +2 -0
  293. package/services/sessions.controller.cjs +2 -0
  294. package/services/sessions.controller.d.cts +45 -0
  295. package/services/sessions.controller.d.ts +45 -0
  296. package/services/sessions.controller.js +2 -0
  297. package/services/sessions.types.cjs +2 -0
  298. package/services/sessions.types.d.cts +114 -0
  299. package/services/sessions.types.d.ts +114 -0
  300. package/services/sessions.types.js +1 -0
  301. package/services/upload/index.cjs +1 -1
  302. package/services/upload/index.d.cts +1 -1
  303. package/services/upload/index.d.ts +1 -1
  304. package/services/upload/index.js +1 -1
  305. package/services/upload/upload.service.cjs +1 -1
  306. package/services/upload/upload.service.d.cts +1 -1
  307. package/services/upload/upload.service.d.ts +1 -1
  308. package/services/upload/upload.service.js +1 -1
  309. package/skoda.theme-BhoWwnaO.d.cts +11 -0
  310. package/skoda.theme-BhoWwnaO.d.ts +11 -0
  311. package/themes/custom/audi-dark.theme.cjs +111 -4
  312. package/themes/custom/audi-dark.theme.css +110 -3
  313. package/themes/custom/audi-dark.theme.d.cts +2 -2
  314. package/themes/custom/audi-dark.theme.d.ts +2 -2
  315. package/themes/custom/audi-dark.theme.js +111 -4
  316. package/themes/custom/audi.theme.cjs +80 -4
  317. package/themes/custom/audi.theme.css +79 -3
  318. package/themes/custom/audi.theme.d.cts +2 -2
  319. package/themes/custom/audi.theme.d.ts +2 -2
  320. package/themes/custom/audi.theme.js +80 -4
  321. package/themes/custom/australia.theme.cjs +73 -1
  322. package/themes/custom/australia.theme.css +72 -0
  323. package/themes/custom/australia.theme.d.cts +2 -2
  324. package/themes/custom/australia.theme.d.ts +2 -2
  325. package/themes/custom/australia.theme.js +73 -1
  326. package/themes/custom/cuernavaca.theme.cjs +1 -1
  327. package/themes/custom/cuernavaca.theme.d.cts +2 -2
  328. package/themes/custom/cuernavaca.theme.d.ts +2 -2
  329. package/themes/custom/cuernavaca.theme.js +1 -1
  330. package/themes/custom/cupra-diagonal.theme.cjs +256 -29
  331. package/themes/custom/cupra-diagonal.theme.css +254 -27
  332. package/themes/custom/cupra-diagonal.theme.d.cts +2 -2
  333. package/themes/custom/cupra-diagonal.theme.d.ts +2 -2
  334. package/themes/custom/cupra-diagonal.theme.js +255 -28
  335. package/themes/custom/cupra-events.theme.cjs +1 -1
  336. package/themes/custom/cupra-events.theme.d.cts +2 -2
  337. package/themes/custom/cupra-events.theme.d.ts +2 -2
  338. package/themes/custom/cupra-events.theme.js +1 -1
  339. package/themes/custom/cupra.theme.cjs +771 -78
  340. package/themes/custom/cupra.theme.css +769 -76
  341. package/themes/custom/cupra.theme.d.cts +2 -2
  342. package/themes/custom/cupra.theme.d.ts +2 -2
  343. package/themes/custom/cupra.theme.js +774 -81
  344. package/themes/custom/germany.theme.cjs +114 -2
  345. package/themes/custom/germany.theme.css +112 -0
  346. package/themes/custom/germany.theme.d.cts +2 -2
  347. package/themes/custom/germany.theme.d.ts +2 -2
  348. package/themes/custom/germany.theme.js +113 -1
  349. package/themes/custom/glass.theme.cjs +25 -15
  350. package/themes/custom/glass.theme.css +24 -14
  351. package/themes/custom/glass.theme.d.cts +1 -1
  352. package/themes/custom/glass.theme.d.ts +1 -1
  353. package/themes/custom/glass.theme.js +25 -15
  354. package/themes/custom/hyundai.theme.cjs +1 -1
  355. package/themes/custom/hyundai.theme.d.cts +2 -2
  356. package/themes/custom/hyundai.theme.d.ts +2 -2
  357. package/themes/custom/hyundai.theme.js +1 -1
  358. package/themes/custom/italy.theme.cjs +140 -2
  359. package/themes/custom/italy.theme.css +139 -1
  360. package/themes/custom/italy.theme.d.cts +2 -2
  361. package/themes/custom/italy.theme.d.ts +2 -2
  362. package/themes/custom/italy.theme.js +140 -2
  363. package/themes/custom/jac-dark.theme.cjs +210 -0
  364. package/themes/custom/jac-dark.theme.css +207 -0
  365. package/themes/custom/jac-dark.theme.d.cts +3 -0
  366. package/themes/custom/jac-dark.theme.d.ts +3 -0
  367. package/themes/custom/jac-dark.theme.js +210 -0
  368. package/themes/custom/jac.theme.cjs +366 -0
  369. package/themes/custom/jac.theme.css +363 -0
  370. package/themes/custom/jac.theme.d.cts +3 -0
  371. package/themes/custom/jac.theme.d.ts +3 -0
  372. package/themes/custom/jac.theme.js +366 -0
  373. package/themes/custom/magimix.theme.cjs +178 -7
  374. package/themes/custom/magimix.theme.css +177 -6
  375. package/themes/custom/magimix.theme.d.cts +2 -2
  376. package/themes/custom/magimix.theme.d.ts +2 -2
  377. package/themes/custom/magimix.theme.js +177 -6
  378. package/themes/custom/onlive-ai.theme.cjs +1 -1
  379. package/themes/custom/onlive-ai.theme.d.cts +2 -2
  380. package/themes/custom/onlive-ai.theme.d.ts +2 -2
  381. package/themes/custom/onlive-ai.theme.js +1 -1
  382. package/themes/custom/onlive.theme.cjs +1 -1
  383. package/themes/custom/onlive.theme.d.cts +2 -2
  384. package/themes/custom/onlive.theme.d.ts +2 -2
  385. package/themes/custom/onlive.theme.js +1 -1
  386. package/themes/custom/seat-cupra.theme.cjs +1 -1
  387. package/themes/custom/seat-cupra.theme.d.cts +2 -2
  388. package/themes/custom/seat-cupra.theme.d.ts +2 -2
  389. package/themes/custom/seat-cupra.theme.js +1 -1
  390. package/themes/custom/seat.theme.cjs +209 -12
  391. package/themes/custom/seat.theme.css +207 -10
  392. package/themes/custom/seat.theme.d.cts +2 -2
  393. package/themes/custom/seat.theme.d.ts +2 -2
  394. package/themes/custom/seat.theme.js +208 -11
  395. package/themes/custom/skoda.theme.cjs +529 -0
  396. package/themes/custom/skoda.theme.css +526 -0
  397. package/themes/custom/skoda.theme.d.cts +3 -0
  398. package/themes/custom/skoda.theme.d.ts +3 -0
  399. package/themes/custom/skoda.theme.js +529 -0
  400. package/themes/custom/transparency.theme.cjs +42 -5
  401. package/themes/custom/transparency.theme.css +40 -3
  402. package/themes/custom/transparency.theme.d.cts +2 -2
  403. package/themes/custom/transparency.theme.d.ts +2 -2
  404. package/themes/custom/transparency.theme.js +41 -4
  405. package/themes/dark.cjs +1 -1
  406. package/themes/dark.d.cts +3 -6
  407. package/themes/dark.d.ts +3 -6
  408. package/themes/dark.js +1 -1
  409. package/themes/light.cjs +1 -1
  410. package/themes/light.d.cts +3 -6
  411. package/themes/light.d.ts +3 -6
  412. package/themes/light.js +1 -1
  413. package/{transparency.theme-CJ3Sg9kh.d.cts → transparency.theme-CbIjRfrj.d.cts} +1 -1
  414. package/{transparency.theme-CJ3Sg9kh.d.ts → transparency.theme-CbIjRfrj.d.ts} +1 -1
  415. package/types/deep-link.types.cjs +1 -1
  416. package/types/deep-link.types.d.cts +1 -1
  417. package/types/deep-link.types.d.ts +1 -1
  418. package/types/deep-link.types.js +1 -1
  419. package/types/globals.cjs +1 -1
  420. package/types/globals.d.cts +1 -1
  421. package/types/globals.d.ts +1 -1
  422. package/types/globals.js +1 -1
  423. package/types/tracking-options.cjs +1 -1
  424. package/types/tracking-options.d.cts +1 -1
  425. package/types/tracking-options.d.ts +1 -1
  426. package/types/tracking-options.js +1 -1
  427. package/utils/adopt-styles.cjs +1 -1
  428. package/utils/adopt-styles.d.cts +1 -1
  429. package/utils/adopt-styles.d.ts +1 -1
  430. package/utils/adopt-styles.js +1 -1
  431. package/utils/apply-optional-styles.cjs +8745 -4991
  432. package/utils/apply-optional-styles.d.cts +42 -23
  433. package/utils/apply-optional-styles.d.ts +42 -23
  434. package/utils/apply-optional-styles.js +8745 -4991
  435. package/utils/browser-preferences.cjs +2 -2
  436. package/utils/browser-preferences.d.cts +1 -1
  437. package/utils/browser-preferences.d.ts +1 -1
  438. package/utils/browser-preferences.js +2 -2
  439. package/utils/classify-media.cjs +1 -1
  440. package/utils/classify-media.d.cts +1 -1
  441. package/utils/classify-media.d.ts +1 -1
  442. package/utils/classify-media.js +1 -1
  443. package/utils/decorators.cjs +1 -1
  444. package/utils/decorators.d.cts +1 -1
  445. package/utils/decorators.d.ts +1 -1
  446. package/utils/decorators.js +1 -1
  447. package/utils/detected-lang.cjs +1 -1
  448. package/utils/detected-lang.d.cts +1 -1
  449. package/utils/detected-lang.d.ts +1 -1
  450. package/utils/detected-lang.js +1 -1
  451. package/utils/fullscreen.cjs +1 -1
  452. package/utils/fullscreen.d.cts +1 -1
  453. package/utils/fullscreen.d.ts +1 -1
  454. package/utils/fullscreen.js +1 -1
  455. package/utils/insert-script.cjs +1 -1
  456. package/utils/insert-script.d.cts +1 -1
  457. package/utils/insert-script.d.ts +1 -1
  458. package/utils/insert-script.js +1 -1
  459. package/utils/is-map-compatible.cjs +1 -1
  460. package/utils/is-map-compatible.d.cts +1 -1
  461. package/utils/is-map-compatible.d.ts +1 -1
  462. package/utils/is-map-compatible.js +1 -1
  463. package/utils/markdown.cjs +1 -1
  464. package/utils/markdown.d.cts +1 -1
  465. package/utils/markdown.d.ts +1 -1
  466. package/utils/markdown.js +1 -1
  467. package/utils/merge.cjs +1 -1
  468. package/utils/merge.d.cts +1 -1
  469. package/utils/merge.d.ts +1 -1
  470. package/utils/merge.js +1 -1
  471. package/utils/multiband-track-volume.cjs +1 -1
  472. package/utils/multiband-track-volume.d.cts +1 -1
  473. package/utils/multiband-track-volume.d.ts +1 -1
  474. package/utils/multiband-track-volume.js +1 -1
  475. package/utils/onlive-url-params.cjs +1 -1
  476. package/utils/onlive-url-params.d.cts +1 -1
  477. package/utils/onlive-url-params.d.ts +1 -1
  478. package/utils/onlive-url-params.js +1 -1
  479. package/utils/pretty-distance.cjs +1 -1
  480. package/utils/pretty-distance.d.cts +1 -1
  481. package/utils/pretty-distance.d.ts +1 -1
  482. package/utils/pretty-distance.js +1 -1
  483. package/utils/pretty-time.cjs +1 -1
  484. package/utils/pretty-time.d.cts +1 -1
  485. package/utils/pretty-time.d.ts +1 -1
  486. package/utils/pretty-time.js +1 -1
  487. package/utils/random-string.cjs +1 -1
  488. package/utils/random-string.d.cts +1 -1
  489. package/utils/random-string.d.ts +1 -1
  490. package/utils/random-string.js +1 -1
  491. package/utils/resource-type.cjs +1 -1
  492. package/utils/resource-type.d.cts +1 -1
  493. package/utils/resource-type.d.ts +1 -1
  494. package/utils/resource-type.js +1 -1
  495. package/utils/round-number.cjs +1 -1
  496. package/utils/round-number.d.cts +1 -1
  497. package/utils/round-number.d.ts +1 -1
  498. package/utils/round-number.js +1 -1
  499. package/utils/safe-html.cjs +2 -2
  500. package/utils/safe-html.d.cts +1 -1
  501. package/utils/safe-html.d.ts +1 -1
  502. package/utils/safe-html.js +2 -2
  503. package/utils/sanitize.cjs +1 -1
  504. package/utils/sanitize.d.cts +1 -1
  505. package/utils/sanitize.d.ts +1 -1
  506. package/utils/sanitize.js +1 -1
  507. package/utils/spread.cjs +1 -1
  508. package/utils/spread.d.cts +1 -1
  509. package/utils/spread.d.ts +1 -1
  510. package/utils/spread.js +1 -1
  511. package/utils/watch.cjs +1 -1
  512. package/utils/watch.d.cts +1 -1
  513. package/utils/watch.d.ts +1 -1
  514. package/utils/watch.js +1 -1
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var h=(i,e)=>{for(var t in e)l(i,t,{get:e[t],enumerable:!0})},m=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of g(e))!U.call(i,s)&&s!==t&&l(i,s,{get:()=>e[s],enumerable:!(r=f(e,s))||r.enumerable});return i};var F=i=>m(l({},"__esModule",{value:!0}),i);var R={};h(R,{FileService:()=>n,getFileService:()=>p});module.exports=F(R);var c=async(i,e)=>{let t=await fetch(i,e);if(!t.ok){let r=await t.json().catch(()=>({}));throw new Error(JSON.stringify({status:t.status,statusText:t.statusText,...r}))}return t&&t.json()};var n=class i{constructor(e){this.config=e,this.enableUpload=e.enableUpload||!1}static getInstance(e){if(!i.instance&&e&&(i.instance=new i(e)),!i.instance)throw new Error("FileService must be initialized with config first");return i.instance}static initialize(e){return i.instance=new i(e),i.instance}async uploadFile(e,t={}){try{let r=await this.requestSignedUrl({filename:e.name,description:t.description,loadDirection:"up",bucketType:t.bucketType||"conversations",path:t.path||".temp",mimeType:e.type});return await this.uploadToSignedUrl(r.data.signedUrlData.signedUrl,e),{success:!0,id:r.data.file.id,name:r.data.file.name,url:r.data.file.url,type:r.data.file.type}}catch(r){return console.error("Error uploading file:",r),{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}async requestSignedUrl(e){let t=`${this.config.baseUrl}/files/upload-url`;return this.makeRequest(t,{method:"POST",body:JSON.stringify(e)})}async uploadToSignedUrl(e,t){let r=await fetch(e,{method:"PUT",body:t,headers:{"Content-Type":t.type}});if(!r.ok){let s=await r.text().catch(()=>"No response");throw new Error(`Upload failed with status: ${r.status}. Response: ${s}`)}}async uploadFileWithRetry(e,t={}){let r=t.maxRetries||3,s=null;for(let a=1;a<=r;a++)try{let o=await this.uploadFile(e,t);if(o.success)return o;throw new Error(o.error||"Upload failed")}catch(o){if(s=o instanceof Error?o:new Error("Unknown error"),a===r)break;let u=2**a*1e3;await new Promise(d=>setTimeout(d,u))}return{success:!1,error:s?.message||"Upload failed after retries"}}async getFileById(e){let t=`${this.config.baseUrl}/files/${e}`,r=await this.makeRequest(t);if(!r.success)throw new Error("Failed to get file");return r.data}async makeRequest(e,t){let r={"Content-Type":"application/json"};return this.config.organizationId&&(r["X-Onlive-Organization-Id"]=this.config.organizationId),t?.headers&&Object.assign(r,t.headers),c(e,{...t,headers:r})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},p=()=>n.getInstance();0&&(module.exports={FileService,getFileService});
@@ -1,3 +1,3 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  export { FileService, getFileService } from './file.service.cjs';
3
3
  export { FileResponse, FileServiceConfig, FileUploadOptions, FileUploadResult, SignedUrlData, UploadUrlRequest, UploadUrlResponse } from './file.types.cjs';
@@ -1,3 +1,3 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  export { FileService, getFileService } from './file.service.js';
3
3
  export { FileResponse, FileServiceConfig, FileUploadOptions, FileUploadResult, SignedUrlData, UploadUrlRequest, UploadUrlResponse } from './file.types.js';
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var l=async(i,e)=>{let r=await fetch(i,e);if(!r.ok){let t=await r.json().catch(()=>({}));throw new Error(JSON.stringify({status:r.status,statusText:r.statusText,...t}))}return r&&r.json()};var a=class i{constructor(e){this.config=e,this.enableUpload=e.enableUpload||!1}static getInstance(e){if(!i.instance&&e&&(i.instance=new i(e)),!i.instance)throw new Error("FileService must be initialized with config first");return i.instance}static initialize(e){return i.instance=new i(e),i.instance}async uploadFile(e,r={}){try{let t=await this.requestSignedUrl({filename:e.name,description:r.description,loadDirection:"up",bucketType:r.bucketType||"conversations",path:r.path||".temp",mimeType:e.type});return await this.uploadToSignedUrl(t.data.signedUrlData.signedUrl,e),{success:!0,id:t.data.file.id,name:t.data.file.name,url:t.data.file.url,type:t.data.file.type}}catch(t){return console.error("Error uploading file:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error"}}}async requestSignedUrl(e){let r=`${this.config.baseUrl}/files/upload-url`;return this.makeRequest(r,{method:"POST",body:JSON.stringify(e)})}async uploadToSignedUrl(e,r){let t=await fetch(e,{method:"PUT",body:r,headers:{"Content-Type":r.type}});if(!t.ok){let o=await t.text().catch(()=>"No response");throw new Error(`Upload failed with status: ${t.status}. Response: ${o}`)}}async uploadFileWithRetry(e,r={}){let t=r.maxRetries||3,o=null;for(let n=1;n<=t;n++)try{let s=await this.uploadFile(e,r);if(s.success)return s;throw new Error(s.error||"Upload failed")}catch(s){if(o=s instanceof Error?s:new Error("Unknown error"),n===t)break;let c=2**n*1e3;await new Promise(p=>setTimeout(p,c))}return{success:!1,error:o?.message||"Upload failed after retries"}}async getFileById(e){let r=`${this.config.baseUrl}/files/${e}`,t=await this.makeRequest(r);if(!t.success)throw new Error("Failed to get file");return t.data}async makeRequest(e,r){let t={"Content-Type":"application/json"};return this.config.organizationId&&(t["X-Onlive-Organization-Id"]=this.config.organizationId),r?.headers&&Object.assign(t,r.headers),l(e,{...r,headers:t})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},u=()=>a.getInstance();export{a as FileService,u as getFileService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var y=(n,i)=>{for(var t in i)s(n,t,{get:i[t],enumerable:!0})},b=(n,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of d(i))!c.call(n,a)&&a!==t&&s(n,a,{get:()=>i[a],enumerable:!(e=u(i,a))||e.enumerable});return n};var T=n=>b(s({},"__esModule",{value:!0}),n);var g={};y(g,{FirebaseApi:()=>o});module.exports=T(g);var l=require("firebase/app"),r=require("firebase/database"),o=class{constructor(i){this.onChildChanged=(i,t)=>(0,r.onChildChanged)(this.ref(i),e=>t(e.key||"",e.val(),e));this.onChildRemoved=(i,t)=>(0,r.onChildRemoved)(this.ref(i),e=>t(e.key||"",e.val(),e));this.onChildChangedQuery=(i,t)=>(0,r.onChildChanged)(i,e=>t(e.key||"",e.val(),e));this.onChildRemovedQuery=(i,t)=>(0,r.onChildRemoved)(i,e=>t(e.key||"",e.val(),e));let t=(0,l.initializeApp)(i.config);this.db=(0,r.getDatabase)(t)}ref(i){return(0,r.ref)(this.db,i)}async getOnce(i){let t=await(0,r.get)(this.ref(i));return t.exists()?t.val():null}async getOnceQuery(i){let t=await(0,r.get)(i),e=[];return t.exists()&&t.forEach(a=>{e.push({key:a.key||"",value:a.val()})}),e}onValue(i,t){return(0,r.onValue)(this.ref(i),e=>t(e.key??"",e.val(),e),e=>console.error("onValue error",e))}onValueQuery(i,t){return(0,r.onValue)(i,e=>t(e.key??"",e.val(),e),e=>console.error("onValueQuery error",e))}onChildAdded(i,t){return(0,r.onChildAdded)(this.ref(i),e=>t(e.key||"",e.val(),e),e=>console.error("onChildAdded error",e))}onChildAddedQuery(i,t){return(0,r.onChildAdded)(i,e=>t(e.key||"",e.val(),e),e=>console.error("onChildAddedQuery error",e))}write(i,t){return(0,r.set)(this.ref(i),t)}update(i,t){return(0,r.update)(this.ref(i),t)}remove(i){return(0,r.remove)(this.ref(i))}async push(i,t){let e=(0,r.push)(this.ref(i));return await(0,r.set)(e,t),e.key}onDisconnectUpdate(i,t){return(0,r.onDisconnect)(this.ref(i)).update(t)}cancelOnDisconnect(i){return(0,r.onDisconnect)(this.ref(i)).cancel()}transaction(i,t){return(0,r.runTransaction)(this.ref(i),e=>t(e))}query(i,t={}){let e=this.ref(i);return t.orderBy==="child"&&t.childKey&&(e=(0,r.query)(e,(0,r.orderByChild)(t.childKey))),t.orderBy==="key"&&(e=(0,r.query)(e,(0,r.orderByKey)())),t.orderBy==="value"&&(e=(0,r.query)(e,(0,r.orderByValue)())),t.startAt!=null&&(e=(0,r.query)(e,(0,r.startAt)(t.startAt))),t.endAt!=null&&(e=(0,r.query)(e,(0,r.endAt)(t.endAt))),t.equalTo!=null&&(e=(0,r.query)(e,(0,r.equalTo)(t.equalTo))),t.limitFirst!=null&&(e=(0,r.query)(e,(0,r.limitToFirst)(t.limitFirst))),t.limitLast!=null&&(e=(0,r.query)(e,(0,r.limitToLast)(t.limitLast))),e}};0&&(module.exports={FirebaseApi});
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { DatabaseReference, Query, DataSnapshot, Unsubscribe, TransactionResult } from 'firebase/database';
3
3
 
4
4
  type FirebaseConfig = {
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { DatabaseReference, Query, DataSnapshot, Unsubscribe, TransactionResult } from 'firebase/database';
3
3
 
4
4
  type FirebaseConfig = {
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import{initializeApp as b}from"firebase/app";import{query as i,endAt as T,equalTo as g,get as a,getDatabase as h,limitToFirst as m,limitToLast as f,onChildAdded as s,onChildChanged as o,onChildRemoved as l,onDisconnect as u,onValue as d,orderByChild as v,orderByKey as k,orderByValue as C,push as A,ref as Q,remove as j,runTransaction as P,set as c,startAt as D,update as R}from"firebase/database";var y=class{constructor(t){this.onChildChanged=(t,r)=>o(this.ref(t),e=>r(e.key||"",e.val(),e));this.onChildRemoved=(t,r)=>l(this.ref(t),e=>r(e.key||"",e.val(),e));this.onChildChangedQuery=(t,r)=>o(t,e=>r(e.key||"",e.val(),e));this.onChildRemovedQuery=(t,r)=>l(t,e=>r(e.key||"",e.val(),e));let r=b(t.config);this.db=h(r)}ref(t){return Q(this.db,t)}async getOnce(t){let r=await a(this.ref(t));return r.exists()?r.val():null}async getOnceQuery(t){let r=await a(t),e=[];return r.exists()&&r.forEach(n=>{e.push({key:n.key||"",value:n.val()})}),e}onValue(t,r){return d(this.ref(t),e=>r(e.key??"",e.val(),e),e=>console.error("onValue error",e))}onValueQuery(t,r){return d(t,e=>r(e.key??"",e.val(),e),e=>console.error("onValueQuery error",e))}onChildAdded(t,r){return s(this.ref(t),e=>r(e.key||"",e.val(),e),e=>console.error("onChildAdded error",e))}onChildAddedQuery(t,r){return s(t,e=>r(e.key||"",e.val(),e),e=>console.error("onChildAddedQuery error",e))}write(t,r){return c(this.ref(t),r)}update(t,r){return R(this.ref(t),r)}remove(t){return j(this.ref(t))}async push(t,r){let e=A(this.ref(t));return await c(e,r),e.key}onDisconnectUpdate(t,r){return u(this.ref(t)).update(r)}cancelOnDisconnect(t){return u(this.ref(t)).cancel()}transaction(t,r){return P(this.ref(t),e=>r(e))}query(t,r={}){let e=this.ref(t);return r.orderBy==="child"&&r.childKey&&(e=i(e,v(r.childKey))),r.orderBy==="key"&&(e=i(e,k())),r.orderBy==="value"&&(e=i(e,C())),r.startAt!=null&&(e=i(e,D(r.startAt))),r.endAt!=null&&(e=i(e,T(r.endAt))),r.equalTo!=null&&(e=i(e,g(r.equalTo))),r.limitFirst!=null&&(e=i(e,m(r.limitFirst))),r.limitLast!=null&&(e=i(e,f(r.limitLast))),e}};export{y as FirebaseApi};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var o=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var p=(e,i)=>{for(var t in i)o(e,t,{get:i[t],enumerable:!0})},g=(e,i,t,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of d(i))!s.call(e,a)&&a!==t&&o(e,a,{get:()=>i[a],enumerable:!(l=r(i,a))||l.enumerable});return e};var f=e=>g(o({},"__esModule",{value:!0}),e);var v={};p(v,{defaultMultimediaConfig:()=>u,getMultimediaConfig:()=>m,multimediaConfigs:()=>n});module.exports=f(v);var n={development:{baseUrl:"https://lfhew0-srvless.onlive.site",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade",apiKey:"dev-api-key-here"},staging:{baseUrl:"https://staging-api.onlive.site",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade",apiKey:"staging-api-key-here"},production:{baseUrl:"https://api.onlive.site",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade",apiKey:"prod-api-key-here"},local:{baseUrl:"http://localhost:3000",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade"}};function m(e="development"){return n[e]}var u=n.development;0&&(module.exports={defaultMultimediaConfig,getMultimediaConfig,multimediaConfigs});
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { MultimediaServiceConfig } from './multimedia.types.cjs';
3
3
 
4
4
  declare const multimediaConfigs: {
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { MultimediaServiceConfig } from './multimedia.types.js';
3
3
 
4
4
  declare const multimediaConfigs: {
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var e={development:{baseUrl:"https://lfhew0-srvless.onlive.site",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade",apiKey:"dev-api-key-here"},staging:{baseUrl:"https://staging-api.onlive.site",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade",apiKey:"staging-api-key-here"},production:{baseUrl:"https://api.onlive.site",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade",apiKey:"prod-api-key-here"},local:{baseUrl:"http://localhost:3000",organizationId:"203517f8-1b21-4a40-a9ee-632e0a320ade"}};function a(i="development"){return e[i]}var t=e.development;export{t as defaultMultimediaConfig,a as getMultimediaConfig,e as multimediaConfigs};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var l=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var p=(n,e)=>{for(var i in e)l(n,i,{get:e[i],enumerable:!0})},M=(n,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of g(e))!h.call(n,s)&&s!==i&&l(n,s,{get:()=>e[s],enumerable:!(t=d(e,s))||t.enumerable});return n};var y=n=>M(l({},"__esModule",{value:!0}),n);var S={};p(S,{MultimediaService:()=>r,getMultimediaService:()=>c});module.exports=y(S);var u=async(n,e)=>{let i=await fetch(n,e);if(!i.ok){let t=await i.json().catch(()=>({}));throw new Error(JSON.stringify({status:i.status,statusText:i.statusText,...t}))}return i&&i.json()};var r=class n{constructor(e){this.config=e}static getInstance(e){if(!n.instance&&e&&(n.instance=new n(e)),!n.instance)throw new Error("MultimediaService must be initialized with config first");return n.instance}static initialize(e){return n.instance=new n(e),n.instance}async getImages(e={}){let i=new URLSearchParams({type:"image",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getVideos(e={}){let i=new URLSearchParams({type:"video",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getPresentations(e={}){let i=new URLSearchParams({type:"presentation",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getAllMultimedia(e={}){let[i,t,s]=await Promise.all([this.getImages(e),this.getVideos(e),this.getPresentations(e)]);return{images:i,videos:t,presentations:s}}async getMultimediaByToken(e){let i=`${this.config.baseUrl}/multimedia/secure-token/${e}`;return this.makeRequest(i,!1)}async searchMultimedia(e,i){let t={search:e,page:1,limit:50,includeSecureToken:!0};if(i)return this.getMultimediaByType(i,t);let[s,a,m]=await Promise.all([this.getImages(t),this.getVideos(t),this.getPresentations(t)]),o=[...s.items,...a.items,...m.items];return{items:o,total:o.length,count:o.length,currentPage:1,totalPages:1}}async getMultimediaByType(e,i){switch(e){case"image":return this.getImages(i);case"video":return this.getVideos(i);case"presentation":return this.getPresentations(i);default:throw new Error(`Invalid multimedia type: ${e}`)}}appendExtraFilters(e,i){if(i){for(let[t,s]of Object.entries(i))if(s&&(Array.isArray(s)?s.length>0:s.toString().trim()!=="")){let a=Array.isArray(s)?s.join(","):s.toString();e.append(`extra_${t}`,a)}}}async makeRequest(e,i=!0){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return u(e,{method:"GET",headers:t,credentials:i?"include":void 0})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},c=()=>r.getInstance();0&&(module.exports={MultimediaService,getMultimediaService});
@@ -1,3 +1,3 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  export { MultimediaService, getMultimediaService } from './multimedia.service.cjs';
3
3
  export { ImageItem, MultimediaItem, MultimediaQueryParams, MultimediaResponse, MultimediaServiceConfig, PresentationItem, VideoItem } from './multimedia.types.cjs';
@@ -1,3 +1,3 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  export { MultimediaService, getMultimediaService } from './multimedia.service.js';
3
3
  export { ImageItem, MultimediaItem, MultimediaQueryParams, MultimediaResponse, MultimediaServiceConfig, PresentationItem, VideoItem } from './multimedia.types.js';
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var l=async(s,e)=>{let i=await fetch(s,e);if(!i.ok){let t=await i.json().catch(()=>({}));throw new Error(JSON.stringify({status:i.status,statusText:i.statusText,...t}))}return i&&i.json()};var r=class s{constructor(e){this.config=e}static getInstance(e){if(!s.instance&&e&&(s.instance=new s(e)),!s.instance)throw new Error("MultimediaService must be initialized with config first");return s.instance}static initialize(e){return s.instance=new s(e),s.instance}async getImages(e={}){let i=new URLSearchParams({type:"image",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getVideos(e={}){let i=new URLSearchParams({type:"video",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getPresentations(e={}){let i=new URLSearchParams({type:"presentation",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getAllMultimedia(e={}){let[i,t,n]=await Promise.all([this.getImages(e),this.getVideos(e),this.getPresentations(e)]);return{images:i,videos:t,presentations:n}}async getMultimediaByToken(e){let i=`${this.config.baseUrl}/multimedia/secure-token/${e}`;return this.makeRequest(i,!1)}async searchMultimedia(e,i){let t={search:e,page:1,limit:50,includeSecureToken:!0};if(i)return this.getMultimediaByType(i,t);let[n,a,u]=await Promise.all([this.getImages(t),this.getVideos(t),this.getPresentations(t)]),o=[...n.items,...a.items,...u.items];return{items:o,total:o.length,count:o.length,currentPage:1,totalPages:1}}async getMultimediaByType(e,i){switch(e){case"image":return this.getImages(i);case"video":return this.getVideos(i);case"presentation":return this.getPresentations(i);default:throw new Error(`Invalid multimedia type: ${e}`)}}appendExtraFilters(e,i){if(i){for(let[t,n]of Object.entries(i))if(n&&(Array.isArray(n)?n.length>0:n.toString().trim()!=="")){let a=Array.isArray(n)?n.join(","):n.toString();e.append(`extra_${t}`,a)}}}async makeRequest(e,i=!0){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return l(e,{method:"GET",headers:t,credentials:i?"include":void 0})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},c=()=>r.getInstance();export{r as MultimediaService,c as getMultimediaService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var i in e)l(n,i,{get:e[i],enumerable:!0})},p=(n,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d(e))!g.call(n,s)&&s!==i&&l(n,s,{get:()=>e[s],enumerable:!(t=m(e,s))||t.enumerable});return n};var y=n=>p(l({},"__esModule",{value:!0}),n);var M={};h(M,{MultimediaService:()=>r,getMultimediaService:()=>S});module.exports=y(M);var c=async(n,e)=>{let i=await fetch(n,e);if(!i.ok){let t=await i.json().catch(()=>({}));throw new Error(JSON.stringify({status:i.status,statusText:i.statusText,...t}))}return i&&i.json()};var r=class n{constructor(e){this.config=e}static getInstance(e){if(!n.instance&&e&&(n.instance=new n(e)),!n.instance)throw new Error("MultimediaService must be initialized with config first");return n.instance}static initialize(e){return n.instance=new n(e),n.instance}async getImages(e={}){let i=new URLSearchParams({type:"image",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getVideos(e={}){let i=new URLSearchParams({type:"video",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getPresentations(e={}){let i=new URLSearchParams({type:"presentation",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getAllMultimedia(e={}){let[i,t,s]=await Promise.all([this.getImages(e),this.getVideos(e),this.getPresentations(e)]);return{images:i,videos:t,presentations:s}}async getMultimediaByToken(e){let i=`${this.config.baseUrl}/multimedia/secure-token/${e}`;return this.makeRequest(i,!1)}async searchMultimedia(e,i){let t={search:e,page:1,limit:50,includeSecureToken:!0};if(i)return this.getMultimediaByType(i,t);let[s,a,u]=await Promise.all([this.getImages(t),this.getVideos(t),this.getPresentations(t)]),o=[...s.items,...a.items,...u.items];return{items:o,total:o.length,count:o.length,currentPage:1,totalPages:1}}async getMultimediaByType(e,i){switch(e){case"image":return this.getImages(i);case"video":return this.getVideos(i);case"presentation":return this.getPresentations(i);default:throw new Error(`Invalid multimedia type: ${e}`)}}appendExtraFilters(e,i){if(i){for(let[t,s]of Object.entries(i))if(s&&(Array.isArray(s)?s.length>0:s.toString().trim()!=="")){let a=Array.isArray(s)?s.join(","):s.toString();e.append(`extra_${t}`,a)}}}async makeRequest(e,i=!0){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return c(e,{method:"GET",headers:t,credentials:i?"include":void 0})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},S=()=>r.getInstance();0&&(module.exports={MultimediaService,getMultimediaService});
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { MultimediaServiceConfig, MultimediaQueryParams, MultimediaResponse, MultimediaItem } from './multimedia.types.cjs';
3
3
 
4
4
  declare class MultimediaService {
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { MultimediaServiceConfig, MultimediaQueryParams, MultimediaResponse, MultimediaItem } from './multimedia.types.js';
3
3
 
4
4
  declare class MultimediaService {
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var l=async(s,e)=>{let i=await fetch(s,e);if(!i.ok){let t=await i.json().catch(()=>({}));throw new Error(JSON.stringify({status:i.status,statusText:i.statusText,...t}))}return i&&i.json()};var o=class s{constructor(e){this.config=e}static getInstance(e){if(!s.instance&&e&&(s.instance=new s(e)),!s.instance)throw new Error("MultimediaService must be initialized with config first");return s.instance}static initialize(e){return s.instance=new s(e),s.instance}async getImages(e={}){let i=new URLSearchParams({type:"image",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getVideos(e={}){let i=new URLSearchParams({type:"video",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getPresentations(e={}){let i=new URLSearchParams({type:"presentation",page:(e.page||1).toString(),limit:(e.limit||12).toString(),...e.search&&{search:e.search},...e.labels&&{labels:e.labels.join(",")},...e.includeSecureToken&&{includeSecureToken:e.includeSecureToken.toString()}});this.appendExtraFilters(i,e.extraFilters);let t=`${this.config.baseUrl}/multimedia?${i}`;return this.makeRequest(t)}async getAllMultimedia(e={}){let[i,t,n]=await Promise.all([this.getImages(e),this.getVideos(e),this.getPresentations(e)]);return{images:i,videos:t,presentations:n}}async getMultimediaByToken(e){let i=`${this.config.baseUrl}/multimedia/secure-token/${e}`;return this.makeRequest(i,!1)}async searchMultimedia(e,i){let t={search:e,page:1,limit:50,includeSecureToken:!0};if(i)return this.getMultimediaByType(i,t);let[n,r,c]=await Promise.all([this.getImages(t),this.getVideos(t),this.getPresentations(t)]),a=[...n.items,...r.items,...c.items];return{items:a,total:a.length,count:a.length,currentPage:1,totalPages:1}}async getMultimediaByType(e,i){switch(e){case"image":return this.getImages(i);case"video":return this.getVideos(i);case"presentation":return this.getPresentations(i);default:throw new Error(`Invalid multimedia type: ${e}`)}}appendExtraFilters(e,i){if(i){for(let[t,n]of Object.entries(i))if(n&&(Array.isArray(n)?n.length>0:n.toString().trim()!=="")){let r=Array.isArray(n)?n.join(","):n.toString();e.append(`extra_${t}`,r)}}}async makeRequest(e,i=!0){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return l(e,{method:"GET",headers:t,credentials:i?"include":void 0})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},d=()=>o.getInstance();export{o as MultimediaService,d as getMultimediaService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var d=(t,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of s(e))!o.call(t,i)&&i!==a&&r(t,i,{get:()=>e[i],enumerable:!(n=l(e,i))||n.enumerable});return t};var m=t=>d(r({},"__esModule",{value:!0}),t);var g={};module.exports=m(g);
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  interface MultimediaItem {
3
3
  id: string;
4
4
  extraFields: Record<string, any> | null;
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  interface MultimediaItem {
3
3
  id: string;
4
4
  extraFields: Record<string, any> | null;
@@ -1 +1 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var n=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var a=(r,t)=>{for(var e in t)n(r,e,{get:t[e],enumerable:!0})},f=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of P(t))!g.call(r,o)&&o!==e&&n(r,o,{get:()=>t[o],enumerable:!(i=d(t,o))||i.enumerable});return r};var l=r=>f(n({},"__esModule",{value:!0}),r);var S={};a(S,{ProductService:()=>c,getProductService:()=>u});module.exports=l(S);var s=async(r,t)=>{let e=await fetch(r,t);if(!e.ok){let i=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...i}))}return e&&e.json()};var c=class r{constructor(t){this.config=t}static getInstance(t){if(!r.instance&&t&&(r.instance=new r(t)),!r.instance)throw new Error("ProductService must be initialized with config first");return r.instance}static initialize(t){return r.instance=new r(t),r.instance}async getProducts(t={}){let e=new URLSearchParams({...t.title&&{title:t.title},...t.search&&{search:t.search},...t.category&&{category:t.category},...t.tags&&{tags:t.tags.join(",")},...t.sortBy&&{sortBy:t.sortBy},...t.sortOrder&&{sortOrder:t.sortOrder},...t.minPrice&&{minPrice:t.minPrice.toString()},...t.maxPrice&&{maxPrice:t.maxPrice.toString()},...t.inStock!==void 0&&{inStock:t.inStock.toString()},...t.offset&&{offset:t.offset.toString()},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});t.extraFields&&Object.keys(t.extraFields).length>0&&e.append("extraFields",JSON.stringify(t.extraFields));let i=`${this.config.baseUrl}/products?${e}`;return this.makeRequest(i,!0)}async getProductByToken(t){let e=`${this.config.baseUrl}/products/secure-token/${t}`;return this.makeRequest(e)}async searchProducts(t,e={}){return this.getProducts({...e,search:t})}async makeRequest(t,e=!1){let i={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return s(t,{method:"GET",headers:i,credentials:e?"include":"same-origin"})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}},u=()=>c.getInstance();0&&(module.exports={ProductService,getProductService});
@@ -1,3 +1,3 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  export { ProductService, getProductService } from './product.service.cjs';
3
3
  export { Product, ProductOption, ProductServiceConfig, ProductVariant, ProductsQueryParams, ProductsResponse } from './product.types.cjs';
@@ -1,3 +1,3 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  export { ProductService, getProductService } from './product.service.js';
3
3
  export { Product, ProductOption, ProductServiceConfig, ProductVariant, ProductsQueryParams, ProductsResponse } from './product.types.js';
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var c=async(r,t)=>{let e=await fetch(r,t);if(!e.ok){let i=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...i}))}return e&&e.json()};var o=class r{constructor(t){this.config=t}static getInstance(t){if(!r.instance&&t&&(r.instance=new r(t)),!r.instance)throw new Error("ProductService must be initialized with config first");return r.instance}static initialize(t){return r.instance=new r(t),r.instance}async getProducts(t={}){let e=new URLSearchParams({...t.title&&{title:t.title},...t.search&&{search:t.search},...t.category&&{category:t.category},...t.tags&&{tags:t.tags.join(",")},...t.sortBy&&{sortBy:t.sortBy},...t.sortOrder&&{sortOrder:t.sortOrder},...t.minPrice&&{minPrice:t.minPrice.toString()},...t.maxPrice&&{maxPrice:t.maxPrice.toString()},...t.inStock!==void 0&&{inStock:t.inStock.toString()},...t.offset&&{offset:t.offset.toString()},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});t.extraFields&&Object.keys(t.extraFields).length>0&&e.append("extraFields",JSON.stringify(t.extraFields));let i=`${this.config.baseUrl}/products?${e}`;return this.makeRequest(i,!0)}async getProductByToken(t){let e=`${this.config.baseUrl}/products/secure-token/${t}`;return this.makeRequest(e)}async searchProducts(t,e={}){return this.getProducts({...e,search:t})}async makeRequest(t,e=!1){let i={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return c(t,{method:"GET",headers:i,credentials:e?"include":"same-origin"})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}},n=()=>o.getInstance();export{o as ProductService,n as getProductService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var P=(r,t)=>{for(var e in t)o(r,e,{get:t[e],enumerable:!0})},a=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of d(t))!g.call(r,c)&&c!==e&&o(r,c,{get:()=>t[c],enumerable:!(i=u(t,c))||i.enumerable});return r};var f=r=>a(o({},"__esModule",{value:!0}),r);var S={};P(S,{ProductService:()=>n,getProductService:()=>l});module.exports=f(S);var s=async(r,t)=>{let e=await fetch(r,t);if(!e.ok){let i=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...i}))}return e&&e.json()};var n=class r{constructor(t){this.config=t}static getInstance(t){if(!r.instance&&t&&(r.instance=new r(t)),!r.instance)throw new Error("ProductService must be initialized with config first");return r.instance}static initialize(t){return r.instance=new r(t),r.instance}async getProducts(t={}){let e=new URLSearchParams({...t.title&&{title:t.title},...t.search&&{search:t.search},...t.category&&{category:t.category},...t.tags&&{tags:t.tags.join(",")},...t.sortBy&&{sortBy:t.sortBy},...t.sortOrder&&{sortOrder:t.sortOrder},...t.minPrice&&{minPrice:t.minPrice.toString()},...t.maxPrice&&{maxPrice:t.maxPrice.toString()},...t.inStock!==void 0&&{inStock:t.inStock.toString()},...t.offset&&{offset:t.offset.toString()},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});t.extraFields&&Object.keys(t.extraFields).length>0&&e.append("extraFields",JSON.stringify(t.extraFields));let i=`${this.config.baseUrl}/products?${e}`;return this.makeRequest(i,!0)}async getProductByToken(t){let e=`${this.config.baseUrl}/products/secure-token/${t}`;return this.makeRequest(e)}async searchProducts(t,e={}){return this.getProducts({...e,search:t})}async makeRequest(t,e=!1){let i={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return s(t,{method:"GET",headers:i,credentials:e?"include":"same-origin"})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}},l=()=>n.getInstance();0&&(module.exports={ProductService,getProductService});
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { ProductServiceConfig, ProductsQueryParams, Product } from './product.types.cjs';
3
3
 
4
4
  declare class ProductService {
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  import { ProductServiceConfig, ProductsQueryParams, Product } from './product.types.js';
3
3
 
4
4
  declare class ProductService {
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var n=async(r,t)=>{let e=await fetch(r,t);if(!e.ok){let i=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...i}))}return e&&e.json()};var c=class r{constructor(t){this.config=t}static getInstance(t){if(!r.instance&&t&&(r.instance=new r(t)),!r.instance)throw new Error("ProductService must be initialized with config first");return r.instance}static initialize(t){return r.instance=new r(t),r.instance}async getProducts(t={}){let e=new URLSearchParams({...t.title&&{title:t.title},...t.search&&{search:t.search},...t.category&&{category:t.category},...t.tags&&{tags:t.tags.join(",")},...t.sortBy&&{sortBy:t.sortBy},...t.sortOrder&&{sortOrder:t.sortOrder},...t.minPrice&&{minPrice:t.minPrice.toString()},...t.maxPrice&&{maxPrice:t.maxPrice.toString()},...t.inStock!==void 0&&{inStock:t.inStock.toString()},...t.offset&&{offset:t.offset.toString()},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});t.extraFields&&Object.keys(t.extraFields).length>0&&e.append("extraFields",JSON.stringify(t.extraFields));let i=`${this.config.baseUrl}/products?${e}`;return this.makeRequest(i,!0)}async getProductByToken(t){let e=`${this.config.baseUrl}/products/secure-token/${t}`;return this.makeRequest(e)}async searchProducts(t,e={}){return this.getProducts({...e,search:t})}async makeRequest(t,e=!1){let i={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return n(t,{method:"GET",headers:i,credentials:e?"include":"same-origin"})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}},u=()=>c.getInstance();export{c as ProductService,u as getProductService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var i=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(e,r,s,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of a(r))!c.call(e,t)&&t!==s&&i(e,t,{get:()=>r[t],enumerable:!(n=o(r,t))||n.enumerable});return e};var u=e=>g(i({},"__esModule",{value:!0}),e);var d={};module.exports=u(d);
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  interface ProductVariant {
3
3
  id: string;
4
4
  extraFields: Record<string, any>;
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  interface ProductVariant {
3
3
  id: string;
4
4
  extraFields: Record<string, any>;
@@ -1 +1 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(t,s)=>{for(var e in s)o(t,e,{get:s[e],enumerable:!0})},T=(t,s,e,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of i(s))!c.call(t,r)&&r!==e&&o(t,r,{get:()=>s[r],enumerable:!(n=a(s,r))||n.enumerable});return t};var p=t=>T(o({},"__esModule",{value:!0}),t);var w={};u(w,{removeTrailingSlash:()=>h,request:()=>f});module.exports=p(w);var f=async(t,s)=>{let e=await fetch(t,s);if(!e.ok){let n=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...n}))}return e&&e.json()},h=t=>t.replace(/\/$/,"");0&&(module.exports={removeTrailingSlash,request});
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  /**
3
3
  * Makes an HTTP request and returns the response as a JSON object.
4
4
  * @param input - The URL or `Request` object for the HTTP request.
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  /**
3
3
  * Makes an HTTP request and returns the response as a JSON object.
4
4
  * @param input - The URL or `Request` object for the HTTP request.
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var n=async(s,e)=>{let t=await fetch(s,e);if(!t.ok){let r=await t.json().catch(()=>({}));throw new Error(JSON.stringify({status:t.status,statusText:t.statusText,...r}))}return t&&t.json()},o=s=>s.replace(/\/$/,"");export{o as removeTrailingSlash,n as request};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  "use strict";var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var h=(s,e)=>{for(var t in e)a(s,t,{get:e[t],enumerable:!0})},C=(s,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!l.call(s,r)&&r!==t&&a(s,r,{get:()=>e[r],enumerable:!(o=u(e,r))||o.enumerable});return s};var b=s=>C(a({},"__esModule",{value:!0}),s);var f={};h(f,{SESSION_KEY:()=>i,SessionService:()=>g});module.exports=b(f);var c=s=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="";for(let o=0;o<s;o++)t+=e.charAt(Math.floor(Math.random()*e.length));return t};var S=require("@onlive.ai/tracker/generator"),n=require("@onlive.ai/tracker/session"),i="chatbot",g=class s{static hasSession(){return!!n.Session.getCookie(i)}static getSession(e={role:"guest",regenerate:!1}){e.regenerate&&(n.Session.id=S.Generator.uuid(),n.Session.deleteCookie(i));let t=n.Session.getCookie(i);return t&&s.isValidSession(t,e.role)?t:s.createSession(e.role)}static createSession(e){let t={externalId:e==="agent"?String(s.getUserId()||n.Session.id):n.Session.id,secret:c(16),createdAt:new Date().toISOString()};return n.Session.setCookie(i,t,3600*24*365),t}static isValidSession(e,t){if(t==="guest")return!0;let o=s.getUserId();return!!(o&&String(o)===e.externalId)}static getUserId(){return n.Session.getCookie("user-id",{objectKey:"userId",storageKey:"user",storageType:"localStorage",ttl:3600*24*365,preserveData:!0})}static updateSessionWithRegistrationData(e){let t=n.Session.getCookie(i);if(t||(t=s.createSession("guest")),t){let o={...t,registrationData:e};n.Session.setCookie(i,o,3600*24*365)}}static hasRegistrationData(){return!!n.Session.getCookie(i)?.registrationData}static async getAgentInfo(e){return fetch(`${e}/api/v1/auth/user-info`,{credentials:"include"}).then(t=>t.json())}static getRegistrationData(){return n.Session.getCookie(i)?.registrationData}};0&&(module.exports={SESSION_KEY,SessionService});
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  declare const SESSION_KEY = "chatbot";
3
3
  /**
4
4
  * Represents a chat session.
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  declare const SESSION_KEY = "chatbot";
3
3
  /**
4
4
  * Represents a chat session.
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.199 | © 2026 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
2
  var r=o=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e="";for(let i=0;i<o;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e};import{Generator as g}from"@onlive.ai/tracker/generator";import{Session as s}from"@onlive.ai/tracker/session";var n="chatbot",a=class o{static hasSession(){return!!s.getCookie(n)}static getSession(t={role:"guest",regenerate:!1}){t.regenerate&&(s.id=g.uuid(),s.deleteCookie(n));let e=s.getCookie(n);return e&&o.isValidSession(e,t.role)?e:o.createSession(t.role)}static createSession(t){let e={externalId:t==="agent"?String(o.getUserId()||s.id):s.id,secret:r(16),createdAt:new Date().toISOString()};return s.setCookie(n,e,3600*24*365),e}static isValidSession(t,e){if(e==="guest")return!0;let i=o.getUserId();return!!(i&&String(i)===t.externalId)}static getUserId(){return s.getCookie("user-id",{objectKey:"userId",storageKey:"user",storageType:"localStorage",ttl:3600*24*365,preserveData:!0})}static updateSessionWithRegistrationData(t){let e=s.getCookie(n);if(e||(e=o.createSession("guest")),e){let i={...e,registrationData:t};s.setCookie(n,i,3600*24*365)}}static hasRegistrationData(){return!!s.getCookie(n)?.registrationData}static async getAgentInfo(t){return fetch(`${t}/api/v1/auth/user-info`,{credentials:"include"}).then(e=>e.json())}static getRegistrationData(){return s.getCookie(n)?.registrationData}};export{n as SESSION_KEY,a as SessionService};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var f=(o,s)=>{for(var e in s)a(o,e,{get:s[e],enumerable:!0})},u=(o,s,e,t)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of l(s))!S.call(o,r)&&r!==e&&a(o,r,{get:()=>s[r],enumerable:!(t=c(s,r))||t.enumerable});return o};var $=o=>u(a({},"__esModule",{value:!0}),o);var y={};f(y,{SessionsApiService:()=>h});module.exports=$(y);var h=class{constructor(s,e){this.baseUrl=s.replace(/\/+$/,""),this.organizationId=e}get headers(){return{"Content-Type":"application/json","X-Onlive-Organization-Id":this.organizationId}}async getSessionsByUser(s){let e=await fetch(`${this.baseUrl}/sessions/user/${s}`,{method:"GET",headers:this.headers});if(!e.ok)throw new Error(`Failed to fetch sessions for user ${s}: ${e.statusText}`);return e.json()}async listSessions(s){let e=new URLSearchParams;if(s)for(let[d,n]of Object.entries(s))n!=null&&e.set(d,String(n));let t=e.toString(),r=`${this.baseUrl}/sessions${t?`?${t}`:""}`,i=await fetch(r,{method:"GET",headers:this.headers});if(!i.ok)throw new Error(`Failed to list sessions: ${i.statusText}`);return(await i.json()).data}async getSession(s){let e=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"GET",headers:this.headers});if(!e.ok)throw new Error(`Failed to fetch session ${s}: ${e.statusText}`);return e.json()}async createSession(s){let e=await fetch(`${this.baseUrl}/sessions`,{method:"POST",headers:this.headers,body:JSON.stringify(s)});if(!e.ok)throw new Error(`Failed to create session: ${e.statusText}`);return e.json()}async updateSession(s,e){let t=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"PATCH",headers:this.headers,body:JSON.stringify(e)});if(!t.ok)throw new Error(`Failed to update session ${s}: ${t.statusText}`);return t.json()}async deleteSession(s){let e=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"DELETE",headers:this.headers});if(!e.ok)throw new Error(`Failed to delete session ${s}: ${e.statusText}`)}};0&&(module.exports={SessionsApiService});
@@ -0,0 +1,23 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ import { Session, ListSessionsParams, CreateSessionBody, UpdateSessionBody } from './sessions.types.cjs';
3
+
4
+ /**
5
+ * @summary A service to interact with the Sessions API.
6
+ *
7
+ * @description A service responsible for CRUD operations on sessions.
8
+ * All requests include the `X-Onlive-Organization-Id` header.
9
+ */
10
+ declare class SessionsApiService {
11
+ private readonly baseUrl;
12
+ private readonly organizationId;
13
+ constructor(baseUrl: string, organizationId: string);
14
+ private get headers();
15
+ getSessionsByUser(userId: string): Promise<Session[]>;
16
+ listSessions(params?: ListSessionsParams): Promise<Session[]>;
17
+ getSession(sessionId: string): Promise<Session>;
18
+ createSession(body: CreateSessionBody): Promise<Session>;
19
+ updateSession(sessionId: string, body: UpdateSessionBody): Promise<Session>;
20
+ deleteSession(sessionId: string): Promise<void>;
21
+ }
22
+
23
+ export { SessionsApiService };
@@ -0,0 +1,23 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ import { Session, ListSessionsParams, CreateSessionBody, UpdateSessionBody } from './sessions.types.js';
3
+
4
+ /**
5
+ * @summary A service to interact with the Sessions API.
6
+ *
7
+ * @description A service responsible for CRUD operations on sessions.
8
+ * All requests include the `X-Onlive-Organization-Id` header.
9
+ */
10
+ declare class SessionsApiService {
11
+ private readonly baseUrl;
12
+ private readonly organizationId;
13
+ constructor(baseUrl: string, organizationId: string);
14
+ private get headers();
15
+ getSessionsByUser(userId: string): Promise<Session[]>;
16
+ listSessions(params?: ListSessionsParams): Promise<Session[]>;
17
+ getSession(sessionId: string): Promise<Session>;
18
+ createSession(body: CreateSessionBody): Promise<Session>;
19
+ updateSession(sessionId: string, body: UpdateSessionBody): Promise<Session>;
20
+ deleteSession(sessionId: string): Promise<void>;
21
+ }
22
+
23
+ export { SessionsApiService };
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ var i=class{constructor(e,s){this.baseUrl=e.replace(/\/+$/,""),this.organizationId=s}get headers(){return{"Content-Type":"application/json","X-Onlive-Organization-Id":this.organizationId}}async getSessionsByUser(e){let s=await fetch(`${this.baseUrl}/sessions/user/${e}`,{method:"GET",headers:this.headers});if(!s.ok)throw new Error(`Failed to fetch sessions for user ${e}: ${s.statusText}`);return s.json()}async listSessions(e){let s=new URLSearchParams;if(e)for(let[a,r]of Object.entries(e))r!=null&&s.set(a,String(r));let t=s.toString(),n=`${this.baseUrl}/sessions${t?`?${t}`:""}`,o=await fetch(n,{method:"GET",headers:this.headers});if(!o.ok)throw new Error(`Failed to list sessions: ${o.statusText}`);return(await o.json()).data}async getSession(e){let s=await fetch(`${this.baseUrl}/sessions/${e}`,{method:"GET",headers:this.headers});if(!s.ok)throw new Error(`Failed to fetch session ${e}: ${s.statusText}`);return s.json()}async createSession(e){let s=await fetch(`${this.baseUrl}/sessions`,{method:"POST",headers:this.headers,body:JSON.stringify(e)});if(!s.ok)throw new Error(`Failed to create session: ${s.statusText}`);return s.json()}async updateSession(e,s){let t=await fetch(`${this.baseUrl}/sessions/${e}`,{method:"PATCH",headers:this.headers,body:JSON.stringify(s)});if(!t.ok)throw new Error(`Failed to update session ${e}: ${t.statusText}`);return t.json()}async deleteSession(e){let s=await fetch(`${this.baseUrl}/sessions/${e}`,{method:"DELETE",headers:this.headers});if(!s.ok)throw new Error(`Failed to delete session ${e}: ${s.statusText}`)}};export{i as SessionsApiService};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ "use strict";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var g=(i,s)=>{for(var e in s)l(i,e,{get:s[e],enumerable:!0})},m=(i,s,e,t)=>{if(s&&typeof s=="object"||typeof s=="function")for(let o of S(s))!f.call(i,o)&&o!==e&&l(i,o,{get:()=>s[o],enumerable:!(t=p(s,o))||t.enumerable});return i};var v=i=>m(l({},"__esModule",{value:!0}),i);var w={};g(w,{SessionsController:()=>h});module.exports=v(w);var d=require("@onlive.ai/tracker/session");var n=class{constructor(s,e){this.baseUrl=s.replace(/\/+$/,""),this.organizationId=e}get headers(){return{"Content-Type":"application/json","X-Onlive-Organization-Id":this.organizationId}}async getSessionsByUser(s){let e=await fetch(`${this.baseUrl}/sessions/user/${s}`,{method:"GET",headers:this.headers});if(!e.ok)throw new Error(`Failed to fetch sessions for user ${s}: ${e.statusText}`);return e.json()}async listSessions(s){let e=new URLSearchParams;if(s)for(let[u,a]of Object.entries(s))a!=null&&e.set(u,String(a));let t=e.toString(),o=`${this.baseUrl}/sessions${t?`?${t}`:""}`,r=await fetch(o,{method:"GET",headers:this.headers});if(!r.ok)throw new Error(`Failed to list sessions: ${r.statusText}`);return(await r.json()).data}async getSession(s){let e=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"GET",headers:this.headers});if(!e.ok)throw new Error(`Failed to fetch session ${s}: ${e.statusText}`);return e.json()}async createSession(s){let e=await fetch(`${this.baseUrl}/sessions`,{method:"POST",headers:this.headers,body:JSON.stringify(s)});if(!e.ok)throw new Error(`Failed to create session: ${e.statusText}`);return e.json()}async updateSession(s,e){let t=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"PATCH",headers:this.headers,body:JSON.stringify(e)});if(!t.ok)throw new Error(`Failed to update session ${s}: ${t.statusText}`);return t.json()}async deleteSession(s){let e=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"DELETE",headers:this.headers});if(!e.ok)throw new Error(`Failed to delete session ${s}: ${e.statusText}`)}};var c="chatbot-session-id",y=3600*24,h=class{constructor(s){this.api=null;this.userId="";this.loadPromise=null;this.disconnected=!1;this.sessions=[];this.loading=!1;this.activeSessionId=null;this.host=s,this.host.addController(this)}hostConnected(){this.disconnected=!1}hostDisconnected(){this.disconnected=!0,this.api=null,this.sessions=[],this.activeSessionId=null,this.loadPromise=null}configure(s){this.userId=s.userId,this.api=new n(s.apiUrl,s.organizationId)}async loadSessions(){if(this.api)return this.loadPromise?this.loadPromise:(this.loading=!0,this.host.requestUpdate(),this.loadPromise=(async()=>{try{let s=await this.api.listSessions({userExternalId:this.userId,orderBy:"updatedAt",orderDir:"desc"});this.disconnected||(this.sessions=s)}catch(s){console.error("[SessionsController] Failed to load sessions:",s),this.disconnected||(this.sessions=[])}finally{this.loadPromise=null,this.disconnected||(this.loading=!1,this.host.requestUpdate())}})(),this.loadPromise)}getSessionId(){return d.Session.getCookie(c)}saveSessionId(s){d.Session.setCookie(c,s,y)}setActiveSession(s){return this.activeSessionId=s,this.host.requestUpdate(),s?this.sessions.find(e=>e.externalId===s)??null:null}async deleteSession(s){if(!this.api)return!1;let e=this.sessions.find(t=>t.externalId===s);if(!e)return!1;try{await this.api.deleteSession(e.id),this.sessions=this.sessions.filter(o=>o.externalId!==s);let t=this.activeSessionId===s;return t&&(this.activeSessionId=null),this.host.requestUpdate(),t}catch(t){return console.error("[SessionsController] Failed to delete session:",t),!1}}getActiveSession(){return this.activeSessionId?this.sessions.find(s=>s.externalId===this.activeSessionId)??null:null}};0&&(module.exports={SessionsController});
@@ -0,0 +1,45 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ import { Session } from './sessions.types.cjs';
4
+
5
+ /**
6
+ * Configuration for the SessionsController.
7
+ *
8
+ * @property {string} apiUrl - Base URL for the conversations API.
9
+ * @property {string} organizationId - Organization identifier.
10
+ * @property {string} userId - The user's external ID used to query sessions.
11
+ */
12
+ interface SessionsControllerConfig {
13
+ apiUrl: string;
14
+ organizationId: string;
15
+ userId: string;
16
+ }
17
+ /**
18
+ * @summary Reactive controller for sessions list lifecycle (API list, active id, persistence).
19
+ *
20
+ * @description Used by embeds (landing, widget) to load conversation sessions per anonymous user cookie.
21
+ *
22
+ * @param {ReactiveControllerHost} host The host Lit element.
23
+ */
24
+ declare class SessionsController implements ReactiveController {
25
+ private host;
26
+ private api;
27
+ private userId;
28
+ private loadPromise;
29
+ private disconnected;
30
+ sessions: Session[];
31
+ loading: boolean;
32
+ activeSessionId: string | null;
33
+ constructor(host: ReactiveControllerHost);
34
+ hostConnected(): void;
35
+ hostDisconnected(): void;
36
+ configure(config: SessionsControllerConfig): void;
37
+ loadSessions(): Promise<void>;
38
+ getSessionId(): string | null;
39
+ saveSessionId(sessionId: string): void;
40
+ setActiveSession(sessionId: string | null): Session | null;
41
+ deleteSession(sessionId: string): Promise<boolean>;
42
+ getActiveSession(): Session | null;
43
+ }
44
+
45
+ export { SessionsController, type SessionsControllerConfig };
@@ -0,0 +1,45 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ import { Session } from './sessions.types.js';
4
+
5
+ /**
6
+ * Configuration for the SessionsController.
7
+ *
8
+ * @property {string} apiUrl - Base URL for the conversations API.
9
+ * @property {string} organizationId - Organization identifier.
10
+ * @property {string} userId - The user's external ID used to query sessions.
11
+ */
12
+ interface SessionsControllerConfig {
13
+ apiUrl: string;
14
+ organizationId: string;
15
+ userId: string;
16
+ }
17
+ /**
18
+ * @summary Reactive controller for sessions list lifecycle (API list, active id, persistence).
19
+ *
20
+ * @description Used by embeds (landing, widget) to load conversation sessions per anonymous user cookie.
21
+ *
22
+ * @param {ReactiveControllerHost} host The host Lit element.
23
+ */
24
+ declare class SessionsController implements ReactiveController {
25
+ private host;
26
+ private api;
27
+ private userId;
28
+ private loadPromise;
29
+ private disconnected;
30
+ sessions: Session[];
31
+ loading: boolean;
32
+ activeSessionId: string | null;
33
+ constructor(host: ReactiveControllerHost);
34
+ hostConnected(): void;
35
+ hostDisconnected(): void;
36
+ configure(config: SessionsControllerConfig): void;
37
+ loadSessions(): Promise<void>;
38
+ getSessionId(): string | null;
39
+ saveSessionId(sessionId: string): void;
40
+ setActiveSession(sessionId: string | null): Session | null;
41
+ deleteSession(sessionId: string): Promise<boolean>;
42
+ getActiveSession(): Session | null;
43
+ }
44
+
45
+ export { SessionsController, type SessionsControllerConfig };
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ import{Session as a}from"@onlive.ai/tracker/session";var i=class{constructor(s,e){this.baseUrl=s.replace(/\/+$/,""),this.organizationId=e}get headers(){return{"Content-Type":"application/json","X-Onlive-Organization-Id":this.organizationId}}async getSessionsByUser(s){let e=await fetch(`${this.baseUrl}/sessions/user/${s}`,{method:"GET",headers:this.headers});if(!e.ok)throw new Error(`Failed to fetch sessions for user ${s}: ${e.statusText}`);return e.json()}async listSessions(s){let e=new URLSearchParams;if(s)for(let[c,r]of Object.entries(s))r!=null&&e.set(c,String(r));let t=e.toString(),o=`${this.baseUrl}/sessions${t?`?${t}`:""}`,n=await fetch(o,{method:"GET",headers:this.headers});if(!n.ok)throw new Error(`Failed to list sessions: ${n.statusText}`);return(await n.json()).data}async getSession(s){let e=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"GET",headers:this.headers});if(!e.ok)throw new Error(`Failed to fetch session ${s}: ${e.statusText}`);return e.json()}async createSession(s){let e=await fetch(`${this.baseUrl}/sessions`,{method:"POST",headers:this.headers,body:JSON.stringify(s)});if(!e.ok)throw new Error(`Failed to create session: ${e.statusText}`);return e.json()}async updateSession(s,e){let t=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"PATCH",headers:this.headers,body:JSON.stringify(e)});if(!t.ok)throw new Error(`Failed to update session ${s}: ${t.statusText}`);return t.json()}async deleteSession(s){let e=await fetch(`${this.baseUrl}/sessions/${s}`,{method:"DELETE",headers:this.headers});if(!e.ok)throw new Error(`Failed to delete session ${s}: ${e.statusText}`)}};var l="chatbot-session-id",u=3600*24,d=class{constructor(s){this.api=null;this.userId="";this.loadPromise=null;this.disconnected=!1;this.sessions=[];this.loading=!1;this.activeSessionId=null;this.host=s,this.host.addController(this)}hostConnected(){this.disconnected=!1}hostDisconnected(){this.disconnected=!0,this.api=null,this.sessions=[],this.activeSessionId=null,this.loadPromise=null}configure(s){this.userId=s.userId,this.api=new i(s.apiUrl,s.organizationId)}async loadSessions(){if(this.api)return this.loadPromise?this.loadPromise:(this.loading=!0,this.host.requestUpdate(),this.loadPromise=(async()=>{try{let s=await this.api.listSessions({userExternalId:this.userId,orderBy:"updatedAt",orderDir:"desc"});this.disconnected||(this.sessions=s)}catch(s){console.error("[SessionsController] Failed to load sessions:",s),this.disconnected||(this.sessions=[])}finally{this.loadPromise=null,this.disconnected||(this.loading=!1,this.host.requestUpdate())}})(),this.loadPromise)}getSessionId(){return a.getCookie(l)}saveSessionId(s){a.setCookie(l,s,u)}setActiveSession(s){return this.activeSessionId=s,this.host.requestUpdate(),s?this.sessions.find(e=>e.externalId===s)??null:null}async deleteSession(s){if(!this.api)return!1;let e=this.sessions.find(t=>t.externalId===s);if(!e)return!1;try{await this.api.deleteSession(e.id),this.sessions=this.sessions.filter(o=>o.externalId!==s);let t=this.activeSessionId===s;return t&&(this.activeSessionId=null),this.host.requestUpdate(),t}catch(t){return console.error("[SessionsController] Failed to delete session:",t),!1}}getActiveSession(){return this.activeSessionId?this.sessions.find(s=>s.externalId===this.activeSessionId)??null:null}};export{d as SessionsController};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.228 | © 2026 Onlive.ai */
2
+ "use strict";var r=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var g=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of a(t))!d.call(e,s)&&s!==i&&r(e,s,{get:()=>t[s],enumerable:!(n=o(t,s))||n.enumerable});return e};var p=e=>g(r({},"__esModule",{value:!0}),e);var u={};module.exports=p(u);