@riao/iam 1.0.0 → 2.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/auth/auth-migrations.d.ts +4 -0
- package/auth/auth-migrations.js +12 -0
- package/auth/auth-migrations.js.map +1 -0
- package/auth/auth.d.ts +11 -0
- package/auth/auth.js +18 -0
- package/auth/auth.js.map +1 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +6 -0
- package/auth/index.js.map +1 -0
- package/auth/migrations/001-create-accounts-table.d.ts +5 -0
- package/auth/migrations/001-create-accounts-table.js +27 -0
- package/auth/migrations/001-create-accounts-table.js.map +1 -0
- package/authentication/authentication-base/authentication-base.d.ts +10 -0
- package/authentication/authentication-base/authentication-base.js +33 -0
- package/authentication/authentication-base/authentication-base.js.map +1 -0
- package/authentication/authentication-base/index.d.ts +1 -0
- package/authentication/authentication-base/index.js +6 -0
- package/authentication/authentication-base/index.js.map +1 -0
- package/authentication/authentication-fido2/authentication-fido2-migrations.d.ts +5 -0
- package/authentication/authentication-fido2/authentication-fido2-migrations.js +17 -0
- package/authentication/authentication-fido2/authentication-fido2-migrations.js.map +1 -0
- package/authentication/authentication-fido2/authentication-fido2.d.ts +58 -0
- package/authentication/authentication-fido2/authentication-fido2.js +260 -0
- package/authentication/authentication-fido2/authentication-fido2.js.map +1 -0
- package/authentication/authentication-fido2/index.d.ts +1 -0
- package/authentication/authentication-fido2/index.js +6 -0
- package/authentication/authentication-fido2/index.js.map +1 -0
- package/authentication/authentication-fido2/migrations/create-fido-challenges-table.d.ts +5 -0
- package/authentication/authentication-fido2/migrations/create-fido-challenges-table.js +61 -0
- package/authentication/authentication-fido2/migrations/create-fido-challenges-table.js.map +1 -0
- package/authentication/authentication-fido2/migrations/create-fido-credentials-table.d.ts +5 -0
- package/authentication/authentication-fido2/migrations/create-fido-credentials-table.js +68 -0
- package/authentication/authentication-fido2/migrations/create-fido-credentials-table.js.map +1 -0
- package/authentication/authentication-fido2/migrations/index.d.ts +2 -0
- package/authentication/authentication-fido2/migrations/index.js +6 -0
- package/authentication/authentication-fido2/migrations/index.js.map +1 -0
- package/authentication/authentication-magic-token/authentication-magic-token-migrations.d.ts +5 -0
- package/authentication/authentication-magic-token/authentication-magic-token-migrations.js +16 -0
- package/authentication/authentication-magic-token/authentication-magic-token-migrations.js.map +1 -0
- package/authentication/authentication-magic-token/authentication-magic-token.d.ts +25 -0
- package/authentication/authentication-magic-token/authentication-magic-token.js +76 -0
- package/authentication/authentication-magic-token/authentication-magic-token.js.map +1 -0
- package/authentication/authentication-magic-token/index.d.ts +1 -0
- package/authentication/authentication-magic-token/index.js +6 -0
- package/authentication/authentication-magic-token/index.js.map +1 -0
- package/authentication/authentication-magic-token/magic-token.d.ts +17 -0
- package/authentication/authentication-magic-token/magic-token.js +7 -0
- package/authentication/authentication-magic-token/magic-token.js.map +1 -0
- package/authentication/authentication-magic-token/migrations/001-create-magic-token-table.d.ts +5 -0
- package/authentication/authentication-magic-token/migrations/001-create-magic-token-table.js +44 -0
- package/authentication/authentication-magic-token/migrations/001-create-magic-token-table.js.map +1 -0
- package/authentication/authentication-password/authentication-password-migrations.d.ts +5 -0
- package/authentication/authentication-password/authentication-password-migrations.js +16 -0
- package/authentication/authentication-password/authentication-password-migrations.js.map +1 -0
- package/authentication/authentication-password/authentication-password.d.ts +8 -0
- package/authentication/authentication-password/authentication-password.js +28 -0
- package/authentication/authentication-password/authentication-password.js.map +1 -0
- package/authentication/authentication-password/index.d.ts +1 -0
- package/authentication/authentication-password/index.js +6 -0
- package/authentication/authentication-password/index.js.map +1 -0
- package/authentication/authentication-password/migrations/001-add-password-column.d.ts +5 -0
- package/authentication/authentication-password/migrations/001-add-password-column.js +21 -0
- package/authentication/authentication-password/migrations/001-add-password-column.js.map +1 -0
- package/encrypt.d.ts +6 -0
- package/encrypt.js +18 -0
- package/encrypt.js.map +1 -0
- package/hash.d.ts +5 -0
- package/hash.js +15 -0
- package/hash.js.map +1 -0
- package/index.d.ts +1 -2
- package/index.js +4 -18
- package/index.js.map +1 -1
- package/jwt.d.ts +26 -28
- package/jwt.js +54 -83
- package/jwt.js.map +1 -1
- package/keypair.d.ts +24 -24
- package/keypair.js +72 -70
- package/keypair.js.map +1 -1
- package/package.json +31 -10
- package/secret.d.ts +5 -5
- package/secret.js +2 -2
- package/auth.d.ts +0 -11
- package/auth.js +0 -16
- package/auth.js.map +0 -1
- package/authentication-base.d.ts +0 -12
- package/authentication-base.js +0 -48
- package/authentication-base.js.map +0 -1
- package/authentication-password.d.ts +0 -11
- package/authentication-password.js +0 -43
- package/authentication-password.js.map +0 -1
- package/authentication-passwordless.d.ts +0 -24
- package/authentication-passwordless.js +0 -55
- package/authentication-passwordless.js.map +0 -1
- package/authorization-abac.d.ts +0 -8
- package/authorization-abac.js +0 -33
- package/authorization-abac.js.map +0 -1
- package/authorization-base.d.ts +0 -17
- package/authorization-base.js +0 -30
- package/authorization-base.js.map +0 -1
- package/authorization-hmm.d.ts +0 -0
- package/authorization-hmm.js +0 -173
- package/authorization-hmm.js.map +0 -1
- package/authorization-rbac.d.ts +0 -14
- package/authorization-rbac.js +0 -61
- package/authorization-rbac.js.map +0 -1
- package/errors/authentication-error.d.ts +0 -3
- package/errors/authentication-error.js +0 -8
- package/errors/authentication-error.js.map +0 -1
- package/errors/authorization-error.d.ts +0 -3
- package/errors/authorization-error.js +0 -8
- package/errors/authorization-error.js.map +0 -1
- package/errors/error.d.ts +0 -2
- package/errors/error.js +0 -7
- package/errors/error.js.map +0 -1
- package/iam.d.ts +0 -40
- package/iam.js +0 -73
- package/iam.js.map +0 -1
- package/migrations/1725221752756-create-users-table.d.ts +0 -7
- package/migrations/1725221752756-create-users-table.js +0 -36
- package/migrations/1725221752756-create-users-table.js.map +0 -1
- package/migrations/1725221859886-create-roles-table.d.ts +0 -7
- package/migrations/1725221859886-create-roles-table.js +0 -36
- package/migrations/1725221859886-create-roles-table.js.map +0 -1
- package/migrations/1725221896876-create-permissions-table.d.ts +0 -7
- package/migrations/1725221896876-create-permissions-table.js +0 -41
- package/migrations/1725221896876-create-permissions-table.js.map +0 -1
- package/migrations/1725221935064-create-role-permissions-table.d.ts +0 -7
- package/migrations/1725221935064-create-role-permissions-table.js +0 -56
- package/migrations/1725221935064-create-role-permissions-table.js.map +0 -1
- package/migrations/1725221951873-create-user-roles-table.d.ts +0 -7
- package/migrations/1725221951873-create-user-roles-table.js +0 -56
- package/migrations/1725221951873-create-user-roles-table.js.map +0 -1
- package/migrations/index.d.ts +0 -5
- package/migrations/index.js +0 -22
- package/migrations/index.js.map +0 -1
- package/token.d.ts +0 -13
- package/token.js +0 -3
- package/token.js.map +0 -1
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateRolesTable = void 0;
|
|
13
|
-
const dbal_1 = require("@riao/dbal");
|
|
14
|
-
const column_pack_1 = require("@riao/dbal/column-pack");
|
|
15
|
-
class CreateRolesTable extends dbal_1.Migration {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.tableName = 'riao_roles';
|
|
19
|
-
this.columns = [column_pack_1.IntKeyColumn, column_pack_1.NameColumn];
|
|
20
|
-
}
|
|
21
|
-
up() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
yield this.ddl.createTable({
|
|
24
|
-
name: this.tableName,
|
|
25
|
-
columns: this.columns,
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
down() {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
yield this.ddl.dropTable({ tables: this.tableName });
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.CreateRolesTable = CreateRolesTable;
|
|
36
|
-
//# sourceMappingURL=1725221859886-create-roles-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1725221859886-create-roles-table.js","sourceRoot":"","sources":["../../../src/migrations/1725221859886-create-roles-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuC;AACvC,wDAAkE;AAElE,MAAa,gBAAiB,SAAQ,gBAAS;IAA/C;;QACQ,cAAS,GAAG,YAAY,CAAC;QACzB,YAAO,GAAG,CAAC,0BAAY,EAAE,wBAAU,CAAC,CAAC;IAY7C,CAAC;IAVM,EAAE;;YACP,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,IAAI,CAAC,SAAS;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACrB,CAAC,CAAC;QACJ,CAAC;KAAA;IAEK,IAAI;;YACT,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACtD,CAAC;KAAA;CACD;AAdD,4CAcC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreatePermissionsTable = void 0;
|
|
13
|
-
const dbal_1 = require("@riao/dbal");
|
|
14
|
-
const column_pack_1 = require("@riao/dbal/column-pack");
|
|
15
|
-
class CreatePermissionsTable extends dbal_1.Migration {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.tableName = 'riao_permissions';
|
|
19
|
-
this.columns = [
|
|
20
|
-
column_pack_1.IntKeyColumn,
|
|
21
|
-
column_pack_1.NameColumn,
|
|
22
|
-
Object.assign(Object.assign({}, column_pack_1.NameColumn), { name: 'action', required: true }),
|
|
23
|
-
Object.assign(Object.assign({}, column_pack_1.NameColumn), { name: 'model', required: false }),
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
up() {
|
|
27
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
yield this.ddl.createTable({
|
|
29
|
-
name: this.tableName,
|
|
30
|
-
columns: this.columns,
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
down() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
yield this.ddl.dropTable({ tables: this.tableName });
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CreatePermissionsTable = CreatePermissionsTable;
|
|
41
|
-
//# sourceMappingURL=1725221896876-create-permissions-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1725221896876-create-permissions-table.js","sourceRoot":"","sources":["../../../src/migrations/1725221896876-create-permissions-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuC;AACvC,wDAAkE;AAElE,MAAa,sBAAuB,SAAQ,gBAAS;IAArD;;QACQ,cAAS,GAAG,kBAAkB,CAAC;QAC/B,YAAO,GAAG;YAChB,0BAAY;YACZ,wBAAU;4CACL,wBAAU,KAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI;4CAC1C,wBAAU,KAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK;SAC/C,CAAC;IAYH,CAAC;IAVM,EAAE;;YACP,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,IAAI,CAAC,SAAS;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACrB,CAAC,CAAC;QACJ,CAAC;KAAA;IAEK,IAAI;;YACT,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACtD,CAAC;KAAA;CACD;AAnBD,wDAmBC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateRolePermissionsTable = void 0;
|
|
13
|
-
const dbal_1 = require("@riao/dbal");
|
|
14
|
-
const column_pack_1 = require("@riao/dbal/column-pack");
|
|
15
|
-
class CreateRolePermissionsTable extends dbal_1.Migration {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.tableName = 'riao_role_permissions';
|
|
19
|
-
this.columns = [
|
|
20
|
-
column_pack_1.BigIntKeyColumn,
|
|
21
|
-
{
|
|
22
|
-
name: 'role_id',
|
|
23
|
-
type: dbal_1.ColumnType.INT,
|
|
24
|
-
required: true,
|
|
25
|
-
fk: {
|
|
26
|
-
referencesTable: 'riao_roles',
|
|
27
|
-
referencesColumn: 'id',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'permission_id',
|
|
32
|
-
type: dbal_1.ColumnType.INT,
|
|
33
|
-
required: true,
|
|
34
|
-
fk: {
|
|
35
|
-
referencesTable: 'riao_permissions',
|
|
36
|
-
referencesColumn: 'id',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
up() {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
yield this.ddl.createTable({
|
|
44
|
-
name: this.tableName,
|
|
45
|
-
columns: this.columns,
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
down() {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
yield this.ddl.dropTable({ tables: this.tableName });
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.CreateRolePermissionsTable = CreateRolePermissionsTable;
|
|
56
|
-
//# sourceMappingURL=1725221935064-create-role-permissions-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1725221935064-create-role-permissions-table.js","sourceRoot":"","sources":["../../../src/migrations/1725221935064-create-role-permissions-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkE;AAClE,wDAAuE;AAEvE,MAAa,0BAA2B,SAAQ,gBAAS;IAAzD;;QACQ,cAAS,GAAG,uBAAuB,CAAC;QACpC,YAAO,GAAoB;YACjC,6BAAe;YACf;gBACC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,iBAAU,CAAC,GAAG;gBACpB,QAAQ,EAAE,IAAI;gBACd,EAAE,EAAE;oBACH,eAAe,EAAE,YAAY;oBAC7B,gBAAgB,EAAE,IAAI;iBACtB;aACD;YACD;gBACC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,iBAAU,CAAC,GAAG;gBACpB,QAAQ,EAAE,IAAI;gBACd,EAAE,EAAE;oBACH,eAAe,EAAE,kBAAkB;oBACnC,gBAAgB,EAAE,IAAI;iBACtB;aACD;SACD,CAAC;IAYH,CAAC;IAVM,EAAE;;YACP,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,IAAI,CAAC,SAAS;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACrB,CAAC,CAAC;QACJ,CAAC;KAAA;IAEK,IAAI;;YACT,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACtD,CAAC;KAAA;CACD;AAlCD,gEAkCC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateUserRolesTable = void 0;
|
|
13
|
-
const dbal_1 = require("@riao/dbal");
|
|
14
|
-
const column_pack_1 = require("@riao/dbal/column-pack");
|
|
15
|
-
class CreateUserRolesTable extends dbal_1.Migration {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.tableName = 'riao_user_roles';
|
|
19
|
-
this.columns = [
|
|
20
|
-
column_pack_1.BigIntKeyColumn,
|
|
21
|
-
{
|
|
22
|
-
name: 'role_id',
|
|
23
|
-
type: dbal_1.ColumnType.INT,
|
|
24
|
-
required: true,
|
|
25
|
-
fk: {
|
|
26
|
-
referencesTable: 'riao_roles',
|
|
27
|
-
referencesColumn: 'id',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'user_id',
|
|
32
|
-
type: dbal_1.ColumnType.BIGINT,
|
|
33
|
-
required: true,
|
|
34
|
-
fk: {
|
|
35
|
-
referencesTable: 'users',
|
|
36
|
-
referencesColumn: 'id',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
up() {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
yield this.ddl.createTable({
|
|
44
|
-
name: this.tableName,
|
|
45
|
-
columns: this.columns,
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
down() {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
yield this.ddl.dropTable({ tables: this.tableName });
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.CreateUserRolesTable = CreateUserRolesTable;
|
|
56
|
-
//# sourceMappingURL=1725221951873-create-user-roles-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1725221951873-create-user-roles-table.js","sourceRoot":"","sources":["../../../src/migrations/1725221951873-create-user-roles-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkE;AAClE,wDAAyD;AAEzD,MAAa,oBAAqB,SAAQ,gBAAS;IAAnD;;QACQ,cAAS,GAAG,iBAAiB,CAAC;QAC9B,YAAO,GAAoB;YACjC,6BAAe;YACf;gBACC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,iBAAU,CAAC,GAAG;gBACpB,QAAQ,EAAE,IAAI;gBACd,EAAE,EAAE;oBACH,eAAe,EAAE,YAAY;oBAC7B,gBAAgB,EAAE,IAAI;iBACtB;aACD;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,iBAAU,CAAC,MAAM;gBACvB,QAAQ,EAAE,IAAI;gBACd,EAAE,EAAE;oBACH,eAAe,EAAE,OAAO;oBACxB,gBAAgB,EAAE,IAAI;iBACtB;aACD;SACD,CAAC;IAYH,CAAC;IAVM,EAAE;;YACP,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,IAAI,CAAC,SAAS;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACrB,CAAC,CAAC;QACJ,CAAC;KAAA;IAEK,IAAI;;YACT,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACtD,CAAC;KAAA;CACD;AAlCD,oDAkCC"}
|
package/migrations/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from './1725221752756-create-users-table';
|
|
2
|
-
export * from './1725221859886-create-roles-table';
|
|
3
|
-
export * from './1725221896876-create-permissions-table';
|
|
4
|
-
export * from './1725221935064-create-role-permissions-table';
|
|
5
|
-
export * from './1725221951873-create-user-roles-table';
|
package/migrations/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./1725221752756-create-users-table"), exports);
|
|
18
|
-
__exportStar(require("./1725221859886-create-roles-table"), exports);
|
|
19
|
-
__exportStar(require("./1725221896876-create-permissions-table"), exports);
|
|
20
|
-
__exportStar(require("./1725221935064-create-role-permissions-table"), exports);
|
|
21
|
-
__exportStar(require("./1725221951873-create-user-roles-table"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
package/migrations/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD;AACzD,gFAA8D;AAC9D,0EAAwD"}
|
package/token.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DatabaseRecordId } from '@riao/dbal';
|
|
2
|
-
import { Token } from './jwt';
|
|
3
|
-
export interface AccessRefreshTokens {
|
|
4
|
-
access: Token;
|
|
5
|
-
refresh: Token;
|
|
6
|
-
}
|
|
7
|
-
export interface AuthTokenPayload {
|
|
8
|
-
type: 'access' | 'refresh';
|
|
9
|
-
userId: DatabaseRecordId;
|
|
10
|
-
}
|
|
11
|
-
export interface AccessTokenPayload extends AuthTokenPayload {
|
|
12
|
-
scopes: string[];
|
|
13
|
-
}
|
package/token.js
DELETED
package/token.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/token.ts"],"names":[],"mappings":""}
|