@sprucelabs/mercury-core-events 24.3.317 → 25.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,6 @@
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
- ];
7
- 'chatbot-contract': [
8
- 'can-register-chatbots'
9
- ];
10
4
  'events-contract': [
11
5
  'can-register-global-events'
12
6
  ];
@@ -76,6 +70,15 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
76
70
  'can-view-marketplace',
77
71
  'can-check-if-skill-is-installed'
78
72
  ];
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
+ ];
79
82
  }
80
83
  }
81
84
  export interface PermissionContractMap {
@@ -6,22 +6,13 @@ const doesHonorPermissionContractEmitPayloadSchema = {
6
6
  version: 'v2020_12_25',
7
7
  namespace: 'Mercury',
8
8
  name: '',
9
+ importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\'',],
9
10
  fields: {
10
11
  /** . */
11
12
  'id': {
12
- type: 'id',
13
+ type: 'raw',
13
14
  isRequired: true,
14
- options: undefined
15
- },
16
- /** . */
17
- 'skillId': {
18
- type: 'id',
19
- options: undefined
20
- },
21
- /** . */
22
- 'fqen': {
23
- type: 'text',
24
- options: undefined
15
+ options: { valueType: `MercuryTypes.PermissionContractId`, }
25
16
  },
26
17
  }
27
18
  };
@@ -2,6 +2,7 @@ export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/sch
2
2
  import { default as SchemaEntity } from '@sprucelabs/schema';
3
3
  import * as SpruceSchema from '@sprucelabs/schema';
4
4
  import '@sprucelabs/spruce-event-utils';
5
+ import * as MercuryTypes from '@sprucelabs/mercury-types';
5
6
  import '@sprucelabs/mercury-types';
6
7
  declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
7
8
  namespace SpruceSchemas.Mercury.v2020_12_25 {
@@ -5758,31 +5759,22 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5758
5759
  }
5759
5760
  namespace SpruceSchemas.Mercury.v2020_12_25 {
5760
5761
  interface DoesHonorPermissionContractEmitPayload {
5761
- 'id': string;
5762
- 'skillId'?: string | undefined | null;
5763
- 'fqen'?: string | undefined | null;
5762
+ 'id': (MercuryTypes.PermissionContractId);
5764
5763
  }
5765
5764
  interface DoesHonorPermissionContractEmitPayloadSchema extends SpruceSchema.Schema {
5766
5765
  id: 'doesHonorPermissionContractEmitPayload';
5767
5766
  version: 'v2020_12_25';
5768
5767
  namespace: 'Mercury';
5769
5768
  name: '';
5769
+ importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\''];
5770
5770
  fields: {
5771
5771
  /** . */
5772
5772
  'id': {
5773
- type: 'id';
5773
+ type: 'raw';
5774
5774
  isRequired: true;
5775
- options: undefined;
5776
- };
5777
- /** . */
5778
- 'skillId': {
5779
- type: 'id';
5780
- options: undefined;
5781
- };
5782
- /** . */
5783
- 'fqen': {
5784
- type: 'text';
5785
- options: undefined;
5775
+ options: {
5776
+ valueType: `MercuryTypes.PermissionContractId`;
5777
+ };
5786
5778
  };
5787
5779
  };
5788
5780
  }
@@ -1,12 +1,6 @@
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
- ];
7
- 'chatbot-contract': [
8
- 'can-register-chatbots'
9
- ];
10
4
  'events-contract': [
11
5
  'can-register-global-events'
12
6
  ];
@@ -76,6 +70,15 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
76
70
  'can-view-marketplace',
77
71
  'can-check-if-skill-is-installed'
78
72
  ];
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
+ ];
79
82
  }
80
83
  }
81
84
  export interface PermissionContractMap {
@@ -4,22 +4,13 @@ const doesHonorPermissionContractEmitPayloadSchema = {
4
4
  version: 'v2020_12_25',
5
5
  namespace: 'Mercury',
6
6
  name: '',
7
+ importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\'',],
7
8
  fields: {
8
9
  /** . */
9
10
  'id': {
10
- type: 'id',
11
+ type: 'raw',
11
12
  isRequired: true,
12
- options: undefined
13
- },
14
- /** . */
15
- 'skillId': {
16
- type: 'id',
17
- options: undefined
18
- },
19
- /** . */
20
- 'fqen': {
21
- type: 'text',
22
- options: undefined
13
+ options: { valueType: `MercuryTypes.PermissionContractId`, }
23
14
  },
24
15
  }
25
16
  };
