@develit-services/rbac 0.7.0 → 1.0.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.
- package/dist/database/schema.cjs +2 -1
- package/dist/database/schema.d.cts +2 -1
- package/dist/database/schema.d.mts +2 -1
- package/dist/database/schema.d.ts +2 -1
- package/dist/database/schema.mjs +2 -1
- package/dist/export/worker.cjs +21 -9
- package/dist/export/worker.d.cts +3 -7
- package/dist/export/worker.d.mts +4 -6
- package/dist/export/worker.d.ts +3 -7
- package/dist/export/worker.mjs +23 -8
- package/dist/export/wrangler.cjs +5 -11
- package/dist/export/wrangler.d.cts +1 -1
- package/dist/export/wrangler.d.mts +1 -1
- package/dist/export/wrangler.d.ts +1 -1
- package/dist/export/wrangler.mjs +5 -11
- package/dist/shared/{rbac.H1LXb5Lk.mjs → rbac.BUAU2nhH.mjs} +6 -2
- package/dist/shared/rbac.CNbKvNcg.d.cts +221 -0
- package/dist/shared/rbac.CNbKvNcg.d.mts +221 -0
- package/dist/shared/rbac.CNbKvNcg.d.ts +221 -0
- package/dist/shared/{rbac.CSHPMf7E.d.mts → rbac.CusjQLB-.d.mts} +1 -1
- package/dist/shared/{rbac.gXUvaSJ2.cjs → rbac.D4H9O9-q.cjs} +5 -1
- package/dist/shared/{rbac.CkCfjtKu.d.ts → rbac.DhWWcHCj.d.ts} +1 -1
- package/dist/shared/{rbac.DUk_qXWk.d.cts → rbac.ZCOTsP5y.d.cts} +4 -3
- package/dist/shared/{rbac.DUk_qXWk.d.mts → rbac.ZCOTsP5y.d.mts} +4 -3
- package/dist/shared/{rbac.DUk_qXWk.d.ts → rbac.ZCOTsP5y.d.ts} +4 -3
- package/dist/shared/{rbac.DypKJ7qb.d.cts → rbac.bOBgd_Ez.d.cts} +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/package.json +6 -6
- package/dist/shared/rbac.D5N_wrRb.d.cts +0 -727
- package/dist/shared/rbac.D5N_wrRb.d.mts +0 -727
- package/dist/shared/rbac.D5N_wrRb.d.ts +0 -727
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import * as drizzle_orm from 'drizzle-orm';
|
|
2
|
+
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
|
+
|
|
4
|
+
declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
5
|
+
name: "roles_scopes";
|
|
6
|
+
schema: undefined;
|
|
7
|
+
columns: {
|
|
8
|
+
roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9
|
+
name: string;
|
|
10
|
+
tableName: "roles_scopes";
|
|
11
|
+
dataType: "string";
|
|
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
|
+
scope: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
25
|
+
name: string;
|
|
26
|
+
tableName: "roles_scopes";
|
|
27
|
+
dataType: "string";
|
|
28
|
+
data: string;
|
|
29
|
+
driverParam: string;
|
|
30
|
+
notNull: true;
|
|
31
|
+
hasDefault: false;
|
|
32
|
+
isPrimaryKey: false;
|
|
33
|
+
isAutoincrement: false;
|
|
34
|
+
hasRuntimeDefault: false;
|
|
35
|
+
enumValues: [string, ...string[]];
|
|
36
|
+
baseColumn: never;
|
|
37
|
+
identity: undefined;
|
|
38
|
+
generated: undefined;
|
|
39
|
+
}, {}>;
|
|
40
|
+
resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
41
|
+
name: string;
|
|
42
|
+
tableName: "roles_scopes";
|
|
43
|
+
dataType: "string";
|
|
44
|
+
data: string;
|
|
45
|
+
driverParam: string;
|
|
46
|
+
notNull: false;
|
|
47
|
+
hasDefault: false;
|
|
48
|
+
isPrimaryKey: false;
|
|
49
|
+
isAutoincrement: false;
|
|
50
|
+
hasRuntimeDefault: false;
|
|
51
|
+
enumValues: [string, ...string[]];
|
|
52
|
+
baseColumn: never;
|
|
53
|
+
identity: undefined;
|
|
54
|
+
generated: undefined;
|
|
55
|
+
}, {}>;
|
|
56
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
57
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
58
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
59
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
60
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
61
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
62
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
63
|
+
};
|
|
64
|
+
dialect: "sqlite";
|
|
65
|
+
}>;
|
|
66
|
+
|
|
67
|
+
declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
68
|
+
name: "roles";
|
|
69
|
+
schema: undefined;
|
|
70
|
+
columns: {
|
|
71
|
+
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
72
|
+
name: string;
|
|
73
|
+
tableName: "roles";
|
|
74
|
+
dataType: "string";
|
|
75
|
+
data: string;
|
|
76
|
+
driverParam: string;
|
|
77
|
+
notNull: true;
|
|
78
|
+
hasDefault: false;
|
|
79
|
+
isPrimaryKey: false;
|
|
80
|
+
isAutoincrement: false;
|
|
81
|
+
hasRuntimeDefault: false;
|
|
82
|
+
enumValues: [string, ...string[]];
|
|
83
|
+
baseColumn: never;
|
|
84
|
+
identity: undefined;
|
|
85
|
+
generated: undefined;
|
|
86
|
+
}, {}>;
|
|
87
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
88
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
89
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
90
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
91
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
92
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
93
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
94
|
+
};
|
|
95
|
+
dialect: "sqlite";
|
|
96
|
+
}>;
|
|
97
|
+
|
|
98
|
+
declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
99
|
+
name: "user_roles";
|
|
100
|
+
schema: undefined;
|
|
101
|
+
columns: {
|
|
102
|
+
userId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
103
|
+
name: string;
|
|
104
|
+
tableName: "user_roles";
|
|
105
|
+
dataType: "string";
|
|
106
|
+
data: string;
|
|
107
|
+
driverParam: string;
|
|
108
|
+
notNull: true;
|
|
109
|
+
hasDefault: false;
|
|
110
|
+
isPrimaryKey: false;
|
|
111
|
+
isAutoincrement: false;
|
|
112
|
+
hasRuntimeDefault: false;
|
|
113
|
+
enumValues: [string, ...string[]];
|
|
114
|
+
baseColumn: never;
|
|
115
|
+
identity: undefined;
|
|
116
|
+
generated: undefined;
|
|
117
|
+
}, {}>;
|
|
118
|
+
roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
119
|
+
name: string;
|
|
120
|
+
tableName: "user_roles";
|
|
121
|
+
dataType: "string";
|
|
122
|
+
data: string;
|
|
123
|
+
driverParam: string;
|
|
124
|
+
notNull: true;
|
|
125
|
+
hasDefault: false;
|
|
126
|
+
isPrimaryKey: false;
|
|
127
|
+
isAutoincrement: false;
|
|
128
|
+
hasRuntimeDefault: false;
|
|
129
|
+
enumValues: [string, ...string[]];
|
|
130
|
+
baseColumn: never;
|
|
131
|
+
identity: undefined;
|
|
132
|
+
generated: undefined;
|
|
133
|
+
}, {}>;
|
|
134
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
135
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
136
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
137
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
138
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
139
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
140
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
141
|
+
};
|
|
142
|
+
dialect: "sqlite";
|
|
143
|
+
}>;
|
|
144
|
+
|
|
145
|
+
declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
146
|
+
name: "user_scopes";
|
|
147
|
+
schema: undefined;
|
|
148
|
+
columns: {
|
|
149
|
+
userId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
150
|
+
name: string;
|
|
151
|
+
tableName: "user_scopes";
|
|
152
|
+
dataType: "string";
|
|
153
|
+
data: string;
|
|
154
|
+
driverParam: string;
|
|
155
|
+
notNull: true;
|
|
156
|
+
hasDefault: false;
|
|
157
|
+
isPrimaryKey: false;
|
|
158
|
+
isAutoincrement: false;
|
|
159
|
+
hasRuntimeDefault: false;
|
|
160
|
+
enumValues: [string, ...string[]];
|
|
161
|
+
baseColumn: never;
|
|
162
|
+
identity: undefined;
|
|
163
|
+
generated: undefined;
|
|
164
|
+
}, {}>;
|
|
165
|
+
scope: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
166
|
+
name: string;
|
|
167
|
+
tableName: "user_scopes";
|
|
168
|
+
dataType: "string";
|
|
169
|
+
data: string;
|
|
170
|
+
driverParam: string;
|
|
171
|
+
notNull: true;
|
|
172
|
+
hasDefault: false;
|
|
173
|
+
isPrimaryKey: false;
|
|
174
|
+
isAutoincrement: false;
|
|
175
|
+
hasRuntimeDefault: false;
|
|
176
|
+
enumValues: [string, ...string[]];
|
|
177
|
+
baseColumn: never;
|
|
178
|
+
identity: undefined;
|
|
179
|
+
generated: undefined;
|
|
180
|
+
}, {}>;
|
|
181
|
+
resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
|
+
name: string;
|
|
183
|
+
tableName: "user_scopes";
|
|
184
|
+
dataType: "string";
|
|
185
|
+
data: string;
|
|
186
|
+
driverParam: string;
|
|
187
|
+
notNull: false;
|
|
188
|
+
hasDefault: false;
|
|
189
|
+
isPrimaryKey: false;
|
|
190
|
+
isAutoincrement: false;
|
|
191
|
+
hasRuntimeDefault: false;
|
|
192
|
+
enumValues: [string, ...string[]];
|
|
193
|
+
baseColumn: never;
|
|
194
|
+
identity: undefined;
|
|
195
|
+
generated: undefined;
|
|
196
|
+
}, {}>;
|
|
197
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
198
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
199
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
200
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
201
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
202
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
203
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
204
|
+
};
|
|
205
|
+
dialect: "sqlite";
|
|
206
|
+
}>;
|
|
207
|
+
|
|
208
|
+
declare const schema_role: typeof role;
|
|
209
|
+
declare const schema_roleScope: typeof roleScope;
|
|
210
|
+
declare const schema_userRole: typeof userRole;
|
|
211
|
+
declare const schema_userScope: typeof userScope;
|
|
212
|
+
declare namespace schema {
|
|
213
|
+
export {
|
|
214
|
+
schema_role as role,
|
|
215
|
+
schema_roleScope as roleScope,
|
|
216
|
+
schema_userRole as userRole,
|
|
217
|
+
schema_userScope as userScope,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export { roleScope as a, userScope as b, role as r, schema as s, userRole as u };
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import * as drizzle_orm from 'drizzle-orm';
|
|
2
|
+
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
|
+
|
|
4
|
+
declare const roleScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
5
|
+
name: "roles_scopes";
|
|
6
|
+
schema: undefined;
|
|
7
|
+
columns: {
|
|
8
|
+
roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9
|
+
name: string;
|
|
10
|
+
tableName: "roles_scopes";
|
|
11
|
+
dataType: "string";
|
|
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
|
+
scope: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
25
|
+
name: string;
|
|
26
|
+
tableName: "roles_scopes";
|
|
27
|
+
dataType: "string";
|
|
28
|
+
data: string;
|
|
29
|
+
driverParam: string;
|
|
30
|
+
notNull: true;
|
|
31
|
+
hasDefault: false;
|
|
32
|
+
isPrimaryKey: false;
|
|
33
|
+
isAutoincrement: false;
|
|
34
|
+
hasRuntimeDefault: false;
|
|
35
|
+
enumValues: [string, ...string[]];
|
|
36
|
+
baseColumn: never;
|
|
37
|
+
identity: undefined;
|
|
38
|
+
generated: undefined;
|
|
39
|
+
}, {}>;
|
|
40
|
+
resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
41
|
+
name: string;
|
|
42
|
+
tableName: "roles_scopes";
|
|
43
|
+
dataType: "string";
|
|
44
|
+
data: string;
|
|
45
|
+
driverParam: string;
|
|
46
|
+
notNull: false;
|
|
47
|
+
hasDefault: false;
|
|
48
|
+
isPrimaryKey: false;
|
|
49
|
+
isAutoincrement: false;
|
|
50
|
+
hasRuntimeDefault: false;
|
|
51
|
+
enumValues: [string, ...string[]];
|
|
52
|
+
baseColumn: never;
|
|
53
|
+
identity: undefined;
|
|
54
|
+
generated: undefined;
|
|
55
|
+
}, {}>;
|
|
56
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
57
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
58
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
59
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
60
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
61
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
62
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
63
|
+
};
|
|
64
|
+
dialect: "sqlite";
|
|
65
|
+
}>;
|
|
66
|
+
|
|
67
|
+
declare const role: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
68
|
+
name: "roles";
|
|
69
|
+
schema: undefined;
|
|
70
|
+
columns: {
|
|
71
|
+
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
72
|
+
name: string;
|
|
73
|
+
tableName: "roles";
|
|
74
|
+
dataType: "string";
|
|
75
|
+
data: string;
|
|
76
|
+
driverParam: string;
|
|
77
|
+
notNull: true;
|
|
78
|
+
hasDefault: false;
|
|
79
|
+
isPrimaryKey: false;
|
|
80
|
+
isAutoincrement: false;
|
|
81
|
+
hasRuntimeDefault: false;
|
|
82
|
+
enumValues: [string, ...string[]];
|
|
83
|
+
baseColumn: never;
|
|
84
|
+
identity: undefined;
|
|
85
|
+
generated: undefined;
|
|
86
|
+
}, {}>;
|
|
87
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
88
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
89
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
90
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
91
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
92
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
93
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
94
|
+
};
|
|
95
|
+
dialect: "sqlite";
|
|
96
|
+
}>;
|
|
97
|
+
|
|
98
|
+
declare const userRole: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
99
|
+
name: "user_roles";
|
|
100
|
+
schema: undefined;
|
|
101
|
+
columns: {
|
|
102
|
+
userId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
103
|
+
name: string;
|
|
104
|
+
tableName: "user_roles";
|
|
105
|
+
dataType: "string";
|
|
106
|
+
data: string;
|
|
107
|
+
driverParam: string;
|
|
108
|
+
notNull: true;
|
|
109
|
+
hasDefault: false;
|
|
110
|
+
isPrimaryKey: false;
|
|
111
|
+
isAutoincrement: false;
|
|
112
|
+
hasRuntimeDefault: false;
|
|
113
|
+
enumValues: [string, ...string[]];
|
|
114
|
+
baseColumn: never;
|
|
115
|
+
identity: undefined;
|
|
116
|
+
generated: undefined;
|
|
117
|
+
}, {}>;
|
|
118
|
+
roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
119
|
+
name: string;
|
|
120
|
+
tableName: "user_roles";
|
|
121
|
+
dataType: "string";
|
|
122
|
+
data: string;
|
|
123
|
+
driverParam: string;
|
|
124
|
+
notNull: true;
|
|
125
|
+
hasDefault: false;
|
|
126
|
+
isPrimaryKey: false;
|
|
127
|
+
isAutoincrement: false;
|
|
128
|
+
hasRuntimeDefault: false;
|
|
129
|
+
enumValues: [string, ...string[]];
|
|
130
|
+
baseColumn: never;
|
|
131
|
+
identity: undefined;
|
|
132
|
+
generated: undefined;
|
|
133
|
+
}, {}>;
|
|
134
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
135
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
136
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
137
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
138
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
139
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
140
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
141
|
+
};
|
|
142
|
+
dialect: "sqlite";
|
|
143
|
+
}>;
|
|
144
|
+
|
|
145
|
+
declare const userScope: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
146
|
+
name: "user_scopes";
|
|
147
|
+
schema: undefined;
|
|
148
|
+
columns: {
|
|
149
|
+
userId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
150
|
+
name: string;
|
|
151
|
+
tableName: "user_scopes";
|
|
152
|
+
dataType: "string";
|
|
153
|
+
data: string;
|
|
154
|
+
driverParam: string;
|
|
155
|
+
notNull: true;
|
|
156
|
+
hasDefault: false;
|
|
157
|
+
isPrimaryKey: false;
|
|
158
|
+
isAutoincrement: false;
|
|
159
|
+
hasRuntimeDefault: false;
|
|
160
|
+
enumValues: [string, ...string[]];
|
|
161
|
+
baseColumn: never;
|
|
162
|
+
identity: undefined;
|
|
163
|
+
generated: undefined;
|
|
164
|
+
}, {}>;
|
|
165
|
+
scope: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
166
|
+
name: string;
|
|
167
|
+
tableName: "user_scopes";
|
|
168
|
+
dataType: "string";
|
|
169
|
+
data: string;
|
|
170
|
+
driverParam: string;
|
|
171
|
+
notNull: true;
|
|
172
|
+
hasDefault: false;
|
|
173
|
+
isPrimaryKey: false;
|
|
174
|
+
isAutoincrement: false;
|
|
175
|
+
hasRuntimeDefault: false;
|
|
176
|
+
enumValues: [string, ...string[]];
|
|
177
|
+
baseColumn: never;
|
|
178
|
+
identity: undefined;
|
|
179
|
+
generated: undefined;
|
|
180
|
+
}, {}>;
|
|
181
|
+
resourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
|
+
name: string;
|
|
183
|
+
tableName: "user_scopes";
|
|
184
|
+
dataType: "string";
|
|
185
|
+
data: string;
|
|
186
|
+
driverParam: string;
|
|
187
|
+
notNull: false;
|
|
188
|
+
hasDefault: false;
|
|
189
|
+
isPrimaryKey: false;
|
|
190
|
+
isAutoincrement: false;
|
|
191
|
+
hasRuntimeDefault: false;
|
|
192
|
+
enumValues: [string, ...string[]];
|
|
193
|
+
baseColumn: never;
|
|
194
|
+
identity: undefined;
|
|
195
|
+
generated: undefined;
|
|
196
|
+
}, {}>;
|
|
197
|
+
id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
198
|
+
createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
199
|
+
createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
|
|
200
|
+
updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
201
|
+
updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
|
|
202
|
+
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
203
|
+
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
204
|
+
};
|
|
205
|
+
dialect: "sqlite";
|
|
206
|
+
}>;
|
|
207
|
+
|
|
208
|
+
declare const schema_role: typeof role;
|
|
209
|
+
declare const schema_roleScope: typeof roleScope;
|
|
210
|
+
declare const schema_userRole: typeof userRole;
|
|
211
|
+
declare const schema_userScope: typeof userScope;
|
|
212
|
+
declare namespace schema {
|
|
213
|
+
export {
|
|
214
|
+
schema_role as role,
|
|
215
|
+
schema_roleScope as roleScope,
|
|
216
|
+
schema_userRole as userRole,
|
|
217
|
+
schema_userScope as userScope,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export { roleScope as a, userScope as b, role as r, schema as s, userRole as u };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const sqliteCore = require('drizzle-orm/sqlite-core');
|
|
5
|
+
const drizzleOrm = require('drizzle-orm');
|
|
5
6
|
|
|
6
7
|
const role = sqliteCore.sqliteTable("roles", {
|
|
7
8
|
...backendSdk.base,
|
|
@@ -33,7 +34,10 @@ const userScope = sqliteCore.sqliteTable(
|
|
|
33
34
|
scope: sqliteCore.text("scope").notNull(),
|
|
34
35
|
resourceId: sqliteCore.text("resource_id")
|
|
35
36
|
},
|
|
36
|
-
(t) => [
|
|
37
|
+
(t) => [
|
|
38
|
+
sqliteCore.unique("unique_user_scope_resource").on(t.userId, t.scope, t.resourceId),
|
|
39
|
+
sqliteCore.uniqueIndex("unique_user_scope_null_resource").on(t.userId, t.scope).where(drizzleOrm.isNull(t.resourceId))
|
|
40
|
+
]
|
|
37
41
|
);
|
|
38
42
|
|
|
39
43
|
const schema = {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
interface RbacServiceEnvironmentConfig {
|
|
2
|
-
d1: {
|
|
3
|
-
id: string;
|
|
4
|
-
};
|
|
5
2
|
vars: {
|
|
6
3
|
SERVICE_CONFIG_INCLUDE_CONFIRMATION: boolean;
|
|
7
4
|
};
|
|
5
|
+
customVars?: Record<string, string>;
|
|
8
6
|
}
|
|
9
7
|
interface RbacServiceWranglerConfig {
|
|
10
8
|
project: string;
|
|
11
9
|
name: string;
|
|
10
|
+
d1: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
12
13
|
envs: {
|
|
13
14
|
local: RbacServiceEnvironmentConfig;
|
|
14
15
|
[key: string]: RbacServiceEnvironmentConfig;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
interface RbacServiceEnvironmentConfig {
|
|
2
|
-
d1: {
|
|
3
|
-
id: string;
|
|
4
|
-
};
|
|
5
2
|
vars: {
|
|
6
3
|
SERVICE_CONFIG_INCLUDE_CONFIRMATION: boolean;
|
|
7
4
|
};
|
|
5
|
+
customVars?: Record<string, string>;
|
|
8
6
|
}
|
|
9
7
|
interface RbacServiceWranglerConfig {
|
|
10
8
|
project: string;
|
|
11
9
|
name: string;
|
|
10
|
+
d1: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
12
13
|
envs: {
|
|
13
14
|
local: RbacServiceEnvironmentConfig;
|
|
14
15
|
[key: string]: RbacServiceEnvironmentConfig;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
interface RbacServiceEnvironmentConfig {
|
|
2
|
-
d1: {
|
|
3
|
-
id: string;
|
|
4
|
-
};
|
|
5
2
|
vars: {
|
|
6
3
|
SERVICE_CONFIG_INCLUDE_CONFIRMATION: boolean;
|
|
7
4
|
};
|
|
5
|
+
customVars?: Record<string, string>;
|
|
8
6
|
}
|
|
9
7
|
interface RbacServiceWranglerConfig {
|
|
10
8
|
project: string;
|
|
11
9
|
name: string;
|
|
10
|
+
d1: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
12
13
|
envs: {
|
|
13
14
|
local: RbacServiceEnvironmentConfig;
|
|
14
15
|
[key: string]: RbacServiceEnvironmentConfig;
|
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, 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.
|
|
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.bOBgd_Ez.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.
|
|
3
|
+
export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ZCOTsP5y.cjs';
|
|
4
4
|
import 'drizzle-orm';
|
|
5
|
-
import './shared/rbac.
|
|
5
|
+
import './shared/rbac.CNbKvNcg.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, 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.
|
|
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.CusjQLB-.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.
|
|
3
|
+
export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ZCOTsP5y.mjs';
|
|
4
4
|
import 'drizzle-orm';
|
|
5
|
-
import './shared/rbac.
|
|
5
|
+
import './shared/rbac.CNbKvNcg.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, 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.
|
|
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.DhWWcHCj.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.
|
|
3
|
+
export { a as RbacServiceEnv, b as RbacServiceEnvironmentConfig, R as RbacServiceWranglerConfig } from './shared/rbac.ZCOTsP5y.js';
|
|
4
4
|
import 'drizzle-orm';
|
|
5
|
-
import './shared/rbac.
|
|
5
|
+
import './shared/rbac.CNbKvNcg.js';
|
|
6
6
|
import 'drizzle-orm/sqlite-core';
|
|
7
7
|
|
|
8
8
|
declare const verifyScopeInputSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/rbac",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"dev": "wrangler dev --port 9237 --persist-to ../../.wrangler/state -c ./wrangler.jsonc -c ../../apps/secrets-store/wrangler.jsonc",
|
|
34
34
|
"wrangler:generate": "bunx develit wrangler:generate --types",
|
|
35
35
|
"db:init": "wrangler d1 execute develit-rbac --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
36
|
-
"db:generate": "
|
|
37
|
-
"db:migrate": "
|
|
38
|
-
"db:explore": "
|
|
36
|
+
"db:generate": "bun --bun drizzle-kit generate",
|
|
37
|
+
"db:migrate": "drizzle-kit migrate",
|
|
38
|
+
"db:explore": "drizzle-kit studio",
|
|
39
39
|
"types": "bash typegen.sh",
|
|
40
40
|
"lint": "biome check",
|
|
41
41
|
"lint:fix": "biome check --fix",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"build": "unbuild"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@develit-io/backend-sdk": "^
|
|
50
|
-
"drizzle-orm": "^0.
|
|
49
|
+
"@develit-io/backend-sdk": "^11.0.2",
|
|
50
|
+
"drizzle-orm": "^1.0.0-rc.1",
|
|
51
51
|
"zod": "^4.1.13"
|
|
52
52
|
}
|
|
53
53
|
}
|