@os.io/nest-kit 0.0.1-alpha.0 → 0.0.1-alpha.2

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 (286) hide show
  1. package/README.md +30 -30
  2. package/package.json +41 -5
  3. package/dist/auth/auth.constants.d.ts +0 -19
  4. package/dist/auth/auth.constants.d.ts.map +0 -1
  5. package/dist/auth/auth.constants.js +0 -19
  6. package/dist/auth/auth.constants.js.map +0 -1
  7. package/dist/auth/auth.guard.d.ts +0 -20
  8. package/dist/auth/auth.guard.d.ts.map +0 -1
  9. package/dist/auth/auth.guard.js +0 -84
  10. package/dist/auth/auth.guard.js.map +0 -1
  11. package/dist/auth/auth.module.d.ts +0 -26
  12. package/dist/auth/auth.module.d.ts.map +0 -1
  13. package/dist/auth/auth.module.js +0 -344
  14. package/dist/auth/auth.module.js.map +0 -1
  15. package/dist/auth/auth.options.d.ts +0 -179
  16. package/dist/auth/auth.options.d.ts.map +0 -1
  17. package/dist/auth/auth.options.js +0 -2
  18. package/dist/auth/auth.options.js.map +0 -1
  19. package/dist/auth/auth.service.d.ts +0 -57
  20. package/dist/auth/auth.service.d.ts.map +0 -1
  21. package/dist/auth/auth.service.js +0 -175
  22. package/dist/auth/auth.service.js.map +0 -1
  23. package/dist/auth/authorization/index.d.ts +0 -3
  24. package/dist/auth/authorization/index.d.ts.map +0 -1
  25. package/dist/auth/authorization/index.js +0 -3
  26. package/dist/auth/authorization/index.js.map +0 -1
  27. package/dist/auth/authorization/pbac/index.d.ts +0 -6
  28. package/dist/auth/authorization/pbac/index.d.ts.map +0 -1
  29. package/dist/auth/authorization/pbac/index.js +0 -4
  30. package/dist/auth/authorization/pbac/index.js.map +0 -1
  31. package/dist/auth/authorization/pbac/pbac.decorator.d.ts +0 -18
  32. package/dist/auth/authorization/pbac/pbac.decorator.d.ts.map +0 -1
  33. package/dist/auth/authorization/pbac/pbac.decorator.js +0 -14
  34. package/dist/auth/authorization/pbac/pbac.decorator.js.map +0 -1
  35. package/dist/auth/authorization/pbac/pbac.guard.d.ts +0 -19
  36. package/dist/auth/authorization/pbac/pbac.guard.d.ts.map +0 -1
  37. package/dist/auth/authorization/pbac/pbac.guard.js +0 -60
  38. package/dist/auth/authorization/pbac/pbac.guard.js.map +0 -1
  39. package/dist/auth/authorization/pbac/pbac.service.d.ts +0 -44
  40. package/dist/auth/authorization/pbac/pbac.service.d.ts.map +0 -1
  41. package/dist/auth/authorization/pbac/pbac.service.js +0 -146
  42. package/dist/auth/authorization/pbac/pbac.service.js.map +0 -1
  43. package/dist/auth/authorization/pbac/pbac.types.d.ts +0 -47
  44. package/dist/auth/authorization/pbac/pbac.types.d.ts.map +0 -1
  45. package/dist/auth/authorization/pbac/pbac.types.js +0 -2
  46. package/dist/auth/authorization/pbac/pbac.types.js.map +0 -1
  47. package/dist/auth/authorization/rbac/index.d.ts +0 -4
  48. package/dist/auth/authorization/rbac/index.d.ts.map +0 -1
  49. package/dist/auth/authorization/rbac/index.js +0 -4
  50. package/dist/auth/authorization/rbac/index.js.map +0 -1
  51. package/dist/auth/authorization/rbac/rbac.decorator.d.ts +0 -18
  52. package/dist/auth/authorization/rbac/rbac.decorator.d.ts.map +0 -1
  53. package/dist/auth/authorization/rbac/rbac.decorator.js +0 -25
  54. package/dist/auth/authorization/rbac/rbac.decorator.js.map +0 -1
  55. package/dist/auth/authorization/rbac/rbac.guard.d.ts +0 -19
  56. package/dist/auth/authorization/rbac/rbac.guard.d.ts.map +0 -1
  57. package/dist/auth/authorization/rbac/rbac.guard.js +0 -50
  58. package/dist/auth/authorization/rbac/rbac.guard.js.map +0 -1
  59. package/dist/auth/authorization/rbac/rbac.service.d.ts +0 -43
  60. package/dist/auth/authorization/rbac/rbac.service.d.ts.map +0 -1
  61. package/dist/auth/authorization/rbac/rbac.service.js +0 -95
  62. package/dist/auth/authorization/rbac/rbac.service.js.map +0 -1
  63. package/dist/auth/decorators/current-user.decorator.d.ts +0 -17
  64. package/dist/auth/decorators/current-user.decorator.d.ts.map +0 -1
  65. package/dist/auth/decorators/current-user.decorator.js +0 -23
  66. package/dist/auth/decorators/current-user.decorator.js.map +0 -1
  67. package/dist/auth/decorators/index.d.ts +0 -3
  68. package/dist/auth/decorators/index.d.ts.map +0 -1
  69. package/dist/auth/decorators/index.js +0 -3
  70. package/dist/auth/decorators/index.js.map +0 -1
  71. package/dist/auth/decorators/public.decorator.d.ts +0 -13
  72. package/dist/auth/decorators/public.decorator.d.ts.map +0 -1
  73. package/dist/auth/decorators/public.decorator.js +0 -15
  74. package/dist/auth/decorators/public.decorator.js.map +0 -1
  75. package/dist/auth/index.d.ts +0 -63
  76. package/dist/auth/index.d.ts.map +0 -1
  77. package/dist/auth/index.js +0 -65
  78. package/dist/auth/index.js.map +0 -1
  79. package/dist/auth/interfaces/auth-request.interface.d.ts +0 -18
  80. package/dist/auth/interfaces/auth-request.interface.d.ts.map +0 -1
  81. package/dist/auth/interfaces/auth-request.interface.js +0 -2
  82. package/dist/auth/interfaces/auth-request.interface.js.map +0 -1
  83. package/dist/auth/interfaces/auth-result.interface.d.ts +0 -28
  84. package/dist/auth/interfaces/auth-result.interface.d.ts.map +0 -1
  85. package/dist/auth/interfaces/auth-result.interface.js +0 -2
  86. package/dist/auth/interfaces/auth-result.interface.js.map +0 -1
  87. package/dist/auth/interfaces/auth-strategy.interface.d.ts +0 -37
  88. package/dist/auth/interfaces/auth-strategy.interface.d.ts.map +0 -1
  89. package/dist/auth/interfaces/auth-strategy.interface.js +0 -16
  90. package/dist/auth/interfaces/auth-strategy.interface.js.map +0 -1
  91. package/dist/auth/interfaces/auth-user.interface.d.ts +0 -25
  92. package/dist/auth/interfaces/auth-user.interface.d.ts.map +0 -1
  93. package/dist/auth/interfaces/auth-user.interface.js +0 -2
  94. package/dist/auth/interfaces/auth-user.interface.js.map +0 -1
  95. package/dist/auth/interfaces/cache-service.interface.d.ts +0 -30
  96. package/dist/auth/interfaces/cache-service.interface.d.ts.map +0 -1
  97. package/dist/auth/interfaces/cache-service.interface.js +0 -2
  98. package/dist/auth/interfaces/cache-service.interface.js.map +0 -1
  99. package/dist/auth/interfaces/index.d.ts +0 -8
  100. package/dist/auth/interfaces/index.d.ts.map +0 -1
  101. package/dist/auth/interfaces/index.js +0 -2
  102. package/dist/auth/interfaces/index.js.map +0 -1
  103. package/dist/auth/interfaces/user-service.interface.d.ts +0 -34
  104. package/dist/auth/interfaces/user-service.interface.d.ts.map +0 -1
  105. package/dist/auth/interfaces/user-service.interface.js +0 -2
  106. package/dist/auth/interfaces/user-service.interface.js.map +0 -1
  107. package/dist/auth/password/password.service.d.ts +0 -23
  108. package/dist/auth/password/password.service.d.ts.map +0 -1
  109. package/dist/auth/password/password.service.js +0 -52
  110. package/dist/auth/password/password.service.js.map +0 -1
  111. package/dist/auth/session/device-session.service.d.ts +0 -43
  112. package/dist/auth/session/device-session.service.d.ts.map +0 -1
  113. package/dist/auth/session/device-session.service.js +0 -72
  114. package/dist/auth/session/device-session.service.js.map +0 -1
  115. package/dist/auth/session/index.d.ts +0 -5
  116. package/dist/auth/session/index.d.ts.map +0 -1
  117. package/dist/auth/session/index.js +0 -4
  118. package/dist/auth/session/index.js.map +0 -1
  119. package/dist/auth/session/jwt.service.d.ts +0 -37
  120. package/dist/auth/session/jwt.service.d.ts.map +0 -1
  121. package/dist/auth/session/jwt.service.js +0 -119
  122. package/dist/auth/session/jwt.service.js.map +0 -1
  123. package/dist/auth/session/token-blacklist.service.d.ts +0 -37
  124. package/dist/auth/session/token-blacklist.service.d.ts.map +0 -1
  125. package/dist/auth/session/token-blacklist.service.js +0 -70
  126. package/dist/auth/session/token-blacklist.service.js.map +0 -1
  127. package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts +0 -19
  128. package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts.map +0 -1
  129. package/dist/auth/strategies/anonymous/anonymous.strategy.js +0 -49
  130. package/dist/auth/strategies/anonymous/anonymous.strategy.js.map +0 -1
  131. package/dist/auth/strategies/base/base.strategy.d.ts +0 -11
  132. package/dist/auth/strategies/base/base.strategy.d.ts.map +0 -1
  133. package/dist/auth/strategies/base/base.strategy.js +0 -6
  134. package/dist/auth/strategies/base/base.strategy.js.map +0 -1
  135. package/dist/auth/strategies/credentials/credentials.strategy.d.ts +0 -21
  136. package/dist/auth/strategies/credentials/credentials.strategy.d.ts.map +0 -1
  137. package/dist/auth/strategies/credentials/credentials.strategy.js +0 -67
  138. package/dist/auth/strategies/credentials/credentials.strategy.js.map +0 -1
  139. package/dist/auth/strategies/index.d.ts +0 -12
  140. package/dist/auth/strategies/index.d.ts.map +0 -1
  141. package/dist/auth/strategies/index.js +0 -12
  142. package/dist/auth/strategies/index.js.map +0 -1
  143. package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts +0 -31
  144. package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts.map +0 -1
  145. package/dist/auth/strategies/magic-link/magic-link.strategy.js +0 -88
  146. package/dist/auth/strategies/magic-link/magic-link.strategy.js.map +0 -1
  147. package/dist/auth/strategies/oauth/index.d.ts +0 -3
  148. package/dist/auth/strategies/oauth/index.d.ts.map +0 -1
  149. package/dist/auth/strategies/oauth/index.js +0 -3
  150. package/dist/auth/strategies/oauth/index.js.map +0 -1
  151. package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts +0 -13
  152. package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts.map +0 -1
  153. package/dist/auth/strategies/oauth/oauth-provider-registry.js +0 -20
  154. package/dist/auth/strategies/oauth/oauth-provider-registry.js.map +0 -1
  155. package/dist/auth/strategies/oauth/oauth.strategy.d.ts +0 -23
  156. package/dist/auth/strategies/oauth/oauth.strategy.d.ts.map +0 -1
  157. package/dist/auth/strategies/oauth/oauth.strategy.js +0 -79
  158. package/dist/auth/strategies/oauth/oauth.strategy.js.map +0 -1
  159. package/dist/auth/strategies/onetap/onetap.strategy.d.ts +0 -24
  160. package/dist/auth/strategies/onetap/onetap.strategy.d.ts.map +0 -1
  161. package/dist/auth/strategies/onetap/onetap.strategy.js +0 -77
  162. package/dist/auth/strategies/onetap/onetap.strategy.js.map +0 -1
  163. package/dist/auth/strategies/otp/otp.strategy.d.ts +0 -31
  164. package/dist/auth/strategies/otp/otp.strategy.d.ts.map +0 -1
  165. package/dist/auth/strategies/otp/otp.strategy.js +0 -93
  166. package/dist/auth/strategies/otp/otp.strategy.js.map +0 -1
  167. package/dist/auth/strategies/passkey/passkey.strategy.d.ts +0 -32
  168. package/dist/auth/strategies/passkey/passkey.strategy.d.ts.map +0 -1
  169. package/dist/auth/strategies/passkey/passkey.strategy.js +0 -102
  170. package/dist/auth/strategies/passkey/passkey.strategy.js.map +0 -1
  171. package/dist/auth/strategies/sso/sso.strategy.d.ts +0 -25
  172. package/dist/auth/strategies/sso/sso.strategy.d.ts.map +0 -1
  173. package/dist/auth/strategies/sso/sso.strategy.js +0 -80
  174. package/dist/auth/strategies/sso/sso.strategy.js.map +0 -1
  175. package/dist/auth/strategies/totp/totp.strategy.d.ts +0 -37
  176. package/dist/auth/strategies/totp/totp.strategy.d.ts.map +0 -1
  177. package/dist/auth/strategies/totp/totp.strategy.js +0 -109
  178. package/dist/auth/strategies/totp/totp.strategy.js.map +0 -1
  179. package/dist/auth/throttling/index.d.ts +0 -2
  180. package/dist/auth/throttling/index.d.ts.map +0 -1
  181. package/dist/auth/throttling/index.js +0 -2
  182. package/dist/auth/throttling/index.js.map +0 -1
  183. package/dist/auth/throttling/throttle.service.d.ts +0 -27
  184. package/dist/auth/throttling/throttle.service.d.ts.map +0 -1
  185. package/dist/auth/throttling/throttle.service.js +0 -63
  186. package/dist/auth/throttling/throttle.service.js.map +0 -1
  187. package/dist/bootstrap/cache/config.d.ts +0 -135
  188. package/dist/bootstrap/cache/config.d.ts.map +0 -1
  189. package/dist/bootstrap/cache/config.js +0 -189
  190. package/dist/bootstrap/cache/config.js.map +0 -1
  191. package/dist/bootstrap/cache/index.d.ts +0 -11
  192. package/dist/bootstrap/cache/index.d.ts.map +0 -1
  193. package/dist/bootstrap/cache/index.js +0 -11
  194. package/dist/bootstrap/cache/index.js.map +0 -1
  195. package/dist/bootstrap/index.d.ts +0 -21
  196. package/dist/bootstrap/index.d.ts.map +0 -1
  197. package/dist/bootstrap/index.js +0 -21
  198. package/dist/bootstrap/index.js.map +0 -1
  199. package/dist/bootstrap/scalar/api-docs.d.ts +0 -39
  200. package/dist/bootstrap/scalar/api-docs.d.ts.map +0 -1
  201. package/dist/bootstrap/scalar/api-docs.js +0 -41
  202. package/dist/bootstrap/scalar/api-docs.js.map +0 -1
  203. package/dist/bootstrap/scalar/index.d.ts +0 -39
  204. package/dist/bootstrap/scalar/index.d.ts.map +0 -1
  205. package/dist/bootstrap/scalar/index.js +0 -41
  206. package/dist/bootstrap/scalar/index.js.map +0 -1
  207. package/dist/bootstrap/swagger/api-docs.d.ts +0 -73
  208. package/dist/bootstrap/swagger/api-docs.d.ts.map +0 -1
  209. package/dist/bootstrap/swagger/api-docs.js +0 -87
  210. package/dist/bootstrap/swagger/api-docs.js.map +0 -1
  211. package/dist/bootstrap/swagger/index.d.ts +0 -37
  212. package/dist/bootstrap/swagger/index.d.ts.map +0 -1
  213. package/dist/bootstrap/swagger/index.js +0 -36
  214. package/dist/bootstrap/swagger/index.js.map +0 -1
  215. package/dist/bootstrap/typeorm/config/index.d.ts +0 -12
  216. package/dist/bootstrap/typeorm/config/index.d.ts.map +0 -1
  217. package/dist/bootstrap/typeorm/config/index.js +0 -62
  218. package/dist/bootstrap/typeorm/config/index.js.map +0 -1
  219. package/dist/bootstrap/typeorm/crud/controller.d.ts +0 -13
  220. package/dist/bootstrap/typeorm/crud/controller.d.ts.map +0 -1
  221. package/dist/bootstrap/typeorm/crud/controller.js +0 -72
  222. package/dist/bootstrap/typeorm/crud/controller.js.map +0 -1
  223. package/dist/bootstrap/typeorm/crud/index.d.ts +0 -4
  224. package/dist/bootstrap/typeorm/crud/index.d.ts.map +0 -1
  225. package/dist/bootstrap/typeorm/crud/index.js +0 -3
  226. package/dist/bootstrap/typeorm/crud/index.js.map +0 -1
  227. package/dist/bootstrap/typeorm/crud/service.d.ts +0 -10
  228. package/dist/bootstrap/typeorm/crud/service.d.ts.map +0 -1
  229. package/dist/bootstrap/typeorm/crud/service.js +0 -21
  230. package/dist/bootstrap/typeorm/crud/service.js.map +0 -1
  231. package/dist/bootstrap/typeorm/index.d.ts +0 -18
  232. package/dist/bootstrap/typeorm/index.d.ts.map +0 -1
  233. package/dist/bootstrap/typeorm/index.js +0 -18
  234. package/dist/bootstrap/typeorm/index.js.map +0 -1
  235. package/dist/bootstrap/typeorm/uow/factory.d.ts +0 -5
  236. package/dist/bootstrap/typeorm/uow/factory.d.ts.map +0 -1
  237. package/dist/bootstrap/typeorm/uow/factory.js +0 -27
  238. package/dist/bootstrap/typeorm/uow/factory.js.map +0 -1
  239. package/dist/bootstrap/typeorm/uow/index.d.ts +0 -4
  240. package/dist/bootstrap/typeorm/uow/index.d.ts.map +0 -1
  241. package/dist/bootstrap/typeorm/uow/index.js +0 -4
  242. package/dist/bootstrap/typeorm/uow/index.js.map +0 -1
  243. package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts +0 -62
  244. package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts.map +0 -1
  245. package/dist/bootstrap/typeorm/uow/transactional.decorator.js +0 -114
  246. package/dist/bootstrap/typeorm/uow/transactional.decorator.js.map +0 -1
  247. package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts +0 -11
  248. package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts.map +0 -1
  249. package/dist/bootstrap/typeorm/uow/unit-of-work.js +0 -23
  250. package/dist/bootstrap/typeorm/uow/unit-of-work.js.map +0 -1
  251. package/dist/core/index.d.ts +0 -11
  252. package/dist/core/index.d.ts.map +0 -1
  253. package/dist/core/index.js +0 -11
  254. package/dist/core/index.js.map +0 -1
  255. package/dist/infra/audit-log/index.d.ts +0 -12
  256. package/dist/infra/audit-log/index.d.ts.map +0 -1
  257. package/dist/infra/audit-log/index.js +0 -13
  258. package/dist/infra/audit-log/index.js.map +0 -1
  259. package/dist/infra/index.d.ts +0 -20
  260. package/dist/infra/index.d.ts.map +0 -1
  261. package/dist/infra/index.js +0 -21
  262. package/dist/infra/index.js.map +0 -1
  263. package/dist/infra/logger/index.d.ts +0 -12
  264. package/dist/infra/logger/index.d.ts.map +0 -1
  265. package/dist/infra/logger/index.js +0 -13
  266. package/dist/infra/logger/index.js.map +0 -1
  267. package/dist/infra/metrics/index.d.ts +0 -18
  268. package/dist/infra/metrics/index.d.ts.map +0 -1
  269. package/dist/infra/metrics/index.js +0 -19
  270. package/dist/infra/metrics/index.js.map +0 -1
  271. package/dist/infra/notification/index.d.ts +0 -12
  272. package/dist/infra/notification/index.d.ts.map +0 -1
  273. package/dist/infra/notification/index.js +0 -13
  274. package/dist/infra/notification/index.js.map +0 -1
  275. package/dist/infra/storage/index.d.ts +0 -12
  276. package/dist/infra/storage/index.d.ts.map +0 -1
  277. package/dist/infra/storage/index.js +0 -13
  278. package/dist/infra/storage/index.js.map +0 -1
  279. package/dist/infra/stripe/index.d.ts +0 -12
  280. package/dist/infra/stripe/index.d.ts.map +0 -1
  281. package/dist/infra/stripe/index.js +0 -13
  282. package/dist/infra/stripe/index.js.map +0 -1
  283. package/dist/saas/index.d.ts +0 -18
  284. package/dist/saas/index.d.ts.map +0 -1
  285. package/dist/saas/index.js +0 -19
  286. package/dist/saas/index.js.map +0 -1
