@sprucelabs/mercury-core-events 27.4.0 → 27.4.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.
@@ -1,6 +1,10 @@
1
1
  import '@sprucelabs/mercury-types';
2
2
  declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
3
3
  interface PermissionContractMap {
4
+ 'agent-contract': [
5
+ 'can-register-platform-agent',
6
+ 'can-get-platform-agent'
7
+ ];
4
8
  'authorizer-contract': [
5
9
  'can-update-others-authorizer-status'
6
10
  ];
@@ -74,10 +78,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
74
78
  'can-check-if-skill-is-installed',
75
79
  'can-publish-own-skills'
76
80
  ];
77
- 'agent-contract': [
78
- 'can-register-platform-agent',
79
- 'can-get-platform-agent'
80
- ];
81
81
  }
82
82
  }
83
83
  export interface PermissionContractMap {
@@ -31,6 +31,11 @@ const sendMessageMessagePayloadSchema = {
31
31
  options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
32
32
  },
33
33
  /** . */
34
+ 'subject': {
35
+ type: 'text',
36
+ options: undefined
37
+ },
38
+ /** . */
34
39
  'body': {
35
40
  type: 'text',
36
41
  isRequired: true,
@@ -7485,6 +7485,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7485
7485
  /** . If this message is a reply to another message, this is the id of that original message. */
7486
7486
  'inReplyToMessageId'?: string | undefined | null;
7487
7487
  'classification': ("auth" | "transactional" | "promotional" | "incoming");
7488
+ 'subject'?: string | undefined | null;
7488
7489
  'body': string;
7489
7490
  'context'?: (Record<string, any>) | undefined | null;
7490
7491
  'topicId'?: string | undefined | null;
@@ -7530,6 +7531,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7530
7531
  };
7531
7532
  };
7532
7533
  /** . */
7534
+ 'subject': {
7535
+ type: 'text';
7536
+ options: undefined;
7537
+ };
7538
+ /** . */
7533
7539
  'body': {
7534
7540
  type: 'text';
7535
7541
  isRequired: true;
@@ -1,6 +1,10 @@
1
1
  import '@sprucelabs/mercury-types';
2
2
  declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
3
3
  interface PermissionContractMap {
4
+ 'agent-contract': [
5
+ 'can-register-platform-agent',
6
+ 'can-get-platform-agent'
7
+ ];
4
8
  'authorizer-contract': [
5
9
  'can-update-others-authorizer-status'
6
10
  ];
@@ -74,10 +78,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
74
78
  'can-check-if-skill-is-installed',
75
79
  'can-publish-own-skills'
76
80
  ];
77
- 'agent-contract': [
78
- 'can-register-platform-agent',
79
- 'can-get-platform-agent'
80
- ];
81
81
  }
82
82
  }
83
83
  export interface PermissionContractMap {
@@ -26,6 +26,11 @@ const sendMessageMessagePayloadSchema = {
26
26
  options: { choices: [{ "value": "auth", "label": "Auth" }, { "value": "transactional", "label": "transactional" }, { "value": "promotional", "label": "Promotional" }, { "value": "incoming", "label": "incoming" }], }
27
27
  },
28
28
  /** . */
29
+ 'subject': {
30
+ type: 'text',
31
+ options: undefined
32
+ },
33
+ /** . */
29
34
  'body': {
30
35
  type: 'text',
31
36
  isRequired: true,
@@ -7485,6 +7485,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7485
7485
  /** . If this message is a reply to another message, this is the id of that original message. */
7486
7486
  'inReplyToMessageId'?: string | undefined | null;
7487
7487
  'classification': ("auth" | "transactional" | "promotional" | "incoming");
7488
+ 'subject'?: string | undefined | null;
7488
7489
  'body': string;
7489
7490
  'context'?: (Record<string, any>) | undefined | null;
7490
7491
  'topicId'?: string | undefined | null;
@@ -7530,6 +7531,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
7530
7531
  };
7531
7532
  };
7532
7533
  /** . */
7534
+ 'subject': {
7535
+ type: 'text';
7536
+ options: undefined;
7537
+ };
7538
+ /** . */
7533
7539
  'body': {
7534
7540
  type: 'text';
7535
7541
  isRequired: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprucelabs/mercury-core-events",
3
- "version": "27.4.0",
3
+ "version": "27.4.2",
4
4
  "description": "Events Mercury provides out of the box.",
5
5
  "skill": {
6
6
  "namespace": "mercury-core-events",
@@ -76,10 +76,10 @@
76
76
  "typescript": "^5.9.3"
77
77
  },
78
78
  "dependencies": {
79
- "@sprucelabs/mercury-types": "^48.0.109",
79
+ "@sprucelabs/mercury-types": "^48.0.111",
80
80
  "@sprucelabs/schema": "^32.1.58",
81
- "@sprucelabs/spruce-core-schemas": "^41.3.5",
82
- "@sprucelabs/spruce-event-utils": "^41.0.122"
81
+ "@sprucelabs/spruce-core-schemas": "^41.3.6",
82
+ "@sprucelabs/spruce-event-utils": "^41.0.123"
83
83
  },
84
84
  "jest": {
85
85
  "testRunner": "jest-circus/runner",