@sprucelabs/mercury-core-events 20.3.0 → 20.3.2
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 +3 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.js +0 -7
- package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js +9 -3
- package/build/.spruce/schemas/schemas.types.d.ts +27 -57
- package/build/.spruce/settings.json +0 -4
- package/build/esm/.spruce/permissions/permissions.types.d.ts +3 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.js +0 -7
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js +6 -3
- package/build/esm/.spruce/schemas/schemas.types.d.ts +27 -57
- package/package.json +1 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.js +0 -25
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.js +0 -20
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
+
'chat-bot-contract': [
|
|
5
|
+
'can-register-chat-bots'
|
|
6
|
+
];
|
|
4
7
|
'events-contract': [
|
|
5
8
|
'can-register-global-events'
|
|
6
9
|
];
|
|
@@ -65,9 +68,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
65
68
|
'can-view-marketplace',
|
|
66
69
|
'can-check-if-skill-is-installed'
|
|
67
70
|
];
|
|
68
|
-
'chat-bot-contract': [
|
|
69
|
-
'can-register-chat-bots'
|
|
70
|
-
];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
export interface PermissionContractMap {
|
package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.js
CHANGED
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
7
|
const eventSource_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventSource.schema"));
|
|
8
|
-
const registerChatBotsPayload_schema_1 = __importDefault(require("./registerChatBotsPayload.schema"));
|
|
9
8
|
const registerChatBotsEmitTargetAndPayloadSchema = {
|
|
10
9
|
id: 'registerChatBotsEmitTargetAndPayload',
|
|
11
10
|
version: 'v2020_12_25',
|
|
@@ -18,12 +17,6 @@ const registerChatBotsEmitTargetAndPayloadSchema = {
|
|
|
18
17
|
type: 'schema',
|
|
19
18
|
options: { schema: eventSource_schema_1.default, }
|
|
20
19
|
},
|
|
21
|
-
/** . */
|
|
22
|
-
'payload': {
|
|
23
|
-
type: 'schema',
|
|
24
|
-
isRequired: true,
|
|
25
|
-
options: { schema: registerChatBotsPayload_schema_1.default, }
|
|
26
|
-
},
|
|
27
20
|
}
|
|
28
21
|
};
|
|
29
22
|
schema_1.SchemaRegistry.getInstance().trackSchema(registerChatBotsEmitTargetAndPayloadSchema);
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const chatbot_schema_1 = __importDefault(require("./chatbot.schema"));
|
|
4
8
|
const registerChatBotsResponsePayloadSchema = {
|
|
5
9
|
id: 'registerChatBotsResponsePayload',
|
|
6
10
|
version: 'v2020_12_25',
|
|
@@ -8,10 +12,12 @@ const registerChatBotsResponsePayloadSchema = {
|
|
|
8
12
|
name: '',
|
|
9
13
|
fields: {
|
|
10
14
|
/** . */
|
|
11
|
-
'
|
|
12
|
-
type: '
|
|
15
|
+
'bots': {
|
|
16
|
+
type: 'schema',
|
|
13
17
|
isRequired: true,
|
|
14
|
-
|
|
18
|
+
isArray: true,
|
|
19
|
+
minArrayLength: 0,
|
|
20
|
+
options: { schema: chatbot_schema_1.default, }
|
|
15
21
|
},
|
|
16
22
|
}
|
|
17
23
|
};
|
|
@@ -877,6 +877,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
877
877
|
interface InvokeChatCallbackResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema> {
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
881
|
+
interface RegisterChatBotsEmitTargetAndPayload {
|
|
882
|
+
/** Source. */
|
|
883
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
884
|
+
}
|
|
885
|
+
interface RegisterChatBotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
886
|
+
id: 'registerChatBotsEmitTargetAndPayload';
|
|
887
|
+
version: 'v2020_12_25';
|
|
888
|
+
namespace: 'Mercury';
|
|
889
|
+
name: '';
|
|
890
|
+
fields: {
|
|
891
|
+
/** Source. */
|
|
892
|
+
'source': {
|
|
893
|
+
label: 'Source';
|
|
894
|
+
type: 'schema';
|
|
895
|
+
options: {
|
|
896
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
interface RegisterChatBotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsEmitTargetAndPayloadSchema> {
|
|
902
|
+
}
|
|
903
|
+
}
|
|
880
904
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
881
905
|
interface ChatBotCallbacks {
|
|
882
906
|
'placeholder': string;
|
|
@@ -959,11 +983,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
959
983
|
}
|
|
960
984
|
}
|
|
961
985
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
962
|
-
interface
|
|
986
|
+
interface RegisterChatBotsResponsePayload {
|
|
963
987
|
'bots': SpruceSchemas.Mercury.v2020_12_25.Chatbot[];
|
|
964
988
|
}
|
|
965
|
-
interface
|
|
966
|
-
id: '
|
|
989
|
+
interface RegisterChatBotsResponsePayloadSchema extends SpruceSchema.Schema {
|
|
990
|
+
id: 'registerChatBotsResponsePayload';
|
|
967
991
|
version: 'v2020_12_25';
|
|
968
992
|
namespace: 'Mercury';
|
|
969
993
|
name: '';
|
|
@@ -980,60 +1004,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
980
1004
|
};
|
|
981
1005
|
};
|
|
982
1006
|
}
|
|
983
|
-
interface RegisterChatBotsPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema> {
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
987
|
-
interface RegisterChatBotsEmitTargetAndPayload {
|
|
988
|
-
/** Source. */
|
|
989
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
990
|
-
'payload': SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayload;
|
|
991
|
-
}
|
|
992
|
-
interface RegisterChatBotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
993
|
-
id: 'registerChatBotsEmitTargetAndPayload';
|
|
994
|
-
version: 'v2020_12_25';
|
|
995
|
-
namespace: 'Mercury';
|
|
996
|
-
name: '';
|
|
997
|
-
fields: {
|
|
998
|
-
/** Source. */
|
|
999
|
-
'source': {
|
|
1000
|
-
label: 'Source';
|
|
1001
|
-
type: 'schema';
|
|
1002
|
-
options: {
|
|
1003
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
1004
|
-
};
|
|
1005
|
-
};
|
|
1006
|
-
/** . */
|
|
1007
|
-
'payload': {
|
|
1008
|
-
type: 'schema';
|
|
1009
|
-
isRequired: true;
|
|
1010
|
-
options: {
|
|
1011
|
-
schema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema;
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
-
}
|
|
1016
|
-
interface RegisterChatBotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsEmitTargetAndPayloadSchema> {
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
1020
|
-
interface RegisterChatBotsResponsePayload {
|
|
1021
|
-
'totalRegisteredBots': number;
|
|
1022
|
-
}
|
|
1023
|
-
interface RegisterChatBotsResponsePayloadSchema extends SpruceSchema.Schema {
|
|
1024
|
-
id: 'registerChatBotsResponsePayload';
|
|
1025
|
-
version: 'v2020_12_25';
|
|
1026
|
-
namespace: 'Mercury';
|
|
1027
|
-
name: '';
|
|
1028
|
-
fields: {
|
|
1029
|
-
/** . */
|
|
1030
|
-
'totalRegisteredBots': {
|
|
1031
|
-
type: 'number';
|
|
1032
|
-
isRequired: true;
|
|
1033
|
-
options: undefined;
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
1007
|
interface RegisterChatBotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema> {
|
|
1038
1008
|
}
|
|
1039
1009
|
}
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
],
|
|
14
14
|
"events": {
|
|
15
15
|
"lastSync": {
|
|
16
|
-
"contractDestinationDir": "#spruce/events",
|
|
17
|
-
"schemaTypesLookupDir": "#spruce/schemas",
|
|
18
|
-
"skillEventContractTypesFile": "@sprucelabs/mercury-types/build/types/mercury.types",
|
|
19
|
-
"eventBuilderFile": "@sprucelabs/mercury-types",
|
|
20
16
|
"shouldSyncOnlyCoreEvents": "true"
|
|
21
17
|
}
|
|
22
18
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
+
'chat-bot-contract': [
|
|
5
|
+
'can-register-chat-bots'
|
|
6
|
+
];
|
|
4
7
|
'events-contract': [
|
|
5
8
|
'can-register-global-events'
|
|
6
9
|
];
|
|
@@ -65,9 +68,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
65
68
|
'can-view-marketplace',
|
|
66
69
|
'can-check-if-skill-is-installed'
|
|
67
70
|
];
|
|
68
|
-
'chat-bot-contract': [
|
|
69
|
-
'can-register-chat-bots'
|
|
70
|
-
];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
export interface PermissionContractMap {
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
2
|
import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
|
|
3
|
-
import registerChatBotsPayloadSchema_v2020_12_25 from './registerChatBotsPayload.schema.js';
|
|
4
3
|
const registerChatBotsEmitTargetAndPayloadSchema = {
|
|
5
4
|
id: 'registerChatBotsEmitTargetAndPayload',
|
|
6
5
|
version: 'v2020_12_25',
|
|
@@ -13,12 +12,6 @@ const registerChatBotsEmitTargetAndPayloadSchema = {
|
|
|
13
12
|
type: 'schema',
|
|
14
13
|
options: { schema: eventSourceSchema_v2021_09_13, }
|
|
15
14
|
},
|
|
16
|
-
/** . */
|
|
17
|
-
'payload': {
|
|
18
|
-
type: 'schema',
|
|
19
|
-
isRequired: true,
|
|
20
|
-
options: { schema: registerChatBotsPayloadSchema_v2020_12_25, }
|
|
21
|
-
},
|
|
22
15
|
}
|
|
23
16
|
};
|
|
24
17
|
SchemaRegistry.getInstance().trackSchema(registerChatBotsEmitTargetAndPayloadSchema);
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import chatbotSchema_v2020_12_25 from './chatbot.schema.js';
|
|
2
3
|
const registerChatBotsResponsePayloadSchema = {
|
|
3
4
|
id: 'registerChatBotsResponsePayload',
|
|
4
5
|
version: 'v2020_12_25',
|
|
@@ -6,10 +7,12 @@ const registerChatBotsResponsePayloadSchema = {
|
|
|
6
7
|
name: '',
|
|
7
8
|
fields: {
|
|
8
9
|
/** . */
|
|
9
|
-
'
|
|
10
|
-
type: '
|
|
10
|
+
'bots': {
|
|
11
|
+
type: 'schema',
|
|
11
12
|
isRequired: true,
|
|
12
|
-
|
|
13
|
+
isArray: true,
|
|
14
|
+
minArrayLength: 0,
|
|
15
|
+
options: { schema: chatbotSchema_v2020_12_25, }
|
|
13
16
|
},
|
|
14
17
|
}
|
|
15
18
|
};
|
|
@@ -877,6 +877,30 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
877
877
|
interface InvokeChatCallbackResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema> {
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
881
|
+
interface RegisterChatBotsEmitTargetAndPayload {
|
|
882
|
+
/** Source. */
|
|
883
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
884
|
+
}
|
|
885
|
+
interface RegisterChatBotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
886
|
+
id: 'registerChatBotsEmitTargetAndPayload';
|
|
887
|
+
version: 'v2020_12_25';
|
|
888
|
+
namespace: 'Mercury';
|
|
889
|
+
name: '';
|
|
890
|
+
fields: {
|
|
891
|
+
/** Source. */
|
|
892
|
+
'source': {
|
|
893
|
+
label: 'Source';
|
|
894
|
+
type: 'schema';
|
|
895
|
+
options: {
|
|
896
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
interface RegisterChatBotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsEmitTargetAndPayloadSchema> {
|
|
902
|
+
}
|
|
903
|
+
}
|
|
880
904
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
881
905
|
interface ChatBotCallbacks {
|
|
882
906
|
'placeholder': string;
|
|
@@ -959,11 +983,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
959
983
|
}
|
|
960
984
|
}
|
|
961
985
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
962
|
-
interface
|
|
986
|
+
interface RegisterChatBotsResponsePayload {
|
|
963
987
|
'bots': SpruceSchemas.Mercury.v2020_12_25.Chatbot[];
|
|
964
988
|
}
|
|
965
|
-
interface
|
|
966
|
-
id: '
|
|
989
|
+
interface RegisterChatBotsResponsePayloadSchema extends SpruceSchema.Schema {
|
|
990
|
+
id: 'registerChatBotsResponsePayload';
|
|
967
991
|
version: 'v2020_12_25';
|
|
968
992
|
namespace: 'Mercury';
|
|
969
993
|
name: '';
|
|
@@ -980,60 +1004,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
980
1004
|
};
|
|
981
1005
|
};
|
|
982
1006
|
}
|
|
983
|
-
interface RegisterChatBotsPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema> {
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
987
|
-
interface RegisterChatBotsEmitTargetAndPayload {
|
|
988
|
-
/** Source. */
|
|
989
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
990
|
-
'payload': SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayload;
|
|
991
|
-
}
|
|
992
|
-
interface RegisterChatBotsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
993
|
-
id: 'registerChatBotsEmitTargetAndPayload';
|
|
994
|
-
version: 'v2020_12_25';
|
|
995
|
-
namespace: 'Mercury';
|
|
996
|
-
name: '';
|
|
997
|
-
fields: {
|
|
998
|
-
/** Source. */
|
|
999
|
-
'source': {
|
|
1000
|
-
label: 'Source';
|
|
1001
|
-
type: 'schema';
|
|
1002
|
-
options: {
|
|
1003
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
1004
|
-
};
|
|
1005
|
-
};
|
|
1006
|
-
/** . */
|
|
1007
|
-
'payload': {
|
|
1008
|
-
type: 'schema';
|
|
1009
|
-
isRequired: true;
|
|
1010
|
-
options: {
|
|
1011
|
-
schema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema;
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
-
}
|
|
1016
|
-
interface RegisterChatBotsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsEmitTargetAndPayloadSchema> {
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
1020
|
-
interface RegisterChatBotsResponsePayload {
|
|
1021
|
-
'totalRegisteredBots': number;
|
|
1022
|
-
}
|
|
1023
|
-
interface RegisterChatBotsResponsePayloadSchema extends SpruceSchema.Schema {
|
|
1024
|
-
id: 'registerChatBotsResponsePayload';
|
|
1025
|
-
version: 'v2020_12_25';
|
|
1026
|
-
namespace: 'Mercury';
|
|
1027
|
-
name: '';
|
|
1028
|
-
fields: {
|
|
1029
|
-
/** . */
|
|
1030
|
-
'totalRegisteredBots': {
|
|
1031
|
-
type: 'number';
|
|
1032
|
-
isRequired: true;
|
|
1033
|
-
options: undefined;
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
1007
|
interface RegisterChatBotsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema> {
|
|
1038
1008
|
}
|
|
1039
1009
|
}
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
-
const chatbot_schema_1 = __importDefault(require("./chatbot.schema"));
|
|
8
|
-
const registerChatBotsPayloadSchema = {
|
|
9
|
-
id: 'registerChatBotsPayload',
|
|
10
|
-
version: 'v2020_12_25',
|
|
11
|
-
namespace: 'Mercury',
|
|
12
|
-
name: '',
|
|
13
|
-
fields: {
|
|
14
|
-
/** . */
|
|
15
|
-
'bots': {
|
|
16
|
-
type: 'schema',
|
|
17
|
-
isRequired: true,
|
|
18
|
-
isArray: true,
|
|
19
|
-
minArrayLength: 0,
|
|
20
|
-
options: { schema: chatbot_schema_1.default, }
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(registerChatBotsPayloadSchema);
|
|
25
|
-
exports.default = registerChatBotsPayloadSchema;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
import chatbotSchema_v2020_12_25 from './chatbot.schema.js';
|
|
3
|
-
const registerChatBotsPayloadSchema = {
|
|
4
|
-
id: 'registerChatBotsPayload',
|
|
5
|
-
version: 'v2020_12_25',
|
|
6
|
-
namespace: 'Mercury',
|
|
7
|
-
name: '',
|
|
8
|
-
fields: {
|
|
9
|
-
/** . */
|
|
10
|
-
'bots': {
|
|
11
|
-
type: 'schema',
|
|
12
|
-
isRequired: true,
|
|
13
|
-
isArray: true,
|
|
14
|
-
minArrayLength: 0,
|
|
15
|
-
options: { schema: chatbotSchema_v2020_12_25, }
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
SchemaRegistry.getInstance().trackSchema(registerChatBotsPayloadSchema);
|
|
20
|
-
export default registerChatBotsPayloadSchema;
|