package/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  <br/>
4
4
  <strong>+</strong>
5
5
  <br/>
6
- <img src="https://raw.githubusercontent.com/oxpo-io/nest-kit/main/docs/public/nest-kit-logo.svg" width="240" alt="@oxpo/nest-kit" />
6
+ <img src="https://raw.githubusercontent.com/osio-labs/nest-kit/main/docs/public/nest-kit-logo.svg" width="240" alt="@os.io/nest-kit" />
7
7
  </p>
8
8
 
9
- <h1 align="center">@oxpo/nest-kit</h1>
9
+ <h1 align="center">@os.io/nest-kit</h1>
10
10
 
11
11
  <p align="center">
12
12
  <em>A modular, production-ready NestJS toolkit.</em>
@@ -15,17 +15,17 @@
15
15
  </p>
16
16
 
17
17
  <p align="center">
18
- <a href="https://www.npmjs.com/package/@oxpo/nest-kit">
19
- <img src="https://img.shields.io/npm/v/@oxpo/nest-kit?logo=npm" alt="npm version" />
18
+ <a href="https://www.npmjs.com/package/@os.io/nest-kit">
19
+ <img src="https://img.shields.io/npm/v/@os.io/nest-kit?logo=npm" alt="npm version" />
20
20
  </a>
21
- <a href="https://github.com/oxpo-io/nest-kit/actions">
22
- <img src="https://img.shields.io/github/actions/workflow/status/oxpo-io/nest-kit/ci.yml?branch=main&logo=github" alt="CI" />
21
+ <a href="https://github.com/osio-labs/nest-kit/actions">
22
+ <img src="https://img.shields.io/github/actions/workflow/status/osio-labs/nest-kit/ci.yml?branch=main&logo=github" alt="CI" />
23
23
  </a>
