@develit-services/rbac 0.6.0 → 0.7.0

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
3
- import { s as schema } from './rbac.Dk5HPpHF.cjs';
3
+ import { s as schema } from './rbac.D5N_wrRb.cjs';
4
4
 
5
5
  declare const tables: typeof schema;
6
6
 
@@ -64,6 +64,15 @@ interface DeleteRoleInput extends z.infer<typeof deleteRoleInputSchema> {
64
64
  interface DeleteRoleOutput {
65
65
  }
66
66
 
67
+ interface GetAllUserRolesOutput {
68
+ userRoles: {
69
+ userId: string;
70
+ roleId: string | null;
71
+ roleName: string | null;
72
+ }[];
73
+ count: number;
74
+ }
75
+
67
76
  interface GetPermissionsOutput {
68
77
  roles: {
69
78
  id: string;
@@ -214,14 +223,12 @@ declare const verifyAccessInputSchema: z.ZodObject<{
214
223
  userData: z.ZodOptional<z.ZodObject<{
215
224
  referenceId: z.ZodString;
216
225
  email: z.ZodOptional<z.ZodString>;
217
- role: z.ZodOptional<z.ZodString>;
218
226
  }, z.core.$strip>>;
219
227
  user: z.ZodObject<{
220
228
  id: z.ZodUUID;
221
229
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
230
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
231
  deletedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
- role: z.ZodString;
225
232
  email: z.ZodEmail;
226
233
  rawAppMetaData: z.ZodAny;
227
234
  rawUserMetaData: z.ZodAny;
@@ -254,5 +261,5 @@ declare function isAndCondition(condition: ScopeCondition): condition is {
254
261
  };
255
262
  declare function isImplicitAndCondition(condition: ScopeCondition): condition is ScopeCondition[];
256
263
 
257
- export { revokeScopeFromRoleInputSchema as $, assignRoleToUserInputSchema as J, assignRolesToUserInputSchema as K, createRoleInputSchema as M, deleteRoleInputSchema as N, getUserPermissionsInputSchema as O, grantScopeToRoleInputSchema as P, grantScopeToUserInputSchema as Q, grantScopesToUserInputSchema as T, isAndCondition as W, isImplicitAndCondition as X, isOrCondition as Y, isScopeObject as Z, revokeRoleFromUserInputSchema as _, revokeScopeFromUserInputSchema as a0, scopeConditionSchema as a1, scopeObjectSchema as a2, updateRoleInputSchema as a3, verifyAccessInputSchema as a4, tables as t };
258
- export type { AssignRoleToUserInput as A, ScopeObject as B, CreateRoleInput as C, DeleteRoleInput as D, UserRoleInsertType as E, UserRoleSelectType as F, GrantScopeToUserInput as G, UserScopeInsertType as H, UserScopeSelectType as I, LabeledScope as L, RevokeRoleFromUserInput as R, Scope as S, UpdateRoleInput as U, VerifyAccessInput as V, CreateRoleOutput as a, AssignRoleToUserOutput as b, AssignRolesToUserInput as c, AssignRolesToUserOutput as d, RevokeRoleFromUserOutput as e, GrantScopeToUserOutput as f, GrantScopesToUserInput as g, GrantScopesToUserOutput as h, RevokeScopeFromUserInput as i, RevokeScopeFromUserOutput as j, GrantScopeToRoleInput as k, GrantScopeToRoleOutput as l, RevokeScopeFromRoleInput as m, RevokeScopeFromRoleOutput as n, GetPermissionsOutput as o, GetUserPermissionsInput as p, GetUserPermissionsOutput as q, VerifyAccessOutput as r, DeleteRoleOutput as s, UpdateRoleOutput as u, RoleInsertType as v, RoleScopeInsertType as w, RoleScopeSelectType as x, RoleSelectType as y, ScopeCondition as z };
264
+ export { revokeRoleFromUserInputSchema as $, assignRoleToUserInputSchema as K, assignRolesToUserInputSchema as M, createRoleInputSchema as N, deleteRoleInputSchema as O, getUserPermissionsInputSchema as P, grantScopeToRoleInputSchema as Q, grantScopeToUserInputSchema as T, grantScopesToUserInputSchema as W, isAndCondition as X, isImplicitAndCondition as Y, isOrCondition as Z, isScopeObject as _, revokeScopeFromRoleInputSchema as a0, revokeScopeFromUserInputSchema as a1, scopeConditionSchema as a2, scopeObjectSchema as a3, updateRoleInputSchema as a4, verifyAccessInputSchema as a5, tables as t };
265
+ export type { AssignRoleToUserInput as A, ScopeCondition as B, CreateRoleInput as C, DeleteRoleInput as D, ScopeObject as E, UserRoleInsertType as F, GrantScopeToUserInput as G, UserRoleSelectType as H, UserScopeInsertType as I, UserScopeSelectType as J, LabeledScope as L, RevokeRoleFromUserInput as R, Scope as S, UpdateRoleInput as U, VerifyAccessInput as V, CreateRoleOutput as a, AssignRoleToUserOutput as b, AssignRolesToUserInput as c, AssignRolesToUserOutput as d, RevokeRoleFromUserOutput as e, GrantScopeToUserOutput as f, GrantScopesToUserInput as g, GrantScopesToUserOutput as h, RevokeScopeFromUserInput as i, RevokeScopeFromUserOutput as j, GrantScopeToRoleInput as k, GrantScopeToRoleOutput as l, RevokeScopeFromRoleInput as m, RevokeScopeFromRoleOutput as n, GetAllUserRolesOutput as o, GetPermissionsOutput as p, GetUserPermissionsInput as q, GetUserPermissionsOutput as r, VerifyAccessOutput as s, DeleteRoleOutput as u, UpdateRoleOutput as v, RoleInsertType as w, RoleScopeInsertType as x, RoleScopeSelectType as y, RoleSelectType as z };
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const verifyScope = require('./shared/rbac.DH2MYF0T.cjs');
3
+ const verifyScope = require('./shared/rbac.CZCpmLF8.cjs');
4
4
  require('zod');
5
5
 
6
6
 
package/dist/types.d.cts CHANGED
@@ -1,8 +1,8 @@
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, v as RoleInsertType, w as RoleScopeInsertType, x as RoleScopeSelectType, y as RoleSelectType, S as Scope, z as ScopeCondition, B as ScopeObject, U as UpdateRoleInput, u as UpdateRoleOutput, E as UserRoleInsertType, F as UserRoleSelectType, H as UserScopeInsertType, I 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 isAndCondition, X as isImplicitAndCondition, Y as isOrCondition, Z as isScopeObject, _ as revokeRoleFromUserInputSchema, $ as revokeScopeFromRoleInputSchema, a0 as revokeScopeFromUserInputSchema, a1 as scopeConditionSchema, a2 as scopeObjectSchema, a3 as updateRoleInputSchema, a4 as verifyAccessInputSchema } from './shared/rbac.DiIYl-FR.cjs';
1
+ export { A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, C as CreateRoleInput, a as CreateRoleOutput, D as DeleteRoleInput, u as DeleteRoleOutput, o as GetAllUserRolesOutput, p as GetPermissionsOutput, q as GetUserPermissionsInput, r 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, w as RoleInsertType, x as RoleScopeInsertType, y as RoleScopeSelectType, z as RoleSelectType, S as Scope, B as ScopeCondition, E as ScopeObject, U as UpdateRoleInput, v as UpdateRoleOutput, F as UserRoleInsertType, H as UserRoleSelectType, I as UserScopeInsertType, J as UserScopeSelectType, V as VerifyAccessInput, s as VerifyAccessOutput, K as assignRoleToUserInputSchema, M as assignRolesToUserInputSchema, N as createRoleInputSchema, O as deleteRoleInputSchema, P as getUserPermissionsInputSchema, Q as grantScopeToRoleInputSchema, T as grantScopeToUserInputSchema, W as grantScopesToUserInputSchema, X as isAndCondition, Y as isImplicitAndCondition, Z as isOrCondition, _ as isScopeObject, $ as revokeRoleFromUserInputSchema, a0 as revokeScopeFromRoleInputSchema, a1 as revokeScopeFromUserInputSchema, a2 as scopeConditionSchema, a3 as scopeObjectSchema, a4 as updateRoleInputSchema, a5 as verifyAccessInputSchema } from './shared/rbac.DypKJ7qb.cjs';
2
2
  import { z } from 'zod';
3
3
  export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.DUk_qXWk.cjs';
4
4
  import 'drizzle-orm';
5
- import './shared/rbac.Dk5HPpHF.cjs';
5
+ import './shared/rbac.D5N_wrRb.cjs';
6
6
  import 'drizzle-orm/sqlite-core';
7
7
 
8
8
  declare const verifyScopeInputSchema: z.ZodObject<{
package/dist/types.d.mts CHANGED
@@ -1,8 +1,8 @@
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, v as RoleInsertType, w as RoleScopeInsertType, x as RoleScopeSelectType, y as RoleSelectType, S as Scope, z as ScopeCondition, B as ScopeObject, U as UpdateRoleInput, u as UpdateRoleOutput, E as UserRoleInsertType, F as UserRoleSelectType, H as UserScopeInsertType, I 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 isAndCondition, X as isImplicitAndCondition, Y as isOrCondition, Z as isScopeObject, _ as revokeRoleFromUserInputSchema, $ as revokeScopeFromRoleInputSchema, a0 as revokeScopeFromUserInputSchema, a1 as scopeConditionSchema, a2 as scopeObjectSchema, a3 as updateRoleInputSchema, a4 as verifyAccessInputSchema } from './shared/rbac.4NEkwyHb.mjs';
1
+ export { A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, C as CreateRoleInput, a as CreateRoleOutput, D as DeleteRoleInput, u as DeleteRoleOutput, o as GetAllUserRolesOutput, p as GetPermissionsOutput, q as GetUserPermissionsInput, r 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, w as RoleInsertType, x as RoleScopeInsertType, y as RoleScopeSelectType, z as RoleSelectType, S as Scope, B as ScopeCondition, E as ScopeObject, U as UpdateRoleInput, v as UpdateRoleOutput, F as UserRoleInsertType, H as UserRoleSelectType, I as UserScopeInsertType, J as UserScopeSelectType, V as VerifyAccessInput, s as VerifyAccessOutput, K as assignRoleToUserInputSchema, M as assignRolesToUserInputSchema, N as createRoleInputSchema, O as deleteRoleInputSchema, P as getUserPermissionsInputSchema, Q as grantScopeToRoleInputSchema, T as grantScopeToUserInputSchema, W as grantScopesToUserInputSchema, X as isAndCondition, Y as isImplicitAndCondition, Z as isOrCondition, _ as isScopeObject, $ as revokeRoleFromUserInputSchema, a0 as revokeScopeFromRoleInputSchema, a1 as revokeScopeFromUserInputSchema, a2 as scopeConditionSchema, a3 as scopeObjectSchema, a4 as updateRoleInputSchema, a5 as verifyAccessInputSchema } from './shared/rbac.CSHPMf7E.mjs';
2
2
  import { z } from 'zod';
3
3
  export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.DUk_qXWk.mjs';
4
4
  import 'drizzle-orm';
5
- import './shared/rbac.Dk5HPpHF.mjs';
5
+ import './shared/rbac.D5N_wrRb.mjs';
6
6
  import 'drizzle-orm/sqlite-core';
7
7
 
8
8
  declare const verifyScopeInputSchema: z.ZodObject<{
package/dist/types.d.ts CHANGED
@@ -1,8 +1,8 @@
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, v as RoleInsertType, w as RoleScopeInsertType, x as RoleScopeSelectType, y as RoleSelectType, S as Scope, z as ScopeCondition, B as ScopeObject, U as UpdateRoleInput, u as UpdateRoleOutput, E as UserRoleInsertType, F as UserRoleSelectType, H as UserScopeInsertType, I 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 isAndCondition, X as isImplicitAndCondition, Y as isOrCondition, Z as isScopeObject, _ as revokeRoleFromUserInputSchema, $ as revokeScopeFromRoleInputSchema, a0 as revokeScopeFromUserInputSchema, a1 as scopeConditionSchema, a2 as scopeObjectSchema, a3 as updateRoleInputSchema, a4 as verifyAccessInputSchema } from './shared/rbac.B4swuPCq.js';
1
+ export { A as AssignRoleToUserInput, b as AssignRoleToUserOutput, c as AssignRolesToUserInput, d as AssignRolesToUserOutput, C as CreateRoleInput, a as CreateRoleOutput, D as DeleteRoleInput, u as DeleteRoleOutput, o as GetAllUserRolesOutput, p as GetPermissionsOutput, q as GetUserPermissionsInput, r 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, w as RoleInsertType, x as RoleScopeInsertType, y as RoleScopeSelectType, z as RoleSelectType, S as Scope, B as ScopeCondition, E as ScopeObject, U as UpdateRoleInput, v as UpdateRoleOutput, F as UserRoleInsertType, H as UserRoleSelectType, I as UserScopeInsertType, J as UserScopeSelectType, V as VerifyAccessInput, s as VerifyAccessOutput, K as assignRoleToUserInputSchema, M as assignRolesToUserInputSchema, N as createRoleInputSchema, O as deleteRoleInputSchema, P as getUserPermissionsInputSchema, Q as grantScopeToRoleInputSchema, T as grantScopeToUserInputSchema, W as grantScopesToUserInputSchema, X as isAndCondition, Y as isImplicitAndCondition, Z as isOrCondition, _ as isScopeObject, $ as revokeRoleFromUserInputSchema, a0 as revokeScopeFromRoleInputSchema, a1 as revokeScopeFromUserInputSchema, a2 as scopeConditionSchema, a3 as scopeObjectSchema, a4 as updateRoleInputSchema, a5 as verifyAccessInputSchema } from './shared/rbac.CkCfjtKu.js';
2
2
  import { z } from 'zod';
3
3
  export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.DUk_qXWk.js';
4
4
  import 'drizzle-orm';
5
- import './shared/rbac.Dk5HPpHF.js';
5
+ import './shared/rbac.D5N_wrRb.js';
6
6
  import 'drizzle-orm/sqlite-core';
7
7
 
8
8
  declare const verifyScopeInputSchema: z.ZodObject<{
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, i as isAndCondition, j as isImplicitAndCondition, k as isOrCondition, l as isScopeObject, r as revokeRoleFromUserInputSchema, m as revokeScopeFromRoleInputSchema, n as revokeScopeFromUserInputSchema, s as scopeConditionSchema, o as scopeObjectSchema, u as updateRoleInputSchema, v as verifyAccessInputSchema, p as verifyScopeInputSchema, q as verifyScopeOutputSchema } from './shared/rbac.tv1QQcSW.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, i as isAndCondition, j as isImplicitAndCondition, k as isOrCondition, l as isScopeObject, r as revokeRoleFromUserInputSchema, m as revokeScopeFromRoleInputSchema, n as revokeScopeFromUserInputSchema, s as scopeConditionSchema, o as scopeObjectSchema, u as updateRoleInputSchema, v as verifyAccessInputSchema, p as verifyScopeInputSchema, q as verifyScopeOutputSchema } from './shared/rbac.BypNeIm_.mjs';
2
2
  import 'zod';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/rbac",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -46,7 +46,7 @@
46
46
  "build": "unbuild"
47
47
  },
48
48
  "peerDependencies": {
49
- "@develit-io/backend-sdk": "^9.8.1",
49
+ "@develit-io/backend-sdk": "^9.10.3",
50
50
  "drizzle-orm": "^0.45.0",
51
51
  "zod": "^4.1.13"
52
52
  }
@@ -1,247 +0,0 @@
1
- import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
-
3
- declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4
- name: "roles_scopes";
5
- schema: undefined;
6
- columns: {
7
- roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
8
- name: "role_id";
9
- tableName: "roles_scopes";
10
- dataType: "string";
11
- columnType: "SQLiteText";
12
- data: string;
13
- driverParam: string;
14
- notNull: true;
15
- hasDefault: false;
16
- isPrimaryKey: false;
17
- isAutoincrement: false;
18
- hasRuntimeDefault: false;
19
- enumValues: [string, ...string[]];
20
- baseColumn: never;
21
- identity: undefined;
22
- generated: undefined;
23
- }, {}, {
24
- length: number | undefined;
25
- }>;
26
- scope: drizzle_orm_sqlite_core.SQLiteColumn<{
27
- name: "scope";
28
- tableName: "roles_scopes";
29
- dataType: "string";
30
- columnType: "SQLiteText";
31
- data: string;
32
- driverParam: string;
33
- notNull: true;
34
- hasDefault: false;
35
- isPrimaryKey: false;
36
- isAutoincrement: false;
37
- hasRuntimeDefault: false;
38
- enumValues: [string, ...string[]];
39
- baseColumn: never;
40
- identity: undefined;
41
- generated: undefined;
42
- }, {}, {
43
- length: number | undefined;
44
- }>;
45
- resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
46
- name: "resource_id";
47
- tableName: "roles_scopes";
48
- dataType: "string";
49
- columnType: "SQLiteText";
50
- data: string;
51
- driverParam: string;
52
- notNull: false;
53
- hasDefault: false;
54
- isPrimaryKey: false;
55
- isAutoincrement: false;
56
- hasRuntimeDefault: false;
57
- enumValues: [string, ...string[]];
58
- baseColumn: never;
59
- identity: undefined;
60
- generated: undefined;
61
- }, {}, {
62
- length: number | undefined;
63
- }>;
64
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
65
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
66
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
67
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
68
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
69
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
70
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
71
- };
72
- dialect: "sqlite";
73
- }>;
74
-
75
- declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
76
- name: "roles";
77
- schema: undefined;
78
- columns: {
79
- name: drizzle_orm_sqlite_core.SQLiteColumn<{
80
- name: "name";
81
- tableName: "roles";
82
- dataType: "string";
83
- columnType: "SQLiteText";
84
- data: string;
85
- driverParam: string;
86
- notNull: true;
87
- hasDefault: false;
88
- isPrimaryKey: false;
89
- isAutoincrement: false;
90
- hasRuntimeDefault: false;
91
- enumValues: [string, ...string[]];
92
- baseColumn: never;
93
- identity: undefined;
94
- generated: undefined;
95
- }, {}, {
96
- length: number | undefined;
97
- }>;
98
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
99
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
100
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
101
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
102
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
103
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
104
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
105
- };
106
- dialect: "sqlite";
107
- }>;
108
-
109
- declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
110
- name: "user_roles";
111
- schema: undefined;
112
- columns: {
113
- userId: drizzle_orm_sqlite_core.SQLiteColumn<{
114
- name: "user_id";
115
- tableName: "user_roles";
116
- dataType: "string";
117
- columnType: "SQLiteText";
118
- data: string;
119
- driverParam: string;
120
- notNull: true;
121
- hasDefault: false;
122
- isPrimaryKey: false;
123
- isAutoincrement: false;
124
- hasRuntimeDefault: false;
125
- enumValues: [string, ...string[]];
126
- baseColumn: never;
127
- identity: undefined;
128
- generated: undefined;
129
- }, {}, {
130
- length: number | undefined;
131
- }>;
132
- roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
133
- name: "role_id";
134
- tableName: "user_roles";
135
- dataType: "string";
136
- columnType: "SQLiteText";
137
- data: string;
138
- driverParam: string;
139
- notNull: true;
140
- hasDefault: false;
141
- isPrimaryKey: false;
142
- isAutoincrement: false;
143
- hasRuntimeDefault: false;
144
- enumValues: [string, ...string[]];
145
- baseColumn: never;
146
- identity: undefined;
147
- generated: undefined;
148
- }, {}, {
149
- length: number | undefined;
150
- }>;
151
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
152
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
153
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
154
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
155
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
156
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
157
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
158
- };
159
- dialect: "sqlite";
160
- }>;
161
-
162
- declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
163
- name: "user_scopes";
164
- schema: undefined;
165
- columns: {
166
- userId: drizzle_orm_sqlite_core.SQLiteColumn<{
167
- name: "user_id";
168
- tableName: "user_scopes";
169
- dataType: "string";
170
- columnType: "SQLiteText";
171
- data: string;
172
- driverParam: string;
173
- notNull: true;
174
- hasDefault: false;
175
- isPrimaryKey: false;
176
- isAutoincrement: false;
177
- hasRuntimeDefault: false;
178
- enumValues: [string, ...string[]];
179
- baseColumn: never;
180
- identity: undefined;
181
- generated: undefined;
182
- }, {}, {
183
- length: number | undefined;
184
- }>;
185
- scope: drizzle_orm_sqlite_core.SQLiteColumn<{
186
- name: "scope";
187
- tableName: "user_scopes";
188
- dataType: "string";
189
- columnType: "SQLiteText";
190
- data: string;
191
- driverParam: string;
192
- notNull: true;
193
- hasDefault: false;
194
- isPrimaryKey: false;
195
- isAutoincrement: false;
196
- hasRuntimeDefault: false;
197
- enumValues: [string, ...string[]];
198
- baseColumn: never;
199
- identity: undefined;
200
- generated: undefined;
201
- }, {}, {
202
- length: number | undefined;
203
- }>;
204
- resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
205
- name: "resource_id";
206
- tableName: "user_scopes";
207
- dataType: "string";
208
- columnType: "SQLiteText";
209
- data: string;
210
- driverParam: string;
211
- notNull: false;
212
- hasDefault: false;
213
- isPrimaryKey: false;
214
- isAutoincrement: false;
215
- hasRuntimeDefault: false;
216
- enumValues: [string, ...string[]];
217
- baseColumn: never;
218
- identity: undefined;
219
- generated: undefined;
220
- }, {}, {
221
- length: number | undefined;
222
- }>;
223
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
224
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
225
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
226
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
227
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
228
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
229
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
230
- };
231
- dialect: "sqlite";
232
- }>;
233
-
234
- declare const schema_role: typeof role;
235
- declare const schema_roleScope: typeof roleScope;
236
- declare const schema_userRole: typeof userRole;
237
- declare const schema_userScope: typeof userScope;
238
- declare namespace schema {
239
- export {
240
- schema_role as role,
241
- schema_roleScope as roleScope,
242
- schema_userRole as userRole,
243
- schema_userScope as userScope,
244
- };
245
- }
246
-
247
- export { roleScope as a, userScope as b, role as r, schema as s, userRole as u };
@@ -1,247 +0,0 @@
1
- import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
-
3
- declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4
- name: "roles_scopes";
5
- schema: undefined;
6
- columns: {
7
- roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
8
- name: "role_id";
9
- tableName: "roles_scopes";
10
- dataType: "string";
11
- columnType: "SQLiteText";
12
- data: string;
13
- driverParam: string;
14
- notNull: true;
15
- hasDefault: false;
16
- isPrimaryKey: false;
17
- isAutoincrement: false;
18
- hasRuntimeDefault: false;
19
- enumValues: [string, ...string[]];
20
- baseColumn: never;
21
- identity: undefined;
22
- generated: undefined;
23
- }, {}, {
24
- length: number | undefined;
25
- }>;
26
- scope: drizzle_orm_sqlite_core.SQLiteColumn<{
27
- name: "scope";
28
- tableName: "roles_scopes";
29
- dataType: "string";
30
- columnType: "SQLiteText";
31
- data: string;
32
- driverParam: string;
33
- notNull: true;
34
- hasDefault: false;
35
- isPrimaryKey: false;
36
- isAutoincrement: false;
37
- hasRuntimeDefault: false;
38
- enumValues: [string, ...string[]];
39
- baseColumn: never;
40
- identity: undefined;
41
- generated: undefined;
42
- }, {}, {
43
- length: number | undefined;
44
- }>;
45
- resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
46
- name: "resource_id";
47
- tableName: "roles_scopes";
48
- dataType: "string";
49
- columnType: "SQLiteText";
50
- data: string;
51
- driverParam: string;
52
- notNull: false;
53
- hasDefault: false;
54
- isPrimaryKey: false;
55
- isAutoincrement: false;
56
- hasRuntimeDefault: false;
57
- enumValues: [string, ...string[]];
58
- baseColumn: never;
59
- identity: undefined;
60
- generated: undefined;
61
- }, {}, {
62
- length: number | undefined;
63
- }>;
64
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
65
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
66
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
67
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
68
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
69
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
70
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
71
- };
72
- dialect: "sqlite";
73
- }>;
74
-
75
- declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
76
- name: "roles";
77
- schema: undefined;
78
- columns: {
79
- name: drizzle_orm_sqlite_core.SQLiteColumn<{
80
- name: "name";
81
- tableName: "roles";
82
- dataType: "string";
83
- columnType: "SQLiteText";
84
- data: string;
85
- driverParam: string;
86
- notNull: true;
87
- hasDefault: false;
88
- isPrimaryKey: false;
89
- isAutoincrement: false;
90
- hasRuntimeDefault: false;
91
- enumValues: [string, ...string[]];
92
- baseColumn: never;
93
- identity: undefined;
94
- generated: undefined;
95
- }, {}, {
96
- length: number | undefined;
97
- }>;
98
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
99
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
100
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
101
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
102
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
103
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
104
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
105
- };
106
- dialect: "sqlite";
107
- }>;
108
-
109
- declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
110
- name: "user_roles";
111
- schema: undefined;
112
- columns: {
113
- userId: drizzle_orm_sqlite_core.SQLiteColumn<{
114
- name: "user_id";
115
- tableName: "user_roles";
116
- dataType: "string";
117
- columnType: "SQLiteText";
118
- data: string;
119
- driverParam: string;
120
- notNull: true;
121
- hasDefault: false;
122
- isPrimaryKey: false;
123
- isAutoincrement: false;
124
- hasRuntimeDefault: false;
125
- enumValues: [string, ...string[]];
126
- baseColumn: never;
127
- identity: undefined;
128
- generated: undefined;
129
- }, {}, {
130
- length: number | undefined;
131
- }>;
132
- roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
133
- name: "role_id";
134
- tableName: "user_roles";
135
- dataType: "string";
136
- columnType: "SQLiteText";
137
- data: string;
138
- driverParam: string;
139
- notNull: true;
140
- hasDefault: false;
141
- isPrimaryKey: false;
142
- isAutoincrement: false;
143
- hasRuntimeDefault: false;
144
- enumValues: [string, ...string[]];
145
- baseColumn: never;
146
- identity: undefined;
147
- generated: undefined;
148
- }, {}, {
149
- length: number | undefined;
150
- }>;
151
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
152
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
153
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
154
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
155
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
156
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
157
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
158
- };
159
- dialect: "sqlite";
160
- }>;
161
-
162
- declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
163
- name: "user_scopes";
164
- schema: undefined;
165
- columns: {
166
- userId: drizzle_orm_sqlite_core.SQLiteColumn<{
167
- name: "user_id";
168
- tableName: "user_scopes";
169
- dataType: "string";
170
- columnType: "SQLiteText";
171
- data: string;
172
- driverParam: string;
173
- notNull: true;
174
- hasDefault: false;
175
- isPrimaryKey: false;
176
- isAutoincrement: false;
177
- hasRuntimeDefault: false;
178
- enumValues: [string, ...string[]];
179
- baseColumn: never;
180
- identity: undefined;
181
- generated: undefined;
182
- }, {}, {
183
- length: number | undefined;
184
- }>;
185
- scope: drizzle_orm_sqlite_core.SQLiteColumn<{
186
- name: "scope";
187
- tableName: "user_scopes";
188
- dataType: "string";
189
- columnType: "SQLiteText";
190
- data: string;
191
- driverParam: string;
192
- notNull: true;
193
- hasDefault: false;
194
- isPrimaryKey: false;
195
- isAutoincrement: false;
196
- hasRuntimeDefault: false;
197
- enumValues: [string, ...string[]];
198
- baseColumn: never;
199
- identity: undefined;
200
- generated: undefined;
201
- }, {}, {
202
- length: number | undefined;
203
- }>;
204
- resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
205
- name: "resource_id";
206
- tableName: "user_scopes";
207
- dataType: "string";
208
- columnType: "SQLiteText";
209
- data: string;
210
- driverParam: string;
211
- notNull: false;
212
- hasDefault: false;
213
- isPrimaryKey: false;
214
- isAutoincrement: false;
215
- hasRuntimeDefault: false;
216
- enumValues: [string, ...string[]];
217
- baseColumn: never;
218
- identity: undefined;
219
- generated: undefined;
220
- }, {}, {
221
- length: number | undefined;
222
- }>;
223
- id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
224
- createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
225
- createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
226
- updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
227
- updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
228
- deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
229
- deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
230
- };
231
- dialect: "sqlite";
232
- }>;
233
-
234
- declare const schema_role: typeof role;
235
- declare const schema_roleScope: typeof roleScope;
236
- declare const schema_userRole: typeof userRole;
237
- declare const schema_userScope: typeof userScope;
238
- declare namespace schema {
239
- export {
240
- schema_role as role,
241
- schema_roleScope as roleScope,
242
- schema_userRole as userRole,
243
- schema_userScope as userScope,
244
- };
245
- }
246
-
247
- export { roleScope as a, userScope as b, role as r, schema as s, userRole as u };