@sprucelabs/mercury-core-events 15.0.123 → 15.0.125
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 +34 -37
- 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 +34 -37
- 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,
|
|
@@ -18,6 +18,14 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
18
18
|
'can-view-private-roles-at-own-org',
|
|
19
19
|
'can-view-persons-roles'
|
|
20
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
|
+
];
|
|
21
29
|
'can-crus-people-contract': [
|
|
22
30
|
'can-create-person',
|
|
23
31
|
'can-list-people-permission-id',
|
|
@@ -28,11 +36,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
28
36
|
'can-listen-to-did-signup',
|
|
29
37
|
'can-listen-to-did-update'
|
|
30
38
|
];
|
|
31
|
-
'feed-contract': [
|
|
32
|
-
'can-see-other-persons-feed',
|
|
33
|
-
'can-subscribe-to-feed-updates',
|
|
34
|
-
'can-be-sprucebot'
|
|
35
|
-
];
|
|
36
39
|
'hiring-and-promoting': [
|
|
37
40
|
'can-hire-person',
|
|
38
41
|
'can-fire-person',
|
|
@@ -52,8 +55,8 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
52
55
|
'can-get-permission-contracts-for-org',
|
|
53
56
|
'can-list-permission-contracts-for-org'
|
|
54
57
|
];
|
|
55
|
-
'can-register-
|
|
56
|
-
'can-register-global-
|
|
58
|
+
'can-register-listener': [
|
|
59
|
+
'can-register-global-listeners'
|
|
57
60
|
];
|
|
58
61
|
'can-check-if-skill-is-installed-contract-id': [
|
|
59
62
|
'can-check-if-skill-is-installed'
|
|
@@ -61,7 +64,15 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
61
64
|
'can-upsert-permission-contract-contract-id': [
|
|
62
65
|
'can-upsert-permission-contract-for-org'
|
|
63
66
|
];
|
|
64
|
-
'
|
|
67
|
+
'events-contract': [
|
|
68
|
+
'can-register-global-events'
|
|
69
|
+
];
|
|
70
|
+
'hiring-and-promoting-contract': [
|
|
71
|
+
'can-hire-person',
|
|
72
|
+
'can-fire-person',
|
|
73
|
+
'hire-and-promote-when-not-installed'
|
|
74
|
+
];
|
|
75
|
+
'listeners-contract': [
|
|
65
76
|
'can-register-global-listeners'
|
|
66
77
|
];
|
|
67
78
|
'locations-contract': [
|
|
@@ -70,18 +81,16 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
70
81
|
'can-delete-location',
|
|
71
82
|
'can-view-private-locations-at-own-org'
|
|
72
83
|
];
|
|
84
|
+
'messaging-contract': [
|
|
85
|
+
'can-emit-did-message-event',
|
|
86
|
+
'can-listen-to-did-message-event',
|
|
87
|
+
'can-message-others'
|
|
88
|
+
];
|
|
73
89
|
'organizations-contract': [
|
|
74
90
|
'can-update-organization-profile',
|
|
75
91
|
'can-delete-organization',
|
|
76
92
|
'can-view-private-organizations'
|
|
77
93
|
];
|
|
78
|
-
'roles-contract': [
|
|
79
|
-
'can-create-role',
|
|
80
|
-
'can-update-role',
|
|
81
|
-
'can-delete-role',
|
|
82
|
-
'can-view-private-roles-at-own-org',
|
|
83
|
-
'can-view-persons-roles'
|
|
84
|
-
];
|
|
85
94
|
'people-contract': [
|
|
86
95
|
'can-create-person',
|
|
87
96
|
'can-list-people-permission-id',
|
|
@@ -92,16 +101,17 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
92
101
|
'can-listen-to-did-signup',
|
|
93
102
|
'can-listen-to-did-update'
|
|
94
103
|
];
|
|
95
|
-
'
|
|
96
|
-
'can-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
'can-hire-person',
|
|
100
|
-
'can-fire-person',
|
|
101
|
-
'hire-and-promote-when-not-installed'
|
|
104
|
+
'permission-contract': [
|
|
105
|
+
'can-get-permission-contracts-for-org',
|
|
106
|
+
'can-list-permission-contracts-for-org',
|
|
107
|
+
'can-upsert-permission-contract-for-org'
|
|
102
108
|
];
|
|
103
|
-
'
|
|
104
|
-
'can-
|
|
109
|
+
'roles-contract': [
|
|
110
|
+
'can-create-role',
|
|
111
|
+
'can-update-role',
|
|
112
|
+
'can-delete-role',
|
|
113
|
+
'can-view-private-roles-at-own-org',
|
|
114
|
+
'can-view-persons-roles'
|
|
105
115
|
];
|
|
106
116
|
'skills-contract': [
|
|
107
117
|
'can-install-skills',
|
|
@@ -109,19 +119,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
109
119
|
'can-view-marketplace',
|
|
110
120
|
'can-check-if-skill-is-installed'
|
|
111
121
|
];
|
|
112
|
-
'messaging-contract': [
|
|
113
|
-
'can-emit-did-message-event',
|
|
114
|
-
'can-listen-to-did-message-event',
|
|
115
|
-
'can-message-others'
|
|
116
|
-
];
|
|
117
|
-
'permission-contracts': [
|
|
118
|
-
'can-get-permission-contracts-for-org',
|
|
119
|
-
'can-list-permission-contracts-for-org',
|
|
120
|
-
'can-upsert-permission-contract-for-org'
|
|
121
|
-
];
|
|
122
|
-
'permissions-contract': [
|
|
123
|
-
'can-upsert-permission-contract-for-org'
|
|
124
|
-
];
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
124
|
export interface PermissionContractMap {
|
|
@@ -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,
|
|
@@ -18,6 +18,14 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
18
18
|
'can-view-private-roles-at-own-org',
|
|
19
19
|
'can-view-persons-roles'
|
|
20
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
|
+
];
|
|
21
29
|
'can-crus-people-contract': [
|
|
22
30
|
'can-create-person',
|
|
23
31
|
'can-list-people-permission-id',
|
|
@@ -28,11 +36,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
28
36
|
'can-listen-to-did-signup',
|
|
29
37
|
'can-listen-to-did-update'
|
|
30
38
|
];
|
|
31
|
-
'feed-contract': [
|
|
32
|
-
'can-see-other-persons-feed',
|
|
33
|
-
'can-subscribe-to-feed-updates',
|
|
34
|
-
'can-be-sprucebot'
|
|
35
|
-
];
|
|
36
39
|
'hiring-and-promoting': [
|
|
37
40
|
'can-hire-person',
|
|
38
41
|
'can-fire-person',
|
|
@@ -52,8 +55,8 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
52
55
|
'can-get-permission-contracts-for-org',
|
|
53
56
|
'can-list-permission-contracts-for-org'
|
|
54
57
|
];
|
|
55
|
-
'can-register-
|
|
56
|
-
'can-register-global-
|
|
58
|
+
'can-register-listener': [
|
|
59
|
+
'can-register-global-listeners'
|
|
57
60
|
];
|
|
58
61
|
'can-check-if-skill-is-installed-contract-id': [
|
|
59
62
|
'can-check-if-skill-is-installed'
|
|
@@ -61,7 +64,15 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
61
64
|
'can-upsert-permission-contract-contract-id': [
|
|
62
65
|
'can-upsert-permission-contract-for-org'
|
|
63
66
|
];
|
|
64
|
-
'
|
|
67
|
+
'events-contract': [
|
|
68
|
+
'can-register-global-events'
|
|
69
|
+
];
|
|
70
|
+
'hiring-and-promoting-contract': [
|
|
71
|
+
'can-hire-person',
|
|
72
|
+
'can-fire-person',
|
|
73
|
+
'hire-and-promote-when-not-installed'
|
|
74
|
+
];
|
|
75
|
+
'listeners-contract': [
|
|
65
76
|
'can-register-global-listeners'
|
|
66
77
|
];
|
|
67
78
|
'locations-contract': [
|
|
@@ -70,18 +81,16 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
70
81
|
'can-delete-location',
|
|
71
82
|
'can-view-private-locations-at-own-org'
|
|
72
83
|
];
|
|
84
|
+
'messaging-contract': [
|
|
85
|
+
'can-emit-did-message-event',
|
|
86
|
+
'can-listen-to-did-message-event',
|
|
87
|
+
'can-message-others'
|
|
88
|
+
];
|
|
73
89
|
'organizations-contract': [
|
|
74
90
|
'can-update-organization-profile',
|
|
75
91
|
'can-delete-organization',
|
|
76
92
|
'can-view-private-organizations'
|
|
77
93
|
];
|
|
78
|
-
'roles-contract': [
|
|
79
|
-
'can-create-role',
|
|
80
|
-
'can-update-role',
|
|
81
|
-
'can-delete-role',
|
|
82
|
-
'can-view-private-roles-at-own-org',
|
|
83
|
-
'can-view-persons-roles'
|
|
84
|
-
];
|
|
85
94
|
'people-contract': [
|
|
86
95
|
'can-create-person',
|
|
87
96
|
'can-list-people-permission-id',
|
|
@@ -92,16 +101,17 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
92
101
|
'can-listen-to-did-signup',
|
|
93
102
|
'can-listen-to-did-update'
|
|
94
103
|
];
|
|
95
|
-
'
|
|
96
|
-
'can-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
'can-hire-person',
|
|
100
|
-
'can-fire-person',
|
|
101
|
-
'hire-and-promote-when-not-installed'
|
|
104
|
+
'permission-contract': [
|
|
105
|
+
'can-get-permission-contracts-for-org',
|
|
106
|
+
'can-list-permission-contracts-for-org',
|
|
107
|
+
'can-upsert-permission-contract-for-org'
|
|
102
108
|
];
|
|
103
|
-
'
|
|
104
|
-
'can-
|
|
109
|
+
'roles-contract': [
|
|
110
|
+
'can-create-role',
|
|
111
|
+
'can-update-role',
|
|
112
|
+
'can-delete-role',
|
|
113
|
+
'can-view-private-roles-at-own-org',
|
|
114
|
+
'can-view-persons-roles'
|
|
105
115
|
];
|
|
106
116
|
'skills-contract': [
|
|
107
117
|
'can-install-skills',
|
|
@@ -109,19 +119,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
109
119
|
'can-view-marketplace',
|
|
110
120
|
'can-check-if-skill-is-installed'
|
|
111
121
|
];
|
|
112
|
-
'messaging-contract': [
|
|
113
|
-
'can-emit-did-message-event',
|
|
114
|
-
'can-listen-to-did-message-event',
|
|
115
|
-
'can-message-others'
|
|
116
|
-
];
|
|
117
|
-
'permission-contracts': [
|
|
118
|
-
'can-get-permission-contracts-for-org',
|
|
119
|
-
'can-list-permission-contracts-for-org',
|
|
120
|
-
'can-upsert-permission-contract-for-org'
|
|
121
|
-
];
|
|
122
|
-
'permissions-contract': [
|
|
123
|
-
'can-upsert-permission-contract-for-org'
|
|
124
|
-
];
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
124
|
export interface PermissionContractMap {
|