@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'];
|
|
@@ -30,6 +30,7 @@ import mercuryGetRoleEventContract_v2020_12_25 from './mercury/getRole.v2020_12_
|
|
|
30
30
|
import mercuryGetSkillEventContract_v2020_12_25 from './mercury/getSkill.v2020_12_25.contract.js';
|
|
31
31
|
import mercuryHealthEventContract_v2020_12_25 from './mercury/health.v2020_12_25.contract.js';
|
|
32
32
|
import mercuryInstallSkillEventContract_v2020_12_25 from './mercury/installSkill.v2020_12_25.contract.js';
|
|
33
|
+
import mercuryInvokeChatCallbackEventContract_v2020_12_25 from './mercury/invokeChatCallback.v2020_12_25.contract.js';
|
|
33
34
|
import mercuryIsSkillInstalledEventContract_v2020_12_25 from './mercury/isSkillInstalled.v2020_12_25.contract.js';
|
|
34
35
|
import mercuryListInstalledSkillsEventContract_v2020_12_25 from './mercury/listInstalledSkills.v2020_12_25.contract.js';
|
|
35
36
|
import mercuryListLocationsEventContract_v2020_12_25 from './mercury/listLocations.v2020_12_25.contract.js';
|
|
@@ -39,7 +40,7 @@ import mercuryListPermissionContractsEventContract_v2020_12_25 from './mercury/l
|
|
|
39
40
|
import mercuryListRolesEventContract_v2020_12_25 from './mercury/listRoles.v2020_12_25.contract.js';
|
|
40
41
|
import mercuryListSkillsEventContract_v2020_12_25 from './mercury/listSkills.v2020_12_25.contract.js';
|
|
41
42
|
import mercuryLogoutEventContract_v2020_12_25 from './mercury/logout.v2020_12_25.contract.js';
|
|
42
|
-
import
|
|
43
|
+
import mercuryRegisterChatBotsEventContract_v2020_12_25 from './mercury/registerChatBots.v2020_12_25.contract.js';
|
|
43
44
|
import mercuryRegisterConversationTopicsEventContract_v2020_12_25 from './mercury/registerConversationTopics.v2020_12_25.contract.js';
|
|
44
45
|
import mercuryRegisterEventsEventContract_v2020_12_25 from './mercury/registerEvents.v2020_12_25.contract.js';
|
|
45
46
|
import mercuryRegisterListenersEventContract_v2020_12_25 from './mercury/registerListeners.v2020_12_25.contract.js';
|
|
@@ -98,6 +99,7 @@ export default [
|
|
|
98
99
|
mercuryGetSkillEventContract_v2020_12_25,
|
|
99
100
|
mercuryHealthEventContract_v2020_12_25,
|
|
100
101
|
mercuryInstallSkillEventContract_v2020_12_25,
|
|
102
|
+
mercuryInvokeChatCallbackEventContract_v2020_12_25,
|
|
101
103
|
mercuryIsSkillInstalledEventContract_v2020_12_25,
|
|
102
104
|
mercuryListInstalledSkillsEventContract_v2020_12_25,
|
|
103
105
|
mercuryListLocationsEventContract_v2020_12_25,
|
|
@@ -107,7 +109,7 @@ export default [
|
|
|
107
109
|
mercuryListRolesEventContract_v2020_12_25,
|
|
108
110
|
mercuryListSkillsEventContract_v2020_12_25,
|
|
109
111
|
mercuryLogoutEventContract_v2020_12_25,
|
|
110
|
-
|
|
112
|
+
mercuryRegisterChatBotsEventContract_v2020_12_25,
|
|
111
113
|
mercuryRegisterConversationTopicsEventContract_v2020_12_25,
|
|
112
114
|
mercuryRegisterEventsEventContract_v2020_12_25,
|
|
113
115
|
mercuryRegisterListenersEventContract_v2020_12_25,
|
|
@@ -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,17 @@
|
|
|
1
|
+
import "./../../permissions/permissions.types";
|
|
2
|
+
import { buildEventContract } from '@sprucelabs/mercury-types';
|
|
3
|
+
import invokeChatCallbackEmitTargetAndPayloadSchema from './../../schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js';
|
|
4
|
+
import invokeChatCallbackResponsePayloadSchema from './../../schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js';
|
|
5
|
+
const invokeChatCallbackEventContract = buildEventContract({
|
|
6
|
+
eventSignatures: {
|
|
7
|
+
'invoke-chat-callback::v2020_12_25': {
|
|
8
|
+
listenPermissions: {
|
|
9
|
+
contractId: 'chat-bot-contract',
|
|
10
|
+
permissionIdsAny: ['can-register-chat-bots'],
|
|
11
|
+
},
|
|
12
|
+
emitPayloadSchema: invokeChatCallbackEmitTargetAndPayloadSchema,
|
|
13
|
+
responsePayloadSchema: invokeChatCallbackResponsePayloadSchema,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export 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;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./../../permissions/permissions.types";
|
|
2
2
|
import { buildEventContract } from '@sprucelabs/mercury-types';
|
|
3
|
-
import
|
|
3
|
+
import registerChatBotsEmitTargetAndPayloadSchema from './../../schemas/mercury/v2020_12_25/registerChatBotsEmitTargetAndPayload.schema.js';
|
|
4
4
|
import registerChatBotsResponsePayloadSchema from './../../schemas/mercury/v2020_12_25/registerChatBotsResponsePayload.schema.js';
|
|
5
|
-
const
|
|
5
|
+
const registerChatBotsEventContract = buildEventContract({
|
|
6
6
|
eventSignatures: {
|
|
7
|
-
'register-chat-
|
|
7
|
+
'register-chat-bots::v2020_12_25': {
|
|
8
8
|
listenPermissions: {
|
|
9
9
|
contractId: 'chat-bot-contract',
|
|
10
|
-
permissionIdsAny: ['can-register-chat-
|
|
10
|
+
permissionIdsAny: ['can-register-chat-bots'],
|
|
11
11
|
},
|
|
12
|
-
emitPayloadSchema:
|
|
12
|
+
emitPayloadSchema: registerChatBotsEmitTargetAndPayloadSchema,
|
|
13
13
|
responsePayloadSchema: registerChatBotsResponsePayloadSchema,
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
|
-
export default
|
|
17
|
+
export 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 {
|
|
@@ -11,6 +11,12 @@ const chatBotCallbacksSchema = {
|
|
|
11
11
|
isRequired: true,
|
|
12
12
|
options: undefined
|
|
13
13
|
},
|
|
14
|
+
/** . */
|
|
15
|
+
'useThisWhenever': {
|
|
16
|
+
type: 'text',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
14
20
|
}
|
|
15
21
|
};
|
|
16
22
|
SchemaRegistry.getInstance().trackSchema(chatBotCallbacksSchema);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
|
|
3
|
+
import invokeChatCallbackTargetSchema_v2020_12_25 from './invokeChatCallbackTarget.schema.js';
|
|
4
|
+
import invokeChatCallbackPayloadSchema_v2020_12_25 from './invokeChatCallbackPayload.schema.js';
|
|
5
|
+
const invokeChatCallbackEmitTargetAndPayloadSchema = {
|
|
6
|
+
id: 'invokeChatCallbackEmitTargetAndPayload',
|
|
7
|
+
version: 'v2020_12_25',
|
|
8
|
+
namespace: 'Mercury',
|
|
9
|
+
name: '',
|
|
10
|
+
fields: {
|
|
11
|
+
/** Source. */
|
|
12
|
+
'source': {
|
|
13
|
+
label: 'Source',
|
|
14
|
+
type: 'schema',
|
|
15
|
+
options: { schema: eventSourceSchema_v2021_09_13, }
|
|
16
|
+
},
|
|
17
|
+
/** . */
|
|
18
|
+
'target': {
|
|
19
|
+
type: 'schema',
|
|
20
|
+
isRequired: true,
|
|
21
|
+
options: { schema: invokeChatCallbackTargetSchema_v2020_12_25, }
|
|
22
|
+
},
|
|
23
|
+
/** . */
|
|
24
|
+
'payload': {
|
|
25
|
+
type: 'schema',
|
|
26
|
+
isRequired: true,
|
|
27
|
+
options: { schema: invokeChatCallbackPayloadSchema_v2020_12_25, }
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackEmitTargetAndPayloadSchema);
|
|
32
|
+
export default invokeChatCallbackEmitTargetAndPayloadSchema;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const invokeChatCallbackPayloadSchema = {
|
|
3
|
+
id: 'invokeChatCallbackPayload',
|
|
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
|
+
'state': {
|
|
16
|
+
type: 'raw',
|
|
17
|
+
options: { valueType: `Record<string, any>`, }
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackPayloadSchema);
|
|
22
|
+
export default invokeChatCallbackPayloadSchema;
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const invokeChatCallbackResponsePayloadSchema = {
|
|
3
|
+
id: 'invokeChatCallbackResponsePayload',
|
|
4
|
+
version: 'v2020_12_25',
|
|
5
|
+
namespace: 'Mercury',
|
|
6
|
+
name: '',
|
|
7
|
+
fields: {
|
|
8
|
+
/** . */
|
|
9
|
+
'message': {
|
|
10
|
+
type: 'text',
|
|
11
|
+
isRequired: true,
|
|
12
|
+
options: undefined
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackResponsePayloadSchema);
|
|
17
|
+
export default invokeChatCallbackResponsePayloadSchema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const invokeChatCallbackTargetSchema = {
|
|
3
|
+
id: 'invokeChatCallbackTarget',
|
|
4
|
+
version: 'v2020_12_25',
|
|
5
|
+
namespace: 'Mercury',
|
|
6
|
+
name: '',
|
|
7
|
+
fields: {
|
|
8
|
+
/** . */
|
|
9
|
+
'skillId': {
|
|
10
|
+
type: 'id',
|
|
11
|
+
isRequired: true,
|
|
12
|
+
options: undefined
|
|
13
|
+
},
|
|
14
|
+
/** . */
|
|
15
|
+
'chatPersonId': {
|
|
16
|
+
type: 'id',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackTargetSchema);
|
|
23
|
+
export default invokeChatCallbackTargetSchema;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
2
|
import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
|
|
3
3
|
import registerChatBotsPayloadSchema_v2020_12_25 from './registerChatBotsPayload.schema.js';
|
|
4
|
-
const
|
|
5
|
-
id: '
|
|
4
|
+
const registerChatBotsEmitTargetAndPayloadSchema = {
|
|
5
|
+
id: 'registerChatBotsEmitTargetAndPayload',
|
|
6
6
|
version: 'v2020_12_25',
|
|
7
7
|
namespace: 'Mercury',
|
|
8
8
|
name: '',
|
|
@@ -21,5 +21,5 @@ const registerChatBotEmitTargetAndPayloadSchema = {
|
|
|
21
21
|
},
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
SchemaRegistry.getInstance().trackSchema(
|
|
25
|
-
export default
|
|
24
|
+
SchemaRegistry.getInstance().trackSchema(registerChatBotsEmitTargetAndPayloadSchema);
|
|
25
|
+
export default registerChatBotsEmitTargetAndPayloadSchema;
|