@abtnode/constant 1.8.35 → 1.8.37
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/index.js +27 -10
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -156,11 +156,11 @@ const RBAC_CONFIG = {
|
|
|
156
156
|
description: 'Manage team data(members/roles/permissions) for Blocklet Server and blocklets',
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
name: '
|
|
159
|
+
name: 'query_blocklets',
|
|
160
160
|
description: 'View store and installed blocklets, including blocklet runtime configuration, domains and urls',
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
name: '
|
|
163
|
+
name: 'mutate_blocklets',
|
|
164
164
|
description: 'Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove',
|
|
165
165
|
},
|
|
166
166
|
{
|
|
@@ -206,7 +206,7 @@ const RBAC_CONFIG = {
|
|
|
206
206
|
]),
|
|
207
207
|
grants: Object.freeze({
|
|
208
208
|
[SERVER_ROLES.GUEST]: [
|
|
209
|
-
'
|
|
209
|
+
'query_blocklets',
|
|
210
210
|
'query_router',
|
|
211
211
|
'query_webhook',
|
|
212
212
|
'query_notification',
|
|
@@ -217,7 +217,7 @@ const RBAC_CONFIG = {
|
|
|
217
217
|
],
|
|
218
218
|
[SERVER_ROLES.MEMBER]: [
|
|
219
219
|
SERVER_ROLES.GUEST,
|
|
220
|
-
'
|
|
220
|
+
'mutate_blocklets',
|
|
221
221
|
'mutate_router',
|
|
222
222
|
'mutate_notification',
|
|
223
223
|
'mutate_session',
|
|
@@ -231,7 +231,7 @@ const RBAC_CONFIG = {
|
|
|
231
231
|
'mutate_certificate',
|
|
232
232
|
],
|
|
233
233
|
[SERVER_ROLES.OWNER]: [ROLES.ADMIN],
|
|
234
|
-
[SERVER_ROLES.CI]: ['
|
|
234
|
+
[SERVER_ROLES.CI]: ['query_blocklets', 'mutate_blocklets'],
|
|
235
235
|
[SERVER_ROLES.CERTIFICATE]: ['query_certificate', 'mutate_certificate'],
|
|
236
236
|
|
|
237
237
|
// blocklet app or blocklet user
|
|
@@ -241,8 +241,8 @@ const RBAC_CONFIG = {
|
|
|
241
241
|
[SERVER_ROLES.BLOCKLET_MEMBER]: ['query_team', 'query_blocklet'],
|
|
242
242
|
|
|
243
243
|
// external user
|
|
244
|
-
[SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER]: ['
|
|
245
|
-
[SERVER_ROLES.EXTERNAL_BLOCKLETS_MANAGER]: ['
|
|
244
|
+
[SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER]: ['query_blocklets', 'mutate_blocklets'],
|
|
245
|
+
[SERVER_ROLES.EXTERNAL_BLOCKLETS_MANAGER]: ['query_blocklets', 'mutate_blocklets'],
|
|
246
246
|
}),
|
|
247
247
|
};
|
|
248
248
|
|
|
@@ -272,6 +272,9 @@ const WHO_CAN_ACCESS = {
|
|
|
272
272
|
ALL: 'all',
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
+
const BLOCKLET_STORE_URL = 'https://store.blocklet.dev';
|
|
276
|
+
const BLOCKLET_STORE_URL_DEV = 'https://dev.store.blocklet.dev';
|
|
277
|
+
|
|
275
278
|
module.exports = Object.freeze({
|
|
276
279
|
// Blocklet Server
|
|
277
280
|
NODE_MODES: Object.freeze({
|
|
@@ -295,8 +298,8 @@ module.exports = Object.freeze({
|
|
|
295
298
|
VC_TYPE_NODE_PASSPORT: 'ABTNodePassport',
|
|
296
299
|
VC_TYPE_GENERAL_PASSPORT: 'NFTPassport',
|
|
297
300
|
|
|
298
|
-
VC_TYPE_SERVER_SHARE: 'BlockletServerShareCertificate',
|
|
299
301
|
NFT_TYPE_SERVER_OWNERSHIP: 'BlockletServerOwnershipNFT',
|
|
302
|
+
NFT_TYPE_SERVER_USAGE_CREDENTIAL: 'BlockletServerUsageCredential',
|
|
300
303
|
|
|
301
304
|
NODE_PACKAGE_NAME: '@abtnode/cli', // deprecated in 1.6.0
|
|
302
305
|
NODE_COMMAND_NAME: 'abtnode', // deprecated in 1.6.0
|
|
@@ -315,11 +318,25 @@ module.exports = Object.freeze({
|
|
|
315
318
|
|
|
316
319
|
NODE_REGISTER_URL: 'https://install.arcblock.io/',
|
|
317
320
|
WEB_WALLET_URL: 'https://web.abtwallet.io',
|
|
318
|
-
BLOCKLET_STORE_URL
|
|
319
|
-
BLOCKLET_STORE_URL_DEV
|
|
321
|
+
BLOCKLET_STORE_URL,
|
|
322
|
+
BLOCKLET_STORE_URL_DEV,
|
|
320
323
|
BLOCKLET_STORE_API_PREFIX: '/api',
|
|
321
324
|
BLOCKLET_STORE_API_BLOCKLET_PREFIX: '/api/blocklets',
|
|
322
325
|
BLOCKLET_STORE_META_PATH: '/api/store.json',
|
|
326
|
+
BLOCKLET_STORE: {
|
|
327
|
+
name: 'Official Store',
|
|
328
|
+
description: 'ArcBlock official blocklet registry',
|
|
329
|
+
url: BLOCKLET_STORE_URL,
|
|
330
|
+
logoUrl: '/logo.png',
|
|
331
|
+
maintainer: 'arcblock',
|
|
332
|
+
},
|
|
333
|
+
BLOCKLET_STORE_DEV: {
|
|
334
|
+
name: 'Dev Store',
|
|
335
|
+
description: 'ArcBlock dev registry that contains demo and example blocklets',
|
|
336
|
+
url: BLOCKLET_STORE_URL_DEV,
|
|
337
|
+
maintainer: 'arcblock',
|
|
338
|
+
logoUrl: '/logo.png',
|
|
339
|
+
},
|
|
323
340
|
|
|
324
341
|
DEFAULT_DID_REGISTRY: 'https://registry.abtnet.io',
|
|
325
342
|
DEFAULT_DID_DOMAIN: 'did.abtnet.io',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.37",
|
|
7
7
|
"description": "ABT Node constants",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"jest": "^27.5.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "f26f451c6e2b1168b36f78269eafdf3f671236bf"
|
|
24
24
|
}
|