@stacksjs/auth 0.75.629 → 0.75.632

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/dist/rbac.d.ts +7 -1
  2. package/package.json +14 -14
package/dist/rbac.d.ts CHANGED
@@ -146,12 +146,15 @@ export declare function withRbac<T extends UserModel | { id: number }>(user: T):
146
146
  export declare const Rbac: {
147
147
  setStore: typeof setRbacStore;
148
148
  flushCache: typeof flushRbacCache;
149
+ createRole: typeof createRole;
149
150
  findRole: typeof findRole;
150
151
  deleteRole: typeof deleteRole;
151
152
  getAllRoles: typeof getAllRoles;
153
+ createPermission: typeof createPermission;
152
154
  findPermission: typeof findPermission;
153
155
  deletePermission: typeof deletePermission;
154
156
  getAllPermissions: typeof getAllPermissions;
157
+ getUserRoles: typeof getUserRoles;
155
158
  assignRole: typeof assignRole;
156
159
  removeRole: typeof removeRole;
157
160
  removeAllRoles: typeof removeAllRoles;
@@ -160,6 +163,7 @@ export declare const Rbac: {
160
163
  hasFreshRole: typeof hasFreshRole;
161
164
  hasAnyRole: typeof hasAnyRole;
162
165
  hasAllRoles: typeof hasAllRoles;
166
+ getUserPermissions: typeof getUserPermissions;
163
167
  givePermission: typeof givePermission;
164
168
  revokePermission: typeof revokePermission;
165
169
  revokeAllPermissions: typeof revokeAllPermissions;
@@ -167,9 +171,11 @@ export declare const Rbac: {
167
171
  hasPermission: typeof hasPermission;
168
172
  hasAnyPermission: typeof hasAnyPermission;
169
173
  hasAllPermissions: typeof hasAllPermissions;
174
+ getRolePermissions: typeof getRolePermissions;
170
175
  givePermissionToRole: typeof givePermissionToRole;
171
176
  revokePermissionFromRole: typeof revokePermissionFromRole;
172
- syncRolePermissions: typeof syncRolePermissions
177
+ syncRolePermissions: typeof syncRolePermissions;
178
+ withRbac: typeof withRbac
173
179
  };
174
180
  export declare interface RoleRecord {
175
181
  id: number
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.629",
5
+ "version": "0.75.632",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -59,19 +59,19 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@stacksjs/bun-router": "^0.1.24",
62
- "@stacksjs/cache": "0.75.629",
63
- "@stacksjs/config": "0.75.629",
64
- "@stacksjs/database": "0.75.629",
65
- "@stacksjs/email": "0.75.629",
66
- "@stacksjs/env": "0.75.629",
67
- "@stacksjs/error-handling": "0.75.629",
68
- "@stacksjs/logging": "0.75.629",
69
- "@stacksjs/orm": "0.75.629",
70
- "@stacksjs/path": "0.75.629",
71
- "@stacksjs/router": "0.75.629",
72
- "@stacksjs/security": "0.75.629",
73
- "@stacksjs/socials": "0.75.629",
74
- "@stacksjs/storage": "0.75.629",
62
+ "@stacksjs/cache": "0.75.632",
63
+ "@stacksjs/config": "0.75.632",
64
+ "@stacksjs/database": "0.75.632",
65
+ "@stacksjs/email": "0.75.632",
66
+ "@stacksjs/env": "0.75.632",
67
+ "@stacksjs/error-handling": "0.75.632",
68
+ "@stacksjs/logging": "0.75.632",
69
+ "@stacksjs/orm": "0.75.632",
70
+ "@stacksjs/path": "0.75.632",
71
+ "@stacksjs/router": "0.75.632",
72
+ "@stacksjs/security": "0.75.632",
73
+ "@stacksjs/socials": "0.75.632",
74
+ "@stacksjs/storage": "0.75.632",
75
75
  "@stacksjs/ts-auth": "^0.4.7",
76
76
  "ts-qr-codes": "^0.1.8",
77
77
  "oauth4webapi": "^3.8.8",