@sprucelabs/mercury-core-events 20.1.1 → 20.2.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.
Files changed (53) hide show
  1. package/build/.spruce/events/events.contract.d.ts +26 -0
  2. package/build/.spruce/events/events.contract.js +4 -0
  3. package/build/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.d.ts +15 -0
  4. package/build/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.js +22 -0
  5. package/build/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.d.ts +15 -0
  6. package/build/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.js +22 -0
  7. package/build/.spruce/permissions/permissions.types.d.ts +3 -0
  8. package/build/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.d.ts +3 -0
  9. package/build/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.js +19 -0
  10. package/build/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.d.ts +3 -0
  11. package/build/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.js +47 -0
  12. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.d.ts +3 -0
  13. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js +37 -0
  14. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.d.ts +3 -0
  15. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.js +24 -0
  16. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.d.ts +3 -0
  17. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js +19 -0
  18. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.d.ts +3 -0
  19. package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.js +25 -0
  20. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.d.ts +3 -0
  21. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.js +30 -0
  22. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.d.ts +3 -0
  23. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.js +25 -0
  24. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.d.ts +3 -0
  25. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js +19 -0
  26. package/build/.spruce/schemas/schemas.types.d.ts +528 -255
  27. package/build/esm/.spruce/events/events.contract.d.ts +26 -0
  28. package/build/esm/.spruce/events/events.contract.js +4 -0
  29. package/build/esm/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.d.ts +15 -0
  30. package/build/esm/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.js +17 -0
  31. package/build/esm/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.d.ts +15 -0
  32. package/build/esm/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.js +17 -0
  33. package/build/esm/.spruce/permissions/permissions.types.d.ts +3 -0
  34. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.d.ts +3 -0
  35. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.js +17 -0
  36. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.d.ts +3 -0
  37. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.js +42 -0
  38. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.d.ts +3 -0
  39. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js +32 -0
  40. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.d.ts +3 -0
  41. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.js +22 -0
  42. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.d.ts +3 -0
  43. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js +17 -0
  44. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.d.ts +3 -0
  45. package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.js +23 -0
  46. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.d.ts +3 -0
  47. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.js +25 -0
  48. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.d.ts +3 -0
  49. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.js +20 -0
  50. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.d.ts +3 -0
  51. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js +17 -0
  52. package/build/esm/.spruce/schemas/schemas.types.d.ts +528 -255
  53. package/package.json +1 -1
@@ -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,6 +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";
43
+ import { RegisterChatBotEventContract as MercuryRegisterChatBotEventContract_v2020_12_25 } from "./mercury/registerChatBot.v2020_12_25.contract";
42
44
  import { RegisterConversationTopicsEventContract as MercuryRegisterConversationTopicsEventContract_v2020_12_25 } from "./mercury/registerConversationTopics.v2020_12_25.contract";
43
45
  import { RegisterEventsEventContract as MercuryRegisterEventsEventContract_v2020_12_25 } from "./mercury/registerEvents.v2020_12_25.contract";
44
46
  import { RegisterListenersEventContract as MercuryRegisterListenersEventContract_v2020_12_25 } from "./mercury/registerListeners.v2020_12_25.contract";
@@ -340,6 +342,17 @@ declare const _default: ({
340
342
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InstallSkillResponsePayloadSchema;
341
343
  };
342
344
  };
