@develit-services/rbac 0.1.0 → 0.1.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.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
6
  const database_schema = require('../shared/rbac.Cra1T2nC.cjs');
7
7
  const drizzleOrm = require('drizzle-orm');
8
- const verifyScope = require('../shared/rbac.CnJxCt2K.cjs');
8
+ const verifyScope = require('../shared/rbac.CS8i19gH.cjs');
9
9
  const zod = require('zod');
10
10
  const cloudflare_workers = require('cloudflare:workers');
11
11
  const d1 = require('drizzle-orm/d1');
@@ -1,6 +1,6 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { L as LabeledScope, t as tables, C as CreateRoleInput, a as CreateRoleOutput, A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, V as VerifyAccessInput, r as VerifyAccessOutput, D as DeleteRoleInput, s as DeleteRoleOutput, U as UpdateRoleInput, u as UpdateRoleOutput } from '../shared/rbac.Du34seOj.cjs';
3
+ import { L as LabeledScope, t as tables, C as CreateRoleInput, a as CreateRoleOutput, A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, V as VerifyAccessInput, r as VerifyAccessOutput, D as DeleteRoleInput, s as DeleteRoleOutput, U as UpdateRoleInput, u as UpdateRoleOutput } from '../shared/rbac.CZnF-YgH.cjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
@@ -1,6 +1,6 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { L as LabeledScope, t as tables, C as CreateRoleInput, a as CreateRoleOutput, A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, V as VerifyAccessInput, r as VerifyAccessOutput, D as DeleteRoleInput, s as DeleteRoleOutput, U as UpdateRoleInput, u as UpdateRoleOutput } from '../shared/rbac.Dtso4lIl.mjs';
3
+ import { L as LabeledScope, t as tables, C as CreateRoleInput, a as CreateRoleOutput, A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, V as VerifyAccessInput, r as VerifyAccessOutput, D as DeleteRoleInput, s as DeleteRoleOutput, U as UpdateRoleInput, u as UpdateRoleOutput } from '../shared/rbac.DhS7RHC3.mjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
@@ -1,6 +1,6 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { L as LabeledScope, t as tables, C as CreateRoleInput, a as CreateRoleOutput, A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, V as VerifyAccessInput, r as VerifyAccessOutput, D as DeleteRoleInput, s as DeleteRoleOutput, U as UpdateRoleInput, u as UpdateRoleOutput } from '../shared/rbac.UWPYxd4e.js';
3
+ import { L as LabeledScope, t as tables, C as CreateRoleInput, a as CreateRoleOutput, A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, G as GrantScopeToUserInput, f as GrantScopeToUserOutput, g as GrantScopesToUserInput, h as GrantScopesToUserOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, k as GrantScopeToRoleInput, l as GrantScopeToRoleOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, o as GetPermissionsOutput, p as GetUserPermissionsInput, q as GetUserPermissionsOutput, V as VerifyAccessInput, r as VerifyAccessOutput, D as DeleteRoleInput, s as DeleteRoleOutput, U as UpdateRoleInput, u as UpdateRoleOutput } from '../shared/rbac.DqMMROM3.js';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  import { uuidv4, first, createInternalError, develitWorker, action, service } from '@develit-io/backend-sdk';
2
2
  import { s as schema } from '../shared/rbac.D5OV7UPA.mjs';
3
3
  import { eq, and, count, inArray } from 'drizzle-orm';
4
- import { c as createRoleInputSchema, a as assignRoleToUserInputSchema, b as assignRolesToUserInputSchema, r as revokeRoleFromUserInputSchema, f as grantScopeToUserInputSchema, h as grantScopesToUserInputSchema, j as revokeScopeFromUserInputSchema, e as grantScopeToRoleInputSchema, i as revokeScopeFromRoleInputSchema, g as getUserPermissionsInputSchema, v as verifyAccessInputSchema, d as deleteRoleInputSchema, u as updateRoleInputSchema } from '../shared/rbac.NtS5ARz0.mjs';
4
+ import { c as createRoleInputSchema, a as assignRoleToUserInputSchema, b as assignRolesToUserInputSchema, r as revokeRoleFromUserInputSchema, f as grantScopeToUserInputSchema, h as grantScopesToUserInputSchema, j as revokeScopeFromUserInputSchema, e as grantScopeToRoleInputSchema, i as revokeScopeFromRoleInputSchema, g as getUserPermissionsInputSchema, v as verifyAccessInputSchema, d as deleteRoleInputSchema, u as updateRoleInputSchema } from '../shared/rbac.wzMQF48s.mjs';
5
5
  import { z } from 'zod';
