@sprucelabs/mercury-core-events 15.0.122 → 15.0.124
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 +4 -4
- package/build/.spruce/events/mercury/addRole.v2020_12_25.contract.js +1 -1
- package/build/.spruce/events/mercury/didMessage.v2020_12_25.contract.d.ts +2 -2
- package/build/.spruce/events/mercury/didMessage.v2020_12_25.contract.js +2 -2
- package/build/.spruce/events/mercury/didSignup.v2020_12_25.contract.d.ts +1 -1
- package/build/.spruce/events/mercury/didSignup.v2020_12_25.contract.js +1 -1
- package/build/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.d.ts +1 -1
- package/build/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.js +1 -1
- package/build/.spruce/events/mercury/removeRole.v2020_12_25.contract.js +1 -1
- package/build/.spruce/permissions/permissions.types.d.ts +37 -41
- package/build/.spruce/settings.json +4 -0
- package/build/esm/.spruce/events/events.contract.d.ts +4 -4
- package/build/esm/.spruce/events/mercury/addRole.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/events/mercury/didMessage.v2020_12_25.contract.d.ts +2 -2
- package/build/esm/.spruce/events/mercury/didMessage.v2020_12_25.contract.js +2 -2
- package/build/esm/.spruce/events/mercury/didSignup.v2020_12_25.contract.d.ts +1 -1
- package/build/esm/.spruce/events/mercury/didSignup.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.d.ts +1 -1
- package/build/esm/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/events/mercury/removeRole.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/permissions/permissions.types.d.ts +37 -41
- package/package.json +1 -1
|
@@ -196,11 +196,11 @@ declare const _default: ({
|
|
|
196
196
|
eventSignatures: {
|
|
197
197
|
'did-message::v2020_12_25': {
|
|
198
198
|
emitPermissions: {
|
|
199
|
-
contractId: "
|
|
199
|
+
contractId: "messaging-contract";
|
|
200
200
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
201
201
|
};
|
|
202
202
|
listenPermissions: {
|
|
203
|
-
contractId: "
|
|
203
|
+
contractId: "messaging-contract";
|
|
204
204
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
205
205
|
};
|
|
206
206
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -212,7 +212,7 @@ declare const _default: ({
|
|
|
212
212
|
'did-signup::v2020_12_25': {
|
|
213
213
|
isGlobal: true;
|
|
214
214
|
listenPermissions: {
|
|
215
|
-
contractId: "
|
|
215
|
+
contractId: "people-contract";
|
|
216
216
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
217
217
|
};
|
|
218
218
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -233,7 +233,7 @@ declare const _default: ({
|
|
|
233
233
|
'did-update-person::v2020_12_25': {
|
|
234
234
|
isGlobal: true;
|
|
235
235
|
listenPermissions: {
|
|
236
|
-
contractId: "
|
|
236
|
+
contractId: "people-contract";
|
|
237
237
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
238
238
|
};
|
|
239
239
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -14,7 +14,7 @@ const addRoleEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
14
14
|
emitPayloadSchema: addRoleEmitTargetAndPayload_schema_1.default,
|
|
15
15
|
responsePayloadSchema: addRoleResponsePayload_schema_1.default,
|
|
16
16
|
emitPermissionContract: (0, mercury_types_2.buildPermissionContract)({
|
|
17
|
-
id: 'hiring-and-promoting',
|
|
17
|
+
id: 'hiring-and-promoting-contract',
|
|
18
18
|
name: 'Hiring and promoting contract',
|
|
19
19
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
20
20
|
requireAllPermissions: false,
|
|
@@ -3,11 +3,11 @@ declare const didMessageEventContract: {
|
|
|
3
3
|
eventSignatures: {
|
|
4
4
|
'did-message::v2020_12_25': {
|
|
5
5
|
emitPermissions: {
|
|
6
|
-
contractId: "
|
|
6
|
+
contractId: "messaging-contract";
|
|
7
7
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
8
8
|
};
|
|
9
9
|
listenPermissions: {
|
|
10
|
-
contractId: "
|
|
10
|
+
contractId: "messaging-contract";
|
|
11
11
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
12
12
|
};
|
|
13
13
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -11,11 +11,11 @@ const didMessageEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
11
11
|
eventSignatures: {
|
|
12
12
|
'did-message::v2020_12_25': {
|
|
13
13
|
emitPermissions: {
|
|
14
|
-
contractId: '
|
|
14
|
+
contractId: 'messaging-contract',
|
|
15
15
|
permissionIdsAny: ['can-emit-did-message-event'],
|
|
16
16
|
},
|
|
17
17
|
listenPermissions: {
|
|
18
|
-
contractId: '
|
|
18
|
+
contractId: 'messaging-contract',
|
|
19
19
|
permissionIdsAny: ['can-listen-to-did-message-event'],
|
|
20
20
|
},
|
|
21
21
|
emitPayloadSchema: didMessageEmitTargetAndPayload_schema_1.default,
|
|
@@ -4,7 +4,7 @@ declare const didSignupEventContract: {
|
|
|
4
4
|
'did-signup::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -11,7 +11,7 @@ const didSignupEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
11
11
|
'did-signup::v2020_12_25': {
|
|
12
12
|
isGlobal: true,
|
|
13
13
|
listenPermissions: {
|
|
14
|
-
contractId: '
|
|
14
|
+
contractId: 'people-contract',
|
|
15
15
|
permissionIdsAny: ['can-listen-to-did-signup'],
|
|
16
16
|
},
|
|
17
17
|
emitPayloadSchema: didSignupEmitTargetAndPayload_schema_1.default,
|
|
@@ -4,7 +4,7 @@ declare const didUpdatePersonEventContract: {
|
|
|
4
4
|
'did-update-person::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -11,7 +11,7 @@ const didUpdatePersonEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
11
11
|
'did-update-person::v2020_12_25': {
|
|
12
12
|
isGlobal: true,
|
|
13
13
|
listenPermissions: {
|
|
14
|
-
contractId: '
|
|
14
|
+
contractId: 'people-contract',
|
|
15
15
|
permissionIdsAny: ['can-listen-to-did-update'],
|
|
16
16
|
},
|
|
17
17
|
emitPayloadSchema: didUpdatePersonEmitTargetAndPayload_schema_1.default,
|
|
@@ -14,7 +14,7 @@ const removeRoleEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
14
14
|
emitPayloadSchema: removeRoleEmitTargetAndPayload_schema_1.default,
|
|
15
15
|
responsePayloadSchema: removeRoleResponsePayload_schema_1.default,
|
|
16
16
|
emitPermissionContract: (0, mercury_types_2.buildPermissionContract)({
|
|
17
|
-
id: 'hiring-and-promoting',
|
|
17
|
+
id: 'hiring-and-promoting-contract',
|
|
18
18
|
name: 'Hiring and promoting contract',
|
|
19
19
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
20
20
|
requireAllPermissions: false,
|
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
2
2
|
interface PermissionContractMap {
|
|
3
|
-
'
|
|
3
|
+
'events-contract': [
|
|
4
|
+
'can-register-global-events'
|
|
5
|
+
];
|
|
6
|
+
'feed-contract': [
|
|
7
|
+
'can-see-other-persons-feed',
|
|
8
|
+
'can-subscribe-to-feed-updates',
|
|
9
|
+
'can-be-sprucebot'
|
|
10
|
+
];
|
|
11
|
+
'hiring-and-promoting-contract': [
|
|
12
|
+
'can-hire-person',
|
|
13
|
+
'can-fire-person',
|
|
14
|
+
'hire-and-promote-when-not-installed'
|
|
15
|
+
];
|
|
16
|
+
'listeners-contract': [
|
|
17
|
+
'can-register-global-listeners'
|
|
18
|
+
];
|
|
19
|
+
'locations-contract': [
|
|
4
20
|
'can-create-location',
|
|
5
21
|
'can-update-location',
|
|
6
22
|
'can-delete-location',
|
|
7
23
|
'can-view-private-locations-at-own-org'
|
|
8
24
|
];
|
|
9
|
-
'
|
|
25
|
+
'messaging-contract': [
|
|
26
|
+
'can-emit-did-message-event',
|
|
27
|
+
'can-listen-to-did-message-event',
|
|
28
|
+
'can-message-others'
|
|
29
|
+
];
|
|
30
|
+
'organizations-contract': [
|
|
10
31
|
'can-update-organization-profile',
|
|
11
32
|
'can-delete-organization',
|
|
12
33
|
'can-view-private-organizations'
|
|
13
34
|
];
|
|
14
|
-
'
|
|
15
|
-
'can-create-role',
|
|
16
|
-
'can-update-role',
|
|
17
|
-
'can-delete-role',
|
|
18
|
-
'can-view-private-roles-at-own-org',
|
|
19
|
-
'can-view-persons-roles'
|
|
20
|
-
];
|
|
21
|
-
'feed-contract': [
|
|
22
|
-
'can-see-other-persons-feed',
|
|
23
|
-
'can-subscribe-to-feed-updates',
|
|
24
|
-
'can-be-sprucebot'
|
|
25
|
-
];
|
|
26
|
-
'can-register-events-contract': [
|
|
27
|
-
'can-register-global-events'
|
|
28
|
-
];
|
|
29
|
-
'can-crus-people-contract': [
|
|
35
|
+
'people-contract': [
|
|
30
36
|
'can-create-person',
|
|
31
37
|
'can-list-people-permission-id',
|
|
32
38
|
'can-scramble-other-person',
|
|
@@ -36,34 +42,24 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
36
42
|
'can-listen-to-did-signup',
|
|
37
43
|
'can-listen-to-did-update'
|
|
38
44
|
];
|
|
39
|
-
'
|
|
40
|
-
'can-hire-person',
|
|
41
|
-
'can-fire-person',
|
|
42
|
-
'hire-and-promote-when-not-installed'
|
|
43
|
-
];
|
|
44
|
-
'can-manage-skills': [
|
|
45
|
-
'can-install-skills',
|
|
46
|
-
'can-uninstall-skills',
|
|
47
|
-
'can-view-marketplace'
|
|
48
|
-
];
|
|
49
|
-
'emit-messaging': [
|
|
50
|
-
'can-emit-did-message-event',
|
|
51
|
-
'can-listen-to-did-message-event',
|
|
52
|
-
'can-message-others'
|
|
53
|
-
];
|
|
54
|
-
'permission-contracts-contract-id': [
|
|
45
|
+
'permission-contract': [
|
|
55
46
|
'can-get-permission-contracts-for-org',
|
|
56
|
-
'can-list-permission-contracts-for-org'
|
|
47
|
+
'can-list-permission-contracts-for-org',
|
|
48
|
+
'can-upsert-permission-contract-for-org'
|
|
57
49
|
];
|
|
58
|
-
'
|
|
59
|
-
'can-
|
|
50
|
+
'roles-contract': [
|
|
51
|
+
'can-create-role',
|
|
52
|
+
'can-update-role',
|
|
53
|
+
'can-delete-role',
|
|
54
|
+
'can-view-private-roles-at-own-org',
|
|
55
|
+
'can-view-persons-roles'
|
|
60
56
|
];
|
|
61
|
-
'
|
|
57
|
+
'skills-contract': [
|
|
58
|
+
'can-install-skills',
|
|
59
|
+
'can-uninstall-skills',
|
|
60
|
+
'can-view-marketplace',
|
|
62
61
|
'can-check-if-skill-is-installed'
|
|
63
62
|
];
|
|
64
|
-
'can-upsert-permission-contract-contract-id': [
|
|
65
|
-
'can-upsert-permission-contract-for-org'
|
|
66
|
-
];
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
65
|
export interface PermissionContractMap {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
],
|
|
14
14
|
"events": {
|
|
15
15
|
"lastSync": {
|
|
16
|
+
"contractDestinationDir": "#spruce/events",
|
|
17
|
+
"schemaTypesLookupDir": "#spruce/schemas",
|
|
18
|
+
"skillEventContractTypesFile": "@sprucelabs/mercury-types/build/types/mercury.types",
|
|
19
|
+
"eventBuilderFile": "@sprucelabs/mercury-types",
|
|
16
20
|
"shouldSyncOnlyCoreEvents": "true"
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -196,11 +196,11 @@ declare const _default: ({
|
|
|
196
196
|
eventSignatures: {
|
|
197
197
|
'did-message::v2020_12_25': {
|
|
198
198
|
emitPermissions: {
|
|
199
|
-
contractId: "
|
|
199
|
+
contractId: "messaging-contract";
|
|
200
200
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
201
201
|
};
|
|
202
202
|
listenPermissions: {
|
|
203
|
-
contractId: "
|
|
203
|
+
contractId: "messaging-contract";
|
|
204
204
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
205
205
|
};
|
|
206
206
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -212,7 +212,7 @@ declare const _default: ({
|
|
|
212
212
|
'did-signup::v2020_12_25': {
|
|
213
213
|
isGlobal: true;
|
|
214
214
|
listenPermissions: {
|
|
215
|
-
contractId: "
|
|
215
|
+
contractId: "people-contract";
|
|
216
216
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
217
217
|
};
|
|
218
218
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -233,7 +233,7 @@ declare const _default: ({
|
|
|
233
233
|
'did-update-person::v2020_12_25': {
|
|
234
234
|
isGlobal: true;
|
|
235
235
|
listenPermissions: {
|
|
236
|
-
contractId: "
|
|
236
|
+
contractId: "people-contract";
|
|
237
237
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
238
238
|
};
|
|
239
239
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -9,7 +9,7 @@ const addRoleEventContract = buildEventContract({
|
|
|
9
9
|
emitPayloadSchema: addRoleEmitTargetAndPayloadSchema,
|
|
10
10
|
responsePayloadSchema: addRoleResponsePayloadSchema,
|
|
11
11
|
emitPermissionContract: buildPermissionContract({
|
|
12
|
-
id: 'hiring-and-promoting',
|
|
12
|
+
id: 'hiring-and-promoting-contract',
|
|
13
13
|
name: 'Hiring and promoting contract',
|
|
14
14
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
15
15
|
requireAllPermissions: false,
|
|
@@ -3,11 +3,11 @@ declare const didMessageEventContract: {
|
|
|
3
3
|
eventSignatures: {
|
|
4
4
|
'did-message::v2020_12_25': {
|
|
5
5
|
emitPermissions: {
|
|
6
|
-
contractId: "
|
|
6
|
+
contractId: "messaging-contract";
|
|
7
7
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
8
8
|
};
|
|
9
9
|
listenPermissions: {
|
|
10
|
-
contractId: "
|
|
10
|
+
contractId: "messaging-contract";
|
|
11
11
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
12
12
|
};
|
|
13
13
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -6,11 +6,11 @@ const didMessageEventContract = buildEventContract({
|
|
|
6
6
|
eventSignatures: {
|
|
7
7
|
'did-message::v2020_12_25': {
|
|
8
8
|
emitPermissions: {
|
|
9
|
-
contractId: '
|
|
9
|
+
contractId: 'messaging-contract',
|
|
10
10
|
permissionIdsAny: ['can-emit-did-message-event'],
|
|
11
11
|
},
|
|
12
12
|
listenPermissions: {
|
|
13
|
-
contractId: '
|
|
13
|
+
contractId: 'messaging-contract',
|
|
14
14
|
permissionIdsAny: ['can-listen-to-did-message-event'],
|
|
15
15
|
},
|
|
16
16
|
emitPayloadSchema: didMessageEmitTargetAndPayloadSchema,
|
|
@@ -4,7 +4,7 @@ declare const didSignupEventContract: {
|
|
|
4
4
|
'did-signup::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -6,7 +6,7 @@ const didSignupEventContract = buildEventContract({
|
|
|
6
6
|
'did-signup::v2020_12_25': {
|
|
7
7
|
isGlobal: true,
|
|
8
8
|
listenPermissions: {
|
|
9
|
-
contractId: '
|
|
9
|
+
contractId: 'people-contract',
|
|
10
10
|
permissionIdsAny: ['can-listen-to-did-signup'],
|
|
11
11
|
},
|
|
12
12
|
emitPayloadSchema: didSignupEmitTargetAndPayloadSchema,
|
|
@@ -4,7 +4,7 @@ declare const didUpdatePersonEventContract: {
|
|
|
4
4
|
'did-update-person::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -6,7 +6,7 @@ const didUpdatePersonEventContract = buildEventContract({
|
|
|
6
6
|
'did-update-person::v2020_12_25': {
|
|
7
7
|
isGlobal: true,
|
|
8
8
|
listenPermissions: {
|
|
9
|
-
contractId: '
|
|
9
|
+
contractId: 'people-contract',
|
|
10
10
|
permissionIdsAny: ['can-listen-to-did-update'],
|
|
11
11
|
},
|
|
12
12
|
emitPayloadSchema: didUpdatePersonEmitTargetAndPayloadSchema,
|
|
@@ -9,7 +9,7 @@ const removeRoleEventContract = buildEventContract({
|
|
|
9
9
|
emitPayloadSchema: removeRoleEmitTargetAndPayloadSchema,
|
|
10
10
|
responsePayloadSchema: removeRoleResponsePayloadSchema,
|
|
11
11
|
emitPermissionContract: buildPermissionContract({
|
|
12
|
-
id: 'hiring-and-promoting',
|
|
12
|
+
id: 'hiring-and-promoting-contract',
|
|
13
13
|
name: 'Hiring and promoting contract',
|
|
14
14
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
15
15
|
requireAllPermissions: false,
|
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
2
2
|
interface PermissionContractMap {
|
|
3
|
-
'
|
|
3
|
+
'events-contract': [
|
|
4
|
+
'can-register-global-events'
|
|
5
|
+
];
|
|
6
|
+
'feed-contract': [
|
|
7
|
+
'can-see-other-persons-feed',
|
|
8
|
+
'can-subscribe-to-feed-updates',
|
|
9
|
+
'can-be-sprucebot'
|
|
10
|
+
];
|
|
11
|
+
'hiring-and-promoting-contract': [
|
|
12
|
+
'can-hire-person',
|
|
13
|
+
'can-fire-person',
|
|
14
|
+
'hire-and-promote-when-not-installed'
|
|
15
|
+
];
|
|
16
|
+
'listeners-contract': [
|
|
17
|
+
'can-register-global-listeners'
|
|
18
|
+
];
|
|
19
|
+
'locations-contract': [
|
|
4
20
|
'can-create-location',
|
|
5
21
|
'can-update-location',
|
|
6
22
|
'can-delete-location',
|
|
7
23
|
'can-view-private-locations-at-own-org'
|
|
8
24
|
];
|
|
9
|
-
'
|
|
25
|
+
'messaging-contract': [
|
|
26
|
+
'can-emit-did-message-event',
|
|
27
|
+
'can-listen-to-did-message-event',
|
|
28
|
+
'can-message-others'
|
|
29
|
+
];
|
|
30
|
+
'organizations-contract': [
|
|
10
31
|
'can-update-organization-profile',
|
|
11
32
|
'can-delete-organization',
|
|
12
33
|
'can-view-private-organizations'
|
|
13
34
|
];
|
|
14
|
-
'
|
|
15
|
-
'can-create-role',
|
|
16
|
-
'can-update-role',
|
|
17
|
-
'can-delete-role',
|
|
18
|
-
'can-view-private-roles-at-own-org',
|
|
19
|
-
'can-view-persons-roles'
|
|
20
|
-
];
|
|
21
|
-
'feed-contract': [
|
|
22
|
-
'can-see-other-persons-feed',
|
|
23
|
-
'can-subscribe-to-feed-updates',
|
|
24
|
-
'can-be-sprucebot'
|
|
25
|
-
];
|
|
26
|
-
'can-register-events-contract': [
|
|
27
|
-
'can-register-global-events'
|
|
28
|
-
];
|
|
29
|
-
'can-crus-people-contract': [
|
|
35
|
+
'people-contract': [
|
|
30
36
|
'can-create-person',
|
|
31
37
|
'can-list-people-permission-id',
|
|
32
38
|
'can-scramble-other-person',
|
|
@@ -36,34 +42,24 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
36
42
|
'can-listen-to-did-signup',
|
|
37
43
|
'can-listen-to-did-update'
|
|
38
44
|
];
|
|
39
|
-
'
|
|
40
|
-
'can-hire-person',
|
|
41
|
-
'can-fire-person',
|
|
42
|
-
'hire-and-promote-when-not-installed'
|
|
43
|
-
];
|
|
44
|
-
'can-manage-skills': [
|
|
45
|
-
'can-install-skills',
|
|
46
|
-
'can-uninstall-skills',
|
|
47
|
-
'can-view-marketplace'
|
|
48
|
-
];
|
|
49
|
-
'emit-messaging': [
|
|
50
|
-
'can-emit-did-message-event',
|
|
51
|
-
'can-listen-to-did-message-event',
|
|
52
|
-
'can-message-others'
|
|
53
|
-
];
|
|
54
|
-
'permission-contracts-contract-id': [
|
|
45
|
+
'permission-contract': [
|
|
55
46
|
'can-get-permission-contracts-for-org',
|
|
56
|
-
'can-list-permission-contracts-for-org'
|
|
47
|
+
'can-list-permission-contracts-for-org',
|
|
48
|
+
'can-upsert-permission-contract-for-org'
|
|
57
49
|
];
|
|
58
|
-
'
|
|
59
|
-
'can-
|
|
50
|
+
'roles-contract': [
|
|
51
|
+
'can-create-role',
|
|
52
|
+
'can-update-role',
|
|
53
|
+
'can-delete-role',
|
|
54
|
+
'can-view-private-roles-at-own-org',
|
|
55
|
+
'can-view-persons-roles'
|
|
60
56
|
];
|
|
61
|
-
'
|
|
57
|
+
'skills-contract': [
|
|
58
|
+
'can-install-skills',
|
|
59
|
+
'can-uninstall-skills',
|
|
60
|
+
'can-view-marketplace',
|
|
62
61
|
'can-check-if-skill-is-installed'
|
|
63
62
|
];
|
|
64
|
-
'can-upsert-permission-contract-contract-id': [
|
|
65
|
-
'can-upsert-permission-contract-for-org'
|
|
66
|
-
];
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
65
|
export interface PermissionContractMap {
|