24
- <a href="https://github.com/oxpo-io/nest-kit/blob/main/LICENSE">
25
- <img src="https://img.shields.io/github/license/oxpo-io/nest-kit" alt="License" />
24
+ <a href="https://github.com/osio-labs/nest-kit/blob/main/LICENSE">
25
+ <img src="https://img.shields.io/github/license/osio-labs/nest-kit" alt="License" />
26
26
  </a>
27
27
  <a href="https://nodejs.org/">
28
- <img src="https://img.shields.io/node/v/@oxpo/nest-kit" alt="Node version" />
28
+ <img src="https://img.shields.io/node/v/@os.io/nest-kit" alt="Node version" />
29
29
  </a>
30
30
  <a href="https://www.typescriptlang.org/">
31
31
  <img src="https://img.shields.io/badge/TypeScript-5.7-blue?logo=typescript" alt="TypeScript" />
@@ -39,36 +39,36 @@
39
39
 
40
40
  ## ✨ Module Groups
41
41
 
42
- | Import path | Directory | Description |
43
- | ------------------------------ | -------------------- | -------------------------------------------- |
44
- | `@oxpo/nest-kit` (or `./core`) | `packages/core` | Shared types, utilities, base classes |
45
- | `@oxpo/nest-kit/bootstrap` | `packages/bootstrap` | One-liner setup for Swagger, Cache, TypeORM… |
46
- | `@oxpo/nest-kit/auth` | `packages/auth` | RBAC, OAuth 2.0, SSO, JWT, API Keys |
47
- | `@oxpo/nest-kit/saas` | `packages/saas` | Orgs, Teams, Multi-tenancy, Subscriptions |
48
- | `@oxpo/nest-kit/infra` | `packages/infra` | Infrastructure integrations |
42
+ | Import path | Directory | Description |
43
+ | ------------------------------- | -------------------- | -------------------------------------------- |
44
+ | `@os.io/nest-kit` (or `./core`) | `packages/core` | Shared types, utilities, base classes |
45
+ | `@os.io/nest-kit/bootstrap` | `packages/bootstrap` | One-liner setup for Swagger, Cache, TypeORM… |
46
+ | `@os.io/nest-kit/auth` | `packages/auth` | RBAC, OAuth 2.0, SSO, JWT, API Keys |
47
+ | `@os.io/nest-kit/saas` | `packages/saas` | Orgs, Teams, Multi-tenancy, Subscriptions |
48
+ | `@os.io/nest-kit/infra` | `packages/infra` | Infrastructure integrations |
49
49
 
