@sprucelabs/mercury-core-events 27.0.125 → 27.1.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 +10 -0
- package/build/.spruce/events/events.contract.js +2 -0
- package/build/.spruce/events/mercury/publishSkill.v2020_12_25.contract.d.ts +12 -0
- package/build/.spruce/events/mercury/publishSkill.v2020_12_25.contract.js +19 -0
- package/build/.spruce/permissions/permissions.types.d.ts +2 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitPayload.schema.js +18 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTarget.schema.js +19 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTargetAndPayload.schema.js +36 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishSkillResponsePayload.schema.js +23 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishedSkill.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/publishedSkill.schema.js +66 -0
- package/build/.spruce/schemas/schemas.types.d.ts +260 -74
- package/build/esm/.spruce/events/events.contract.d.ts +10 -0
- package/build/esm/.spruce/events/events.contract.js +2 -0
- package/build/esm/.spruce/events/mercury/publishSkill.v2020_12_25.contract.d.ts +12 -0
- package/build/esm/.spruce/events/mercury/publishSkill.v2020_12_25.contract.js +14 -0
- package/build/esm/.spruce/permissions/permissions.types.d.ts +2 -1
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitPayload.schema.js +16 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTarget.schema.js +17 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillEmitTargetAndPayload.schema.js +31 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishSkillResponsePayload.schema.js +18 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishedSkill.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/publishedSkill.schema.js +64 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +260 -74
- package/package.json +12 -12
|
@@ -43,6 +43,7 @@ import { ListSecurityQuestionsEventContract as MercuryListSecurityQuestionsEvent
|
|
|
43
43
|
import { ListSkillsEventContract as MercuryListSkillsEventContract_v2020_12_25 } from './mercury/listSkills.v2020_12_25.contract';
|
|
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
|
+
import { PublishSkillEventContract as MercuryPublishSkillEventContract_v2020_12_25 } from './mercury/publishSkill.v2020_12_25.contract';
|
|
46
47
|
import { RegisterConversationTopicsEventContract as MercuryRegisterConversationTopicsEventContract_v2020_12_25 } from './mercury/registerConversationTopics.v2020_12_25.contract';
|
|
47
48
|
import { RegisterDeviceEventContract as MercuryRegisterDeviceEventContract_v2020_12_25 } from './mercury/registerDevice.v2020_12_25.contract';
|
|
48
49
|
import { RegisterEventsEventContract as MercuryRegisterEventsEventContract_v2020_12_25 } from './mercury/registerEvents.v2020_12_25.contract';
|
|
@@ -496,6 +497,14 @@ declare const _default: ({
|
|
|
496
497
|
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.LogoutResponsePayloadSchema;
|
|
497
498
|
};
|
|
498
499
|
};
|
|
500
|
+
} | {
|
|
501
|
+
eventSignatures: {
|
|
502
|
+
'publish-skill::v2020_12_25': {
|
|
503
|
+
description: string;
|
|
504
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitTargetAndPayloadSchema;
|
|
505
|
+
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.PublishSkillResponsePayloadSchema;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
499
508
|
} | {
|
|
500
509
|
eventSignatures: {
|
|
501
510
|
'register-conversation-topics::v2020_12_25': {
|
|
@@ -828,6 +837,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
828
837
|
'list-skills::v2020_12_25': MercuryListSkillsEventContract_v2020_12_25['eventSignatures']['list-skills::v2020_12_25'];
|
|
829
838
|
'login::v2020_12_25': MercuryLoginEventContract_v2020_12_25['eventSignatures']['login::v2020_12_25'];
|
|
830
839
|
'logout::v2020_12_25': MercuryLogoutEventContract_v2020_12_25['eventSignatures']['logout::v2020_12_25'];
|
|
840
|
+
'publish-skill::v2020_12_25': MercuryPublishSkillEventContract_v2020_12_25['eventSignatures']['publish-skill::v2020_12_25'];
|
|
831
841
|
'register-conversation-topics::v2020_12_25': MercuryRegisterConversationTopicsEventContract_v2020_12_25['eventSignatures']['register-conversation-topics::v2020_12_25'];
|
|
832
842
|
'register-device::v2020_12_25': MercuryRegisterDeviceEventContract_v2020_12_25['eventSignatures']['register-device::v2020_12_25'];
|
|
833
843
|
'register-events::v2020_12_25': MercuryRegisterEventsEventContract_v2020_12_25['eventSignatures']['register-events::v2020_12_25'];
|
|
@@ -48,6 +48,7 @@ const listSecurityQuestions_v2020_12_25_contract_1 = __importDefault(require("./
|
|
|
48
48
|
const listSkills_v2020_12_25_contract_1 = __importDefault(require("./mercury/listSkills.v2020_12_25.contract"));
|
|
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
|
+
const publishSkill_v2020_12_25_contract_1 = __importDefault(require("./mercury/publishSkill.v2020_12_25.contract"));
|
|
51
52
|
const registerConversationTopics_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerConversationTopics.v2020_12_25.contract"));
|
|
52
53
|
const registerDevice_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerDevice.v2020_12_25.contract"));
|
|
53
54
|
const registerEvents_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerEvents.v2020_12_25.contract"));
|
|
@@ -125,6 +126,7 @@ exports.default = [
|
|
|
125
126
|
listSkills_v2020_12_25_contract_1.default,
|
|
126
127
|
login_v2020_12_25_contract_1.default,
|
|
127
128
|
logout_v2020_12_25_contract_1.default,
|
|
129
|
+
publishSkill_v2020_12_25_contract_1.default,
|
|
128
130
|
registerConversationTopics_v2020_12_25_contract_1.default,
|
|
129
131
|
registerDevice_v2020_12_25_contract_1.default,
|
|
130
132
|
registerEvents_v2020_12_25_contract_1.default,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './../../permissions/permissions.types';
|
|
2
|
+
declare const publishSkillEventContract: {
|
|
3
|
+
eventSignatures: {
|
|
4
|
+
'publish-skill::v2020_12_25': {
|
|
5
|
+
description: string;
|
|
6
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitTargetAndPayloadSchema;
|
|
7
|
+
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.PublishSkillResponsePayloadSchema;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default publishSkillEventContract;
|
|
12
|
+
export type PublishSkillEventContract = typeof publishSkillEventContract;
|
|
@@ -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 publishSkillEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/publishSkillEmitTargetAndPayload.schema"));
|
|
8
|
+
const publishSkillResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/publishSkillResponsePayload.schema"));
|
|
9
|
+
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
10
|
+
const publishSkillEventContract = (0, mercury_types_1.buildEventContract)({
|
|
11
|
+
eventSignatures: {
|
|
12
|
+
'publish-skill::v2020_12_25': {
|
|
13
|
+
description: `Publish a skill so others can find it and install it.`,
|
|
14
|
+
emitPayloadSchema: publishSkillEmitTargetAndPayload_schema_1.default,
|
|
15
|
+
responsePayloadSchema: publishSkillResponsePayload_schema_1.default,
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
exports.default = publishSkillEventContract;
|
|
@@ -71,7 +71,8 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
71
71
|
'can-install-skills',
|
|
72
72
|
'can-uninstall-skills',
|
|
73
73
|
'can-view-marketplace',
|
|
74
|
-
'can-check-if-skill-is-installed'
|
|
74
|
+
'can-check-if-skill-is-installed',
|
|
75
|
+
'can-publish-own-skills'
|
|
75
76
|
];
|
|
76
77
|
}
|
|
77
78
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const publishSkillEmitPayloadSchema = {
|
|
5
|
+
id: 'publishSkillEmitPayload',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'canBeInstalled': {
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
options: undefined
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(publishSkillEmitPayloadSchema);
|
|
18
|
+
exports.default = publishSkillEmitPayloadSchema;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const publishSkillEmitTargetSchema = {
|
|
5
|
+
id: 'publishSkillEmitTarget',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'skillId': {
|
|
12
|
+
type: 'id',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(publishSkillEmitTargetSchema);
|
|
19
|
+
exports.default = publishSkillEmitTargetSchema;
|
|
@@ -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 publishSkillEmitTarget_schema_1 = __importDefault(require("./publishSkillEmitTarget.schema"));
|
|
9
|
+
const publishSkillEmitPayload_schema_1 = __importDefault(require("./publishSkillEmitPayload.schema"));
|
|
10
|
+
const publishSkillEmitTargetAndPayloadSchema = {
|
|
11
|
+
id: 'publishSkillEmitTargetAndPayload',
|
|
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
|
+
isRequired: true,
|
|
26
|
+
options: { schema: publishSkillEmitTarget_schema_1.default, }
|
|
27
|
+
},
|
|
28
|
+
/** . */
|
|
29
|
+
'payload': {
|
|
30
|
+
type: 'schema',
|
|
31
|
+
options: { schema: publishSkillEmitPayload_schema_1.default, }
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(publishSkillEmitTargetAndPayloadSchema);
|
|
36
|
+
exports.default = publishSkillEmitTargetAndPayloadSchema;
|
|
@@ -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 publishedSkill_schema_1 = __importDefault(require("./publishedSkill.schema"));
|
|
8
|
+
const publishSkillResponsePayloadSchema = {
|
|
9
|
+
id: 'publishSkillResponsePayload',
|
|
10
|
+
version: 'v2020_12_25',
|
|
11
|
+
namespace: 'Mercury',
|
|
12
|
+
name: '',
|
|
13
|
+
fields: {
|
|
14
|
+
/** . */
|
|
15
|
+
'skill': {
|
|
16
|
+
type: 'schema',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: { schema: publishedSkill_schema_1.default, }
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(publishSkillResponsePayloadSchema);
|
|
23
|
+
exports.default = publishSkillResponsePayloadSchema;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const publishedSkillSchema = {
|
|
5
|
+
id: 'publishedSkill',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** Id. */
|
|
11
|
+
'id': {
|
|
12
|
+
label: 'Id',
|
|
13
|
+
type: 'id',
|
|
14
|
+
isRequired: true,
|
|
15
|
+
options: undefined
|
|
16
|
+
},
|
|
17
|
+
/** Name. */
|
|
18
|
+
'name': {
|
|
19
|
+
label: 'Name',
|
|
20
|
+
type: 'text',
|
|
21
|
+
isRequired: true,
|
|
22
|
+
options: undefined
|
|
23
|
+
},
|
|
24
|
+
/** Description. */
|
|
25
|
+
'description': {
|
|
26
|
+
label: 'Description',
|
|
27
|
+
type: 'text',
|
|
28
|
+
options: undefined
|
|
29
|
+
},
|
|
30
|
+
/** Namespace. */
|
|
31
|
+
'slug': {
|
|
32
|
+
label: 'Namespace',
|
|
33
|
+
type: 'text',
|
|
34
|
+
isRequired: true,
|
|
35
|
+
options: undefined
|
|
36
|
+
},
|
|
37
|
+
/** Published. Does this skill show up in the marketplace and can other devs use it as a dependency? */
|
|
38
|
+
'isPublished': {
|
|
39
|
+
label: 'Published',
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
hint: 'Does this skill show up in the marketplace and can other devs use it as a dependency?',
|
|
42
|
+
options: undefined
|
|
43
|
+
},
|
|
44
|
+
/** Global. Does this skill require needing to be installed anywhere. */
|
|
45
|
+
'canBeInstalled': {
|
|
46
|
+
label: 'Global',
|
|
47
|
+
type: 'boolean',
|
|
48
|
+
hint: 'Does this skill require needing to be installed anywhere.',
|
|
49
|
+
defaultValue: true,
|
|
50
|
+
options: undefined
|
|
51
|
+
},
|
|
52
|
+
/** . */
|
|
53
|
+
'dateCreated': {
|
|
54
|
+
type: 'dateTime',
|
|
55
|
+
isRequired: true,
|
|
56
|
+
options: undefined
|
|
57
|
+
},
|
|
58
|
+
/** . */
|
|
59
|
+
'dateDeleted': {
|
|
60
|
+
type: 'dateTime',
|
|
61
|
+
options: undefined
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(publishedSkillSchema);
|
|
66
|
+
exports.default = publishedSkillSchema;
|
|
@@ -5,6 +5,39 @@ import '@sprucelabs/spruce-event-utils';
|
|
|
5
5
|
import * as MercuryTypes from '@sprucelabs/mercury-types';
|
|
6
6
|
import '@sprucelabs/mercury-types';
|
|
7
7
|
declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
|
|
8
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
9
|
+
interface DidInstallEmitTargetAndPayload {
|
|
10
|
+
/** Source. */
|
|
11
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
12
|
+
'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
|
|
13
|
+
}
|
|
14
|
+
interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
15
|
+
id: 'didInstallEmitTargetAndPayload';
|
|
16
|
+
version: 'v2020_12_25';
|
|
17
|
+
namespace: 'Mercury';
|
|
18
|
+
name: '';
|
|
19
|
+
fields: {
|
|
20
|
+
/** Source. */
|
|
21
|
+
'source': {
|
|
22
|
+
label: 'Source';
|
|
23
|
+
type: 'schema';
|
|
24
|
+
options: {
|
|
25
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/** . */
|
|
29
|
+
'target': {
|
|
30
|
+
type: 'schema';
|
|
31
|
+
isRequired: true;
|
|
32
|
+
options: {
|
|
33
|
+
schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
|
|
39
|
+
}
|
|
40
|
+
}
|
|
8
41
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
9
42
|
interface DidUpdatePersonEmitTargetAndPayload {
|
|
10
43
|
/** Source. */
|
|
@@ -74,39 +107,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
74
107
|
interface DidInstallEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema> {
|
|
75
108
|
}
|
|
76
109
|
}
|
|
77
|
-
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
78
|
-
interface DidInstallEmitTargetAndPayload {
|
|
79
|
-
/** Source. */
|
|
80
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
81
|
-
'target': SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTarget;
|
|
82
|
-
}
|
|
83
|
-
interface DidInstallEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
84
|
-
id: 'didInstallEmitTargetAndPayload';
|
|
85
|
-
version: 'v2020_12_25';
|
|
86
|
-
namespace: 'Mercury';
|
|
87
|
-
name: '';
|
|
88
|
-
fields: {
|
|
89
|
-
/** Source. */
|
|
90
|
-
'source': {
|
|
91
|
-
label: 'Source';
|
|
92
|
-
type: 'schema';
|
|
93
|
-
options: {
|
|
94
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
/** . */
|
|
98
|
-
'target': {
|
|
99
|
-
type: 'schema';
|
|
100
|
-
isRequired: true;
|
|
101
|
-
options: {
|
|
102
|
-
schema: SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetSchema;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
interface DidInstallEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.DidInstallEmitTargetAndPayloadSchema> {
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
110
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
111
111
|
interface DidInstallResponsePayload {
|
|
112
112
|
}
|
|
@@ -5872,6 +5872,192 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
5872
5872
|
interface LogoutResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.LogoutResponsePayloadSchema> {
|
|
5873
5873
|
}
|
|
5874
5874
|
}
|
|
5875
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
5876
|
+
interface PublishSkillEmitTarget {
|
|
5877
|
+
'skillId': string;
|
|
5878
|
+
}
|
|
5879
|
+
interface PublishSkillEmitTargetSchema extends SpruceSchema.Schema {
|
|
5880
|
+
id: 'publishSkillEmitTarget';
|
|
5881
|
+
version: 'v2020_12_25';
|
|
5882
|
+
namespace: 'Mercury';
|
|
5883
|
+
name: '';
|
|
5884
|
+
fields: {
|
|
5885
|
+
/** . */
|
|
5886
|
+
'skillId': {
|
|
5887
|
+
type: 'id';
|
|
5888
|
+
isRequired: true;
|
|
5889
|
+
options: undefined;
|
|
5890
|
+
};
|
|
5891
|
+
};
|
|
5892
|
+
}
|
|
5893
|
+
interface PublishSkillEmitTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitTargetSchema> {
|
|
5894
|
+
}
|
|
5895
|
+
}
|
|
5896
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
5897
|
+
interface PublishSkillEmitPayload {
|
|
5898
|
+
'canBeInstalled'?: boolean | undefined | null;
|
|
5899
|
+
}
|
|
5900
|
+
interface PublishSkillEmitPayloadSchema extends SpruceSchema.Schema {
|
|
5901
|
+
id: 'publishSkillEmitPayload';
|
|
5902
|
+
version: 'v2020_12_25';
|
|
5903
|
+
namespace: 'Mercury';
|
|
5904
|
+
name: '';
|
|
5905
|
+
fields: {
|
|
5906
|
+
/** . */
|
|
5907
|
+
'canBeInstalled': {
|
|
5908
|
+
type: 'boolean';
|
|
5909
|
+
options: undefined;
|
|
5910
|
+
};
|
|
5911
|
+
};
|
|
5912
|
+
}
|
|
5913
|
+
interface PublishSkillEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitPayloadSchema> {
|
|
5914
|
+
}
|
|
5915
|
+
}
|
|
5916
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
5917
|
+
interface PublishSkillEmitTargetAndPayload {
|
|
5918
|
+
/** Source. */
|
|
5919
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
5920
|
+
'target': SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitTarget;
|
|
5921
|
+
'payload'?: SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitPayload | undefined | null;
|
|
5922
|
+
}
|
|
5923
|
+
interface PublishSkillEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
5924
|
+
id: 'publishSkillEmitTargetAndPayload';
|
|
5925
|
+
version: 'v2020_12_25';
|
|
5926
|
+
namespace: 'Mercury';
|
|
5927
|
+
name: '';
|
|
5928
|
+
fields: {
|
|
5929
|
+
/** Source. */
|
|
5930
|
+
'source': {
|
|
5931
|
+
label: 'Source';
|
|
5932
|
+
type: 'schema';
|
|
5933
|
+
options: {
|
|
5934
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
5935
|
+
};
|
|
5936
|
+
};
|
|
5937
|
+
/** . */
|
|
5938
|
+
'target': {
|
|
5939
|
+
type: 'schema';
|
|
5940
|
+
isRequired: true;
|
|
5941
|
+
options: {
|
|
5942
|
+
schema: SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitTargetSchema;
|
|
5943
|
+
};
|
|
5944
|
+
};
|
|
5945
|
+
/** . */
|
|
5946
|
+
'payload': {
|
|
5947
|
+
type: 'schema';
|
|
5948
|
+
options: {
|
|
5949
|
+
schema: SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitPayloadSchema;
|
|
5950
|
+
};
|
|
5951
|
+
};
|
|
5952
|
+
};
|
|
5953
|
+
}
|
|
5954
|
+
interface PublishSkillEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.PublishSkillEmitTargetAndPayloadSchema> {
|
|
5955
|
+
}
|
|
5956
|
+
}
|
|
5957
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
5958
|
+
interface PublishedSkill {
|
|
5959
|
+
/** Id. */
|
|
5960
|
+
'id': string;
|
|
5961
|
+
/** Name. */
|
|
5962
|
+
'name': string;
|
|
5963
|
+
/** Description. */
|
|
5964
|
+
'description'?: string | undefined | null;
|
|
5965
|
+
/** Namespace. */
|
|
5966
|
+
'slug': string;
|
|
5967
|
+
/** Published. Does this skill show up in the marketplace and can other devs use it as a dependency? */
|
|
5968
|
+
'isPublished'?: boolean | undefined | null;
|
|
5969
|
+
/** Global. Does this skill require needing to be installed anywhere. */
|
|
5970
|
+
'canBeInstalled'?: boolean | undefined | null;
|
|
5971
|
+
'dateCreated': SpruceSchema.DateTimeFieldValue;
|
|
5972
|
+
'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
|
|
5973
|
+
}
|
|
5974
|
+
interface PublishedSkillSchema extends SpruceSchema.Schema {
|
|
5975
|
+
id: 'publishedSkill';
|
|
5976
|
+
version: 'v2020_12_25';
|
|
5977
|
+
namespace: 'Mercury';
|
|
5978
|
+
name: '';
|
|
5979
|
+
fields: {
|
|
5980
|
+
/** Id. */
|
|
5981
|
+
'id': {
|
|
5982
|
+
label: 'Id';
|
|
5983
|
+
type: 'id';
|
|
5984
|
+
isRequired: true;
|
|
5985
|
+
options: undefined;
|
|
5986
|
+
};
|
|
5987
|
+
/** Name. */
|
|
5988
|
+
'name': {
|
|
5989
|
+
label: 'Name';
|
|
5990
|
+
type: 'text';
|
|
5991
|
+
isRequired: true;
|
|
5992
|
+
options: undefined;
|
|
5993
|
+
};
|
|
5994
|
+
/** Description. */
|
|
5995
|
+
'description': {
|
|
5996
|
+
label: 'Description';
|
|
5997
|
+
type: 'text';
|
|
5998
|
+
options: undefined;
|
|
5999
|
+
};
|
|
6000
|
+
/** Namespace. */
|
|
6001
|
+
'slug': {
|
|
6002
|
+
label: 'Namespace';
|
|
6003
|
+
type: 'text';
|
|
6004
|
+
isRequired: true;
|
|
6005
|
+
options: undefined;
|
|
6006
|
+
};
|
|
6007
|
+
/** Published. Does this skill show up in the marketplace and can other devs use it as a dependency? */
|
|
6008
|
+
'isPublished': {
|
|
6009
|
+
label: 'Published';
|
|
6010
|
+
type: 'boolean';
|
|
6011
|
+
hint: 'Does this skill show up in the marketplace and can other devs use it as a dependency?';
|
|
6012
|
+
options: undefined;
|
|
6013
|
+
};
|
|
6014
|
+
/** Global. Does this skill require needing to be installed anywhere. */
|
|
6015
|
+
'canBeInstalled': {
|
|
6016
|
+
label: 'Global';
|
|
6017
|
+
type: 'boolean';
|
|
6018
|
+
hint: 'Does this skill require needing to be installed anywhere.';
|
|
6019
|
+
defaultValue: true;
|
|
6020
|
+
options: undefined;
|
|
6021
|
+
};
|
|
6022
|
+
/** . */
|
|
6023
|
+
'dateCreated': {
|
|
6024
|
+
type: 'dateTime';
|
|
6025
|
+
isRequired: true;
|
|
6026
|
+
options: undefined;
|
|
6027
|
+
};
|
|
6028
|
+
/** . */
|
|
6029
|
+
'dateDeleted': {
|
|
6030
|
+
type: 'dateTime';
|
|
6031
|
+
options: undefined;
|
|
6032
|
+
};
|
|
6033
|
+
};
|
|
6034
|
+
}
|
|
6035
|
+
interface PublishedSkillEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.PublishedSkillSchema> {
|
|
6036
|
+
}
|
|
6037
|
+
}
|
|
6038
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
6039
|
+
interface PublishSkillResponsePayload {
|
|
6040
|
+
'skill': SpruceSchemas.Mercury.v2020_12_25.PublishedSkill;
|
|
6041
|
+
}
|
|
6042
|
+
interface PublishSkillResponsePayloadSchema extends SpruceSchema.Schema {
|
|
6043
|
+
id: 'publishSkillResponsePayload';
|
|
6044
|
+
version: 'v2020_12_25';
|
|
6045
|
+
namespace: 'Mercury';
|
|
6046
|
+
name: '';
|
|
6047
|
+
fields: {
|
|
6048
|
+
/** . */
|
|
6049
|
+
'skill': {
|
|
6050
|
+
type: 'schema';
|
|
6051
|
+
isRequired: true;
|
|
6052
|
+
options: {
|
|
6053
|
+
schema: SpruceSchemas.Mercury.v2020_12_25.PublishedSkillSchema;
|
|
6054
|
+
};
|
|
6055
|
+
};
|
|
6056
|
+
};
|
|
6057
|
+
}
|
|
6058
|
+
interface PublishSkillResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.PublishSkillResponsePayloadSchema> {
|
|
6059
|
+
}
|
|
6060
|
+
}
|
|
5875
6061
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
5876
6062
|
interface RegisterConversationTopicEmitPayloadTopic {
|
|
5877
6063
|
/** Key. A way to identify this topic, must be unique for your skill. */
|
|
@@ -7083,47 +7269,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
7083
7269
|
interface SendMessageTargetEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema> {
|
|
7084
7270
|
}
|
|
7085
7271
|
}
|
|
7086
|
-
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
7087
|
-
interface SendMessageEmitTargetAndPayload {
|
|
7088
|
-
/** Source. */
|
|
7089
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
7090
|
-
'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
|
|
7091
|
-
'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
|
|
7092
|
-
}
|
|
7093
|
-
interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
7094
|
-
id: 'sendMessageEmitTargetAndPayload';
|
|
7095
|
-
version: 'v2020_12_25';
|
|
7096
|
-
namespace: 'Mercury';
|
|
7097
|
-
name: '';
|
|
7098
|
-
fields: {
|
|
7099
|
-
/** Source. */
|
|
7100
|
-
'source': {
|
|
7101
|
-
label: 'Source';
|
|
7102
|
-
type: 'schema';
|
|
7103
|
-
options: {
|
|
7104
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
7105
|
-
};
|
|
7106
|
-
};
|
|
7107
|
-
/** . */
|
|
7108
|
-
'target': {
|
|
7109
|
-
type: 'schema';
|
|
7110
|
-
options: {
|
|
7111
|
-
schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
|
|
7112
|
-
};
|
|
7113
|
-
};
|
|
7114
|
-
/** . */
|
|
7115
|
-
'payload': {
|
|
7116
|
-
type: 'schema';
|
|
7117
|
-
isRequired: true;
|
|
7118
|
-
options: {
|
|
7119
|
-
schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
|
|
7120
|
-
};
|
|
7121
|
-
};
|
|
7122
|
-
};
|
|
7123
|
-
}
|
|
7124
|
-
interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
|
|
7125
|
-
}
|
|
7126
|
-
}
|
|
7127
7272
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
7128
7273
|
interface SendMessageMessagePayload {
|
|
7129
7274
|
/** . An arbitrary id that can be used to track this message when being sent and not yet assigned an Id. */
|
|
@@ -7231,6 +7376,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
7231
7376
|
interface SendMessageEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema> {
|
|
7232
7377
|
}
|
|
7233
7378
|
}
|
|
7379
|
+
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
7380
|
+
interface SendMessageEmitTargetAndPayload {
|
|
7381
|
+
/** Source. */
|
|
7382
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
7383
|
+
'target'?: SpruceSchemas.Mercury.v2020_12_25.SendMessageTarget | undefined | null;
|
|
7384
|
+
'payload': SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayload;
|
|
7385
|
+
}
|
|
7386
|
+
interface SendMessageEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
7387
|
+
id: 'sendMessageEmitTargetAndPayload';
|
|
7388
|
+
version: 'v2020_12_25';
|
|
7389
|
+
namespace: 'Mercury';
|
|
7390
|
+
name: '';
|
|
7391
|
+
fields: {
|
|
7392
|
+
/** Source. */
|
|
7393
|
+
'source': {
|
|
7394
|
+
label: 'Source';
|
|
7395
|
+
type: 'schema';
|
|
7396
|
+
options: {
|
|
7397
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
7398
|
+
};
|
|
7399
|
+
};
|
|
7400
|
+
/** . */
|
|
7401
|
+
'target': {
|
|
7402
|
+
type: 'schema';
|
|
7403
|
+
options: {
|
|
7404
|
+
schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageTargetSchema;
|
|
7405
|
+
};
|
|
7406
|
+
};
|
|
7407
|
+
/** . */
|
|
7408
|
+
'payload': {
|
|
7409
|
+
type: 'schema';
|
|
7410
|
+
isRequired: true;
|
|
7411
|
+
options: {
|
|
7412
|
+
schema: SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitPayloadSchema;
|
|
7413
|
+
};
|
|
7414
|
+
};
|
|
7415
|
+
};
|
|
7416
|
+
}
|
|
7417
|
+
interface SendMessageEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Mercury.v2020_12_25.SendMessageEmitTargetAndPayloadSchema> {
|
|
7418
|
+
}
|
|
7419
|
+
}
|
|
7234
7420
|
namespace SpruceSchemas.Mercury.v2020_12_25 {
|
|
7235
7421
|
interface SendMessageResponsePayload {
|
|
7236
7422
|
'message': SpruceSchemas.Spruce.v2020_07_22.Message;
|