@sprucelabs/mercury-core-events 27.2.4 → 27.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.
Files changed (51) hide show
  1. package/build/.spruce/events/events.contract.d.ts +10 -2
  2. package/build/.spruce/events/events.contract.js +2 -0
  3. package/build/.spruce/events/mercury/listLocations.v2020_12_25.contract.js +1 -1
  4. package/build/.spruce/events/mercury/listOrganizations.v2020_12_25.contract.js +1 -1
  5. package/build/.spruce/events/mercury/registerAgent.v2020_12_25.contract.d.ts +12 -0
  6. package/build/.spruce/events/mercury/registerAgent.v2020_12_25.contract.js +19 -0
  7. package/build/.spruce/events/mercury/updateLocation.v2020_12_25.contract.d.ts +0 -1
  8. package/build/.spruce/events/mercury/updateLocation.v2020_12_25.contract.js +0 -1
  9. package/build/.spruce/events/mercury/updateOrganization.v2020_12_25.contract.d.ts +0 -1
  10. package/build/.spruce/events/mercury/updateOrganization.v2020_12_25.contract.js +0 -1
  11. package/build/.spruce/permissions/permissions.types.d.ts +3 -0
  12. package/build/.spruce/schemas/mercury/v2020_12_25/agent.schema.d.ts +3 -0
  13. package/build/.spruce/schemas/mercury/v2020_12_25/agent.schema.js +31 -0
  14. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.d.ts +3 -0
  15. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.js +29 -0
  16. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitPayload.schema.d.ts +3 -0
  17. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitPayload.schema.js +23 -0
  18. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTarget.schema.d.ts +3 -0
  19. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTarget.schema.js +19 -0
  20. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTargetAndPayload.schema.d.ts +3 -0
  21. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTargetAndPayload.schema.js +36 -0
  22. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.d.ts +3 -0
  23. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js +23 -0
  24. package/build/.spruce/schemas/mercury/v2020_12_25/sendMessageMessagePayload.schema.js +6 -0
  25. package/build/.spruce/schemas/schemas.types.d.ts +437 -251
  26. package/build/esm/.spruce/events/events.contract.d.ts +10 -2
  27. package/build/esm/.spruce/events/events.contract.js +2 -0
  28. package/build/esm/.spruce/events/mercury/listLocations.v2020_12_25.contract.js +1 -1
  29. package/build/esm/.spruce/events/mercury/listOrganizations.v2020_12_25.contract.js +1 -1
  30. package/build/esm/.spruce/events/mercury/registerAgent.v2020_12_25.contract.d.ts +12 -0
  31. package/build/esm/.spruce/events/mercury/registerAgent.v2020_12_25.contract.js +14 -0
  32. package/build/esm/.spruce/events/mercury/updateLocation.v2020_12_25.contract.d.ts +0 -1
  33. package/build/esm/.spruce/events/mercury/updateLocation.v2020_12_25.contract.js +0 -1
  34. package/build/esm/.spruce/events/mercury/updateOrganization.v2020_12_25.contract.d.ts +0 -1
  35. package/build/esm/.spruce/events/mercury/updateOrganization.v2020_12_25.contract.js +0 -1
  36. package/build/esm/.spruce/permissions/permissions.types.d.ts +3 -0
  37. package/build/esm/.spruce/schemas/mercury/v2020_12_25/agent.schema.d.ts +3 -0
  38. package/build/esm/.spruce/schemas/mercury/v2020_12_25/agent.schema.js +29 -0
  39. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.d.ts +3 -0
  40. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.js +27 -0
  41. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitPayload.schema.d.ts +3 -0
  42. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitPayload.schema.js +18 -0
  43. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTarget.schema.d.ts +3 -0
  44. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTarget.schema.js +17 -0
  45. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTargetAndPayload.schema.d.ts +3 -0
  46. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentEmitTargetAndPayload.schema.js +31 -0
  47. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.d.ts +3 -0
  48. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js +18 -0
  49. package/build/esm/.spruce/schemas/mercury/v2020_12_25/sendMessageMessagePayload.schema.js +6 -0
  50. package/build/esm/.spruce/schemas/schemas.types.d.ts +437 -251
  51. package/package.json +7 -7