@@ -2,6 +2,7 @@ export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/sch
2
2
  import { default as SchemaEntity } from '@sprucelabs/schema';
3
3
  import * as SpruceSchema from '@sprucelabs/schema';
4
4
  import '@sprucelabs/spruce-event-utils';
5
+ import * as MercuryTypes from '@sprucelabs/mercury-types';
5
6
  import '@sprucelabs/mercury-types';
6
7
  declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
7
8
  namespace SpruceSchemas.Mercury.v2020_12_25 {
@@ -5758,31 +5759,22 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5758
5759
  }
5759
5760
  namespace SpruceSchemas.Mercury.v2020_12_25 {
5760
5761
  interface DoesHonorPermissionContractEmitPayload {
5761
- 'id': string;
5762
- 'skillId'?: string | undefined | null;
5763
- 'fqen'?: string | undefined | null;
5762
+ 'id': (MercuryTypes.PermissionContractId);
5764
5763
  }
5765
5764
  interface DoesHonorPermissionContractEmitPayloadSchema extends SpruceSchema.Schema {
5766
5765
  id: 'doesHonorPermissionContractEmitPayload';
5767
5766
  version: 'v2020_12_25';
5768
5767
  namespace: 'Mercury';
5769
5768
  name: '';
5769
+ importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\''];
5770
5770
  fields: {
5771
5771
  /** . */
5772
5772
  'id': {
5773
- type: 'id';
5773
+ type: 'raw';
5774
5774
  isRequired: true;
5775
- options: undefined;
5776
- };
5777
- /** . */
5778
- 'skillId': {
5779
- type: 'id';
5780
- options: undefined;
5781
- };
5782
- /** . */
5783
- 'fqen': {
5784
- type: 'text';
5785
- options: undefined;
5775
+ options: {
5776
+ valueType: `MercuryTypes.PermissionContractId`;
5777
+ };
5786
5778
  };
5787
5779
  };
5788
5780
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprucelabs/mercury-core-events",
3
- "version": "24.3.317",
3
+ "version": "25.0.1",
4
4
  "description": "Events Mercury provides out of the box.",
5
5
  "skill": {
6
6
  "namespace": "mercury-core-events",
@@ -58,12 +58,12 @@
58
58
  "watch.tsc": "tsc -w"
59
59
  },
60
60
  "devDependencies": {
61
- "@sprucelabs/esm-postbuild": "^6.0.491",
62
- "@sprucelabs/jest-json-reporter": "^8.0.509",
63
- "@sprucelabs/resolve-path-aliases": "^2.0.487",
61
+ "@sprucelabs/esm-postbuild": "^6.0.492",
62
+ "@sprucelabs/jest-json-reporter": "^8.0.510",
63
+ "@sprucelabs/resolve-path-aliases": "^2.0.488",
64
64
  "@sprucelabs/semantic-release": "^5.0.2",
65
- "@sprucelabs/test": "^9.0.54",
66
- "@types/node": "^22.7.8",
65
+ "@sprucelabs/test": "^9.0.55",
66
+ "@types/node": "^22.7.9",
67
67
  "chokidar-cli": "^3.0.0",
68
68
  "eslint": "^9.13.0",
69
69
  "eslint-config-spruce": "^11.2.26",
@@ -76,10 +76,10 @@
76
76
  "typescript": "^5.6.3"
77
77
  },
78
78
  "dependencies": {
79
- "@sprucelabs/mercury-types": "^47.0.560",
80
- "@sprucelabs/schema": "^30.0.519",
81
- "@sprucelabs/spruce-core-schemas": "^40.1.504",
82
- "@sprucelabs/spruce-event-utils": "^40.1.279"
79
+ "@sprucelabs/mercury-types": "^47.0.561",
80
+ "@sprucelabs/schema": "^30.0.520",
81
+ "@sprucelabs/spruce-core-schemas": "^40.1.505",
82
+ "@sprucelabs/spruce-event-utils": "^40.1.281"
83
83
  },
84
84
  "jest": {
85
85
  "testRunner": "jest-circus/runner",