50
50
  **Infra sub-modules** (import via sub-path):
51
51
 
52
- | Import path | Purpose |
53
- | ----------------------------------- | ----------------------------------------------- |
54
- | `@oxpo/nest-kit/infra/logger` | Structured logging (Pino, Winston) |
55
- | `@oxpo/nest-kit/infra/notification` | Email (SES, SendGrid), SMS (Twilio), Push (FCM) |
56
- | `@oxpo/nest-kit/infra/storage` | Unified file API: LocalFS, S3, GCS, Azure |
57
- | `@oxpo/nest-kit/infra/stripe` | Webhooks, subscriptions, checkout |
58
- | `@oxpo/nest-kit/infra/audit-log` | Audit trails, data change capture |
59
- | `@oxpo/nest-kit/infra/metrics` | Prometheus, OpenTelemetry, health checks |
52
+ | Import path | Purpose |
53
+ | ------------------------------------ | ----------------------------------------------- |
54
+ | `@os.io/nest-kit/infra/logger` | Structured logging (Pino, Winston) |
55
+ | `@os.io/nest-kit/infra/notification` | Email (SES, SendGrid), SMS (Twilio), Push (FCM) |
56
+ | `@os.io/nest-kit/infra/storage` | Unified file API: LocalFS, S3, GCS, Azure |
57
+ | `@os.io/nest-kit/infra/stripe` | Webhooks, subscriptions, checkout |
58
+ | `@os.io/nest-kit/infra/audit-log` | Audit trails, data change capture |
59
+ | `@os.io/nest-kit/infra/metrics` | Prometheus, OpenTelemetry, health checks |
60
60
 