@@ -44,6 +44,7 @@ import { ListSkillsEventContract as MercuryListSkillsEventContract_v2020_12_25 }
44
44
  import { LoginEventContract as MercuryLoginEventContract_v2020_12_25 } from './mercury/login.v2020_12_25.contract';
45
45
  import { LogoutEventContract as MercuryLogoutEventContract_v2020_12_25 } from './mercury/logout.v2020_12_25.contract';
46
46
  import { PublishSkillEventContract as MercuryPublishSkillEventContract_v2020_12_25 } from './mercury/publishSkill.v2020_12_25.contract';
47
+ import { RegisterAgentEventContract as MercuryRegisterAgentEventContract_v2020_12_25 } from './mercury/registerAgent.v2020_12_25.contract';
47
48
  import { RegisterConversationTopicsEventContract as MercuryRegisterConversationTopicsEventContract_v2020_12_25 } from './mercury/registerConversationTopics.v2020_12_25.contract';
48
49
  import { RegisterDeviceEventContract as MercuryRegisterDeviceEventContract_v2020_12_25 } from './mercury/registerDevice.v2020_12_25.contract';
49
50
  import { RegisterEventsEventContract as MercuryRegisterEventsEventContract_v2020_12_25 } from './mercury/registerEvents.v2020_12_25.contract';
@@ -505,6 +506,14 @@ declare const _default: ({
505
506
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.PublishSkillResponsePayloadSchema;
506
507
  };
507
508
  };
