@abtnode/constant 1.8.35 → 1.8.36

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.
Files changed (2) hide show
  1. package/index.js +8 -8
  2. 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: 'query_blockets',
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: 'mutate_blockets',
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
- 'query_blockets',
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
- 'mutate_blockets',
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]: ['query_blockets', 'mutate_blockets'],
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]: ['query_blockets', 'mutate_blockets'],
245
- [SERVER_ROLES.EXTERNAL_BLOCKLETS_MANAGER]: ['query_blockets', 'mutate_blockets'],
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
 
@@ -295,8 +295,8 @@ module.exports = Object.freeze({
295
295
  VC_TYPE_NODE_PASSPORT: 'ABTNodePassport',
296
296
  VC_TYPE_GENERAL_PASSPORT: 'NFTPassport',
297
297
 
298
- VC_TYPE_SERVER_SHARE: 'BlockletServerShareCertificate',
299
298
  NFT_TYPE_SERVER_OWNERSHIP: 'BlockletServerOwnershipNFT',
299
+ NFT_TYPE_SERVER_USAGE_CREDENTIAL: 'BlockletServerUsageCredential',
300
300
 
301
301
  NODE_PACKAGE_NAME: '@abtnode/cli', // deprecated in 1.6.0
302
302
  NODE_COMMAND_NAME: 'abtnode', // deprecated in 1.6.0
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.35",
6
+ "version": "1.8.36",
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": "dd89e7a61dc8cff64302608ad5ab6545dd903daa"
23
+ "gitHead": "507e974ce88bad1aa002c593130b32982207f803"
24
24
  }