@sprucelabs/mercury-core-events 20.3.14 → 20.3.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.
- package/build/.spruce/permissions/permissions.types.d.ts +2 -5
- package/build/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.js +10 -0
- package/build/.spruce/schemas/schemas.types.d.ts +12 -0
- package/build/esm/.spruce/permissions/permissions.types.d.ts +2 -5
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.js +10 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +12 -0
- package/package.json +11 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
-
'
|
|
5
|
-
'can-register-
|
|
4
|
+
'chatbot-contract': [
|
|
5
|
+
'can-register-chatbots'
|
|
6
6
|
];
|
|
7
7
|
'events-contract': [
|
|
8
8
|
'can-register-global-events'
|
|
@@ -68,9 +68,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
68
68
|
'can-view-marketplace',
|
|
69
69
|
'can-check-if-skill-is-installed'
|
|
70
70
|
];
|
|
71
|
-
'chatbot-contract': [
|
|
72
|
-
'can-register-chatbots'
|
|
73
|
-
];
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
export interface PermissionContractMap {
|
|
@@ -41,6 +41,16 @@ const chatbotSchema = {
|
|
|
41
41
|
options: { valueType: `SpruceSchema.Schema`, }
|
|
42
42
|
},
|
|
43
43
|
/** . */
|
|
44
|
+
'model': {
|
|
45
|
+
type: 'id',
|
|
46
|
+
options: undefined
|
|
47
|
+
},
|
|
48
|
+
/** . */
|
|
49
|
+
'promptTemplate': {
|
|
50
|
+
type: 'text',
|
|
51
|
+
options: undefined
|
|
52
|
+
},
|
|
53
|
+
/** . */
|
|
44
54
|
'callbacks': {
|
|
45
55
|
type: 'schema',
|
|
46
56
|
isArray: true,
|
|
@@ -936,6 +936,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
936
936
|
'weAreDoneWhen': string;
|
|
937
937
|
'pleaseKeepInMindThat'?: string[] | undefined | null;
|
|
938
938
|
'stateSchema'?: (SpruceSchema.Schema) | undefined | null;
|
|
939
|
+
'model'?: string | undefined | null;
|
|
940
|
+
'promptTemplate'?: string | undefined | null;
|
|
939
941
|
'callbacks'?: SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacks[] | undefined | null;
|
|
940
942
|
}
|
|
941
943
|
interface ChatbotSchema extends SpruceSchema.Schema {
|
|
@@ -976,6 +978,16 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
976
978
|
};
|
|
977
979
|
};
|
|
978
980
|
/** . */
|
|
981
|
+
'model': {
|
|
982
|
+
type: 'id';
|
|
983
|
+
options: undefined;
|
|
984
|
+
};
|
|
985
|
+
/** . */
|
|
986
|
+
'promptTemplate': {
|
|
987
|
+
type: 'text';
|
|
988
|
+
options: undefined;
|
|
989
|
+
};
|
|
990
|
+
/** . */
|
|
979
991
|
'callbacks': {
|
|
980
992
|
type: 'schema';
|
|
981
993
|
isArray: true;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
-
'
|
|
5
|
-
'can-register-
|
|
4
|
+
'chatbot-contract': [
|
|
5
|
+
'can-register-chatbots'
|
|
6
6
|
];
|
|
7
7
|
'events-contract': [
|
|
8
8
|
'can-register-global-events'
|
|
@@ -68,9 +68,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
68
68
|
'can-view-marketplace',
|
|
69
69
|
'can-check-if-skill-is-installed'
|
|
70
70
|
];
|
|
71
|
-
'chatbot-contract': [
|
|
72
|
-
'can-register-chatbots'
|
|
73
|
-
];
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
export interface PermissionContractMap {
|
|
@@ -36,6 +36,16 @@ const chatbotSchema = {
|
|
|
36
36
|
options: { valueType: `SpruceSchema.Schema`, }
|
|
37
37
|
},
|
|
38
38
|
/** . */
|
|
39
|
+
'model': {
|
|
40
|
+
type: 'id',
|
|
41
|
+
options: undefined
|
|
42
|
+
},
|
|
43
|
+
/** . */
|
|
44
|
+
'promptTemplate': {
|
|
45
|
+
type: 'text',
|
|
46
|
+
options: undefined
|
|
47
|
+
},
|
|
48
|
+
/** . */
|
|
39
49
|
'callbacks': {
|
|
40
50
|
type: 'schema',
|
|
41
51
|
isArray: true,
|
|
@@ -936,6 +936,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
936
936
|
'weAreDoneWhen': string;
|
|
937
937
|
'pleaseKeepInMindThat'?: string[] | undefined | null;
|
|
938
938
|
'stateSchema'?: (SpruceSchema.Schema) | undefined | null;
|
|
939
|
+
'model'?: string | undefined | null;
|
|
940
|
+
'promptTemplate'?: string | undefined | null;
|
|
939
941
|
'callbacks'?: SpruceSchemas.Mercury.v2020_12_25.ChatbotCallbacks[] | undefined | null;
|
|
940
942
|
}
|
|
941
943
|
interface ChatbotSchema extends SpruceSchema.Schema {
|
|
@@ -976,6 +978,16 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
976
978
|
};
|
|
977
979
|
};
|
|
978
980
|
/** . */
|
|
981
|
+
'model': {
|
|
982
|
+
type: 'id';
|
|
983
|
+
options: undefined;
|
|
984
|
+
};
|
|
985
|
+
/** . */
|
|
986
|
+
'promptTemplate': {
|
|
987
|
+
type: 'text';
|
|
988
|
+
options: undefined;
|
|
989
|
+
};
|
|
990
|
+
/** . */
|
|
979
991
|
'callbacks': {
|
|
980
992
|
type: 'schema';
|
|
981
993
|
isArray: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/mercury-core-events",
|
|
3
|
-
"version": "20.3.
|
|
3
|
+
"version": "20.3.16",
|
|
4
4
|
"description": "Events Mercury provides out of the box.",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "mercury-core-events",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"watch.tsc": "tsc -w"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@sprucelabs/esm-postbuild": "^4.0.
|
|
66
|
-
"@sprucelabs/jest-json-reporter": "^7.0.
|
|
67
|
-
"@sprucelabs/resolve-path-aliases": "^1.1.
|
|
65
|
+
"@sprucelabs/esm-postbuild": "^4.0.21",
|
|
66
|
+
"@sprucelabs/jest-json-reporter": "^7.0.35",
|
|
67
|
+
"@sprucelabs/resolve-path-aliases": "^1.1.218",
|
|
68
68
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
69
|
-
"@sprucelabs/test": "^7.7.
|
|
70
|
-
"@types/node": "^18.16.
|
|
69
|
+
"@sprucelabs/test": "^7.7.446",
|
|
70
|
+
"@types/node": "^18.16.3",
|
|
71
71
|
"chokidar-cli": "^3.0.0",
|
|
72
72
|
"concurrently": "^8.0.1",
|
|
73
73
|
"eslint": "^8.39.0",
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
"jest-circus": "^29.5.0",
|
|
77
77
|
"prettier": "^2.8.8",
|
|
78
78
|
"ts-node": "^10.9.1",
|
|
79
|
-
"tsc-watch": "^6.0.
|
|
79
|
+
"tsc-watch": "^6.0.4",
|
|
80
80
|
"tsconfig-paths": "^4.2.0",
|
|
81
81
|
"typescript": "^5.0.4"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@sprucelabs/mercury-types": "^44.0.
|
|
85
|
-
"@sprucelabs/schema": "^28.6.
|
|
86
|
-
"@sprucelabs/spruce-core-schemas": "^38.0.
|
|
87
|
-
"@sprucelabs/spruce-event-utils": "^36.0.
|
|
84
|
+
"@sprucelabs/mercury-types": "^44.0.38",
|
|
85
|
+
"@sprucelabs/schema": "^28.6.20",
|
|
86
|
+
"@sprucelabs/spruce-core-schemas": "^38.0.38",
|
|
87
|
+
"@sprucelabs/spruce-event-utils": "^36.0.40"
|
|
88
88
|
},
|
|
89
89
|
"jest": {
|
|
90
90
|
"testRunner": "jest-circus/runner",
|