@alacard-project/shared 1.0.8 → 1.1.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 (149) hide show
  1. package/README.md +24 -0
  2. package/dist/constants/auth-config.constants.d.ts +7 -0
  3. package/dist/constants/auth-config.constants.js +8 -1
  4. package/dist/constants/auth-config.constants.js.map +1 -1
  5. package/dist/constants/auth.constants.d.ts +25 -0
  6. package/dist/constants/auth.constants.js +15 -1
  7. package/dist/constants/auth.constants.js.map +1 -1
  8. package/dist/constants/env.constants.d.ts +1 -0
  9. package/dist/constants/env.constants.js +1 -0
  10. package/dist/constants/env.constants.js.map +1 -1
  11. package/dist/constants/grpc.constants.d.ts +2 -1
  12. package/dist/constants/grpc.constants.js +2 -1
  13. package/dist/constants/grpc.constants.js.map +1 -1
  14. package/dist/constants/index.d.ts +1 -0
  15. package/dist/constants/index.js +1 -0
  16. package/dist/constants/index.js.map +1 -1
  17. package/dist/constants/queue.constants.d.ts +8 -0
  18. package/dist/constants/queue.constants.js +12 -0
  19. package/dist/constants/queue.constants.js.map +1 -0
  20. package/dist/contracts/auth.contract.d.ts +44 -20
  21. package/dist/contracts/index.d.ts +1 -1
  22. package/dist/contracts/index.js +0 -1
  23. package/dist/contracts/index.js.map +1 -1
  24. package/dist/dto/account.dto.d.ts +10 -0
  25. package/dist/dto/account.dto.js +49 -0
  26. package/dist/dto/account.dto.js.map +1 -0
  27. package/dist/dto/auth.dto.d.ts +55 -5
  28. package/dist/dto/auth.dto.js +136 -1
  29. package/dist/dto/auth.dto.js.map +1 -1
  30. package/dist/dto/card.dto.js.map +1 -1
  31. package/dist/dto/client.dto.js.map +1 -1
  32. package/dist/dto/index.d.ts +2 -0
  33. package/dist/dto/index.js +2 -0
  34. package/dist/dto/index.js.map +1 -1
  35. package/dist/dto/logging.dto.js.map +1 -1
  36. package/dist/dto/partner.dto.d.ts +1 -1
  37. package/dist/dto/partner.dto.js +7 -9
  38. package/dist/dto/partner.dto.js.map +1 -1
  39. package/dist/dto/transaction.dto.d.ts +2 -1
  40. package/dist/dto/transaction.dto.js.map +1 -1
  41. package/dist/dto/user.dto.d.ts +11 -0
  42. package/dist/dto/user.dto.js +45 -0
  43. package/dist/dto/user.dto.js.map +1 -0
  44. package/dist/enums/auth.enum.d.ts +12 -0
  45. package/dist/enums/auth.enum.js +18 -0
  46. package/dist/enums/auth.enum.js.map +1 -0
  47. package/dist/enums/iam.enum.d.ts +14 -0
  48. package/dist/enums/iam.enum.js +21 -0
  49. package/dist/enums/iam.enum.js.map +1 -0
  50. package/dist/enums/index.d.ts +2 -0
  51. package/dist/enums/index.js +2 -0
  52. package/dist/enums/index.js.map +1 -1
  53. package/dist/enums/user.enum.d.ts +1 -1
  54. package/dist/enums/user.enum.js +0 -1
  55. package/dist/enums/user.enum.js.map +1 -1
  56. package/dist/errors/app.error.d.ts +1 -1
  57. package/dist/filters/http-exception.filter.d.ts +5 -0
  58. package/dist/filters/http-exception.filter.js +48 -0
  59. package/dist/filters/http-exception.filter.js.map +1 -0
  60. package/dist/filters/index.d.ts +1 -0
  61. package/dist/filters/index.js +18 -0
  62. package/dist/filters/index.js.map +1 -0
  63. package/dist/index.d.ts +5 -0
  64. package/dist/index.js +5 -0
  65. package/dist/index.js.map +1 -1
  66. package/dist/interceptors/index.d.ts +2 -0
  67. package/dist/interceptors/index.js +19 -0
  68. package/dist/interceptors/index.js.map +1 -0
  69. package/dist/interceptors/logging.interceptor.d.ts +6 -0
  70. package/dist/interceptors/logging.interceptor.js +41 -0
  71. package/dist/interceptors/logging.interceptor.js.map +1 -0
  72. package/dist/interceptors/transform.interceptor.d.ts +9 -0
  73. package/dist/interceptors/transform.interceptor.js +24 -0
  74. package/dist/interceptors/transform.interceptor.js.map +1 -0
  75. package/dist/observability/index.d.ts +2 -0
  76. package/dist/observability/index.js +19 -0
  77. package/dist/observability/index.js.map +1 -0
  78. package/dist/observability/metrics/metrics.module.d.ts +2 -0
  79. package/dist/observability/metrics/metrics.module.js +28 -0
  80. package/dist/observability/metrics/metrics.module.js.map +1 -0
  81. package/dist/observability/tracing.d.ts +1 -0
  82. package/dist/observability/tracing.js +28 -0
  83. package/dist/observability/tracing.js.map +1 -0
  84. package/dist/resilience/circuit-breaker.service.d.ts +7 -0
  85. package/dist/resilience/circuit-breaker.service.js +45 -0
  86. package/dist/resilience/circuit-breaker.service.js.map +1 -0
  87. package/dist/resilience/resilience.module.d.ts +2 -0
  88. package/dist/resilience/resilience.module.js +22 -0
  89. package/dist/resilience/resilience.module.js.map +1 -0
  90. package/dist/types/auth.types.d.ts +22 -4
  91. package/dist/types/common.types.d.ts +11 -0
  92. package/dist/types/common.types.js +3 -0
  93. package/dist/types/common.types.js.map +1 -0
  94. package/dist/types/iam.types.d.ts +46 -0
  95. package/dist/types/iam.types.js +3 -0
  96. package/dist/types/iam.types.js.map +1 -0
  97. package/dist/types/index.d.ts +2 -0
  98. package/dist/types/index.js +2 -0
  99. package/dist/types/index.js.map +1 -1
  100. package/dist/types/monitoring.types.d.ts +2 -1
  101. package/dist/types/user.types.d.ts +7 -3
  102. package/dist/utils/app.utils.d.ts +1 -0
  103. package/dist/utils/app.utils.js +7 -1
  104. package/dist/utils/app.utils.js.map +1 -1
  105. package/dist/utils/health.utils.d.ts +6 -2
  106. package/dist/utils/health.utils.js +2 -1
  107. package/dist/utils/health.utils.js.map +1 -1
  108. package/package.json +28 -15
  109. package/proto/auth.proto +5 -0
  110. package/proto/dbf.proto +1 -1
  111. package/proto/user.proto +56 -21
  112. package/src/constants/auth-config.constants.ts +7 -0
  113. package/src/constants/auth.constants.ts +16 -0
  114. package/src/constants/index.ts +1 -0
  115. package/src/constants/queue.constants.ts +8 -0
  116. package/src/contracts/auth.contract.ts +43 -23
  117. package/src/dto/account.dto.ts +28 -0
  118. package/src/dto/auth.dto.ts +145 -5
  119. package/src/dto/card.dto.ts +1 -1
  120. package/src/dto/client.dto.ts +7 -7
  121. package/src/dto/index.ts +2 -0
  122. package/src/dto/logging.dto.ts +3 -3
  123. package/src/dto/partner.dto.ts +3 -6
  124. package/src/dto/transaction.dto.ts +4 -3
  125. package/src/dto/user.dto.ts +28 -0
  126. package/src/enums/auth.enum.ts +13 -0
  127. package/src/enums/iam.enum.ts +28 -0
  128. package/src/enums/index.ts +2 -0
  129. package/src/enums/user.enum.ts +0 -1
  130. package/src/filters/http-exception.filter.ts +49 -0
  131. package/src/filters/index.ts +2 -0
  132. package/src/index.ts +5 -0
  133. package/src/interceptors/index.ts +3 -0
  134. package/src/interceptors/logging.interceptor.ts +37 -0
  135. package/src/interceptors/transform.interceptor.ts +21 -0
  136. package/src/observability/index.ts +3 -0
  137. package/src/observability/metrics/metrics.module.ts +16 -0
  138. package/src/observability/tracing.ts +33 -0
  139. package/src/resilience/circuit-breaker.service.ts +46 -0
  140. package/src/resilience/resilience.module.ts +9 -0
  141. package/src/types/auth.types.ts +23 -4
  142. package/src/types/common.types.ts +18 -0
  143. package/src/types/iam.types.ts +78 -0
  144. package/src/types/index.ts +2 -0
  145. package/src/types/monitoring.types.ts +2 -4
  146. package/src/types/user.types.ts +3 -3
  147. package/src/utils/app.utils.ts +9 -0
  148. package/src/utils/health.utils.ts +11 -4
  149. package/tsconfig.json +5 -1
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # Alacard Shared Library
2
+
3
+ Pure types, constants, and utilities for Alacard microservices.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @alacard-project/shared
9
+ ```
10
+
11
+ ## Features
12
+
13
+ - **Types**: Shared interfaces for IAM, Cards, Accounts, and Transactions.
14
+ - **Constants**: Shared event names, queue names, and common configuration keys.
15
+ - **Utils**: Common utility functions.
16
+ - **Observability**: OpenTelemetry tracing and metrics helpers.
17
+
18
+ ## Security
19
+
20
+ We maintain a strict dependency policy to ensure the security of the core library.
21
+
22
+ ## License
23
+
24
+ MIT
@@ -6,3 +6,10 @@ export declare const PASSWORD_RESET_CONFIG: {
6
6
  TOKEN_EXPIRY_HOURS: number;
7
7
  TOKEN_LENGTH: number;
8
8
  };
9
+ export declare const AUTH_CONFIG: {
10
+ readonly JWT_ACCESS_EXPIRATION: "15m";
11
+ readonly JWT_REFRESH_EXPIRATION: "7d";
12
+ readonly SESSION_EXPIRATION_HOURS: 24;
13
+ readonly MAX_LOGIN_ATTEMPTS: 5;
14
+ readonly LOCKOUT_DURATION_MINUTES: 30;
15
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PASSWORD_RESET_CONFIG = exports.INVITATION_CONFIG = void 0;
3
+ exports.AUTH_CONFIG = exports.PASSWORD_RESET_CONFIG = exports.INVITATION_CONFIG = void 0;
4
4
  exports.INVITATION_CONFIG = {
5
5
  DEFAULT_EXPIRATION_DAYS: 7,
6
6
  TOKEN_LENGTH: 32,
@@ -9,4 +9,11 @@ exports.PASSWORD_RESET_CONFIG = {
9
9
  TOKEN_EXPIRY_HOURS: 1,
10
10
  TOKEN_LENGTH: 32,
11
11
  };
12
+ exports.AUTH_CONFIG = {
13
+ JWT_ACCESS_EXPIRATION: '15m',
14
+ JWT_REFRESH_EXPIRATION: '7d',
15
+ SESSION_EXPIRATION_HOURS: 24,
16
+ MAX_LOGIN_ATTEMPTS: 5,
17
+ LOCKOUT_DURATION_MINUTES: 30,
18
+ };
12
19
  //# sourceMappingURL=auth-config.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-config.constants.js","sourceRoot":"","sources":["../../src/constants/auth-config.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC7B,uBAAuB,EAAE,CAAC;IAC1B,YAAY,EAAE,EAAE;CACnB,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACjC,kBAAkB,EAAE,CAAC;IACrB,YAAY,EAAE,EAAE;CACnB,CAAC"}
1
+ {"version":3,"file":"auth-config.constants.js","sourceRoot":"","sources":["../../src/constants/auth-config.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC7B,uBAAuB,EAAE,CAAC;IAC1B,YAAY,EAAE,EAAE;CACnB,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACjC,kBAAkB,EAAE,CAAC;IACrB,YAAY,EAAE,EAAE;CACnB,CAAC;AACW,QAAA,WAAW,GAAG;IACvB,qBAAqB,EAAE,KAAK;IAC5B,sBAAsB,EAAE,IAAI;IAC5B,wBAAwB,EAAE,EAAE;IAC5B,kBAAkB,EAAE,CAAC;IACrB,wBAAwB,EAAE,EAAE;CACtB,CAAC"}
@@ -12,6 +12,31 @@ export declare const AUTHENTICATION_MESSAGES: {
12
12
  PASSWORD_RESET_SUCCESS: string;
13
13
  INVALID_CREDENTIALS: string;
14
14
  };
15
+ export declare const AUTH_MESSAGES: {
16
+ readonly USER_SUSPENDED: "User account is suspended";
17
+ readonly USER_LOCKED: "User account is locked";
18
+ readonly USER_DELETED: "User account has been deleted";
19
+ readonly TOKEN_EXPIRED: "Token has expired";
20
+ readonly TOKEN_INVALID: "Invalid token";
21
+ readonly TOKEN_REVOKED: "Token has been revoked";
22
+ readonly REFRESH_SUCCESS: "Token refreshed successfully";
23
+ readonly PASSWORD_CHANGED: "Password changed successfully";
24
+ readonly TWO_FACTOR_REQUIRED: "PENDING_2FA";
25
+ readonly TWO_FACTOR_VERIFIED: "Two-factor authentication verified successfully";
26
+ readonly TWO_FACTOR_INVALID: "Invalid or expired two-factor code";
27
+ readonly USER_NOT_FOUND: string;
28
+ readonly USER_ALREADY_EXISTS: string;
29
+ readonly INVALID_PASSWORD: string;
30
+ readonly USER_INACTIVE: string;
31
+ readonly INVALID_REFRESH_TOKEN: string;
32
+ readonly LOGOUT_SUCCESS: string;
33
+ readonly REGISTRATION_SUCCESS: string;
34
+ readonly REGISTER_SUCCESS: string;
35
+ readonly LOGIN_SUCCESS: string;
36
+ readonly PASSWORD_RESET_SENT: string;
37
+ readonly PASSWORD_RESET_SUCCESS: string;
38
+ readonly INVALID_CREDENTIALS: string;
39
+ };
15
40
  export declare const COOKIE_EXPIRATION: {
16
41
  REFRESH_TOKEN_MS: number;
17
42
  ACCESS_TOKEN_MS: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PASSWORD_RESET_MESSAGES = exports.INVITATION_MESSAGES = exports.COOKIE_EXPIRATION = exports.AUTHENTICATION_MESSAGES = void 0;
3
+ exports.PASSWORD_RESET_MESSAGES = exports.INVITATION_MESSAGES = exports.COOKIE_EXPIRATION = exports.AUTH_MESSAGES = exports.AUTHENTICATION_MESSAGES = void 0;
4
4
  exports.AUTHENTICATION_MESSAGES = {
5
5
  USER_NOT_FOUND: 'User with this email was not found.',
6
6
  USER_ALREADY_EXISTS: 'User with this email already exists.',
@@ -15,6 +15,20 @@ exports.AUTHENTICATION_MESSAGES = {
15
15
  PASSWORD_RESET_SUCCESS: 'Your password has been reset successfully.',
16
16
  INVALID_CREDENTIALS: 'The email or password you entered is incorrect.',
17
17
  };
18
+ exports.AUTH_MESSAGES = {
19
+ ...exports.AUTHENTICATION_MESSAGES,
20
+ USER_SUSPENDED: 'User account is suspended',
21
+ USER_LOCKED: 'User account is locked',
22
+ USER_DELETED: 'User account has been deleted',
23
+ TOKEN_EXPIRED: 'Token has expired',
24
+ TOKEN_INVALID: 'Invalid token',
25
+ TOKEN_REVOKED: 'Token has been revoked',
26
+ REFRESH_SUCCESS: 'Token refreshed successfully',
27
+ PASSWORD_CHANGED: 'Password changed successfully',
28
+ TWO_FACTOR_REQUIRED: 'PENDING_2FA',
29
+ TWO_FACTOR_VERIFIED: 'Two-factor authentication verified successfully',
30
+ TWO_FACTOR_INVALID: 'Invalid or expired two-factor code',
31
+ };
18
32
  exports.COOKIE_EXPIRATION = {
19
33
  REFRESH_TOKEN_MS: 7 * 24 * 60 * 60 * 1000,
20
34
  ACCESS_TOKEN_MS: 15 * 60 * 1000,
@@ -1 +1 @@
1
- {"version":3,"file":"auth.constants.js","sourceRoot":"","sources":["../../src/constants/auth.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACnC,cAAc,EAAE,qCAAqC;IACrD,mBAAmB,EAAE,sCAAsC;IAC3D,gBAAgB,EAAE,wCAAwC;IAC1D,aAAa,EAAE,6DAA6D;IAC5E,qBAAqB,EAAE,2DAA2D;IAClF,cAAc,EAAE,wCAAwC;IACxD,oBAAoB,EAAE,6CAA6C;IACnE,gBAAgB,EAAE,+BAA+B;IACjD,aAAa,EAAE,yBAAyB;IACxC,mBAAmB,EAAE,oDAAoD;IACzE,sBAAsB,EAAE,4CAA4C;IACpE,mBAAmB,EAAE,iDAAiD;CACzE,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;IACzC,eAAe,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CAClC,CAAC;AAEW,QAAA,mBAAmB,GAAG;IAC/B,eAAe,EAAE,+BAA+B;IAChD,gBAAgB,EAAE,sBAAsB;IACxC,oBAAoB,EAAE,uBAAuB;IAC7C,kBAAkB,EAAE,yBAAyB;IAC7C,uBAAuB,EAAE,mCAAmC;CAC/D,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACnC,gBAAgB,EAAE,4BAA4B;IAC9C,sBAAsB,EAAE,8BAA8B;IACtD,aAAa,EAAE,+BAA+B;IAC9C,aAAa,EAAE,mCAAmC;CACrD,CAAC"}
1
+ {"version":3,"file":"auth.constants.js","sourceRoot":"","sources":["../../src/constants/auth.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACnC,cAAc,EAAE,qCAAqC;IACrD,mBAAmB,EAAE,sCAAsC;IAC3D,gBAAgB,EAAE,wCAAwC;IAC1D,aAAa,EAAE,6DAA6D;IAC5E,qBAAqB,EAAE,2DAA2D;IAClF,cAAc,EAAE,wCAAwC;IACxD,oBAAoB,EAAE,6CAA6C;IACnE,gBAAgB,EAAE,+BAA+B;IACjD,aAAa,EAAE,yBAAyB;IACxC,mBAAmB,EAAE,oDAAoD;IACzE,sBAAsB,EAAE,4CAA4C;IACpE,mBAAmB,EAAE,iDAAiD;CACzE,CAAC;AAEW,QAAA,aAAa,GAAG;IACzB,GAAG,+BAAuB;IAC1B,cAAc,EAAE,2BAA2B;IAC3C,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,+BAA+B;IAC7C,aAAa,EAAE,mBAAmB;IAClC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,wBAAwB;IACvC,eAAe,EAAE,8BAA8B;IAC/C,gBAAgB,EAAE,+BAA+B;IACjD,mBAAmB,EAAE,aAAa;IAClC,mBAAmB,EAAE,iDAAiD;IACtE,kBAAkB,EAAE,oCAAoC;CAClD,CAAC;AAGE,QAAA,iBAAiB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;IACzC,eAAe,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CAClC,CAAC;AAEW,QAAA,mBAAmB,GAAG;IAC/B,eAAe,EAAE,+BAA+B;IAChD,gBAAgB,EAAE,sBAAsB;IACxC,oBAAoB,EAAE,uBAAuB;IAC7C,kBAAkB,EAAE,yBAAyB;IAC7C,uBAAuB,EAAE,mCAAmC;CAC/D,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACnC,gBAAgB,EAAE,4BAA4B;IAC9C,sBAAsB,EAAE,8BAA8B;IACtD,aAAa,EAAE,+BAA+B;IAC9C,aAAa,EAAE,mCAAmC;CACrD,CAAC"}
@@ -8,6 +8,7 @@ export declare const ENV_KEYS: {
8
8
  readonly KAFKA_BROKERS: "KAFKA_BROKERS";
9
9
  readonly JWT_SECRET: "JWT_SECRET";
10
10
  readonly JWT_EXPIRES_IN: "JWT_EXPIRES_IN";
11
+ readonly JWT_REFRESH_SECRET: "JWT_REFRESH_SECRET";
11
12
  readonly JWT_REFRESH_EXPIRES_IN: "JWT_REFRESH_EXPIRES_IN";
12
13
  readonly GRPC_PORT: "GRPC_PORT";
13
14
  readonly GRPC_URL: "GRPC_URL";
@@ -11,6 +11,7 @@ exports.ENV_KEYS = {
11
11
  KAFKA_BROKERS: 'KAFKA_BROKERS',
12
12
  JWT_SECRET: 'JWT_SECRET',
13
13
  JWT_EXPIRES_IN: 'JWT_EXPIRES_IN',
14
+ JWT_REFRESH_SECRET: 'JWT_REFRESH_SECRET',
14
15
  JWT_REFRESH_EXPIRES_IN: 'JWT_REFRESH_EXPIRES_IN',
15
16
  GRPC_PORT: 'GRPC_PORT',
16
17
  GRPC_URL: 'GRPC_URL',
@@ -1 +1 @@
1
- {"version":3,"file":"env.constants.js","sourceRoot":"","sources":["../../src/constants/env.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,sBAAsB,EAAE,wBAAwB;IAChD,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IAEpB,kBAAkB,EAAE,oBAAoB;IACxC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,sBAAsB,EAAE,wBAAwB;IAChD,gBAAgB,EAAE,kBAAkB;IAEpC,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,wBAAwB,EAAE,0BAA0B;IACpD,iBAAiB,EAAE,mBAAmB;IAEtC,sBAAsB,EAAE,wBAAwB;IAChD,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAEhC,aAAa,EAAE,eAAe;IAC9B,kBAAkB,EAAE,oBAAoB;IACxC,YAAY,EAAE,cAAc;CACtB,CAAC;AAEE,QAAA,UAAU,GAAG;IACtB,QAAQ,EAAE;QACN,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,YAAY;QACxB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,OAAO;KACjB;CACK,CAAC"}
1
+ {"version":3,"file":"env.constants.js","sourceRoot":"","sources":["../../src/constants/env.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IAEpB,kBAAkB,EAAE,oBAAoB;IACxC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,sBAAsB,EAAE,wBAAwB;IAChD,gBAAgB,EAAE,kBAAkB;IAEpC,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,wBAAwB,EAAE,0BAA0B;IACpD,iBAAiB,EAAE,mBAAmB;IAEtC,sBAAsB,EAAE,wBAAwB;IAChD,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAEhC,aAAa,EAAE,eAAe;IAC9B,kBAAkB,EAAE,oBAAoB;IACxC,YAAY,EAAE,cAAc;CACtB,CAAC;AAEE,QAAA,UAAU,GAAG;IACtB,QAAQ,EAAE;QACN,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,YAAY;QACxB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,OAAO;KACjB;CACK,CAAC"}
@@ -18,13 +18,14 @@ export declare const GRPC_METHODS: {
18
18
  readonly AUTH: {
19
19
  readonly SERVICE: "AuthService";
20
20
  readonly LOGIN: "Login";
21
- readonly REGISTER: "Register";
21
+ readonly CREATE_IDENTITY: "CreateIdentity";
22
22
  readonly VALIDATE: "Validate";
23
23
  readonly GET_USER_BY_ID: "GetUserById";
24
24
  readonly GET_USER_BY_EMAIL: "GetUserByEmail";
25
25
  readonly VALIDATE_TOKEN: "ValidateToken";
26
26
  readonly REFRESH_TOKEN: "RefreshToken";
27
27
  readonly REVOKE_TOKEN: "RevokeToken";
28
+ readonly GENERATE_TOKENS: "GenerateTokens";
28
29
  readonly CHECK_PERMISSION: "CheckPermission";
29
30
  readonly GET_USER_PERMISSIONS: "GetUserPermissions";
30
31
  };
@@ -21,13 +21,14 @@ exports.GRPC_METHODS = {
21
21
  AUTH: {
22
22
  SERVICE: 'AuthService',
23
23
  LOGIN: 'Login',
24
- REGISTER: 'Register',
24
+ CREATE_IDENTITY: 'CreateIdentity',
25
25
  VALIDATE: 'Validate',
26
26
  GET_USER_BY_ID: 'GetUserById',
27
27
  GET_USER_BY_EMAIL: 'GetUserByEmail',
28
28
  VALIDATE_TOKEN: 'ValidateToken',
29
29
  REFRESH_TOKEN: 'RefreshToken',
30
30
  REVOKE_TOKEN: 'RevokeToken',
31
+ GENERATE_TOKENS: 'GenerateTokens',
31
32
  CHECK_PERMISSION: 'CheckPermission',
32
33
  GET_USER_PERMISSIONS: 'GetUserPermissions',
33
34
  },
@@ -1 +1 @@
1
- {"version":3,"file":"grpc.constants.js","sourceRoot":"","sources":["../../src/constants/grpc.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE;QACL,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE,eAAe;QAChC,qBAAqB,EAAE,qBAAqB;QAC5C,gBAAgB,EAAE,gBAAgB;QAClC,kBAAkB,EAAE,kBAAkB;QACtC,gBAAgB,EAAE,gBAAgB;KACrC;IACD,IAAI,EAAE;QACF,OAAO,EAAE,aAAa;QACtB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,eAAe;QAC/B,aAAa,EAAE,cAAc;QAC7B,YAAY,EAAE,aAAa;QAC3B,gBAAgB,EAAE,iBAAiB;QACnC,oBAAoB,EAAE,oBAAoB;KAC7C;IACD,IAAI,EAAE;QACF,OAAO,EAAE,aAAa;QACtB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,oBAAoB,EAAE,oBAAoB;QAC1C,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,YAAY;QACzB,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,YAAY;KAC5B;CACK,CAAC"}
1
+ {"version":3,"file":"grpc.constants.js","sourceRoot":"","sources":["../../src/constants/grpc.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE;QACL,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE,eAAe;QAChC,qBAAqB,EAAE,qBAAqB;QAC5C,gBAAgB,EAAE,gBAAgB;QAClC,kBAAkB,EAAE,kBAAkB;QACtC,gBAAgB,EAAE,gBAAgB;KACrC;IACD,IAAI,EAAE;QACF,OAAO,EAAE,aAAa;QACtB,KAAK,EAAE,OAAO;QACd,eAAe,EAAE,gBAAgB;QACjC,QAAQ,EAAE,UAAU;QACpB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,eAAe;QAC/B,aAAa,EAAE,cAAc;QAC7B,YAAY,EAAE,aAAa;QAC3B,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,iBAAiB;QACnC,oBAAoB,EAAE,oBAAoB;KAC7C;IACD,IAAI,EAAE;QACF,OAAO,EAAE,aAAa;QACtB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,oBAAoB,EAAE,oBAAoB;QAC1C,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,YAAY;QACzB,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,YAAY;KAC5B;CACK,CAAC"}
@@ -6,5 +6,6 @@ export * from './error-messages';
6
6
  export * from './auth.constants';
7
7
  export * from './logging-messages.constants';
8
8
  export * from './routes.constants';
9
+ export * from './queue.constants';
9
10
  export * from './common.constants';
10
11
  export * from './auth-config.constants';
@@ -22,6 +22,7 @@ __exportStar(require("./error-messages"), exports);
22
22
  __exportStar(require("./auth.constants"), exports);
23
23
  __exportStar(require("./logging-messages.constants"), exports);
24
24
  __exportStar(require("./routes.constants"), exports);
25
+ __exportStar(require("./queue.constants"), exports);
25
26
  __exportStar(require("./common.constants"), exports);
26
27
  __exportStar(require("./auth-config.constants"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,qDAAmC;AACnC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC"}
@@ -0,0 +1,8 @@
1
+ export declare const QUEUE_CONSTANTS: {
2
+ QUEUES: {
3
+ NOTIFICATIONS: string;
4
+ };
5
+ JOBS: {
6
+ SEND_NOTIFICATION: string;
7
+ };
8
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUEUE_CONSTANTS = void 0;
4
+ exports.QUEUE_CONSTANTS = {
5
+ QUEUES: {
6
+ NOTIFICATIONS: 'notifications-queue',
7
+ },
8
+ JOBS: {
9
+ SEND_NOTIFICATION: 'send-notification-job',
10
+ },
11
+ };
12
+ //# sourceMappingURL=queue.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue.constants.js","sourceRoot":"","sources":["../../src/constants/queue.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC3B,MAAM,EAAE;QACJ,aAAa,EAAE,qBAAqB;KACvC;IACD,IAAI,EAAE;QACF,iBAAiB,EAAE,uBAAuB;KAC7C;CACJ,CAAC"}
@@ -1,24 +1,26 @@
1
1
  import { Observable } from 'rxjs';
2
- import { RegisterDto, LoginDto } from '../dto/auth.dto';
2
+ import { LoginDto, UserResponse } from '../dto/auth.dto';
3
3
  import { JwtTokens } from '../types/auth.types';
4
+ import { GenerateTokensRequest } from './token.contract';
5
+ import { UserRole } from '../enums';
4
6
  export interface GetUserByIdGrpcRequest {
5
7
  userId: string;
6
8
  }
7
9
  export interface GetUserByIdGrpcResponse {
8
- user: any;
10
+ user: UserResponse;
9
11
  }
10
12
  export interface GetUserByEmailGrpcRequest {
11
13
  email: string;
12
14
  }
13
15
  export interface GetUserByEmailGrpcResponse {
14
- user: any;
16
+ user: UserResponse;
15
17
  }
16
18
  export interface ValidateTokenGrpcRequest {
17
19
  token: string;
18
20
  }
19
21
  export interface ValidateTokenGrpcResponse {
20
22
  valid: boolean;
21
- user?: any;
23
+ user?: UserResponse;
22
24
  }
23
25
  export interface RefreshTokenGrpcRequest {
24
26
  refreshToken: string;
@@ -41,6 +43,13 @@ export interface CheckPermissionGrpcResponse {
41
43
  export interface GetUserPermissionsGrpcRequest {
42
44
  userId: string;
43
45
  }
46
+ export interface CreateIdentityRequest {
47
+ email: string;
48
+ password: string;
49
+ name?: string;
50
+ userId: string;
51
+ role: UserRole;
52
+ }
44
53
  export interface GetUserPermissionsGrpcResponse {
45
54
  userId: string;
46
55
  permissions: Array<{
@@ -52,19 +61,31 @@ export interface GetUserPermissionsGrpcResponse {
52
61
  export interface CreateUserRequest {
53
62
  userId?: string;
54
63
  email: string;
55
- role: string;
64
+ role: UserRole;
65
+ password?: string;
56
66
  firstName?: string;
57
67
  lastName?: string;
58
- password?: string;
68
+ middleName?: string;
69
+ position?: string;
70
+ department?: string;
71
+ companyName?: string;
72
+ taxId?: string;
73
+ contactPhone?: string;
59
74
  }
60
75
  export interface UpdateUserRequest {
61
76
  userId: string;
62
77
  email?: string;
63
- role?: string;
64
- firstName?: string;
65
- lastName?: string;
78
+ role?: UserRole;
66
79
  password?: string;
67
80
  isActive?: boolean;
81
+ firstName?: string;
82
+ lastName?: string;
83
+ middleName?: string;
84
+ position?: string;
85
+ department?: string;
86
+ companyName?: string;
87
+ taxId?: string;
88
+ contactPhone?: string;
68
89
  }
69
90
  export interface UpdateProfileRequest {
70
91
  userId: string;
@@ -90,21 +111,24 @@ export type DeleteUserResponse = {
90
111
  success: boolean;
91
112
  };
92
113
  export interface IAuthService {
93
- loginGrpc(data: LoginDto): Observable<JwtTokens>;
94
- registerGrpc(data: RegisterDto): Observable<any>;
95
- validateGrpc(data: {
114
+ login(data: LoginDto): Observable<JwtTokens>;
115
+ generateTokens(data: GenerateTokensRequest): Observable<JwtTokens>;
116
+ createIdentity(data: CreateIdentityRequest): Observable<{
117
+ identityId: string;
118
+ }>;
119
+ validate(data: {
96
120
  token: string;
97
121
  }): Observable<{
98
122
  valid: boolean;
99
123
  userId?: string;
100
124
  email?: string;
101
- role?: string;
125
+ role?: UserRole;
102
126
  }>;
103
- validateTokenGrpc(data: ValidateTokenGrpcRequest): Observable<ValidateTokenGrpcResponse>;
104
- refreshTokenGrpc(data: RefreshTokenGrpcRequest): Observable<JwtTokens>;
105
- revokeTokenGrpc(data: RevokeTokenGrpcRequest): Observable<RevokeTokenGrpcResponse>;
106
- checkPermissionGrpc(data: CheckPermissionGrpcRequest): Observable<CheckPermissionGrpcResponse>;
107
- getUserPermissionsGrpc(data: GetUserPermissionsGrpcRequest): Observable<GetUserPermissionsGrpcResponse>;
108
- getUserByIdGrpc(data: GetUserByIdGrpcRequest): Observable<GetUserByIdGrpcResponse>;
109
- getUserByEmailGrpc(data: GetUserByEmailGrpcRequest): Observable<GetUserByEmailGrpcResponse>;
127
+ validateToken(data: ValidateTokenGrpcRequest): Observable<ValidateTokenGrpcResponse>;
128
+ refreshToken(data: RefreshTokenGrpcRequest): Observable<JwtTokens>;
129
+ revokeToken(data: RevokeTokenGrpcRequest): Observable<RevokeTokenGrpcResponse>;
130
+ checkPermission(data: CheckPermissionGrpcRequest): Observable<CheckPermissionGrpcResponse>;
131
+ getUserPermissions(data: GetUserPermissionsGrpcRequest): Observable<GetUserPermissionsGrpcResponse>;
132
+ getUserById(data: GetUserByIdGrpcRequest): Observable<GetUserByIdGrpcResponse>;
133
+ getUserByEmail(data: GetUserByEmailGrpcRequest): Observable<GetUserByEmailGrpcResponse>;
110
134
  }
@@ -1,4 +1,4 @@
1
1
  export * from './config.contract';
2
2
  export * from './logging.contract';
3
3
  export * from './auth.contract';
4
- export * from './token.contract';
4
+ export type { GenerateTokensRequest, TokensResponse, ITokenService, ValidateTokenRequest, ValidateTokenResponse, RefreshTokensRequest, RevokeTokenRequest, RevokeTokenResponse } from './token.contract';
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./config.contract"), exports);
18
18
  __exportStar(require("./logging.contract"), exports);
19
19
  __exportStar(require("./auth.contract"), exports);
20
- __exportStar(require("./token.contract"), exports);
21
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,kDAAgC;AAChC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,kDAAgC"}
@@ -0,0 +1,10 @@
1
+ export declare class CreateAccountDto {
2
+ accountNumber: string;
3
+ clientNumber?: string;
4
+ currency?: string;
5
+ balance?: string;
6
+ }
7
+ export declare class UpdateAccountDto {
8
+ status?: string;
9
+ balance?: string;
10
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateAccountDto = exports.CreateAccountDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CreateAccountDto {
15
+ }
16
+ exports.CreateAccountDto = CreateAccountDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], CreateAccountDto.prototype, "accountNumber", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], CreateAccountDto.prototype, "clientNumber", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], CreateAccountDto.prototype, "currency", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], CreateAccountDto.prototype, "balance", void 0);
36
+ class UpdateAccountDto {
37
+ }
38
+ exports.UpdateAccountDto = UpdateAccountDto;
39
+ __decorate([
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], UpdateAccountDto.prototype, "status", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsString)(),
47
+ __metadata("design:type", String)
48
+ ], UpdateAccountDto.prototype, "balance", void 0);
49
+ //# sourceMappingURL=account.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.dto.js","sourceRoot":"","sources":["../../src/dto/account.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,gBAAgB;CAe5B;AAfD,4CAeC;AAbG;IADC,IAAA,0BAAQ,GAAE;;uDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM;AAGrB,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM"}
@@ -1,4 +1,5 @@
1
1
  import { UserRole } from '../enums/user.enum';
2
+ import { ServiceTokenType, IdentifierType } from '../enums';
2
3
  export declare class RegisterDto {
3
4
  email: string;
4
5
  password: string;
@@ -11,28 +12,43 @@ export declare class LoginDto {
11
12
  email: string;
12
13
  password: string;
13
14
  }
15
+ export declare class EmployeeLoginDto {
16
+ email: string;
17
+ password: string;
18
+ }
19
+ export declare class PublicLoginDto {
20
+ username: string;
21
+ password: string;
22
+ }
14
23
  export interface UserResponse {
15
24
  id: string;
16
25
  email: string;
17
26
  role: UserRole;
18
- firstName: string;
19
- lastName: string;
20
- middleName?: string;
21
- name?: string;
22
27
  isActive: boolean;
28
+ status: string;
23
29
  createdAt?: string;
24
30
  updatedAt?: string;
25
- password?: string;
31
+ firstName?: string;
32
+ lastName?: string;
33
+ middleName?: string;
26
34
  shortName?: string;
35
+ position?: string;
36
+ department?: string;
27
37
  internalPhone?: string;
28
38
  mobilePhone?: string;
29
39
  facsimileSignature?: string;
40
+ companyName?: string;
41
+ taxId?: string;
42
+ address?: string;
43
+ contactPhone?: string;
44
+ avatar?: string;
30
45
  }
31
46
  export interface UserProfileDto {
32
47
  id: string;
33
48
  email: string;
34
49
  role: string;
35
50
  isActive: boolean;
51
+ status: string;
36
52
  createdAt: Date;
37
53
  updatedAt: Date;
38
54
  fullName: string;
@@ -54,3 +70,37 @@ export declare class ResetPasswordConfirmBody {
54
70
  token: string;
55
71
  newPassword: string;
56
72
  }
73
+ export declare class LogoutDto {
74
+ refreshToken?: string;
75
+ sessionId?: string;
76
+ }
77
+ export declare class RefreshTokenDto {
78
+ refreshToken: string;
79
+ }
80
+ export declare class CreateServiceTokenDto {
81
+ serviceName: string;
82
+ type: ServiceTokenType;
83
+ description?: string;
84
+ name?: string;
85
+ identityId: string;
86
+ expiresInDays?: number;
87
+ }
88
+ export declare class ValidateServiceTokenDto {
89
+ token: string;
90
+ }
91
+ export declare class CreateCredentialDto {
92
+ identifierType: IdentifierType;
93
+ identifierValue: string;
94
+ password: string;
95
+ identityId: string;
96
+ }
97
+ export declare class CreateSessionDto {
98
+ identityId: string;
99
+ ipAddress?: string;
100
+ userAgent?: string;
101
+ deviceInfo?: string;
102
+ }
103
+ export declare class Verify2faDto {
104
+ challengeId: string;
105
+ code: string;
106
+ }