@sprucelabs/mercury-core-events 20.1.0 → 20.1.1

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 (33) hide show
  1. package/build/.spruce/events/events.contract.d.ts +0 -13
  2. package/build/.spruce/events/events.contract.js +0 -2
  3. package/build/.spruce/permissions/permissions.types.d.ts +0 -3
  4. package/build/.spruce/schemas/schemas.types.d.ts +146 -299
  5. package/build/esm/.spruce/events/events.contract.d.ts +0 -13
  6. package/build/esm/.spruce/events/events.contract.js +0 -2
  7. package/build/esm/.spruce/permissions/permissions.types.d.ts +0 -3
  8. package/build/esm/.spruce/schemas/schemas.types.d.ts +146 -299
  9. package/package.json +1 -1
  10. package/build/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.d.ts +0 -15
  11. package/build/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.js +0 -22
  12. package/build/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.d.ts +0 -3
  13. package/build/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.js +0 -19
  14. package/build/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.d.ts +0 -3
  15. package/build/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.js +0 -47
  16. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.d.ts +0 -3
  17. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.js +0 -30
  18. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.d.ts +0 -3
  19. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.js +0 -25
  20. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.d.ts +0 -3
  21. package/build/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js +0 -19
  22. package/build/esm/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.d.ts +0 -15
  23. package/build/esm/.spruce/events/mercury/registerChatBot.v2020_12_25.contract.js +0 -17
  24. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.d.ts +0 -3
  25. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatBotCallbacks.schema.js +0 -17
  26. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.d.ts +0 -3
  27. package/build/esm/.spruce/schemas/mercury/v2020_12_25/chatbot.schema.js +0 -42
  28. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.d.ts +0 -3
  29. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.js +0 -25
  30. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.d.ts +0 -3
  31. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsPayload.schema.js +0 -20
  32. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.d.ts +0 -3
  33. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js +0 -17
