@sprucelabs/mercury-core-events 20.2.3 → 20.3.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/build/.spruce/events/events.contract.d.ts +18 -5
- package/build/.spruce/events/events.contract.js +4 -2
- package/build/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.d.ts +15 -0
- package/build/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.js +22 -0
- package/build/.spruce/events/mercury/{registerChatBot.v2020_12_25.contract.d.ts → registerChatBots.v2020_12_25.contract.d.ts} +6 -6
- package/build/.spruce/events/mercury/{registerChatBot.v2020_12_25.contract.js → registerChatBots.v2020_12_25.contract.js} +6 -6
- package/build/.spruce/permissions/permissions.types.d.ts +3 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.js +6 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js +37 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.js +24 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js +19 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.js +25 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/{registerChatBotEmitTargetAndPayload.schema.js → registerChatBotsEmitTargetAndPayload.schema.js} +4 -4
- package/build/.spruce/schemas/schemas.types.d.ts +296 -169
- package/build/.spruce/settings.json +4 -0
- package/build/esm/.spruce/events/events.contract.d.ts +18 -5
- package/build/esm/.spruce/events/events.contract.js +4 -2
- package/build/esm/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.d.ts +15 -0
- package/build/esm/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.js +17 -0
- package/build/esm/.spruce/events/mercury/{registerChatBot.v2020_12_25.contract.d.ts → registerChatBots.v2020_12_25.contract.d.ts} +6 -6
- package/build/esm/.spruce/events/mercury/{registerChatBot.v2020_12_25.contract.js → registerChatBots.v2020_12_25.contract.js} +6 -6
- package/build/esm/.spruce/permissions/permissions.types.d.ts +3 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.js +6 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js +32 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.js +22 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js +17 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.js +23 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/{registerChatBotEmitTargetAndPayload.schema.js → registerChatBotsEmitTargetAndPayload.schema.js} +4 -4
- package/build/esm/.spruce/schemas/schemas.types.d.ts +296 -169
- package/package.json +1 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.d.ts +0 -3
|
@@ -30,6 +30,7 @@ import { GetRoleEventContract as MercuryGetRoleEventContract_v2020_12_25 } from
|
|
|
30
30
|
import { GetSkillEventContract as MercuryGetSkillEventContract_v2020_12_25 } from "./mercury/getSkill.v2020_12_25.contract";
|
|
31
31
|
import { HealthEventContract as MercuryHealthEventContract_v2020_12_25 } from "./mercury/health.v2020_12_25.contract";
|
|
32
32
|
import { InstallSkillEventContract as MercuryInstallSkillEventContract_v2020_12_25 } from "./mercury/installSkill.v2020_12_25.contract";
|
|
33
|
+
import { InvokeChatCallbackEventContract as MercuryInvokeChatCallbackEventContract_v2020_12_25 } from "./mercury/invokeChatCallback.v2020_12_25.contract";
|
|
33
34
|
import { IsSkillInstalledEventContract as MercuryIsSkillInstalledEventContract_v2020_12_25 } from "./mercury/isSkillInstalled.v2020_12_25.contract";
|
|
34
35
|
import { ListInstalledSkillsEventContract as MercuryListInstalledSkillsEventContract_v2020_12_25 } from "./mercury/listInstalledSkills.v2020_12_25.contract";
|
|
35
36
|
import { ListLocationsEventContract as MercuryListLocationsEventContract_v2020_12_25 } from "./mercury/listLocations.v2020_12_25.contract";
|
|
@@ -39,7 +40,7 @@ import { ListPermissionContractsEventContract as MercuryListPermissionContractsE
|
|
|
39
40
|
import { ListRolesEventContract as MercuryListRolesEventContract_v2020_12_25 } from "./mercury/listRoles.v2020_12_25.contract";
|
|
40
41
|
import { ListSkillsEventContract as MercuryListSkillsEventContract_v2020_12_25 } from "./mercury/listSkills.v2020_12_25.contract";
|
|
41
42
|
import { LogoutEventContract as MercuryLogoutEventContract_v2020_12_25 } from "./mercury/logout.v2020_12_25.contract";
|
|
42
|
-
import {
|
|
43
|
+
import { RegisterChatBotsEventContract as MercuryRegisterChatBotsEventContract_v2020_12_25 } from "./mercury/registerChatBots.v2020_12_25.contract";
|
|
43
44
|
import { RegisterConversationTopicsEventContract as MercuryRegisterConversationTopicsEventContract_v2020_12_25 } from "./mercury/registerConversationTopics.v2020_12_25.contract";
|
|
44
45
|
import { RegisterEventsEventContract as MercuryRegisterEventsEventContract_v2020_12_25 } from "./mercury/registerEvents.v2020_12_25.contract";
|
|
45
46
|
import { RegisterListenersEventContract as MercuryRegisterListenersEventContract_v2020_12_25 } from "./mercury/registerListeners.v2020_12_25.contract";
|
|
@@ -341,6 +342,17 @@ declare const _default: ({
|
|
|
341
342
|
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InstallSkillResponsePayloadSchema;
|
|
342
343
|
};
|
|
343
344
|
};
|
|
345
|
+
} | {
|
|
346
|
+
eventSignatures: {
|
|
347
|
+
'invoke-chat-callback::v2020_12_25': {
|
|
348
|
+
listenPermissions: {
|
|
349
|
+
contractId: "chat-bot-contract";
|
|
350
|
+
permissionIdsAny: "can-register-chat-bots"[];
|
|
351
|
+
};
|
|
352
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema;
|
|
353
|
+
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
344
356
|
} | {
|
|
345
357
|
eventSignatures: {
|
|
346
358
|
'is-skill-installed::v2020_12_25': {
|
|
@@ -406,12 +418,12 @@ declare const _default: ({
|
|
|
406
418
|
};
|
|
407
419
|
} | {
|
|
408
420
|
eventSignatures: {
|
|
409
|
-
'register-chat-
|
|
421
|
+
'register-chat-bots::v2020_12_25': {
|
|
410
422
|
listenPermissions: {
|
|
411
423
|
contractId: "chat-bot-contract";
|
|
412
|
-
permissionIdsAny: "can-register-chat-
|
|
424
|
+
permissionIdsAny: "can-register-chat-bots"[];
|
|
413
425
|
};
|
|
414
|
-
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.
|
|
426
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsEmitTargetAndPayloadSchema;
|
|
415
427
|
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
|
|
416
428
|
};
|
|
417
429
|
};
|
|
@@ -657,6 +669,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
657
669
|
'get-skill::v2020_12_25': MercuryGetSkillEventContract_v2020_12_25['eventSignatures']['get-skill::v2020_12_25'];
|
|
658
670
|
'health::v2020_12_25': MercuryHealthEventContract_v2020_12_25['eventSignatures']['health::v2020_12_25'];
|
|
659
671
|
'install-skill::v2020_12_25': MercuryInstallSkillEventContract_v2020_12_25['eventSignatures']['install-skill::v2020_12_25'];
|
|
672
|
+
'invoke-chat-callback::v2020_12_25': MercuryInvokeChatCallbackEventContract_v2020_12_25['eventSignatures']['invoke-chat-callback::v2020_12_25'];
|
|
660
673
|
'is-skill-installed::v2020_12_25': MercuryIsSkillInstalledEventContract_v2020_12_25['eventSignatures']['is-skill-installed::v2020_12_25'];
|
|
661
674
|
'list-installed-skills::v2020_12_25': MercuryListInstalledSkillsEventContract_v2020_12_25['eventSignatures']['list-installed-skills::v2020_12_25'];
|
|
662
675
|
'list-locations::v2020_12_25': MercuryListLocationsEventContract_v2020_12_25['eventSignatures']['list-locations::v2020_12_25'];
|
|
@@ -666,7 +679,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
666
679
|
'list-roles::v2020_12_25': MercuryListRolesEventContract_v2020_12_25['eventSignatures']['list-roles::v2020_12_25'];
|
|
667
680
|
'list-skills::v2020_12_25': MercuryListSkillsEventContract_v2020_12_25['eventSignatures']['list-skills::v2020_12_25'];
|
|
668
681
|
'logout::v2020_12_25': MercuryLogoutEventContract_v2020_12_25['eventSignatures']['logout::v2020_12_25'];
|
|
669
|
-
'register-chat-
|
|
682
|
+
'register-chat-bots::v2020_12_25': MercuryRegisterChatBotsEventContract_v2020_12_25['eventSignatures']['register-chat-bots::v2020_12_25'];
|
|
670
683
|
'register-conversation-topics::v2020_12_25': MercuryRegisterConversationTopicsEventContract_v2020_12_25['eventSignatures']['register-conversation-topics::v2020_12_25'];
|
|
671
684
|
'register-events::v2020_12_25': MercuryRegisterEventsEventContract_v2020_12_25['eventSignatures']['register-events::v2020_12_25'];
|
|
672
685
|
'register-listeners::v2020_12_25': MercuryRegisterListenersEventContract_v2020_12_25['eventSignatures']['register-listeners::v2020_12_25'];
|
|
@@ -35,6 +35,7 @@ const getRole_v2020_12_25_contract_1 = __importDefault(require("./mercury/getRol
|
|
|
35
35
|
const getSkill_v2020_12_25_contract_1 = __importDefault(require("./mercury/getSkill.v2020_12_25.contract"));
|
|
36
36
|
const health_v2020_12_25_contract_1 = __importDefault(require("./mercury/health.v2020_12_25.contract"));
|
|
37
37
|
const installSkill_v2020_12_25_contract_1 = __importDefault(require("./mercury/installSkill.v2020_12_25.contract"));
|
|
38
|
+
const invokeChatCallback_v2020_12_25_contract_1 = __importDefault(require("./mercury/invokeChatCallback.v2020_12_25.contract"));
|
|
38
39
|
const isSkillInstalled_v2020_12_25_contract_1 = __importDefault(require("./mercury/isSkillInstalled.v2020_12_25.contract"));
|
|
39
40
|
const listInstalledSkills_v2020_12_25_contract_1 = __importDefault(require("./mercury/listInstalledSkills.v2020_12_25.contract"));
|
|
40
41
|
const listLocations_v2020_12_25_contract_1 = __importDefault(require("./mercury/listLocations.v2020_12_25.contract"));
|
|
@@ -44,7 +45,7 @@ const listPermissionContracts_v2020_12_25_contract_1 = __importDefault(require("
|
|
|
44
45
|
const listRoles_v2020_12_25_contract_1 = __importDefault(require("./mercury/listRoles.v2020_12_25.contract"));
|
|
45
46
|
const listSkills_v2020_12_25_contract_1 = __importDefault(require("./mercury/listSkills.v2020_12_25.contract"));
|
|
46
47
|
const logout_v2020_12_25_contract_1 = __importDefault(require("./mercury/logout.v2020_12_25.contract"));
|
|
47
|
-
const
|
|
48
|
+
const registerChatBots_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerChatBots.v2020_12_25.contract"));
|
|
48
49
|
const registerConversationTopics_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerConversationTopics.v2020_12_25.contract"));
|
|
49
50
|
const registerEvents_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerEvents.v2020_12_25.contract"));
|
|
50
51
|
const registerListeners_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerListeners.v2020_12_25.contract"));
|
|
@@ -103,6 +104,7 @@ exports.default = [
|
|
|
103
104
|
getSkill_v2020_12_25_contract_1.default,
|
|
104
105
|
health_v2020_12_25_contract_1.default,
|
|
105
106
|
installSkill_v2020_12_25_contract_1.default,
|
|
107
|
+
invokeChatCallback_v2020_12_25_contract_1.default,
|
|
106
108
|
isSkillInstalled_v2020_12_25_contract_1.default,
|
|
107
109
|
listInstalledSkills_v2020_12_25_contract_1.default,
|
|
108
110
|
listLocations_v2020_12_25_contract_1.default,
|
|
@@ -112,7 +114,7 @@ exports.default = [
|
|
|
112
114
|
listRoles_v2020_12_25_contract_1.default,
|
|
113
115
|
listSkills_v2020_12_25_contract_1.default,
|
|
114
116
|
logout_v2020_12_25_contract_1.default,
|
|
115
|
-
|
|
117
|
+
registerChatBots_v2020_12_25_contract_1.default,
|
|
116
118
|
registerConversationTopics_v2020_12_25_contract_1.default,
|
|
117
119
|
registerEvents_v2020_12_25_contract_1.default,
|
|
118
120
|
registerListeners_v2020_12_25_contract_1.default,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./../../permissions/permissions.types";
|
|
2
|
+
declare const invokeChatCallbackEventContract: {
|
|
3
|
+
eventSignatures: {
|
|
4
|
+
'invoke-chat-callback::v2020_12_25': {
|
|
5
|
+
listenPermissions: {
|
|
6
|
+
contractId: "chat-bot-contract";
|
|
7
|
+
permissionIdsAny: "can-register-chat-bots"[];
|
|
8
|
+
};
|
|
9
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema;
|
|
10
|
+
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default invokeChatCallbackEventContract;
|
|
15
|
+
export type InvokeChatCallbackEventContract = typeof invokeChatCallbackEventContract;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
require("./../../permissions/permissions.types");
|
|
7
|
+
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
8
|
+
const invokeChatCallbackEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema"));
|
|
9
|
+
const invokeChatCallbackResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema"));
|
|
10
|
+
const invokeChatCallbackEventContract = (0, mercury_types_1.buildEventContract)({
|
|
11
|
+
eventSignatures: {
|
|
12
|
+
'invoke-chat-callback::v2020_12_25': {
|
|
13
|
+
listenPermissions: {
|
|
14
|
+
contractId: 'chat-bot-contract',
|
|
15
|
+
permissionIdsAny: ['can-register-chat-bots'],
|
|
16
|
+
},
|
|
17
|
+
emitPayloadSchema: invokeChatCallbackEmitTargetAndPayload_schema_1.default,
|
|
18
|
+
responsePayloadSchema: invokeChatCallbackResponsePayload_schema_1.default,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
exports.default = invokeChatCallbackEventContract;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./../../permissions/permissions.types";
|
|
2
|
-
declare const
|
|
2
|
+
declare const registerChatBotsEventContract: {
|
|
3
3
|
eventSignatures: {
|
|
4
|
-
'register-chat-
|
|
4
|
+
'register-chat-bots::v2020_12_25': {
|
|
5
5
|
listenPermissions: {
|
|
6
6
|
contractId: "chat-bot-contract";
|
|
7
|
-
permissionIdsAny: "can-register-chat-
|
|
7
|
+
permissionIdsAny: "can-register-chat-bots"[];
|
|
8
8
|
};
|
|
9
|
-
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.
|
|
9
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsEmitTargetAndPayloadSchema;
|
|
10
10
|
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
15
|
-
export type
|
|
14
|
+
export default registerChatBotsEventContract;
|
|
15
|
+
export type RegisterChatBotsEventContract = typeof registerChatBotsEventContract;
|
|
@@ -5,18 +5,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
require("./../../permissions/permissions.types");
|
|
7
7
|
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
8
|
-
const
|
|
8
|
+
const registerChatBotsEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema"));
|
|
9
9
|
const registerChatBotsResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema"));
|
|
10
|
-
const
|
|
10
|
+
const registerChatBotsEventContract = (0, mercury_types_1.buildEventContract)({
|
|
11
11
|
eventSignatures: {
|
|
12
|
-
'register-chat-
|
|
12
|
+
'register-chat-bots::v2020_12_25': {
|
|
13
13
|
listenPermissions: {
|
|
14
14
|
contractId: 'chat-bot-contract',
|
|
15
|
-
permissionIdsAny: ['can-register-chat-
|
|
15
|
+
permissionIdsAny: ['can-register-chat-bots'],
|
|
16
16
|
},
|
|
17
|
-
emitPayloadSchema:
|
|
17
|
+
emitPayloadSchema: registerChatBotsEmitTargetAndPayload_schema_1.default,
|
|
18
18
|
responsePayloadSchema: registerChatBotsResponsePayload_schema_1.default,
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
|
-
exports.default =
|
|
22
|
+
exports.default = registerChatBotsEventContract;
|
|
@@ -1,9 +1,6 @@
|
|
|
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-bot'
|
|
6
|
-
];
|
|
7
4
|
'events-contract': [
|
|
8
5
|
'can-register-global-events'
|
|
9
6
|
];
|
|
@@ -68,6 +65,9 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
68
65
|
'can-view-marketplace',
|
|
69
66
|
'can-check-if-skill-is-installed'
|
|
70
67
|
];
|
|
68
|
+
'chat-bot-contract': [
|
|
69
|
+
'can-register-chat-bots'
|
|
70
|
+
];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
export interface PermissionContractMap {
|
|
@@ -13,6 +13,12 @@ const chatBotCallbacksSchema = {
|
|
|
13
13
|
isRequired: true,
|
|
14
14
|
options: undefined
|
|
15
15
|
},
|
|
16
|
+
/** . */
|
|
17
|
+
'useThisWhenever': {
|
|
18
|
+
type: 'text',
|
|
19
|
+
isRequired: true,
|
|
20
|
+
options: undefined
|
|
21
|
+
},
|
|
16
22
|
}
|
|
17
23
|
};
|
|
18
24
|
schema_1.SchemaRegistry.getInstance().trackSchema(chatBotCallbacksSchema);
|
package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 eventSource_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventSource.schema"));
|
|
8
|
+
const invokeChatCallbackTarget_schema_1 = __importDefault(require("./invokeChatCallbackTarget.schema"));
|
|
9
|
+
const invokeChatCallbackPayload_schema_1 = __importDefault(require("./invokeChatCallbackPayload.schema"));
|
|
10
|
+
const invokeChatCallbackEmitTargetAndPayloadSchema = {
|
|
11
|
+
id: 'invokeChatCallbackEmitTargetAndPayload',
|
|
12
|
+
version: 'v2020_12_25',
|
|
13
|
+
namespace: 'Mercury',
|
|
14
|
+
name: '',
|
|
15
|
+
fields: {
|
|
16
|
+
/** Source. */
|
|
17
|
+
'source': {
|
|
18
|
+
label: 'Source',
|
|
19
|
+
type: 'schema',
|
|
20
|
+
options: { schema: eventSource_schema_1.default, }
|
|
21
|
+
},
|
|
22
|
+
/** . */
|
|
23
|
+
'target': {
|
|
24
|
+
type: 'schema',
|
|
25
|
+
isRequired: true,
|
|
26
|
+
options: { schema: invokeChatCallbackTarget_schema_1.default, }
|
|
27
|
+
},
|
|
28
|
+
/** . */
|
|
29
|
+
'payload': {
|
|
30
|
+
type: 'schema',
|
|
31
|
+
isRequired: true,
|
|
32
|
+
options: { schema: invokeChatCallbackPayload_schema_1.default, }
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackEmitTargetAndPayloadSchema);
|
|
37
|
+
exports.default = invokeChatCallbackEmitTargetAndPayloadSchema;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const invokeChatCallbackPayloadSchema = {
|
|
5
|
+
id: 'invokeChatCallbackPayload',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'placeholder': {
|
|
12
|
+
type: 'id',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
/** . */
|
|
17
|
+
'state': {
|
|
18
|
+
type: 'raw',
|
|
19
|
+
options: { valueType: `Record<string, any>`, }
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackPayloadSchema);
|
|
24
|
+
exports.default = invokeChatCallbackPayloadSchema;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const invokeChatCallbackResponsePayloadSchema = {
|
|
5
|
+
id: 'invokeChatCallbackResponsePayload',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'message': {
|
|
12
|
+
type: 'text',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackResponsePayloadSchema);
|
|
19
|
+
exports.default = invokeChatCallbackResponsePayloadSchema;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const invokeChatCallbackTargetSchema = {
|
|
5
|
+
id: 'invokeChatCallbackTarget',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'skillId': {
|
|
12
|
+
type: 'id',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
/** . */
|
|
17
|
+
'chatPersonId': {
|
|
18
|
+
type: 'id',
|
|
19
|
+
isRequired: true,
|
|
20
|
+
options: undefined
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackTargetSchema);
|
|
25
|
+
exports.default = invokeChatCallbackTargetSchema;
|
|
@@ -6,8 +6,8 @@ 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
8
|
const registerChatBotsPayload_schema_1 = __importDefault(require("./registerChatBotsPayload.schema"));
|
|
9
|
-
const
|
|
10
|
-
id: '
|
|
9
|
+
const registerChatBotsEmitTargetAndPayloadSchema = {
|
|
10
|
+
id: 'registerChatBotsEmitTargetAndPayload',
|
|
11
11
|
version: 'v2020_12_25',
|
|
12
12
|
namespace: 'Mercury',
|
|
13
13
|
name: '',
|
|
@@ -26,5 +26,5 @@ const registerChatBotEmitTargetAndPayloadSchema = {
|
|
|
26
26
|
},
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(
|
|
30
|
-
exports.default =
|
|
29
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(registerChatBotsEmitTargetAndPayloadSchema);
|
|
30
|
+
exports.default = registerChatBotsEmitTargetAndPayloadSchema;
|