61
61
  ## 📦 Installation
62
62
 
63
63
  ```bash
64
- npm install @oxpo/nest-kit
64
+ npm install @os.io/nest-kit
65
65
  ```
66
66
 
67
67
  Then import only what you need:
68
68
 
69
69
  ```ts
70
- import { setupSwagger } from '@oxpo/nest-kit/bootstrap';
71
- import { RBACGuard } from '@oxpo/nest-kit/auth';
70
+ import { setupSwagger } from '@os.io/nest-kit/bootstrap';
71
+ import { RBACGuard } from '@os.io/nest-kit/auth';
72
72
  ```
73
73
 
74
74
  > **All modules are in early alpha.** APIs are subject to change.
@@ -79,7 +79,7 @@ import { RBACGuard } from '@oxpo/nest-kit/auth';
79
79
  // main.ts
80
80
  import { NestFactory } from '@nestjs/core';
81
81
  import { AppModule } from './app.module';
82
- // import { setupSwagger } from '@oxpo/nest-kit/bootstrap';
82
+ // import { setupSwagger } from '@os.io/nest-kit/bootstrap';
83
83
 
84
84
  async function bootstrap() {
85
85
  const app = await NestFactory.create(AppModule);
@@ -92,7 +92,7 @@ bootstrap();
92
92
  ## 📖 Documentation
93
93
 
94
94
  Full documentation is available at:
95
- ➡️ **https://oxpo-io.github.io/nest-kit** (coming soon)
95
+ ➡️ **https://osio-labs.github.io/nest-kit** (coming soon)
96
96
 
97
97
  Or browse the [docs](./docs) folder locally.
98
98
 
@@ -107,5 +107,5 @@ This project is [MIT licensed](./LICENSE).
107
107
  ---
108
108
 
109
109
  <p align="center">
110
- Made with ❤️ by <a href="https://github.com/oxpo-io">Wind Blade</a>
110
+ Made with ❤️ by <a href="https://github.com/osio-labs">Wind Blade</a>
111
111
  </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@os.io/nest-kit",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.1-alpha.2",
4
4
  "description": "A modular, production-ready NestJS toolkit — Bootstrap, Auth, SaaS, and Infra integrations in a single package.",
5
5
  "keywords": [
6
6
  "nestjs",
@@ -18,15 +18,15 @@
18
18
  "metrics",
19
19
  "typescript"
20
20
  ],
21
- "homepage": "https://github.com/oxpo-io/nest-kit#readme",
21
+ "homepage": "https://github.com/osio-labs/nest-kit#readme",
22
22
  "bugs": {
23
- "url": "https://github.com/oxpo-io/nest-kit/issues"
23
+ "url": "https://github.com/osio-labs/nest-kit/issues"
24
24
  },
25
25
  "license": "MIT",
26
- "author": "Wind Blade <vn.chemgio@yahoo.com> (https://github.com/oxpo-io)",
26
+ "author": "Wind Blade <vn.chemgio@yahoo.com> (https://github.com/osio-labs)",
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "git+https://github.com/oxpo-io/nest-kit.git"
29
+ "url": "git+https://github.com/osio-labs/nest-kit.git"
30
30
  },
