@carlonicora/nestjs-neo4jsonapi 1.115.1 → 1.117.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 (437) hide show
  1. package/dist/bootstrap/app.module.factory.d.ts.map +1 -1
  2. package/dist/bootstrap/app.module.factory.js +1 -0
  3. package/dist/bootstrap/app.module.factory.js.map +1 -1
  4. package/dist/bootstrap/bootstrap.options.d.ts +17 -0
  5. package/dist/bootstrap/bootstrap.options.d.ts.map +1 -1
  6. package/dist/common/guards/jwt.auth.admin.guard.d.ts +3 -2
  7. package/dist/common/guards/jwt.auth.admin.guard.d.ts.map +1 -1
  8. package/dist/common/guards/jwt.auth.admin.guard.js +19 -4
  9. package/dist/common/guards/jwt.auth.admin.guard.js.map +1 -1
  10. package/dist/common/guards/jwt.auth.guard.d.ts +3 -2
  11. package/dist/common/guards/jwt.auth.guard.d.ts.map +1 -1
  12. package/dist/common/guards/jwt.auth.guard.js +7 -2
  13. package/dist/common/guards/jwt.auth.guard.js.map +1 -1
  14. package/dist/common/interfaces/entity.schema.interface.d.ts +2 -0
  15. package/dist/common/interfaces/entity.schema.interface.d.ts.map +1 -1
  16. package/dist/common/tokens.d.ts +68 -0
  17. package/dist/common/tokens.d.ts.map +1 -1
  18. package/dist/common/tokens.js +37 -2
  19. package/dist/common/tokens.js.map +1 -1
  20. package/dist/config/base.config.d.ts.map +1 -1
  21. package/dist/config/base.config.js +9 -0
  22. package/dist/config/base.config.js.map +1 -1
  23. package/dist/config/enums/queue.id.d.ts +2 -1
  24. package/dist/config/enums/queue.id.d.ts.map +1 -1
  25. package/dist/config/enums/queue.id.js +1 -0
  26. package/dist/config/enums/queue.id.js.map +1 -1
  27. package/dist/config/interfaces/base.config.interface.d.ts +2 -0
  28. package/dist/config/interfaces/base.config.interface.d.ts.map +1 -1
  29. package/dist/config/interfaces/config.ai.interface.d.ts +8 -0
  30. package/dist/config/interfaces/config.ai.interface.d.ts.map +1 -1
  31. package/dist/config/interfaces/config.auth.interface.d.ts +7 -0
  32. package/dist/config/interfaces/config.auth.interface.d.ts.map +1 -1
  33. package/dist/config/interfaces/config.credits.interface.d.ts +24 -0
  34. package/dist/config/interfaces/config.credits.interface.d.ts.map +1 -0
  35. package/dist/{foundations/auth/entities/auth.entity.js → config/interfaces/config.credits.interface.js} +1 -1
  36. package/dist/config/interfaces/config.credits.interface.js.map +1 -0
  37. package/dist/config/interfaces/config.email.interface.d.ts +6 -0
  38. package/dist/config/interfaces/config.email.interface.d.ts.map +1 -1
  39. package/dist/config/interfaces/index.d.ts +1 -0
  40. package/dist/config/interfaces/index.d.ts.map +1 -1
  41. package/dist/config/interfaces/index.js +1 -0
  42. package/dist/config/interfaces/index.js.map +1 -1
  43. package/dist/core/email/services/email.service.d.ts +1 -0
  44. package/dist/core/email/services/email.service.d.ts.map +1 -1
  45. package/dist/core/email/services/email.service.js +10 -7
  46. package/dist/core/email/services/email.service.js.map +1 -1
  47. package/dist/core/llm/services/embedder.service.d.ts +36 -2
  48. package/dist/core/llm/services/embedder.service.d.ts.map +1 -1
  49. package/dist/core/llm/services/embedder.service.js +87 -7
  50. package/dist/core/llm/services/embedder.service.js.map +1 -1
  51. package/dist/core/llm/services/llm.service.d.ts +9 -1
  52. package/dist/core/llm/services/llm.service.d.ts.map +1 -1
  53. package/dist/core/llm/services/llm.service.js +13 -3
  54. package/dist/core/llm/services/llm.service.js.map +1 -1
  55. package/dist/core/neo4j/abstracts/abstract.repository.d.ts.map +1 -1
  56. package/dist/core/neo4j/abstracts/abstract.repository.js +33 -2
  57. package/dist/core/neo4j/abstracts/abstract.repository.js.map +1 -1
  58. package/dist/foundations/auth/auth.module.d.ts.map +1 -1
  59. package/dist/foundations/auth/auth.module.js +9 -10
  60. package/dist/foundations/auth/auth.module.js.map +1 -1
  61. package/dist/foundations/auth/controllers/auth.controller.d.ts.map +1 -1
  62. package/dist/foundations/auth/controllers/auth.controller.js +5 -0
  63. package/dist/foundations/auth/controllers/auth.controller.js.map +1 -1
  64. package/dist/foundations/auth/controllers/auth.discord.controller.d.ts.map +1 -1
  65. package/dist/foundations/auth/controllers/auth.discord.controller.js +6 -3
  66. package/dist/foundations/auth/controllers/auth.discord.controller.js.map +1 -1
  67. package/dist/foundations/auth/controllers/auth.google.controller.d.ts.map +1 -1
  68. package/dist/foundations/auth/controllers/auth.google.controller.js +7 -3
  69. package/dist/foundations/auth/controllers/auth.google.controller.js.map +1 -1
  70. package/dist/foundations/auth/entities/auth.code.d.ts +34 -0
  71. package/dist/foundations/auth/entities/auth.code.d.ts.map +1 -0
  72. package/dist/foundations/auth/entities/auth.code.js +53 -0
  73. package/dist/foundations/auth/entities/auth.code.js.map +1 -0
  74. package/dist/foundations/auth/entities/auth.d.ts +41 -0
  75. package/dist/foundations/auth/entities/auth.d.ts.map +1 -0
  76. package/dist/foundations/auth/entities/auth.js +68 -0
  77. package/dist/foundations/auth/entities/auth.js.map +1 -0
  78. package/dist/foundations/auth/entities/pending-auth.d.ts +39 -0
  79. package/dist/foundations/auth/entities/pending-auth.d.ts.map +1 -0
  80. package/dist/foundations/auth/entities/pending-auth.js +41 -0
  81. package/dist/foundations/auth/entities/pending-auth.js.map +1 -0
  82. package/dist/foundations/auth/index.d.ts +13 -0
  83. package/dist/foundations/auth/index.d.ts.map +1 -1
  84. package/dist/foundations/auth/index.js +31 -1
  85. package/dist/foundations/auth/index.js.map +1 -1
  86. package/dist/foundations/auth/repositories/auth.repository.d.ts +49 -9
  87. package/dist/foundations/auth/repositories/auth.repository.d.ts.map +1 -1
  88. package/dist/foundations/auth/repositories/auth.repository.js +115 -63
  89. package/dist/foundations/auth/repositories/auth.repository.js.map +1 -1
  90. package/dist/foundations/auth/services/auth.discord.service.d.ts +1 -1
  91. package/dist/foundations/auth/services/auth.discord.service.d.ts.map +1 -1
  92. package/dist/foundations/auth/services/auth.discord.service.js +5 -2
  93. package/dist/foundations/auth/services/auth.discord.service.js.map +1 -1
  94. package/dist/foundations/auth/services/auth.google.service.d.ts +1 -1
  95. package/dist/foundations/auth/services/auth.google.service.d.ts.map +1 -1
  96. package/dist/foundations/auth/services/auth.google.service.js +6 -2
  97. package/dist/foundations/auth/services/auth.google.service.js.map +1 -1
  98. package/dist/foundations/auth/services/auth.service.d.ts +42 -7
  99. package/dist/foundations/auth/services/auth.service.d.ts.map +1 -1
  100. package/dist/foundations/auth/services/auth.service.js +140 -77
  101. package/dist/foundations/auth/services/auth.service.js.map +1 -1
  102. package/dist/foundations/company/dtos/company.post.dto.d.ts +3 -3
  103. package/dist/foundations/company/dtos/company.post.dto.d.ts.map +1 -1
  104. package/dist/foundations/company/dtos/company.post.dto.js +3 -3
  105. package/dist/foundations/company/dtos/company.post.dto.js.map +1 -1
  106. package/dist/foundations/company/dtos/company.put.dto.d.ts +3 -3
  107. package/dist/foundations/company/dtos/company.put.dto.d.ts.map +1 -1
  108. package/dist/foundations/company/dtos/company.put.dto.js +3 -3
  109. package/dist/foundations/company/dtos/company.put.dto.js.map +1 -1
  110. package/dist/foundations/company/entities/company.d.ts +4 -4
  111. package/dist/foundations/company/entities/company.d.ts.map +1 -1
  112. package/dist/foundations/company/entities/company.js +18 -4
  113. package/dist/foundations/company/entities/company.js.map +1 -1
  114. package/dist/foundations/company/index.d.ts +5 -0
  115. package/dist/foundations/company/index.d.ts.map +1 -1
  116. package/dist/foundations/company/index.js +16 -1
  117. package/dist/foundations/company/index.js.map +1 -1
  118. package/dist/foundations/company/processors/company.processor.js +1 -1
  119. package/dist/foundations/company/processors/company.processor.js.map +1 -1
  120. package/dist/foundations/company/repositories/company.repository.d.ts +96 -33
  121. package/dist/foundations/company/repositories/company.repository.d.ts.map +1 -1
  122. package/dist/foundations/company/repositories/company.repository.js +125 -95
  123. package/dist/foundations/company/repositories/company.repository.js.map +1 -1
  124. package/dist/foundations/company/services/company.service.d.ts +52 -13
  125. package/dist/foundations/company/services/company.service.d.ts.map +1 -1
  126. package/dist/foundations/company/services/company.service.js +62 -39
  127. package/dist/foundations/company/services/company.service.js.map +1 -1
  128. package/dist/foundations/content/content.module.d.ts +20 -8
  129. package/dist/foundations/content/content.module.d.ts.map +1 -1
  130. package/dist/foundations/content/content.module.js +40 -24
  131. package/dist/foundations/content/content.module.js.map +1 -1
  132. package/dist/foundations/content/controllers/content.controller.d.ts +1 -1
  133. package/dist/foundations/content/controllers/content.controller.d.ts.map +1 -1
  134. package/dist/foundations/content/controllers/content.controller.js +2 -2
  135. package/dist/foundations/content/controllers/content.controller.js.map +1 -1
  136. package/dist/foundations/content/entities/content.d.ts +74 -0
  137. package/dist/foundations/content/entities/content.d.ts.map +1 -0
  138. package/dist/foundations/content/entities/content.js +141 -0
  139. package/dist/foundations/content/entities/content.js.map +1 -0
  140. package/dist/foundations/content/index.d.ts +2 -4
  141. package/dist/foundations/content/index.d.ts.map +1 -1
  142. package/dist/foundations/content/index.js +6 -5
  143. package/dist/foundations/content/index.js.map +1 -1
  144. package/dist/foundations/content/interfaces/content.extension.interface.d.ts +126 -0
  145. package/dist/foundations/content/interfaces/content.extension.interface.d.ts.map +1 -1
  146. package/dist/foundations/content/interfaces/content.extension.interface.js +7 -1
  147. package/dist/foundations/content/interfaces/content.extension.interface.js.map +1 -1
  148. package/dist/foundations/content/repositories/content.repository.d.ts +14 -7
  149. package/dist/foundations/content/repositories/content.repository.d.ts.map +1 -1
  150. package/dist/foundations/content/repositories/content.repository.js +18 -16
  151. package/dist/foundations/content/repositories/content.repository.js.map +1 -1
  152. package/dist/foundations/content/services/content.cypher.service.d.ts +19 -0
  153. package/dist/foundations/content/services/content.cypher.service.d.ts.map +1 -1
  154. package/dist/foundations/content/services/content.cypher.service.js +65 -4
  155. package/dist/foundations/content/services/content.cypher.service.js.map +1 -1
  156. package/dist/foundations/content/services/content.service.js +4 -4
  157. package/dist/foundations/content/services/content.service.js.map +1 -1
  158. package/dist/foundations/discord-user/services/discord-user.service.js +2 -2
  159. package/dist/foundations/discord-user/services/discord-user.service.js.map +1 -1
  160. package/dist/foundations/feature/entities/feature.d.ts +32 -0
  161. package/dist/foundations/feature/entities/feature.d.ts.map +1 -0
  162. package/dist/foundations/feature/entities/feature.js +64 -0
  163. package/dist/foundations/feature/entities/feature.js.map +1 -0
  164. package/dist/foundations/feature/entities/feature.model.d.ts +1 -3
  165. package/dist/foundations/feature/entities/feature.model.d.ts.map +1 -1
  166. package/dist/foundations/feature/entities/feature.model.js +3 -11
  167. package/dist/foundations/feature/entities/feature.model.js.map +1 -1
  168. package/dist/foundations/feature/feature.module.d.ts.map +1 -1
  169. package/dist/foundations/feature/feature.module.js +4 -5
  170. package/dist/foundations/feature/feature.module.js.map +1 -1
  171. package/dist/foundations/feature/index.d.ts +12 -0
  172. package/dist/foundations/feature/index.d.ts.map +1 -1
  173. package/dist/foundations/feature/index.js +22 -1
  174. package/dist/foundations/feature/index.js.map +1 -1
  175. package/dist/foundations/feature/repositories/feature.repository.d.ts +37 -13
  176. package/dist/foundations/feature/repositories/feature.repository.d.ts.map +1 -1
  177. package/dist/foundations/feature/repositories/feature.repository.js +41 -35
  178. package/dist/foundations/feature/repositories/feature.repository.js.map +1 -1
  179. package/dist/foundations/feature/services/feature.service.d.ts +31 -4
  180. package/dist/foundations/feature/services/feature.service.d.ts.map +1 -1
  181. package/dist/foundations/feature/services/feature.service.js +20 -12
  182. package/dist/foundations/feature/services/feature.service.js.map +1 -1
  183. package/dist/foundations/foundations.modules.d.ts +6 -0
  184. package/dist/foundations/foundations.modules.d.ts.map +1 -1
  185. package/dist/foundations/foundations.modules.js +14 -3
  186. package/dist/foundations/foundations.modules.js.map +1 -1
  187. package/dist/foundations/google-user/services/google-user.service.js +2 -2
  188. package/dist/foundations/google-user/services/google-user.service.js.map +1 -1
  189. package/dist/foundations/index.d.ts +3 -0
  190. package/dist/foundations/index.d.ts.map +1 -1
  191. package/dist/foundations/index.js +3 -0
  192. package/dist/foundations/index.js.map +1 -1
  193. package/dist/foundations/membership/entities/membership.d.ts.map +1 -1
  194. package/dist/foundations/membership/entities/membership.js +4 -0
  195. package/dist/foundations/membership/entities/membership.js.map +1 -1
  196. package/dist/foundations/notification/controllers/notification.controller.js +2 -2
  197. package/dist/foundations/notification/controllers/notification.controller.js.map +1 -1
  198. package/dist/foundations/notification/entities/notification.d.ts +75 -0
  199. package/dist/foundations/notification/entities/notification.d.ts.map +1 -0
  200. package/dist/foundations/notification/entities/notification.js +73 -0
  201. package/dist/foundations/notification/entities/notification.js.map +1 -0
  202. package/dist/foundations/notification/index.d.ts +6 -2
  203. package/dist/foundations/notification/index.d.ts.map +1 -1
  204. package/dist/foundations/notification/index.js +17 -3
  205. package/dist/foundations/notification/index.js.map +1 -1
  206. package/dist/foundations/notification/notification.module.d.ts.map +1 -1
  207. package/dist/foundations/notification/notification.module.js +3 -4
  208. package/dist/foundations/notification/notification.module.js.map +1 -1
  209. package/dist/foundations/notification/repositories/notification.repository.d.ts +125 -8
  210. package/dist/foundations/notification/repositories/notification.repository.d.ts.map +1 -1
  211. package/dist/foundations/notification/repositories/notification.repository.js +219 -20
  212. package/dist/foundations/notification/repositories/notification.repository.js.map +1 -1
  213. package/dist/foundations/notification/services/notification.service.d.ts +31 -5
  214. package/dist/foundations/notification/services/notification.service.d.ts.map +1 -1
  215. package/dist/foundations/notification/services/notification.service.js +26 -9
  216. package/dist/foundations/notification/services/notification.service.js.map +1 -1
  217. package/dist/foundations/rbac/dump.d.ts +48 -4
  218. package/dist/foundations/rbac/dump.d.ts.map +1 -1
  219. package/dist/foundations/rbac/dump.js +28 -4
  220. package/dist/foundations/rbac/dump.js.map +1 -1
  221. package/dist/foundations/rbac/serializer/matrix-to-ts.d.ts +14 -0
  222. package/dist/foundations/rbac/serializer/matrix-to-ts.d.ts.map +1 -1
  223. package/dist/foundations/rbac/serializer/matrix-to-ts.js +13 -3
  224. package/dist/foundations/rbac/serializer/matrix-to-ts.js.map +1 -1
  225. package/dist/foundations/referral/services/referral.service.js +4 -4
  226. package/dist/foundations/referral/services/referral.service.js.map +1 -1
  227. package/dist/foundations/relevancy/repositories/relevancy.repository.d.ts.map +1 -1
  228. package/dist/foundations/relevancy/repositories/relevancy.repository.js +13 -1
  229. package/dist/foundations/relevancy/repositories/relevancy.repository.js.map +1 -1
  230. package/dist/foundations/role/entities/role.d.ts +1 -1
  231. package/dist/foundations/role/entities/role.d.ts.map +1 -1
  232. package/dist/foundations/stripe/index.d.ts +3 -0
  233. package/dist/foundations/stripe/index.d.ts.map +1 -1
  234. package/dist/foundations/stripe/index.js +6 -0
  235. package/dist/foundations/stripe/index.js.map +1 -1
  236. package/dist/foundations/stripe-price/entities/stripe-price.entity.d.ts +1 -1
  237. package/dist/foundations/stripe-price/entities/stripe-price.entity.d.ts.map +1 -1
  238. package/dist/foundations/stripe-subscription/services/token-allocation.service.d.ts +1 -1
  239. package/dist/foundations/stripe-subscription/services/token-allocation.service.js +10 -10
  240. package/dist/foundations/stripe-subscription/services/token-allocation.service.js.map +1 -1
  241. package/dist/foundations/stripe-trial/services/trial.service.js +2 -2
  242. package/dist/foundations/stripe-trial/services/trial.service.js.map +1 -1
  243. package/dist/foundations/stripe-webhook/processors/stripe-webhook.processor.js +2 -2
  244. package/dist/foundations/stripe-webhook/processors/stripe-webhook.processor.js.map +1 -1
  245. package/dist/foundations/tokenusage/entities/tokenusage.d.ts +50 -0
  246. package/dist/foundations/tokenusage/entities/tokenusage.d.ts.map +1 -0
  247. package/dist/foundations/tokenusage/entities/tokenusage.js +68 -0
  248. package/dist/foundations/tokenusage/entities/tokenusage.js.map +1 -0
  249. package/dist/foundations/tokenusage/enums/tokenusage.type.d.ts +2 -1
  250. package/dist/foundations/tokenusage/enums/tokenusage.type.d.ts.map +1 -1
  251. package/dist/foundations/tokenusage/enums/tokenusage.type.js +1 -0
  252. package/dist/foundations/tokenusage/enums/tokenusage.type.js.map +1 -1
  253. package/dist/foundations/tokenusage/events/tokenusage.events.d.ts +2 -0
  254. package/dist/foundations/tokenusage/events/tokenusage.events.d.ts.map +1 -1
  255. package/dist/foundations/tokenusage/index.d.ts +3 -3
  256. package/dist/foundations/tokenusage/index.d.ts.map +1 -1
  257. package/dist/foundations/tokenusage/index.js +5 -3
  258. package/dist/foundations/tokenusage/index.js.map +1 -1
  259. package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts +90 -5
  260. package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts.map +1 -1
  261. package/dist/foundations/tokenusage/repositories/tokenusage.repository.js +165 -14
  262. package/dist/foundations/tokenusage/repositories/tokenusage.repository.js.map +1 -1
  263. package/dist/foundations/tokenusage/services/tokenusage.service.d.ts +73 -10
  264. package/dist/foundations/tokenusage/services/tokenusage.service.d.ts.map +1 -1
  265. package/dist/foundations/tokenusage/services/tokenusage.service.js +88 -8
  266. package/dist/foundations/tokenusage/services/tokenusage.service.js.map +1 -1
  267. package/dist/foundations/tokenusage/tokenusage.module.js +3 -3
  268. package/dist/foundations/tokenusage/tokenusage.module.js.map +1 -1
  269. package/dist/foundations/user/controllers/user.controller.js +4 -4
  270. package/dist/foundations/user/controllers/user.controller.js.map +1 -1
  271. package/dist/foundations/user/dtos/user.put.dto.d.ts +1 -1
  272. package/dist/foundations/user/dtos/user.put.dto.d.ts.map +1 -1
  273. package/dist/foundations/user/dtos/user.put.dto.js +1 -1
  274. package/dist/foundations/user/dtos/user.put.dto.js.map +1 -1
  275. package/dist/foundations/user/entities/user.d.ts +4 -0
  276. package/dist/foundations/user/entities/user.d.ts.map +1 -1
  277. package/dist/foundations/user/entities/user.js +18 -4
  278. package/dist/foundations/user/entities/user.js.map +1 -1
  279. package/dist/foundations/user/index.d.ts +6 -1
  280. package/dist/foundations/user/index.d.ts.map +1 -1
  281. package/dist/foundations/user/index.js +13 -1
  282. package/dist/foundations/user/index.js.map +1 -1
  283. package/dist/foundations/user/repositories/user.repository.d.ts +56 -11
  284. package/dist/foundations/user/repositories/user.repository.d.ts.map +1 -1
  285. package/dist/foundations/user/repositories/user.repository.js +55 -35
  286. package/dist/foundations/user/repositories/user.repository.js.map +1 -1
  287. package/dist/foundations/user/services/user.service.d.ts +48 -9
  288. package/dist/foundations/user/services/user.service.d.ts.map +1 -1
  289. package/dist/foundations/user/services/user.service.js +50 -32
  290. package/dist/foundations/user/services/user.service.js.map +1 -1
  291. package/dist/foundations/user-activity/entities/user-activity.d.ts +36 -0
  292. package/dist/foundations/user-activity/entities/user-activity.d.ts.map +1 -0
  293. package/dist/foundations/user-activity/entities/user-activity.js +86 -0
  294. package/dist/foundations/user-activity/entities/user-activity.js.map +1 -0
  295. package/dist/foundations/user-activity/entities/user-activity.meta.d.ts +3 -0
  296. package/dist/foundations/user-activity/entities/user-activity.meta.d.ts.map +1 -0
  297. package/dist/foundations/user-activity/entities/user-activity.meta.js +10 -0
  298. package/dist/foundations/user-activity/entities/user-activity.meta.js.map +1 -0
  299. package/dist/foundations/user-activity/index.d.ts +10 -0
  300. package/dist/foundations/user-activity/index.d.ts.map +1 -0
  301. package/dist/foundations/user-activity/index.js +22 -0
  302. package/dist/foundations/user-activity/index.js.map +1 -0
  303. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.d.ts +29 -0
  304. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.d.ts.map +1 -0
  305. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.js +98 -0
  306. package/dist/foundations/user-activity/interceptors/user-activity.interceptor.js.map +1 -0
  307. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.d.ts +67 -0
  308. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.d.ts.map +1 -0
  309. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.js +26 -0
  310. package/dist/foundations/user-activity/interfaces/user-activity.config.interface.js.map +1 -0
  311. package/dist/foundations/user-activity/interfaces/user-activity.record.input.d.ts +18 -0
  312. package/dist/foundations/user-activity/interfaces/user-activity.record.input.d.ts.map +1 -0
  313. package/dist/foundations/{auth/entities/pending-auth.entity.js → user-activity/interfaces/user-activity.record.input.js} +1 -1
  314. package/dist/foundations/user-activity/interfaces/user-activity.record.input.js.map +1 -0
  315. package/dist/foundations/user-activity/processors/user-activity.processor.d.ts +25 -0
  316. package/dist/foundations/user-activity/processors/user-activity.processor.d.ts.map +1 -0
  317. package/dist/foundations/user-activity/processors/user-activity.processor.js +74 -0
  318. package/dist/foundations/user-activity/processors/user-activity.processor.js.map +1 -0
  319. package/dist/foundations/user-activity/repositories/user-activity.repository.d.ts +47 -0
  320. package/dist/foundations/user-activity/repositories/user-activity.repository.d.ts.map +1 -0
  321. package/dist/foundations/user-activity/repositories/user-activity.repository.js +124 -0
  322. package/dist/foundations/user-activity/repositories/user-activity.repository.js.map +1 -0
  323. package/dist/foundations/user-activity/services/user-activity.service.d.ts +29 -0
  324. package/dist/foundations/user-activity/services/user-activity.service.d.ts.map +1 -0
  325. package/dist/foundations/user-activity/services/user-activity.service.js +61 -0
  326. package/dist/foundations/user-activity/services/user-activity.service.js.map +1 -0
  327. package/dist/foundations/user-activity/user-activity.module.d.ts +40 -0
  328. package/dist/foundations/user-activity/user-activity.module.d.ts.map +1 -0
  329. package/dist/foundations/user-activity/user-activity.module.js +99 -0
  330. package/dist/foundations/user-activity/user-activity.module.js.map +1 -0
  331. package/package.json +2 -1
  332. package/dist/foundations/auth/entities/auth.code.entity.d.ts +0 -7
  333. package/dist/foundations/auth/entities/auth.code.entity.d.ts.map +0 -1
  334. package/dist/foundations/auth/entities/auth.code.entity.js +0 -3
  335. package/dist/foundations/auth/entities/auth.code.entity.js.map +0 -1
  336. package/dist/foundations/auth/entities/auth.code.map.d.ts +0 -8
  337. package/dist/foundations/auth/entities/auth.code.map.d.ts.map +0 -1
  338. package/dist/foundations/auth/entities/auth.code.map.js +0 -13
  339. package/dist/foundations/auth/entities/auth.code.map.js.map +0 -1
  340. package/dist/foundations/auth/entities/auth.code.model.d.ts +0 -4
  341. package/dist/foundations/auth/entities/auth.code.model.d.ts.map +0 -1
  342. package/dist/foundations/auth/entities/auth.code.model.js +0 -13
  343. package/dist/foundations/auth/entities/auth.code.model.js.map +0 -1
  344. package/dist/foundations/auth/entities/auth.entity.d.ts +0 -18
  345. package/dist/foundations/auth/entities/auth.entity.d.ts.map +0 -1
  346. package/dist/foundations/auth/entities/auth.entity.js.map +0 -1
  347. package/dist/foundations/auth/entities/auth.map.d.ts +0 -8
  348. package/dist/foundations/auth/entities/auth.map.d.ts.map +0 -1
  349. package/dist/foundations/auth/entities/auth.map.js +0 -14
  350. package/dist/foundations/auth/entities/auth.map.js.map +0 -1
  351. package/dist/foundations/auth/entities/auth.model.d.ts +0 -4
  352. package/dist/foundations/auth/entities/auth.model.d.ts.map +0 -1
  353. package/dist/foundations/auth/entities/auth.model.js +0 -15
  354. package/dist/foundations/auth/entities/auth.model.js.map +0 -1
  355. package/dist/foundations/auth/entities/pending-auth.entity.d.ts +0 -16
  356. package/dist/foundations/auth/entities/pending-auth.entity.d.ts.map +0 -1
  357. package/dist/foundations/auth/entities/pending-auth.entity.js.map +0 -1
  358. package/dist/foundations/auth/entities/pending-auth.map.d.ts +0 -6
  359. package/dist/foundations/auth/entities/pending-auth.map.d.ts.map +0 -1
  360. package/dist/foundations/auth/entities/pending-auth.map.js +0 -20
  361. package/dist/foundations/auth/entities/pending-auth.map.js.map +0 -1
  362. package/dist/foundations/auth/entities/pending-auth.model.d.ts +0 -9
  363. package/dist/foundations/auth/entities/pending-auth.model.d.ts.map +0 -1
  364. package/dist/foundations/auth/entities/pending-auth.model.js +0 -19
  365. package/dist/foundations/auth/entities/pending-auth.model.js.map +0 -1
  366. package/dist/foundations/auth/serialisers/auth.serialiser.d.ts +0 -13
  367. package/dist/foundations/auth/serialisers/auth.serialiser.d.ts.map +0 -1
  368. package/dist/foundations/auth/serialisers/auth.serialiser.js +0 -52
  369. package/dist/foundations/auth/serialisers/auth.serialiser.js.map +0 -1
  370. package/dist/foundations/auth/serialisers/pending-auth.serialiser.d.ts +0 -18
  371. package/dist/foundations/auth/serialisers/pending-auth.serialiser.d.ts.map +0 -1
  372. package/dist/foundations/auth/serialisers/pending-auth.serialiser.js +0 -49
  373. package/dist/foundations/auth/serialisers/pending-auth.serialiser.js.map +0 -1
  374. package/dist/foundations/content/entities/content.entity.d.ts +0 -31
  375. package/dist/foundations/content/entities/content.entity.d.ts.map +0 -1
  376. package/dist/foundations/content/entities/content.entity.js +0 -3
  377. package/dist/foundations/content/entities/content.entity.js.map +0 -1
  378. package/dist/foundations/content/entities/content.map.d.ts +0 -8
  379. package/dist/foundations/content/entities/content.map.d.ts.map +0 -1
  380. package/dist/foundations/content/entities/content.map.js +0 -19
  381. package/dist/foundations/content/entities/content.map.js.map +0 -1
  382. package/dist/foundations/content/entities/content.model.d.ts +0 -4
  383. package/dist/foundations/content/entities/content.model.d.ts.map +0 -1
  384. package/dist/foundations/content/entities/content.model.js +0 -16
  385. package/dist/foundations/content/entities/content.model.js.map +0 -1
  386. package/dist/foundations/content/factories/content.model.factory.d.ts +0 -17
  387. package/dist/foundations/content/factories/content.model.factory.d.ts.map +0 -1
  388. package/dist/foundations/content/factories/content.model.factory.js +0 -65
  389. package/dist/foundations/content/factories/content.model.factory.js.map +0 -1
  390. package/dist/foundations/content/serialisers/content.serialiser.d.ts +0 -14
  391. package/dist/foundations/content/serialisers/content.serialiser.d.ts.map +0 -1
  392. package/dist/foundations/content/serialisers/content.serialiser.js +0 -78
  393. package/dist/foundations/content/serialisers/content.serialiser.js.map +0 -1
  394. package/dist/foundations/feature/entities/feature.entity.d.ts +0 -8
  395. package/dist/foundations/feature/entities/feature.entity.d.ts.map +0 -1
  396. package/dist/foundations/feature/entities/feature.entity.js +0 -3
  397. package/dist/foundations/feature/entities/feature.entity.js.map +0 -1
  398. package/dist/foundations/feature/entities/feature.map.d.ts +0 -8
  399. package/dist/foundations/feature/entities/feature.map.d.ts.map +0 -1
  400. package/dist/foundations/feature/entities/feature.map.js +0 -14
  401. package/dist/foundations/feature/entities/feature.map.js.map +0 -1
  402. package/dist/foundations/feature/serialisers/feature.serialiser.d.ts +0 -12
  403. package/dist/foundations/feature/serialisers/feature.serialiser.d.ts.map +0 -1
  404. package/dist/foundations/feature/serialisers/feature.serialiser.js +0 -45
  405. package/dist/foundations/feature/serialisers/feature.serialiser.js.map +0 -1
  406. package/dist/foundations/notification/entities/notification.entity.d.ts +0 -10
  407. package/dist/foundations/notification/entities/notification.entity.d.ts.map +0 -1
  408. package/dist/foundations/notification/entities/notification.entity.js +0 -3
  409. package/dist/foundations/notification/entities/notification.entity.js.map +0 -1
  410. package/dist/foundations/notification/entities/notification.map.d.ts +0 -8
  411. package/dist/foundations/notification/entities/notification.map.d.ts.map +0 -1
  412. package/dist/foundations/notification/entities/notification.map.js +0 -16
  413. package/dist/foundations/notification/entities/notification.map.js.map +0 -1
  414. package/dist/foundations/notification/entities/notification.model.d.ts +0 -4
  415. package/dist/foundations/notification/entities/notification.model.d.ts.map +0 -1
  416. package/dist/foundations/notification/entities/notification.model.js +0 -15
  417. package/dist/foundations/notification/entities/notification.model.js.map +0 -1
  418. package/dist/foundations/notification/interfaces/notification.service.interface.d.ts +0 -4
  419. package/dist/foundations/notification/interfaces/notification.service.interface.d.ts.map +0 -1
  420. package/dist/foundations/notification/interfaces/notification.service.interface.js +0 -3
  421. package/dist/foundations/notification/interfaces/notification.service.interface.js.map +0 -1
  422. package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts +0 -12
  423. package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts.map +0 -1
  424. package/dist/foundations/notification/serialisers/notifications.serialiser.js +0 -47
  425. package/dist/foundations/notification/serialisers/notifications.serialiser.js.map +0 -1
  426. package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts +0 -11
  427. package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts.map +0 -1
  428. package/dist/foundations/tokenusage/entities/tokenusage.entity.js +0 -3
  429. package/dist/foundations/tokenusage/entities/tokenusage.entity.js.map +0 -1
  430. package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts +0 -8
  431. package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts.map +0 -1
  432. package/dist/foundations/tokenusage/entities/tokenusage.map.js +0 -17
  433. package/dist/foundations/tokenusage/entities/tokenusage.map.js.map +0 -1
  434. package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts +0 -4
  435. package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts.map +0 -1
  436. package/dist/foundations/tokenusage/entities/tokenusage.model.js +0 -15
  437. package/dist/foundations/tokenusage/entities/tokenusage.model.js.map +0 -1
