@gengage/assistant-fe 0.6.13 → 0.6.16

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 (40) hide show
  1. package/dist/agentic/adaptor/fetch-bridge.d.ts +20 -1
  2. package/dist/agentic/index.js +517 -367
  3. package/dist/agentic/worker.js +18 -18
  4. package/dist/agentic.iife.js +5 -5
  5. package/dist/{api-paths-ChCMvKkx.js → api-paths-C7Y4wTde.js} +1 -1
  6. package/dist/chat/components/InlineLauncher.d.ts +137 -0
  7. package/dist/chat/index.d.ts +2 -0
  8. package/dist/chat/runtime.d.ts +3 -0
  9. package/dist/chat/types.d.ts +6 -0
  10. package/dist/chat-runtime.js +9 -9
  11. package/dist/chat.iife.js +158 -36
  12. package/dist/chat.js +13 -12
  13. package/dist/common/overlay.d.ts +2 -0
  14. package/dist/{common-BD_DSsqY.js → common-BR9JIIjb.js} +2 -2
  15. package/dist/common.js +7 -7
  16. package/dist/{connection-warning-CPeEsQ35.js → connection-warning-DyeP1AB2.js} +1 -1
  17. package/dist/{fastIntent-C1WeEqW8.js → fastIntent-C8jh7D1D.js} +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +16 -16
  20. package/dist/{native-webview-DbKq9lN8.js → native-webview-U9HtGabb.js} +1 -1
  21. package/dist/native.iife.js +137 -15
  22. package/dist/native.js +1 -1
  23. package/dist/{overlay-CyoB1K0w.js → overlay-ClYgI2Kl.js} +5 -5
  24. package/dist/overlay.js +1 -1
  25. package/dist/qna-runtime.js +1 -1
  26. package/dist/qna.iife.js +1 -1
  27. package/dist/qna.js +1 -1
  28. package/dist/{request-text-su3Vlhrs.js → request-text-DThlE-Xd.js} +106 -106
  29. package/dist/{runtime-DclobJaN.js → runtime-Bt2VV3L3.js} +1948 -1632
  30. package/dist/{runtime-Dbwwd8yF.js → runtime-LY1J9JFl.js} +3 -3
  31. package/dist/{runtime-Duvrignh.js → runtime-rjNaPWIi.js} +3 -3
  32. package/dist/{simbut-5C5EAfoM.js → simbut-DV4oPMpH.js} +1 -1
  33. package/dist/simbut.iife.js +1 -1
  34. package/dist/simbut.js +1 -1
  35. package/dist/{simrel-DCcSBFez.js → simrel-DaAhtabq.js} +1 -1
  36. package/dist/simrel-runtime.js +1 -1
  37. package/dist/simrel.iife.js +1 -1
  38. package/dist/simrel.js +2 -2
  39. package/dist/{widget-base-BolzGV28.js → widget-base-DRaUfd-H.js} +1 -1
  40. package/package.json +1 -1
@@ -3,10 +3,29 @@ interface InstallFetchBridgeArgs {
3
3
  accountId: string;
4
4
  streamTransport: InjectorAdapter;
5
5
  endpoints?: Partial<Record<InjectorBridgeEndpoint, InjectorEndpointHandler>>;
6
+ endpointCache?: EndpointCacheOptions;
6
7
  }
7
8
  interface InstallFetchBridgeResult {
8
9
  middlewareUrl: string;
9
10
  stop: () => void;
10
11
  }
11
- export declare function installFetchTransportBridge({ accountId, streamTransport, endpoints, }: InstallFetchBridgeArgs): InstallFetchBridgeResult;
12
+ export interface EndpointCachePolicy {
13
+ partition: string;
14
+ key: string;
15
+ ttlMs?: number;
16
+ }
17
+ export type EndpointCachePolicyResolver = (request: unknown, context: {
18
+ accountId: string;
19
+ endpoint: InjectorBridgeEndpoint;
20
+ }) => EndpointCachePolicy | null | undefined;
21
+ export interface EndpointCacheOptions {
22
+ beUrl: string;
23
+ devJwtSecret?: string | undefined;
24
+ tokenBrokerUrl?: string | undefined;
25
+ tokenBrokerAudience?: string | undefined;
26
+ parentUrl?: string | undefined;
27
+ ttlMs?: number | undefined;
28
+ policies: Partial<Record<InjectorBridgeEndpoint, EndpointCachePolicyResolver>>;
29
+ }
30
+ export declare function installFetchTransportBridge({ accountId, streamTransport, endpoints, endpointCache, }: InstallFetchBridgeArgs): InstallFetchBridgeResult;
12
31
  export {};