509
+ } | {
510
+ eventSignatures: {
511
+ 'register-agent::v2020_12_25': {
512
+ description: string;
513
+ emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterAgentEmitTargetAndPayloadSchema;
514
+ responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterAgentResponsePayloadSchema;
515
+ };
516
+ };
508
517
  } | {
509
518
  eventSignatures: {
510
519
  'register-conversation-topics::v2020_12_25': {
@@ -732,7 +741,6 @@ declare const _default: ({
732
741
  eventSignatures: {
733
742
  'update-location::v2020_12_25': {
734
743
  description: string;
735
- aiInstructions: string;
736
744
  emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateLocationEmitTargetAndPayloadSchema;
737
745
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateLocationResponsePayloadSchema;
738
746
  };
@@ -741,7 +749,6 @@ declare const _default: ({
741
749
  eventSignatures: {
742
750
  'update-organization::v2020_12_25': {
743
751
  description: string;
744
- aiInstructions: string;
745
752
  emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateOrganizationEmitTargetAndPayloadSchema;
746
753
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateOrgResponsePayloadSchema;
747
754
  };
@@ -838,6 +845,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
838
845
  'login::v2020_12_25': MercuryLoginEventContract_v2020_12_25['eventSignatures']['login::v2020_12_25'];
839
846
  'logout::v2020_12_25': MercuryLogoutEventContract_v2020_12_25['eventSignatures']['logout::v2020_12_25'];
840
847
  'publish-skill::v2020_12_25': MercuryPublishSkillEventContract_v2020_12_25['eventSignatures']['publish-skill::v2020_12_25'];
848
+ 'register-agent::v2020_12_25': MercuryRegisterAgentEventContract_v2020_12_25['eventSignatures']['register-agent::v2020_12_25'];
841
849
  'register-conversation-topics::v2020_12_25': MercuryRegisterConversationTopicsEventContract_v2020_12_25['eventSignatures']['register-conversation-topics::v2020_12_25'];
842
850
  'register-device::v2020_12_25': MercuryRegisterDeviceEventContract_v2020_12_25['eventSignatures']['register-device::v2020_12_25'];
843
851
  'register-events::v2020_12_25': MercuryRegisterEventsEventContract_v2020_12_25['eventSignatures']['register-events::v2020_12_25'];
@@ -49,6 +49,7 @@ const listSkills_v2020_12_25_contract_1 = __importDefault(require("./mercury/lis
49
49
  const login_v2020_12_25_contract_1 = __importDefault(require("./mercury/login.v2020_12_25.contract"));
50
50
  const logout_v2020_12_25_contract_1 = __importDefault(require("./mercury/logout.v2020_12_25.contract"));
51
51
  const publishSkill_v2020_12_25_contract_1 = __importDefault(require("./mercury/publishSkill.v2020_12_25.contract"));
52
+ const registerAgent_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerAgent.v2020_12_25.contract"));
52
53
  const registerConversationTopics_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerConversationTopics.v2020_12_25.contract"));
53
54
  const registerDevice_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerDevice.v2020_12_25.contract"));
54
55
  const registerEvents_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerEvents.v2020_12_25.contract"));
@@ -127,6 +128,7 @@ exports.default = [
127
128
  login_v2020_12_25_contract_1.default,
128
129
  logout_v2020_12_25_contract_1.default,
129
130
  publishSkill_v2020_12_25_contract_1.default,
131
+ registerAgent_v2020_12_25_contract_1.default,
130
132
  registerConversationTopics_v2020_12_25_contract_1.default,
131
133
  registerDevice_v2020_12_25_contract_1.default,
132
134
  registerEvents_v2020_12_25_contract_1.default,
@@ -11,7 +11,7 @@ const listLocationsEventContract = (0, mercury_types_1.buildEventContract)({
11
11
  eventSignatures: {
12
12
  'list-locations::v2020_12_25': {
13
13
  description: `Look through all locations.`,
14
- aiInstructions: `Lists all locations. It can be useful to ask if the user if they want to filter by organization and if so, have them select one first (list-organizations event).`,
14
+ aiInstructions: `Lists all locations. It can be useful to ask if the user if they want to filter by organization and if so, have them select one first (list-organizations event). If only 1 location comes back, you can autoselect it.`,
15
15
  emitPayloadSchema: listLocationsEmitTargetAndPayload_schema_1.default,
16
16
  responsePayloadSchema: listLocationsResponsePayload_schema_1.default,
17
17
  }
@@ -11,7 +11,7 @@ const listOrganizationsEventContract = (0, mercury_types_1.buildEventContract)({
11
11
  eventSignatures: {
12
12
  'list-organizations::v2020_12_25': {
13
13
  description: `Look through all organizations.`,
14
- aiInstructions: `Lists all organizations. You can ignore the target for this event as the payload is where all the useful filters are for our use cases.`,
14
+ aiInstructions: `Lists all organizations. You can ignore the target for this event as the payload is where all the useful filters are for our use cases. If another event requires an organizationId, you can use this event to have the user select one first. If there is only one organization, just auto-select it.`,
15
15
  emitPayloadSchema: listOrganizationsEmitTargetAndPayload_schema_1.default,
16
16
  responsePayloadSchema: listOrgsResponsePayload_schema_1.default,
17
17
  }
@@ -0,0 +1,12 @@
1
+ import './../../permissions/permissions.types';
2
+ declare const registerAgentEventContract: {
3
+ eventSignatures: {
4
+ 'register-agent::v2020_12_25': {
5
+ description: string;
6
+ emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterAgentEmitTargetAndPayloadSchema;
7
+ responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterAgentResponsePayloadSchema;
8
+ };
9
+ };
10
+ };
11
+ export default registerAgentEventContract;
12
+ export type RegisterAgentEventContract = typeof registerAgentEventContract;
@@ -0,0 +1,19 @@
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 registerAgentEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerAgentEmitTargetAndPayload.schema"));
8
+ const registerAgentResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema"));
9
+ const mercury_types_1 = require("@sprucelabs/mercury-types");
10
+ const registerAgentEventContract = (0, mercury_types_1.buildEventContract)({
11
+ eventSignatures: {
12
+ 'register-agent::v2020_12_25': {
13
+ description: `Register a new ai agent. You can name it, give it a role, etc.`,
14
+ emitPayloadSchema: registerAgentEmitTargetAndPayload_schema_1.default,
15
+ responsePayloadSchema: registerAgentResponsePayload_schema_1.default,
16
+ }
17
+ }
18
+ });
19
+ exports.default = registerAgentEventContract;
@@ -3,7 +3,6 @@ declare const updateLocationEventContract: {
3
3
  eventSignatures: {
4
4
  'update-location::v2020_12_25': {
5
5
  description: string;
6
- aiInstructions: string;
7
6
  emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateLocationEmitTargetAndPayloadSchema;
8
7
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateLocationResponsePayloadSchema;
9
8
  };
@@ -11,7 +11,6 @@ const updateLocationEventContract = (0, mercury_types_1.buildEventContract)({
11
11
  eventSignatures: {
12
12
  'update-location::v2020_12_25': {
13
13
  description: `Update a new location at your organization.`,
14
- aiInstructions: `This will allow someone to update any location where they work (if they have permissions). Since you need a location id, you will have to start with the list-locations event.`,
15
14
  emitPayloadSchema: updateLocationEmitTargetAndPayload_schema_1.default,
16
15
  responsePayloadSchema: updateLocationResponsePayload_schema_1.default,
17
16
  }
@@ -3,7 +3,6 @@ declare const updateOrganizationEventContract: {
3
3
  eventSignatures: {
4
4
  'update-organization::v2020_12_25': {
5
5
  description: string;
6
- aiInstructions: string;
7
6
  emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateOrganizationEmitTargetAndPayloadSchema;
8
7
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.UpdateOrgResponsePayloadSchema;
9
8
  };
@@ -11,7 +11,6 @@ const updateOrganizationEventContract = (0, mercury_types_1.buildEventContract)(
11
11
  eventSignatures: {
12
12
  'update-organization::v2020_12_25': {
13
13
  description: `Update your organization.`,
14
- aiInstructions: `This will allow someone to update any organization where they work (if they have permissions). Since you need an organization's id, you will have to start with the list-organizations event.`,
15
14
  emitPayloadSchema: updateOrganizationEmitTargetAndPayload_schema_1.default,
16
15
  responsePayloadSchema: updateOrgResponsePayload_schema_1.default,
17
16
  }
@@ -74,6 +74,9 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
74
74
  'can-check-if-skill-is-installed',
75
75
  'can-publish-own-skills'
76
76
  ];
77
+ 'agent-contract': [
78
+ 'can-register-platform-agent'
79
+ ];
77
80
  }
78
81
  }
79
82
  export interface PermissionContractMap {
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const agentSchema: SpruceSchemas.Mercury.v2020_12_25.AgentSchema;
3
+ export default agentSchema;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const agentSchema = {
5
+ id: 'agent',
6
+ version: 'v2020_12_25',
7
+ namespace: 'Mercury',
8
+ name: '',
9
+ fields: {
10
+ /** . */
11
+ 'id': {
12
+ type: 'id',
13
+ isRequired: true,
14
+ options: undefined
15
+ },
16
+ /** . */
17
+ 'name': {
18
+ type: 'text',
19
+ isRequired: true,
20
+ options: undefined
21
+ },
22
+ /** . */
23
+ 'systemPrompt': {
24
+ type: 'text',
25
+ isRequired: true,
26
+ options: undefined
27
+ },
28
+ }
29
+ };
30
+ schema_1.SchemaRegistry.getInstance().trackSchema(agentSchema);
31
+ exports.default = agentSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerAgentSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterAgentSchema;
3
+ export default registerAgentSchema;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const registerAgentSchema = {
5
+ id: 'registerAgent',
6
+ version: 'v2020_12_25',
7
+ namespace: 'Mercury',
8
+ name: '',
9
+ fields: {
10
+ /** Name. What is the name of your new AI Agent? */
11
+ 'name': {
12
+ label: 'Name',
13
+ type: 'text',
14
+ isRequired: true,
15
+ hint: 'What is the name of your new AI Agent?',
16
+ options: undefined
17
+ },
18
+ /** System Prompt. How should your AI Agent behave? This is injected into every conversation to guide its responses. */
19
+ 'systemPrompt': {
20
+ label: 'System Prompt',
21
+ type: 'text',
22
+ isRequired: true,
23
+ hint: 'How should your AI Agent behave? This is injected into every conversation to guide its responses.',
24
+ options: undefined
25
+ },
26
+ }
27
+ };
28
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerAgentSchema);
29
+ exports.default = registerAgentSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerAgentEmitPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterAgentEmitPayloadSchema;
3
+ export default registerAgentEmitPayloadSchema;
@@ -0,0 +1,23 @@
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 registerAgent_schema_1 = __importDefault(require("./registerAgent.schema"));
8
+ const registerAgentEmitPayloadSchema = {
9
+ id: 'registerAgentEmitPayload',
10
+ version: 'v2020_12_25',
11
+ namespace: 'Mercury',
12
+ name: '',
13
+ fields: {
14
+ /** . */
15
+ 'agent': {
16
+ type: 'schema',
17
+ isRequired: true,
18
+ options: { schema: registerAgent_schema_1.default, }
19
+ },
20
+ }
21
+ };
22
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerAgentEmitPayloadSchema);
23
+ exports.default = registerAgentEmitPayloadSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerAgentEmitTargetSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterAgentEmitTargetSchema;
3
+ export default registerAgentEmitTargetSchema;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const registerAgentEmitTargetSchema = {
5
+ id: 'registerAgentEmitTarget',
6
+ version: 'v2020_12_25',
7
+ namespace: 'Mercury',
8
+ name: '',
9
+ fields: {
10
+ /** . Coming soon... right now only platform agents are supported. */
11
+ 'organizationId': {
12
+ type: 'id',
13
+ hint: 'Coming soon... right now only platform agents are supported.',
14
+ options: undefined
15
+ },
16
+ }
17
+ };
18
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerAgentEmitTargetSchema);
19
+ exports.default = registerAgentEmitTargetSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerAgentEmitTargetAndPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterAgentEmitTargetAndPayloadSchema;
3
+ export default registerAgentEmitTargetAndPayloadSchema;
@@ -0,0 +1,36 @@
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 registerAgentEmitTarget_schema_1 = __importDefault(require("./registerAgentEmitTarget.schema"));
9
+ const registerAgentEmitPayload_schema_1 = __importDefault(require("./registerAgentEmitPayload.schema"));
10
+ const registerAgentEmitTargetAndPayloadSchema = {
11
+ id: 'registerAgentEmitTargetAndPayload',
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
+ options: { schema: registerAgentEmitTarget_schema_1.default, }
26
+ },
27
+ /** . */
28
+ 'payload': {
29
+ type: 'schema',
30
+ isRequired: true,
31
+ options: { schema: registerAgentEmitPayload_schema_1.default, }
32
+ },
33
+ }
34
+ };
35
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerAgentEmitTargetAndPayloadSchema);
36
+ exports.default = registerAgentEmitTargetAndPayloadSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const registerAgentResponsePayloadSchema: SpruceSchemas.Mercury.v2020_12_25.RegisterAgentResponsePayloadSchema;
3
+ export default registerAgentResponsePayloadSchema;
@@ -0,0 +1,23 @@
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 agent_schema_1 = __importDefault(require("./agent.schema"));
8
+ const registerAgentResponsePayloadSchema = {
9
+ id: 'registerAgentResponsePayload',
10
+ version: 'v2020_12_25',
11
+ namespace: 'Mercury',
12
+ name: '',
13
+ fields: {
14
+ /** . */
15
+ 'agent': {
16
+ type: 'schema',
17
+ isRequired: true,
18
+ options: { schema: agent_schema_1.default, }
19
+ },
20
+ }
21
+ };
22
+ schema_1.SchemaRegistry.getInstance().trackSchema(registerAgentResponsePayloadSchema);
23
+ exports.default = registerAgentResponsePayloadSchema;
@@ -18,6 +18,12 @@ const sendMessageMessagePayloadSchema = {
18
18
  hint: 'An arbitrary id that can be used to track this message when being sent and not yet assigned an Id.',
19
19
  options: undefined
20
20
  },
21
+ /** . If this message is a reply to another message, this is the id of that original message. */
22
+ 'inReplyToMessageId': {
23
+ type: 'id',
24
+ hint: 'If this message is a reply to another message, this is the id of that original message.',
25
+ options: undefined
26
+ },
21
27
  /** . */
22
28
  'classification': {
23
29
  type: 'select',