@@ -14,6 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AuthController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
+ const throttler_1 = require("@nestjs/throttler");
17
18
  const jwt_auth_guard_1 = require("../../../common/guards/jwt.auth.guard");
18
19
  const auth_post_forgot_dto_1 = require("../../auth/dtos/auth.post.forgot.dto");
19
20
  const auth_post_login_dto_1 = require("../../auth/dtos/auth.post.login.dto");
@@ -91,6 +92,7 @@ __decorate([
91
92
  __metadata("design:returntype", Promise)
92
93
  ], AuthController.prototype, "deleteSinglAuth", null);
93
94
  __decorate([
95
+ (0, throttler_1.Throttle)({ default: { limit: 5, ttl: 60000 }, ip: { limit: 5, ttl: 60000 } }),
94
96
  (0, common_1.Post)("login"),
95
97
  __param(0, (0, common_1.Body)()),
96
98
  __metadata("design:type", Function),
@@ -98,6 +100,7 @@ __decorate([
98
100
  __metadata("design:returntype", Promise)
99
101
  ], AuthController.prototype, "login", null);
100
102
  __decorate([
103
+ (0, throttler_1.Throttle)({ default: { limit: 3, ttl: 60000 }, ip: { limit: 3, ttl: 60000 } }),
101
104
  (0, common_1.Post)("register"),
102
105
  (0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
103
106
  __param(0, (0, common_1.Body)()),
@@ -106,6 +109,7 @@ __decorate([
106
109
  __metadata("design:returntype", Promise)
107
110
  ], AuthController.prototype, "register", null);
108
111
  __decorate([
112
+ (0, throttler_1.Throttle)({ default: { limit: 3, ttl: 60000 }, ip: { limit: 3, ttl: 60000 } }),
109
113
  (0, common_1.Post)("forgot"),
110
114
  (0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
111
115
  __param(0, (0, common_1.Body)()),
@@ -123,6 +127,7 @@ __decorate([
123
127
  __metadata("design:returntype", Promise)
124
128
  ], AuthController.prototype, "validateResetCode", null);
125
129
  __decorate([
130
+ (0, throttler_1.Throttle)({ default: { limit: 3, ttl: 60000 }, ip: { limit: 3, ttl: 60000 } }),
126
131
  (0, common_1.Post)("reset/:code"),
127
132
  (0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
128
133
  __param(0, (0, common_1.Body)()),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AAExB,0EAAqE;AACrE,+EAAyE;AACzE,6EAAuE;AACvE,mFAA6E;AAC7E,6FAAuF;AACvF,6DAAyD;AACzD,mEAA+D;AAGxD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAA6B,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IAAG,CAAC;IAG/C,AAAN,KAAK,CAAC,QAAQ,CAAgB,IAAY;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;IAGK,AAAN,KAAK,CAAC,YAAY,CAAwB,YAAoB;QAC5D,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;YACrC,YAAY,EAAE,YAAY;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,iEAAiE;IACjE,8EAA8E;IAC9E,6EAA6E;IAC7E,+DAA+D;IAKzD,AAAN,KAAK,CAAC,eAAe,CAAQ,OAAY;QACvC,MAAM,KAAK,GAAY,OAAO,CAAC,OAAO,CAAC,aAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CA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,CAAC;IACX,WAAA,IAAA,aAAI,GAAE,CAAA;IAAkC,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;qCAAxC,sDAAwB;;mDAEzD;AAIK;IAFL,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;IACR,WAAA,IAAA,aAAI,GAAE,CAAA;IAAkC,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;qCAAxC,sDAAwB;;sDAE5D;AAIK;IAFL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACtB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;IACT,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;qDAEnC;AAGK;IADL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IAEpB,WAAA,IAAA,aAAI,GAAE,CAAA;;;;+DASR;yBAhFU,cAAc;IAD1B,IAAA,mBAAU,EAAC,oBAAQ,CAAC,QAAQ,CAAC;qCAEU,0BAAW;GADtC,cAAc,CAiF1B"}
1
+ {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,iDAA6C;AAE7C,0EAAqE;AACrE,+EAAyE;AACzE,6EAAuE;AACvE,mFAA6E;AAC7E,6FAAuF;AACvF,6DAAyD;AACzD,mEAA+D;AAGxD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAA6B,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IAAG,CAAC;IAG/C,AAAN,KAAK,CAAC,QAAQ,CAAgB,IAAY;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;IAGK,AAAN,KAAK,CAAC,YAAY,CAAwB,YAAoB;QAC5D,OAAO,MAA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AU,CAAC;IACR,WAAA,IAAA,aAAI,GAAE,CAAA;IAAkC,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;qCAAxC,sDAAwB;;sDAE5D;AAIK;IAFL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACtB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;IACT,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;qDAEnC;AAGK;IADL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IAEpB,WAAA,IAAA,aAAI,GAAE,CAAA;;;;+DASR;yBApFU,cAAc;IAD1B,IAAA,mBAAU,EAAC,oBAAQ,CAAC,QAAQ,CAAC;qCAEU,0BAAW;GADtC,cAAc,CAqF1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth.discord.controller.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.discord.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,mBAAmB,EAA0B,MAAM,4BAA4B,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;IAGpE,OAAO,KAAK,aAAa,GAExB;IAGK,gBAAgB,CACb,KAAK,EAAE,YAAY,EACT,UAAU,CAAC,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM;IASpC,eAAe,CAAQ,KAAK,EAAE,YAAY,EAAiB,IAAI,EAAE,MAAM,EAAkB,KAAK,CAAC,EAAE,MAAM;CAiB9G"}
1
+ {"version":3,"file":"auth.discord.controller.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.discord.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAKvC,OAAO,EAAE,mBAAmB,EAA0B,MAAM,4BAA4B,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;IAGpE,OAAO,KAAK,aAAa,GAExB;IAGK,gBAAgB,CACb,KAAK,EAAE,YAAY,EACT,UAAU,CAAC,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM;IASpC,eAAe,CAAQ,KAAK,EAAE,YAAY,EAAiB,IAAI,EAAE,MAAM,EAAkB,KAAK,CAAC,EAAE,MAAM;CAiB9G"}
@@ -15,7 +15,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AuthDiscordController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const config_1 = require("@nestjs/config");
18
- const __1 = require("..");
18
+ // Direct file import, NOT the `..` barrel — same import-time cycle as
19
+ // auth.google.controller.ts: through the barrel, `authMeta` is undefined when
20
+ // the `@Get()` route decorators evaluate.
21
+ const auth_meta_1 = require("../entities/auth.meta");
19
22
  const auth_discord_service_1 = require("../services/auth.discord.service");
20
23
  let AuthDiscordController = class AuthDiscordController {
21
24
  constructor(authDiscordService, configService) {
@@ -47,7 +50,7 @@ let AuthDiscordController = class AuthDiscordController {
47
50
  };
48
51
  exports.AuthDiscordController = AuthDiscordController;
49
52
  __decorate([
50
- (0, common_1.Get)(`${__1.authMeta.endpoint}/discord`),
53
+ (0, common_1.Get)(`${auth_meta_1.authMeta.endpoint}/discord`),
51
54
  __param(0, (0, common_1.Res)()),
52
55
  __param(1, (0, common_1.Query)("invite")),
53
56
  __param(2, (0, common_1.Query)("referral")),
@@ -56,7 +59,7 @@ __decorate([
56
59
  __metadata("design:returntype", Promise)
57
60
  ], AuthDiscordController.prototype, "loginWithDiscord", null);
58
61
  __decorate([
59
- (0, common_1.Get)(`${__1.authMeta.endpoint}/callback/discord`),
62
+ (0, common_1.Get)(`${auth_meta_1.authMeta.endpoint}/callback/discord`),
60
63
  __param(0, (0, common_1.Res)()),
61
64
  __param(1, (0, common_1.Query)("code")),
62
65
  __param(2, (0, common_1.Query)("state")),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.discord.controller.js","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.discord.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwF;AACxF,2CAA+C;AAE/C,0BAA8B;AAG9B,2EAAsE;AAG/D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YACmB,kBAAsC,EACtC,aAAiD;QADjD,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAoC;IACjE,CAAC;IAEJ,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAyB,SAAS,CAAC,CAAC;IACnE,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACb,KAAmB,EACT,UAAmB,EACjB,YAAqB;QAExC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY;YAClE,MAAM,IAAI,sBAAa,CAAC,qCAAqC,EAAE,mBAAU,CAAC,eAAe,CAAC,CAAC;QAE7F,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC,CAAC;IAC1F,CAAC;IAGK,AAAN,KAAK,CAAC,e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"}
1
+ {"version":3,"file":"auth.discord.controller.js","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.discord.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwF;AACxF,2CAA+C;AAE/C,sEAAsE;AACtE,8EAA8E;AAC9E,0CAA0C;AAC1C,qDAAiD;AAGjD,2EAAsE;AAG/D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YACmB,kBAAsC,EACtC,aAAiD;QADjD,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAoC;IACjE,CAAC;IAEJ,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAyB,SAAS,CAAC,CAAC;IACnE,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACb,KAAmB,EACT,UAAmB,EACjB,YAAqB;QAExC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY;YAClE,MAAM,IAAI,sBAAa,CAAC,qCAAqC,EAAE,mBAAU,CAAC,eAAe,CAAC,CAAC;QAE7F,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC,CAAC;IAC1F,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,CAAQ,KAAmB,EAAiB,IAAY,EAAkB,KAAc;QAC3G,4DAA4D;QAC5D,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACpF,MAAM,UAAU,GAAG,SAAS,EAAE,MAAM,CAAC;QACrC,MAAM,YAAY,GAAG,SAAS,EAAE,QAAQ,CAAC;QAEzC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC7E,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAEhF,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC;YACnE,WAAW,EAAE,WAA0B;YACvC,UAAU;YACV,YAAY;SACb,CAAC,CAAC;QAEH,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AAxCY,sDAAqB;AAW1B;IADL,IAAA,YAAG,EAAC,GAAG,oBAAQ,CAAC,QAAQ,UAAU,CAAC;IAEjC,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;IACf,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;;;;6DAMnB;AAGK;IADL,IAAA,YAAG,EAAC,GAAG,oBAAQ,CAAC,QAAQ,mBAAmB,CAAC;IACtB,WAAA,IAAA,YAAG,GAAE,CAAA;IAAuB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,OAAO,CAAC,CAAA;;;;4DAgB7F;gCAvCU,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAG4B,yCAAkB;QACvB,sBAAa;GAHpC,qBAAqB,CAwCjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth.google.controller.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.google.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,mBAAmB,EAAyB,MAAM,4BAA4B,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,qBACa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;IAGpE,OAAO,KAAK,YAAY,GAEvB;IAGK,eAAe,CACZ,KAAK,EAAE,YAAY,EACT,UAAU,CAAC,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM;IASpC,cAAc,CAAQ,KAAK,EAAE,YAAY,EAAiB,IAAI,EAAE,MAAM,EAAkB,KAAK,EAAE,MAAM;CAiB5G"}
1
+ {"version":3,"file":"auth.google.controller.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.google.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,OAAO,EAAE,mBAAmB,EAAyB,MAAM,4BAA4B,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,qBACa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;IAGpE,OAAO,KAAK,YAAY,GAEvB;IAGK,eAAe,CACZ,KAAK,EAAE,YAAY,EACT,UAAU,CAAC,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM;IASpC,cAAc,CAAQ,KAAK,EAAE,YAAY,EAAiB,IAAI,EAAE,MAAM,EAAkB,KAAK,EAAE,MAAM;CAiB5G"}
@@ -15,7 +15,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AuthGoogleController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const config_1 = require("@nestjs/config");
18
- const __1 = require("..");
18
+ // Direct file import, NOT the `..` barrel: the barrel now exports this
19
+ // controller, so importing back through it creates a cycle in which
20
+ // `authMeta` is still uninitialised when the `@Get()` decorators evaluate
21
+ // ("Cannot read properties of undefined (reading 'endpoint')" at import time).
22
+ const auth_meta_1 = require("../entities/auth.meta");
19
23
  const auth_google_service_1 = require("../services/auth.google.service");
20
24
  let AuthGoogleController = class AuthGoogleController {
21
25
  constructor(authGoogleService, configService) {
@@ -47,7 +51,7 @@ let AuthGoogleController = class AuthGoogleController {
47
51
  };
48
52
  exports.AuthGoogleController = AuthGoogleController;
49
53
  __decorate([
50
- (0, common_1.Get)(`${__1.authMeta.endpoint}/google`),
54
+ (0, common_1.Get)(`${auth_meta_1.authMeta.endpoint}/google`),
51
55
  __param(0, (0, common_1.Res)()),
52
56
  __param(1, (0, common_1.Query)("invite")),
53
57
  __param(2, (0, common_1.Query)("referral")),
@@ -56,7 +60,7 @@ __decorate([
56
60
  __metadata("design:returntype", Promise)
57
61
  ], AuthGoogleController.prototype, "loginWithGoogle", null);
58
62
  __decorate([
59
- (0, common_1.Get)(`${__1.authMeta.endpoint}/callback/google`),
63
+ (0, common_1.Get)(`${auth_meta_1.authMeta.endpoint}/callback/google`),
60
64
  __param(0, (0, common_1.Res)()),
61
65
  __param(1, (0, common_1.Query)("code")),
62
66
  __param(2, (0, common_1.Query)("state")),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.google.controller.js","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.google.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwF;AACxF,2CAA+C;AAE/C,0BAA8B;AAG9B,yEAAoE;AAG7D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,iBAAoC,EACpC,aAAiD;QADjD,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,kBAAa,GAAb,aAAa,CAAoC;IACjE,CAAC;IAEJ,IAAY,YAAY;QACtB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAwB,QA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AAA;IACf,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;;;;2DAMnB;AAGK;IADL,IAAA,YAAG,EAAC,GAAG,YAAQ,CAAC,QAAQ,kBAAkB,CAAC;IACtB,WAAA,IAAA,YAAG,GAAE,CAAA;IAAuB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,OAAO,CAAC,CAAA;;;;0DAgB5F;+BAvCU,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAG2B,uCAAiB;QACrB,sBAAa;GAHpC,oBAAoB,CAwChC"}
1
+ {"version":3,"file":"auth.google.controller.js","sourceRoot":"","sources":["../../../../src/foundations/auth/controllers/auth.google.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwF;AACxF,2CAA+C;AAE/C,uEAAuE;AACvE,oEAAoE;AACpE,0EAA0E;AAC1E,+EAA+E;AAC/E,qDAAiD;AAGjD,yEAAoE;AAG7D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,iBAAoC,EACpC,aAAiD;QADjD,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,kBAAa,GAAb,aAAa,CAAoC;IACjE,CAAC;IAEJ,IAAY,YAAY;QACtB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAwB,QAAQ,CAAC,CAAC;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,CACZ,KAAmB,EACT,UAAmB,EACjB,YAAqB;QAExC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY;YAChE,MAAM,IAAI,sBAAa,CAAC,oCAAoC,EAAE,mBAAU,CAAC,eAAe,CAAC,CAAC;QAE5F,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC,CAAC;IACzF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1,34 @@
1
+ import { Entity } from "../../../common";
2
+ import type { Auth } from "./auth";
3
+ /**
4
+ * AuthCode Entity Type
5
+ *
6
+ * A one-time code used for login-by-link, account activation, and
7
+ * password-reset flows: exchanged for the Auth session it points to.
8
+ */
9
+ export type AuthCode = Entity & {
10
+ expiration: Date;
11
+ auth?: Auth;
12
+ };
13
+ /**
14
+ * AuthCode Entity Descriptor
15
+ *
16
+ * Single source of truth for the AuthCode entity configuration.
17
+ * Generates mapper, childrenTokens, and DataModelInterface automatically.
18
+ *
19
+ * SECURITY: like Auth, this descriptor is deliberately NOT registered with
20
+ * the GraphDescriptorRegistry (see auth.module.ts) — it is a one-time
21
+ * login/activation code, never returned as its own JSON:API resource, and
22
+ * has no business being LLM-queryable.
23
+ */
24
+ export declare const AuthCodeDescriptor: import("../../../common").EntityDescriptor<AuthCode, {
25
+ auth: {
26
+ model: import("../../../common").DataMeta;
27
+ direction: "in";
28
+ relationship: string;
29
+ cardinality: "one";
30
+ description: string;
31
+ };
32
+ }>;
33
+ export type AuthCodeDescriptorType = typeof AuthCodeDescriptor;
34
+ //# sourceMappingURL=auth.code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.code.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAInC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAC9B,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;EAuC7B,CAAC;AAGH,MAAM,MAAM,sBAAsB,GAAG,OAAO,kBAAkB,CAAC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthCodeDescriptor = void 0;
4
+ const common_1 = require("../../../common");
5
+ const auth_code_meta_1 = require("./auth.code.meta");
6
+ const auth_meta_1 = require("./auth.meta");
7
+ /**
8
+ * AuthCode Entity Descriptor
9
+ *
10
+ * Single source of truth for the AuthCode entity configuration.
11
+ * Generates mapper, childrenTokens, and DataModelInterface automatically.
12
+ *
13
+ * SECURITY: like Auth, this descriptor is deliberately NOT registered with
14
+ * the GraphDescriptorRegistry (see auth.module.ts) — it is a one-time
15
+ * login/activation code, never returned as its own JSON:API resource, and
16
+ * has no business being LLM-queryable.
17
+ */
18
+ exports.AuthCodeDescriptor = (0, common_1.defineEntity)()({
19
+ ...auth_code_meta_1.authCodeMeta,
20
+ isCompanyScoped: false,
21
+ description: "A one-time authentication code (codice monouso) exchanged for an Auth session via login-by-link, activation, or password reset.",
22
+ // Field definitions
23
+ fields: {
24
+ expiration: {
25
+ type: "datetime",
26
+ required: true,
27
+ description: "The instant this one-time code expires and can no longer be exchanged for its Auth session.",
28
+ },
29
+ },
30
+ // Relationship definitions
31
+ //
32
+ // CLI defect fix: the generated descriptor originally declared `auth` as a
33
+ // `fields: { auth: { type: "string" } }` scalar. Because relationship
34
+ // population (EntityFactory.createOrMerge, keyed off
35
+ // model.singleChildrenTokens/singleChildrenRelationships) is driven
36
+ // entirely by `relationships`, that left `AuthCodeDescriptor.model`
37
+ // ignorant of the `authcode_auth` column the repository's Cypher already
38
+ // returns (`findByCode`) — `authCode.auth` came back `undefined` and
39
+ // `AuthService.findAuthByCode()`'s `authCode.auth.id` would throw at
40
+ // runtime. Declaring it as a proper relationship (matching the
41
+ // `(authcode)<-[:HAS_AUTH_CODE]-(auth)` Cypher pattern) fixes this.
42
+ relationships: {
43
+ auth: {
44
+ model: auth_meta_1.authMeta,
45
+ // Auth -[:HAS_AUTH_CODE]-> AuthCode, so from AuthCode's perspective: incoming
46
+ direction: "in",
47
+ relationship: "HAS_AUTH_CODE",
48
+ cardinality: "one",
49
+ description: "The Auth session this one-time code resolves to when exchanged.",
50
+ },
51
+ },
52
+ });
53
+ //# sourceMappingURL=auth.code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.code.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AAEvD,qDAAgD;AAChD,2CAAuC;AAavC;;;;;;;;;;GAUG;AACU,QAAA,kBAAkB,GAAG,IAAA,qBAAY,GAAY,CAAC;IACzD,GAAG,6BAAY;IAEf,eAAe,EAAE,KAAK;IAEtB,WAAW,EACT,iIAAiI;IAEnI,oBAAoB;IACpB,MAAM,EAAE;QACN,UAAU,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,6FAA6F;SAC3G;KACF;IAED,2BAA2B;IAC3B,EAAE;IACF,2EAA2E;IAC3E,sEAAsE;IACtE,qDAAqD;IACrD,oEAAoE;IACpE,oEAAoE;IACpE,yEAAyE;IACzE,qEAAqE;IACrE,qEAAqE;IACrE,+DAA+D;IAC/D,oEAAoE;IACpE,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,KAAK,EAAE,oBAAQ;YACf,8EAA8E;YAC9E,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,eAAe;YAC7B,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,iEAAiE;SAC/E;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { Entity } from "../../../common";
2
+ import type { User } from "../../user/entities/user";
3
+ /**
4
+ * Auth Entity Type
5
+ *
6
+ * NOTE: `refreshToken` is intentionally NOT part of this type. It is a
7
+ * virtual, output-only attribute (the record's own `id`) assigned by the
8
+ * service layer via `(auth as any).refreshToken = auth.id` — mirrors the
9
+ * pre-migration behaviour, where it was never a real entity property either.
10
+ */
11
+ export type Auth = Entity & {
12
+ token: string;
13
+ expiration: Date;
14
+ requiresCompanySelection?: boolean;
15
+ selectionToken?: string;
16
+ user?: User;
17
+ };
18
+ /**
19
+ * Auth Entity Descriptor
20
+ *
21
+ * Single source of truth for the Auth entity configuration.
22
+ * Generates mapper, childrenTokens, and DataModelInterface automatically.
23
+ *
24
+ * SECURITY: this descriptor is deliberately NOT registered with the
25
+ * GraphDescriptorRegistry (see auth.module.ts) — the `token` attribute
26
+ * carries a live, valid JWT session credential, and an LLM-queryable graph
27
+ * catalog entry would let chatbot/agent tooling read out active session
28
+ * tokens for any user. Do not add `graphRegistry.register()` for this
29
+ * descriptor without explicit product/security sign-off.
30
+ */
31
+ export declare const AuthDescriptor: import("../../../common").EntityDescriptor<Auth, {
32
+ user: {
33
+ model: import("../../../common").DataMeta;
34
+ direction: "in";
35
+ relationship: string;
36
+ cardinality: "one";
37
+ description: string;
38
+ };
39
+ }>;
40
+ export type AuthDescriptorType = typeof AuthDescriptor;
41
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,IAAI,CAAC;IAEjB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc;;;;;;;;EA0DzB,CAAC;AAGH,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthDescriptor = void 0;
4
+ const common_1 = require("../../../common");
5
+ const user_meta_1 = require("../../user/entities/user.meta");
6
+ const auth_meta_1 = require("./auth.meta");
7
+ /**
8
+ * Auth Entity Descriptor
9
+ *
10
+ * Single source of truth for the Auth entity configuration.
11
+ * Generates mapper, childrenTokens, and DataModelInterface automatically.
12
+ *
13
+ * SECURITY: this descriptor is deliberately NOT registered with the
14
+ * GraphDescriptorRegistry (see auth.module.ts) — the `token` attribute
15
+ * carries a live, valid JWT session credential, and an LLM-queryable graph
16
+ * catalog entry would let chatbot/agent tooling read out active session
17
+ * tokens for any user. Do not add `graphRegistry.register()` for this
18
+ * descriptor without explicit product/security sign-off.
19
+ */
20
+ exports.AuthDescriptor = (0, common_1.defineEntity)()({
21
+ ...auth_meta_1.authMeta,
22
+ // Auth sessions are looked up by token/id directly and are not scoped to a
23
+ // company relationship; pre-login flows (login, token refresh) also run
24
+ // before any companyId exists in CLS. Mirrors the pre-migration Cypher,
25
+ // which never joined Auth to Company.
26
+ isCompanyScoped: false,
27
+ description: "An authentication session (sessione di autenticazione): the signed JWT access token issued to a user on login, paired with an opaque refresh-token id used to exchange for a new access token.",
28
+ // Field definitions
29
+ fields: {
30
+ token: {
31
+ type: "string",
32
+ required: true,
33
+ description: "The signed JWT access token for this session. Returned to the client on login, code exchange, and token refresh; sent back as the Authorization bearer token on subsequent requests.",
34
+ },
35
+ expiration: {
36
+ type: "datetime",
37
+ required: true,
38
+ description: "The instant this session's refresh token expires and can no longer be exchanged for a new access token.",
39
+ },
40
+ requiresCompanySelection: {
41
+ type: "boolean",
42
+ description: "True when the credentials were valid but the user belongs to more than one company, so no session was created: the client must let the user pick a company and call POST /auth/company-selection/:companyId.",
43
+ },
44
+ selectionToken: {
45
+ type: "string",
46
+ description: "Short-lived, company-selection scoped JWT returned alongside requiresCompanySelection. It authenticates only the company listing and the company-selection exchange.",
47
+ },
48
+ },
49
+ // Virtual fields (output-only, not part of the entity type or stored on the node)
50
+ virtualFields: {
51
+ refreshToken: {
52
+ description: "Opaque refresh-token identifier — this Auth record's own id. Exchanged via POST /auth/refreshtoken/:refreshToken for a new access token without re-entering credentials.",
53
+ compute: (params) => params.data.id,
54
+ },
55
+ },
56
+ // Relationship definitions
57
+ relationships: {
58
+ user: {
59
+ model: user_meta_1.userMeta,
60
+ // User -[:HAS_AUTH]-> Auth, so from Auth's perspective: incoming
61
+ direction: "in",
62
+ relationship: "HAS_AUTH",
63
+ cardinality: "one",
64
+ description: "The user this authentication session belongs to.",
65
+ },
66
+ },
67
+ });
68
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AAEvD,6DAAyD;AACzD,2CAAuC;AAoBvC;;;;;;;;;;;;GAYG;AACU,QAAA,cAAc,GAAG,IAAA,qBAAY,GAAQ,CAAC;IACjD,GAAG,oBAAQ;IAEX,2EAA2E;IAC3E,wEAAwE;IACxE,wEAAwE;IACxE,sCAAsC;IACtC,eAAe,EAAE,KAAK;IAEtB,WAAW,EACT,gMAAgM;IAElM,oBAAoB;IACpB,MAAM,EAAE;QACN,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,sLAAsL;SACzL;QACD,UAAU,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,yGAAyG;SAC5G;QACD,wBAAwB,EAAE;YACxB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,8MAA8M;SACjN;QACD,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,sKAAsK;SACzK;KACF;IAED,kFAAkF;IAClF,aAAa,EAAE;QACb,YAAY,EAAE;YACZ,WAAW,EACT,0KAA0K;YAC5K,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;SACpC;KACF;IAED,2BAA2B;IAC3B,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,KAAK,EAAE,oBAAQ;YACf,iEAAiE;YACjE,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,UAAU;YACxB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,kDAAkD;SAChE;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { Entity } from "../../../common";
2
+ /**
3
+ * PendingAuth Entity Type
4
+ *
5
+ * The response returned when a user with 2FA enabled successfully
6
+ * authenticates with a password but still has to complete 2FA verification.
7
+ *
8
+ * PendingAuth is NEVER persisted: no `:PendingAuth` node exists in Neo4j. The
9
+ * login flow hands a plain object straight to `JsonApiService.buildSingle`,
10
+ * so the descriptor exists only to describe the JSON:API shape.
11
+ *
12
+ * NAMING: the property names below are the ON-THE-WIRE attribute names of the
13
+ * deleted `PendingAuthSerialiser` (`pendingToken`, `expiresAt`,
14
+ * `availableMethods`, `preferredMethod`). The descriptor-based serialiser maps
15
+ * every attribute 1:1 from the field name (see DescriptorBasedSerialiser.create),
16
+ * so it has no way to rename `token` -> `pendingToken` the way the hand-written
17
+ * serialiser did. Keeping the entity properties on the wire names is what
18
+ * preserves the response byte-for-byte — do not "tidy" them back to
19
+ * `token` / `expiration`.
20
+ */
21
+ export type PendingAuth = Entity & {
22
+ /** The pending JWT token (limited access until 2FA is completed) */
23
+ pendingToken: string;
24
+ /** When the pending session expires */
25
+ expiresAt: Date;
26
+ /** Available 2FA methods for this user */
27
+ availableMethods: string[];
28
+ /** The user's preferred 2FA method */
29
+ preferredMethod?: string;
30
+ };
31
+ /**
32
+ * PendingAuth Entity Descriptor
33
+ *
34
+ * SECURITY: like Auth, deliberately NOT registered with the
35
+ * GraphDescriptorRegistry — `pendingToken` is a live (if limited) credential.
36
+ */
37
+ export declare const PendingAuthDescriptor: import("../../../common").EntityDescriptor<PendingAuth, {}>;
38
+ export type PendingAuthDescriptorType = typeof PendingAuthDescriptor;
39
+ //# sourceMappingURL=pending-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-auth.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IACjC,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IAErB,uCAAuC;IACvC,SAAS,EAAE,IAAI,CAAC;IAEhB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAE3B,sCAAsC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,6DAkChC,CAAC;AAGH,MAAM,MAAM,yBAAyB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PendingAuthDescriptor = void 0;
4
+ const common_1 = require("../../../common");
5
+ const pending_auth_meta_1 = require("./pending-auth.meta");
6
+ /**
7
+ * PendingAuth Entity Descriptor
8
+ *
9
+ * SECURITY: like Auth, deliberately NOT registered with the
10
+ * GraphDescriptorRegistry — `pendingToken` is a live (if limited) credential.
11
+ */
12
+ exports.PendingAuthDescriptor = (0, common_1.defineEntity)()({
13
+ ...pending_auth_meta_1.pendingAuthMeta,
14
+ // Not persisted, never joined to a Company; the 2FA challenge is issued
15
+ // before any company scope exists in CLS.
16
+ isCompanyScoped: false,
17
+ description: "A pending two-factor authentication challenge (sfida a due fattori): issued when the password check succeeds but 2FA verification is still required.",
18
+ fields: {
19
+ pendingToken: {
20
+ type: "string",
21
+ required: true,
22
+ description: "Short-lived JWT with limited access, valid only for completing the 2FA verification of this challenge.",
23
+ },
24
+ expiresAt: {
25
+ type: "datetime",
26
+ required: true,
27
+ description: "The instant this pending 2FA challenge expires and can no longer be completed.",
28
+ },
29
+ availableMethods: {
30
+ type: "string[]",
31
+ description: "The 2FA methods this user can verify with (e.g. totp, passkey, backup code).",
32
+ },
33
+ preferredMethod: {
34
+ type: "string",
35
+ description: "The 2FA method the user selected as preferred, so the client can pre-select it.",
36
+ },
37
+ },
38
+ // No relationships: the challenge carries no resource linkage.
39
+ relationships: {},
40
+ });
41
+ //# sourceMappingURL=pending-auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-auth.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.ts"],"names":[],"mappings":";;;AAAA,4CAAuD;AACvD,2DAAsD;AAmCtD;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG,IAAA,qBAAY,GAAe,CAAC;IAC/D,GAAG,mCAAe;IAElB,wEAAwE;IACxE,0CAA0C;IAC1C,eAAe,EAAE,KAAK;IAEtB,WAAW,EACT,sJAAsJ;IAExJ,MAAM,EAAE;QACN,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,wGAAwG;SAC3G;QACD,SAAS,EAAE;YACT,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gFAAgF;SAC9F;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8EAA8E;SAC5F;QACD,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iFAAiF;SAC/F;KACF;IAED,+DAA+D;IAC/D,aAAa,EAAE,EAAE;CAClB,CAAC,CAAC"}
@@ -1,8 +1,21 @@
1
1
  export { AuthModule } from "./auth.module";
2
2
  export { AuthCompanyController } from "./controllers/auth.company.controller";
3
3
  export { AuthController } from "./controllers/auth.controller";
4
+ export { AuthGoogleController } from "./controllers/auth.google.controller";
5
+ export { AuthPostForgotDTO } from "./dtos/auth.post.forgot.dto";
6
+ export { AuthPostLoginAttributesDTO, AuthPostLoginDataDTO, AuthPostLoginDTO } from "./dtos/auth.post.login.dto";
7
+ export { AuthPostRegisterAttributesDTO, AuthPostRegisterDataDTO, AuthPostRegisterDTO, } from "./dtos/auth.post.register.dto";
8
+ export { AuthPostResetPasswordDTO } from "./dtos/auth.post.resetpassword.dto";
9
+ export { Auth, AuthDescriptor } from "./entities/auth";
10
+ export { AuthCode, AuthCodeDescriptor } from "./entities/auth.code";
11
+ export { authCodeMeta } from "./entities/auth.code.meta";
4
12
  export { authMeta } from "./entities/auth.meta";
13
+ export { PendingAuth, PendingAuthDescriptor } from "./entities/pending-auth";
14
+ export { pendingAuthMeta } from "./entities/pending-auth.meta";
5
15
  export { REGISTRATION_HOOK, RegistrationHookInterface } from "./interfaces/registration-hook.interface";
16
+ export { AuthRepository } from "./repositories/auth.repository";
17
+ export { AuthGoogleService } from "./services/auth.google.service";
6
18
  export { AuthService } from "./services/auth.service";
19
+ export { PendingRegistrationService } from "./services/pending-registration.service";
7
20
  export { TrialQueueService } from "./services/trial-queue.service";
8
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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uthService = exports.REGISTRATION_HOOK = exports.authMeta = exports.AuthController = exports.AuthCompanyController = exports.AuthModule = void 0;
3
+ exports.TrialQueueService = exports.PendingRegistrationService = exports.AuthService = exports.AuthGoogleService = exports.AuthRepository = exports.REGISTRATION_HOOK = exports.pendingAuthMeta = exports.PendingAuthDescriptor = exports.authMeta = exports.authCodeMeta = exports.AuthCodeDescriptor = exports.AuthDescriptor = exports.AuthPostResetPasswordDTO = exports.AuthPostRegisterDTO = exports.AuthPostRegisterDataDTO = exports.AuthPostRegisterAttributesDTO = exports.AuthPostLoginDTO = exports.AuthPostLoginDataDTO = exports.AuthPostLoginAttributesDTO = exports.AuthPostForgotDTO = exports.AuthGoogleController = exports.AuthController = exports.AuthCompanyController = exports.AuthModule = void 0;
4
4
  var auth_module_1 = require("./auth.module");
5
5
  Object.defineProperty(exports, "AuthModule", { enumerable: true, get: function () { return auth_module_1.AuthModule; } });
6
6
  var auth_company_controller_1 = require("./controllers/auth.company.controller");
7
7
  Object.defineProperty(exports, "AuthCompanyController", { enumerable: true, get: function () { return auth_company_controller_1.AuthCompanyController; } });
8
8
  var auth_controller_1 = require("./controllers/auth.controller");
9
9
  Object.defineProperty(exports, "AuthController", { enumerable: true, get: function () { return auth_controller_1.AuthController; } });
10
+ var auth_google_controller_1 = require("./controllers/auth.google.controller");
11
+ Object.defineProperty(exports, "AuthGoogleController", { enumerable: true, get: function () { return auth_google_controller_1.AuthGoogleController; } });
12
+ var auth_post_forgot_dto_1 = require("./dtos/auth.post.forgot.dto");
13
+ Object.defineProperty(exports, "AuthPostForgotDTO", { enumerable: true, get: function () { return auth_post_forgot_dto_1.AuthPostForgotDTO; } });
14
+ var auth_post_login_dto_1 = require("./dtos/auth.post.login.dto");
15
+ Object.defineProperty(exports, "AuthPostLoginAttributesDTO", { enumerable: true, get: function () { return auth_post_login_dto_1.AuthPostLoginAttributesDTO; } });
16
+ Object.defineProperty(exports, "AuthPostLoginDataDTO", { enumerable: true, get: function () { return auth_post_login_dto_1.AuthPostLoginDataDTO; } });
17
+ Object.defineProperty(exports, "AuthPostLoginDTO", { enumerable: true, get: function () { return auth_post_login_dto_1.AuthPostLoginDTO; } });
18
+ var auth_post_register_dto_1 = require("./dtos/auth.post.register.dto");
19
+ Object.defineProperty(exports, "AuthPostRegisterAttributesDTO", { enumerable: true, get: function () { return auth_post_register_dto_1.AuthPostRegisterAttributesDTO; } });
20
+ Object.defineProperty(exports, "AuthPostRegisterDataDTO", { enumerable: true, get: function () { return auth_post_register_dto_1.AuthPostRegisterDataDTO; } });
21
+ Object.defineProperty(exports, "AuthPostRegisterDTO", { enumerable: true, get: function () { return auth_post_register_dto_1.AuthPostRegisterDTO; } });
22
+ var auth_post_resetpassword_dto_1 = require("./dtos/auth.post.resetpassword.dto");
23
+ Object.defineProperty(exports, "AuthPostResetPasswordDTO", { enumerable: true, get: function () { return auth_post_resetpassword_dto_1.AuthPostResetPasswordDTO; } });
24
+ var auth_1 = require("./entities/auth");
25
+ Object.defineProperty(exports, "AuthDescriptor", { enumerable: true, get: function () { return auth_1.AuthDescriptor; } });
26
+ var auth_code_1 = require("./entities/auth.code");
27
+ Object.defineProperty(exports, "AuthCodeDescriptor", { enumerable: true, get: function () { return auth_code_1.AuthCodeDescriptor; } });
28
+ var auth_code_meta_1 = require("./entities/auth.code.meta");
29
+ Object.defineProperty(exports, "authCodeMeta", { enumerable: true, get: function () { return auth_code_meta_1.authCodeMeta; } });
10
30
  var auth_meta_1 = require("./entities/auth.meta");
11
31
  Object.defineProperty(exports, "authMeta", { enumerable: true, get: function () { return auth_meta_1.authMeta; } });
32
+ var pending_auth_1 = require("./entities/pending-auth");
33
+ Object.defineProperty(exports, "PendingAuthDescriptor", { enumerable: true, get: function () { return pending_auth_1.PendingAuthDescriptor; } });
34
+ var pending_auth_meta_1 = require("./entities/pending-auth.meta");
35
+ Object.defineProperty(exports, "pendingAuthMeta", { enumerable: true, get: function () { return pending_auth_meta_1.pendingAuthMeta; } });
12
36
  var registration_hook_interface_1 = require("./interfaces/registration-hook.interface");
13
37
  Object.defineProperty(exports, "REGISTRATION_HOOK", { enumerable: true, get: function () { return registration_hook_interface_1.REGISTRATION_HOOK; } });
38
+ var auth_repository_1 = require("./repositories/auth.repository");
39
+ Object.defineProperty(exports, "AuthRepository", { enumerable: true, get: function () { return auth_repository_1.AuthRepository; } });
40
+ var auth_google_service_1 = require("./services/auth.google.service");
41
+ Object.defineProperty(exports, "AuthGoogleService", { enumerable: true, get: function () { return auth_google_service_1.AuthGoogleService; } });
14
42
  var auth_service_1 = require("./services/auth.service");
15
43
  Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return auth_service_1.AuthService; } });
44
+ var pending_registration_service_1 = require("./services/pending-registration.service");
45
+ Object.defineProperty(exports, "PendingRegistrationService", { enumerable: true, get: function () { return pending_registration_service_1.PendingRegistrationService; } });
16
46
  var trial_queue_service_1 = require("./services/trial-queue.service");
17
47
  Object.defineProperty(exports, "TrialQueueService", { enumerable: true, get: function () { return trial_queue_service_1.TrialQueueService; } });
18
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,iFAA8E;AAArE,gIAAA,qBAAqB,OAAA;AAC9B,iEAA+D;AAAtD,iHAAA,cAAc,OAAA;AACvB,kDAAgD;AAAvC,qGAAA,QAAQ,OAAA;AACjB,wFAAwG;AAA/F,gIAAA,iBAAiB,OAAA;AAC1B,wDAAsD;AAA7C,2GAAA,WAAW,OAAA;AACpB,sEAAmE;AAA1D,wHAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,iFAA8E;AAArE,gIAAA,qBAAqB,OAAA;AAC9B,iEAA+D;AAAtD,iHA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