31
31
  "main": "./dist/core/index.js",
32
32
  "types": "./dist/core/index.d.ts",
@@ -46,6 +46,26 @@
46
46
  "import": "./dist/bootstrap/index.js",
47
47
  "require": "./dist/bootstrap/index.js"
48
48
  },
49
+ "./bootstrap/swagger": {
50
+ "types": "./dist/bootstrap/swagger/index.d.ts",
51
+ "import": "./dist/bootstrap/swagger/index.js",
52
+ "require": "./dist/bootstrap/swagger/index.js"
53
+ },
54
+ "./bootstrap/scalar": {
55
+ "types": "./dist/bootstrap/scalar/index.d.ts",
56
+ "import": "./dist/bootstrap/scalar/index.js",
57
+ "require": "./dist/bootstrap/scalar/index.js"
58
+ },
59
+ "./bootstrap/cache": {
60
+ "types": "./dist/bootstrap/cache/index.d.ts",
61
+ "import": "./dist/bootstrap/cache/index.js",
62
+ "require": "./dist/bootstrap/cache/index.js"
63
+ },
64
+ "./bootstrap/typeorm": {
65
+ "types": "./dist/bootstrap/typeorm/index.d.ts",
66
+ "import": "./dist/bootstrap/typeorm/index.js",
67
+ "require": "./dist/bootstrap/typeorm/index.js"
68
+ },
49
69
  "./auth": {
50
70
  "types": "./dist/auth/index.d.ts",
51
71
  "import": "./dist/auth/index.js",
@@ -112,6 +132,20 @@
112
132
  "docs:build": "vitepress build docs",
113
133
  "docs:preview": "vitepress preview docs"
114
134
  },
