@zoom/cobrowsesdk 2.9.2 → 2.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoom/cobrowsesdk",
3
- "version": "2.9.2",
3
+ "version": "2.11.0",
4
4
  "description": "ZOOM Cobrowse sdk",
5
5
  "files": [
6
6
  "esm",
@@ -696,11 +696,11 @@ declare enum SessionStatus {
696
696
  }
697
697
  declare function customer_focus_lost(payload: {
698
698
  /**
699
- * customer is lost
699
+ * Whether the customer is lost.
700
700
  */
701
701
  isLost: boolean;
702
702
  /**
703
- * sessionId
703
+ * Session ID.
704
704
  */
705
705
  sessionId: string;
706
706
  /**
@@ -711,24 +711,24 @@ declare function customer_focus_lost(payload: {
711
711
  name: string;
712
712
  };
713
713
  /**
714
- * SDK version
714
+ * SDK version.
715
715
  */
716
716
  version: string;
717
717
  }): void;
718
718
  declare function customer_transferred(payload: {
719
719
  /**
720
- * sessionId
720
+ * Session ID.
721
721
  */
722
722
  sessionId: string;
723
723
  /**
724
- * User info
724
+ * User info.
725
725
  */
726
726
  user: {
727
727
  id: string;
728
728
  name: string;
729
729
  };
730
730
  /**
731
- * SDK version
731
+ * SDK version.
732
732
  */
733
733
  version: string;
734
734
  }): void;
@@ -812,13 +812,13 @@ declare function session_ended(payload: {
812
812
  }): void;
813
813
  declare function session_error(payload: {
814
814
  /**
815
- * error code
815
+ * Error code.
816
816
  */
817
817
  code: SessionErrorCode;
818
818
  /**
819
- * error message
819
+ * Error message.(Auxiliary prompt, not used to determine errors)
820
820
  */
821
- errorMsg: string;
821
+ errorMsg: SessionErrorMessage;
822
822
  /**
823
823
  * SDK version
824
824
  */
@@ -830,11 +830,11 @@ declare function session_joined(payload: {
830
830
  */
831
831
  isReconnect: boolean;
832
832
  /**
833
- * sessionId
833
+ * Session ID.
834
834
  */
835
835
  sessionId: string;
836
836
  /**
837
- * SDK version
837
+ * SDK version.
838
838
  */
839
839
  version: string;
840
840
  }): void;
@@ -978,9 +978,18 @@ export type CreateAgentViewerEndpointCallback = ({ success, error, agentViewerUr
978
978
  * @description CreateAgentViewerEndpointCallback fetch error.
979
979
  */
980
980
  export type CreateAgentViewerEndpointError = {
981
- msg: string;
982
- code: number;
983
- statusCode: number;
981
+ /**
982
+ * Error code.
983
+ */
984
+ code: SessionErrorCode;
985
+ /**
986
+ * Error message.(Auxiliary prompt, not used to determine errors)
987
+ */
988
+ errorMsg: SessionErrorMessage;
989
+ /**
990
+ * SDK version.
991
+ */
992
+ version: string;
984
993
  };
985
994
  /**
986
995
  * @description ZoomAgentCobrowseSDK request agent endpoint options.
@@ -1078,6 +1087,47 @@ export type SdkInfo = {
1078
1087
  */
1079
1088
  version: string;
1080
1089
  };
1090
+ /**
1091
+ * @description Session error messages.(Auxiliary prompt, not used to determine errors)
1092
+ */
1093
+ export type SessionErrorMessage = {
1094
+ /**
1095
+ * @description 1006 Join session failed due to pincode not found.
1096
+ */
1097
+ SESSION_JOIN_PIN_NOT_FOUND: "Pincode is not found.";
1098
+ /**
1099
+ * @description 1008 Join session failed due to invalid pincode.
1100
+ */
1101
+ SESSION_PIN_INVALID_FORMAT: "Pincode exceeds the maximum length" | "Pincode contains invalid characters.";
1102
+ /**
1103
+ * @description 1009 Join session failed due to empty pincode.
1104
+ */
1105
+ SESSION_START_PIN_REQUIRED: "Pincode is required.";
1106
+ /**
1107
+ * @description 1011 Join session failed.
1108
+ */
1109
+ SESSION_JOIN_FAILED: "Session join failed due to an internal error." | "SDK version is invalid." | "Session does not exist or has ended." | "The website link is invalid." | "Failed to make a connection after multiple attempts." | "Failed to reconnect after fail over with multiple attempts." | "Failed to reconnect after fail over with multiple attempts.";
1110
+ /**
1111
+ * @description 1013 Join session failed due to count limit.
1112
+ */
1113
+ SESSION_AGENT_COUNT_LIMIT: "Maximum number of agents in a session reached.";
1114
+ /**
1115
+ * @description 1015 Join session failed due to duplicate user.
1116
+ */
1117
+ SESSION_DUPLICATE_USER: "The agent is already in the session.";
1118
+ /**
1119
+ * @description 1016 Start or join session failed due to network error.
1120
+ */
1121
+ NETWORK_ERROR: "Network request to backend failed after multiple attempts.";
1122
+ /**
1123
+ * @description 2001 Join session failed due to invalid token.
1124
+ */
1125
+ TOKEN_INVALID: "JWT token is invalid." | "JWT token has no permissions." | "JWT token has expired." | "JWT token access error." | "Internal token error.";
1126
+ /**
1127
+ * @description 9999 Unknown error.
1128
+ */
1129
+ UNDEFINED: "Service error occurred." | "API request rate limit, try again later." | "Session error occurred." | "Session error occurred, try again later.";
1130
+ };
1081
1131
  /**
1082
1132
  * @description Current session information.
1083
1133
  */
@@ -1107,6 +1157,24 @@ export type Settings = {
1107
1157
  customizeOverrides?: {
1108
1158
  [key in AgentCustomizeOverridesFeatureKey]?: CustomizeOverride;
1109
1159
  };
1160
+ /**
1161
+ * @description Annotation config, which only takes effect agent-side.
1162
+ */
1163
+ annotation?: {
1164
+ /**
1165
+ * @description Whether to enable annotation on the agent side, the default is true.
1166
+ */
1167
+ enableAgentAnnotation?: boolean;
1168
+ /**
1169
+ * @description Default selected toolbar button on the agent side. The default is 'Vanishing Pen'.
1170
+ * Supported values: 'Mouse', 'Pen', 'Rectangle', 'Eraser', 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse'.
1171
+ * 'Mouse', 'Pen', 'Rectangle', 'Eraser' are in 'Pen' toolbar submenu.
1172
+ * 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse' are in 'Vanishing Pen' toolbar submenu.
1173
+ * 'None', '' or an illegal value means no default selected toolbar button.
1174
+ * This value is also affected by the 'customizeOverrides' config in the toolbar.
1175
+ */
1176
+ defaultSelectedToolbarButton?: string;
1177
+ };
1110
1178
  /**
1111
1179
  * @description In npm mode, a root dom selector or HTMLElement is required to insert an agent portal iframe into your page.
1112
1180
  */
package/types/agent.d.ts CHANGED
@@ -696,11 +696,11 @@ declare enum SessionStatus {
696
696
  }
697
697
  declare function customer_focus_lost(payload: {
698
698
  /**
699
- * customer is lost
699
+ * Whether the customer is lost.
700
700
  */
701
701
  isLost: boolean;
702
702
  /**
703
- * sessionId
703
+ * Session ID.
704
704
  */
705
705
  sessionId: string;
706
706
  /**
@@ -711,24 +711,24 @@ declare function customer_focus_lost(payload: {
711
711
  name: string;
712
712
  };
713
713
  /**
714
- * SDK version
714
+ * SDK version.
715
715
  */
716
716
  version: string;
717
717
  }): void;
718
718
  declare function customer_transferred(payload: {
719
719
  /**
720
- * sessionId
720
+ * Session ID.
721
721
  */
722
722
  sessionId: string;
723
723
  /**
724
- * User info
724
+ * User info.
725
725
  */
726
726
  user: {
727
727
  id: string;
728
728
  name: string;
729
729
  };
730
730
  /**
731
- * SDK version
731
+ * SDK version.
732
732
  */
733
733
  version: string;
734
734
  }): void;
@@ -812,13 +812,13 @@ declare function session_ended(payload: {
812
812
  }): void;
813
813
  declare function session_error(payload: {
814
814
  /**
815
- * error code
815
+ * Error code.
816
816
  */
817
817
  code: SessionErrorCode;
818
818
  /**
819
- * error message
819
+ * Error message.(Auxiliary prompt, not used to determine errors)
820
820
  */
821
- errorMsg: string;
821
+ errorMsg: SessionErrorMessage;
822
822
  /**
823
823
  * SDK version
824
824
  */
@@ -830,11 +830,11 @@ declare function session_joined(payload: {
830
830
  */
831
831
  isReconnect: boolean;
832
832
  /**
833
- * sessionId
833
+ * Session ID.
834
834
  */
835
835
  sessionId: string;
836
836
  /**
837
- * SDK version
837
+ * SDK version.
838
838
  */
839
839
  version: string;
840
840
  }): void;
@@ -972,9 +972,18 @@ export type CreateAgentViewerEndpointCallback = ({ success, error, agentViewerUr
972
972
  * @description CreateAgentViewerEndpointCallback fetch error.
973
973
  */
974
974
  export type CreateAgentViewerEndpointError = {
975
- msg: string;
976
- code: number;
977
- statusCode: number;
975
+ /**
976
+ * Error code.
977
+ */
978
+ code: SessionErrorCode;
979
+ /**
980
+ * Error message.(Auxiliary prompt, not used to determine errors)
981
+ */
982
+ errorMsg: SessionErrorMessage;
983
+ /**
984
+ * SDK version.
985
+ */
986
+ version: string;
978
987
  };
979
988
  /**
980
989
  * @description ZoomAgentCobrowseSDK request agent endpoint options.
@@ -1072,6 +1081,47 @@ export type SdkInfo = {
1072
1081
  */
1073
1082
  version: string;
1074
1083
  };
1084
+ /**
1085
+ * @description Session error messages.(Auxiliary prompt, not used to determine errors)
1086
+ */
1087
+ export type SessionErrorMessage = {
1088
+ /**
1089
+ * @description 1006 Join session failed due to pincode not found.
1090
+ */
1091
+ SESSION_JOIN_PIN_NOT_FOUND: "Pincode is not found.";
1092
+ /**
1093
+ * @description 1008 Join session failed due to invalid pincode.
1094
+ */
1095
+ SESSION_PIN_INVALID_FORMAT: "Pincode exceeds the maximum length" | "Pincode contains invalid characters.";
1096
+ /**
1097
+ * @description 1009 Join session failed due to empty pincode.
1098
+ */
1099
+ SESSION_START_PIN_REQUIRED: "Pincode is required.";
1100
+ /**
1101
+ * @description 1011 Join session failed.
1102
+ */
1103
+ SESSION_JOIN_FAILED: "Session join failed due to an internal error." | "SDK version is invalid." | "Session does not exist or has ended." | "The website link is invalid." | "Failed to make a connection after multiple attempts." | "Failed to reconnect after fail over with multiple attempts." | "Failed to reconnect after fail over with multiple attempts.";
1104
+ /**
1105
+ * @description 1013 Join session failed due to count limit.
1106
+ */
1107
+ SESSION_AGENT_COUNT_LIMIT: "Maximum number of agents in a session reached.";
1108
+ /**
1109
+ * @description 1015 Join session failed due to duplicate user.
1110
+ */
1111
+ SESSION_DUPLICATE_USER: "The agent is already in the session.";
1112
+ /**
1113
+ * @description 1016 Start or join session failed due to network error.
1114
+ */
1115
+ NETWORK_ERROR: "Network request to backend failed after multiple attempts.";
1116
+ /**
1117
+ * @description 2001 Join session failed due to invalid token.
1118
+ */
1119
+ TOKEN_INVALID: "JWT token is invalid." | "JWT token has no permissions." | "JWT token has expired." | "JWT token access error." | "Internal token error.";
1120
+ /**
1121
+ * @description 9999 Unknown error.
1122
+ */
1123
+ UNDEFINED: "Service error occurred." | "API request rate limit, try again later." | "Session error occurred." | "Session error occurred, try again later.";
1124
+ };
1075
1125
  /**
1076
1126
  * @description Current session information.
1077
1127
  */
@@ -1101,6 +1151,24 @@ export type Settings = {
1101
1151
  customizeOverrides?: {
1102
1152
  [key in AgentCustomizeOverridesFeatureKey]?: CustomizeOverride;
1103
1153
  };
1154
+ /**
1155
+ * @description Annotation config, which only takes effect agent-side.
1156
+ */
1157
+ annotation?: {
1158
+ /**
1159
+ * @description Whether to enable annotation on the agent side, the default is true.
1160
+ */
1161
+ enableAgentAnnotation?: boolean;
1162
+ /**
1163
+ * @description Default selected toolbar button on the agent side. The default is 'Vanishing Pen'.
1164
+ * Supported values: 'Mouse', 'Pen', 'Rectangle', 'Eraser', 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse'.
1165
+ * 'Mouse', 'Pen', 'Rectangle', 'Eraser' are in 'Pen' toolbar submenu.
1166
+ * 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse' are in 'Vanishing Pen' toolbar submenu.
1167
+ * 'None', '' or an illegal value means no default selected toolbar button.
1168
+ * This value is also affected by the 'customizeOverrides' config in the toolbar.
1169
+ */
1170
+ defaultSelectedToolbarButton?: string;
1171
+ };
1104
1172
  /**
1105
1173
  * @description In npm mode, a root dom selector or HTMLElement is required to insert an agent portal iframe into your page.
1106
1174
  */
@@ -761,9 +761,9 @@ declare function session_error(payload: {
761
761
  */
762
762
  code: SessionErrorCode;
763
763
  /**
764
- * Error message.
764
+ * Error message.(Auxiliary prompt, not used to determine errors)
765
765
  */
766
- errorMsg: string;
766
+ errorMsg: SessionErrorMessage;
767
767
  /**
768
768
  * SDK version.
769
769
  */
@@ -778,6 +778,10 @@ declare function session_reconnecting(payload: {
778
778
  * SDK version.
779
779
  */
780
780
  version: string;
781
+ /**
782
+ * Reconnecting type.
783
+ */
784
+ reconnectingType: "reconnecting" | "persisting";
781
785
  }): void;
782
786
  declare function session_started(payload: {
783
787
  /**
@@ -984,6 +988,55 @@ export type SdkInfo = {
984
988
  */
985
989
  version: string;
986
990
  };
991
+ /**
992
+ * @description Session error messages.(Auxiliary prompt, not used to determine errors)
993
+ */
994
+ export type SessionErrorMessage = {
995
+ /**
996
+ * @description 1001 Join session failed due to an invalid pincode.
997
+ */
998
+ SESSION_START_FAILED: "The website link is invalid." | "Free trial account has no available credits.";
999
+ /**
1000
+ * @description 1002 Session is connecting.
1001
+ */
1002
+ SESSION_CONNECTING_IN_PROGRESS: "A connection is already in progress." | "A transfer session is still recovering.";
1003
+ /**
1004
+ * @description 1004 Join session failed due to count limit.
1005
+ */
1006
+ SESSION_COUNT_LIMIT: "A session is already active.";
1007
+ /**
1008
+ * @description 1008 Join session failed due to an invalid pincode.
1009
+ */
1010
+ SESSION_PIN_INVALID_FORMAT: "Pincode exceeds the maximum length" | "Pincode contains invalid characters.";
1011
+ /**
1012
+ * @description 1010 Start session failed due to pincode already in use.
1013
+ */
1014
+ SESSION_START_PIN_CONFLICT: "Pincode has already been used.";
1015
+ /**
1016
+ * @description 1011 Join session failed.
1017
+ */
1018
+ SESSION_JOIN_FAILED: "Session join failed due to an internal error." | "SDK version is invalid." | "Session does not exist or has ended." | "The website link is invalid." | "Failed to make a connection after multiple attempts." | "Failed to reconnect after fail over with multiple attempts." | "Failed to reconnect after fail over with multiple attempts.";
1019
+ /**
1020
+ * @description 1012 Join session failed due to count limit.
1021
+ */
1022
+ SESSION_CUSTOMER_COUNT_LIMIT: "Maximum number of customers in a session reached.";
1023
+ /**
1024
+ * @description 1016 Start or join session failed due to network error.
1025
+ */
1026
+ NETWORK_ERROR: "Network request to backend failed after multiple attempts.";
1027
+ /**
1028
+ * @description 1017 Session is being canceled.
1029
+ */
1030
+ SESSION_CANCELING_IN_PROGRESS: "Operation failed, the session is being canceled.";
1031
+ /**
1032
+ * @description 2001 Join session failed due to invalid token.
1033
+ */
1034
+ TOKEN_INVALID: "JWT token is invalid." | "JWT token has no permissions." | "JWT token has expired." | "JWT token access error." | "Internal token error.";
1035
+ /**
1036
+ * @description 9999 Unknown error.
1037
+ */
1038
+ UNDEFINED: "Service error occurred." | "API request rate limit, try again later." | "Session error occurred." | "Session error occurred, try again later.";
1039
+ };
987
1040
  /**
988
1041
  * @description Current session information.
989
1042
  */
@@ -1008,31 +1061,36 @@ export type SessionInfo = {
1008
1061
  */
1009
1062
  export type Settings = {
1010
1063
  /**
1011
- * @description Whether to enable annotation on the customer side, the default is false.
1012
- */
1013
- allowCustomerAnnotation?: boolean;
1014
- /**
1015
- * @description Whether to enable agent on the customer side, the default is true.
1064
+ * @description Annotation config.
1016
1065
  */
1017
- allowAgentAnnotation?: boolean;
1066
+ annotation?: {
1067
+ /**
1068
+ * @description Whether to enable annotation on the customer side, the default is false.
1069
+ */
1070
+ enableCustomerAnnotation?: boolean;
1071
+ /**
1072
+ * @description Whether to enable annotation follow page scroll, the default is false.
1073
+ */
1074
+ enableAnnotationFollowScroll?: boolean;
1075
+ };
1018
1076
  /**
1019
- * @description PII mask config.
1077
+ * @description PII mask config, which only takes effect when the 'Mask Data in Cobrowse' switch in the admin settings is opened.
1020
1078
  */
1021
1079
  piiMask?: {
1022
1080
  //enable?: boolean;
1023
1081
  /**
1024
1082
  * @description PII mask config.
1025
- * 'custom_input': Customize the input to be masked based on 'mask_css_selectors' and 'mask_html_attribute'
1026
- * 'all_input': Mask all inputs, ignore 'mask_css_selectors' and 'mask_html_attribute'
1027
- * the default is 'custom_input'
1083
+ * 'custom_input': Customize the input to be masked based on 'mask_css_selectors' and 'mask_html_attribute'.
1084
+ * 'all_input': Mask all inputs, ignore 'mask_css_selectors' and 'mask_html_attribute'.
1085
+ * The default is the configuration of admin settings.
1028
1086
  */
1029
1087
  maskType?: "custom_input" | "all_input";
1030
1088
  /**
1031
- * @description Mask part of the input by customizing the CSS selector, which only takes effect when the maskType is 'custom_input', the default is empty string.
1089
+ * @description Mask part of the input by customizing the CSS selector, which only takes effect when the maskType is 'custom_input'. The default is the configuration of admin settings.
1032
1090
  */
1033
1091
  maskCssSelectors?: string;
1034
1092
  /**
1035
- * @description Mask part of the input by customizing the HTML attributes, which only takes effect when the maskType is 'custom_input', the default is empty string.
1093
+ * @description Mask part of the input by customizing the HTML attributes, which only takes effect when the maskType is 'custom_input', the default is the configuration of admin settings.
1036
1094
  */
1037
1095
  maskHTMLAttributes?: string;
1038
1096
  };
@@ -1054,7 +1112,7 @@ export type Settings = {
1054
1112
  [key in CustomerCustomizeOverridesFeatureKey]?: CustomizeOverride;
1055
1113
  };
1056
1114
  /**
1057
- * @description Remote assist config.
1115
+ * @description Remote assist config, which only take effect when the 'Remote assist' switch in the admin settings is opened.
1058
1116
  */
1059
1117
  remoteAssist?: {
1060
1118
  /**
@@ -1075,15 +1133,15 @@ export type Settings = {
1075
1133
  remoteAssistTypes?: "scroll_page"[];
1076
1134
  };
1077
1135
  /**
1078
- * @description Session continuation config.
1136
+ * @description Session continuation config, which only take effect when the 'Multi-tab session persistence' switch in the admin settings is opened.
1079
1137
  */
1080
1138
  multiTabSessionPersistence?: {
1081
1139
  /**
1082
- * @description Whether to enable session continuation, the default is false.
1140
+ * @description Whether to enable multi-tab session persistence, the default is false.
1083
1141
  */
1084
1142
  enable: boolean;
1085
1143
  /**
1086
- * @description The cookie key for session continuation, the default is '$$_ZCB_SESSION_$$'(base64 encoded).
1144
+ * @description The cookie key for multi-tab session persistence, the default is '$$_ZCB_SESSION_$$'(base64 encoded).
1087
1145
  */
1088
1146
  stateCookieKey?: string;
1089
1147
  };
@@ -761,9 +761,9 @@ declare function session_error(payload: {
761
761
  */
762
762
  code: SessionErrorCode;
763
763
  /**
764
- * Error message.
764
+ * Error message.(Auxiliary prompt, not used to determine errors)
765
765
  */
766
- errorMsg: string;
766
+ errorMsg: SessionErrorMessage;
767
767
  /**
768
768
  * SDK version.
769
769
  */
@@ -778,6 +778,10 @@ declare function session_reconnecting(payload: {
778
778
  * SDK version.
779
779
  */
780
780
  version: string;
781
+ /**
782
+ * Reconnecting type.
783
+ */
784
+ reconnectingType: "reconnecting" | "persisting";
781
785
  }): void;
782
786
  declare function session_started(payload: {
783
787
  /**
@@ -978,6 +982,55 @@ export type SdkInfo = {
978
982
  */
979
983
  version: string;
980
984
  };
985
+ /**
986
+ * @description Session error messages.(Auxiliary prompt, not used to determine errors)
987
+ */
988
+ export type SessionErrorMessage = {
989
+ /**
990
+ * @description 1001 Join session failed due to an invalid pincode.
991
+ */
992
+ SESSION_START_FAILED: "The website link is invalid." | "Free trial account has no available credits.";
993
+ /**
994
+ * @description 1002 Session is connecting.
995
+ */
996
+ SESSION_CONNECTING_IN_PROGRESS: "A connection is already in progress." | "A transfer session is still recovering.";
997
+ /**
998
+ * @description 1004 Join session failed due to count limit.
999
+ */
1000
+ SESSION_COUNT_LIMIT: "A session is already active.";
1001
+ /**
1002
+ * @description 1008 Join session failed due to an invalid pincode.
1003
+ */
1004
+ SESSION_PIN_INVALID_FORMAT: "Pincode exceeds the maximum length" | "Pincode contains invalid characters.";
1005
+ /**
1006
+ * @description 1010 Start session failed due to pincode already in use.
1007
+ */
1008
+ SESSION_START_PIN_CONFLICT: "Pincode has already been used.";
1009
+ /**
1010
+ * @description 1011 Join session failed.
1011
+ */
1012
+ SESSION_JOIN_FAILED: "Session join failed due to an internal error." | "SDK version is invalid." | "Session does not exist or has ended." | "The website link is invalid." | "Failed to make a connection after multiple attempts." | "Failed to reconnect after fail over with multiple attempts." | "Failed to reconnect after fail over with multiple attempts.";
1013
+ /**
1014
+ * @description 1012 Join session failed due to count limit.
1015
+ */
1016
+ SESSION_CUSTOMER_COUNT_LIMIT: "Maximum number of customers in a session reached.";
1017
+ /**
1018
+ * @description 1016 Start or join session failed due to network error.
1019
+ */
1020
+ NETWORK_ERROR: "Network request to backend failed after multiple attempts.";
1021
+ /**
1022
+ * @description 1017 Session is being canceled.
1023
+ */
1024
+ SESSION_CANCELING_IN_PROGRESS: "Operation failed, the session is being canceled.";
1025
+ /**
1026
+ * @description 2001 Join session failed due to invalid token.
1027
+ */
1028
+ TOKEN_INVALID: "JWT token is invalid." | "JWT token has no permissions." | "JWT token has expired." | "JWT token access error." | "Internal token error.";
1029
+ /**
1030
+ * @description 9999 Unknown error.
1031
+ */
1032
+ UNDEFINED: "Service error occurred." | "API request rate limit, try again later." | "Session error occurred." | "Session error occurred, try again later.";
1033
+ };
981
1034
  /**
982
1035
  * @description Current session information.
983
1036
  */
@@ -1002,31 +1055,36 @@ export type SessionInfo = {
1002
1055
  */
1003
1056
  export type Settings = {
1004
1057
  /**
1005
- * @description Whether to enable annotation on the customer side, the default is false.
1006
- */
1007
- allowCustomerAnnotation?: boolean;
1008
- /**
1009
- * @description Whether to enable agent on the customer side, the default is true.
1058
+ * @description Annotation config.
1010
1059
  */
1011
- allowAgentAnnotation?: boolean;
1060
+ annotation?: {
1061
+ /**
1062
+ * @description Whether to enable annotation on the customer side, the default is false.
1063
+ */
1064
+ enableCustomerAnnotation?: boolean;
1065
+ /**
1066
+ * @description Whether to enable annotation follow page scroll, the default is false.
1067
+ */
1068
+ enableAnnotationFollowScroll?: boolean;
1069
+ };
1012
1070
  /**
1013
- * @description PII mask config.
1071
+ * @description PII mask config, which only takes effect when the 'Mask Data in Cobrowse' switch in the admin settings is opened.
1014
1072
  */
1015
1073
  piiMask?: {
1016
1074
  //enable?: boolean;
1017
1075
  /**
1018
1076
  * @description PII mask config.
1019
- * 'custom_input': Customize the input to be masked based on 'mask_css_selectors' and 'mask_html_attribute'
1020
- * 'all_input': Mask all inputs, ignore 'mask_css_selectors' and 'mask_html_attribute'
1021
- * the default is 'custom_input'
1077
+ * 'custom_input': Customize the input to be masked based on 'mask_css_selectors' and 'mask_html_attribute'.
1078
+ * 'all_input': Mask all inputs, ignore 'mask_css_selectors' and 'mask_html_attribute'.
1079
+ * The default is the configuration of admin settings.
1022
1080
  */
1023
1081
  maskType?: "custom_input" | "all_input";
1024
1082
  /**
1025
- * @description Mask part of the input by customizing the CSS selector, which only takes effect when the maskType is 'custom_input', the default is empty string.
1083
+ * @description Mask part of the input by customizing the CSS selector, which only takes effect when the maskType is 'custom_input'. The default is the configuration of admin settings.
1026
1084
  */
1027
1085
  maskCssSelectors?: string;
1028
1086
  /**
1029
- * @description Mask part of the input by customizing the HTML attributes, which only takes effect when the maskType is 'custom_input', the default is empty string.
1087
+ * @description Mask part of the input by customizing the HTML attributes, which only takes effect when the maskType is 'custom_input', the default is the configuration of admin settings.
1030
1088
  */
1031
1089
  maskHTMLAttributes?: string;
1032
1090
  };
@@ -1048,7 +1106,7 @@ export type Settings = {
1048
1106
  [key in CustomerCustomizeOverridesFeatureKey]?: CustomizeOverride;
1049
1107
  };
1050
1108
  /**
1051
- * @description Remote assist config.
1109
+ * @description Remote assist config, which only take effect when the 'Remote assist' switch in the admin settings is opened.
1052
1110
  */
1053
1111
  remoteAssist?: {
1054
1112
  /**
@@ -1069,15 +1127,15 @@ export type Settings = {
1069
1127
  remoteAssistTypes?: "scroll_page"[];
1070
1128
  };
1071
1129
  /**
1072
- * @description Session continuation config.
1130
+ * @description Session continuation config, which only take effect when the 'Multi-tab session persistence' switch in the admin settings is opened.
1073
1131
  */
1074
1132
  multiTabSessionPersistence?: {
1075
1133
  /**
1076
- * @description Whether to enable session continuation, the default is false.
1134
+ * @description Whether to enable multi-tab session persistence, the default is false.
1077
1135
  */
1078
1136
  enable: boolean;
1079
1137
  /**
1080
- * @description The cookie key for session continuation, the default is '$$_ZCB_SESSION_$$'(base64 encoded).
1138
+ * @description The cookie key for multi-tab session persistence, the default is '$$_ZCB_SESSION_$$'(base64 encoded).
1081
1139
  */
1082
1140
  stateCookieKey?: string;
1083
1141
  };