@@ -1,15 +0,0 @@
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;
@@ -1,22 +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
- 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;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const chatBotCallbacksSchema: SpruceSchemas.Mercury.v2020_12_25.ChatBotCallbacksSchema;
3
- export default chatBotCallbacksSchema;
@@ -1,19 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const chatbotSchema: SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema;
3
- export default chatbotSchema;
@@ -1,47 +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 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;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const registerChatBotEmitTargetAndPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotEmitTargetAndPayloadSchema;
3
- export default registerChatBotEmitTargetAndPayloadSchema;
@@ -1,30 +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 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;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const registerChatBotsPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema;
3
- export default registerChatBotsPayloadSchema;
@@ -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,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const registerChatBotsResponsePayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
3
- export default registerChatBotsResponsePayloadSchema;
@@ -1,19 +0,0 @@
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;
@@ -1,15 +0,0 @@
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;
@@ -1,17 +0,0 @@
1
- import "./../../permissions/permissions.types";
2
- import { buildEventContract } from '@sprucelabs/mercury-types';
3
- import registerChatBotEmitTargetAndPayloadSchema from './../../schemas/mercury/v2020_12_25/registerChatBotEmitTargetAndPayload.schema.js';
4
- import registerChatBotsResponsePayloadSchema from './../../schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js';
5
- const registerChatBotEventContract = buildEventContract({
6
- eventSignatures: {
7
- 'register-chat-bot::v2020_12_25': {
8
- listenPermissions: {
9
- contractId: 'chat-bot-contract',
10
- permissionIdsAny: ['can-register-chat-bot'],
11
- },
12
- emitPayloadSchema: registerChatBotEmitTargetAndPayloadSchema,
13
- responsePayloadSchema: registerChatBotsResponsePayloadSchema,
14
- },
15
- },
16
- });
17
- export default registerChatBotEventContract;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const chatBotCallbacksSchema: SpruceSchemas.Mercury.v2020_12_25.ChatBotCallbacksSchema;
3
- export default chatBotCallbacksSchema;
@@ -1,17 +0,0 @@
1
- import { SchemaRegistry } from '@sprucelabs/schema';
2
- const chatBotCallbacksSchema = {
3
- id: 'chatBotCallbacks',
4
- version: 'v2020_12_25',
5
- namespace: 'Mercury',
6
- name: '',
7
- fields: {
8
- /** . */
9
- 'placeholder': {
10
- type: 'id',
11
- isRequired: true,
12
- options: undefined
13
- },
14
- }
15
- };
16
- SchemaRegistry.getInstance().trackSchema(chatBotCallbacksSchema);
17
- export default chatBotCallbacksSchema;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const chatbotSchema: SpruceSchemas.Mercury.v2020_12_25.ChatbotSchema;
3
- export default chatbotSchema;
@@ -1,42 +0,0 @@
1
- import { SchemaRegistry } from '@sprucelabs/schema';
2
- import chatBotCallbacksSchema_v2020_12_25 from './chatBotCallbacks.schema.js';
3
- const chatbotSchema = {
4
- id: 'chatbot',
5
- version: 'v2020_12_25',
6
- namespace: 'Mercury',
7
- name: '',
8
- fields: {
9
- /** . */
10
- 'yourJobIfYouChooseToAcceptItIs': {
11
- type: 'text',
12
- isRequired: true,
13
- options: undefined
14
- },
15
- /** . */
16
- 'weAreDoneWhen': {
17
- type: 'text',
18
- isRequired: true,
19
- options: undefined
20
- },
21
- /** . */
22
- 'pleaseKeepInMindThat': {
23
- type: 'text',
24
- isArray: true,
25
- options: undefined
26
- },
27
- /** . */
28
- 'stateSchema': {
29
- type: 'raw',
30
- options: { valueType: `SpruceSchema.Schema`, }
31
- },
32
- /** . */
33
- 'callbacks': {
34
- type: 'schema',
35
- isArray: true,
36
- minArrayLength: 0,
37
- options: { schema: chatBotCallbacksSchema_v2020_12_25, }
38
- },
39
- }
40
- };
41
- SchemaRegistry.getInstance().trackSchema(chatbotSchema);
42
- export default chatbotSchema;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const registerChatBotEmitTargetAndPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotEmitTargetAndPayloadSchema;
3
- export default registerChatBotEmitTargetAndPayloadSchema;
@@ -1,25 +0,0 @@
1
- import { SchemaRegistry } from '@sprucelabs/schema';
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
- const registerChatBotEmitTargetAndPayloadSchema = {
5
- id: 'registerChatBotEmitTargetAndPayload',
6
- version: 'v2020_12_25',
7
- namespace: 'Mercury',
8
- name: '',
9
- fields: {
10
- /** Source. */
11
- 'source': {
12
- label: 'Source',
13
- type: 'schema',
14
- options: { schema: eventSourceSchema_v2021_09_13, }
15
- },
16
- /** . */
17
- 'payload': {
18
- type: 'schema',
19
- isRequired: true,
20
- options: { schema: registerChatBotsPayloadSchema_v2020_12_25, }
21
- },
22
- }
23
- };
24
- SchemaRegistry.getInstance().trackSchema(registerChatBotEmitTargetAndPayloadSchema);
25
- export default registerChatBotEmitTargetAndPayloadSchema;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const registerChatBotsPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsPayloadSchema;
3
- export 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;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../schemas.types';
2
- declare const registerChatBotsResponsePayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterChatBotsResponsePayloadSchema;
3
- export default registerChatBotsResponsePayloadSchema;
@@ -1,17 +0,0 @@
1
- import { SchemaRegistry } from '@sprucelabs/schema';
2
- const registerChatBotsResponsePayloadSchema = {
3
- id: 'registerChatBotsResponsePayload',
4
- version: 'v2020_12_25',
5
- namespace: 'Mercury',
6
- name: '',
7
- fields: {
8
- /** . */
9
- 'totalRegisteredBots': {
10
- type: 'number',
11
- isRequired: true,
12
- options: undefined
13
- },
14
- }
15
- };
16
- SchemaRegistry.getInstance().trackSchema(registerChatBotsResponsePayloadSchema);
17
- export default registerChatBotsResponsePayloadSchema;