@colveor/core 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.
Files changed (1372) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE +21 -0
  3. package/README.md +90 -0
  4. package/dist/bootstrap/bootstrap-colveor-app.d.ts +28 -0
  5. package/dist/bootstrap/bootstrap-colveor-app.d.ts.map +1 -0
  6. package/dist/bootstrap/bootstrap-colveor-app.js +238 -0
  7. package/dist/bootstrap/bootstrap-colveor-app.js.map +1 -0
  8. package/dist/bootstrap/bootstrap.types.d.ts +152 -0
  9. package/dist/bootstrap/bootstrap.types.d.ts.map +1 -0
  10. package/dist/bootstrap/bootstrap.types.js +3 -0
  11. package/dist/bootstrap/bootstrap.types.js.map +1 -0
  12. package/dist/bootstrap/index.d.ts +4 -0
  13. package/dist/bootstrap/index.d.ts.map +1 -0
  14. package/dist/bootstrap/index.js +24 -0
  15. package/dist/bootstrap/index.js.map +1 -0
  16. package/dist/bootstrap/logger.utils.d.ts +3 -0
  17. package/dist/bootstrap/logger.utils.d.ts.map +1 -0
  18. package/dist/bootstrap/logger.utils.js +14 -0
  19. package/dist/bootstrap/logger.utils.js.map +1 -0
  20. package/dist/bootstrap/metrics-prefix-alias.middleware.d.ts +6 -0
  21. package/dist/bootstrap/metrics-prefix-alias.middleware.d.ts.map +1 -0
  22. package/dist/bootstrap/metrics-prefix-alias.middleware.js +16 -0
  23. package/dist/bootstrap/metrics-prefix-alias.middleware.js.map +1 -0
  24. package/dist/bootstrap/observability.bootstrap.d.ts +12 -0
  25. package/dist/bootstrap/observability.bootstrap.d.ts.map +1 -0
  26. package/dist/bootstrap/observability.bootstrap.js +29 -0
  27. package/dist/bootstrap/observability.bootstrap.js.map +1 -0
  28. package/dist/common/base/base.entity.d.ts +16 -0
  29. package/dist/common/base/base.entity.d.ts.map +1 -0
  30. package/dist/common/base/base.entity.js +59 -0
  31. package/dist/common/base/base.entity.js.map +1 -0
  32. package/dist/common/base/base.repository.d.ts +29 -0
  33. package/dist/common/base/base.repository.d.ts.map +1 -0
  34. package/dist/common/base/base.repository.js +65 -0
  35. package/dist/common/base/base.repository.js.map +1 -0
  36. package/dist/common/constants/index.d.ts +9 -0
  37. package/dist/common/constants/index.d.ts.map +1 -0
  38. package/dist/common/constants/index.js +14 -0
  39. package/dist/common/constants/index.js.map +1 -0
  40. package/dist/common/decorators/auth-method-aware.decorator.d.ts +3 -0
  41. package/dist/common/decorators/auth-method-aware.decorator.d.ts.map +1 -0
  42. package/dist/common/decorators/auth-method-aware.decorator.js +8 -0
  43. package/dist/common/decorators/auth-method-aware.decorator.js.map +1 -0
  44. package/dist/common/decorators/index.d.ts +8 -0
  45. package/dist/common/decorators/index.d.ts.map +1 -0
  46. package/dist/common/decorators/index.js +34 -0
  47. package/dist/common/decorators/index.js.map +1 -0
  48. package/dist/common/decorators/otp-length-aware.decorator.d.ts +3 -0
  49. package/dist/common/decorators/otp-length-aware.decorator.d.ts.map +1 -0
  50. package/dist/common/decorators/otp-length-aware.decorator.js +8 -0
  51. package/dist/common/decorators/otp-length-aware.decorator.js.map +1 -0
  52. package/dist/common/decorators/pin-length-aware.decorator.d.ts +3 -0
  53. package/dist/common/decorators/pin-length-aware.decorator.d.ts.map +1 -0
  54. package/dist/common/decorators/pin-length-aware.decorator.js +8 -0
  55. package/dist/common/decorators/pin-length-aware.decorator.js.map +1 -0
  56. package/dist/common/dto/index.d.ts +2 -0
  57. package/dist/common/dto/index.d.ts.map +1 -0
  58. package/dist/common/dto/index.js +18 -0
  59. package/dist/common/dto/index.js.map +1 -0
  60. package/dist/common/dto/pagination.dto.d.ts +10 -0
  61. package/dist/common/dto/pagination.dto.d.ts.map +1 -0
  62. package/dist/common/dto/pagination.dto.js +47 -0
  63. package/dist/common/dto/pagination.dto.js.map +1 -0
  64. package/dist/common/filters/http-exception.filter.d.ts +32 -0
  65. package/dist/common/filters/http-exception.filter.d.ts.map +1 -0
  66. package/dist/common/filters/http-exception.filter.js +211 -0
  67. package/dist/common/filters/http-exception.filter.js.map +1 -0
  68. package/dist/common/filters/index.d.ts +2 -0
  69. package/dist/common/filters/index.d.ts.map +1 -0
  70. package/dist/common/filters/index.js +18 -0
  71. package/dist/common/filters/index.js.map +1 -0
  72. package/dist/common/guards/auth.guard.d.ts +11 -0
  73. package/dist/common/guards/auth.guard.d.ts.map +1 -0
  74. package/dist/common/guards/auth.guard.js +46 -0
  75. package/dist/common/guards/auth.guard.js.map +1 -0
  76. package/dist/common/guards/index.d.ts +8 -0
  77. package/dist/common/guards/index.d.ts.map +1 -0
  78. package/dist/common/guards/index.js +24 -0
  79. package/dist/common/guards/index.js.map +1 -0
  80. package/dist/common/guards/login-ip-rate-limit.guard.d.ts +18 -0
  81. package/dist/common/guards/login-ip-rate-limit.guard.d.ts.map +1 -0
  82. package/dist/common/guards/login-ip-rate-limit.guard.js +77 -0
  83. package/dist/common/guards/login-ip-rate-limit.guard.js.map +1 -0
  84. package/dist/common/guards/non-production.guard.d.ts +11 -0
  85. package/dist/common/guards/non-production.guard.d.ts.map +1 -0
  86. package/dist/common/guards/non-production.guard.js +37 -0
  87. package/dist/common/guards/non-production.guard.js.map +1 -0
  88. package/dist/common/guards/otp-ip-rate-limit.guard.d.ts +20 -0
  89. package/dist/common/guards/otp-ip-rate-limit.guard.d.ts.map +1 -0
  90. package/dist/common/guards/otp-ip-rate-limit.guard.js +85 -0
  91. package/dist/common/guards/otp-ip-rate-limit.guard.js.map +1 -0
  92. package/dist/common/guards/permissions.guard.d.ts +10 -0
  93. package/dist/common/guards/permissions.guard.d.ts.map +1 -0
  94. package/dist/common/guards/permissions.guard.js +49 -0
  95. package/dist/common/guards/permissions.guard.js.map +1 -0
  96. package/dist/common/guards/upload-ip-rate-limit.guard.d.ts +13 -0
  97. package/dist/common/guards/upload-ip-rate-limit.guard.d.ts.map +1 -0
  98. package/dist/common/guards/upload-ip-rate-limit.guard.js +63 -0
  99. package/dist/common/guards/upload-ip-rate-limit.guard.js.map +1 -0
  100. package/dist/common/guards/upload-user-rate-limit.guard.d.ts +13 -0
  101. package/dist/common/guards/upload-user-rate-limit.guard.d.ts.map +1 -0
  102. package/dist/common/guards/upload-user-rate-limit.guard.js +62 -0
  103. package/dist/common/guards/upload-user-rate-limit.guard.js.map +1 -0
  104. package/dist/common/index.d.ts +13 -0
  105. package/dist/common/index.d.ts.map +1 -0
  106. package/dist/common/index.js +34 -0
  107. package/dist/common/index.js.map +1 -0
  108. package/dist/common/interceptors/index.d.ts +3 -0
  109. package/dist/common/interceptors/index.d.ts.map +1 -0
  110. package/dist/common/interceptors/index.js +19 -0
  111. package/dist/common/interceptors/index.js.map +1 -0
  112. package/dist/common/interceptors/logging.interceptor.d.ts +10 -0
  113. package/dist/common/interceptors/logging.interceptor.d.ts.map +1 -0
  114. package/dist/common/interceptors/logging.interceptor.js +52 -0
  115. package/dist/common/interceptors/logging.interceptor.js.map +1 -0
  116. package/dist/common/interceptors/timeout.interceptor.d.ts +13 -0
  117. package/dist/common/interceptors/timeout.interceptor.d.ts.map +1 -0
  118. package/dist/common/interceptors/timeout.interceptor.js +43 -0
  119. package/dist/common/interceptors/timeout.interceptor.js.map +1 -0
  120. package/dist/common/interfaces/index.d.ts +2 -0
  121. package/dist/common/interfaces/index.d.ts.map +1 -0
  122. package/dist/common/interfaces/index.js +18 -0
  123. package/dist/common/interfaces/index.js.map +1 -0
  124. package/dist/common/interfaces/request-user.d.ts +20 -0
  125. package/dist/common/interfaces/request-user.d.ts.map +1 -0
  126. package/dist/common/interfaces/request-user.js +3 -0
  127. package/dist/common/interfaces/request-user.js.map +1 -0
  128. package/dist/common/interfaces/v.d.ts +20 -0
  129. package/dist/common/interfaces/v.d.ts.map +1 -0
  130. package/dist/common/interfaces/v.js +3 -0
  131. package/dist/common/interfaces/v.js.map +1 -0
  132. package/dist/common/middlewares/index.d.ts +7 -0
  133. package/dist/common/middlewares/index.d.ts.map +1 -0
  134. package/dist/common/middlewares/index.js +25 -0
  135. package/dist/common/middlewares/index.js.map +1 -0
  136. package/dist/common/pipes/config-aware-validation.pipe.d.ts +9 -0
  137. package/dist/common/pipes/config-aware-validation.pipe.d.ts.map +1 -0
  138. package/dist/common/pipes/config-aware-validation.pipe.js +55 -0
  139. package/dist/common/pipes/config-aware-validation.pipe.js.map +1 -0
  140. package/dist/common/pipes/index.d.ts +14 -0
  141. package/dist/common/pipes/index.d.ts.map +1 -0
  142. package/dist/common/pipes/index.js +62 -0
  143. package/dist/common/pipes/index.js.map +1 -0
  144. package/dist/common/utils/fetch-with-timeout.util.d.ts +11 -0
  145. package/dist/common/utils/fetch-with-timeout.util.d.ts.map +1 -0
  146. package/dist/common/utils/fetch-with-timeout.util.js +36 -0
  147. package/dist/common/utils/fetch-with-timeout.util.js.map +1 -0
  148. package/dist/common/utils/index.d.ts +18 -0
  149. package/dist/common/utils/index.d.ts.map +1 -0
  150. package/dist/common/utils/index.js +57 -0
  151. package/dist/common/utils/index.js.map +1 -0
  152. package/dist/common/utils/multer-exception.util.d.ts +6 -0
  153. package/dist/common/utils/multer-exception.util.d.ts.map +1 -0
  154. package/dist/common/utils/multer-exception.util.js +31 -0
  155. package/dist/common/utils/multer-exception.util.js.map +1 -0
  156. package/dist/common/utils/request.utils.d.ts +19 -0
  157. package/dist/common/utils/request.utils.d.ts.map +1 -0
  158. package/dist/common/utils/request.utils.js +27 -0
  159. package/dist/common/utils/request.utils.js.map +1 -0
  160. package/dist/common/utils/validation.d.ts +19 -0
  161. package/dist/common/utils/validation.d.ts.map +1 -0
  162. package/dist/common/utils/validation.js +36 -0
  163. package/dist/common/utils/validation.js.map +1 -0
  164. package/dist/common/validators/is-configured-otp-length.validator.d.ts +10 -0
  165. package/dist/common/validators/is-configured-otp-length.validator.d.ts.map +1 -0
  166. package/dist/common/validators/is-configured-otp-length.validator.js +45 -0
  167. package/dist/common/validators/is-configured-otp-length.validator.js.map +1 -0
  168. package/dist/common/validators/is-configured-pin-length.validator.d.ts +7 -0
  169. package/dist/common/validators/is-configured-pin-length.validator.d.ts.map +1 -0
  170. package/dist/common/validators/is-configured-pin-length.validator.js +43 -0
  171. package/dist/common/validators/is-configured-pin-length.validator.js.map +1 -0
  172. package/dist/common/validators/is-exclusive-auth-params.validator.d.ts +8 -0
  173. package/dist/common/validators/is-exclusive-auth-params.validator.d.ts.map +1 -0
  174. package/dist/common/validators/is-exclusive-auth-params.validator.js +38 -0
  175. package/dist/common/validators/is-exclusive-auth-params.validator.js.map +1 -0
  176. package/dist/common/validators/is-exclusive-delete-confirm-params.validator.d.ts +7 -0
  177. package/dist/common/validators/is-exclusive-delete-confirm-params.validator.d.ts.map +1 -0
  178. package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js +37 -0
  179. package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js.map +1 -0
  180. package/dist/common/validators/is-immutable-auth-method.validator.d.ts +8 -0
  181. package/dist/common/validators/is-immutable-auth-method.validator.d.ts.map +1 -0
  182. package/dist/common/validators/is-immutable-auth-method.validator.js +36 -0
  183. package/dist/common/validators/is-immutable-auth-method.validator.js.map +1 -0
  184. package/dist/common/validators/is-otp-verification-code.validator.d.ts +7 -0
  185. package/dist/common/validators/is-otp-verification-code.validator.d.ts.map +1 -0
  186. package/dist/common/validators/is-otp-verification-code.validator.js +42 -0
  187. package/dist/common/validators/is-otp-verification-code.validator.js.map +1 -0
  188. package/dist/config/app.config.d.ts +102 -0
  189. package/dist/config/app.config.d.ts.map +1 -0
  190. package/dist/config/app.config.js +92 -0
  191. package/dist/config/app.config.js.map +1 -0
  192. package/dist/config/database.config.d.ts +16 -0
  193. package/dist/config/database.config.d.ts.map +1 -0
  194. package/dist/config/database.config.js +14 -0
  195. package/dist/config/database.config.js.map +1 -0
  196. package/dist/config/encryption.util.d.ts +10 -0
  197. package/dist/config/encryption.util.d.ts.map +1 -0
  198. package/dist/config/encryption.util.js +60 -0
  199. package/dist/config/encryption.util.js.map +1 -0
  200. package/dist/config/env-flags.util.d.ts +8 -0
  201. package/dist/config/env-flags.util.d.ts.map +1 -0
  202. package/dist/config/env-flags.util.js +19 -0
  203. package/dist/config/env-flags.util.js.map +1 -0
  204. package/dist/config/env-preload.util.d.ts +8 -0
  205. package/dist/config/env-preload.util.d.ts.map +1 -0
  206. package/dist/config/env-preload.util.js +21 -0
  207. package/dist/config/env-preload.util.js.map +1 -0
  208. package/dist/config/env.validation.d.ts +59 -0
  209. package/dist/config/env.validation.d.ts.map +1 -0
  210. package/dist/config/env.validation.js +291 -0
  211. package/dist/config/env.validation.js.map +1 -0
  212. package/dist/config/firebase.module.d.ts +10 -0
  213. package/dist/config/firebase.module.d.ts.map +1 -0
  214. package/dist/config/firebase.module.js +26 -0
  215. package/dist/config/firebase.module.js.map +1 -0
  216. package/dist/config/in-memory-redis.client.d.ts +25 -0
  217. package/dist/config/in-memory-redis.client.d.ts.map +1 -0
  218. package/dist/config/in-memory-redis.client.js +166 -0
  219. package/dist/config/in-memory-redis.client.js.map +1 -0
  220. package/dist/config/index.d.ts +6 -0
  221. package/dist/config/index.d.ts.map +1 -0
  222. package/dist/config/index.js +15 -0
  223. package/dist/config/index.js.map +1 -0
  224. package/dist/config/keycloak.module.d.ts +6 -0
  225. package/dist/config/keycloak.module.d.ts.map +1 -0
  226. package/dist/config/keycloak.module.js +92 -0
  227. package/dist/config/keycloak.module.js.map +1 -0
  228. package/dist/config/node-env.util.d.ts +5 -0
  229. package/dist/config/node-env.util.d.ts.map +1 -0
  230. package/dist/config/node-env.util.js +10 -0
  231. package/dist/config/node-env.util.js.map +1 -0
  232. package/dist/config/redis-enabled.util.d.ts +6 -0
  233. package/dist/config/redis-enabled.util.d.ts.map +1 -0
  234. package/dist/config/redis-enabled.util.js +10 -0
  235. package/dist/config/redis-enabled.util.js.map +1 -0
  236. package/dist/config/redis-throttler.storage.d.ts +27 -0
  237. package/dist/config/redis-throttler.storage.d.ts.map +1 -0
  238. package/dist/config/redis-throttler.storage.js +73 -0
  239. package/dist/config/redis-throttler.storage.js.map +1 -0
  240. package/dist/config/redis.module.d.ts +13 -0
  241. package/dist/config/redis.module.d.ts.map +1 -0
  242. package/dist/config/redis.module.js +138 -0
  243. package/dist/config/redis.module.js.map +1 -0
  244. package/dist/config/tls.util.d.ts +33 -0
  245. package/dist/config/tls.util.d.ts.map +1 -0
  246. package/dist/config/tls.util.js +60 -0
  247. package/dist/config/tls.util.js.map +1 -0
  248. package/dist/core.module.d.ts +74 -0
  249. package/dist/core.module.d.ts.map +1 -0
  250. package/dist/core.module.js +169 -0
  251. package/dist/core.module.js.map +1 -0
  252. package/dist/database/data-source.d.ts +5 -0
  253. package/dist/database/data-source.d.ts.map +1 -0
  254. package/dist/database/data-source.js +45 -0
  255. package/dist/database/data-source.js.map +1 -0
  256. package/dist/database/migrations/1784284557959-full-schema.d.ts +7 -0
  257. package/dist/database/migrations/1784284557959-full-schema.d.ts.map +1 -0
  258. package/dist/database/migrations/1784284557959-full-schema.js +154 -0
  259. package/dist/database/migrations/1784284557959-full-schema.js.map +1 -0
  260. package/dist/database/seeds/roles.seed.d.ts +11 -0
  261. package/dist/database/seeds/roles.seed.d.ts.map +1 -0
  262. package/dist/database/seeds/roles.seed.js +69 -0
  263. package/dist/database/seeds/roles.seed.js.map +1 -0
  264. package/dist/database/seeds/run-seed.d.ts +2 -0
  265. package/dist/database/seeds/run-seed.d.ts.map +1 -0
  266. package/dist/database/seeds/run-seed.js +34 -0
  267. package/dist/database/seeds/run-seed.js.map +1 -0
  268. package/dist/database/seeds/settings.seed.d.ts +14 -0
  269. package/dist/database/seeds/settings.seed.d.ts.map +1 -0
  270. package/dist/database/seeds/settings.seed.js +609 -0
  271. package/dist/database/seeds/settings.seed.js.map +1 -0
  272. package/dist/database/seeds/templates/emails/account-created.html +47 -0
  273. package/dist/database/seeds/templates/emails/account-deleted.html +47 -0
  274. package/dist/database/seeds/templates/emails/account-reactivated.html +48 -0
  275. package/dist/database/seeds/templates/emails/account-suspended.html +46 -0
  276. package/dist/database/seeds/templates/emails/change-email-verification.html +283 -0
  277. package/dist/database/seeds/templates/emails/invitation.html +66 -0
  278. package/dist/database/seeds/templates/emails/password-reset.html +278 -0
  279. package/dist/database/seeds/templates/emails/reply-notification.html +282 -0
  280. package/dist/database/seeds/templates/emails/resetpassword.html +291 -0
  281. package/dist/database/seeds/templates/emails/verify-email.html +62 -0
  282. package/dist/database/seeds/templates/emails/welcome.html +46 -0
  283. package/dist/database/seeds/templates/html-template.reader.d.ts +10 -0
  284. package/dist/database/seeds/templates/html-template.reader.d.ts.map +1 -0
  285. package/dist/database/seeds/templates/html-template.reader.js +83 -0
  286. package/dist/database/seeds/templates/html-template.reader.js.map +1 -0
  287. package/dist/database/seeds/templates/html-template.reader.ts +84 -0
  288. package/dist/database/seeds/user.seed.d.ts +14 -0
  289. package/dist/database/seeds/user.seed.d.ts.map +1 -0
  290. package/dist/database/seeds/user.seed.js +106 -0
  291. package/dist/database/seeds/user.seed.js.map +1 -0
  292. package/dist/database/typeorm.service.d.ts +19 -0
  293. package/dist/database/typeorm.service.d.ts.map +1 -0
  294. package/dist/database/typeorm.service.js +53 -0
  295. package/dist/database/typeorm.service.js.map +1 -0
  296. package/dist/database/typeorm.util.d.ts +108 -0
  297. package/dist/database/typeorm.util.d.ts.map +1 -0
  298. package/dist/database/typeorm.util.js +163 -0
  299. package/dist/database/typeorm.util.js.map +1 -0
  300. package/dist/index.d.ts +52 -0
  301. package/dist/index.d.ts.map +1 -0
  302. package/dist/index.js +126 -0
  303. package/dist/index.js.map +1 -0
  304. package/dist/modules/admin/admin.module.d.ts +3 -0
  305. package/dist/modules/admin/admin.module.d.ts.map +1 -0
  306. package/dist/modules/admin/admin.module.js +25 -0
  307. package/dist/modules/admin/admin.module.js.map +1 -0
  308. package/dist/modules/admin/controllers/admin.controller.d.ts +51 -0
  309. package/dist/modules/admin/controllers/admin.controller.d.ts.map +1 -0
  310. package/dist/modules/admin/controllers/admin.controller.js +198 -0
  311. package/dist/modules/admin/controllers/admin.controller.js.map +1 -0
  312. package/dist/modules/admin/dto/admin-log.dto.d.ts +21 -0
  313. package/dist/modules/admin/dto/admin-log.dto.d.ts.map +1 -0
  314. package/dist/modules/admin/dto/admin-log.dto.js +63 -0
  315. package/dist/modules/admin/dto/admin-log.dto.js.map +1 -0
  316. package/dist/modules/admin/entities/admin-log.entity.d.ts +20 -0
  317. package/dist/modules/admin/entities/admin-log.entity.d.ts.map +1 -0
  318. package/dist/modules/admin/entities/admin-log.entity.js +65 -0
  319. package/dist/modules/admin/entities/admin-log.entity.js.map +1 -0
  320. package/dist/modules/admin/services/admin-log.service.d.ts +12 -0
  321. package/dist/modules/admin/services/admin-log.service.d.ts.map +1 -0
  322. package/dist/modules/admin/services/admin-log.service.js +63 -0
  323. package/dist/modules/admin/services/admin-log.service.js.map +1 -0
  324. package/dist/modules/auth/auth-core/auth-core.module.d.ts +3 -0
  325. package/dist/modules/auth/auth-core/auth-core.module.d.ts.map +1 -0
  326. package/dist/modules/auth/auth-core/auth-core.module.js +40 -0
  327. package/dist/modules/auth/auth-core/auth-core.module.js.map +1 -0
  328. package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts +18 -0
  329. package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts.map +1 -0
  330. package/dist/modules/auth/auth-core/strategies/jwt.strategy.js +64 -0
  331. package/dist/modules/auth/auth-core/strategies/jwt.strategy.js.map +1 -0
  332. package/dist/modules/auth/auth.manifest.d.ts +9 -0
  333. package/dist/modules/auth/auth.manifest.d.ts.map +1 -0
  334. package/dist/modules/auth/auth.manifest.js +29 -0
  335. package/dist/modules/auth/auth.manifest.js.map +1 -0
  336. package/dist/modules/auth/auth.module.d.ts +3 -0
  337. package/dist/modules/auth/auth.module.d.ts.map +1 -0
  338. package/dist/modules/auth/auth.module.js +71 -0
  339. package/dist/modules/auth/auth.module.js.map +1 -0
  340. package/dist/modules/auth/controllers/account.controller.d.ts +30 -0
  341. package/dist/modules/auth/controllers/account.controller.d.ts.map +1 -0
  342. package/dist/modules/auth/controllers/account.controller.js +131 -0
  343. package/dist/modules/auth/controllers/account.controller.js.map +1 -0
  344. package/dist/modules/auth/controllers/auth.controller.d.ts +21 -0
  345. package/dist/modules/auth/controllers/auth.controller.d.ts.map +1 -0
  346. package/dist/modules/auth/controllers/auth.controller.js +218 -0
  347. package/dist/modules/auth/controllers/auth.controller.js.map +1 -0
  348. package/dist/modules/auth/controllers/forgot-password.controller.d.ts +17 -0
  349. package/dist/modules/auth/controllers/forgot-password.controller.d.ts.map +1 -0
  350. package/dist/modules/auth/controllers/forgot-password.controller.js +98 -0
  351. package/dist/modules/auth/controllers/forgot-password.controller.js.map +1 -0
  352. package/dist/modules/auth/controllers/otp.controller.d.ts +10 -0
  353. package/dist/modules/auth/controllers/otp.controller.d.ts.map +1 -0
  354. package/dist/modules/auth/controllers/otp.controller.js +166 -0
  355. package/dist/modules/auth/controllers/otp.controller.js.map +1 -0
  356. package/dist/modules/auth/controllers/pin.controller.d.ts +22 -0
  357. package/dist/modules/auth/controllers/pin.controller.d.ts.map +1 -0
  358. package/dist/modules/auth/controllers/pin.controller.js +212 -0
  359. package/dist/modules/auth/controllers/pin.controller.js.map +1 -0
  360. package/dist/modules/auth/controllers/session.controller.d.ts +19 -0
  361. package/dist/modules/auth/controllers/session.controller.d.ts.map +1 -0
  362. package/dist/modules/auth/controllers/session.controller.js +139 -0
  363. package/dist/modules/auth/controllers/session.controller.js.map +1 -0
  364. package/dist/modules/auth/dto/auth-config.dto.d.ts +7 -0
  365. package/dist/modules/auth/dto/auth-config.dto.d.ts.map +1 -0
  366. package/dist/modules/auth/dto/auth-config.dto.js +54 -0
  367. package/dist/modules/auth/dto/auth-config.dto.js.map +1 -0
  368. package/dist/modules/auth/dto/index.d.ts +7 -0
  369. package/dist/modules/auth/dto/index.d.ts.map +1 -0
  370. package/dist/modules/auth/dto/index.js +23 -0
  371. package/dist/modules/auth/dto/index.js.map +1 -0
  372. package/dist/modules/auth/dto/login.dto.d.ts +15 -0
  373. package/dist/modules/auth/dto/login.dto.d.ts.map +1 -0
  374. package/dist/modules/auth/dto/login.dto.js +68 -0
  375. package/dist/modules/auth/dto/login.dto.js.map +1 -0
  376. package/dist/modules/auth/dto/otp.dto.d.ts +48 -0
  377. package/dist/modules/auth/dto/otp.dto.d.ts.map +1 -0
  378. package/dist/modules/auth/dto/otp.dto.js +217 -0
  379. package/dist/modules/auth/dto/otp.dto.js.map +1 -0
  380. package/dist/modules/auth/dto/password.dto.d.ts +31 -0
  381. package/dist/modules/auth/dto/password.dto.d.ts.map +1 -0
  382. package/dist/modules/auth/dto/password.dto.js +168 -0
  383. package/dist/modules/auth/dto/password.dto.js.map +1 -0
  384. package/dist/modules/auth/dto/pin.dto.d.ts +31 -0
  385. package/dist/modules/auth/dto/pin.dto.d.ts.map +1 -0
  386. package/dist/modules/auth/dto/pin.dto.js +177 -0
  387. package/dist/modules/auth/dto/pin.dto.js.map +1 -0
  388. package/dist/modules/auth/dto/register.dto.d.ts +18 -0
  389. package/dist/modules/auth/dto/register.dto.d.ts.map +1 -0
  390. package/dist/modules/auth/dto/register.dto.js +69 -0
  391. package/dist/modules/auth/dto/register.dto.js.map +1 -0
  392. package/dist/modules/auth/dto/test-login.dto.d.ts +11 -0
  393. package/dist/modules/auth/dto/test-login.dto.d.ts.map +1 -0
  394. package/dist/modules/auth/dto/test-login.dto.js +78 -0
  395. package/dist/modules/auth/dto/test-login.dto.js.map +1 -0
  396. package/dist/modules/auth/dto/token.dto.d.ts +38 -0
  397. package/dist/modules/auth/dto/token.dto.d.ts.map +1 -0
  398. package/dist/modules/auth/dto/token.dto.js +69 -0
  399. package/dist/modules/auth/dto/token.dto.js.map +1 -0
  400. package/dist/modules/auth/entities/index.d.ts +3 -0
  401. package/dist/modules/auth/entities/index.d.ts.map +1 -0
  402. package/dist/modules/auth/entities/index.js +19 -0
  403. package/dist/modules/auth/entities/index.js.map +1 -0
  404. package/dist/modules/auth/entities/password-reset-token.entity.d.ts +14 -0
  405. package/dist/modules/auth/entities/password-reset-token.entity.d.ts.map +1 -0
  406. package/dist/modules/auth/entities/password-reset-token.entity.js +49 -0
  407. package/dist/modules/auth/entities/password-reset-token.entity.js.map +1 -0
  408. package/dist/modules/auth/entities/user-pin.entity.d.ts +38 -0
  409. package/dist/modules/auth/entities/user-pin.entity.d.ts.map +1 -0
  410. package/dist/modules/auth/entities/user-pin.entity.js +83 -0
  411. package/dist/modules/auth/entities/user-pin.entity.js.map +1 -0
  412. package/dist/modules/auth/events/auth.events.d.ts +45 -0
  413. package/dist/modules/auth/events/auth.events.d.ts.map +1 -0
  414. package/dist/modules/auth/events/auth.events.js +22 -0
  415. package/dist/modules/auth/events/auth.events.js.map +1 -0
  416. package/dist/modules/auth/events/index.d.ts +2 -0
  417. package/dist/modules/auth/events/index.d.ts.map +1 -0
  418. package/dist/modules/auth/events/index.js +18 -0
  419. package/dist/modules/auth/events/index.js.map +1 -0
  420. package/dist/modules/auth/index.d.ts +5 -0
  421. package/dist/modules/auth/index.d.ts.map +1 -0
  422. package/dist/modules/auth/index.js +21 -0
  423. package/dist/modules/auth/index.js.map +1 -0
  424. package/dist/modules/auth/providers/index.d.ts +4 -0
  425. package/dist/modules/auth/providers/index.d.ts.map +1 -0
  426. package/dist/modules/auth/providers/index.js +20 -0
  427. package/dist/modules/auth/providers/index.js.map +1 -0
  428. package/dist/modules/auth/providers/interfaces/auth-provider.interface.d.ts +90 -0
  429. package/dist/modules/auth/providers/interfaces/auth-provider.interface.d.ts.map +1 -0
  430. package/dist/modules/auth/providers/interfaces/auth-provider.interface.js +3 -0
  431. package/dist/modules/auth/providers/interfaces/auth-provider.interface.js.map +1 -0
  432. package/dist/modules/auth/providers/interfaces/index.d.ts +2 -0
  433. package/dist/modules/auth/providers/interfaces/index.d.ts.map +1 -0
  434. package/dist/modules/auth/providers/interfaces/index.js +18 -0
  435. package/dist/modules/auth/providers/interfaces/index.js.map +1 -0
  436. package/dist/modules/auth/providers/keycloak/index.d.ts +3 -0
  437. package/dist/modules/auth/providers/keycloak/index.d.ts.map +1 -0
  438. package/dist/modules/auth/providers/keycloak/index.js +19 -0
  439. package/dist/modules/auth/providers/keycloak/index.js.map +1 -0
  440. package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.d.ts +3 -0
  441. package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.d.ts.map +1 -0
  442. package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.js +80 -0
  443. package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.js.map +1 -0
  444. package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.d.ts +11 -0
  445. package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.d.ts.map +1 -0
  446. package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.js +58 -0
  447. package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.js.map +1 -0
  448. package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.d.ts +36 -0
  449. package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.d.ts.map +1 -0
  450. package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.js +192 -0
  451. package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.js.map +1 -0
  452. package/dist/modules/auth/providers/native/index.d.ts +3 -0
  453. package/dist/modules/auth/providers/native/index.d.ts.map +1 -0
  454. package/dist/modules/auth/providers/native/index.js +19 -0
  455. package/dist/modules/auth/providers/native/index.js.map +1 -0
  456. package/dist/modules/auth/providers/native/native.auth-provider.d.ts +19 -0
  457. package/dist/modules/auth/providers/native/native.auth-provider.d.ts.map +1 -0
  458. package/dist/modules/auth/providers/native/native.auth-provider.js +144 -0
  459. package/dist/modules/auth/providers/native/native.auth-provider.js.map +1 -0
  460. package/dist/modules/auth/providers/native/native.auth-provider.module.d.ts +3 -0
  461. package/dist/modules/auth/providers/native/native.auth-provider.module.d.ts.map +1 -0
  462. package/dist/modules/auth/providers/native/native.auth-provider.module.js +24 -0
  463. package/dist/modules/auth/providers/native/native.auth-provider.module.js.map +1 -0
  464. package/dist/modules/auth/providers/provider.registry.d.ts +12 -0
  465. package/dist/modules/auth/providers/provider.registry.d.ts.map +1 -0
  466. package/dist/modules/auth/providers/provider.registry.js +45 -0
  467. package/dist/modules/auth/providers/provider.registry.js.map +1 -0
  468. package/dist/modules/auth/services/account.service.d.ts +64 -0
  469. package/dist/modules/auth/services/account.service.d.ts.map +1 -0
  470. package/dist/modules/auth/services/account.service.js +203 -0
  471. package/dist/modules/auth/services/account.service.js.map +1 -0
  472. package/dist/modules/auth/services/index.d.ts +7 -0
  473. package/dist/modules/auth/services/index.d.ts.map +1 -0
  474. package/dist/modules/auth/services/index.js +23 -0
  475. package/dist/modules/auth/services/index.js.map +1 -0
  476. package/dist/modules/auth/services/login.service.d.ts +72 -0
  477. package/dist/modules/auth/services/login.service.d.ts.map +1 -0
  478. package/dist/modules/auth/services/login.service.js +337 -0
  479. package/dist/modules/auth/services/login.service.js.map +1 -0
  480. package/dist/modules/auth/services/otp-auth.service.d.ts +30 -0
  481. package/dist/modules/auth/services/otp-auth.service.d.ts.map +1 -0
  482. package/dist/modules/auth/services/otp-auth.service.js +140 -0
  483. package/dist/modules/auth/services/otp-auth.service.js.map +1 -0
  484. package/dist/modules/auth/services/password.service.d.ts +56 -0
  485. package/dist/modules/auth/services/password.service.d.ts.map +1 -0
  486. package/dist/modules/auth/services/password.service.js +225 -0
  487. package/dist/modules/auth/services/password.service.js.map +1 -0
  488. package/dist/modules/auth/services/pin-auth.service.d.ts +73 -0
  489. package/dist/modules/auth/services/pin-auth.service.d.ts.map +1 -0
  490. package/dist/modules/auth/services/pin-auth.service.js +290 -0
  491. package/dist/modules/auth/services/pin-auth.service.js.map +1 -0
  492. package/dist/modules/auth/services/registration.service.d.ts +41 -0
  493. package/dist/modules/auth/services/registration.service.d.ts.map +1 -0
  494. package/dist/modules/auth/services/registration.service.js +330 -0
  495. package/dist/modules/auth/services/registration.service.js.map +1 -0
  496. package/dist/modules/auth/types/auth-identity.d.ts +7 -0
  497. package/dist/modules/auth/types/auth-identity.d.ts.map +1 -0
  498. package/dist/modules/auth/types/auth-identity.js +3 -0
  499. package/dist/modules/auth/types/auth-identity.js.map +1 -0
  500. package/dist/modules/auth/utils/auth-method.util.d.ts +4 -0
  501. package/dist/modules/auth/utils/auth-method.util.d.ts.map +1 -0
  502. package/dist/modules/auth/utils/auth-method.util.js +9 -0
  503. package/dist/modules/auth/utils/auth-method.util.js.map +1 -0
  504. package/dist/modules/auth/utils/auth-params.util.d.ts +25 -0
  505. package/dist/modules/auth/utils/auth-params.util.d.ts.map +1 -0
  506. package/dist/modules/auth/utils/auth-params.util.js +54 -0
  507. package/dist/modules/auth/utils/auth-params.util.js.map +1 -0
  508. package/dist/modules/auth/utils/auth-supported.util.d.ts +4 -0
  509. package/dist/modules/auth/utils/auth-supported.util.d.ts.map +1 -0
  510. package/dist/modules/auth/utils/auth-supported.util.js +18 -0
  511. package/dist/modules/auth/utils/auth-supported.util.js.map +1 -0
  512. package/dist/modules/delivery/composers/email.composer.d.ts +9 -0
  513. package/dist/modules/delivery/composers/email.composer.d.ts.map +1 -0
  514. package/dist/modules/delivery/composers/email.composer.js +45 -0
  515. package/dist/modules/delivery/composers/email.composer.js.map +1 -0
  516. package/dist/modules/delivery/composers/otp-delivery.composer.d.ts +19 -0
  517. package/dist/modules/delivery/composers/otp-delivery.composer.d.ts.map +1 -0
  518. package/dist/modules/delivery/composers/otp-delivery.composer.js +59 -0
  519. package/dist/modules/delivery/composers/otp-delivery.composer.js.map +1 -0
  520. package/dist/modules/delivery/delivery.manifest.d.ts +7 -0
  521. package/dist/modules/delivery/delivery.manifest.d.ts.map +1 -0
  522. package/dist/modules/delivery/delivery.manifest.js +25 -0
  523. package/dist/modules/delivery/delivery.manifest.js.map +1 -0
  524. package/dist/modules/delivery/delivery.module.d.ts +5 -0
  525. package/dist/modules/delivery/delivery.module.d.ts.map +1 -0
  526. package/dist/modules/delivery/delivery.module.js +76 -0
  527. package/dist/modules/delivery/delivery.module.js.map +1 -0
  528. package/dist/modules/delivery/dto/notification-delivery-log.dto.d.ts +10 -0
  529. package/dist/modules/delivery/dto/notification-delivery-log.dto.d.ts.map +1 -0
  530. package/dist/modules/delivery/dto/notification-delivery-log.dto.js +60 -0
  531. package/dist/modules/delivery/dto/notification-delivery-log.dto.js.map +1 -0
  532. package/dist/modules/delivery/entities/notification-delivery-log.entity.d.ts +28 -0
  533. package/dist/modules/delivery/entities/notification-delivery-log.entity.d.ts.map +1 -0
  534. package/dist/modules/delivery/entities/notification-delivery-log.entity.js +87 -0
  535. package/dist/modules/delivery/entities/notification-delivery-log.entity.js.map +1 -0
  536. package/dist/modules/delivery/index.d.ts +8 -0
  537. package/dist/modules/delivery/index.d.ts.map +1 -0
  538. package/dist/modules/delivery/index.js +14 -0
  539. package/dist/modules/delivery/index.js.map +1 -0
  540. package/dist/modules/delivery/notification-delivery.service.d.ts +63 -0
  541. package/dist/modules/delivery/notification-delivery.service.d.ts.map +1 -0
  542. package/dist/modules/delivery/notification-delivery.service.js +404 -0
  543. package/dist/modules/delivery/notification-delivery.service.js.map +1 -0
  544. package/dist/modules/delivery/processors/delivery-errors.util.d.ts +8 -0
  545. package/dist/modules/delivery/processors/delivery-errors.util.d.ts.map +1 -0
  546. package/dist/modules/delivery/processors/delivery-errors.util.js +60 -0
  547. package/dist/modules/delivery/processors/delivery-errors.util.js.map +1 -0
  548. package/dist/modules/delivery/processors/delivery-job.runner.d.ts +25 -0
  549. package/dist/modules/delivery/processors/delivery-job.runner.d.ts.map +1 -0
  550. package/dist/modules/delivery/processors/delivery-job.runner.js +167 -0
  551. package/dist/modules/delivery/processors/delivery-job.runner.js.map +1 -0
  552. package/dist/modules/delivery/processors/delivery.processor.d.ts +10 -0
  553. package/dist/modules/delivery/processors/delivery.processor.d.ts.map +1 -0
  554. package/dist/modules/delivery/processors/delivery.processor.js +31 -0
  555. package/dist/modules/delivery/processors/delivery.processor.js.map +1 -0
  556. package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts +24 -0
  557. package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts.map +1 -0
  558. package/dist/modules/delivery/processors/otp-delivery-job.runner.js +141 -0
  559. package/dist/modules/delivery/processors/otp-delivery-job.runner.js.map +1 -0
  560. package/dist/modules/delivery/processors/otp-delivery.processor.d.ts +10 -0
  561. package/dist/modules/delivery/processors/otp-delivery.processor.d.ts.map +1 -0
  562. package/dist/modules/delivery/processors/otp-delivery.processor.js +31 -0
  563. package/dist/modules/delivery/processors/otp-delivery.processor.js.map +1 -0
  564. package/dist/modules/delivery/queues/sync-jobs.queue.d.ts +22 -0
  565. package/dist/modules/delivery/queues/sync-jobs.queue.d.ts.map +1 -0
  566. package/dist/modules/delivery/queues/sync-jobs.queue.js +76 -0
  567. package/dist/modules/delivery/queues/sync-jobs.queue.js.map +1 -0
  568. package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts +15 -0
  569. package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts.map +1 -0
  570. package/dist/modules/delivery/services/delivery-audit-retention.service.js +68 -0
  571. package/dist/modules/delivery/services/delivery-audit-retention.service.js.map +1 -0
  572. package/dist/modules/delivery/services/notification-audit.service.d.ts +46 -0
  573. package/dist/modules/delivery/services/notification-audit.service.d.ts.map +1 -0
  574. package/dist/modules/delivery/services/notification-audit.service.js +200 -0
  575. package/dist/modules/delivery/services/notification-audit.service.js.map +1 -0
  576. package/dist/modules/delivery/templates/email-template.registry.d.ts +12 -0
  577. package/dist/modules/delivery/templates/email-template.registry.d.ts.map +1 -0
  578. package/dist/modules/delivery/templates/email-template.registry.js +74 -0
  579. package/dist/modules/delivery/templates/email-template.registry.js.map +1 -0
  580. package/dist/modules/delivery/templates/otp-sms.template.d.ts +5 -0
  581. package/dist/modules/delivery/templates/otp-sms.template.d.ts.map +1 -0
  582. package/dist/modules/delivery/templates/otp-sms.template.js +10 -0
  583. package/dist/modules/delivery/templates/otp-sms.template.js.map +1 -0
  584. package/dist/modules/delivery/templates/render-email-template.d.ts +7 -0
  585. package/dist/modules/delivery/templates/render-email-template.d.ts.map +1 -0
  586. package/dist/modules/delivery/templates/render-email-template.js +14 -0
  587. package/dist/modules/delivery/templates/render-email-template.js.map +1 -0
  588. package/dist/modules/delivery/templates/render-sms-template.d.ts +5 -0
  589. package/dist/modules/delivery/templates/render-sms-template.d.ts.map +1 -0
  590. package/dist/modules/delivery/templates/render-sms-template.js +13 -0
  591. package/dist/modules/delivery/templates/render-sms-template.js.map +1 -0
  592. package/dist/modules/delivery/types/email-metadata.d.ts +18 -0
  593. package/dist/modules/delivery/types/email-metadata.d.ts.map +1 -0
  594. package/dist/modules/delivery/types/email-metadata.js +3 -0
  595. package/dist/modules/delivery/types/email-metadata.js.map +1 -0
  596. package/dist/modules/delivery/types/payload-snapshot.d.ts +19 -0
  597. package/dist/modules/delivery/types/payload-snapshot.d.ts.map +1 -0
  598. package/dist/modules/delivery/types/payload-snapshot.js +3 -0
  599. package/dist/modules/delivery/types/payload-snapshot.js.map +1 -0
  600. package/dist/modules/delivery/utils/audit-recipient.util.d.ts +4 -0
  601. package/dist/modules/delivery/utils/audit-recipient.util.d.ts.map +1 -0
  602. package/dist/modules/delivery/utils/audit-recipient.util.js +32 -0
  603. package/dist/modules/delivery/utils/audit-recipient.util.js.map +1 -0
  604. package/dist/modules/delivery/utils/payload-snapshot.util.d.ts +4 -0
  605. package/dist/modules/delivery/utils/payload-snapshot.util.d.ts.map +1 -0
  606. package/dist/modules/delivery/utils/payload-snapshot.util.js +35 -0
  607. package/dist/modules/delivery/utils/payload-snapshot.util.js.map +1 -0
  608. package/dist/modules/file-upload/constants/upload.types.d.ts +36 -0
  609. package/dist/modules/file-upload/constants/upload.types.d.ts.map +1 -0
  610. package/dist/modules/file-upload/constants/upload.types.js +43 -0
  611. package/dist/modules/file-upload/constants/upload.types.js.map +1 -0
  612. package/dist/modules/file-upload/controllers/file-upload.controller.d.ts +19 -0
  613. package/dist/modules/file-upload/controllers/file-upload.controller.d.ts.map +1 -0
  614. package/dist/modules/file-upload/controllers/file-upload.controller.js +439 -0
  615. package/dist/modules/file-upload/controllers/file-upload.controller.js.map +1 -0
  616. package/dist/modules/file-upload/dto/file-upload.dto.d.ts +65 -0
  617. package/dist/modules/file-upload/dto/file-upload.dto.d.ts.map +1 -0
  618. package/dist/modules/file-upload/dto/file-upload.dto.js +441 -0
  619. package/dist/modules/file-upload/dto/file-upload.dto.js.map +1 -0
  620. package/dist/modules/file-upload/entities/index.d.ts +3 -0
  621. package/dist/modules/file-upload/entities/index.d.ts.map +1 -0
  622. package/dist/modules/file-upload/entities/index.js +19 -0
  623. package/dist/modules/file-upload/entities/index.js.map +1 -0
  624. package/dist/modules/file-upload/entities/pending-file-upload.entity.d.ts +12 -0
  625. package/dist/modules/file-upload/entities/pending-file-upload.entity.d.ts.map +1 -0
  626. package/dist/modules/file-upload/entities/pending-file-upload.entity.js +55 -0
  627. package/dist/modules/file-upload/entities/pending-file-upload.entity.js.map +1 -0
  628. package/dist/modules/file-upload/entities/uploaded-file.entity.d.ts +19 -0
  629. package/dist/modules/file-upload/entities/uploaded-file.entity.d.ts.map +1 -0
  630. package/dist/modules/file-upload/entities/uploaded-file.entity.js +82 -0
  631. package/dist/modules/file-upload/entities/uploaded-file.entity.js.map +1 -0
  632. package/dist/modules/file-upload/file-upload.manifest.d.ts +8 -0
  633. package/dist/modules/file-upload/file-upload.manifest.d.ts.map +1 -0
  634. package/dist/modules/file-upload/file-upload.manifest.js +31 -0
  635. package/dist/modules/file-upload/file-upload.manifest.js.map +1 -0
  636. package/dist/modules/file-upload/file-upload.module.d.ts +3 -0
  637. package/dist/modules/file-upload/file-upload.module.d.ts.map +1 -0
  638. package/dist/modules/file-upload/file-upload.module.js +39 -0
  639. package/dist/modules/file-upload/file-upload.module.js.map +1 -0
  640. package/dist/modules/file-upload/index.d.ts +7 -0
  641. package/dist/modules/file-upload/index.d.ts.map +1 -0
  642. package/dist/modules/file-upload/index.js +23 -0
  643. package/dist/modules/file-upload/index.js.map +1 -0
  644. package/dist/modules/file-upload/interceptors/disk-file.interceptor.d.ts +3 -0
  645. package/dist/modules/file-upload/interceptors/disk-file.interceptor.d.ts.map +1 -0
  646. package/dist/modules/file-upload/interceptors/disk-file.interceptor.js +30 -0
  647. package/dist/modules/file-upload/interceptors/disk-file.interceptor.js.map +1 -0
  648. package/dist/modules/file-upload/interfaces/file-scan.service.interface.d.ts +11 -0
  649. package/dist/modules/file-upload/interfaces/file-scan.service.interface.d.ts.map +1 -0
  650. package/dist/modules/file-upload/interfaces/file-scan.service.interface.js +10 -0
  651. package/dist/modules/file-upload/interfaces/file-scan.service.interface.js.map +1 -0
  652. package/dist/modules/file-upload/services/file-upload.service.d.ts +82 -0
  653. package/dist/modules/file-upload/services/file-upload.service.d.ts.map +1 -0
  654. package/dist/modules/file-upload/services/file-upload.service.js +639 -0
  655. package/dist/modules/file-upload/services/file-upload.service.js.map +1 -0
  656. package/dist/modules/file-upload/services/noop-file-scan.service.d.ts +10 -0
  657. package/dist/modules/file-upload/services/noop-file-scan.service.d.ts.map +1 -0
  658. package/dist/modules/file-upload/services/noop-file-scan.service.js +22 -0
  659. package/dist/modules/file-upload/services/noop-file-scan.service.js.map +1 -0
  660. package/dist/modules/file-upload/services/r2-storage.service.d.ts +41 -0
  661. package/dist/modules/file-upload/services/r2-storage.service.d.ts.map +1 -0
  662. package/dist/modules/file-upload/services/r2-storage.service.js +171 -0
  663. package/dist/modules/file-upload/services/r2-storage.service.js.map +1 -0
  664. package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts +16 -0
  665. package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts.map +1 -0
  666. package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js +73 -0
  667. package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js.map +1 -0
  668. package/dist/modules/file-upload/utils/file-payload.util.d.ts +21 -0
  669. package/dist/modules/file-upload/utils/file-payload.util.d.ts.map +1 -0
  670. package/dist/modules/file-upload/utils/file-payload.util.js +75 -0
  671. package/dist/modules/file-upload/utils/file-payload.util.js.map +1 -0
  672. package/dist/modules/file-upload/utils/file-sniff.util.d.ts +7 -0
  673. package/dist/modules/file-upload/utils/file-sniff.util.d.ts.map +1 -0
  674. package/dist/modules/file-upload/utils/file-sniff.util.js +70 -0
  675. package/dist/modules/file-upload/utils/file-sniff.util.js.map +1 -0
  676. package/dist/modules/file-upload/utils/filename.util.d.ts +6 -0
  677. package/dist/modules/file-upload/utils/filename.util.d.ts.map +1 -0
  678. package/dist/modules/file-upload/utils/filename.util.js +20 -0
  679. package/dist/modules/file-upload/utils/filename.util.js.map +1 -0
  680. package/dist/modules/file-upload/utils/image-dimension.validator.d.ts +3 -0
  681. package/dist/modules/file-upload/utils/image-dimension.validator.d.ts.map +1 -0
  682. package/dist/modules/file-upload/utils/image-dimension.validator.js +29 -0
  683. package/dist/modules/file-upload/utils/image-dimension.validator.js.map +1 -0
  684. package/dist/modules/file-upload/utils/image-optimize.util.d.ts +11 -0
  685. package/dist/modules/file-upload/utils/image-optimize.util.d.ts.map +1 -0
  686. package/dist/modules/file-upload/utils/image-optimize.util.js +42 -0
  687. package/dist/modules/file-upload/utils/image-optimize.util.js.map +1 -0
  688. package/dist/modules/file-upload/utils/office-zip.validator.d.ts +9 -0
  689. package/dist/modules/file-upload/utils/office-zip.validator.d.ts.map +1 -0
  690. package/dist/modules/file-upload/utils/office-zip.validator.js +31 -0
  691. package/dist/modules/file-upload/utils/office-zip.validator.js.map +1 -0
  692. package/dist/modules/file-upload/utils/upload-category.validator.d.ts +14 -0
  693. package/dist/modules/file-upload/utils/upload-category.validator.d.ts.map +1 -0
  694. package/dist/modules/file-upload/utils/upload-category.validator.js +113 -0
  695. package/dist/modules/file-upload/utils/upload-category.validator.js.map +1 -0
  696. package/dist/modules/health/health.controller.d.ts +31 -0
  697. package/dist/modules/health/health.controller.d.ts.map +1 -0
  698. package/dist/modules/health/health.controller.js +189 -0
  699. package/dist/modules/health/health.controller.js.map +1 -0
  700. package/dist/modules/health/health.module.d.ts +3 -0
  701. package/dist/modules/health/health.module.d.ts.map +1 -0
  702. package/dist/modules/health/health.module.js +35 -0
  703. package/dist/modules/health/health.module.js.map +1 -0
  704. package/dist/modules/invitations/controllers/invitations.controller.d.ts +20 -0
  705. package/dist/modules/invitations/controllers/invitations.controller.d.ts.map +1 -0
  706. package/dist/modules/invitations/controllers/invitations.controller.js +124 -0
  707. package/dist/modules/invitations/controllers/invitations.controller.js.map +1 -0
  708. package/dist/modules/invitations/dto/invitation.dto.d.ts +24 -0
  709. package/dist/modules/invitations/dto/invitation.dto.d.ts.map +1 -0
  710. package/dist/modules/invitations/dto/invitation.dto.js +150 -0
  711. package/dist/modules/invitations/dto/invitation.dto.js.map +1 -0
  712. package/dist/modules/invitations/entities/invitation.entity.d.ts +41 -0
  713. package/dist/modules/invitations/entities/invitation.entity.d.ts.map +1 -0
  714. package/dist/modules/invitations/entities/invitation.entity.js +154 -0
  715. package/dist/modules/invitations/entities/invitation.entity.js.map +1 -0
  716. package/dist/modules/invitations/index.d.ts +6 -0
  717. package/dist/modules/invitations/index.d.ts.map +1 -0
  718. package/dist/modules/invitations/index.js +22 -0
  719. package/dist/modules/invitations/index.js.map +1 -0
  720. package/dist/modules/invitations/invitations.manifest.d.ts +9 -0
  721. package/dist/modules/invitations/invitations.manifest.d.ts.map +1 -0
  722. package/dist/modules/invitations/invitations.manifest.js +37 -0
  723. package/dist/modules/invitations/invitations.manifest.js.map +1 -0
  724. package/dist/modules/invitations/invitations.module.d.ts +3 -0
  725. package/dist/modules/invitations/invitations.module.d.ts.map +1 -0
  726. package/dist/modules/invitations/invitations.module.js +26 -0
  727. package/dist/modules/invitations/invitations.module.js.map +1 -0
  728. package/dist/modules/invitations/services/invitations.service.d.ts +40 -0
  729. package/dist/modules/invitations/services/invitations.service.d.ts.map +1 -0
  730. package/dist/modules/invitations/services/invitations.service.js +277 -0
  731. package/dist/modules/invitations/services/invitations.service.js.map +1 -0
  732. package/dist/modules/jobs/constants/delivery-errors.d.ts +6 -0
  733. package/dist/modules/jobs/constants/delivery-errors.d.ts.map +1 -0
  734. package/dist/modules/jobs/constants/delivery-errors.js +9 -0
  735. package/dist/modules/jobs/constants/delivery-errors.js.map +1 -0
  736. package/dist/modules/jobs/email/email.module.d.ts +3 -0
  737. package/dist/modules/jobs/email/email.module.d.ts.map +1 -0
  738. package/dist/modules/jobs/email/email.module.js +21 -0
  739. package/dist/modules/jobs/email/email.module.js.map +1 -0
  740. package/dist/modules/jobs/email/email.types.d.ts +23 -0
  741. package/dist/modules/jobs/email/email.types.d.ts.map +1 -0
  742. package/dist/modules/jobs/email/email.types.js +20 -0
  743. package/dist/modules/jobs/email/email.types.js.map +1 -0
  744. package/dist/modules/jobs/email/index.d.ts +4 -0
  745. package/dist/modules/jobs/email/index.d.ts.map +1 -0
  746. package/dist/modules/jobs/email/index.js +20 -0
  747. package/dist/modules/jobs/email/index.js.map +1 -0
  748. package/dist/modules/jobs/email/smtp-email.service.d.ts +22 -0
  749. package/dist/modules/jobs/email/smtp-email.service.d.ts.map +1 -0
  750. package/dist/modules/jobs/email/smtp-email.service.js +144 -0
  751. package/dist/modules/jobs/email/smtp-email.service.js.map +1 -0
  752. package/dist/modules/jobs/index.d.ts +3 -0
  753. package/dist/modules/jobs/index.d.ts.map +1 -0
  754. package/dist/modules/jobs/index.js +6 -0
  755. package/dist/modules/jobs/index.js.map +1 -0
  756. package/dist/modules/jobs/jobs-disabled.notifier.d.ts +8 -0
  757. package/dist/modules/jobs/jobs-disabled.notifier.d.ts.map +1 -0
  758. package/dist/modules/jobs/jobs-disabled.notifier.js +31 -0
  759. package/dist/modules/jobs/jobs-disabled.notifier.js.map +1 -0
  760. package/dist/modules/jobs/jobs.module.d.ts +5 -0
  761. package/dist/modules/jobs/jobs.module.d.ts.map +1 -0
  762. package/dist/modules/jobs/jobs.module.js +61 -0
  763. package/dist/modules/jobs/jobs.module.js.map +1 -0
  764. package/dist/modules/jobs/processors/email.processor.d.ts +14 -0
  765. package/dist/modules/jobs/processors/email.processor.d.ts.map +1 -0
  766. package/dist/modules/jobs/processors/email.processor.js +70 -0
  767. package/dist/modules/jobs/processors/email.processor.js.map +1 -0
  768. package/dist/modules/jobs/processors/jobs.processor.d.ts +24 -0
  769. package/dist/modules/jobs/processors/jobs.processor.d.ts.map +1 -0
  770. package/dist/modules/jobs/processors/jobs.processor.js +125 -0
  771. package/dist/modules/jobs/processors/jobs.processor.js.map +1 -0
  772. package/dist/modules/jobs/queues/jobs.queue.d.ts +63 -0
  773. package/dist/modules/jobs/queues/jobs.queue.d.ts.map +1 -0
  774. package/dist/modules/jobs/queues/jobs.queue.js +92 -0
  775. package/dist/modules/jobs/queues/jobs.queue.js.map +1 -0
  776. package/dist/modules/jobs/queues/queue-names.d.ts +12 -0
  777. package/dist/modules/jobs/queues/queue-names.d.ts.map +1 -0
  778. package/dist/modules/jobs/queues/queue-names.js +14 -0
  779. package/dist/modules/jobs/queues/queue-names.js.map +1 -0
  780. package/dist/modules/jobs/sms/index.d.ts +4 -0
  781. package/dist/modules/jobs/sms/index.d.ts.map +1 -0
  782. package/dist/modules/jobs/sms/index.js +20 -0
  783. package/dist/modules/jobs/sms/index.js.map +1 -0
  784. package/dist/modules/jobs/sms/providers/index.d.ts +5 -0
  785. package/dist/modules/jobs/sms/providers/index.d.ts.map +1 -0
  786. package/dist/modules/jobs/sms/providers/index.js +21 -0
  787. package/dist/modules/jobs/sms/providers/index.js.map +1 -0
  788. package/dist/modules/jobs/sms/providers/infobip.provider.d.ts +11 -0
  789. package/dist/modules/jobs/sms/providers/infobip.provider.d.ts.map +1 -0
  790. package/dist/modules/jobs/sms/providers/infobip.provider.js +87 -0
  791. package/dist/modules/jobs/sms/providers/infobip.provider.js.map +1 -0
  792. package/dist/modules/jobs/sms/providers/smart-sms.provider.d.ts +12 -0
  793. package/dist/modules/jobs/sms/providers/smart-sms.provider.d.ts.map +1 -0
  794. package/dist/modules/jobs/sms/providers/smart-sms.provider.js +84 -0
  795. package/dist/modules/jobs/sms/providers/smart-sms.provider.js.map +1 -0
  796. package/dist/modules/jobs/sms/providers/termii.provider.d.ts +12 -0
  797. package/dist/modules/jobs/sms/providers/termii.provider.d.ts.map +1 -0
  798. package/dist/modules/jobs/sms/providers/termii.provider.js +82 -0
  799. package/dist/modules/jobs/sms/providers/termii.provider.js.map +1 -0
  800. package/dist/modules/jobs/sms/providers/twilio.provider.d.ts +11 -0
  801. package/dist/modules/jobs/sms/providers/twilio.provider.d.ts.map +1 -0
  802. package/dist/modules/jobs/sms/providers/twilio.provider.js +85 -0
  803. package/dist/modules/jobs/sms/providers/twilio.provider.js.map +1 -0
  804. package/dist/modules/jobs/sms/sms-provider.interface.d.ts +26 -0
  805. package/dist/modules/jobs/sms/sms-provider.interface.d.ts.map +1 -0
  806. package/dist/modules/jobs/sms/sms-provider.interface.js +27 -0
  807. package/dist/modules/jobs/sms/sms-provider.interface.js.map +1 -0
  808. package/dist/modules/jobs/sms/sms-proxy.service.d.ts +27 -0
  809. package/dist/modules/jobs/sms/sms-proxy.service.d.ts.map +1 -0
  810. package/dist/modules/jobs/sms/sms-proxy.service.js +90 -0
  811. package/dist/modules/jobs/sms/sms-proxy.service.js.map +1 -0
  812. package/dist/modules/jobs/sms/sms.module.d.ts +3 -0
  813. package/dist/modules/jobs/sms/sms.module.d.ts.map +1 -0
  814. package/dist/modules/jobs/sms/sms.module.js +33 -0
  815. package/dist/modules/jobs/sms/sms.module.js.map +1 -0
  816. package/dist/modules/jobs/templates/email-template.registry.d.ts +25 -0
  817. package/dist/modules/jobs/templates/email-template.registry.d.ts.map +1 -0
  818. package/dist/modules/jobs/templates/email-template.registry.js +93 -0
  819. package/dist/modules/jobs/templates/email-template.registry.js.map +1 -0
  820. package/dist/modules/jobs/templates/otp-sms.template.d.ts +5 -0
  821. package/dist/modules/jobs/templates/otp-sms.template.d.ts.map +1 -0
  822. package/dist/modules/jobs/templates/otp-sms.template.js +10 -0
  823. package/dist/modules/jobs/templates/otp-sms.template.js.map +1 -0
  824. package/dist/modules/jobs/templates/render-email-template.d.ts +7 -0
  825. package/dist/modules/jobs/templates/render-email-template.d.ts.map +1 -0
  826. package/dist/modules/jobs/templates/render-email-template.js +14 -0
  827. package/dist/modules/jobs/templates/render-email-template.js.map +1 -0
  828. package/dist/modules/jobs/utils/queue-errors.util.d.ts +2 -0
  829. package/dist/modules/jobs/utils/queue-errors.util.d.ts.map +1 -0
  830. package/dist/modules/jobs/utils/queue-errors.util.js +8 -0
  831. package/dist/modules/jobs/utils/queue-errors.util.js.map +1 -0
  832. package/dist/modules/notifications/controllers/index.d.ts +2 -0
  833. package/dist/modules/notifications/controllers/index.d.ts.map +1 -0
  834. package/dist/modules/notifications/controllers/index.js +18 -0
  835. package/dist/modules/notifications/controllers/index.js.map +1 -0
  836. package/dist/modules/notifications/controllers/notifications.controller.d.ts +62 -0
  837. package/dist/modules/notifications/controllers/notifications.controller.d.ts.map +1 -0
  838. package/dist/modules/notifications/controllers/notifications.controller.js +179 -0
  839. package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -0
  840. package/dist/modules/notifications/dto/device.dto.d.ts +10 -0
  841. package/dist/modules/notifications/dto/device.dto.d.ts.map +1 -0
  842. package/dist/modules/notifications/dto/device.dto.js +42 -0
  843. package/dist/modules/notifications/dto/device.dto.js.map +1 -0
  844. package/dist/modules/notifications/dto/event-types.dto.d.ts +6 -0
  845. package/dist/modules/notifications/dto/event-types.dto.d.ts.map +1 -0
  846. package/dist/modules/notifications/dto/event-types.dto.js +10 -0
  847. package/dist/modules/notifications/dto/event-types.dto.js.map +1 -0
  848. package/dist/modules/notifications/dto/fcm.dto.d.ts +14 -0
  849. package/dist/modules/notifications/dto/fcm.dto.d.ts.map +1 -0
  850. package/dist/modules/notifications/dto/fcm.dto.js +3 -0
  851. package/dist/modules/notifications/dto/fcm.dto.js.map +1 -0
  852. package/dist/modules/notifications/dto/index.d.ts +6 -0
  853. package/dist/modules/notifications/dto/index.d.ts.map +1 -0
  854. package/dist/modules/notifications/dto/index.js +22 -0
  855. package/dist/modules/notifications/dto/index.js.map +1 -0
  856. package/dist/modules/notifications/dto/notification-query.dto.d.ts +8 -0
  857. package/dist/modules/notifications/dto/notification-query.dto.d.ts.map +1 -0
  858. package/dist/modules/notifications/dto/notification-query.dto.js +48 -0
  859. package/dist/modules/notifications/dto/notification-query.dto.js.map +1 -0
  860. package/dist/modules/notifications/dto/user-device-token.dto.d.ts +9 -0
  861. package/dist/modules/notifications/dto/user-device-token.dto.d.ts.map +1 -0
  862. package/dist/modules/notifications/dto/user-device-token.dto.js +3 -0
  863. package/dist/modules/notifications/dto/user-device-token.dto.js.map +1 -0
  864. package/dist/modules/notifications/entities/device-token.entity.d.ts +17 -0
  865. package/dist/modules/notifications/entities/device-token.entity.d.ts.map +1 -0
  866. package/dist/modules/notifications/entities/device-token.entity.js +69 -0
  867. package/dist/modules/notifications/entities/device-token.entity.js.map +1 -0
  868. package/dist/modules/notifications/entities/index.d.ts +3 -0
  869. package/dist/modules/notifications/entities/index.d.ts.map +1 -0
  870. package/dist/modules/notifications/entities/index.js +19 -0
  871. package/dist/modules/notifications/entities/index.js.map +1 -0
  872. package/dist/modules/notifications/entities/notification.entity.d.ts +21 -0
  873. package/dist/modules/notifications/entities/notification.entity.d.ts.map +1 -0
  874. package/dist/modules/notifications/entities/notification.entity.js +78 -0
  875. package/dist/modules/notifications/entities/notification.entity.js.map +1 -0
  876. package/dist/modules/notifications/firebase.module.d.ts +8 -0
  877. package/dist/modules/notifications/firebase.module.d.ts.map +1 -0
  878. package/dist/modules/notifications/firebase.module.js +30 -0
  879. package/dist/modules/notifications/firebase.module.js.map +1 -0
  880. package/dist/modules/notifications/notifications.manifest.d.ts +11 -0
  881. package/dist/modules/notifications/notifications.manifest.d.ts.map +1 -0
  882. package/dist/modules/notifications/notifications.manifest.js +49 -0
  883. package/dist/modules/notifications/notifications.manifest.js.map +1 -0
  884. package/dist/modules/notifications/notifications.module.d.ts +3 -0
  885. package/dist/modules/notifications/notifications.module.d.ts.map +1 -0
  886. package/dist/modules/notifications/notifications.module.js +32 -0
  887. package/dist/modules/notifications/notifications.module.js.map +1 -0
  888. package/dist/modules/notifications/services/fcm.service.d.ts +26 -0
  889. package/dist/modules/notifications/services/fcm.service.d.ts.map +1 -0
  890. package/dist/modules/notifications/services/fcm.service.js +217 -0
  891. package/dist/modules/notifications/services/fcm.service.js.map +1 -0
  892. package/dist/modules/notifications/services/firebase.service.d.ts +36 -0
  893. package/dist/modules/notifications/services/firebase.service.d.ts.map +1 -0
  894. package/dist/modules/notifications/services/firebase.service.js +100 -0
  895. package/dist/modules/notifications/services/firebase.service.js.map +1 -0
  896. package/dist/modules/notifications/services/index.d.ts +4 -0
  897. package/dist/modules/notifications/services/index.d.ts.map +1 -0
  898. package/dist/modules/notifications/services/index.js +20 -0
  899. package/dist/modules/notifications/services/index.js.map +1 -0
  900. package/dist/modules/notifications/services/notifications.service.d.ts +46 -0
  901. package/dist/modules/notifications/services/notifications.service.d.ts.map +1 -0
  902. package/dist/modules/notifications/services/notifications.service.js +179 -0
  903. package/dist/modules/notifications/services/notifications.service.js.map +1 -0
  904. package/dist/modules/observability/context/job-context.util.d.ts +9 -0
  905. package/dist/modules/observability/context/job-context.util.d.ts.map +1 -0
  906. package/dist/modules/observability/context/job-context.util.js +56 -0
  907. package/dist/modules/observability/context/job-context.util.js.map +1 -0
  908. package/dist/modules/observability/context/observability-context.middleware.d.ts +9 -0
  909. package/dist/modules/observability/context/observability-context.middleware.d.ts.map +1 -0
  910. package/dist/modules/observability/context/observability-context.middleware.js +41 -0
  911. package/dist/modules/observability/context/observability-context.middleware.js.map +1 -0
  912. package/dist/modules/observability/context/observability-context.store.d.ts +9 -0
  913. package/dist/modules/observability/context/observability-context.store.d.ts.map +1 -0
  914. package/dist/modules/observability/context/observability-context.store.js +34 -0
  915. package/dist/modules/observability/context/observability-context.store.js.map +1 -0
  916. package/dist/modules/observability/context/request-id.util.d.ts +4 -0
  917. package/dist/modules/observability/context/request-id.util.d.ts.map +1 -0
  918. package/dist/modules/observability/context/request-id.util.js +17 -0
  919. package/dist/modules/observability/context/request-id.util.js.map +1 -0
  920. package/dist/modules/observability/controllers/metrics.controller.d.ts +8 -0
  921. package/dist/modules/observability/controllers/metrics.controller.d.ts.map +1 -0
  922. package/dist/modules/observability/controllers/metrics.controller.js +56 -0
  923. package/dist/modules/observability/controllers/metrics.controller.js.map +1 -0
  924. package/dist/modules/observability/errors/error-reporter.interface.d.ts +18 -0
  925. package/dist/modules/observability/errors/error-reporter.interface.d.ts.map +1 -0
  926. package/dist/modules/observability/errors/error-reporter.interface.js +5 -0
  927. package/dist/modules/observability/errors/error-reporter.interface.js.map +1 -0
  928. package/dist/modules/observability/errors/error-reporter.service.d.ts +8 -0
  929. package/dist/modules/observability/errors/error-reporter.service.d.ts.map +1 -0
  930. package/dist/modules/observability/errors/error-reporter.service.js +36 -0
  931. package/dist/modules/observability/errors/error-reporter.service.js.map +1 -0
  932. package/dist/modules/observability/errors/noop-error-reporter.d.ts +6 -0
  933. package/dist/modules/observability/errors/noop-error-reporter.d.ts.map +1 -0
  934. package/dist/modules/observability/errors/noop-error-reporter.js +13 -0
  935. package/dist/modules/observability/errors/noop-error-reporter.js.map +1 -0
  936. package/dist/modules/observability/errors/sentry-error-reporter.d.ts +8 -0
  937. package/dist/modules/observability/errors/sentry-error-reporter.d.ts.map +1 -0
  938. package/dist/modules/observability/errors/sentry-error-reporter.js +88 -0
  939. package/dist/modules/observability/errors/sentry-error-reporter.js.map +1 -0
  940. package/dist/modules/observability/errors/sentry.bootstrap.d.ts +10 -0
  941. package/dist/modules/observability/errors/sentry.bootstrap.d.ts.map +1 -0
  942. package/dist/modules/observability/errors/sentry.bootstrap.js +63 -0
  943. package/dist/modules/observability/errors/sentry.bootstrap.js.map +1 -0
  944. package/dist/modules/observability/guards/metrics-access.guard.d.ts +8 -0
  945. package/dist/modules/observability/guards/metrics-access.guard.d.ts.map +1 -0
  946. package/dist/modules/observability/guards/metrics-access.guard.js +42 -0
  947. package/dist/modules/observability/guards/metrics-access.guard.js.map +1 -0
  948. package/dist/modules/observability/index.d.ts +23 -0
  949. package/dist/modules/observability/index.d.ts.map +1 -0
  950. package/dist/modules/observability/index.js +46 -0
  951. package/dist/modules/observability/index.js.map +1 -0
  952. package/dist/modules/observability/interceptors/observability-user.interceptor.d.ts +10 -0
  953. package/dist/modules/observability/interceptors/observability-user.interceptor.d.ts.map +1 -0
  954. package/dist/modules/observability/interceptors/observability-user.interceptor.js +34 -0
  955. package/dist/modules/observability/interceptors/observability-user.interceptor.js.map +1 -0
  956. package/dist/modules/observability/interceptors/structured-logging.interceptor.d.ts +13 -0
  957. package/dist/modules/observability/interceptors/structured-logging.interceptor.d.ts.map +1 -0
  958. package/dist/modules/observability/interceptors/structured-logging.interceptor.js +76 -0
  959. package/dist/modules/observability/interceptors/structured-logging.interceptor.js.map +1 -0
  960. package/dist/modules/observability/logging/pii-redaction.util.d.ts +4 -0
  961. package/dist/modules/observability/logging/pii-redaction.util.d.ts.map +1 -0
  962. package/dist/modules/observability/logging/pii-redaction.util.js +59 -0
  963. package/dist/modules/observability/logging/pii-redaction.util.js.map +1 -0
  964. package/dist/modules/observability/logging/structured-log-writer.service.d.ts +18 -0
  965. package/dist/modules/observability/logging/structured-log-writer.service.d.ts.map +1 -0
  966. package/dist/modules/observability/logging/structured-log-writer.service.js +45 -0
  967. package/dist/modules/observability/logging/structured-log-writer.service.js.map +1 -0
  968. package/dist/modules/observability/logging/structured-logger.service.d.ts +29 -0
  969. package/dist/modules/observability/logging/structured-logger.service.d.ts.map +1 -0
  970. package/dist/modules/observability/logging/structured-logger.service.js +155 -0
  971. package/dist/modules/observability/logging/structured-logger.service.js.map +1 -0
  972. package/dist/modules/observability/metrics/bullmq-failed-job.listener.d.ts +15 -0
  973. package/dist/modules/observability/metrics/bullmq-failed-job.listener.d.ts.map +1 -0
  974. package/dist/modules/observability/metrics/bullmq-failed-job.listener.js +78 -0
  975. package/dist/modules/observability/metrics/bullmq-failed-job.listener.js.map +1 -0
  976. package/dist/modules/observability/metrics/job-observability.runner.d.ts +17 -0
  977. package/dist/modules/observability/metrics/job-observability.runner.d.ts.map +1 -0
  978. package/dist/modules/observability/metrics/job-observability.runner.js +98 -0
  979. package/dist/modules/observability/metrics/job-observability.runner.js.map +1 -0
  980. package/dist/modules/observability/metrics/metrics.service.d.ts +35 -0
  981. package/dist/modules/observability/metrics/metrics.service.d.ts.map +1 -0
  982. package/dist/modules/observability/metrics/metrics.service.js +165 -0
  983. package/dist/modules/observability/metrics/metrics.service.js.map +1 -0
  984. package/dist/modules/observability/metrics/queue-metrics.collector.d.ts +11 -0
  985. package/dist/modules/observability/metrics/queue-metrics.collector.d.ts.map +1 -0
  986. package/dist/modules/observability/metrics/queue-metrics.collector.js +65 -0
  987. package/dist/modules/observability/metrics/queue-metrics.collector.js.map +1 -0
  988. package/dist/modules/observability/observability-lifecycle.service.d.ts +5 -0
  989. package/dist/modules/observability/observability-lifecycle.service.d.ts.map +1 -0
  990. package/dist/modules/observability/observability-lifecycle.service.js +23 -0
  991. package/dist/modules/observability/observability-lifecycle.service.js.map +1 -0
  992. package/dist/modules/observability/observability.module.d.ts +5 -0
  993. package/dist/modules/observability/observability.module.d.ts.map +1 -0
  994. package/dist/modules/observability/observability.module.js +108 -0
  995. package/dist/modules/observability/observability.module.js.map +1 -0
  996. package/dist/modules/observability/tracing/tracing.bootstrap.d.ts +9 -0
  997. package/dist/modules/observability/tracing/tracing.bootstrap.d.ts.map +1 -0
  998. package/dist/modules/observability/tracing/tracing.bootstrap.js +52 -0
  999. package/dist/modules/observability/tracing/tracing.bootstrap.js.map +1 -0
  1000. package/dist/modules/observability/tracing/tracing.service.d.ts +12 -0
  1001. package/dist/modules/observability/tracing/tracing.service.d.ts.map +1 -0
  1002. package/dist/modules/observability/tracing/tracing.service.js +79 -0
  1003. package/dist/modules/observability/tracing/tracing.service.js.map +1 -0
  1004. package/dist/modules/observability/tracing/w3c-trace.util.d.ts +9 -0
  1005. package/dist/modules/observability/tracing/w3c-trace.util.d.ts.map +1 -0
  1006. package/dist/modules/observability/tracing/w3c-trace.util.js +51 -0
  1007. package/dist/modules/observability/tracing/w3c-trace.util.js.map +1 -0
  1008. package/dist/modules/observability/types/job-context.d.ts +8 -0
  1009. package/dist/modules/observability/types/job-context.d.ts.map +1 -0
  1010. package/dist/modules/observability/types/job-context.js +3 -0
  1011. package/dist/modules/observability/types/job-context.js.map +1 -0
  1012. package/dist/modules/observability/types/observability-context.d.ts +10 -0
  1013. package/dist/modules/observability/types/observability-context.d.ts.map +1 -0
  1014. package/dist/modules/observability/types/observability-context.js +3 -0
  1015. package/dist/modules/observability/types/observability-context.js.map +1 -0
  1016. package/dist/modules/observability/types/structured-log.types.d.ts +28 -0
  1017. package/dist/modules/observability/types/structured-log.types.d.ts.map +1 -0
  1018. package/dist/modules/observability/types/structured-log.types.js +3 -0
  1019. package/dist/modules/observability/types/structured-log.types.js.map +1 -0
  1020. package/dist/modules/observability/utils/ip-allowlist.util.d.ts +3 -0
  1021. package/dist/modules/observability/utils/ip-allowlist.util.d.ts.map +1 -0
  1022. package/dist/modules/observability/utils/ip-allowlist.util.js +51 -0
  1023. package/dist/modules/observability/utils/ip-allowlist.util.js.map +1 -0
  1024. package/dist/modules/observability/utils/route-template.util.d.ts +4 -0
  1025. package/dist/modules/observability/utils/route-template.util.d.ts.map +1 -0
  1026. package/dist/modules/observability/utils/route-template.util.js +23 -0
  1027. package/dist/modules/observability/utils/route-template.util.js.map +1 -0
  1028. package/dist/modules/observability/utils/status-class.util.d.ts +3 -0
  1029. package/dist/modules/observability/utils/status-class.util.d.ts.map +1 -0
  1030. package/dist/modules/observability/utils/status-class.util.js +16 -0
  1031. package/dist/modules/observability/utils/status-class.util.js.map +1 -0
  1032. package/dist/modules/otp/constants/otp.constants.d.ts +15 -0
  1033. package/dist/modules/otp/constants/otp.constants.d.ts.map +1 -0
  1034. package/dist/modules/otp/constants/otp.constants.js +30 -0
  1035. package/dist/modules/otp/constants/otp.constants.js.map +1 -0
  1036. package/dist/modules/otp/email/email-provider.interface.d.ts +29 -0
  1037. package/dist/modules/otp/email/email-provider.interface.d.ts.map +1 -0
  1038. package/dist/modules/otp/email/email-provider.interface.js +26 -0
  1039. package/dist/modules/otp/email/email-provider.interface.js.map +1 -0
  1040. package/dist/modules/otp/email/email-proxy.service.d.ts +26 -0
  1041. package/dist/modules/otp/email/email-proxy.service.d.ts.map +1 -0
  1042. package/dist/modules/otp/email/email-proxy.service.js +78 -0
  1043. package/dist/modules/otp/email/email-proxy.service.js.map +1 -0
  1044. package/dist/modules/otp/email/email.module.d.ts +3 -0
  1045. package/dist/modules/otp/email/email.module.d.ts.map +1 -0
  1046. package/dist/modules/otp/email/email.module.js +21 -0
  1047. package/dist/modules/otp/email/email.module.js.map +1 -0
  1048. package/dist/modules/otp/email/email.types.d.ts +23 -0
  1049. package/dist/modules/otp/email/email.types.d.ts.map +1 -0
  1050. package/dist/modules/otp/email/email.types.js +20 -0
  1051. package/dist/modules/otp/email/email.types.js.map +1 -0
  1052. package/dist/modules/otp/email/index.d.ts +4 -0
  1053. package/dist/modules/otp/email/index.d.ts.map +1 -0
  1054. package/dist/modules/otp/email/index.js +20 -0
  1055. package/dist/modules/otp/email/index.js.map +1 -0
  1056. package/dist/modules/otp/email/providers/index.d.ts +2 -0
  1057. package/dist/modules/otp/email/providers/index.d.ts.map +1 -0
  1058. package/dist/modules/otp/email/providers/index.js +18 -0
  1059. package/dist/modules/otp/email/providers/index.js.map +1 -0
  1060. package/dist/modules/otp/email/providers/mailgun.provider.d.ts +10 -0
  1061. package/dist/modules/otp/email/providers/mailgun.provider.d.ts.map +1 -0
  1062. package/dist/modules/otp/email/providers/mailgun.provider.js +60 -0
  1063. package/dist/modules/otp/email/providers/mailgun.provider.js.map +1 -0
  1064. package/dist/modules/otp/email/providers/resend.provider.d.ts +10 -0
  1065. package/dist/modules/otp/email/providers/resend.provider.d.ts.map +1 -0
  1066. package/dist/modules/otp/email/providers/resend.provider.js +58 -0
  1067. package/dist/modules/otp/email/providers/resend.provider.js.map +1 -0
  1068. package/dist/modules/otp/email/providers/sendgrid.provider.d.ts +10 -0
  1069. package/dist/modules/otp/email/providers/sendgrid.provider.d.ts.map +1 -0
  1070. package/dist/modules/otp/email/providers/sendgrid.provider.js +59 -0
  1071. package/dist/modules/otp/email/providers/sendgrid.provider.js.map +1 -0
  1072. package/dist/modules/otp/email/providers/smtp.provider.d.ts +22 -0
  1073. package/dist/modules/otp/email/providers/smtp.provider.d.ts.map +1 -0
  1074. package/dist/modules/otp/email/providers/smtp.provider.js +130 -0
  1075. package/dist/modules/otp/email/providers/smtp.provider.js.map +1 -0
  1076. package/dist/modules/otp/email/smtp-email.service.d.ts +21 -0
  1077. package/dist/modules/otp/email/smtp-email.service.d.ts.map +1 -0
  1078. package/dist/modules/otp/email/smtp-email.service.js +126 -0
  1079. package/dist/modules/otp/email/smtp-email.service.js.map +1 -0
  1080. package/dist/modules/otp/index.d.ts +5 -0
  1081. package/dist/modules/otp/index.d.ts.map +1 -0
  1082. package/dist/modules/otp/index.js +21 -0
  1083. package/dist/modules/otp/index.js.map +1 -0
  1084. package/dist/modules/otp/interfaces/otp.service.interface.d.ts +89 -0
  1085. package/dist/modules/otp/interfaces/otp.service.interface.d.ts.map +1 -0
  1086. package/dist/modules/otp/interfaces/otp.service.interface.js +7 -0
  1087. package/dist/modules/otp/interfaces/otp.service.interface.js.map +1 -0
  1088. package/dist/modules/otp/otp.module.d.ts +3 -0
  1089. package/dist/modules/otp/otp.module.d.ts.map +1 -0
  1090. package/dist/modules/otp/otp.module.js +32 -0
  1091. package/dist/modules/otp/otp.module.js.map +1 -0
  1092. package/dist/modules/otp/otp.service.d.ts +40 -0
  1093. package/dist/modules/otp/otp.service.d.ts.map +1 -0
  1094. package/dist/modules/otp/otp.service.js +218 -0
  1095. package/dist/modules/otp/otp.service.js.map +1 -0
  1096. package/dist/modules/otp/services/otp.rate-limiter.d.ts +29 -0
  1097. package/dist/modules/otp/services/otp.rate-limiter.d.ts.map +1 -0
  1098. package/dist/modules/otp/services/otp.rate-limiter.js +88 -0
  1099. package/dist/modules/otp/services/otp.rate-limiter.js.map +1 -0
  1100. package/dist/modules/otp/services/otp.session.store.d.ts +54 -0
  1101. package/dist/modules/otp/services/otp.session.store.d.ts.map +1 -0
  1102. package/dist/modules/otp/services/otp.session.store.js +291 -0
  1103. package/dist/modules/otp/services/otp.session.store.js.map +1 -0
  1104. package/dist/modules/otp/sms/index.d.ts +4 -0
  1105. package/dist/modules/otp/sms/index.d.ts.map +1 -0
  1106. package/dist/modules/otp/sms/index.js +20 -0
  1107. package/dist/modules/otp/sms/index.js.map +1 -0
  1108. package/dist/modules/otp/sms/providers/index.d.ts +5 -0
  1109. package/dist/modules/otp/sms/providers/index.d.ts.map +1 -0
  1110. package/dist/modules/otp/sms/providers/index.js +21 -0
  1111. package/dist/modules/otp/sms/providers/index.js.map +1 -0
  1112. package/dist/modules/otp/sms/providers/infobip.provider.d.ts +10 -0
  1113. package/dist/modules/otp/sms/providers/infobip.provider.d.ts.map +1 -0
  1114. package/dist/modules/otp/sms/providers/infobip.provider.js +62 -0
  1115. package/dist/modules/otp/sms/providers/infobip.provider.js.map +1 -0
  1116. package/dist/modules/otp/sms/providers/smart-sms.provider.d.ts +11 -0
  1117. package/dist/modules/otp/sms/providers/smart-sms.provider.d.ts.map +1 -0
  1118. package/dist/modules/otp/sms/providers/smart-sms.provider.js +57 -0
  1119. package/dist/modules/otp/sms/providers/smart-sms.provider.js.map +1 -0
  1120. package/dist/modules/otp/sms/providers/termii.provider.d.ts +11 -0
  1121. package/dist/modules/otp/sms/providers/termii.provider.d.ts.map +1 -0
  1122. package/dist/modules/otp/sms/providers/termii.provider.js +57 -0
  1123. package/dist/modules/otp/sms/providers/termii.provider.js.map +1 -0
  1124. package/dist/modules/otp/sms/providers/twilio.provider.d.ts +10 -0
  1125. package/dist/modules/otp/sms/providers/twilio.provider.d.ts.map +1 -0
  1126. package/dist/modules/otp/sms/providers/twilio.provider.js +60 -0
  1127. package/dist/modules/otp/sms/providers/twilio.provider.js.map +1 -0
  1128. package/dist/modules/otp/sms/sms-provider.interface.d.ts +26 -0
  1129. package/dist/modules/otp/sms/sms-provider.interface.d.ts.map +1 -0
  1130. package/dist/modules/otp/sms/sms-provider.interface.js +27 -0
  1131. package/dist/modules/otp/sms/sms-provider.interface.js.map +1 -0
  1132. package/dist/modules/otp/sms/sms-proxy.service.d.ts +26 -0
  1133. package/dist/modules/otp/sms/sms-proxy.service.d.ts.map +1 -0
  1134. package/dist/modules/otp/sms/sms-proxy.service.js +78 -0
  1135. package/dist/modules/otp/sms/sms-proxy.service.js.map +1 -0
  1136. package/dist/modules/otp/sms/sms.module.d.ts +3 -0
  1137. package/dist/modules/otp/sms/sms.module.d.ts.map +1 -0
  1138. package/dist/modules/otp/sms/sms.module.js +33 -0
  1139. package/dist/modules/otp/sms/sms.module.js.map +1 -0
  1140. package/dist/modules/otp/utils/otp.utils.d.ts +38 -0
  1141. package/dist/modules/otp/utils/otp.utils.d.ts.map +1 -0
  1142. package/dist/modules/otp/utils/otp.utils.js +99 -0
  1143. package/dist/modules/otp/utils/otp.utils.js.map +1 -0
  1144. package/dist/modules/profile/controllers/profile.controller.d.ts +14 -0
  1145. package/dist/modules/profile/controllers/profile.controller.d.ts.map +1 -0
  1146. package/dist/modules/profile/controllers/profile.controller.js +98 -0
  1147. package/dist/modules/profile/controllers/profile.controller.js.map +1 -0
  1148. package/dist/modules/profile/dto/address.dto.d.ts +9 -0
  1149. package/dist/modules/profile/dto/address.dto.d.ts.map +1 -0
  1150. package/dist/modules/profile/dto/address.dto.js +60 -0
  1151. package/dist/modules/profile/dto/address.dto.js.map +1 -0
  1152. package/dist/modules/profile/dto/create-user-profile.dto.d.ts +35 -0
  1153. package/dist/modules/profile/dto/create-user-profile.dto.d.ts.map +1 -0
  1154. package/dist/modules/profile/dto/create-user-profile.dto.js +195 -0
  1155. package/dist/modules/profile/dto/create-user-profile.dto.js.map +1 -0
  1156. package/dist/modules/profile/dto/user-profile-filter.dto.d.ts +10 -0
  1157. package/dist/modules/profile/dto/user-profile-filter.dto.d.ts.map +1 -0
  1158. package/dist/modules/profile/dto/user-profile-filter.dto.js +68 -0
  1159. package/dist/modules/profile/dto/user-profile-filter.dto.js.map +1 -0
  1160. package/dist/modules/profile/dto/user-profile-response.dto.d.ts +30 -0
  1161. package/dist/modules/profile/dto/user-profile-response.dto.d.ts.map +1 -0
  1162. package/dist/modules/profile/dto/user-profile-response.dto.js +33 -0
  1163. package/dist/modules/profile/dto/user-profile-response.dto.js.map +1 -0
  1164. package/dist/modules/profile/entities/index.d.ts +2 -0
  1165. package/dist/modules/profile/entities/index.d.ts.map +1 -0
  1166. package/dist/modules/profile/entities/index.js +18 -0
  1167. package/dist/modules/profile/entities/index.js.map +1 -0
  1168. package/dist/modules/profile/entities/user-profiles.entity.d.ts +38 -0
  1169. package/dist/modules/profile/entities/user-profiles.entity.d.ts.map +1 -0
  1170. package/dist/modules/profile/entities/user-profiles.entity.js +264 -0
  1171. package/dist/modules/profile/entities/user-profiles.entity.js.map +1 -0
  1172. package/dist/modules/profile/index.d.ts +9 -0
  1173. package/dist/modules/profile/index.d.ts.map +1 -0
  1174. package/dist/modules/profile/index.js +25 -0
  1175. package/dist/modules/profile/index.js.map +1 -0
  1176. package/dist/modules/profile/profile.manifest.d.ts +7 -0
  1177. package/dist/modules/profile/profile.manifest.d.ts.map +1 -0
  1178. package/dist/modules/profile/profile.manifest.js +25 -0
  1179. package/dist/modules/profile/profile.manifest.js.map +1 -0
  1180. package/dist/modules/profile/profile.module.d.ts +3 -0
  1181. package/dist/modules/profile/profile.module.d.ts.map +1 -0
  1182. package/dist/modules/profile/profile.module.js +35 -0
  1183. package/dist/modules/profile/profile.module.js.map +1 -0
  1184. package/dist/modules/profile/services/profile.service.d.ts +32 -0
  1185. package/dist/modules/profile/services/profile.service.d.ts.map +1 -0
  1186. package/dist/modules/profile/services/profile.service.js +185 -0
  1187. package/dist/modules/profile/services/profile.service.js.map +1 -0
  1188. package/dist/modules/roles/controllers/index.d.ts +5 -0
  1189. package/dist/modules/roles/controllers/index.d.ts.map +1 -0
  1190. package/dist/modules/roles/controllers/index.js +12 -0
  1191. package/dist/modules/roles/controllers/index.js.map +1 -0
  1192. package/dist/modules/roles/controllers/modules.controller.d.ts +14 -0
  1193. package/dist/modules/roles/controllers/modules.controller.d.ts.map +1 -0
  1194. package/dist/modules/roles/controllers/modules.controller.js +83 -0
  1195. package/dist/modules/roles/controllers/modules.controller.js.map +1 -0
  1196. package/dist/modules/roles/controllers/permissions.controller.d.ts +14 -0
  1197. package/dist/modules/roles/controllers/permissions.controller.d.ts.map +1 -0
  1198. package/dist/modules/roles/controllers/permissions.controller.js +84 -0
  1199. package/dist/modules/roles/controllers/permissions.controller.js.map +1 -0
  1200. package/dist/modules/roles/controllers/roles.controller.d.ts +17 -0
  1201. package/dist/modules/roles/controllers/roles.controller.d.ts.map +1 -0
  1202. package/dist/modules/roles/controllers/roles.controller.js +94 -0
  1203. package/dist/modules/roles/controllers/roles.controller.js.map +1 -0
  1204. package/dist/modules/roles/controllers/user-roles.controller.d.ts +11 -0
  1205. package/dist/modules/roles/controllers/user-roles.controller.d.ts.map +1 -0
  1206. package/dist/modules/roles/controllers/user-roles.controller.js +95 -0
  1207. package/dist/modules/roles/controllers/user-roles.controller.js.map +1 -0
  1208. package/dist/modules/roles/dto/index.d.ts +4 -0
  1209. package/dist/modules/roles/dto/index.d.ts.map +1 -0
  1210. package/dist/modules/roles/dto/index.js +20 -0
  1211. package/dist/modules/roles/dto/index.js.map +1 -0
  1212. package/dist/modules/roles/dto/module.dto.d.ts +10 -0
  1213. package/dist/modules/roles/dto/module.dto.d.ts.map +1 -0
  1214. package/dist/modules/roles/dto/module.dto.js +53 -0
  1215. package/dist/modules/roles/dto/module.dto.js.map +1 -0
  1216. package/dist/modules/roles/dto/permission.dto.d.ts +14 -0
  1217. package/dist/modules/roles/dto/permission.dto.d.ts.map +1 -0
  1218. package/dist/modules/roles/dto/permission.dto.js +67 -0
  1219. package/dist/modules/roles/dto/permission.dto.js.map +1 -0
  1220. package/dist/modules/roles/dto/role.dto.d.ts +15 -0
  1221. package/dist/modules/roles/dto/role.dto.d.ts.map +1 -0
  1222. package/dist/modules/roles/dto/role.dto.js +73 -0
  1223. package/dist/modules/roles/dto/role.dto.js.map +1 -0
  1224. package/dist/modules/roles/entities/index.d.ts +4 -0
  1225. package/dist/modules/roles/entities/index.d.ts.map +1 -0
  1226. package/dist/modules/roles/entities/index.js +10 -0
  1227. package/dist/modules/roles/entities/index.js.map +1 -0
  1228. package/dist/modules/roles/entities/module.entity.d.ts +9 -0
  1229. package/dist/modules/roles/entities/module.entity.d.ts.map +1 -0
  1230. package/dist/modules/roles/entities/module.entity.js +43 -0
  1231. package/dist/modules/roles/entities/module.entity.js.map +1 -0
  1232. package/dist/modules/roles/entities/permission.entity.d.ts +12 -0
  1233. package/dist/modules/roles/entities/permission.entity.d.ts.map +1 -0
  1234. package/dist/modules/roles/entities/permission.entity.js +55 -0
  1235. package/dist/modules/roles/entities/permission.entity.js.map +1 -0
  1236. package/dist/modules/roles/entities/role.entity.d.ts +11 -0
  1237. package/dist/modules/roles/entities/role.entity.d.ts.map +1 -0
  1238. package/dist/modules/roles/entities/role.entity.js +54 -0
  1239. package/dist/modules/roles/entities/role.entity.js.map +1 -0
  1240. package/dist/modules/roles/index.d.ts +7 -0
  1241. package/dist/modules/roles/index.d.ts.map +1 -0
  1242. package/dist/modules/roles/index.js +25 -0
  1243. package/dist/modules/roles/index.js.map +1 -0
  1244. package/dist/modules/roles/registry/discover-manifests.d.ts +17 -0
  1245. package/dist/modules/roles/registry/discover-manifests.d.ts.map +1 -0
  1246. package/dist/modules/roles/registry/discover-manifests.js +133 -0
  1247. package/dist/modules/roles/registry/discover-manifests.js.map +1 -0
  1248. package/dist/modules/roles/registry/index.d.ts +3 -0
  1249. package/dist/modules/roles/registry/index.d.ts.map +1 -0
  1250. package/dist/modules/roles/registry/index.js +9 -0
  1251. package/dist/modules/roles/registry/index.js.map +1 -0
  1252. package/dist/modules/roles/registry/sync-manifests-to-db.d.ts +11 -0
  1253. package/dist/modules/roles/registry/sync-manifests-to-db.d.ts.map +1 -0
  1254. package/dist/modules/roles/registry/sync-manifests-to-db.js +61 -0
  1255. package/dist/modules/roles/registry/sync-manifests-to-db.js.map +1 -0
  1256. package/dist/modules/roles/roles.manifest.d.ts +12 -0
  1257. package/dist/modules/roles/roles.manifest.d.ts.map +1 -0
  1258. package/dist/modules/roles/roles.manifest.js +51 -0
  1259. package/dist/modules/roles/roles.manifest.js.map +1 -0
  1260. package/dist/modules/roles/roles.module.d.ts +3 -0
  1261. package/dist/modules/roles/roles.module.d.ts.map +1 -0
  1262. package/dist/modules/roles/roles.module.js +28 -0
  1263. package/dist/modules/roles/roles.module.js.map +1 -0
  1264. package/dist/modules/roles/services/index.d.ts +5 -0
  1265. package/dist/modules/roles/services/index.d.ts.map +1 -0
  1266. package/dist/modules/roles/services/index.js +12 -0
  1267. package/dist/modules/roles/services/index.js.map +1 -0
  1268. package/dist/modules/roles/services/modules.service.d.ts +14 -0
  1269. package/dist/modules/roles/services/modules.service.d.ts.map +1 -0
  1270. package/dist/modules/roles/services/modules.service.js +70 -0
  1271. package/dist/modules/roles/services/modules.service.js.map +1 -0
  1272. package/dist/modules/roles/services/permissions.service.d.ts +16 -0
  1273. package/dist/modules/roles/services/permissions.service.d.ts.map +1 -0
  1274. package/dist/modules/roles/services/permissions.service.js +80 -0
  1275. package/dist/modules/roles/services/permissions.service.js.map +1 -0
  1276. package/dist/modules/roles/services/roles.service.d.ts +45 -0
  1277. package/dist/modules/roles/services/roles.service.d.ts.map +1 -0
  1278. package/dist/modules/roles/services/roles.service.js +175 -0
  1279. package/dist/modules/roles/services/roles.service.js.map +1 -0
  1280. package/dist/modules/roles/services/user-roles.service.d.ts +26 -0
  1281. package/dist/modules/roles/services/user-roles.service.d.ts.map +1 -0
  1282. package/dist/modules/roles/services/user-roles.service.js +113 -0
  1283. package/dist/modules/roles/services/user-roles.service.js.map +1 -0
  1284. package/dist/modules/roles/types/manifest.types.d.ts +12 -0
  1285. package/dist/modules/roles/types/manifest.types.d.ts.map +1 -0
  1286. package/dist/modules/roles/types/manifest.types.js +3 -0
  1287. package/dist/modules/roles/types/manifest.types.js.map +1 -0
  1288. package/dist/modules/sessions/controllers/session.controller.d.ts +17 -0
  1289. package/dist/modules/sessions/controllers/session.controller.d.ts.map +1 -0
  1290. package/dist/modules/sessions/controllers/session.controller.js +124 -0
  1291. package/dist/modules/sessions/controllers/session.controller.js.map +1 -0
  1292. package/dist/modules/sessions/entities/refresh-token.entity.d.ts +30 -0
  1293. package/dist/modules/sessions/entities/refresh-token.entity.d.ts.map +1 -0
  1294. package/dist/modules/sessions/entities/refresh-token.entity.js +96 -0
  1295. package/dist/modules/sessions/entities/refresh-token.entity.js.map +1 -0
  1296. package/dist/modules/sessions/index.d.ts +4 -0
  1297. package/dist/modules/sessions/index.d.ts.map +1 -0
  1298. package/dist/modules/sessions/index.js +20 -0
  1299. package/dist/modules/sessions/index.js.map +1 -0
  1300. package/dist/modules/sessions/services/token.service.d.ts +102 -0
  1301. package/dist/modules/sessions/services/token.service.d.ts.map +1 -0
  1302. package/dist/modules/sessions/services/token.service.js +374 -0
  1303. package/dist/modules/sessions/services/token.service.js.map +1 -0
  1304. package/dist/modules/sessions/sessions.module.d.ts +3 -0
  1305. package/dist/modules/sessions/sessions.module.d.ts.map +1 -0
  1306. package/dist/modules/sessions/sessions.module.js +32 -0
  1307. package/dist/modules/sessions/sessions.module.js.map +1 -0
  1308. package/dist/modules/settings/constants/settings.defaults.d.ts +109 -0
  1309. package/dist/modules/settings/constants/settings.defaults.d.ts.map +1 -0
  1310. package/dist/modules/settings/constants/settings.defaults.js +168 -0
  1311. package/dist/modules/settings/constants/settings.defaults.js.map +1 -0
  1312. package/dist/modules/settings/constants/settings.keys.d.ts +180 -0
  1313. package/dist/modules/settings/constants/settings.keys.d.ts.map +1 -0
  1314. package/dist/modules/settings/constants/settings.keys.js +196 -0
  1315. package/dist/modules/settings/constants/settings.keys.js.map +1 -0
  1316. package/dist/modules/settings/controllers/settings.controller.d.ts +22 -0
  1317. package/dist/modules/settings/controllers/settings.controller.d.ts.map +1 -0
  1318. package/dist/modules/settings/controllers/settings.controller.js +109 -0
  1319. package/dist/modules/settings/controllers/settings.controller.js.map +1 -0
  1320. package/dist/modules/settings/dto/settings.dto.d.ts +4 -0
  1321. package/dist/modules/settings/dto/settings.dto.d.ts.map +1 -0
  1322. package/dist/modules/settings/dto/settings.dto.js +25 -0
  1323. package/dist/modules/settings/dto/settings.dto.js.map +1 -0
  1324. package/dist/modules/settings/entities/app-setting.entity.d.ts +18 -0
  1325. package/dist/modules/settings/entities/app-setting.entity.d.ts.map +1 -0
  1326. package/dist/modules/settings/entities/app-setting.entity.js +79 -0
  1327. package/dist/modules/settings/entities/app-setting.entity.js.map +1 -0
  1328. package/dist/modules/settings/index.d.ts +8 -0
  1329. package/dist/modules/settings/index.d.ts.map +1 -0
  1330. package/dist/modules/settings/index.js +24 -0
  1331. package/dist/modules/settings/index.js.map +1 -0
  1332. package/dist/modules/settings/services/settings.service.d.ts +64 -0
  1333. package/dist/modules/settings/services/settings.service.d.ts.map +1 -0
  1334. package/dist/modules/settings/services/settings.service.js +191 -0
  1335. package/dist/modules/settings/services/settings.service.js.map +1 -0
  1336. package/dist/modules/settings/settings.manifest.d.ts +7 -0
  1337. package/dist/modules/settings/settings.manifest.d.ts.map +1 -0
  1338. package/dist/modules/settings/settings.manifest.js +25 -0
  1339. package/dist/modules/settings/settings.manifest.js.map +1 -0
  1340. package/dist/modules/settings/settings.module.d.ts +3 -0
  1341. package/dist/modules/settings/settings.module.d.ts.map +1 -0
  1342. package/dist/modules/settings/settings.module.js +27 -0
  1343. package/dist/modules/settings/settings.module.js.map +1 -0
  1344. package/dist/modules/users/controllers/users.controller.d.ts +34 -0
  1345. package/dist/modules/users/controllers/users.controller.d.ts.map +1 -0
  1346. package/dist/modules/users/controllers/users.controller.js +252 -0
  1347. package/dist/modules/users/controllers/users.controller.js.map +1 -0
  1348. package/dist/modules/users/dto/user.dto.d.ts +59 -0
  1349. package/dist/modules/users/dto/user.dto.d.ts.map +1 -0
  1350. package/dist/modules/users/dto/user.dto.js +273 -0
  1351. package/dist/modules/users/dto/user.dto.js.map +1 -0
  1352. package/dist/modules/users/entities/user.entity.d.ts +46 -0
  1353. package/dist/modules/users/entities/user.entity.d.ts.map +1 -0
  1354. package/dist/modules/users/entities/user.entity.js +317 -0
  1355. package/dist/modules/users/entities/user.entity.js.map +1 -0
  1356. package/dist/modules/users/index.d.ts +6 -0
  1357. package/dist/modules/users/index.d.ts.map +1 -0
  1358. package/dist/modules/users/index.js +22 -0
  1359. package/dist/modules/users/index.js.map +1 -0
  1360. package/dist/modules/users/services/users.service.d.ts +67 -0
  1361. package/dist/modules/users/services/users.service.d.ts.map +1 -0
  1362. package/dist/modules/users/services/users.service.js +530 -0
  1363. package/dist/modules/users/services/users.service.js.map +1 -0
  1364. package/dist/modules/users/users.manifest.d.ts +12 -0
  1365. package/dist/modules/users/users.manifest.d.ts.map +1 -0
  1366. package/dist/modules/users/users.manifest.js +43 -0
  1367. package/dist/modules/users/users.manifest.js.map +1 -0
  1368. package/dist/modules/users/users.module.d.ts +3 -0
  1369. package/dist/modules/users/users.module.d.ts.map +1 -0
  1370. package/dist/modules/users/users.module.js +37 -0
  1371. package/dist/modules/users/users.module.js.map +1 -0
  1372. package/package.json +193 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AAEvE,kEAA8D;AAC9D,kEAAwD;AAExD,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iDAAiC,CAAA;I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EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,IAAI;KACd,CAAC;;kDAC0B;AAI5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,kBAAI;0CAAC;uBA9CA,YAAY;IADxB,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,YAAY,CA+CxB"}
