@go1/go1-embedding-react-sdk 0.0.11 → 0.0.12
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 +12 -2
- package/dist/README.md +12 -2
- package/dist/common/types.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,15 @@ type OnGo1MessageReceived = (message: Go1Message) => void;
|
|
|
49
49
|
|
|
50
50
|
type SendMessageToGo1 = (message: Go1Message) => void;
|
|
51
51
|
|
|
52
|
-
type Go1MessageType =
|
|
52
|
+
type Go1MessageType =
|
|
53
|
+
'preview_start_content' |
|
|
54
|
+
'preview_close' |
|
|
55
|
+
'preview_add_content_success' |
|
|
56
|
+
'preview_add_content_failure' |
|
|
57
|
+
'preview_remove_content_success' |
|
|
58
|
+
'preview_remove_content_failure' |
|
|
59
|
+
'set_additional_embedding_data' |
|
|
60
|
+
'go1_app_initialised';
|
|
53
61
|
|
|
54
62
|
interface Go1Message {
|
|
55
63
|
type: Go1MessageType;
|
|
@@ -77,7 +85,9 @@ export interface FeatureAttributesAIChat {
|
|
|
77
85
|
* Used to configure the `preview` feature
|
|
78
86
|
*/
|
|
79
87
|
export interface FeatureAttributesPreview {
|
|
80
|
-
id: number
|
|
88
|
+
id: number;
|
|
89
|
+
experience?: 'manager' | 'learner';
|
|
90
|
+
uiConfig?: UIConfig;
|
|
81
91
|
}
|
|
82
92
|
|
|
83
93
|
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview;
|
package/dist/README.md
CHANGED
|
@@ -49,7 +49,15 @@ type OnGo1MessageReceived = (message: Go1Message) => void;
|
|
|
49
49
|
|
|
50
50
|
type SendMessageToGo1 = (message: Go1Message) => void;
|
|
51
51
|
|
|
52
|
-
type Go1MessageType =
|
|
52
|
+
type Go1MessageType =
|
|
53
|
+
'preview_start_content' |
|
|
54
|
+
'preview_close' |
|
|
55
|
+
'preview_add_content_success' |
|
|
56
|
+
'preview_add_content_failure' |
|
|
57
|
+
'preview_remove_content_success' |
|
|
58
|
+
'preview_remove_content_failure' |
|
|
59
|
+
'set_additional_embedding_data' |
|
|
60
|
+
'go1_app_initialised';
|
|
53
61
|
|
|
54
62
|
interface Go1Message {
|
|
55
63
|
type: Go1MessageType;
|
|
@@ -77,7 +85,9 @@ export interface FeatureAttributesAIChat {
|
|
|
77
85
|
* Used to configure the `preview` feature
|
|
78
86
|
*/
|
|
79
87
|
export interface FeatureAttributesPreview {
|
|
80
|
-
id: number
|
|
88
|
+
id: number;
|
|
89
|
+
experience?: 'manager' | 'learner';
|
|
90
|
+
uiConfig?: UIConfig;
|
|
81
91
|
}
|
|
82
92
|
|
|
83
93
|
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface AdditionalInfoMessage {
|
|
|
11
11
|
export interface ThemeInformation {
|
|
12
12
|
accent: string;
|
|
13
13
|
}
|
|
14
|
-
export type Go1MessageType = 'preview_start_content' | 'set_additional_embedding_data' | 'go1_app_initialised';
|
|
14
|
+
export type Go1MessageType = 'preview_start_content' | 'preview_close' | 'preview_add_content_success' | 'preview_add_content_failure' | 'preview_remove_content_success' | 'preview_remove_content_failure' | 'set_additional_embedding_data' | 'go1_app_initialised';
|
|
15
15
|
export interface Go1Message {
|
|
16
16
|
type: Go1MessageType;
|
|
17
17
|
payload?: any;
|
|
@@ -26,6 +26,7 @@ export interface FeatureAttributesAIChat {
|
|
|
26
26
|
}
|
|
27
27
|
export interface FeatureAttributesPreview {
|
|
28
28
|
id: number;
|
|
29
|
+
experience?: 'manager' | 'learner';
|
|
29
30
|
}
|
|
30
31
|
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview;
|
|
31
32
|
export interface AdditionalUserInfo {
|