@develit-services/rbac 0.0.1
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/dist/@types.cjs +24 -0
- package/dist/@types.d.cts +27 -0
- package/dist/@types.d.mts +27 -0
- package/dist/@types.d.ts +27 -0
- package/dist/@types.mjs +2 -0
- package/dist/database/schema.cjs +12 -0
- package/dist/database/schema.d.cts +2 -0
- package/dist/database/schema.d.mts +2 -0
- package/dist/database/schema.d.ts +2 -0
- package/dist/database/schema.mjs +3 -0
- package/dist/export/worker.cjs +776 -0
- package/dist/export/worker.d.cts +36 -0
- package/dist/export/worker.d.mts +34 -0
- package/dist/export/worker.d.ts +36 -0
- package/dist/export/worker.mjs +771 -0
- package/dist/export/wrangler.cjs +48 -0
- package/dist/export/wrangler.d.cts +33 -0
- package/dist/export/wrangler.d.mts +33 -0
- package/dist/export/wrangler.d.ts +33 -0
- package/dist/export/wrangler.mjs +46 -0
- package/dist/shared/rbac.2EhZ2epo.cjs +363 -0
- package/dist/shared/rbac.BmuK3PNh.d.cts +499 -0
- package/dist/shared/rbac.BmuK3PNh.d.mts +499 -0
- package/dist/shared/rbac.BmuK3PNh.d.ts +499 -0
- package/dist/shared/rbac.C9brkvW9.mjs +344 -0
- package/dist/shared/rbac.CHxy3VJb.d.ts +1034 -0
- package/dist/shared/rbac.CJLU5iuV.mjs +45 -0
- package/dist/shared/rbac.CaoDccv4.d.cts +1034 -0
- package/dist/shared/rbac.ClMKyW8J.d.cts +20 -0
- package/dist/shared/rbac.ClMKyW8J.d.mts +20 -0
- package/dist/shared/rbac.ClMKyW8J.d.ts +20 -0
- package/dist/shared/rbac.Cra1T2nC.cjs +51 -0
- package/dist/shared/rbac.DH5084jg.d.mts +1034 -0
- package/package.json +59 -0
package/dist/@types.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const verifyScope = require('./shared/rbac.2EhZ2epo.cjs');
|
|
4
|
+
require('zod');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.LABELED_SCOPES = verifyScope.LABELED_SCOPES;
|
|
9
|
+
exports.SCOPES = verifyScope.SCOPES;
|
|
10
|
+
exports.assignRoleToUserInputSchema = verifyScope.assignRoleToUserInputSchema;
|
|
11
|
+
exports.assignRolesToUserInputSchema = verifyScope.assignRolesToUserInputSchema;
|
|
12
|
+
exports.createRoleInputSchema = verifyScope.createRoleInputSchema;
|
|
13
|
+
exports.deleteRoleInputSchema = verifyScope.deleteRoleInputSchema;
|
|
14
|
+
exports.getUserPermissionsInputSchema = verifyScope.getUserPermissionsInputSchema;
|
|
15
|
+
exports.grantScopeToRoleInputSchema = verifyScope.grantScopeToRoleInputSchema;
|
|
16
|
+
exports.grantScopeToUserInputSchema = verifyScope.grantScopeToUserInputSchema;
|
|
17
|
+
exports.grantScopesToUserInputSchema = verifyScope.grantScopesToUserInputSchema;
|
|
18
|
+
exports.revokeRoleFromUserInputSchema = verifyScope.revokeRoleFromUserInputSchema;
|
|
19
|
+
exports.revokeScopeFromRoleInputSchema = verifyScope.revokeScopeFromRoleInputSchema;
|
|
20
|
+
exports.revokeScopeFromUserInputSchema = verifyScope.revokeScopeFromUserInputSchema;
|
|
21
|
+
exports.updateRoleInputSchema = verifyScope.updateRoleInputSchema;
|
|
22
|
+
exports.verifyAccessInputSchema = verifyScope.verifyAccessInputSchema;
|
|
23
|
+
exports.verifyScopeInputSchema = verifyScope.verifyScopeInputSchema;
|
|
24
|
+
exports.verifyScopeOutputSchema = verifyScope.verifyScopeOutputSchema;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, C as CreateRoleInput, a as CreateRoleOutput, D as DeleteRoleInput, s as DeleteRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, L as LABELED_SCOPES, B as LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, w as RoleInsertType, y as RoleScopeInsertType, x as RoleScopeSelectType, v as RoleSelectType, S as SCOPES, z as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, F as UserRoleInsertType, E as UserRoleSelectType, I as UserScopeInsertType, H as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, J as assignRoleToUserInputSchema, K as assignRolesToUserInputSchema, M as createRoleInputSchema, N as deleteRoleInputSchema, O as getUserPermissionsInputSchema, P as grantScopeToRoleInputSchema, Q as grantScopeToUserInputSchema, T as grantScopesToUserInputSchema, W as revokeRoleFromUserInputSchema, X as revokeScopeFromRoleInputSchema, Y as revokeScopeFromUserInputSchema, Z as updateRoleInputSchema, _ as verifyAccessInputSchema } from './shared/rbac.CaoDccv4.cjs';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export { b as RbacServiceEnv, a as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ClMKyW8J.cjs';
|
|
4
|
+
import 'drizzle-orm';
|
|
5
|
+
import './shared/rbac.BmuK3PNh.cjs';
|
|
6
|
+
import 'drizzle-orm/sqlite-core';
|
|
7
|
+
|
|
8
|
+
declare const verifyScopeInputSchema: z.ZodObject<{
|
|
9
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
10
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
jwt: z.ZodObject<{
|
|
12
|
+
sub: z.ZodUUID;
|
|
13
|
+
rbac: z.ZodObject<{
|
|
14
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const verifyScopeOutputSchema: z.ZodObject<{
|
|
19
|
+
isVerified: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
interface VerifyScopeInput extends z.infer<typeof verifyScopeInputSchema> {
|
|
22
|
+
}
|
|
23
|
+
interface VerifyScopeOutput extends z.infer<typeof verifyScopeOutputSchema> {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { verifyScopeInputSchema, verifyScopeOutputSchema };
|
|
27
|
+
export type { VerifyScopeInput, VerifyScopeOutput };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, C as CreateRoleInput, a as CreateRoleOutput, D as DeleteRoleInput, s as DeleteRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, L as LABELED_SCOPES, B as LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, w as RoleInsertType, y as RoleScopeInsertType, x as RoleScopeSelectType, v as RoleSelectType, S as SCOPES, z as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, F as UserRoleInsertType, E as UserRoleSelectType, I as UserScopeInsertType, H as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, J as assignRoleToUserInputSchema, K as assignRolesToUserInputSchema, M as createRoleInputSchema, N as deleteRoleInputSchema, O as getUserPermissionsInputSchema, P as grantScopeToRoleInputSchema, Q as grantScopeToUserInputSchema, T as grantScopesToUserInputSchema, W as revokeRoleFromUserInputSchema, X as revokeScopeFromRoleInputSchema, Y as revokeScopeFromUserInputSchema, Z as updateRoleInputSchema, _ as verifyAccessInputSchema } from './shared/rbac.DH5084jg.mjs';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export { b as RbacServiceEnv, a as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ClMKyW8J.mjs';
|
|
4
|
+
import 'drizzle-orm';
|
|
5
|
+
import './shared/rbac.BmuK3PNh.mjs';
|
|
6
|
+
import 'drizzle-orm/sqlite-core';
|
|
7
|
+
|
|
8
|
+
declare const verifyScopeInputSchema: z.ZodObject<{
|
|
9
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
10
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
jwt: z.ZodObject<{
|
|
12
|
+
sub: z.ZodUUID;
|
|
13
|
+
rbac: z.ZodObject<{
|
|
14
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const verifyScopeOutputSchema: z.ZodObject<{
|
|
19
|
+
isVerified: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
interface VerifyScopeInput extends z.infer<typeof verifyScopeInputSchema> {
|
|
22
|
+
}
|
|
23
|
+
interface VerifyScopeOutput extends z.infer<typeof verifyScopeOutputSchema> {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { verifyScopeInputSchema, verifyScopeOutputSchema };
|
|
27
|
+
export type { VerifyScopeInput, VerifyScopeOutput };
|
package/dist/@types.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, C as CreateRoleInput, a as CreateRoleOutput, D as DeleteRoleInput, s as DeleteRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, L as LABELED_SCOPES, B as LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, w as RoleInsertType, y as RoleScopeInsertType, x as RoleScopeSelectType, v as RoleSelectType, S as SCOPES, z as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, F as UserRoleInsertType, E as UserRoleSelectType, I as UserScopeInsertType, H as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, J as assignRoleToUserInputSchema, K as assignRolesToUserInputSchema, M as createRoleInputSchema, N as deleteRoleInputSchema, O as getUserPermissionsInputSchema, P as grantScopeToRoleInputSchema, Q as grantScopeToUserInputSchema, T as grantScopesToUserInputSchema, W as revokeRoleFromUserInputSchema, X as revokeScopeFromRoleInputSchema, Y as revokeScopeFromUserInputSchema, Z as updateRoleInputSchema, _ as verifyAccessInputSchema } from './shared/rbac.CHxy3VJb.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export { b as RbacServiceEnv, a as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ClMKyW8J.js';
|
|
4
|
+
import 'drizzle-orm';
|
|
5
|
+
import './shared/rbac.BmuK3PNh.js';
|
|
6
|
+
import 'drizzle-orm/sqlite-core';
|
|
7
|
+
|
|
8
|
+
declare const verifyScopeInputSchema: z.ZodObject<{
|
|
9
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
10
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
jwt: z.ZodObject<{
|
|
12
|
+
sub: z.ZodUUID;
|
|
13
|
+
rbac: z.ZodObject<{
|
|
14
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const verifyScopeOutputSchema: z.ZodObject<{
|
|
19
|
+
isVerified: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
interface VerifyScopeInput extends z.infer<typeof verifyScopeInputSchema> {
|
|
22
|
+
}
|
|
23
|
+
interface VerifyScopeOutput extends z.infer<typeof verifyScopeOutputSchema> {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { verifyScopeInputSchema, verifyScopeOutputSchema };
|
|
27
|
+
export type { VerifyScopeInput, VerifyScopeOutput };
|
package/dist/@types.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { L as LABELED_SCOPES, S as SCOPES, a as assignRoleToUserInputSchema, b as assignRolesToUserInputSchema, c as createRoleInputSchema, d as deleteRoleInputSchema, g as getUserPermissionsInputSchema, e as grantScopeToRoleInputSchema, f as grantScopeToUserInputSchema, h as grantScopesToUserInputSchema, r as revokeRoleFromUserInputSchema, i as revokeScopeFromRoleInputSchema, j as revokeScopeFromUserInputSchema, u as updateRoleInputSchema, v as verifyAccessInputSchema, k as verifyScopeInputSchema, l as verifyScopeOutputSchema } from './shared/rbac.C9brkvW9.mjs';
|
|
2
|
+
import 'zod';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const database_schema = require('../shared/rbac.Cra1T2nC.cjs');
|
|
4
|
+
require('@develit-io/backend-sdk');
|
|
5
|
+
require('drizzle-orm/sqlite-core');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.role = database_schema.role;
|
|
10
|
+
exports.roleScope = database_schema.roleScope;
|
|
11
|
+
exports.userRole = database_schema.userRole;
|
|
12
|
+
exports.userScope = database_schema.userScope;
|