6
6
  import { WorkerEntrypoint } from 'cloudflare:workers';
7
7
  import { drizzle } from 'drizzle-orm/d1';
@@ -99,17 +99,15 @@ const jwtPayloadSchema = zod.z.object({
99
99
  userData: userDataSchema.optional()
100
100
  });
101
101
 
102
- const accessRequestSchema = zod.z.object({
103
- scope: zod.z.string(),
104
- // 'exchange-offices.{jwt.exchangeOfficeId}.read'
105
- resourceId: zod.z.string().optional(),
106
- // '123'
107
- resourcePath: zod.z.string().optional()
108
- // 'exchange-offices.333.read' - only needed for scopes with placeholders
109
- });
110
102
  const verifyAccessInputSchema = zod.z.object({
111
103
  userId: zod.z.uuid(),
112
- accessRequests: zod.z.array(accessRequestSchema),
104
+ accessRequests: zod.z.array(
105
+ zod.z.object({
106
+ scope: zod.z.string(),
107
+ resourceId: zod.z.string().optional(),
108
+ resourcePath: zod.z.string().optional()
109
+ })
110
+ ),
113
111
  jwt: jwtPayloadSchema.extend({
114
112
  createdAt: zod.z.coerce.date().nullable().optional(),
115
113
  updatedAt: zod.z.coerce.date().nullable().optional(),
@@ -122,8 +120,12 @@ const verifyAccessInputSchema = zod.z.object({
122
120
  user: jwtPayloadSchema.shape.user.extend({
123
121
  createdAt: zod.z.coerce.date().nullable().optional(),
124
122
  updatedAt: zod.z.coerce.date().nullable().optional(),
123
+ deletedAt: zod.z.coerce.date().nullable().optional(),
125
124
  lastSignInAt: zod.z.coerce.date().nullable().optional(),
126
- emailConfirmedAt: zod.z.coerce.date().nullable().optional()
125
+ emailConfirmedAt: zod.z.coerce.date().nullable().optional(),
126
+ confirmationSentAt: zod.z.coerce.date().nullable().optional(),
127
+ recoverySentAt: zod.z.coerce.date().nullable().optional(),
128
+ emailChangeSentAt: zod.z.coerce.date().nullable().optional()
127
129
  })
128
130
  }).optional()
129
131
  });
@@ -207,22 +207,22 @@ declare const verifyAccessInputSchema: z.ZodObject<{
207
207
  emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
208
208
  user: z.ZodObject<{
209
209
  id: z.ZodUUID;
210
- deletedAt: z.ZodNullable<z.ZodDate>;
211
210
  role: z.ZodString;
212
211
  email: z.ZodEmail;
213
212
  rawAppMetaData: z.ZodAny;
214
213
  rawUserMetaData: z.ZodAny;
215
214
  isSuperAdmin: z.ZodDefault<z.ZodBoolean>;
216
215
  isSsoUser: z.ZodDefault<z.ZodBoolean>;
217
- confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
218
- recoverySentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
219
216
  emailChangeToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
- emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
221
217
  isBanned: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
222
218
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
223
219
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
220
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
224
221
  lastSignInAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
225
222
  emailConfirmedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
223
+ confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
224
+ recoverySentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
225
+ emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
226
226
  }, z.core.$strip>;
227
227
  }, z.core.$strip>>;
228
228
  }, z.core.$strip>;
@@ -207,22 +207,22 @@ declare const verifyAccessInputSchema: z.ZodObject<{
207
207
  emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
208
208
  user: z.ZodObject<{
209
209
  id: z.ZodUUID;
210
- deletedAt: z.ZodNullable<z.ZodDate>;
211
210
  role: z.ZodString;
212
211
  email: z.ZodEmail;
213
212
  rawAppMetaData: z.ZodAny;
214
213
  rawUserMetaData: z.ZodAny;
215
214
  isSuperAdmin: z.ZodDefault<z.ZodBoolean>;
216
215
  isSsoUser: z.ZodDefault<z.ZodBoolean>;
217
- confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
218
- recoverySentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
219
216
  emailChangeToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
- emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
221
217
  isBanned: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
222
218
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
223
219
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
220
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
224
221
  lastSignInAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
225
222
  emailConfirmedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
223
+ confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
224
+ recoverySentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
225
+ emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
226
226
  }, z.core.$strip>;
227
227
  }, z.core.$strip>>;
228
228
  }, z.core.$strip>;