@@ -0,0 +1,4 @@
1
+ export * from './entities/refresh-token.entity';
2
+ export * from './services/token.service';
3
+ export * from './sessions.module';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/sessions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,20 @@
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("./entities/refresh-token.entity"), exports);
18
+ __exportStar(require("./services/token.service"), exports);
19
+ __exportStar(require("./sessions.module"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/sessions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,2DAAyC;AACzC,oDAAkC"}
@@ -0,0 +1,102 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { JwtService } from '@nestjs/jwt';
3
+ import IORedis from 'ioredis';
4
+ import { Repository } from 'typeorm';
5
+ import { TokenResponse } from '../../auth/dto/token.dto';
6
+ import { StructuredLoggerService } from '../../observability/logging/structured-logger.service';
7
+ import { SettingsService } from '../../settings/services/settings.service';
8
+ import { UserResponseDto } from '../../users/dto/user.dto';
9
+ import { UsersService } from '../../users/services/users.service';
10
+ import { RefreshToken, RevokeReason } from '../entities/refresh-token.entity';
11
+ export declare class TokenService {
12
+ private readonly jwtService;
13
+ private readonly usersService;
14
+ private readonly refreshTokenRepository;
15
+ private readonly redis;
16
+ private readonly settingsService;
17
+ private readonly configService;
18
+ private readonly logger;
19
+ constructor(jwtService: JwtService, usersService: UsersService, refreshTokenRepository: Repository<RefreshToken>, redis: IORedis, settingsService: SettingsService, configService: ConfigService, logger: StructuredLoggerService);
20
+ /**
21
+ * Creates a short-lived login bridge token (post-OTP → login).
22
+ * Stored as: tmp:login:<uuid> → userId TTL: 5 min
23
+ * Consumed atomically with GETDEL — single-use by design.
24
+ */
25
+ createTemporaryToken(userId: string): Promise<string>;
26
+ /**
27
+ * Verifies and atomically consumes a login bridge token.
28
+ * Returns the userId. Throws UnauthorizedException on any failure.
29
+ */
30
+ verifyTemporaryToken(token: string): Promise<string>;
31
+ /**
32
+ * Creates a short-lived phone-verified token (OTP verified → register / reset password).
33
+ * Stored as: tmp:phone_verified:<uuid> → E.164 phone TTL: 5 min
34
+ * Consumed atomically with GETDEL — single-use by design.
35
+ */
36
+ createPhoneVerifiedToken(phoneNumber: string): Promise<string>;
37
+ /**
38
+ * Verifies and atomically consumes a phone-verified token.
39
+ * Returns the E.164 phone number. Throws UnauthorizedException on any failure.
40
+ */
41
+ verifyPhoneVerifiedToken(token: string): Promise<string>;
42
+ /**
43
+ * Creates a short-lived email-verified token (OTP verified → /auth/verify-email).
44
+ * Stored as: tmp:email_verified:<uuid> → email address TTL: 5 min
45
+ * Consumed atomically with GETDEL — single-use by design.
46
+ */
47
+ createEmailVerifiedToken(email: string): Promise<string>;
48
+ /**
49
+ * Verifies and atomically consumes an email-verified token.
50
+ * Returns the email address. Throws UnauthorizedException on any failure.
51
+ */
52
+ verifyEmailVerifiedToken(token: string): Promise<string>;
53
+ generateTokens({ user, roles, familyId, deviceInfo, ipAddress, providerRefreshToken, }: {
54
+ user: UserResponseDto;
55
+ roles: string[];
56
+ familyId?: string;
57
+ deviceInfo?: string;
58
+ ipAddress?: string;
59
+ providerRefreshToken?: string;
60
+ }): Promise<TokenResponse>;
61
+ rotateRefreshToken(rawRefreshToken: string, deviceInfo?: string, ipAddress?: string): Promise<TokenResponse>;
62
+ /**
63
+ * Generate tokens by userId — used during rotation where we only have userId + familyId.
64
+ * Re-fetches user profile and roles fresh from DB.
65
+ */
66
+ generateTokensForUserId(userId: string, familyId: string, providerRefreshToken?: string, deviceInfo?: string, ipAddress?: string): Promise<TokenResponse>;
67
+ private issueTokenPair;
68
+ private buildJwtPayload;
69
+ private assertUserCanRefresh;
70
+ /** Parses the tokens.access_expires_in setting string to milliseconds. */
71
+ private get accessTokenExpiresInMs();
72
+ revokeRefreshToken(tokenId: string, reason?: RevokeReason): Promise<void>;
73
+ /**
74
+ * Add a JWT access token's `jti` to the Redis revocation blocklist.
75
+ * The entry automatically expires when the token would naturally expire,
76
+ * so no cleanup is needed.
77
+ *
78
+ * `ttlSeconds` should be the token's remaining validity in seconds
79
+ * (i.e. `exp - Math.floor(Date.now() / 1000)`). Pass 0 or a negative
80
+ * value to skip (token is already expired).
81
+ */
82
+ revokeAccessToken(jti: string, ttlSeconds: number): Promise<void>;
83
+ /**
84
+ * Revoke all refresh tokens for a user (e.g. forced logout, account suspension).
85
+ *
86
+ * **Access-token limitation**: this only revokes refresh tokens in the DB.
87
+ * Any access tokens that are already in-flight will remain valid until they
88
+ * expire naturally (default 1 day). To immediately block the *current* access
89
+ * token call `revokeAccessToken(user.jti, remaining)` in the same request
90
+ * (see SessionController.logout). There is no efficient way to bulk-revoke
91
+ * every outstanding access token because they are not tracked individually —
92
+ * this is an inherent trade-off of stateless JWTs. Mitigate by keeping
93
+ * `JWT_EXPIRATION` short (15 min or less in high-security deployments).
94
+ */
95
+ revokeAllUserTokens(userId: string, reason?: RevokeReason): Promise<void>;
96
+ getUserActiveSessions(userId: string): Promise<RefreshToken[]>;
97
+ getRefreshTokenById(tokenId: string): Promise<RefreshToken | null>;
98
+ private saveRefreshToken;
99
+ private markRevoked;
100
+ private revokeFamilyTokens;
101
+ }
102
+ //# sourceMappingURL=token.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/services/token.service.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAAc,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAEhG,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAc9E,qBACa,YAAY;IAEvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,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,OAAO,CAAC,aAAa,CAAC;IAWpB,kBAAkB,CACvB,eAAe,EAAE,MAAM,EACvB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC;IAyDzB;;;OAGG;IACG,uBAAuB,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,oBAAoB,CAAC,EAAE,MAAM,EAC7B,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC;YAgBX,cAAc;IAuC5B,OAAO,CAAC,eAAe;YAQT,oBAAoB;IAiBlC,0EAA0E;IAC1E,OAAO,KAAK,sBAAsB,GAMjC;IAEK,kBAAkB,CACvB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,YAAkC,GACxC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;OAQG;IACG,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvE;;;;;;;;;;;OAWG;IACG,mBAAmB,CACxB,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,YAAkC,GACxC,OAAO,CAAC,IAAI,CAAC;IASV,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAO9D,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;YAM1D,gBAAgB;YAmChB,WAAW;YAIX,kBAAkB;CAMhC"}
@@ -0,0 +1,374 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ 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;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
45
+ return function (target, key) { decorator(target, key, paramIndex); }
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.TokenService = void 0;
52
+ const common_1 = require("@nestjs/common");
53
+ const config_1 = require("@nestjs/config");
54
+ const jwt_1 = require("@nestjs/jwt");
55
+ const typeorm_1 = require("@nestjs/typeorm");
56
+ const argon2 = __importStar(require("argon2"));
57
+ const crypto_1 = require("crypto");
58
+ const ioredis_1 = __importDefault(require("ioredis"));
59
+ const ms_1 = __importDefault(require("ms"));
60
+ const typeorm_2 = require("typeorm");
61
+ const encryption_util_1 = require("../../../config/encryption.util");
62
+ const redis_module_1 = require("../../../config/redis.module");
63
+ const jwt_strategy_1 = require("../../auth/auth-core/strategies/jwt.strategy");
64
+ const structured_logger_service_1 = require("../../observability/logging/structured-logger.service");
65
+ const settings_keys_1 = require("../../settings/constants/settings.keys");
66
+ const settings_service_1 = require("../../settings/services/settings.service");
67
+ const user_dto_1 = require("../../users/dto/user.dto");
68
+ const user_entity_1 = require("../../users/entities/user.entity");
69
+ const users_service_1 = require("../../users/services/users.service");
70
+ const refresh_token_entity_1 = require("../entities/refresh-token.entity");
71
+ // Redis key prefixes for temporary tokens
72
+ const KEY_TMP_LOGIN = 'tmp:login:';
73
+ const KEY_TMP_PHONE = 'tmp:phone_verified:';
74
+ const KEY_TMP_EMAIL = 'tmp:email_verified:';
75
+ let TokenService = class TokenService {
76
+ jwtService;
77
+ usersService;
78
+ refreshTokenRepository;
79
+ redis;
80
+ settingsService;
81
+ configService;
82
+ logger;
83
+ constructor(jwtService, usersService, refreshTokenRepository, redis, settingsService, configService, logger) {
84
+ this.jwtService = jwtService;
85
+ this.usersService = usersService;
86
+ this.refreshTokenRepository = refreshTokenRepository;
87
+ this.redis = redis;
88
+ this.settingsService = settingsService;
89
+ this.configService = configService;
90
+ this.logger = logger;
91
+ }
92
+ // ─── Temporary Token (Redis) ─────────────────────────────────────────────────
93
+ /**
94
+ * Creates a short-lived login bridge token (post-OTP → login).
95
+ * Stored as: tmp:login:<uuid> → userId TTL: 5 min
96
+ * Consumed atomically with GETDEL — single-use by design.
97
+ */
98
+ async createTemporaryToken(userId) {
99
+ const ttl = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS);
100
+ const token = (0, crypto_1.randomUUID)();
101
+ const result = await this.redis.set(`${KEY_TMP_LOGIN}${token}`, userId, 'EX', ttl, 'NX');
102
+ if (result !== 'OK') {
103
+ throw new common_1.ServiceUnavailableException('Failed to store temporary token in Redis');
104
+ }
105
+ return token;
106
+ }
107
+ /**
108
+ * Verifies and atomically consumes a login bridge token.
109
+ * Returns the userId. Throws UnauthorizedException on any failure.
110
+ */
111
+ async verifyTemporaryToken(token) {
112
+ const userId = await this.redis.getdel(`${KEY_TMP_LOGIN}${token}`);
113
+ if (!userId) {
114
+ throw new common_1.UnauthorizedException('Invalid or expired temporary token');
115
+ }
116
+ return userId;
117
+ }
118
+ /**
119
+ * Creates a short-lived phone-verified token (OTP verified → register / reset password).
120
+ * Stored as: tmp:phone_verified:<uuid> → E.164 phone TTL: 5 min
121
+ * Consumed atomically with GETDEL — single-use by design.
122
+ */
123
+ async createPhoneVerifiedToken(phoneNumber) {
124
+ const ttl = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS);
125
+ const token = (0, crypto_1.randomUUID)();
126
+ const result = await this.redis.set(`${KEY_TMP_PHONE}${token}`, phoneNumber, 'EX', ttl, 'NX');
127
+ if (result !== 'OK') {
128
+ throw new common_1.ServiceUnavailableException('Failed to store phone-verified token in Redis');
129
+ }
130
+ return token;
131
+ }
132
+ /**
133
+ * Verifies and atomically consumes a phone-verified token.
134
+ * Returns the E.164 phone number. Throws UnauthorizedException on any failure.
135
+ */
136
+ async verifyPhoneVerifiedToken(token) {
137
+ const phoneNumber = await this.redis.getdel(`${KEY_TMP_PHONE}${token}`);
138
+ if (phoneNumber) {
139
+ return phoneNumber;
140
+ }
141
+ // verify-otp returns a login bridge token when hasAccount=true — do not consume it here.
142
+ const existingUserId = await this.redis.get(`${KEY_TMP_LOGIN}${token}`);
143
+ if (existingUserId) {
144
+ throw new common_1.ConflictException('An account with this phone number already exists. Use POST /auth/login with this verificationToken instead.');
145
+ }
146
+ const ttlMinutes = Math.max(1, Math.round(this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS) / 60));
147
+ throw new common_1.UnauthorizedException(`Invalid or expired verification token. Use the verificationToken returned by POST /auth/verify-otp when hasAccount is false — not verificationId. Tokens are single-use and expire after ${ttlMinutes} minute(s).`);
148
+ }
149
+ /**
150
+ * Creates a short-lived email-verified token (OTP verified → /auth/verify-email).
151
+ * Stored as: tmp:email_verified:<uuid> → email address TTL: 5 min
152
+ * Consumed atomically with GETDEL — single-use by design.
153
+ */
154
+ async createEmailVerifiedToken(email) {
155
+ const ttl = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS);
156
+ const token = (0, crypto_1.randomUUID)();
157
+ const result = await this.redis.set(`${KEY_TMP_EMAIL}${token}`, email, 'EX', ttl, 'NX');
158
+ if (result !== 'OK') {
159
+ throw new common_1.ServiceUnavailableException('Failed to store email-verified token in Redis');
160
+ }
161
+ return token;
162
+ }
163
+ /**
164
+ * Verifies and atomically consumes an email-verified token.
165
+ * Returns the email address. Throws UnauthorizedException on any failure.
166
+ */
167
+ async verifyEmailVerifiedToken(token) {
168
+ const email = await this.redis.getdel(`${KEY_TMP_EMAIL}${token}`);
169
+ if (!email) {
170
+ throw new common_1.UnauthorizedException('Invalid or expired email-verified token');
171
+ }
172
+ return email;
173
+ }
174
+ // ─── Access + Refresh Token Pair ────────────────────────────────────────────
175
+ // All auth routes that return tokens funnel here:
176
+ // POST /auth/login, /auth/register → generateTokens()
177
+ // POST /auth/refresh (SessionController) → rotateRefreshToken()
178
+ async generateTokens({ user, roles, familyId, deviceInfo, ipAddress, providerRefreshToken, }) {
179
+ return this.issueTokenPair(user, roles, {
180
+ familyId,
181
+ providerRefreshToken,
182
+ deviceInfo,
183
+ ipAddress,
184
+ });
185
+ }
186
+ // ─── Refresh Token Rotation ──────────────────────────────────────────────────
187
+ async rotateRefreshToken(rawRefreshToken, deviceInfo, ipAddress) {
188
+ // Raw refresh token format: "<uuid-tokenId>.<uuid-secret>"
189
+ // The tokenId enables a direct DB lookup — no full-table hash scan needed.
190
+ const parts = rawRefreshToken.split('.');
191
+ if (parts.length !== 2) {
192
+ throw new common_1.UnauthorizedException('Invalid refresh token format');
193
+ }
194
+ const [tokenId, secret] = parts;
195
+ const record = await this.refreshTokenRepository.findOne({ where: { id: tokenId } });
196
+ if (!record) {
197
+ throw new common_1.UnauthorizedException('Invalid refresh token');
198
+ }
199
+ // Verify the secret half with argon2
200
+ const isValid = await argon2.verify(record.tokenHash, secret);
201
+ if (!isValid) {
202
+ throw new common_1.UnauthorizedException('Invalid refresh token');
203
+ }
204
+ if (record.isRevoked) {
205
+ // Reuse of a revoked token — wipe the entire session family
206
+ this.logger.warn('Refresh token reuse detected', {
207
+ event: 'session.refresh.reuse_detected',
208
+ metadata: { userId: record.userId, familyId: record.familyId },
209
+ });
210
+ await this.revokeFamilyTokens(record.familyId, refresh_token_entity_1.RevokeReason.REUSE_DETECTED);
211
+ throw new common_1.UnauthorizedException('Session invalidated due to suspicious activity. Please log in again.');
212
+ }
213
+ if (new Date() > record.expiresAt) {
214
+ await this.markRevoked(record.id, refresh_token_entity_1.RevokeReason.ROTATED);
215
+ throw new common_1.UnauthorizedException('Refresh token expired');
216
+ }
217
+ await this.assertUserCanRefresh(record.userId);
218
+ // Revoke the used token, issue a new one with the same family_id
219
+ await this.markRevoked(record.id, refresh_token_entity_1.RevokeReason.ROTATED);
220
+ const encKey = this.configService.get('app.encryptionKey');
221
+ const decryptedProviderToken = encKey
222
+ ? (0, encryption_util_1.tryDecrypt)(record.providerRefreshTokenEncrypted, encKey)
223
+ : undefined;
224
+ return this.generateTokensForUserId(record.userId, record.familyId, decryptedProviderToken ?? undefined, deviceInfo, ipAddress);
225
+ }
226
+ /**
227
+ * Generate tokens by userId — used during rotation where we only have userId + familyId.
228
+ * Re-fetches user profile and roles fresh from DB.
229
+ */
230
+ async generateTokensForUserId(userId, familyId, providerRefreshToken, deviceInfo, ipAddress) {
231
+ await this.assertUserCanRefresh(userId);
232
+ const user = await this.usersService.findById(userId);
233
+ if (!user)
234
+ throw new common_1.NotFoundException('User not found');
235
+ return this.issueTokenPair(user_dto_1.UserResponseDto.fromUser(user), user.roles?.map((role) => role.slug) ?? [], {
236
+ familyId,
237
+ providerRefreshToken,
238
+ deviceInfo,
239
+ ipAddress,
240
+ });
241
+ }
242
+ async issueTokenPair(user, roles, options) {
243
+ const payload = this.buildJwtPayload(user, roles);
244
+ const accessToken = await this.jwtService.signAsync(payload, {
245
+ expiresIn: this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_ACCESS_EXPIRES_IN),
246
+ });
247
+ const resolvedFamilyId = options.familyId ?? (0, crypto_1.randomUUID)();
248
+ const secret = (0, crypto_1.randomUUID)();
249
+ const tokenHash = await argon2.hash(secret);
250
+ const savedToken = await this.saveRefreshToken(user.id, tokenHash, resolvedFamilyId, options.providerRefreshToken, options.deviceInfo, options.ipAddress);
251
+ return {
252
+ accessToken,
253
+ refreshToken: `${savedToken.id}.${secret}`,
254
+ expiresIn: this.accessTokenExpiresInMs,
255
+ user,
256
+ roles,
257
+ };
258
+ }
259
+ buildJwtPayload(_user, roles) {
260
+ return {
261
+ sub: _user.id,
262
+ roles,
263
+ jti: (0, crypto_1.randomUUID)(),
264
+ };
265
+ }
266
+ async assertUserCanRefresh(userId) {
267
+ const user = await this.usersService.findById(userId);
268
+ if (!user)
269
+ throw new common_1.UnauthorizedException('User not found');
270
+ if (!user.isActive ||
271
+ user.status === user_entity_1.UserStatus.SUSPENDED ||
272
+ user.status === user_entity_1.UserStatus.REVOKED) {
273
+ throw new common_1.UnauthorizedException('Your account has been deactivated.');
274
+ }
275
+ const banned = await this.redis.get(`user:banned:${userId}`);
276
+ if (banned)
277
+ throw new common_1.UnauthorizedException('Account suspended');
278
+ }
279
+ // ─── Private helper ──────────────────────────────────────────────────────────
280
+ /** Parses the tokens.access_expires_in setting string to milliseconds. */
281
+ get accessTokenExpiresInMs() {
282
+ return (0, ms_1.default)(this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_ACCESS_EXPIRES_IN));
283
+ }
284
+ async revokeRefreshToken(tokenId, reason = refresh_token_entity_1.RevokeReason.LOGOUT) {
285
+ const token = await this.refreshTokenRepository.findOne({ where: { id: tokenId } });
286
+ if (!token)
287
+ throw new common_1.NotFoundException('Token not found');
288
+ if (token.isRevoked)
289
+ throw new common_1.ForbiddenException('Token already revoked');
290
+ await this.markRevoked(token.id, reason);
291
+ }
292
+ /**
293
+ * Add a JWT access token's `jti` to the Redis revocation blocklist.
294
+ * The entry automatically expires when the token would naturally expire,
295
+ * so no cleanup is needed.
296
+ *
297
+ * `ttlSeconds` should be the token's remaining validity in seconds
298
+ * (i.e. `exp - Math.floor(Date.now() / 1000)`). Pass 0 or a negative
299
+ * value to skip (token is already expired).
300
+ */
301
+ async revokeAccessToken(jti, ttlSeconds) {
302
+ if (ttlSeconds <= 0)
303
+ return;
304
+ const key = `${jwt_strategy_1.JWT_BLOCKLIST_PREFIX}${jti}`;
305
+ await this.redis.set(key, '1', 'EX', Math.ceil(ttlSeconds));
306
+ }
307
+ /**
308
+ * Revoke all refresh tokens for a user (e.g. forced logout, account suspension).
309
+ *
310
+ * **Access-token limitation**: this only revokes refresh tokens in the DB.
311
+ * Any access tokens that are already in-flight will remain valid until they
312
+ * expire naturally (default 1 day). To immediately block the *current* access
313
+ * token call `revokeAccessToken(user.jti, remaining)` in the same request
314
+ * (see SessionController.logout). There is no efficient way to bulk-revoke
315
+ * every outstanding access token because they are not tracked individually —
316
+ * this is an inherent trade-off of stateless JWTs. Mitigate by keeping
317
+ * `JWT_EXPIRATION` short (15 min or less in high-security deployments).
318
+ */
319
+ async revokeAllUserTokens(userId, reason = refresh_token_entity_1.RevokeReason.LOGOUT) {
320
+ await this.refreshTokenRepository.update({ userId, isRevoked: false }, { isRevoked: true, revokeReason: reason });
321
+ }
322
+ // ─── Sessions ────────────────────────────────────────────────────────────────
323
+ async getUserActiveSessions(userId) {
324
+ return this.refreshTokenRepository.find({
325
+ where: { userId, isRevoked: false },
326
+ order: { createdAt: 'DESC' },
327
+ });
328
+ }
329
+ async getRefreshTokenById(tokenId) {
330
+ return this.refreshTokenRepository.findOne({ where: { id: tokenId } });
331
+ }
332
+ // ─── Private Helpers ─────────────────────────────────────────────────────────
333
+ async saveRefreshToken(userId, tokenHash, familyId, providerRefreshToken, deviceInfo, ipAddress) {
334
+ const ttlDays = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_REFRESH_TTL_DAYS);
335
+ const expiresAt = new Date();
336
+ expiresAt.setDate(expiresAt.getDate() + ttlDays);
337
+ const encKey = this.configService.get('app.encryptionKey');
338
+ const providerRefreshTokenEncrypted = providerRefreshToken && encKey ? (0, encryption_util_1.encrypt)(providerRefreshToken, encKey) : undefined;
339
+ if (providerRefreshToken && !encKey) {
340
+ this.logger.warn('ENCRYPTION_KEY not set — provider refresh token will not be stored', {
341
+ event: 'session.encryption_key.missing',
342
+ });
343
+ }
344
+ return this.refreshTokenRepository.save(this.refreshTokenRepository.create({
345
+ userId,
346
+ tokenHash,
347
+ familyId,
348
+ providerRefreshTokenEncrypted,
349
+ deviceInfo,
350
+ ipAddress,
351
+ expiresAt,
352
+ }));
353
+ }
354
+ async markRevoked(id, reason) {
355
+ await this.refreshTokenRepository.update(id, { isRevoked: true, revokeReason: reason });
356
+ }
357
+ async revokeFamilyTokens(familyId, reason) {
358
+ await this.refreshTokenRepository.update({ familyId, isRevoked: false }, { isRevoked: true, revokeReason: reason });
359
+ }
360
+ };
361
+ exports.TokenService = TokenService;
362
+ exports.TokenService = TokenService = __decorate([
363
+ (0, common_1.Injectable)(),
364
+ __param(2, (0, typeorm_1.InjectRepository)(refresh_token_entity_1.RefreshToken)),
365
+ __param(3, (0, common_1.Inject)(redis_module_1.REDIS_CLIENT)),
366
+ __metadata("design:paramtypes", [jwt_1.JwtService,
367
+ users_service_1.UsersService,
368
+ typeorm_2.Repository,
369
+ ioredis_1.default,
370
+ settings_service_1.SettingsService,
371
+ config_1.ConfigService,
372
+ structured_logger_service_1.StructuredLoggerService])
373
+ ], TokenService);
374
+ //# sourceMappingURL=token.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.service.js","sourceRoot":"","sources":["../../../../src/modules/sessions/services/token.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2CAA+C;AAC/C,qCAAyC;AACzC,6CAAmD;AACnD,+CAAiC;AACjC,mCAAoC;AACpC,sDAA8B;AAC9B,4CAAoB;AACpB,qCAAqC;AAErC,qEAAsE;AACtE,+DAA4D;AAC5D,+EAAoF;AAEpF,qGAAgG;AAChG,0EAAsE;AACtE,+EAA2E;AAC3E,uDAA2D;AAC3D,kEAA8D;AAC9D,sEAAkE;AAClE,2EAA8E;AAS9E,0CAA0C;AAC1C,MAAM,aAAa,GAAG,YAAY,CAAC;AACnC,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAC5C,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAGrC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEN;IACA;IAEA;IAEA;IACA;IACA;IACA;IATlB,YACkB,UAAsB,EACtB,YAA0B,EAE1B,sBAAgD,EAEhD,KAAc,EACd,eAAgC,EAChC,aAA4B,EAC5B,MAA+B;QAR/B,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAc;QAE1B,2BAAsB,GAAtB,sBAAsB,CAA0B;QAEhD,UAAK,GAAL,KAAK,CAAS;QACd,oBAAe,GAAf,eAAe,CAAiB;QAChC,kBAAa,GAAb,aAAa,CAAe;QAC5B,WAAM,GAAN,MAAM,CAAyB;IAC9C,CAAC;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AAC,WAAW,CAAC,EAAU,EAAE,MAAoB;QACzD,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACzF,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,QAAgB,EAAE,MAAoB;QACtE,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CACvC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAC9B,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,CACzC,CAAC;IACH,CAAC;CACD,CAAA;AAtaY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAKV,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,eAAM,EAAC,2BAAY,CAAC,CAAA;qCAJQ,gBAAU;QACR,4BAAY;QAEF,oBAAU;QAE3B,iBAAO;QACG,kCAAe;QACjB,sBAAa;QACpB,mDAAuB;GAVrC,YAAY,CAsaxB"}
@@ -0,0 +1,3 @@
1
+ export declare class SessionsModule {
2
+ }
3
+ //# sourceMappingURL=sessions.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.module.d.ts","sourceRoot":"","sources":["../../../src/modules/sessions/sessions.module.ts"],"names":[],"mappings":"AASA,qBAUa,cAAc;CAAG"}
@@ -0,0 +1,32 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SessionsModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const typeorm_1 = require("@nestjs/typeorm");
12
+ const auth_core_module_1 = require("../auth/auth-core/auth-core.module");
13
+ const roles_module_1 = require("../roles/roles.module");
14
+ const users_module_1 = require("../users/users.module");
15
+ const refresh_token_entity_1 = require("./entities/refresh-token.entity");
16
+ const token_service_1 = require("./services/token.service");
17
+ let SessionsModule = class SessionsModule {
18
+ };
19
+ exports.SessionsModule = SessionsModule;
20
+ exports.SessionsModule = SessionsModule = __decorate([
21
+ (0, common_1.Module)({
22
+ imports: [
23
+ typeorm_1.TypeOrmModule.forFeature([refresh_token_entity_1.RefreshToken]),
24
+ roles_module_1.RolesModule,
25
+ auth_core_module_1.AuthCoreModule,
26
+ (0, common_1.forwardRef)(() => users_module_1.UsersModule),
27
+ ],
28
+ providers: [token_service_1.TokenService],
29
+ exports: [token_service_1.TokenService],
30
+ })
31
+ ], SessionsModule);
32
+ //# sourceMappingURL=sessions.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.module.js","sourceRoot":"","sources":["../../../src/modules/sessions/sessions.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAEhD,yEAAoE;AACpE,wDAAoD;AACpD,wDAAoD;AACpD,0EAA+D;AAC/D,4DAAwD;AAYjD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAV1B,IAAA,eAAM,EAAC;QACP,OAAO,EAAE;YACR,uBAAa,CAAC,UAAU,CAAC,CAAC,mCAAY,CAAC,CAAC;YACxC,0BAAW;YACX,iCAAc;YACd,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;SAC7B;QACD,SAAS,EAAE,CAAC,4BAAY,CAAC;QACzB,OAAO,EAAE,CAAC,4BAAY,CAAC;KACvB,CAAC;GACW,cAAc,CAAG"}