@sprucelabs/mercury-core-events 25.1.0 → 25.1.2

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.
@@ -10,8 +10,8 @@ const mercury_types_1 = require("@sprucelabs/mercury-types");
10
10
  const getPersonEventContract = (0, mercury_types_1.buildEventContract)({
11
11
  eventSignatures: {
12
12
  'get-person::v2020_12_25': {
13
- description: `Get a person by id.`,
14
- aiInstructions: `Get details about the logged in person. The API right now won't let someone get another person's profile, so ignore the target for now. Make sure to pass payload.shouldIncludePrivateFields as true during all conversations.`,
13
+ description: `Get details about a person (or yourself)`,
14
+ aiInstructions: `Get details about the logged in person. The API right now won't let someone get another person's profile, so ignore the target for now and don't mention getting a person by id. Make sure to pass payload.shouldIncludePrivateFields as true during all conversations.`,
15
15
  emitPayloadSchema: getPersonEmitTargetAndPayload_schema_1.default,
16
16
  responsePayloadSchema: getPersonResponsePayload_schema_1.default,
17
17
  }
@@ -1,6 +1,9 @@
1
1
  import '@sprucelabs/mercury-types';
2
2
  declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
3
3
  interface PermissionContractMap {
4
+ 'authorizer-contract': [
5
+ 'can-update-others-authorizer-status'
6
+ ];
4
7
  'events-contract': [
5
8
  'can-register-global-events'
6
9
  ];
@@ -70,15 +73,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
70
73
  'can-view-marketplace',
71
74
  'can-check-if-skill-is-installed'
72
75
  ];
73
- 'chat-bot-contract': [
74
- 'can-register-chat-bots'
75
- ];
76
- 'chatbot-contract': [
77
- 'can-register-chatbots'
78
- ];
79
- 'authorizer-contract': [
80
- 'can-update-others-authorizer-status'
81
- ];
82
76
  }
83
77
  }
84
78
  export interface PermissionContractMap {
@@ -5,8 +5,8 @@ import { buildEventContract } from '@sprucelabs/mercury-types';
5
5
  const getPersonEventContract = buildEventContract({
6
6
  eventSignatures: {
7
7
  'get-person::v2020_12_25': {
8
- description: `Get a person by id.`,
9
- aiInstructions: `Get details about the logged in person. The API right now won't let someone get another person's profile, so ignore the target for now. Make sure to pass payload.shouldIncludePrivateFields as true during all conversations.`,
8
+ description: `Get details about a person (or yourself)`,
9
+ aiInstructions: `Get details about the logged in person. The API right now won't let someone get another person's profile, so ignore the target for now and don't mention getting a person by id. Make sure to pass payload.shouldIncludePrivateFields as true during all conversations.`,
10
10
  emitPayloadSchema: getPersonEmitTargetAndPayloadSchema,
11
11
  responsePayloadSchema: getPersonResponsePayloadSchema,
12
12
  }
@@ -1,6 +1,9 @@
1
1
  import '@sprucelabs/mercury-types';
2
2
  declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
3
3
  interface PermissionContractMap {
4
+ 'authorizer-contract': [
5
+ 'can-update-others-authorizer-status'
6
+ ];
4
7
  'events-contract': [
5
8
  'can-register-global-events'
6
9
  ];
@@ -70,15 +73,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
70
73
  'can-view-marketplace',
71
74
  'can-check-if-skill-is-installed'
72
75
  ];
73
- 'chat-bot-contract': [
74
- 'can-register-chat-bots'
75
- ];
76
- 'chatbot-contract': [
77
- 'can-register-chatbots'
78
- ];
79
- 'authorizer-contract': [
80
- 'can-update-others-authorizer-status'
81
- ];
82
76
  }
83
77
  }
84
78
  export interface PermissionContractMap {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprucelabs/mercury-core-events",
3
- "version": "25.1.0",
3
+ "version": "25.1.2",
4
4
  "description": "Events Mercury provides out of the box.",
5
5
  "skill": {
6
6
  "namespace": "mercury-core-events",
@@ -79,7 +79,7 @@
79
79
  "@sprucelabs/mercury-types": "^47.2.0",
80
80
  "@sprucelabs/schema": "^31.0.19",
81
81
  "@sprucelabs/spruce-core-schemas": "^40.1.605",
82
- "@sprucelabs/spruce-event-utils": "^40.1.394"
82
+ "@sprucelabs/spruce-event-utils": "^40.1.395"
83
83
  },
84
84
  "jest": {
85
85
  "testRunner": "jest-circus/runner",