@ujet/websdk-headless 6.30.0 → 6.32.0

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/dist/index.d.ts CHANGED
@@ -713,6 +713,8 @@ interface ProviderContext {
713
713
  getAuthToken: (forceRefresh?: boolean) => Promise<string>;
714
714
  wsUrl: string;
715
715
  fetchHistory: (query: UjetConversationHistoryQuery) => Promise<UjetConversationHistoryResponse>;
716
+ /** Synchronous risk-flag read; absent means every flag reads on (fail-open, ARC-BE-0505). */
717
+ isRiskFlagEnabled?: ((flagName: string) => boolean) | undefined;
716
718
  }
717
719
 
718
720
  declare abstract class BaseProvider {
@@ -781,8 +783,11 @@ declare class Chat {
781
783
  private destroying;
782
784
  private leaveSent;
783
785
  private beaconAttempted;
786
+ private connecting;
787
+ private connectEnd;
784
788
  constructor(state: ChatResponse, issueChatToken: IssueChatTokenMethod, hooks?: ChatHooks, providerContext?: ProviderContext);
785
789
  private handleConnectionEnded;
790
+ private endConnection;
786
791
  get id(): number;
787
792
  get menuId(): number;
788
793
  get channelId(): string;
@@ -851,6 +856,8 @@ declare class Chat {
851
856
  private rebindCacheOwner;
852
857
  private revokeOriginals;
853
858
  private trackRestored;
859
+ private surfacesSubscriptionEnd;
860
+ private settleEndedConnect;
854
861
  private localOriginalCacheEnabled;
855
862
  /**
856
863
  * Joins the original onto `message.unredacted` for the end user's own