@@ -207,22 +207,22 @@ declare const verifyAccessInputSchema: z.ZodObject<{
207
207
  emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
208
208
  user: z.ZodObject<{
209
209
  id: z.ZodUUID;
210
- deletedAt: z.ZodNullable<z.ZodDate>;
211
210
  role: z.ZodString;
212
211
  email: z.ZodEmail;
213
212
  rawAppMetaData: z.ZodAny;
214
213
  rawUserMetaData: z.ZodAny;
215
214
  isSuperAdmin: z.ZodDefault<z.ZodBoolean>;
216
215
  isSsoUser: z.ZodDefault<z.ZodBoolean>;
217
- confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
218
- recoverySentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
219
216
  emailChangeToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
- emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
221
217
  isBanned: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
222
218
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
223
219
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
220
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
224
221
  lastSignInAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
225
222
  emailConfirmedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
223
+ confirmationSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
224
+ recoverySentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
225
+ emailChangeSentAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
226
226
  }, z.core.$strip>;
227
227
  }, z.core.$strip>>;
228
228
  }, z.core.$strip>;
@@ -97,17 +97,15 @@ const jwtPayloadSchema = z.object({
97
97
  userData: userDataSchema.optional()
98
98
  });
99
99
 
100
- const accessRequestSchema = z.object({
101
- scope: z.string(),
102
- // 'exchange-offices.{jwt.exchangeOfficeId}.read'
103
- resourceId: z.string().optional(),
104
- // '123'
105
- resourcePath: z.string().optional()
106
- // 'exchange-offices.333.read' - only needed for scopes with placeholders
107
- });
108
100
  const verifyAccessInputSchema = z.object({
109
101
  userId: z.uuid(),
110
- accessRequests: z.array(accessRequestSchema),
102
+ accessRequests: z.array(
103
+ z.object({
104
+ scope: z.string(),
105
+ resourceId: z.string().optional(),
106
+ resourcePath: z.string().optional()
107
+ })
108
+ ),
111
109
  jwt: jwtPayloadSchema.extend({
112
110
  createdAt: z.coerce.date().nullable().optional(),
113
111
  updatedAt: z.coerce.date().nullable().optional(),
@@ -120,8 +118,12 @@ const verifyAccessInputSchema = z.object({
120
118
  user: jwtPayloadSchema.shape.user.extend({
121
119
  createdAt: z.coerce.date().nullable().optional(),
122
120
  updatedAt: z.coerce.date().nullable().optional(),
121
+ deletedAt: z.coerce.date().nullable().optional(),
123
122
  lastSignInAt: z.coerce.date().nullable().optional(),
124
- emailConfirmedAt: z.coerce.date().nullable().optional()
123
+ emailConfirmedAt: z.coerce.date().nullable().optional(),
124
+ confirmationSentAt: z.coerce.date().nullable().optional(),
125
+ recoverySentAt: z.coerce.date().nullable().optional(),
126
+ emailChangeSentAt: z.coerce.date().nullable().optional()
125
127
  })
126
128
  }).optional()
127
129
  });
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const verifyScope = require('./shared/rbac.CnJxCt2K.cjs');
3
+ const verifyScope = require('./shared/rbac.CS8i19gH.cjs');
4
4
  require('zod');
5
5
 
6
6
 
package/dist/types.d.cts CHANGED
@@ -1,4 +1,4 @@
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 LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, y as RoleInsertType, w as RoleScopeInsertType, v as RoleScopeSelectType, x as RoleSelectType, S as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, B as UserRoleInsertType, z as UserRoleSelectType, F as UserScopeInsertType, E as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, H as assignRoleToUserInputSchema, I as assignRolesToUserInputSchema, J as createRoleInputSchema, K as deleteRoleInputSchema, M as getUserPermissionsInputSchema, N as grantScopeToRoleInputSchema, O as grantScopeToUserInputSchema, P as grantScopesToUserInputSchema, Q as revokeRoleFromUserInputSchema, T as revokeScopeFromRoleInputSchema, W as revokeScopeFromUserInputSchema, X as updateRoleInputSchema, Y as verifyAccessInputSchema } from './shared/rbac.Du34seOj.cjs';
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 LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, y as RoleInsertType, w as RoleScopeInsertType, v as RoleScopeSelectType, x as RoleSelectType, S as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, B as UserRoleInsertType, z as UserRoleSelectType, F as UserScopeInsertType, E as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, H as assignRoleToUserInputSchema, I as assignRolesToUserInputSchema, J as createRoleInputSchema, K as deleteRoleInputSchema, M as getUserPermissionsInputSchema, N as grantScopeToRoleInputSchema, O as grantScopeToUserInputSchema, P as grantScopesToUserInputSchema, Q as revokeRoleFromUserInputSchema, T as revokeScopeFromRoleInputSchema, W as revokeScopeFromUserInputSchema, X as updateRoleInputSchema, Y as verifyAccessInputSchema } from './shared/rbac.CZnF-YgH.cjs';
2
2
  import { z } from 'zod';
