@onlive.ai/common-121 0.2.179 → 0.2.187
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.
- package/audi-dark.theme-aO_Pa27x.d.cts +11 -0
- package/audi-dark.theme-aO_Pa27x.d.ts +11 -0
- package/audi.theme-BP7nboRq.d.cts +11 -0
- package/audi.theme-BP7nboRq.d.ts +11 -0
- package/australia.theme-BkfhMf1z.d.cts +11 -0
- package/australia.theme-BkfhMf1z.d.ts +11 -0
- package/{chunk-CHMR2I4G.js → chunk-V7XHRWMT.js} +1 -1
- package/components/asset/asset-modal-portal.cjs +1 -1
- package/components/asset/asset-modal-portal.d.cts +1 -1
- package/components/asset/asset-modal-portal.d.ts +1 -1
- package/components/asset/asset-modal-portal.js +1 -1
- package/components/asset/asset.cjs +1 -1
- package/components/asset/asset.d.cts +1 -1
- package/components/asset/asset.d.ts +1 -1
- package/components/asset/asset.js +1 -1
- package/components/asset/asset.loaders.cjs +1 -1
- package/components/asset/asset.loaders.d.cts +1 -1
- package/components/asset/asset.loaders.d.ts +1 -1
- package/components/asset/asset.loaders.js +1 -1
- package/components/asset/asset.renderer.cjs +1 -1
- package/components/asset/asset.renderer.d.cts +1 -1
- package/components/asset/asset.renderer.d.ts +1 -1
- package/components/asset/asset.renderer.js +1 -1
- package/components/asset/asset.styles.cjs +1 -1
- package/components/asset/asset.styles.d.cts +1 -1
- package/components/asset/asset.styles.d.ts +1 -1
- package/components/asset/asset.styles.js +1 -1
- package/components/asset/asset.types.cjs +1 -1
- package/components/asset/asset.types.d.cts +1 -1
- package/components/asset/asset.types.d.ts +1 -1
- package/components/asset/asset.types.js +1 -1
- package/components/asset/index.cjs +1 -1
- package/components/asset/index.d.cts +1 -1
- package/components/asset/index.d.ts +1 -1
- package/components/asset/index.js +1 -1
- package/components/player/player.cjs +1 -1
- package/components/player/player.d.cts +1 -1
- package/components/player/player.d.ts +1 -1
- package/components/player/player.js +1 -1
- package/components/player/player.styles.cjs +1 -1
- package/components/player/player.styles.d.cts +1 -1
- package/components/player/player.styles.d.ts +1 -1
- package/components/player/player.styles.js +1 -1
- package/components/side-bar/index.cjs +1 -1
- package/components/side-bar/index.d.cts +1 -1
- package/components/side-bar/index.d.ts +1 -1
- package/components/side-bar/index.js +1 -1
- package/components/side-bar/side-bar.cjs +1 -1
- package/components/side-bar/side-bar.d.cts +1 -1
- package/components/side-bar/side-bar.d.ts +1 -1
- package/components/side-bar/side-bar.js +1 -1
- package/components/side-bar/side-bar.styles.cjs +1 -1
- package/components/side-bar/side-bar.styles.d.cts +1 -1
- package/components/side-bar/side-bar.styles.d.ts +1 -1
- package/components/side-bar/side-bar.styles.js +1 -1
- package/components/side-bar/side-bar.types.cjs +1 -1
- package/components/side-bar/side-bar.types.d.cts +1 -1
- package/components/side-bar/side-bar.types.d.ts +1 -1
- package/components/side-bar/side-bar.types.js +1 -1
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.d.cts +1 -1
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.js +1 -1
- package/components/upload/upload.cjs +1 -1
- package/components/upload/upload.d.cts +1 -1
- package/components/upload/upload.d.ts +1 -1
- package/components/upload/upload.js +1 -1
- package/components/upload/upload.styles.cjs +1 -1
- package/components/upload/upload.styles.d.cts +1 -1
- package/components/upload/upload.styles.d.ts +1 -1
- package/components/upload/upload.styles.js +1 -1
- package/components/upload/upload.types.cjs +1 -1
- package/components/upload/upload.types.d.cts +1 -1
- package/components/upload/upload.types.d.ts +1 -1
- package/components/upload/upload.types.js +1 -1
- package/cuernavaca.theme-Bez8yPGT.d.cts +11 -0
- package/cuernavaca.theme-Bez8yPGT.d.ts +11 -0
- package/cupra-diagonal.theme-CvdXkM9K.d.cts +11 -0
- package/cupra-diagonal.theme-CvdXkM9K.d.ts +11 -0
- package/cupra-events.theme-ln2vh1C0.d.cts +11 -0
- package/cupra-events.theme-ln2vh1C0.d.ts +11 -0
- package/cupra.theme-xa6yZhYo.d.cts +11 -0
- package/cupra.theme-xa6yZhYo.d.ts +11 -0
- package/germany.theme-Dra_5Jz0.d.cts +11 -0
- package/germany.theme-Dra_5Jz0.d.ts +11 -0
- package/hyundai.theme-BATWnkTl.d.cts +11 -0
- package/hyundai.theme-BATWnkTl.d.ts +11 -0
- package/index.cjs +13 -13
- package/index.d.cts +178 -3
- package/index.d.ts +178 -3
- package/index.js +139 -139
- package/italy.theme-YukqsD2q.d.cts +11 -0
- package/italy.theme-YukqsD2q.d.ts +11 -0
- package/magimix.theme-C7eoXRAA.d.cts +11 -0
- package/magimix.theme-C7eoXRAA.d.ts +11 -0
- package/{media-TFGJGBU2.js → media-MWJPMNO2.js} +2 -2
- package/onlive-ai.theme-CMYahnHv.d.cts +11 -0
- package/onlive-ai.theme-CMYahnHv.d.ts +11 -0
- package/onlive.theme-B7tNdG9s.d.cts +11 -0
- package/onlive.theme-B7tNdG9s.d.ts +11 -0
- package/package.json +7 -6
- package/react/components/asset/Asset.cjs +1 -1
- package/react/components/asset/Asset.jsx +1 -1
- package/react/components/side-bar/SideBar.cjs +1 -1
- package/react/components/side-bar/SideBar.jsx +1 -1
- package/react/components/upload/Upload.cjs +1 -1
- package/react/components/upload/Upload.jsx +1 -1
- package/seat-cupra.theme-CzvloqhA.d.cts +11 -0
- package/seat-cupra.theme-CzvloqhA.d.ts +11 -0
- package/services/audio.service.cjs +1 -1
- package/services/audio.service.d.cts +1 -1
- package/services/audio.service.d.ts +1 -1
- package/services/audio.service.js +1 -1
- package/services/conversation/conversation.service.cjs +2 -2
- package/services/conversation/conversation.service.d.cts +15 -2
- package/services/conversation/conversation.service.d.ts +15 -2
- package/services/conversation/conversation.service.js +2 -2
- package/services/conversation/conversation.types.cjs +2 -2
- package/services/conversation/conversation.types.d.cts +112 -2
- package/services/conversation/conversation.types.d.ts +112 -2
- package/services/conversation/conversation.types.js +2 -2
- package/services/conversation/index.cjs +2 -2
- package/services/conversation/index.d.cts +2 -2
- package/services/conversation/index.d.ts +2 -2
- package/services/conversation/index.js +2 -2
- package/services/conversation/mock/actor/agent.cjs +1 -1
- package/services/conversation/mock/actor/agent.d.cts +1 -1
- package/services/conversation/mock/actor/agent.d.ts +1 -1
- package/services/conversation/mock/actor/agent.js +1 -1
- package/services/conversation/mock/actor/index.cjs +1 -1
- package/services/conversation/mock/actor/index.d.cts +1 -1
- package/services/conversation/mock/actor/index.d.ts +1 -1
- package/services/conversation/mock/actor/index.js +1 -1
- package/services/conversation/mock/actor/strategies.cjs +1 -1
- package/services/conversation/mock/actor/strategies.d.cts +1 -1
- package/services/conversation/mock/actor/strategies.d.ts +1 -1
- package/services/conversation/mock/actor/strategies.js +1 -1
- package/services/conversation/mock/errors.cjs +1 -1
- package/services/conversation/mock/errors.d.cts +1 -1
- package/services/conversation/mock/errors.d.ts +1 -1
- package/services/conversation/mock/errors.js +1 -1
- package/services/conversation/mock/events.cjs +1 -1
- package/services/conversation/mock/events.d.cts +1 -1
- package/services/conversation/mock/events.d.ts +1 -1
- package/services/conversation/mock/events.js +1 -1
- package/services/conversation/mock/factory.cjs +2 -2
- package/services/conversation/mock/factory.d.cts +1 -1
- package/services/conversation/mock/factory.d.ts +1 -1
- package/services/conversation/mock/factory.js +2 -2
- package/services/conversation/mock/fixtures.cjs +1 -1
- package/services/conversation/mock/fixtures.d.cts +1 -1
- package/services/conversation/mock/fixtures.d.ts +1 -1
- package/services/conversation/mock/fixtures.js +1 -1
- package/services/conversation/mock/generators.cjs +1 -1
- package/services/conversation/mock/generators.d.cts +1 -1
- package/services/conversation/mock/generators.d.ts +1 -1
- package/services/conversation/mock/generators.js +1 -1
- package/services/conversation/mock/index.cjs +2 -2
- package/services/conversation/mock/index.d.cts +1 -1
- package/services/conversation/mock/index.d.ts +1 -1
- package/services/conversation/mock/index.js +2 -2
- package/services/conversation/mock/livekit/index.cjs +1 -1
- package/services/conversation/mock/livekit/index.d.cts +1 -1
- package/services/conversation/mock/livekit/index.d.ts +1 -1
- package/services/conversation/mock/livekit/index.js +1 -1
- package/services/conversation/mock/livekit/local-participant.cjs +1 -1
- package/services/conversation/mock/livekit/local-participant.d.cts +1 -1
- package/services/conversation/mock/livekit/local-participant.d.ts +1 -1
- package/services/conversation/mock/livekit/local-participant.js +1 -1
- package/services/conversation/mock/livekit/participant.cjs +1 -1
- package/services/conversation/mock/livekit/participant.d.cts +1 -1
- package/services/conversation/mock/livekit/participant.d.ts +1 -1
- package/services/conversation/mock/livekit/participant.js +1 -1
- package/services/conversation/mock/livekit/room.cjs +1 -1
- package/services/conversation/mock/livekit/room.d.cts +1 -1
- package/services/conversation/mock/livekit/room.d.ts +1 -1
- package/services/conversation/mock/livekit/room.js +1 -1
- package/services/conversation/mock/livekit/streams.cjs +1 -1
- package/services/conversation/mock/livekit/streams.d.cts +1 -1
- package/services/conversation/mock/livekit/streams.d.ts +1 -1
- package/services/conversation/mock/livekit/streams.js +1 -1
- package/services/conversation/mock/livekit/tracks.cjs +1 -1
- package/services/conversation/mock/livekit/tracks.d.cts +1 -1
- package/services/conversation/mock/livekit/tracks.d.ts +1 -1
- package/services/conversation/mock/livekit/tracks.js +1 -1
- package/services/conversation/mock/media.cjs +1 -1
- package/services/conversation/mock/media.d.cts +1 -1
- package/services/conversation/mock/media.d.ts +1 -1
- package/services/conversation/mock/media.js +1 -1
- package/services/conversation/mock/service.cjs +2 -2
- package/services/conversation/mock/service.d.cts +7 -2
- package/services/conversation/mock/service.d.ts +7 -2
- package/services/conversation/mock/service.js +2 -2
- package/services/conversation/mock/service.test.cjs +2 -2
- package/services/conversation/mock/service.test.d.cts +1 -1
- package/services/conversation/mock/service.test.d.ts +1 -1
- package/services/conversation/mock/service.test.js +2 -2
- package/services/conversation/mock/state.cjs +1 -1
- package/services/conversation/mock/state.d.cts +1 -1
- package/services/conversation/mock/state.d.ts +1 -1
- package/services/conversation/mock/state.js +1 -1
- package/services/conversation/mock/storybook.cjs +2 -2
- package/services/conversation/mock/storybook.d.cts +1 -1
- package/services/conversation/mock/storybook.d.ts +1 -1
- package/services/conversation/mock/storybook.js +2 -2
- package/services/conversation/mock/types.cjs +1 -1
- package/services/conversation/mock/types.d.cts +1 -1
- package/services/conversation/mock/types.d.ts +1 -1
- package/services/conversation/mock/types.js +1 -1
- package/services/deep-link.service.cjs +2 -0
- package/services/deep-link.service.d.cts +77 -0
- package/services/deep-link.service.d.ts +77 -0
- package/services/deep-link.service.js +2 -0
- package/services/faqs/faqs.service.cjs +1 -1
- package/services/faqs/faqs.service.d.cts +1 -1
- package/services/faqs/faqs.service.d.ts +1 -1
- package/services/faqs/faqs.service.js +1 -1
- package/services/faqs/faqs.types.cjs +1 -1
- package/services/faqs/faqs.types.d.cts +1 -1
- package/services/faqs/faqs.types.d.ts +1 -1
- package/services/faqs/faqs.types.js +1 -1
- package/services/faqs/index.cjs +1 -1
- package/services/faqs/index.d.cts +1 -1
- package/services/faqs/index.d.ts +1 -1
- package/services/faqs/index.js +1 -1
- package/services/file/file.service.cjs +1 -1
- package/services/file/file.service.d.cts +1 -1
- package/services/file/file.service.d.ts +1 -1
- package/services/file/file.service.js +1 -1
- package/services/file/file.types.cjs +1 -1
- package/services/file/file.types.d.cts +1 -1
- package/services/file/file.types.d.ts +1 -1
- package/services/file/file.types.js +1 -1
- package/services/file/index.cjs +1 -1
- package/services/file/index.d.cts +1 -1
- package/services/file/index.d.ts +1 -1
- package/services/file/index.js +1 -1
- package/services/firebase/firebase-api.cjs +1 -1
- package/services/firebase/firebase-api.d.cts +1 -1
- package/services/firebase/firebase-api.d.ts +1 -1
- package/services/firebase/firebase-api.js +1 -1
- package/services/multimedia/config.example.cjs +1 -1
- package/services/multimedia/config.example.d.cts +1 -1
- package/services/multimedia/config.example.d.ts +1 -1
- package/services/multimedia/config.example.js +1 -1
- package/services/multimedia/index.cjs +1 -1
- package/services/multimedia/index.d.cts +1 -1
- package/services/multimedia/index.d.ts +1 -1
- package/services/multimedia/index.js +1 -1
- package/services/multimedia/multimedia.service.cjs +1 -1
- package/services/multimedia/multimedia.service.d.cts +1 -1
- package/services/multimedia/multimedia.service.d.ts +1 -1
- package/services/multimedia/multimedia.service.js +1 -1
- package/services/multimedia/multimedia.types.cjs +1 -1
- package/services/multimedia/multimedia.types.d.cts +1 -1
- package/services/multimedia/multimedia.types.d.ts +1 -1
- package/services/multimedia/multimedia.types.js +1 -1
- package/services/product/index.cjs +1 -1
- package/services/product/index.d.cts +1 -1
- package/services/product/index.d.ts +1 -1
- package/services/product/index.js +1 -1
- package/services/product/product.service.cjs +1 -1
- package/services/product/product.service.d.cts +1 -1
- package/services/product/product.service.d.ts +1 -1
- package/services/product/product.service.js +1 -1
- package/services/product/product.types.cjs +1 -1
- package/services/product/product.types.d.cts +1 -1
- package/services/product/product.types.d.ts +1 -1
- package/services/product/product.types.js +1 -1
- package/services/request.provider.cjs +1 -1
- package/services/request.provider.d.cts +1 -1
- package/services/request.provider.d.ts +1 -1
- package/services/request.provider.js +1 -1
- package/services/session.service.cjs +2 -2
- package/services/session.service.d.cts +1 -1
- package/services/session.service.d.ts +1 -1
- package/services/session.service.js +2 -2
- package/services/upload/index.cjs +1 -1
- package/services/upload/index.d.cts +1 -1
- package/services/upload/index.d.ts +1 -1
- package/services/upload/index.js +1 -1
- package/services/upload/upload.service.cjs +1 -1
- package/services/upload/upload.service.d.cts +1 -1
- package/services/upload/upload.service.d.ts +1 -1
- package/services/upload/upload.service.js +1 -1
- package/themes/custom/audi-dark.theme.cjs +920 -0
- package/themes/custom/audi-dark.theme.d.cts +3 -0
- package/themes/custom/audi-dark.theme.d.ts +3 -0
- package/themes/custom/audi-dark.theme.js +920 -0
- package/themes/custom/audi.theme.cjs +777 -0
- package/themes/custom/audi.theme.d.cts +3 -0
- package/themes/custom/audi.theme.d.ts +3 -0
- package/themes/custom/audi.theme.js +777 -0
- package/themes/custom/australia.theme.cjs +386 -0
- package/themes/custom/australia.theme.d.cts +3 -0
- package/themes/custom/australia.theme.d.ts +3 -0
- package/themes/custom/australia.theme.js +386 -0
- package/themes/custom/cuernavaca.theme.cjs +196 -0
- package/themes/custom/cuernavaca.theme.d.cts +3 -0
- package/themes/custom/cuernavaca.theme.d.ts +3 -0
- package/themes/custom/cuernavaca.theme.js +196 -0
- package/themes/custom/cupra-diagonal.theme.cjs +1031 -0
- package/themes/custom/cupra-diagonal.theme.d.cts +3 -0
- package/themes/custom/cupra-diagonal.theme.d.ts +3 -0
- package/themes/custom/cupra-diagonal.theme.js +1031 -0
- package/themes/custom/cupra-events.theme.cjs +555 -0
- package/themes/custom/cupra-events.theme.d.cts +3 -0
- package/themes/custom/cupra-events.theme.d.ts +3 -0
- package/themes/custom/cupra-events.theme.js +555 -0
- package/themes/custom/cupra.theme.cjs +147 -0
- package/themes/custom/cupra.theme.d.cts +3 -0
- package/themes/custom/cupra.theme.d.ts +3 -0
- package/themes/custom/cupra.theme.js +147 -0
- package/themes/custom/germany.theme.cjs +716 -0
- package/themes/custom/germany.theme.d.cts +3 -0
- package/themes/custom/germany.theme.d.ts +3 -0
- package/themes/custom/germany.theme.js +716 -0
- package/themes/custom/hyundai.theme.cjs +294 -0
- package/themes/custom/hyundai.theme.d.cts +3 -0
- package/themes/custom/hyundai.theme.d.ts +3 -0
- package/themes/custom/hyundai.theme.js +294 -0
- package/themes/custom/italy.theme.cjs +850 -0
- package/themes/custom/italy.theme.d.cts +3 -0
- package/themes/custom/italy.theme.d.ts +3 -0
- package/themes/custom/italy.theme.js +850 -0
- package/themes/custom/magimix.theme.cjs +119 -0
- package/themes/custom/magimix.theme.d.cts +3 -0
- package/themes/custom/magimix.theme.d.ts +3 -0
- package/themes/custom/magimix.theme.js +119 -0
- package/themes/custom/onlive-ai.theme.cjs +74 -0
- package/themes/custom/onlive-ai.theme.d.cts +3 -0
- package/themes/custom/onlive-ai.theme.d.ts +3 -0
- package/themes/custom/onlive-ai.theme.js +74 -0
- package/themes/custom/onlive.theme.cjs +33 -0
- package/themes/custom/onlive.theme.d.cts +3 -0
- package/themes/custom/onlive.theme.d.ts +3 -0
- package/themes/custom/onlive.theme.js +33 -0
- package/themes/custom/seat-cupra.theme.cjs +478 -0
- package/themes/custom/seat-cupra.theme.d.cts +3 -0
- package/themes/custom/seat-cupra.theme.d.ts +3 -0
- package/themes/custom/seat-cupra.theme.js +478 -0
- package/themes/dark.cjs +1 -1
- package/themes/dark.d.cts +1 -1
- package/themes/dark.d.ts +1 -1
- package/themes/dark.js +1 -1
- package/themes/light.cjs +1 -1
- package/themes/light.d.cts +1 -1
- package/themes/light.d.ts +1 -1
- package/themes/light.js +1 -1
- package/types/deep-link.types.cjs +2 -0
- package/types/deep-link.types.d.cts +32 -0
- package/types/deep-link.types.d.ts +32 -0
- package/types/deep-link.types.js +2 -0
- package/types/globals.cjs +1 -1
- package/types/globals.d.cts +1 -1
- package/types/globals.d.ts +1 -1
- package/types/globals.js +1 -1
- package/types/tracking-options.cjs +1 -1
- package/types/tracking-options.d.cts +1 -1
- package/types/tracking-options.d.ts +1 -1
- package/types/tracking-options.js +1 -1
- package/utils/adopt-styles.cjs +1 -1
- package/utils/adopt-styles.d.cts +1 -1
- package/utils/adopt-styles.d.ts +1 -1
- package/utils/adopt-styles.js +1 -1
- package/utils/apply-optional-styles.cjs +6550 -0
- package/utils/apply-optional-styles.d.cts +47 -0
- package/utils/apply-optional-styles.d.ts +47 -0
- package/utils/apply-optional-styles.js +6550 -0
- package/utils/browser-preferences.cjs +1 -1
- package/utils/browser-preferences.d.cts +1 -1
- package/utils/browser-preferences.d.ts +1 -1
- package/utils/browser-preferences.js +1 -1
- package/utils/classify-media.cjs +1 -1
- package/utils/classify-media.d.cts +1 -1
- package/utils/classify-media.d.ts +1 -1
- package/utils/classify-media.js +1 -1
- package/utils/decorators.cjs +1 -1
- package/utils/decorators.d.cts +1 -1
- package/utils/decorators.d.ts +1 -1
- package/utils/decorators.js +1 -1
- package/utils/detected-lang.cjs +1 -1
- package/utils/detected-lang.d.cts +1 -1
- package/utils/detected-lang.d.ts +1 -1
- package/utils/detected-lang.js +1 -1
- package/utils/fullscreen.cjs +1 -1
- package/utils/fullscreen.d.cts +1 -1
- package/utils/fullscreen.d.ts +1 -1
- package/utils/fullscreen.js +1 -1
- package/utils/insert-script.cjs +1 -1
- package/utils/insert-script.d.cts +1 -1
- package/utils/insert-script.d.ts +1 -1
- package/utils/insert-script.js +1 -1
- package/utils/is-map-compatible.cjs +1 -1
- package/utils/is-map-compatible.d.cts +1 -1
- package/utils/is-map-compatible.d.ts +1 -1
- package/utils/is-map-compatible.js +1 -1
- package/utils/markdown.cjs +1 -1
- package/utils/markdown.d.cts +1 -1
- package/utils/markdown.d.ts +1 -1
- package/utils/markdown.js +1 -1
- package/utils/merge.cjs +1 -1
- package/utils/merge.d.cts +1 -1
- package/utils/merge.d.ts +1 -1
- package/utils/merge.js +1 -1
- package/utils/multiband-track-volume.cjs +1 -1
- package/utils/multiband-track-volume.d.cts +1 -1
- package/utils/multiband-track-volume.d.ts +1 -1
- package/utils/multiband-track-volume.js +1 -1
- package/utils/onlive-url-params.cjs +1 -1
- package/utils/onlive-url-params.d.cts +1 -1
- package/utils/onlive-url-params.d.ts +1 -1
- package/utils/onlive-url-params.js +1 -1
- package/utils/pretty-distance.cjs +1 -1
- package/utils/pretty-distance.d.cts +1 -1
- package/utils/pretty-distance.d.ts +1 -1
- package/utils/pretty-distance.js +1 -1
- package/utils/pretty-time.cjs +1 -1
- package/utils/pretty-time.d.cts +1 -1
- package/utils/pretty-time.d.ts +1 -1
- package/utils/pretty-time.js +1 -1
- package/utils/random-string.cjs +1 -1
- package/utils/random-string.d.cts +1 -1
- package/utils/random-string.d.ts +1 -1
- package/utils/random-string.js +1 -1
- package/utils/resource-type.cjs +1 -1
- package/utils/resource-type.d.cts +1 -1
- package/utils/resource-type.d.ts +1 -1
- package/utils/resource-type.js +1 -1
- package/utils/round-number.cjs +1 -1
- package/utils/round-number.d.cts +1 -1
- package/utils/round-number.d.ts +1 -1
- package/utils/round-number.js +1 -1
- package/utils/safe-html.cjs +1 -1
- package/utils/safe-html.d.cts +1 -1
- package/utils/safe-html.d.ts +1 -1
- package/utils/safe-html.js +1 -1
- package/utils/sanitize.cjs +1 -1
- package/utils/sanitize.d.cts +1 -1
- package/utils/sanitize.d.ts +1 -1
- package/utils/sanitize.js +1 -1
- package/utils/spread.cjs +1 -1
- package/utils/spread.d.cts +1 -1
- package/utils/spread.d.ts +1 -1
- package/utils/spread.js +1 -1
- package/utils/watch.cjs +1 -1
- package/utils/watch.d.cts +1 -1
- package/utils/watch.d.ts +1 -1
- package/utils/watch.js +1 -1
package/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @onlive.ai/common-121 v0.2.
|
|
1
|
+
/*! @onlive.ai/common-121 v0.2.187 | © 2026 Onlive.ai */
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, TemplateResult } from 'lit';
|
|
4
4
|
import * as _lit_react from '@lit/react';
|
|
@@ -6,7 +6,7 @@ import { EventName } from '@lit/react';
|
|
|
6
6
|
import { Room as Room$1, Participant } from 'livekit-client';
|
|
7
7
|
import { ReceivedChatMessage } from '@livekit/components-core';
|
|
8
8
|
|
|
9
|
-
/*! @onlive.ai/common-121 v0.2.
|
|
9
|
+
/*! @onlive.ai/common-121 v0.2.187 | © 2026 Onlive.ai */
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
type AssetType = "product" | "multimedia" | "faq" | "file";
|
|
@@ -1464,6 +1464,60 @@ type CreateRoomOptions = {
|
|
|
1464
1464
|
userGroupId?: string;
|
|
1465
1465
|
initialMessage?: string;
|
|
1466
1466
|
};
|
|
1467
|
+
/**
|
|
1468
|
+
* Options for the unified quick-start endpoint that combines user registration
|
|
1469
|
+
* and room creation in a single HTTP call.
|
|
1470
|
+
*
|
|
1471
|
+
* @property {Object} user - User registration data.
|
|
1472
|
+
* @property {string} user.externalId - External user identifier.
|
|
1473
|
+
* @property {string} user.secret - User authentication secret.
|
|
1474
|
+
* @property {string} [user.name] - User display name.
|
|
1475
|
+
* @property {string} [user.email] - User email address.
|
|
1476
|
+
* @property {string} [user.phone] - User phone number.
|
|
1477
|
+
* @property {string} [user.avatar] - URL of the user's avatar.
|
|
1478
|
+
* @property {Record<string, unknown>} [user.metadata] - Additional user metadata.
|
|
1479
|
+
* @property {string | null} [user.userGroupId] - User group identifier.
|
|
1480
|
+
* @property {string} [user.sessionId] - External session identifier.
|
|
1481
|
+
* @property {Object} room - Room creation data.
|
|
1482
|
+
* @property {string} room.language - Preferred language code (e.g., "en", "es").
|
|
1483
|
+
* @property {string} room.timezone - IANA timezone identifier.
|
|
1484
|
+
* @property {Record<string, unknown>} [room.affinity] - Agent affinity preferences.
|
|
1485
|
+
* @property {string} [room.name] - Room display name.
|
|
1486
|
+
* @property {string} [room.platformType] - Platform type (default: "web").
|
|
1487
|
+
* @property {Record<string, unknown>} [room.metadata] - Additional room metadata.
|
|
1488
|
+
* @property {string | null} [room.userGroupId] - Room user group identifier.
|
|
1489
|
+
* @property {boolean} [room.disablePersistence] - Disable message persistence.
|
|
1490
|
+
* @property {ContextualEvent[]} [room.contextualEvents] - Initial contextual events.
|
|
1491
|
+
* @property {{ content: string; assets?: unknown[] }} [room.initialMessage] - Initial message to include in the room.
|
|
1492
|
+
*/
|
|
1493
|
+
type QuickStartOptions = {
|
|
1494
|
+
user: {
|
|
1495
|
+
externalId: string;
|
|
1496
|
+
secret: string;
|
|
1497
|
+
name?: string;
|
|
1498
|
+
email?: string;
|
|
1499
|
+
phone?: string;
|
|
1500
|
+
avatar?: string;
|
|
1501
|
+
metadata?: Record<string, unknown>;
|
|
1502
|
+
userGroupId?: string | null;
|
|
1503
|
+
sessionId?: string;
|
|
1504
|
+
};
|
|
1505
|
+
room: {
|
|
1506
|
+
language: string;
|
|
1507
|
+
timezone: string;
|
|
1508
|
+
affinity?: Record<string, unknown>;
|
|
1509
|
+
name?: string;
|
|
1510
|
+
platformType?: string;
|
|
1511
|
+
metadata?: Record<string, unknown>;
|
|
1512
|
+
userGroupId?: string | null;
|
|
1513
|
+
disablePersistence?: boolean;
|
|
1514
|
+
contextualEvents?: ContextualEvent[];
|
|
1515
|
+
initialMessage?: {
|
|
1516
|
+
content: string;
|
|
1517
|
+
assets?: unknown[];
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1467
1521
|
/**
|
|
1468
1522
|
* Options for fetching messages.
|
|
1469
1523
|
*
|
|
@@ -1776,6 +1830,19 @@ declare class ConversationService {
|
|
|
1776
1830
|
* @returns {{ username?: string; sub?: string; iat?: number; exp?: number } | null} Decoded payload or null if invalid.
|
|
1777
1831
|
*/
|
|
1778
1832
|
private decodeJwtPayload;
|
|
1833
|
+
/**
|
|
1834
|
+
* Performs a unified user registration and room creation in a single HTTP call.
|
|
1835
|
+
*
|
|
1836
|
+
* This method combines the `registerUser` and `createRoom` steps into one request,
|
|
1837
|
+
* reducing latency by eliminating the intermediate round-trip and JWT authentication overhead.
|
|
1838
|
+
* It does not require a prior authentication token — only the organization header.
|
|
1839
|
+
*
|
|
1840
|
+
* @async
|
|
1841
|
+
* @param {QuickStartOptions} options - Combined user and room options.
|
|
1842
|
+
* @returns {Promise<Room>} Connected room instance ready for messaging.
|
|
1843
|
+
* @throws {Error} If the quick-start request fails or returns invalid data.
|
|
1844
|
+
*/
|
|
1845
|
+
quickStart(options: QuickStartOptions): Promise<Room>;
|
|
1779
1846
|
/**
|
|
1780
1847
|
* Creates a new conversation room.
|
|
1781
1848
|
*
|
|
@@ -3436,6 +3503,11 @@ declare class MockConversationService {
|
|
|
3436
3503
|
* Registers an agent for handling conversations.
|
|
3437
3504
|
*/
|
|
3438
3505
|
registerAgent(externalId: string, agentData: AgentData): Promise<string>;
|
|
3506
|
+
/**
|
|
3507
|
+
* Mock implementation of the unified quick-start endpoint.
|
|
3508
|
+
* Combines registerUser and createRoom into a single call.
|
|
3509
|
+
*/
|
|
3510
|
+
quickStart(options: QuickStartOptions): Promise<MockRoom>;
|
|
3439
3511
|
/**
|
|
3440
3512
|
* Creates a new conversation room.
|
|
3441
3513
|
*/
|
|
@@ -4394,4 +4466,107 @@ declare const MockServiceActions: {
|
|
|
4394
4466
|
getRoom(): MockRoom;
|
|
4395
4467
|
};
|
|
4396
4468
|
|
|
4397
|
-
|
|
4469
|
+
/**
|
|
4470
|
+
* Supported deep link actions that can be triggered via URL parameters.
|
|
4471
|
+
*
|
|
4472
|
+
* @property {"openWidget"} openWidget - Opens the widget automatically, as if the user clicked on it.
|
|
4473
|
+
* @property {"initialStep"} initialStep - Starts the flow at a specific step identified by `olStepId`.
|
|
4474
|
+
*/
|
|
4475
|
+
declare const DeepLinkAction: {
|
|
4476
|
+
readonly OpenWidget: "openWidget";
|
|
4477
|
+
readonly InitialStep: "initialStep";
|
|
4478
|
+
};
|
|
4479
|
+
/**
|
|
4480
|
+
* Union type of all valid deep link action values.
|
|
4481
|
+
*/
|
|
4482
|
+
type DeepLinkAction = (typeof DeepLinkAction)[keyof typeof DeepLinkAction];
|
|
4483
|
+
/**
|
|
4484
|
+
* Parsed deep link parameters extracted from URL query strings.
|
|
4485
|
+
* All parameters use the `ol` prefix in the URL (e.g., `?olAction=openWidget`).
|
|
4486
|
+
*
|
|
4487
|
+
* @property {DeepLinkAction} [action] - The deep link action to execute (e.g., "openWidget", "initialStep").
|
|
4488
|
+
* @property {string} [message] - Initial message to send when creating a chat room.
|
|
4489
|
+
* @property {string} [stepId] - Identifier of the flow step to start from, used with `initialStep` action.
|
|
4490
|
+
* @property {string} [installationId] - Installation identifier to filter which widget instance should process the deep link.
|
|
4491
|
+
*/
|
|
4492
|
+
type DeepLinkParams = {
|
|
4493
|
+
action?: DeepLinkAction;
|
|
4494
|
+
message?: string;
|
|
4495
|
+
stepId?: string;
|
|
4496
|
+
installationId?: string;
|
|
4497
|
+
};
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* @summary A service to parse and manage deep link parameters from URL query strings.
|
|
4501
|
+
*
|
|
4502
|
+
* @description
|
|
4503
|
+
* Extracts Onlive-specific deep link parameters (prefixed with `ol`) from the
|
|
4504
|
+
* current page URL. Provides methods to check whether the deep link targets a
|
|
4505
|
+
* specific widget installation, retrieve individual parameters, and clean up
|
|
4506
|
+
* the URL after the deep link has been processed.
|
|
4507
|
+
*
|
|
4508
|
+
* Deep link parameters follow the convention `ol<ParamName>`:
|
|
4509
|
+
* - `olAction` — The action to perform (e.g., `openWidget`, `initialStep`).
|
|
4510
|
+
* - `olMessage` — An initial message for room creation.
|
|
4511
|
+
* - `olStepId` — A flow step identifier to start from.
|
|
4512
|
+
* - `olInstallationId` — Filters which widget installation should process the link.
|
|
4513
|
+
*/
|
|
4514
|
+
declare class DeepLinkService {
|
|
4515
|
+
/**
|
|
4516
|
+
* Parsed deep link parameters extracted from the URL.
|
|
4517
|
+
*
|
|
4518
|
+
* @private
|
|
4519
|
+
* @type {DeepLinkParams}
|
|
4520
|
+
*/
|
|
4521
|
+
private readonly params;
|
|
4522
|
+
/**
|
|
4523
|
+
* Initializes the service by parsing deep link parameters from the current URL.
|
|
4524
|
+
*/
|
|
4525
|
+
constructor();
|
|
4526
|
+
/**
|
|
4527
|
+
* Whether the current URL contains any valid deep link parameters.
|
|
4528
|
+
*
|
|
4529
|
+
* @returns {boolean} `true` if at least one deep link parameter was found.
|
|
4530
|
+
*/
|
|
4531
|
+
get hasParams(): boolean;
|
|
4532
|
+
/**
|
|
4533
|
+
* Retrieves all parsed deep link parameters.
|
|
4534
|
+
*
|
|
4535
|
+
* @returns {DeepLinkParams} A shallow copy of the parsed parameters.
|
|
4536
|
+
*/
|
|
4537
|
+
getParams(): DeepLinkParams;
|
|
4538
|
+
/**
|
|
4539
|
+
* Checks whether the deep link targets a specific widget installation.
|
|
4540
|
+
*
|
|
4541
|
+
* When `olInstallationId` is present in the URL, only the widget whose
|
|
4542
|
+
* `installationId` matches should process the deep link. When the parameter
|
|
4543
|
+
* is absent, the deep link applies to every widget on the page.
|
|
4544
|
+
*
|
|
4545
|
+
* @param {string} [widgetInstallationId] - The installation ID of the widget to check against.
|
|
4546
|
+
* @returns {boolean} `true` if the deep link should be processed by this widget.
|
|
4547
|
+
*/
|
|
4548
|
+
matchesInstallation(widgetInstallationId?: string): boolean;
|
|
4549
|
+
/**
|
|
4550
|
+
* Removes all Onlive deep link parameters from the browser URL without
|
|
4551
|
+
* triggering a page reload. Non-Onlive parameters are preserved.
|
|
4552
|
+
*
|
|
4553
|
+
* This should be called after the deep link has been processed to prevent
|
|
4554
|
+
* re-processing on page navigation or refresh.
|
|
4555
|
+
*/
|
|
4556
|
+
cleanUrl(): void;
|
|
4557
|
+
/**
|
|
4558
|
+
* Parses deep link parameters from the current URL query string.
|
|
4559
|
+
*
|
|
4560
|
+
* Extracts parameters that:
|
|
4561
|
+
* 1. Start with the `ol` prefix.
|
|
4562
|
+
* 2. Have a known suffix defined in `PARAM_MAP`.
|
|
4563
|
+
* 3. For `action`, the value must be one of the valid `DeepLinkAction` values.
|
|
4564
|
+
*
|
|
4565
|
+
* @private
|
|
4566
|
+
* @static
|
|
4567
|
+
* @returns {DeepLinkParams} The parsed parameters (empty object if none found).
|
|
4568
|
+
*/
|
|
4569
|
+
private static parse;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
export { AgentNotFoundError, Asset, type AssetDisplayOptions, type AssetItemDisplayOptions, ConversationServiceFactory, type ConversationServiceFactoryOptions, DeepLinkAction, type DeepLinkParams, DeepLinkService, InvalidOperationError, type LiveKitMode, type MockAgentConfig, type MockAgentMessage, type MockAgentMessageEvent, type MockAgentResponseStrategy, type MockAgentStartedEvent, type MockAgentState, type MockAgentStatus, type MockAgentStoppedEvent, type MockConnectionState$1 as MockConnectionState, MockConversationService, type MockDataReceivedEvent, type MockError, type MockErrorCode, type MockErrorConfig, type MockErrorEvent, type MockEvent, type MockEventBase, MockEventEmitter, type MockEventListener, type MockEventListenerMap, type MockEventType, MockLiveKitError, MockLocalParticipant, type MockMessageReceivedEvent, type MockMessageSentEvent, type MockMessageState, MockParticipant, type MockParticipantAttributesChangedEvent, type MockParticipantJoinedEvent, type MockParticipantKind$1 as MockParticipantKind, type MockParticipantLeftEvent, type MockParticipantRole, type MockParticipantState, MockRoom, type MockRoomConnectionStateChangedEvent, type MockRoomCreatedEvent, type MockRoomEndedEvent, type MockRoomState, type MockScenario, MockServiceActions, type MockServiceConfig, type MockServiceDecoratorConfig, MockState, type MockStateSnapshot, type MockStateSnapshotJSON, MockTextStreamReader, MockTrack, type MockTrackKind, type MockTrackMutedEvent, MockTrackPublication, type MockTrackPublishedEvent, type MockTrackSource, type MockTrackState, type MockTrackUnmutedEvent, type MockTrackUnpublishedEvent, type MockTypingIndicatorEvent, NetworkError, OSBAsset, OSBSideBar, OSBUpload, ParticipantAlreadyJoinedError, ParticipantNotFoundError, RoomEndedError, RoomNotFoundError, SYNTHETIC_MEDIA_PRESETS, SideBar, StorybookScenarios, type SyntheticAudioConfig, type SyntheticVideoConfig, TimeoutError, TrackNotFoundError, UnauthorizedError, Upload, type UploadConfig, createAgentFixture, createAgentWithCannedResponses, createChatScenario, createConversationFixture, createConversationService, createDefaultConfig, createDefaultRoomFixture, createDeterministicConfig, createErrorFromMockError, createLatencyConfig, createMessageFixture, createMockConversationService, createMockServiceFactory, createParticipantBatch, createParticipantFixture, createRoomWithAgent, createRoomWithAgentAndDataTrack, createRoomWithLocalParticipant, createRoomWithMediaTracks, createRoomWithTwoParticipants, createSequentialAgent, createStrictConfig, createSyntheticAudioTrack, createSyntheticMedia, createSyntheticMediaFromPreset, createSyntheticVideoTrack, createVideoCallScenario, decodeMockToken, destroyStorybookMockService, generateMockApiResponseId, generateMockExternalId, generateMockId, generateMockIdBatch, generateMockMessageId, generateMockParticipantIdentity, generateMockRoomName, generateMockToken, generateMockTrackSid, generateMockWsUrl, generateSeededMockId, getStorybookMockService, isMockConversationService, isMockError, isMockLiveKitError, resetIdCounter, resetStorybookMockService, setIdCounter, withMockConversationService };
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @onlive.ai/common-121 v0.2.
|
|
1
|
+
/*! @onlive.ai/common-121 v0.2.187 | © 2026 Onlive.ai */
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, TemplateResult } from 'lit';
|
|
4
4
|
import * as _lit_react from '@lit/react';
|
|
@@ -6,7 +6,7 @@ import { EventName } from '@lit/react';
|
|
|
6
6
|
import { Room as Room$1, Participant } from 'livekit-client';
|
|
7
7
|
import { ReceivedChatMessage } from '@livekit/components-core';
|
|
8
8
|
|
|
9
|
-
/*! @onlive.ai/common-121 v0.2.
|
|
9
|
+
/*! @onlive.ai/common-121 v0.2.187 | © 2026 Onlive.ai */
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
type AssetType = "product" | "multimedia" | "faq" | "file";
|
|
@@ -1464,6 +1464,60 @@ type CreateRoomOptions = {
|
|
|
1464
1464
|
userGroupId?: string;
|
|
1465
1465
|
initialMessage?: string;
|
|
1466
1466
|
};
|
|
1467
|
+
/**
|
|
1468
|
+
* Options for the unified quick-start endpoint that combines user registration
|
|
1469
|
+
* and room creation in a single HTTP call.
|
|
1470
|
+
*
|
|
1471
|
+
* @property {Object} user - User registration data.
|
|
1472
|
+
* @property {string} user.externalId - External user identifier.
|
|
1473
|
+
* @property {string} user.secret - User authentication secret.
|
|
1474
|
+
* @property {string} [user.name] - User display name.
|
|
1475
|
+
* @property {string} [user.email] - User email address.
|
|
1476
|
+
* @property {string} [user.phone] - User phone number.
|
|
1477
|
+
* @property {string} [user.avatar] - URL of the user's avatar.
|
|
1478
|
+
* @property {Record<string, unknown>} [user.metadata] - Additional user metadata.
|
|
1479
|
+
* @property {string | null} [user.userGroupId] - User group identifier.
|
|
1480
|
+
* @property {string} [user.sessionId] - External session identifier.
|
|
1481
|
+
* @property {Object} room - Room creation data.
|
|
1482
|
+
* @property {string} room.language - Preferred language code (e.g., "en", "es").
|
|
1483
|
+
* @property {string} room.timezone - IANA timezone identifier.
|
|
1484
|
+
* @property {Record<string, unknown>} [room.affinity] - Agent affinity preferences.
|
|
1485
|
+
* @property {string} [room.name] - Room display name.
|
|
1486
|
+
* @property {string} [room.platformType] - Platform type (default: "web").
|
|
1487
|
+
* @property {Record<string, unknown>} [room.metadata] - Additional room metadata.
|
|
1488
|
+
* @property {string | null} [room.userGroupId] - Room user group identifier.
|
|
1489
|
+
* @property {boolean} [room.disablePersistence] - Disable message persistence.
|
|
1490
|
+
* @property {ContextualEvent[]} [room.contextualEvents] - Initial contextual events.
|
|
1491
|
+
* @property {{ content: string; assets?: unknown[] }} [room.initialMessage] - Initial message to include in the room.
|
|
1492
|
+
*/
|
|
1493
|
+
type QuickStartOptions = {
|
|
1494
|
+
user: {
|
|
1495
|
+
externalId: string;
|
|
1496
|
+
secret: string;
|
|
1497
|
+
name?: string;
|
|
1498
|
+
email?: string;
|
|
1499
|
+
phone?: string;
|
|
1500
|
+
avatar?: string;
|
|
1501
|
+
metadata?: Record<string, unknown>;
|
|
1502
|
+
userGroupId?: string | null;
|
|
1503
|
+
sessionId?: string;
|
|
1504
|
+
};
|
|
1505
|
+
room: {
|
|
1506
|
+
language: string;
|
|
1507
|
+
timezone: string;
|
|
1508
|
+
affinity?: Record<string, unknown>;
|
|
1509
|
+
name?: string;
|
|
1510
|
+
platformType?: string;
|
|
1511
|
+
metadata?: Record<string, unknown>;
|
|
1512
|
+
userGroupId?: string | null;
|
|
1513
|
+
disablePersistence?: boolean;
|
|
1514
|
+
contextualEvents?: ContextualEvent[];
|
|
1515
|
+
initialMessage?: {
|
|
1516
|
+
content: string;
|
|
1517
|
+
assets?: unknown[];
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1467
1521
|
/**
|
|
1468
1522
|
* Options for fetching messages.
|
|
1469
1523
|
*
|
|
@@ -1776,6 +1830,19 @@ declare class ConversationService {
|
|
|
1776
1830
|
* @returns {{ username?: string; sub?: string; iat?: number; exp?: number } | null} Decoded payload or null if invalid.
|
|
1777
1831
|
*/
|
|
1778
1832
|
private decodeJwtPayload;
|
|
1833
|
+
/**
|
|
1834
|
+
* Performs a unified user registration and room creation in a single HTTP call.
|
|
1835
|
+
*
|
|
1836
|
+
* This method combines the `registerUser` and `createRoom` steps into one request,
|
|
1837
|
+
* reducing latency by eliminating the intermediate round-trip and JWT authentication overhead.
|
|
1838
|
+
* It does not require a prior authentication token — only the organization header.
|
|
1839
|
+
*
|
|
1840
|
+
* @async
|
|
1841
|
+
* @param {QuickStartOptions} options - Combined user and room options.
|
|
1842
|
+
* @returns {Promise<Room>} Connected room instance ready for messaging.
|
|
1843
|
+
* @throws {Error} If the quick-start request fails or returns invalid data.
|
|
1844
|
+
*/
|
|
1845
|
+
quickStart(options: QuickStartOptions): Promise<Room>;
|
|
1779
1846
|
/**
|
|
1780
1847
|
* Creates a new conversation room.
|
|
1781
1848
|
*
|
|
@@ -3436,6 +3503,11 @@ declare class MockConversationService {
|
|
|
3436
3503
|
* Registers an agent for handling conversations.
|
|
3437
3504
|
*/
|
|
3438
3505
|
registerAgent(externalId: string, agentData: AgentData): Promise<string>;
|
|
3506
|
+
/**
|
|
3507
|
+
* Mock implementation of the unified quick-start endpoint.
|
|
3508
|
+
* Combines registerUser and createRoom into a single call.
|
|
3509
|
+
*/
|
|
3510
|
+
quickStart(options: QuickStartOptions): Promise<MockRoom>;
|
|
3439
3511
|
/**
|
|
3440
3512
|
* Creates a new conversation room.
|
|
3441
3513
|
*/
|
|
@@ -4394,4 +4466,107 @@ declare const MockServiceActions: {
|
|
|
4394
4466
|
getRoom(): MockRoom;
|
|
4395
4467
|
};
|
|
4396
4468
|
|
|
4397
|
-
|
|
4469
|
+
/**
|
|
4470
|
+
* Supported deep link actions that can be triggered via URL parameters.
|
|
4471
|
+
*
|
|
4472
|
+
* @property {"openWidget"} openWidget - Opens the widget automatically, as if the user clicked on it.
|
|
4473
|
+
* @property {"initialStep"} initialStep - Starts the flow at a specific step identified by `olStepId`.
|
|
4474
|
+
*/
|
|
4475
|
+
declare const DeepLinkAction: {
|
|
4476
|
+
readonly OpenWidget: "openWidget";
|
|
4477
|
+
readonly InitialStep: "initialStep";
|
|
4478
|
+
};
|
|
4479
|
+
/**
|
|
4480
|
+
* Union type of all valid deep link action values.
|
|
4481
|
+
*/
|
|
4482
|
+
type DeepLinkAction = (typeof DeepLinkAction)[keyof typeof DeepLinkAction];
|
|
4483
|
+
/**
|
|
4484
|
+
* Parsed deep link parameters extracted from URL query strings.
|
|
4485
|
+
* All parameters use the `ol` prefix in the URL (e.g., `?olAction=openWidget`).
|
|
4486
|
+
*
|
|
4487
|
+
* @property {DeepLinkAction} [action] - The deep link action to execute (e.g., "openWidget", "initialStep").
|
|
4488
|
+
* @property {string} [message] - Initial message to send when creating a chat room.
|
|
4489
|
+
* @property {string} [stepId] - Identifier of the flow step to start from, used with `initialStep` action.
|
|
4490
|
+
* @property {string} [installationId] - Installation identifier to filter which widget instance should process the deep link.
|
|
4491
|
+
*/
|
|
4492
|
+
type DeepLinkParams = {
|
|
4493
|
+
action?: DeepLinkAction;
|
|
4494
|
+
message?: string;
|
|
4495
|
+
stepId?: string;
|
|
4496
|
+
installationId?: string;
|
|
4497
|
+
};
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* @summary A service to parse and manage deep link parameters from URL query strings.
|
|
4501
|
+
*
|
|
4502
|
+
* @description
|
|
4503
|
+
* Extracts Onlive-specific deep link parameters (prefixed with `ol`) from the
|
|
4504
|
+
* current page URL. Provides methods to check whether the deep link targets a
|
|
4505
|
+
* specific widget installation, retrieve individual parameters, and clean up
|
|
4506
|
+
* the URL after the deep link has been processed.
|
|
4507
|
+
*
|
|
4508
|
+
* Deep link parameters follow the convention `ol<ParamName>`:
|
|
4509
|
+
* - `olAction` — The action to perform (e.g., `openWidget`, `initialStep`).
|
|
4510
|
+
* - `olMessage` — An initial message for room creation.
|
|
4511
|
+
* - `olStepId` — A flow step identifier to start from.
|
|
4512
|
+
* - `olInstallationId` — Filters which widget installation should process the link.
|
|
4513
|
+
*/
|
|
4514
|
+
declare class DeepLinkService {
|
|
4515
|
+
/**
|
|
4516
|
+
* Parsed deep link parameters extracted from the URL.
|
|
4517
|
+
*
|
|
4518
|
+
* @private
|
|
4519
|
+
* @type {DeepLinkParams}
|
|
4520
|
+
*/
|
|
4521
|
+
private readonly params;
|
|
4522
|
+
/**
|
|
4523
|
+
* Initializes the service by parsing deep link parameters from the current URL.
|
|
4524
|
+
*/
|
|
4525
|
+
constructor();
|
|
4526
|
+
/**
|
|
4527
|
+
* Whether the current URL contains any valid deep link parameters.
|
|
4528
|
+
*
|
|
4529
|
+
* @returns {boolean} `true` if at least one deep link parameter was found.
|
|
4530
|
+
*/
|
|
4531
|
+
get hasParams(): boolean;
|
|
4532
|
+
/**
|
|
4533
|
+
* Retrieves all parsed deep link parameters.
|
|
4534
|
+
*
|
|
4535
|
+
* @returns {DeepLinkParams} A shallow copy of the parsed parameters.
|
|
4536
|
+
*/
|
|
4537
|
+
getParams(): DeepLinkParams;
|
|
4538
|
+
/**
|
|
4539
|
+
* Checks whether the deep link targets a specific widget installation.
|
|
4540
|
+
*
|
|
4541
|
+
* When `olInstallationId` is present in the URL, only the widget whose
|
|
4542
|
+
* `installationId` matches should process the deep link. When the parameter
|
|
4543
|
+
* is absent, the deep link applies to every widget on the page.
|
|
4544
|
+
*
|
|
4545
|
+
* @param {string} [widgetInstallationId] - The installation ID of the widget to check against.
|
|
4546
|
+
* @returns {boolean} `true` if the deep link should be processed by this widget.
|
|
4547
|
+
*/
|
|
4548
|
+
matchesInstallation(widgetInstallationId?: string): boolean;
|
|
4549
|
+
/**
|
|
4550
|
+
* Removes all Onlive deep link parameters from the browser URL without
|
|
4551
|
+
* triggering a page reload. Non-Onlive parameters are preserved.
|
|
4552
|
+
*
|
|
4553
|
+
* This should be called after the deep link has been processed to prevent
|
|
4554
|
+
* re-processing on page navigation or refresh.
|
|
4555
|
+
*/
|
|
4556
|
+
cleanUrl(): void;
|
|
4557
|
+
/**
|
|
4558
|
+
* Parses deep link parameters from the current URL query string.
|
|
4559
|
+
*
|
|
4560
|
+
* Extracts parameters that:
|
|
4561
|
+
* 1. Start with the `ol` prefix.
|
|
4562
|
+
* 2. Have a known suffix defined in `PARAM_MAP`.
|
|
4563
|
+
* 3. For `action`, the value must be one of the valid `DeepLinkAction` values.
|
|
4564
|
+
*
|
|
4565
|
+
* @private
|
|
4566
|
+
* @static
|
|
4567
|
+
* @returns {DeepLinkParams} The parsed parameters (empty object if none found).
|
|
4568
|
+
*/
|
|
4569
|
+
private static parse;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
export { AgentNotFoundError, Asset, type AssetDisplayOptions, type AssetItemDisplayOptions, ConversationServiceFactory, type ConversationServiceFactoryOptions, DeepLinkAction, type DeepLinkParams, DeepLinkService, InvalidOperationError, type LiveKitMode, type MockAgentConfig, type MockAgentMessage, type MockAgentMessageEvent, type MockAgentResponseStrategy, type MockAgentStartedEvent, type MockAgentState, type MockAgentStatus, type MockAgentStoppedEvent, type MockConnectionState$1 as MockConnectionState, MockConversationService, type MockDataReceivedEvent, type MockError, type MockErrorCode, type MockErrorConfig, type MockErrorEvent, type MockEvent, type MockEventBase, MockEventEmitter, type MockEventListener, type MockEventListenerMap, type MockEventType, MockLiveKitError, MockLocalParticipant, type MockMessageReceivedEvent, type MockMessageSentEvent, type MockMessageState, MockParticipant, type MockParticipantAttributesChangedEvent, type MockParticipantJoinedEvent, type MockParticipantKind$1 as MockParticipantKind, type MockParticipantLeftEvent, type MockParticipantRole, type MockParticipantState, MockRoom, type MockRoomConnectionStateChangedEvent, type MockRoomCreatedEvent, type MockRoomEndedEvent, type MockRoomState, type MockScenario, MockServiceActions, type MockServiceConfig, type MockServiceDecoratorConfig, MockState, type MockStateSnapshot, type MockStateSnapshotJSON, MockTextStreamReader, MockTrack, type MockTrackKind, type MockTrackMutedEvent, MockTrackPublication, type MockTrackPublishedEvent, type MockTrackSource, type MockTrackState, type MockTrackUnmutedEvent, type MockTrackUnpublishedEvent, type MockTypingIndicatorEvent, NetworkError, OSBAsset, OSBSideBar, OSBUpload, ParticipantAlreadyJoinedError, ParticipantNotFoundError, RoomEndedError, RoomNotFoundError, SYNTHETIC_MEDIA_PRESETS, SideBar, StorybookScenarios, type SyntheticAudioConfig, type SyntheticVideoConfig, TimeoutError, TrackNotFoundError, UnauthorizedError, Upload, type UploadConfig, createAgentFixture, createAgentWithCannedResponses, createChatScenario, createConversationFixture, createConversationService, createDefaultConfig, createDefaultRoomFixture, createDeterministicConfig, createErrorFromMockError, createLatencyConfig, createMessageFixture, createMockConversationService, createMockServiceFactory, createParticipantBatch, createParticipantFixture, createRoomWithAgent, createRoomWithAgentAndDataTrack, createRoomWithLocalParticipant, createRoomWithMediaTracks, createRoomWithTwoParticipants, createSequentialAgent, createStrictConfig, createSyntheticAudioTrack, createSyntheticMedia, createSyntheticMediaFromPreset, createSyntheticVideoTrack, createVideoCallScenario, decodeMockToken, destroyStorybookMockService, generateMockApiResponseId, generateMockExternalId, generateMockId, generateMockIdBatch, generateMockMessageId, generateMockParticipantIdentity, generateMockRoomName, generateMockToken, generateMockTrackSid, generateMockWsUrl, generateSeededMockId, getStorybookMockService, isMockConversationService, isMockError, isMockLiveKitError, resetIdCounter, resetStorybookMockService, setIdCounter, withMockConversationService };
|