345
+ } | {
346
+ eventSignatures: {
347
+ 'invoke-chat-callback::v2020_12_25': {
348
+ listenPermissions: {
349
+ contractId: "chat-bot-contract";
350
+ permissionIdsAny: "can-register-chat-bot"[];
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
+ };
343
356
  } | {
344
357
  eventSignatures: {
345
358
  'is-skill-installed::v2020_12_25': {
@@ -403,6 +416,17 @@ declare const _default: ({
403
416
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.LogoutResponsePayloadSchema;
404
417
  };
405
418
  };
419
+ } | {
420
+ eventSignatures: {
421
+ 'register-chat-bot::v2020_12_25': {
422
+ listenPermissions: {
423
+ contractId: "chat-bot-contract";
424
+ permissionIdsAny: "can-register-chat-bot"[];
425
+ };
426
+ emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotEmitTargetAndPayloadSchema;
427
+ responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
428
+ };
429
+ };
406
430
  } | {
407
431
  eventSignatures: {
408
432
  'register-conversation-topics::v2020_12_25': {
@@ -645,6 +669,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
645
669
  'get-skill::v2020_12_25': MercuryGetSkillEventContract_v2020_12_25['eventSignatures']['get-skill::v2020_12_25'];
646
670
  'health::v2020_12_25': MercuryHealthEventContract_v2020_12_25['eventSignatures']['health::v2020_12_25'];
647
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'];
648
673
  'is-skill-installed::v2020_12_25': MercuryIsSkillInstalledEventContract_v2020_12_25['eventSignatures']['is-skill-installed::v2020_12_25'];
649
674
  'list-installed-skills::v2020_12_25': MercuryListInstalledSkillsEventContract_v2020_12_25['eventSignatures']['list-installed-skills::v2020_12_25'];
650
675
  'list-locations::v2020_12_25': MercuryListLocationsEventContract_v2020_12_25['eventSignatures']['list-locations::v2020_12_25'];
@@ -654,6 +679,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
654
679
  'list-roles::v2020_12_25': MercuryListRolesEventContract_v2020_12_25['eventSignatures']['list-roles::v2020_12_25'];
655
680
  'list-skills::v2020_12_25': MercuryListSkillsEventContract_v2020_12_25['eventSignatures']['list-skills::v2020_12_25'];
656
681
  'logout::v2020_12_25': MercuryLogoutEventContract_v2020_12_25['eventSignatures']['logout::v2020_12_25'];
682
+ 'register-chat-bot::v2020_12_25': MercuryRegisterChatBotEventContract_v2020_12_25['eventSignatures']['register-chat-bot::v2020_12_25'];
657
683
  'register-conversation-topics::v2020_12_25': MercuryRegisterConversationTopicsEventContract_v2020_12_25['eventSignatures']['register-conversation-topics::v2020_12_25'];
658
684
  'register-events::v2020_12_25': MercuryRegisterEventsEventContract_v2020_12_25['eventSignatures']['register-events::v2020_12_25'];
659
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,6 +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"));
48
+ const registerChatBot_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerChatBot.v2020_12_25.contract"));
47
49
  const registerConversationTopics_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerConversationTopics.v2020_12_25.contract"));
48
50
  const registerEvents_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerEvents.v2020_12_25.contract"));
49
51
  const registerListeners_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerListeners.v2020_12_25.contract"));
@@ -102,6 +104,7 @@ exports.default = [
102
104
  getSkill_v2020_12_25_contract_1.default,
103
105
  health_v2020_12_25_contract_1.default,
104
106
  installSkill_v2020_12_25_contract_1.default,
107
+ invokeChatCallback_v2020_12_25_contract_1.default,
105
108
  isSkillInstalled_v2020_12_25_contract_1.default,
106
109
  listInstalledSkills_v2020_12_25_contract_1.default,
107
110
  listLocations_v2020_12_25_contract_1.default,
@@ -111,6 +114,7 @@ exports.default = [
111
114
  listRoles_v2020_12_25_contract_1.default,
112
115
  listSkills_v2020_12_25_contract_1.default,
113
116
  logout_v2020_12_25_contract_1.default,
117
+ registerChatBot_v2020_12_25_contract_1.default,
114
118
  registerConversationTopics_v2020_12_25_contract_1.default,
115
119
  registerEvents_v2020_12_25_contract_1.default,
116
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-bot"[];
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-bot'],
16
+ },
17
+ emitPayloadSchema: invokeChatCallbackEmitTargetAndPayload_schema_1.default,
18
+ responsePayloadSchema: invokeChatCallbackResponsePayload_schema_1.default,
19
+ },
20
+ },
21
+ });
22
+ exports.default = invokeChatCallbackEventContract;
@@ -0,0 +1,15 @@
1
+ import "./../../permissions/permissions.types";
2
+ declare const registerChatBotEventContract: {
3
+ eventSignatures: {
4
+ 'register-chat-bot::v2020_12_25': {
5
+ listenPermissions: {
6
+ contractId: "chat-bot-contract";
7
+ permissionIdsAny: "can-register-chat-bot"[];
8
+ };
9
+ emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotEmitTargetAndPayloadSchema;
10
+ responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
11
+ };
12
+ };
13
+ };
14
+ export default registerChatBotEventContract;
15
+ export type RegisterChatBotEventContract = typeof registerChatBotEventContract;
@@ -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 registerChatBotEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema"));
9
+ const registerChatBotsResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema"));
10
+ const registerChatBotEventContract = (0, mercury_types_1.buildEventContract)({
11
+ eventSignatures: {
12
+ 'register-chat-bot::v2020_12_25': {
13
+ listenPermissions: {
14
+ contractId: 'chat-bot-contract',
15
+ permissionIdsAny: ['can-register-chat-bot'],
16
+ },
17
+ emitPayloadSchema: registerChatBotEmitTargetAndPayload_schema_1.default,
18
+ responsePayloadSchema: registerChatBotsResponsePayload_schema_1.default,
19
+ },
20
+ },
21
+ });
22
+ exports.default = registerChatBotEventContract;
@@ -65,6 +65,9 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
65
65
  'can-view-marketplace',
66
66
  'can-check-if-skill-is-installed'
67
67
  ];
68
+ 'chat-bot-contract': [
69
+ 'can-register-chat-bot'
70
+ ];
68
71
  }
69
72
  }
70
73
  export interface PermissionContractMap {
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const chatBotCallbacksSchema: SpruceSchemas.Mercury.v2020_12_25.ChatBotCallbacksSchema;
3
+ export default chatBotCallbacksSchema;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const chatBotCallbacksSchema = {
5
+ id: 'chatBotCallbacks',
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
+ };
18
+ schema_1.SchemaRegistry.getInstance().trackSchema(chatBotCallbacksSchema);
19
+ exports.default = chatBotCallbacksSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const chatbotSchema: SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema;
3
+ export default chatbotSchema;
@@ -0,0 +1,47 @@
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 chatBotCallbacks_schema_1 = __importDefault(require("./chatBotCallbacks.schema"));
8
+ const chatbotSchema = {
9
+ id: 'chatbot',
10
+ version: 'v2020_12_25',
11
+ namespace: 'Mercury',
12
+ name: '',
13
+ fields: {
14
+ /** . */
15
+ 'yourJobIfYouChooseToAcceptItIs': {
16
+ type: 'text',
17
+ isRequired: true,
18
+ options: undefined
19
+ },
20
+ /** . */
21
+ 'weAreDoneWhen': {
22
+ type: 'text',
23
+ isRequired: true,
24
+ options: undefined
25
+ },
26
+ /** . */
27
+ 'pleaseKeepInMindThat': {
28
+ type: 'text',
29
+ isArray: true,
30
+ options: undefined
31
+ },
32
+ /** . */
33
+ 'stateSchema': {
34
+ type: 'raw',
35
+ options: { valueType: `SpruceSchema.Schema`, }
36
+ },
37
+ /** . */
38
+ 'callbacks': {
39
+ type: 'schema',
40
+ isArray: true,
41
+ minArrayLength: 0,
42
+ options: { schema: chatBotCallbacks_schema_1.default, }
43
+ },
44
+ }
45
+ };
46
+ schema_1.SchemaRegistry.getInstance().trackSchema(chatbotSchema);
47
+ exports.default = chatbotSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const invokeChatCallbackEmitTargetAndPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema;
3
+ export default invokeChatCallbackEmitTargetAndPayloadSchema;
@@ -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,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const invokeChatCallbackPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackPayloadSchema;
3
+ export default invokeChatCallbackPayloadSchema;
@@ -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,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const invokeChatCallbackResponsePayloadSchema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema;
3
+ export default invokeChatCallbackResponsePayloadSchema;
@@ -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,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const invokeChatCallbackTargetSchema: SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackTargetSchema;
3
+ export default invokeChatCallbackTargetSchema;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerChatBotEmitTargetAndPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotEmitTargetAndPayloadSchema;
3
+ export default registerChatBotEmitTargetAndPayloadSchema;
@@ -0,0 +1,30 @@
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 registerChatBotsPayload_schema_1 = __importDefault(require("./registerChatBotsPayload.schema"));
9
+ const registerChatBotEmitTargetAndPayloadSchema = {
10
+ id: 'registerChatBotEmitTargetAndPayload',
11
+ version: 'v2020_12_25',
12
+ namespace: 'Mercury',
13
+ name: '',
14
+ fields: {
15
+ /** Source. */
16
+ 'source': {
17
+ label: 'Source',
18
+ type: 'schema',
19
+ options: { schema: eventSource_schema_1.default, }
20
+ },
21
+ /** . */
22
+ 'payload': {
23
+ type: 'schema',
24
+ isRequired: true,
25
+ options: { schema: registerChatBotsPayload_schema_1.default, }
26
+ },
27
+ }
28
+ };
29
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerChatBotEmitTargetAndPayloadSchema);
30
+ exports.default = registerChatBotEmitTargetAndPayloadSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerChatBotsPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema;
3
+ export default registerChatBotsPayloadSchema;
@@ -0,0 +1,25 @@
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;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerChatBotsResponsePayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
3
+ export default registerChatBotsResponsePayloadSchema;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const registerChatBotsResponsePayloadSchema = {
5
+ id: 'registerChatBotsResponsePayload',
6
+ version: 'v2020_12_25',
7
+ namespace: 'Mercury',
8
+ name: '',
9
+ fields: {
10
+ /** . */
11
+ 'totalRegisteredBots': {
12
+ type: 'number',
13
+ isRequired: true,
14
+ options: undefined
15
+ },
16
+ }
17
+ };
18
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerChatBotsResponsePayloadSchema);
19
+ exports.default = registerChatBotsResponsePayloadSchema;