3
3
  export { b as RbacServiceEnv, a as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ClMKyW8J.cjs';
4
4
  import 'drizzle-orm';
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
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 LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, y as RoleInsertType, w as RoleScopeInsertType, v as RoleScopeSelectType, x as RoleSelectType, S as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, B as UserRoleInsertType, z as UserRoleSelectType, F as UserScopeInsertType, E as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, H as assignRoleToUserInputSchema, I as assignRolesToUserInputSchema, J as createRoleInputSchema, K as deleteRoleInputSchema, M as getUserPermissionsInputSchema, N as grantScopeToRoleInputSchema, O as grantScopeToUserInputSchema, P as grantScopesToUserInputSchema, Q as revokeRoleFromUserInputSchema, T as revokeScopeFromRoleInputSchema, W as revokeScopeFromUserInputSchema, X as updateRoleInputSchema, Y as verifyAccessInputSchema } from './shared/rbac.Dtso4lIl.mjs';
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 LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, y as RoleInsertType, w as RoleScopeInsertType, v as RoleScopeSelectType, x as RoleSelectType, S as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, B as UserRoleInsertType, z as UserRoleSelectType, F as UserScopeInsertType, E as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, H as assignRoleToUserInputSchema, I as assignRolesToUserInputSchema, J as createRoleInputSchema, K as deleteRoleInputSchema, M as getUserPermissionsInputSchema, N as grantScopeToRoleInputSchema, O as grantScopeToUserInputSchema, P as grantScopesToUserInputSchema, Q as revokeRoleFromUserInputSchema, T as revokeScopeFromRoleInputSchema, W as revokeScopeFromUserInputSchema, X as updateRoleInputSchema, Y as verifyAccessInputSchema } from './shared/rbac.DhS7RHC3.mjs';
2
2
  import { z } from 'zod';
3
3
  export { b as RbacServiceEnv, a as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ClMKyW8J.mjs';
4
4
  import 'drizzle-orm';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
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 LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, y as RoleInsertType, w as RoleScopeInsertType, v as RoleScopeSelectType, x as RoleSelectType, S as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, B as UserRoleInsertType, z as UserRoleSelectType, F as UserScopeInsertType, E as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, H as assignRoleToUserInputSchema, I as assignRolesToUserInputSchema, J as createRoleInputSchema, K as deleteRoleInputSchema, M as getUserPermissionsInputSchema, N as grantScopeToRoleInputSchema, O as grantScopeToUserInputSchema, P as grantScopesToUserInputSchema, Q as revokeRoleFromUserInputSchema, T as revokeScopeFromRoleInputSchema, W as revokeScopeFromUserInputSchema, X as updateRoleInputSchema, Y as verifyAccessInputSchema } from './shared/rbac.UWPYxd4e.js';
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 LabeledScope, R as RevokeRoleFromUserInput, e as RevokeRoleFromUserOutput, m as RevokeScopeFromRoleInput, n as RevokeScopeFromRoleOutput, i as RevokeScopeFromUserInput, j as RevokeScopeFromUserOutput, y as RoleInsertType, w as RoleScopeInsertType, v as RoleScopeSelectType, x as RoleSelectType, S as Scope, U as UpdateRoleInput, u as UpdateRoleOutput, B as UserRoleInsertType, z as UserRoleSelectType, F as UserScopeInsertType, E as UserScopeSelectType, V as VerifyAccessInput, r as VerifyAccessOutput, H as assignRoleToUserInputSchema, I as assignRolesToUserInputSchema, J as createRoleInputSchema, K as deleteRoleInputSchema, M as getUserPermissionsInputSchema, N as grantScopeToRoleInputSchema, O as grantScopeToUserInputSchema, P as grantScopesToUserInputSchema, Q as revokeRoleFromUserInputSchema, T as revokeScopeFromRoleInputSchema, W as revokeScopeFromUserInputSchema, X as updateRoleInputSchema, Y as verifyAccessInputSchema } from './shared/rbac.DqMMROM3.js';
2
2
  import { z } from 'zod';
3
3
  export { b as RbacServiceEnv, a as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ClMKyW8J.js';
4
4
  import 'drizzle-orm';
package/dist/types.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { 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.NtS5ARz0.mjs';
1
+ export { 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.wzMQF48s.mjs';
2
2
  import 'zod';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/rbac",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {