@develit-services/rbac 0.5.1 → 0.6.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.
Files changed (32) hide show
  1. package/dist/database/schema.cjs +1 -1
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +1 -1
  6. package/dist/export/worker.cjs +2 -2
  7. package/dist/export/worker.d.cts +2 -2
  8. package/dist/export/worker.d.mts +2 -2
  9. package/dist/export/worker.d.ts +2 -2
  10. package/dist/export/worker.mjs +2 -2
  11. package/dist/export/wrangler.d.cts +1 -1
  12. package/dist/export/wrangler.d.mts +1 -1
  13. package/dist/export/wrangler.d.ts +1 -1
  14. package/dist/shared/{rbac.BdBAChkr.mjs → rbac.BypNeIm_.mjs} +2 -5
  15. package/dist/shared/{rbac.DH2MYF0T.cjs → rbac.CZCpmLF8.cjs} +1 -4
  16. package/dist/shared/{rbac.CqpxM3E5.d.cts → rbac.D5N_wrRb.d.cts} +229 -1
  17. package/dist/shared/{rbac.CqpxM3E5.d.mts → rbac.D5N_wrRb.d.mts} +229 -1
  18. package/dist/shared/{rbac.CqpxM3E5.d.ts → rbac.D5N_wrRb.d.ts} +229 -1
  19. package/dist/shared/{rbac.ClMKyW8J.d.mts → rbac.DUk_qXWk.d.cts} +1 -1
  20. package/dist/shared/{rbac.ClMKyW8J.d.ts → rbac.DUk_qXWk.d.mts} +1 -1
  21. package/dist/shared/{rbac.ClMKyW8J.d.cts → rbac.DUk_qXWk.d.ts} +1 -1
  22. package/dist/shared/{rbac.D5OV7UPA.mjs → rbac.H1LXb5Lk.mjs} +2 -2
  23. package/dist/shared/{rbac.Bv-9aL95.d.ts → rbac.Pu6JbQGr.d.cts} +3 -5
  24. package/dist/shared/{rbac.Cra1T2nC.cjs → rbac.gXUvaSJ2.cjs} +1 -1
  25. package/dist/shared/{rbac.BKJdHgo6.d.mts → rbac.pzUpSmwr.d.mts} +3 -5
  26. package/dist/shared/{rbac.Dqh3yQbz.d.cts → rbac.zvG5RbZL.d.ts} +3 -5
  27. package/dist/types.cjs +1 -1
  28. package/dist/types.d.cts +3 -3
  29. package/dist/types.d.mts +3 -3
  30. package/dist/types.d.ts +3 -3
  31. package/dist/types.mjs +1 -1
  32. package/package.json +7 -10
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('../shared/rbac.Cra1T2nC.cjs');
3
+ const database_schema = require('../shared/rbac.gXUvaSJ2.cjs');
4
4
  require('@develit-io/backend-sdk');
5
5
  require('drizzle-orm/sqlite-core');
6
6
 
@@ -1,2 +1,2 @@
1
- export { a as role, r as roleScope, u as userRole, b as userScope } from '../shared/rbac.CqpxM3E5.cjs';
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.D5N_wrRb.cjs';
2
2
  import 'drizzle-orm/sqlite-core';
@@ -1,2 +1,2 @@
1
- export { a as role, r as roleScope, u as userRole, b as userScope } from '../shared/rbac.CqpxM3E5.mjs';
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.D5N_wrRb.mjs';
2
2
  import 'drizzle-orm/sqlite-core';
@@ -1,2 +1,2 @@
1
- export { a as role, r as roleScope, u as userRole, b as userScope } from '../shared/rbac.CqpxM3E5.js';
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.D5N_wrRb.js';
2
2
  import 'drizzle-orm/sqlite-core';
@@ -1,3 +1,3 @@
1
- export { a as role, r as roleScope, u as userRole, b as userScope } from '../shared/rbac.D5OV7UPA.mjs';
1
+ export { r as role, a as roleScope, u as userRole, b as userScope } from '../shared/rbac.H1LXb5Lk.mjs';
2
2
  import '@develit-io/backend-sdk';
3
3
  import 'drizzle-orm/sqlite-core';
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
- const database_schema = require('../shared/rbac.Cra1T2nC.cjs');
6
+ const database_schema = require('../shared/rbac.gXUvaSJ2.cjs');
7
7
  const drizzleOrm = require('drizzle-orm');
8
- const verifyScope = require('../shared/rbac.DH2MYF0T.cjs');
8
+ const verifyScope = require('../shared/rbac.CZCpmLF8.cjs');
9
9
  const zod = require('zod');
10
10
  const cloudflare_workers = require('cloudflare:workers');
11
11
  const d1 = require('drizzle-orm/d1');
@@ -1,11 +1,11 @@
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$1, 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.Dqh3yQbz.cjs';
3
+ import { L as LabeledScope$1, 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.Pu6JbQGr.cjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
7
  import 'drizzle-orm';
8
- import '../shared/rbac.CqpxM3E5.cjs';
8
+ import '../shared/rbac.D5N_wrRb.cjs';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
 
11
11
  type TypedScopeObject<TScopes extends readonly LabeledScope$1[]> = {
@@ -1,11 +1,11 @@
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$1, 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.BKJdHgo6.mjs';
3
+ import { L as LabeledScope$1, 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.pzUpSmwr.mjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
7
  import 'drizzle-orm';
8
- import '../shared/rbac.CqpxM3E5.mjs';
8
+ import '../shared/rbac.D5N_wrRb.mjs';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
 
11
11
  type TypedScopeObject<TScopes extends readonly LabeledScope$1[]> = {
@@ -1,11 +1,11 @@
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$1, 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.Bv-9aL95.js';
3
+ import { L as LabeledScope$1, 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.zvG5RbZL.js';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
7
  import 'drizzle-orm';
8
- import '../shared/rbac.CqpxM3E5.js';
8
+ import '../shared/rbac.D5N_wrRb.js';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
 
11
11
  type TypedScopeObject<TScopes extends readonly LabeledScope$1[]> = {
@@ -1,7 +1,7 @@
1
1
  import { uuidv4, first, createInternalError, develitWorker, action, service } from '@develit-io/backend-sdk';
2
- import { s as schema } from '../shared/rbac.D5OV7UPA.mjs';
2
+ import { s as schema } from '../shared/rbac.H1LXb5Lk.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, l as isScopeObject, m as isOrCondition, n as isAndCondition, o as isImplicitAndCondition } from '../shared/rbac.BdBAChkr.mjs';
4
+ import { c as createRoleInputSchema, a as assignRoleToUserInputSchema, b as assignRolesToUserInputSchema, r as revokeRoleFromUserInputSchema, f as grantScopeToUserInputSchema, h as grantScopesToUserInputSchema, n as revokeScopeFromUserInputSchema, e as grantScopeToRoleInputSchema, m as revokeScopeFromRoleInputSchema, g as getUserPermissionsInputSchema, v as verifyAccessInputSchema, d as deleteRoleInputSchema, u as updateRoleInputSchema, l as isScopeObject, k as isOrCondition, i as isAndCondition, j as isImplicitAndCondition } from '../shared/rbac.BypNeIm_.mjs';
5
5
  import { z } from 'zod';
6
6
  import { WorkerEntrypoint } from 'cloudflare:workers';
7
7
  import { drizzle } from 'drizzle-orm/d1';
@@ -1,4 +1,4 @@
1
- import { R as RbacServiceWranglerConfig } from '../shared/rbac.ClMKyW8J.cjs';
1
+ import { R as RbacServiceWranglerConfig } from '../shared/rbac.DUk_qXWk.cjs';
2
2
 
3
3
  declare function defineRbacServiceWrangler(config: RbacServiceWranglerConfig): {
4
4
  vars: {
@@ -1,4 +1,4 @@
1
- import { R as RbacServiceWranglerConfig } from '../shared/rbac.ClMKyW8J.mjs';
1
+ import { R as RbacServiceWranglerConfig } from '../shared/rbac.DUk_qXWk.mjs';
2
2
 
3
3
  declare function defineRbacServiceWrangler(config: RbacServiceWranglerConfig): {
4
4
  vars: {
@@ -1,4 +1,4 @@
1
- import { R as RbacServiceWranglerConfig } from '../shared/rbac.ClMKyW8J.js';
1
+ import { R as RbacServiceWranglerConfig } from '../shared/rbac.DUk_qXWk.js';
2
2
 
3
3
  declare function defineRbacServiceWrangler(config: RbacServiceWranglerConfig): {
4
4
  vars: {
@@ -72,8 +72,7 @@ const updateRoleInputSchema = z.object({
72
72
 
73
73
  const userDataSchema = z.object({
74
74
  referenceId: z.string(),
75
- email: z.string().optional(),
76
- role: z.string().optional()
75
+ email: z.string().optional()
77
76
  });
78
77
  const jwtUserSchema = z.object({
79
78
  id: z.uuid(),
@@ -83,7 +82,6 @@ const jwtUserSchema = z.object({
83
82
  updatedBy: z.string().nullable().optional(),
84
83
  deletedAt: z.date().nullable(),
85
84
  deletedBy: z.string().nullable().optional(),
86
- role: z.string(),
87
85
  email: z.email(),
88
86
  rawAppMetaData: z.any(),
89
87
  rawUserMetaData: z.any(),
@@ -107,7 +105,6 @@ const jwtPayloadSchema = z.object({
107
105
  updatedBy: z.string().nullable().optional(),
108
106
  deletedAt: z.date().nullable(),
109
107
  deletedBy: z.string().nullable().optional(),
110
- role: z.string(),
111
108
  email: z.email(),
112
109
  rawAppMetaData: z.any(),
113
110
  rawUserMetaData: z.any(),
@@ -184,4 +181,4 @@ const verifyScopeOutputSchema = z.object({
184
181
  isVerified: z.boolean().default(false)
185
182
  });
186
183
 
187
- export { assignRoleToUserInputSchema as a, assignRolesToUserInputSchema as b, createRoleInputSchema as c, deleteRoleInputSchema as d, grantScopeToRoleInputSchema as e, grantScopeToUserInputSchema as f, getUserPermissionsInputSchema as g, grantScopesToUserInputSchema as h, revokeScopeFromRoleInputSchema as i, revokeScopeFromUserInputSchema as j, scopeConditionSchema as k, isScopeObject as l, isOrCondition as m, isAndCondition as n, isImplicitAndCondition as o, verifyScopeInputSchema as p, verifyScopeOutputSchema as q, revokeRoleFromUserInputSchema as r, scopeObjectSchema as s, updateRoleInputSchema as u, verifyAccessInputSchema as v };
184
+ export { assignRoleToUserInputSchema as a, assignRolesToUserInputSchema as b, createRoleInputSchema as c, deleteRoleInputSchema as d, grantScopeToRoleInputSchema as e, grantScopeToUserInputSchema as f, getUserPermissionsInputSchema as g, grantScopesToUserInputSchema as h, isAndCondition as i, isImplicitAndCondition as j, isOrCondition as k, isScopeObject as l, revokeScopeFromRoleInputSchema as m, revokeScopeFromUserInputSchema as n, scopeObjectSchema as o, verifyScopeInputSchema as p, verifyScopeOutputSchema as q, revokeRoleFromUserInputSchema as r, scopeConditionSchema as s, updateRoleInputSchema as u, verifyAccessInputSchema as v };
@@ -74,8 +74,7 @@ const updateRoleInputSchema = zod.z.object({
74
74
 
75
75
  const userDataSchema = zod.z.object({
76
76
  referenceId: zod.z.string(),
77
- email: zod.z.string().optional(),
78
- role: zod.z.string().optional()
77
+ email: zod.z.string().optional()
79
78
  });
80
79
  const jwtUserSchema = zod.z.object({
81
80
  id: zod.z.uuid(),
@@ -85,7 +84,6 @@ const jwtUserSchema = zod.z.object({
85
84
  updatedBy: zod.z.string().nullable().optional(),
86
85
  deletedAt: zod.z.date().nullable(),
87
86
  deletedBy: zod.z.string().nullable().optional(),
88
- role: zod.z.string(),
89
87
  email: zod.z.email(),
90
88
  rawAppMetaData: zod.z.any(),
91
89
  rawUserMetaData: zod.z.any(),
@@ -109,7 +107,6 @@ const jwtPayloadSchema = zod.z.object({
109
107
  updatedBy: zod.z.string().nullable().optional(),
110
108
  deletedAt: zod.z.date().nullable(),
111
109
  deletedBy: zod.z.string().nullable().optional(),
112
- role: zod.z.string(),
113
110
  email: zod.z.email(),
114
111
  rawAppMetaData: zod.z.any(),
115
112
  rawUserMetaData: zod.z.any(),
@@ -97,6 +97,25 @@ declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
97
97
  identity: undefined;
98
98
  generated: undefined;
99
99
  }, {}, {}>;
100
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
101
+ name: "created_by";
102
+ tableName: "roles_scopes";
103
+ dataType: "string";
104
+ columnType: "SQLiteText";
105
+ data: string;
106
+ driverParam: string;
107
+ notNull: false;
108
+ hasDefault: true;
109
+ isPrimaryKey: false;
110
+ isAutoincrement: false;
111
+ hasRuntimeDefault: false;
112
+ enumValues: [string, ...string[]];
113
+ baseColumn: never;
114
+ identity: undefined;
115
+ generated: undefined;
116
+ }, {}, {
117
+ length: number | undefined;
118
+ }>;
100
119
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
101
120
  name: "updated_at";
102
121
  tableName: "roles_scopes";
@@ -114,6 +133,25 @@ declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
114
133
  identity: undefined;
115
134
  generated: undefined;
116
135
  }, {}, {}>;
136
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
137
+ name: "updated_by";
138
+ tableName: "roles_scopes";
139
+ dataType: "string";
140
+ columnType: "SQLiteText";
141
+ data: string;
142
+ driverParam: string;
143
+ notNull: false;
144
+ hasDefault: true;
145
+ isPrimaryKey: false;
146
+ isAutoincrement: false;
147
+ hasRuntimeDefault: false;
148
+ enumValues: [string, ...string[]];
149
+ baseColumn: never;
150
+ identity: undefined;
151
+ generated: undefined;
152
+ }, {}, {
153
+ length: number | undefined;
154
+ }>;
117
155
  deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
118
156
  name: "deleted_at";
119
157
  tableName: "roles_scopes";
@@ -131,6 +169,25 @@ declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
131
169
  identity: undefined;
132
170
  generated: undefined;
133
171
  }, {}, {}>;
172
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
173
+ name: "deleted_by";
174
+ tableName: "roles_scopes";
175
+ dataType: "string";
176
+ columnType: "SQLiteText";
177
+ data: string;
178
+ driverParam: string;
179
+ notNull: false;
180
+ hasDefault: true;
181
+ isPrimaryKey: false;
182
+ isAutoincrement: false;
183
+ hasRuntimeDefault: false;
184
+ enumValues: [string, ...string[]];
185
+ baseColumn: never;
186
+ identity: undefined;
187
+ generated: undefined;
188
+ }, {}, {
189
+ length: number | undefined;
190
+ }>;
134
191
  };
135
192
  dialect: "sqlite";
136
193
  }>;
@@ -194,6 +251,25 @@ declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
194
251
  identity: undefined;
195
252
  generated: undefined;
196
253
  }, {}, {}>;
254
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
255
+ name: "created_by";
256
+ tableName: "roles";
257
+ dataType: "string";
258
+ columnType: "SQLiteText";
259
+ data: string;
260
+ driverParam: string;
261
+ notNull: false;
262
+ hasDefault: true;
263
+ isPrimaryKey: false;
264
+ isAutoincrement: false;
265
+ hasRuntimeDefault: false;
266
+ enumValues: [string, ...string[]];
267
+ baseColumn: never;
268
+ identity: undefined;
269
+ generated: undefined;
270
+ }, {}, {
271
+ length: number | undefined;
272
+ }>;
197
273
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
198
274
  name: "updated_at";
199
275
  tableName: "roles";
@@ -211,6 +287,25 @@ declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
211
287
  identity: undefined;
212
288
  generated: undefined;
213
289
  }, {}, {}>;
290
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
291
+ name: "updated_by";
292
+ tableName: "roles";
293
+ dataType: "string";
294
+ columnType: "SQLiteText";
295
+ data: string;
296
+ driverParam: string;
297
+ notNull: false;
298
+ hasDefault: true;
299
+ isPrimaryKey: false;
300
+ isAutoincrement: false;
301
+ hasRuntimeDefault: false;
302
+ enumValues: [string, ...string[]];
303
+ baseColumn: never;
304
+ identity: undefined;
305
+ generated: undefined;
306
+ }, {}, {
307
+ length: number | undefined;
308
+ }>;
214
309
  deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
215
310
  name: "deleted_at";
216
311
  tableName: "roles";
@@ -228,6 +323,25 @@ declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
228
323
  identity: undefined;
229
324
  generated: undefined;
230
325
  }, {}, {}>;
326
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
327
+ name: "deleted_by";
328
+ tableName: "roles";
329
+ dataType: "string";
330
+ columnType: "SQLiteText";
331
+ data: string;
332
+ driverParam: string;
333
+ notNull: false;
334
+ hasDefault: true;
335
+ isPrimaryKey: false;
336
+ isAutoincrement: false;
337
+ hasRuntimeDefault: false;
338
+ enumValues: [string, ...string[]];
339
+ baseColumn: never;
340
+ identity: undefined;
341
+ generated: undefined;
342
+ }, {}, {
343
+ length: number | undefined;
344
+ }>;
231
345
  };
232
346
  dialect: "sqlite";
233
347
  }>;
@@ -310,6 +424,25 @@ declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
310
424
  identity: undefined;
311
425
  generated: undefined;
312
426
  }, {}, {}>;
427
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
428
+ name: "created_by";
429
+ tableName: "user_roles";
430
+ dataType: "string";
431
+ columnType: "SQLiteText";
432
+ data: string;
433
+ driverParam: string;
434
+ notNull: false;
435
+ hasDefault: true;
436
+ isPrimaryKey: false;
437
+ isAutoincrement: false;
438
+ hasRuntimeDefault: false;
439
+ enumValues: [string, ...string[]];
440
+ baseColumn: never;
441
+ identity: undefined;
442
+ generated: undefined;
443
+ }, {}, {
444
+ length: number | undefined;
445
+ }>;
313
446
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
314
447
  name: "updated_at";
315
448
  tableName: "user_roles";
@@ -327,6 +460,25 @@ declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
327
460
  identity: undefined;
328
461
  generated: undefined;
329
462
  }, {}, {}>;
463
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
464
+ name: "updated_by";
465
+ tableName: "user_roles";
466
+ dataType: "string";
467
+ columnType: "SQLiteText";
468
+ data: string;
469
+ driverParam: string;
470
+ notNull: false;
471
+ hasDefault: true;
472
+ isPrimaryKey: false;
473
+ isAutoincrement: false;
474
+ hasRuntimeDefault: false;
475
+ enumValues: [string, ...string[]];
476
+ baseColumn: never;
477
+ identity: undefined;
478
+ generated: undefined;
479
+ }, {}, {
480
+ length: number | undefined;
481
+ }>;
330
482
  deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
331
483
  name: "deleted_at";
332
484
  tableName: "user_roles";
@@ -344,6 +496,25 @@ declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
344
496
  identity: undefined;
345
497
  generated: undefined;
346
498
  }, {}, {}>;
499
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
500
+ name: "deleted_by";
501
+ tableName: "user_roles";
502
+ dataType: "string";
503
+ columnType: "SQLiteText";
504
+ data: string;
505
+ driverParam: string;
506
+ notNull: false;
507
+ hasDefault: true;
508
+ isPrimaryKey: false;
509
+ isAutoincrement: false;
510
+ hasRuntimeDefault: false;
511
+ enumValues: [string, ...string[]];
512
+ baseColumn: never;
513
+ identity: undefined;
514
+ generated: undefined;
515
+ }, {}, {
516
+ length: number | undefined;
517
+ }>;
347
518
  };
348
519
  dialect: "sqlite";
349
520
  }>;
@@ -445,6 +616,25 @@ declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
445
616
  identity: undefined;
446
617
  generated: undefined;
447
618
  }, {}, {}>;
619
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
620
+ name: "created_by";
621
+ tableName: "user_scopes";
622
+ dataType: "string";
623
+ columnType: "SQLiteText";
624
+ data: string;
625
+ driverParam: string;
626
+ notNull: false;
627
+ hasDefault: true;
628
+ isPrimaryKey: false;
629
+ isAutoincrement: false;
630
+ hasRuntimeDefault: false;
631
+ enumValues: [string, ...string[]];
632
+ baseColumn: never;
633
+ identity: undefined;
634
+ generated: undefined;
635
+ }, {}, {
636
+ length: number | undefined;
637
+ }>;
448
638
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
449
639
  name: "updated_at";
450
640
  tableName: "user_scopes";
@@ -462,6 +652,25 @@ declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
462
652
  identity: undefined;
463
653
  generated: undefined;
464
654
  }, {}, {}>;
655
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
656
+ name: "updated_by";
657
+ tableName: "user_scopes";
658
+ dataType: "string";
659
+ columnType: "SQLiteText";
660
+ data: string;
661
+ driverParam: string;
662
+ notNull: false;
663
+ hasDefault: true;
664
+ isPrimaryKey: false;
665
+ isAutoincrement: false;
666
+ hasRuntimeDefault: false;
667
+ enumValues: [string, ...string[]];
668
+ baseColumn: never;
669
+ identity: undefined;
670
+ generated: undefined;
671
+ }, {}, {
672
+ length: number | undefined;
673
+ }>;
465
674
  deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
466
675
  name: "deleted_at";
467
676
  tableName: "user_scopes";
@@ -479,6 +688,25 @@ declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
479
688
  identity: undefined;
480
689
  generated: undefined;
481
690
  }, {}, {}>;
691
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
692
+ name: "deleted_by";
693
+ tableName: "user_scopes";
694
+ dataType: "string";
695
+ columnType: "SQLiteText";
696
+ data: string;
697
+ driverParam: string;
698
+ notNull: false;
699
+ hasDefault: true;
700
+ isPrimaryKey: false;
701
+ isAutoincrement: false;
702
+ hasRuntimeDefault: false;
703
+ enumValues: [string, ...string[]];
704
+ baseColumn: never;
705
+ identity: undefined;
706
+ generated: undefined;
707
+ }, {}, {
708
+ length: number | undefined;
709
+ }>;
482
710
  };
483
711
  dialect: "sqlite";
484
712
  }>;
@@ -496,4 +724,4 @@ declare namespace schema {
496
724
  };
497
725
  }
498
726
 
499
- export { role as a, userScope as b, roleScope as r, schema as s, userRole as u };
727
+ export { roleScope as a, userScope as b, role as r, schema as s, userRole as u };