@checkstack/auth-common 0.5.1 → 0.5.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @checkstack/auth-common
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 8a87cd4: Updated access rules to use new `accessPair` interface
8
+
9
+ Migrated to the new `accessPair` interface with per-level options objects for cleaner access rule definitions.
10
+
11
+ - Updated dependencies [8a87cd4]
12
+ - @checkstack/common@0.5.0
13
+
3
14
  ## 0.5.1
4
15
 
5
16
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/auth-common",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/src/access.ts CHANGED
@@ -15,7 +15,7 @@ export const authAccess = {
15
15
  create: access(
16
16
  "users.create",
17
17
  "manage",
18
- "Create new users (credential strategy)"
18
+ "Create new users (credential strategy)",
19
19
  ),
20
20
  manage: access("users", "manage", "Delete users"),
21
21
  },
@@ -29,7 +29,7 @@ export const authAccess = {
29
29
  update: access(
30
30
  "roles.update",
31
31
  "manage",
32
- "Update role names and access rules"
32
+ "Update role names and access rules",
33
33
  ),
34
34
  delete: access("roles.delete", "manage", "Delete roles"),
35
35
  manage: access("roles", "manage", "Assign roles to users"),
@@ -41,7 +41,7 @@ export const authAccess = {
41
41
  strategies: access(
42
42
  "strategies",
43
43
  "manage",
44
- "Manage authentication strategies and settings"
44
+ "Manage authentication strategies and settings",
45
45
  ),
46
46
 
47
47
  /**
@@ -50,7 +50,7 @@ export const authAccess = {
50
50
  registration: access(
51
51
  "registration",
52
52
  "manage",
53
- "Manage user registration settings"
53
+ "Manage user registration settings",
54
54
  ),
55
55
 
56
56
  /**
@@ -59,15 +59,17 @@ export const authAccess = {
59
59
  applications: access(
60
60
  "applications",
61
61
  "manage",
62
- "Create, update, delete, and view external applications"
62
+ "Create, update, delete, and view external applications",
63
63
  ),
64
64
 
65
65
  /**
66
66
  * Team management access rules.
67
67
  */
68
68
  teams: accessPair("teams", {
69
- read: "View teams and team memberships",
70
- manage: "Create, delete, and manage all teams and resource access",
69
+ read: { description: "View teams and team memberships" },
70
+ manage: {
71
+ description: "Create, delete, and manage all teams and resource access",
72
+ },
71
73
  }),
72
74
  };
73
75