@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.
Files changed (138) hide show
  1. package/auth/auth-migrations.d.ts +4 -0
  2. package/auth/auth-migrations.js +12 -0
  3. package/auth/auth-migrations.js.map +1 -0
  4. package/auth/auth.d.ts +11 -0
  5. package/auth/auth.js +18 -0
  6. package/auth/auth.js.map +1 -0
  7. package/auth/index.d.ts +1 -0
  8. package/auth/index.js +6 -0
  9. package/auth/index.js.map +1 -0
  10. package/auth/migrations/001-create-accounts-table.d.ts +5 -0
  11. package/auth/migrations/001-create-accounts-table.js +27 -0
  12. package/auth/migrations/001-create-accounts-table.js.map +1 -0
  13. package/authentication/authentication-base/authentication-base.d.ts +10 -0
  14. package/authentication/authentication-base/authentication-base.js +33 -0
  15. package/authentication/authentication-base/authentication-base.js.map +1 -0
  16. package/authentication/authentication-base/index.d.ts +1 -0
  17. package/authentication/authentication-base/index.js +6 -0
  18. package/authentication/authentication-base/index.js.map +1 -0
  19. package/authentication/authentication-fido2/authentication-fido2-migrations.d.ts +5 -0
  20. package/authentication/authentication-fido2/authentication-fido2-migrations.js +17 -0
  21. package/authentication/authentication-fido2/authentication-fido2-migrations.js.map +1 -0
  22. package/authentication/authentication-fido2/authentication-fido2.d.ts +58 -0
  23. package/authentication/authentication-fido2/authentication-fido2.js +260 -0
  24. package/authentication/authentication-fido2/authentication-fido2.js.map +1 -0
  25. package/authentication/authentication-fido2/index.d.ts +1 -0
  26. package/authentication/authentication-fido2/index.js +6 -0
  27. package/authentication/authentication-fido2/index.js.map +1 -0
  28. package/authentication/authentication-fido2/migrations/create-fido-challenges-table.d.ts +5 -0
  29. package/authentication/authentication-fido2/migrations/create-fido-challenges-table.js +61 -0
  30. package/authentication/authentication-fido2/migrations/create-fido-challenges-table.js.map +1 -0
  31. package/authentication/authentication-fido2/migrations/create-fido-credentials-table.d.ts +5 -0
  32. package/authentication/authentication-fido2/migrations/create-fido-credentials-table.js +68 -0
  33. package/authentication/authentication-fido2/migrations/create-fido-credentials-table.js.map +1 -0
  34. package/authentication/authentication-fido2/migrations/index.d.ts +2 -0
  35. package/authentication/authentication-fido2/migrations/index.js +6 -0
  36. package/authentication/authentication-fido2/migrations/index.js.map +1 -0
  37. package/authentication/authentication-magic-token/authentication-magic-token-migrations.d.ts +5 -0
  38. package/authentication/authentication-magic-token/authentication-magic-token-migrations.js +16 -0
  39. package/authentication/authentication-magic-token/authentication-magic-token-migrations.js.map +1 -0
  40. package/authentication/authentication-magic-token/authentication-magic-token.d.ts +25 -0
  41. package/authentication/authentication-magic-token/authentication-magic-token.js +76 -0
  42. package/authentication/authentication-magic-token/authentication-magic-token.js.map +1 -0
  43. package/authentication/authentication-magic-token/index.d.ts +1 -0
  44. package/authentication/authentication-magic-token/index.js +6 -0
  45. package/authentication/authentication-magic-token/index.js.map +1 -0
  46. package/authentication/authentication-magic-token/magic-token.d.ts +17 -0
  47. package/authentication/authentication-magic-token/magic-token.js +7 -0
  48. package/authentication/authentication-magic-token/magic-token.js.map +1 -0
  49. package/authentication/authentication-magic-token/migrations/001-create-magic-token-table.d.ts +5 -0
  50. package/authentication/authentication-magic-token/migrations/001-create-magic-token-table.js +44 -0
  51. package/authentication/authentication-magic-token/migrations/001-create-magic-token-table.js.map +1 -0
  52. package/authentication/authentication-password/authentication-password-migrations.d.ts +5 -0
  53. package/authentication/authentication-password/authentication-password-migrations.js +16 -0
  54. package/authentication/authentication-password/authentication-password-migrations.js.map +1 -0
  55. package/authentication/authentication-password/authentication-password.d.ts +8 -0
  56. package/authentication/authentication-password/authentication-password.js +28 -0
  57. package/authentication/authentication-password/authentication-password.js.map +1 -0
  58. package/authentication/authentication-password/index.d.ts +1 -0
  59. package/authentication/authentication-password/index.js +6 -0
  60. package/authentication/authentication-password/index.js.map +1 -0
  61. package/authentication/authentication-password/migrations/001-add-password-column.d.ts +5 -0
  62. package/authentication/authentication-password/migrations/001-add-password-column.js +21 -0
  63. package/authentication/authentication-password/migrations/001-add-password-column.js.map +1 -0
  64. package/encrypt.d.ts +6 -0
  65. package/encrypt.js +18 -0
  66. package/encrypt.js.map +1 -0
  67. package/hash.d.ts +5 -0
  68. package/hash.js +15 -0
  69. package/hash.js.map +1 -0
  70. package/index.d.ts +1 -2
  71. package/index.js +4 -18
  72. package/index.js.map +1 -1
  73. package/jwt.d.ts +26 -28
  74. package/jwt.js +54 -83
  75. package/jwt.js.map +1 -1
  76. package/keypair.d.ts +24 -24
  77. package/keypair.js +72 -70
  78. package/keypair.js.map +1 -1
  79. package/package.json +31 -10
  80. package/secret.d.ts +5 -5
  81. package/secret.js +2 -2
  82. package/auth.d.ts +0 -11
  83. package/auth.js +0 -16
  84. package/auth.js.map +0 -1
  85. package/authentication-base.d.ts +0 -12
  86. package/authentication-base.js +0 -48
  87. package/authentication-base.js.map +0 -1
  88. package/authentication-password.d.ts +0 -11
  89. package/authentication-password.js +0 -43
  90. package/authentication-password.js.map +0 -1
  91. package/authentication-passwordless.d.ts +0 -24
  92. package/authentication-passwordless.js +0 -55
  93. package/authentication-passwordless.js.map +0 -1
  94. package/authorization-abac.d.ts +0 -8
  95. package/authorization-abac.js +0 -33
  96. package/authorization-abac.js.map +0 -1
  97. package/authorization-base.d.ts +0 -17
  98. package/authorization-base.js +0 -30
  99. package/authorization-base.js.map +0 -1
  100. package/authorization-hmm.d.ts +0 -0
  101. package/authorization-hmm.js +0 -173
  102. package/authorization-hmm.js.map +0 -1
  103. package/authorization-rbac.d.ts +0 -14
  104. package/authorization-rbac.js +0 -61
  105. package/authorization-rbac.js.map +0 -1
  106. package/errors/authentication-error.d.ts +0 -3
  107. package/errors/authentication-error.js +0 -8
  108. package/errors/authentication-error.js.map +0 -1
  109. package/errors/authorization-error.d.ts +0 -3
  110. package/errors/authorization-error.js +0 -8
  111. package/errors/authorization-error.js.map +0 -1
  112. package/errors/error.d.ts +0 -2
  113. package/errors/error.js +0 -7
  114. package/errors/error.js.map +0 -1
  115. package/iam.d.ts +0 -40
  116. package/iam.js +0 -73
  117. package/iam.js.map +0 -1
  118. package/migrations/1725221752756-create-users-table.d.ts +0 -7
  119. package/migrations/1725221752756-create-users-table.js +0 -36
  120. package/migrations/1725221752756-create-users-table.js.map +0 -1
  121. package/migrations/1725221859886-create-roles-table.d.ts +0 -7
  122. package/migrations/1725221859886-create-roles-table.js +0 -36
  123. package/migrations/1725221859886-create-roles-table.js.map +0 -1
  124. package/migrations/1725221896876-create-permissions-table.d.ts +0 -7
  125. package/migrations/1725221896876-create-permissions-table.js +0 -41
  126. package/migrations/1725221896876-create-permissions-table.js.map +0 -1
  127. package/migrations/1725221935064-create-role-permissions-table.d.ts +0 -7
  128. package/migrations/1725221935064-create-role-permissions-table.js +0 -56
  129. package/migrations/1725221935064-create-role-permissions-table.js.map +0 -1
  130. package/migrations/1725221951873-create-user-roles-table.d.ts +0 -7
  131. package/migrations/1725221951873-create-user-roles-table.js +0 -56
  132. package/migrations/1725221951873-create-user-roles-table.js.map +0 -1
  133. package/migrations/index.d.ts +0 -5
  134. package/migrations/index.js +0 -22
  135. package/migrations/index.js.map +0 -1
  136. package/token.d.ts +0 -13
  137. package/token.js +0 -3
  138. package/token.js.map +0 -1
