@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.
@@ -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 };
@@ -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 };
@@ -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;
@@ -0,0 +1,2 @@
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.BmuK3PNh.cjs';
2
+ import 'drizzle-orm/sqlite-core';
@@ -0,0 +1,2 @@
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.BmuK3PNh.mjs';
2
+ import 'drizzle-orm/sqlite-core';
@@ -0,0 +1,2 @@
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.BmuK3PNh.js';
2
+ import 'drizzle-orm/sqlite-core';
@@ -0,0 +1,3 @@
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.CJLU5iuV.mjs';
2
+ import '@develit-io/backend-sdk';
3
+ import 'drizzle-orm/sqlite-core';