@ujet/websdk-headless 3.5.1 → 3.6.1

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/README.md CHANGED
@@ -76,6 +76,7 @@ interface CompanyResponse {
76
76
  email_transcripts: boolean;
77
77
  message_preview: boolean;
78
78
  email_enhancement: boolean;
79
+ cobrowse_domain?: string;
79
80
  }
80
81
  ```
81
82
 
@@ -743,7 +744,7 @@ client.on("cobrowse.ended", session => {
743
744
 
744
745
  ## Cobrowse
745
746
 
746
- Headless WebSDK has built-in integration with co-browse. It has a simple UI without
747
+ Headless WebSDK has built-in integration with Screen Share. It has a simple UI without
747
748
  CSS, developers SHOULD add style for it.
748
749
 
749
750
  The default template is:
@@ -831,9 +832,9 @@ for these variables are:
831
832
 
832
833
  ```
833
834
  {
834
- "confirmSessionTitle": "Co-browse Session Request",
835
+ "confirmSessionTitle": "Screen Share Session Request",
835
836
  "confirmSessionContent": "Do you want to share your current screen with the agent?",
836
- "endSessionText": "End Co-browse Session",
837
+ "endSessionText": "End Screen Share Session",
837
838
  "confirmRemoteControlTitle": "Remote Access Request",
838
839
  "confirmRemoteControlContent": "The agent would like to have access to your currently shared screen to further assist you. Do you want to allow this?",
839
840
  "confirmFullDeviceTitle": "Screen Share Request",
package/dist/index.d.ts CHANGED
@@ -111,6 +111,7 @@ interface CompanyResponse {
111
111
  display_history: boolean;
112
112
  use_recording: boolean;
113
113
  use_web: boolean;
114
+ cobrowse_domain?: string;
114
115
  }
115
116
  interface MenuChannel {
116
117
  enabled: boolean;
@@ -278,7 +279,7 @@ interface ChatHistoryResponse {
278
279
  };
279
280
  }
280
281
  interface UserProfile {
281
- identity?: string;
282
+ identifier?: string;
282
283
  name?: string;
283
284
  email?: string;
284
285
  }
@@ -296,6 +297,8 @@ interface TriggerItem {
296
297
  lang?: string;
297
298
  keywords_included?: string[];
298
299
  keywords_excluded?: string[];
300
+ keywords_included_or?: string[][];
301
+ keywords_excluded_or?: string[][];
299
302
  }
300
303
 
301
304
  type RequestMethod = (url: string, options: RequestInit | Record<string, any>) => Promise<RequestReturn>;
@@ -474,7 +477,7 @@ declare class Cobrowse {
474
477
  private get lang();
475
478
  private get messages();
476
479
  private get template();
477
- static create(options: CobrowseOption): Promise<Cobrowse>;
480
+ static create(options: CobrowseOption, script: string): Promise<Cobrowse>;
478
481
  setCustomData(data: any): void;
479
482
  on(eventName: string, eventHandler: EventHandler): void;
480
483
  start(): Promise<void>;
@@ -543,6 +546,7 @@ declare class Client {
543
546
  getMessageAttachment(message: MessageResponse): Promise<File>;
544
547
  private initializeCobrowse;
545
548
  private registerOngoingChat;
549
+ private getCobrowseScript;
546
550
  }
547
551
 
548
552
  declare abstract class BaseProvider {