@@ -1,7 +0,0 @@
1
- import { Migration } from '@riao/dbal';
2
- export declare class CreateRolesTable extends Migration {
3
- tableName: string;
4
- columns: import("@riao/dbal").ColumnOptions[];
5
- up(): Promise<void>;
6
- down(): Promise<void>;
7
- }
@@ -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,7 +0,0 @@
1
- import { Migration } from '@riao/dbal';
2
- export declare class CreatePermissionsTable extends Migration {
3
- tableName: string;
4
- columns: import("@riao/dbal").ColumnOptions[];
5
- up(): Promise<void>;
6
- down(): Promise<void>;
7
- }
@@ -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,7 +0,0 @@
1
- import { ColumnOptions, Migration } from '@riao/dbal';
2
- export declare class CreateRolePermissionsTable extends Migration {
3
- tableName: string;
4
- columns: ColumnOptions[];
5
- up(): Promise<void>;
6
- down(): Promise<void>;
7
- }
@@ -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,7 +0,0 @@
1
- import { ColumnOptions, Migration } from '@riao/dbal';
2
- export declare class CreateUserRolesTable extends Migration {
3
- tableName: string;
4
- columns: ColumnOptions[];
5
- up(): Promise<void>;
6
- down(): Promise<void>;
7
- }
@@ -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"}
@@ -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';
@@ -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
@@ -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
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=token.js.map
package/token.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/token.ts"],"names":[],"mappings":""}