135
+ "peerDependencies": {
136
+ "@nestjs/common": "^11.0.0",
137
+ "@nestjs/core": "^11.0.0",
138
+ "@nestjs/swagger": "^11.0.0",
139
+ "@scalar/nestjs-api-reference": "^1.0.0"
140
+ },
141
+ "peerDependenciesMeta": {
142
+ "@nestjs/swagger": {
143
+ "optional": true
144
+ },
145
+ "@scalar/nestjs-api-reference": {
146
+ "optional": true
147
+ }
148
+ },
115
149
  "publishConfig": {
116
150
  "access": "public",
117
151
  "registry": "https://registry.npmjs.org"
@@ -145,7 +179,9 @@
145
179
  "@eslint/js": "^9.18.0",
146
180
  "@nestjs/common": "^11.0.1",
147
181
  "@nestjs/core": "^11.0.1",
182
+ "@nestjs/swagger": "^11.4.4",
148
183
  "@nestjs/testing": "^11.0.1",
184
+ "@scalar/nestjs-api-reference": "^1.2.6",
149
185
  "@types/jest": "^30.0.0",
150
186
  "@types/node": "^22.10.7",
151
187
  "eslint": "^9.18.0",
@@ -1,19 +0,0 @@
1
- export declare const AUTH_MODULE_OPTIONS = "AUTH_MODULE_OPTIONS";
2
- export declare const CACHE_SERVICE = "CACHE_SERVICE";
3
- export declare const USER_SERVICE = "USER_SERVICE";
4
- export declare const AUTH_STRATEGIES = "AUTH_STRATEGIES";
5
- export declare const AUTH_METHODS_CONFIG = "AUTH_METHODS_CONFIG";
6
- export declare const RBAC_OPTIONS = "RBAC_OPTIONS";
7
- export declare const PBAC_OPTIONS = "PBAC_OPTIONS";
8
- export declare const METADATA_PUBLIC = "auth:public";
9
- export declare const METADATA_ROLES = "auth:roles";
10
- export declare const METADATA_PERMISSIONS = "auth:permissions";
11
- export declare const METADATA_POLICY = "auth:policy";
12
- export declare const METADATA_AUTH_METHODS = "auth:methods";
13
- export declare const TOKEN_BLACKLIST_PREFIX = "tok_blk:";
14
- export declare const REFRESH_TOKEN_FAMILY_PREFIX = "rt_fam:";
15
- export declare const DEVICE_SESSION_PREFIX = "dev_sess:";
16
- export declare const OTP_PREFIX = "otp:";
17
- export declare const MAGIC_LINK_PREFIX = "magic:";
18
- export declare const LOGIN_ATTEMPT_PREFIX = "login_attempt:";
19
- //# sourceMappingURL=auth.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.constants.d.ts","sourceRoot":"","sources":["../../packages/auth/auth.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,eAAO,MAAM,qBAAqB,iBAAiB,CAAC;AAEpD,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD,eAAO,MAAM,2BAA2B,YAAY,CAAC;AAErD,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAEjD,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,oBAAoB,mBAAmB,CAAC"}
@@ -1,19 +0,0 @@
1
- export const AUTH_MODULE_OPTIONS = 'AUTH_MODULE_OPTIONS';
2
- export const CACHE_SERVICE = 'CACHE_SERVICE';
3
- export const USER_SERVICE = 'USER_SERVICE';
4
- export const AUTH_STRATEGIES = 'AUTH_STRATEGIES';
5
- export const AUTH_METHODS_CONFIG = 'AUTH_METHODS_CONFIG';
6
- export const RBAC_OPTIONS = 'RBAC_OPTIONS';
7
- export const PBAC_OPTIONS = 'PBAC_OPTIONS';
8
- export const METADATA_PUBLIC = 'auth:public';
9
- export const METADATA_ROLES = 'auth:roles';
10
- export const METADATA_PERMISSIONS = 'auth:permissions';
11
- export const METADATA_POLICY = 'auth:policy';
12
- export const METADATA_AUTH_METHODS = 'auth:methods';
13
- export const TOKEN_BLACKLIST_PREFIX = 'tok_blk:';
14
- export const REFRESH_TOKEN_FAMILY_PREFIX = 'rt_fam:';
15
- export const DEVICE_SESSION_PREFIX = 'dev_sess:';
16
- export const OTP_PREFIX = 'otp:';
17
- export const MAGIC_LINK_PREFIX = 'magic:';
18
- export const LOGIN_ATTEMPT_PREFIX = 'login_attempt:';
19
- //# sourceMappingURL=auth.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.constants.js","sourceRoot":"","sources":["../../packages/auth/auth.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAE7C,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;AAE3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAE7C,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAEpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAAC;AAEjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,SAAS,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AAEjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAE1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC"}
@@ -1,20 +0,0 @@
1
- import { CanActivate, ExecutionContext } from '@nestjs/common';
2
- import { Reflector } from '@nestjs/core';
3
- import { AuthService } from './auth.service';
4
- /**
5
- * Global authentication guard.
6
- *
7
- * Extracts the JWT from the `Authorization: Bearer <token>` header,
8
- * validates it via `AuthService.validateToken()`, and attaches the
9
- * decoded user to `request.user`.
10
- *
11
- * Skip authentication on routes or controllers decorated with `@Public()`.
12
- */
13
- export declare class AuthGuard implements CanActivate {
14
- private readonly reflector;
15
- private readonly authService;
16
- constructor(reflector: Reflector, authService: AuthService);
17
- canActivate(context: ExecutionContext): Promise<boolean>;
18
- private extractToken;
19
- }
20
- //# sourceMappingURL=auth.guard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.guard.d.ts","sourceRoot":"","sources":["../../packages/auth/auth.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,gBAAgB,EAAyB,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;;;;GAQG;AACH,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW;IAGrC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAwC9D,OAAO,CAAC,YAAY;CAqBrB"}
@@ -1,84 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Injectable, UnauthorizedException } from '@nestjs/common';
11
- import { Reflector } from '@nestjs/core';
12
- import { AuthService } from './auth.service';
13
- import { METADATA_PUBLIC } from './auth.constants';
14
- /**
15
- * Global authentication guard.
16
- *
17
- * Extracts the JWT from the `Authorization: Bearer <token>` header,
18
- * validates it via `AuthService.validateToken()`, and attaches the
19
- * decoded user to `request.user`.
20
- *
21
- * Skip authentication on routes or controllers decorated with `@Public()`.
22
- */
23
- let AuthGuard = class AuthGuard {
24
- reflector;
25
- authService;
26
- constructor(reflector, authService) {
27
- this.reflector = reflector;
28
- this.authService = authService;
29
- }
30
- async canActivate(context) {
31
- // Skip if marked as public
32
- const isPublic = this.reflector.getAllAndOverride(METADATA_PUBLIC, [
33
- context.getHandler(),
34
- context.getClass(),
35
- ]);
36
- if (isPublic)
37
- return true;
38
- const request = context.switchToHttp().getRequest();
39
- const token = this.extractToken(request);
40
- if (!token) {
41
- throw new UnauthorizedException('Missing authentication token');
42
- }
43
- try {
44
- const payload = await this.authService.validateToken(token);
45
- request.user = {
46
- id: payload.sub,
47
- email: payload.email,
48
- username: payload.username,
49
- roles: payload.roles ?? [],
50
- permissions: payload.permissions ?? [],
51
- isAnonymous: payload.isAnonymous ?? false,
52
- isMfaVerified: payload.isMfaVerified ?? false,
53
- };
54
- request.accessToken = token;
55
- }
56
- catch (error) {
57
- throw new UnauthorizedException(error instanceof Error ? error.message : 'Invalid token');
58
- }
59
- return true;
60
- }
61
- extractToken(request) {
62
- // Authorization header
63
- const authHeader = request.headers?.authorization;
64
- if (authHeader?.startsWith('Bearer ')) {
65
- return authHeader.slice(7);
66
- }
67
- // Cookie fallback
68
- const cookie = request.cookies?.['access_token'];
69
- if (cookie)
70
- return cookie;
71
- // Query param fallback (for WebSocket / SSE)
72
- const query = request.query?.['token'];
73
- if (query)
74
- return query;
75
- return undefined;
76
- }
77
- };
78
- AuthGuard = __decorate([
79
- Injectable(),
80
- __metadata("design:paramtypes", [Reflector,
81
- AuthService])
82
- ], AuthGuard);
83
- export { AuthGuard };
84
- //# sourceMappingURL=auth.guard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../packages/auth/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAiC,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;GAQG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAS;IAED;IACA;IAFnB,YACmB,SAAoB,EACpB,WAAwB;QADxB,cAAS,GAAT,SAAS,CAAW;QACpB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,2BAA2B;QAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,eAAe,EAAE;YAC1E,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QACH,IAAI,QAAQ;YAAE,OAAO,IAAI,CAAC;QAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAM7C,CAAC;QACL,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAEzC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,qBAAqB,CAAC,8BAA8B,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC5D,OAAO,CAAC,IAAI,GAAG;gBACb,EAAE,EAAE,OAAO,CAAC,GAAa;gBACzB,KAAK,EAAE,OAAO,CAAC,KAA2B;gBAC1C,QAAQ,EAAE,OAAO,CAAC,QAA8B;gBAChD,KAAK,EAAG,OAAO,CAAC,KAAkB,IAAI,EAAE;gBACxC,WAAW,EAAG,OAAO,CAAC,WAAwB,IAAI,EAAE;gBACpD,WAAW,EAAG,OAAO,CAAC,WAAuB,IAAI,KAAK;gBACtD,aAAa,EAAG,OAAO,CAAC,aAAyB,IAAI,KAAK;aAC3D,CAAC;YACF,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC;QAC9B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,qBAAqB,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QAC5F,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,YAAY,CAAC,OAIpB;QACC,uBAAuB;QACvB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC;QAClD,IAAI,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YACtC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;QAED,kBAAkB;QAClB,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,CAAC;QACjD,IAAI,MAAM;YAAE,OAAO,MAAM,CAAC;QAE1B,6CAA6C;QAC7C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC;QAExB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAA;AAnEY,SAAS;IADrB,UAAU,EAAE;qCAGmB,SAAS;QACP,WAAW;GAHhC,SAAS,CAmErB"}
@@ -1,26 +0,0 @@
1
- import { type DynamicModule, type Provider } from '@nestjs/common';
2
- import type { AuthModuleOptions, AuthModuleAsyncOptions } from './auth.options';
3
- export declare class AuthModule {
4
- /**
5
- * Configure the auth module synchronously.
6
- */
7
- static forRoot(options: AuthModuleOptions, extraProviders?: Provider[]): DynamicModule;
8
- /**
9
- * Configure the auth module asynchronously.
10
- */
11
- static forRootAsync(options: AuthModuleAsyncOptions): DynamicModule;
12
- private static buildModule;
13
- private static createAsyncProviders;
14
- /**
15
- * Conditionally register strategy classes based on config.
16
- * Only enabled strategies are registered as providers.
17
- */
18
- private static createStrategyProviders;
19
- private static createCoreProviders;
20
- private static createAuthzProviders;
21
- private static createEnabledStrategiesProvider;
22
- private static getExports;
23
- private static createDisabledStrategy;
24
- private static nameFor;
25
- }
26
- //# sourceMappingURL=auth.module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../../packages/auth/auth.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAkB,MAAM,gBAAgB,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA6BhF,qBACa,UAAU;IACrB;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,cAAc,GAAE,QAAQ,EAAO,GAAG,aAAa;IAI1F;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa;IAuBnE,OAAO,CAAC,MAAM,CAAC,WAAW;IA4B1B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAUnC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAgKtC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAYlC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA2BnC,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAyC9C,OAAO,CAAC,MAAM,CAAC,UAAU;IA0BzB,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAMrC,OAAO,CAAC,MAAM,CAAC,OAAO;CAGvB"}