@venizia/ignis-atlas 0.1.0-1

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 (436) hide show
  1. package/LICENSE.md +104 -0
  2. package/README.md +144 -0
  3. package/dist/cjs/cli/modes.d.ts +29 -0
  4. package/dist/cjs/cli/modes.d.ts.map +1 -0
  5. package/dist/cjs/cli/modes.js +70 -0
  6. package/dist/cjs/cli/modes.js.map +1 -0
  7. package/dist/cjs/cli.d.ts +3 -0
  8. package/dist/cjs/cli.d.ts.map +1 -0
  9. package/dist/cjs/cli.js +60 -0
  10. package/dist/cjs/cli.js.map +1 -0
  11. package/dist/cjs/common/constants.d.ts +22 -0
  12. package/dist/cjs/common/constants.d.ts.map +1 -0
  13. package/dist/cjs/common/constants.js +32 -0
  14. package/dist/cjs/common/constants.js.map +1 -0
  15. package/dist/cjs/common/index.d.ts +3 -0
  16. package/dist/cjs/common/index.d.ts.map +1 -0
  17. package/dist/cjs/common/index.js +19 -0
  18. package/dist/cjs/common/index.js.map +1 -0
  19. package/dist/cjs/common/logger.d.ts +21 -0
  20. package/dist/cjs/common/logger.d.ts.map +1 -0
  21. package/dist/cjs/common/logger.js +50 -0
  22. package/dist/cjs/common/logger.js.map +1 -0
  23. package/dist/cjs/common/types.d.ts +5 -0
  24. package/dist/cjs/common/types.d.ts.map +1 -0
  25. package/dist/cjs/common/types.js +3 -0
  26. package/dist/cjs/common/types.js.map +1 -0
  27. package/dist/cjs/corpus/chunker.d.ts +12 -0
  28. package/dist/cjs/corpus/chunker.d.ts.map +1 -0
  29. package/dist/cjs/corpus/chunker.js +298 -0
  30. package/dist/cjs/corpus/chunker.js.map +1 -0
  31. package/dist/cjs/corpus/common/index.d.ts +2 -0
  32. package/dist/cjs/corpus/common/index.d.ts.map +1 -0
  33. package/dist/cjs/corpus/common/index.js +18 -0
  34. package/dist/cjs/corpus/common/index.js.map +1 -0
  35. package/dist/cjs/corpus/common/types.d.ts +37 -0
  36. package/dist/cjs/corpus/common/types.d.ts.map +1 -0
  37. package/dist/cjs/corpus/common/types.js +3 -0
  38. package/dist/cjs/corpus/common/types.js.map +1 -0
  39. package/dist/cjs/corpus/frontmatter.d.ts +13 -0
  40. package/dist/cjs/corpus/frontmatter.d.ts.map +1 -0
  41. package/dist/cjs/corpus/frontmatter.js +31 -0
  42. package/dist/cjs/corpus/frontmatter.js.map +1 -0
  43. package/dist/cjs/corpus/index.d.ts +6 -0
  44. package/dist/cjs/corpus/index.d.ts.map +1 -0
  45. package/dist/cjs/corpus/index.js +22 -0
  46. package/dist/cjs/corpus/index.js.map +1 -0
  47. package/dist/cjs/corpus/loader.d.ts +16 -0
  48. package/dist/cjs/corpus/loader.d.ts.map +1 -0
  49. package/dist/cjs/corpus/loader.js +72 -0
  50. package/dist/cjs/corpus/loader.js.map +1 -0
  51. package/dist/cjs/corpus/roots.d.ts +9 -0
  52. package/dist/cjs/corpus/roots.d.ts.map +1 -0
  53. package/dist/cjs/corpus/roots.js +30 -0
  54. package/dist/cjs/corpus/roots.js.map +1 -0
  55. package/dist/cjs/index.d.ts +2 -0
  56. package/dist/cjs/index.d.ts.map +1 -0
  57. package/dist/cjs/index.js +18 -0
  58. package/dist/cjs/index.js.map +1 -0
  59. package/dist/cjs/protocol/common/constants.d.ts +9 -0
  60. package/dist/cjs/protocol/common/constants.d.ts.map +1 -0
  61. package/dist/cjs/protocol/common/constants.js +13 -0
  62. package/dist/cjs/protocol/common/constants.js.map +1 -0
  63. package/dist/cjs/protocol/common/index.d.ts +4 -0
  64. package/dist/cjs/protocol/common/index.d.ts.map +1 -0
  65. package/dist/cjs/protocol/common/index.js +20 -0
  66. package/dist/cjs/protocol/common/index.js.map +1 -0
  67. package/dist/cjs/protocol/common/rpc-error.d.ts +9 -0
  68. package/dist/cjs/protocol/common/rpc-error.d.ts.map +1 -0
  69. package/dist/cjs/protocol/common/rpc-error.js +12 -0
  70. package/dist/cjs/protocol/common/rpc-error.js.map +1 -0
  71. package/dist/cjs/protocol/common/types.d.ts +32 -0
  72. package/dist/cjs/protocol/common/types.d.ts.map +1 -0
  73. package/dist/cjs/protocol/common/types.js +3 -0
  74. package/dist/cjs/protocol/common/types.js.map +1 -0
  75. package/dist/cjs/protocol/index.d.ts +3 -0
  76. package/dist/cjs/protocol/index.d.ts.map +1 -0
  77. package/dist/cjs/protocol/index.js +19 -0
  78. package/dist/cjs/protocol/index.js.map +1 -0
  79. package/dist/cjs/protocol/transport.d.ts +28 -0
  80. package/dist/cjs/protocol/transport.d.ts.map +1 -0
  81. package/dist/cjs/protocol/transport.js +155 -0
  82. package/dist/cjs/protocol/transport.js.map +1 -0
  83. package/dist/cjs/search/common/constants.d.ts +23 -0
  84. package/dist/cjs/search/common/constants.d.ts.map +1 -0
  85. package/dist/cjs/search/common/constants.js +56 -0
  86. package/dist/cjs/search/common/constants.js.map +1 -0
  87. package/dist/cjs/search/common/index.d.ts +3 -0
  88. package/dist/cjs/search/common/index.d.ts.map +1 -0
  89. package/dist/cjs/search/common/index.js +19 -0
  90. package/dist/cjs/search/common/index.js.map +1 -0
  91. package/dist/cjs/search/common/types.d.ts +18 -0
  92. package/dist/cjs/search/common/types.d.ts.map +1 -0
  93. package/dist/cjs/search/common/types.js +3 -0
  94. package/dist/cjs/search/common/types.js.map +1 -0
  95. package/dist/cjs/search/index.d.ts +4 -0
  96. package/dist/cjs/search/index.d.ts.map +1 -0
  97. package/dist/cjs/search/index.js +20 -0
  98. package/dist/cjs/search/index.js.map +1 -0
  99. package/dist/cjs/search/planner.d.ts +13 -0
  100. package/dist/cjs/search/planner.d.ts.map +1 -0
  101. package/dist/cjs/search/planner.js +58 -0
  102. package/dist/cjs/search/planner.js.map +1 -0
  103. package/dist/cjs/search/store.d.ts +37 -0
  104. package/dist/cjs/search/store.d.ts.map +1 -0
  105. package/dist/cjs/search/store.js +141 -0
  106. package/dist/cjs/search/store.js.map +1 -0
  107. package/dist/cjs/server/freshness.d.ts +40 -0
  108. package/dist/cjs/server/freshness.d.ts.map +1 -0
  109. package/dist/cjs/server/freshness.js +85 -0
  110. package/dist/cjs/server/freshness.js.map +1 -0
  111. package/dist/cjs/server.d.ts +12 -0
  112. package/dist/cjs/server.d.ts.map +1 -0
  113. package/dist/cjs/server.js +65 -0
  114. package/dist/cjs/server.js.map +1 -0
  115. package/dist/cjs/tools/common/index.d.ts +2 -0
  116. package/dist/cjs/tools/common/index.d.ts.map +1 -0
  117. package/dist/cjs/tools/common/index.js +18 -0
  118. package/dist/cjs/tools/common/index.js.map +1 -0
  119. package/dist/cjs/tools/common/schemas.d.ts +23 -0
  120. package/dist/cjs/tools/common/schemas.d.ts.map +1 -0
  121. package/dist/cjs/tools/common/schemas.js +37 -0
  122. package/dist/cjs/tools/common/schemas.js.map +1 -0
  123. package/dist/cjs/tools/get.tool.d.ts +6 -0
  124. package/dist/cjs/tools/get.tool.d.ts.map +1 -0
  125. package/dist/cjs/tools/get.tool.js +115 -0
  126. package/dist/cjs/tools/get.tool.js.map +1 -0
  127. package/dist/cjs/tools/index.d.ts +4 -0
  128. package/dist/cjs/tools/index.d.ts.map +1 -0
  129. package/dist/cjs/tools/index.js +20 -0
  130. package/dist/cjs/tools/index.js.map +1 -0
  131. package/dist/cjs/tools/search.tool.d.ts +6 -0
  132. package/dist/cjs/tools/search.tool.d.ts.map +1 -0
  133. package/dist/cjs/tools/search.tool.js +58 -0
  134. package/dist/cjs/tools/search.tool.js.map +1 -0
  135. package/dist/corpus/changelogs/2025-12-16-initial-architecture.md +145 -0
  136. package/dist/corpus/changelogs/2025-12-16-model-repo-datasource-refactor.md +300 -0
  137. package/dist/corpus/changelogs/2025-12-17-refactor.md +90 -0
  138. package/dist/corpus/changelogs/2025-12-18-performance-optimizations.md +130 -0
  139. package/dist/corpus/changelogs/2025-12-18-repository-validation-security.md +255 -0
  140. package/dist/corpus/changelogs/2025-12-26-nested-relations-and-generics.md +86 -0
  141. package/dist/corpus/changelogs/2025-12-26-transaction-support.md +57 -0
  142. package/dist/corpus/changelogs/2025-12-29-dynamic-binding-registration.md +104 -0
  143. package/dist/corpus/changelogs/2025-12-29-snowflake-uid-helper.md +100 -0
  144. package/dist/corpus/changelogs/2025-12-30-repository-enhancements.md +214 -0
  145. package/dist/corpus/changelogs/2025-12-31-json-path-filtering-array-operators.md +214 -0
  146. package/dist/corpus/changelogs/2025-12-31-string-id-custom-generator.md +137 -0
  147. package/dist/corpus/changelogs/2026-01-02-default-filter-and-repository-mixins.md +421 -0
  148. package/dist/corpus/changelogs/2026-01-05-range-queries-content-range.md +184 -0
  149. package/dist/corpus/changelogs/2026-01-06-basic-authentication.md +103 -0
  150. package/dist/corpus/changelogs/2026-01-07-controller-route-customization.md +190 -0
  151. package/dist/corpus/changelogs/2026-01-11-logger-optimization-hf-logger.md +254 -0
  152. package/dist/corpus/changelogs/2026-02-06-socket-io-integration-fix.md +541 -0
  153. package/dist/corpus/changelogs/2026-02-10-websocket-heartbeat-payload.md +173 -0
  154. package/dist/corpus/changelogs/2026-02-11-crypto-refactor-ecdh.md +217 -0
  155. package/dist/corpus/changelogs/2026-02-11-websocket-encrypted-delivery.md +209 -0
  156. package/dist/corpus/changelogs/2026-02-11-websocket-generic-types.md +134 -0
  157. package/dist/corpus/changelogs/2026-02-16-authorization-system.md +378 -0
  158. package/dist/corpus/changelogs/2026-02-26-core-helpers-decoupling.md +145 -0
  159. package/dist/corpus/changelogs/2026-02-27-jwks-authentication.md +391 -0
  160. package/dist/corpus/changelogs/2026-03-02-model-authorize-settings.md +155 -0
  161. package/dist/corpus/changelogs/2026-03-04-jwt-payload-field-codecs.md +219 -0
  162. package/dist/corpus/changelogs/2026-03-06-filter-offset-skip-fix.md +88 -0
  163. package/dist/corpus/changelogs/2026-03-10-kafka-helpers-refactor.md +225 -0
  164. package/dist/corpus/changelogs/2026-03-12-kafka-helpers-enhancement.md +169 -0
  165. package/dist/corpus/changelogs/2026-03-15-grpc-controller-system.md +281 -0
  166. package/dist/corpus/changelogs/2026-03-30-row-level-locking.md +134 -0
  167. package/dist/corpus/changelogs/2026-03-31-typescript-6-and-toolchain.md +100 -0
  168. package/dist/corpus/changelogs/2026-04-23-error-response-extra-fields.md +131 -0
  169. package/dist/corpus/changelogs/2026-05-05-refresh-token-endpoint.md +116 -0
  170. package/dist/corpus/changelogs/2026-05-08-crud-route-toggles-and-typed-responses.md +136 -0
  171. package/dist/corpus/changelogs/2026-05-20-relation-scope-default-limit.md +133 -0
  172. package/dist/corpus/changelogs/2026-05-21-mass-mutation-guards.md +102 -0
  173. package/dist/corpus/changelogs/2026-05-22-casbin-adapter-schema-qualification.md +72 -0
  174. package/dist/corpus/changelogs/2026-05-25-per-model-default-limit.md +68 -0
  175. package/dist/corpus/changelogs/2026-05-27-casbin-domain-matching-function.md +90 -0
  176. package/dist/corpus/changelogs/2026-06-02-authorize-scoped-rbac.md +105 -0
  177. package/dist/corpus/changelogs/2026-06-14-validation-codes-and-error-hardening.md +124 -0
  178. package/dist/corpus/changelogs/2026-06-18-auth-user-information-endpoint.md +69 -0
  179. package/dist/corpus/changelogs/2026-06-25-redis-helpers-refactor.md +199 -0
  180. package/dist/corpus/changelogs/2026-07-05-unified-repository-connectors.md +206 -0
  181. package/dist/corpus/changelogs/2026-07-08-typesense-advanced-search.md +72 -0
  182. package/dist/corpus/changelogs/2026-07-11-connectors-consistency-hardening.md +192 -0
  183. package/dist/corpus/changelogs/2026-07-11-postgres-driver-seam-supabase.md +146 -0
  184. package/dist/corpus/changelogs/2026-07-12-core-consolidation-dedup.md +127 -0
  185. package/dist/corpus/changelogs/2026-07-13-hardening-round.md +99 -0
  186. package/dist/corpus/changelogs/2026-07-14-driver-class-bundling.md +100 -0
  187. package/dist/corpus/changelogs/2026-07-16-error-catalog-and-structured-message.md +64 -0
  188. package/dist/corpus/changelogs/2026-07-16-secrets-vault-integration.md +72 -0
  189. package/dist/corpus/changelogs/2026-07-17-error-module-redesign.md +202 -0
  190. package/dist/corpus/changelogs/2026-07-17-logger-correctness-pass.md +46 -0
  191. package/dist/corpus/changelogs/2026-07-17-secrets-bundler-invisible-peers.md +30 -0
  192. package/dist/corpus/changelogs/2026-07-18-dependency-refresh.md +55 -0
  193. package/dist/corpus/changelogs/2026-07-18-logger-overhaul.md +104 -0
  194. package/dist/corpus/changelogs/2026-07-18-repository-read-retry.md +74 -0
  195. package/dist/corpus/changelogs/2026-07-20-casbin-custom-grants.md +72 -0
  196. package/dist/corpus/changelogs/2026-07-20-casbin-single-wave-extraction.md +58 -0
  197. package/dist/corpus/changelogs/2026-07-20-error-from-error-client.md +66 -0
  198. package/dist/corpus/changelogs/2026-07-21-casbin-connector-resolution-fix.md +36 -0
  199. package/dist/corpus/changelogs/2026-07-25-error-logging.md +129 -0
  200. package/dist/corpus/changelogs/2026-07-25-ignis-filter-package.md +75 -0
  201. package/dist/corpus/changelogs/2026-07-26-search-and-mail-error-codes.md +58 -0
  202. package/dist/corpus/changelogs/2026-08-01-relational-connector-lift.md +403 -0
  203. package/dist/corpus/changelogs/2026-08-02-sqlite-and-pglite-connectors.md +177 -0
  204. package/dist/corpus/changelogs/2026-08-05-search-dialect-relational-parity.md +90 -0
  205. package/dist/corpus/changelogs/2026-08-06-aes-pbkdf2-and-key-rotation.md +131 -0
  206. package/dist/corpus/changelogs/2026-08-07-default-query-by.md +62 -0
  207. package/dist/corpus/changelogs/2026-08-07-nested-fields-and-order-validation.md +75 -0
  208. package/dist/corpus/changelogs/2026-08-07-typesense-multi-search-transport.md +97 -0
  209. package/dist/corpus/changelogs/2026-08-12-json-log-arguments.md +69 -0
  210. package/dist/corpus/changelogs/2026-08-13-browser-pure-kernel.md +130 -0
  211. package/dist/corpus/changelogs/2026-08-18-esm-builds-and-one-default-stack.md +104 -0
  212. package/dist/corpus/changelogs/2026-08-18-opaque-uid-helper.md +43 -0
  213. package/dist/corpus/changelogs/2026-08-19-browser-bff-multi-tab.md +88 -0
  214. package/dist/corpus/changelogs/2026-08-19-service-authentication-phase-1.md +157 -0
  215. package/dist/corpus/changelogs/2026-08-21-service-authentication-strategy.md +127 -0
  216. package/dist/corpus/changelogs/2026-08-22-logger-color-off-outside-development.md +48 -0
  217. package/dist/corpus/changelogs/2026-08-24-query-wrapper-schemas.md +77 -0
  218. package/dist/corpus/changelogs/2026-08-29-casbin-domain-hierarchy.md +66 -0
  219. package/dist/corpus/changelogs/2026-08-30-authorize-no-enforcer-fails-closed.md +60 -0
  220. package/dist/corpus/changelogs/2026-08-30-crypto-hashing.md +158 -0
  221. package/dist/corpus/changelogs/2026-08-30-policy-definition-extra-variants.md +62 -0
  222. package/dist/corpus/changelogs/2026-08-30-row-scope-filter.md +221 -0
  223. package/dist/corpus/changelogs/2026-08-30-search-connector-health-and-import-contract.md +46 -0
  224. package/dist/corpus/changelogs/2026-08-30-tree-and-recursive-sql.md +188 -0
  225. package/dist/corpus/changelogs/2026-08-30-typed-where-clauses.md +114 -0
  226. package/dist/corpus/changelogs/2026-08-31-entity-id-brand.md +70 -0
  227. package/dist/corpus/changelogs/2026-08-31-event-bus-retry.md +143 -0
  228. package/dist/corpus/changelogs/2026-08-31-policy-domain-split-release-b.md +54 -0
  229. package/dist/corpus/changelogs/2026-08-31-policy-domain-split.md +175 -0
  230. package/dist/corpus/changelogs/2026-08-31-scope-filter-boot-checks.md +77 -0
  231. package/dist/corpus/changelogs/2026-09-02-bundle-safe-helpers.md +71 -0
  232. package/dist/corpus/changelogs/2026-09-02-decorator-artifact-registration.md +119 -0
  233. package/dist/corpus/changelogs/2026-09-03-deprecated-boot-api-removed.md +133 -0
  234. package/dist/corpus/changelogs/2026-09-04-dependency-floors-raised.md +61 -0
  235. package/dist/corpus/changelogs/2026-09-05-boot-checks.md +57 -0
  236. package/dist/corpus/changelogs/2026-09-05-core-drops-boot-dependency.md +44 -0
  237. package/dist/corpus/changelogs/2026-09-05-list-response-contract.md +74 -0
  238. package/dist/corpus/changelogs/2026-09-06-bun-serve-options.md +51 -0
  239. package/dist/corpus/changelogs/2026-09-06-ignis-atlas.md +54 -0
  240. package/dist/corpus/changelogs/2026-09-06-repository-inheritance-and-quiet-cli.md +46 -0
  241. package/dist/corpus/changelogs/2026-09-06-shared-singletons-across-module-copies.md +43 -0
  242. package/dist/corpus/changelogs/index.md +135 -0
  243. package/dist/corpus/changelogs/planned-schema-migrator.md +553 -0
  244. package/dist/corpus/changelogs/template.md +64 -0
  245. package/dist/corpus/wiki/best-practices/api-usage-examples.md +617 -0
  246. package/dist/corpus/wiki/best-practices/architectural-patterns.md +437 -0
  247. package/dist/corpus/wiki/best-practices/architecture-decisions.md +524 -0
  248. package/dist/corpus/wiki/best-practices/code-style-standards/advanced-patterns.md +283 -0
  249. package/dist/corpus/wiki/best-practices/code-style-standards/constants-configuration.md +240 -0
  250. package/dist/corpus/wiki/best-practices/code-style-standards/control-flow.md +280 -0
  251. package/dist/corpus/wiki/best-practices/code-style-standards/documentation.md +241 -0
  252. package/dist/corpus/wiki/best-practices/code-style-standards/function-patterns.md +178 -0
  253. package/dist/corpus/wiki/best-practices/code-style-standards/index.md +114 -0
  254. package/dist/corpus/wiki/best-practices/code-style-standards/naming-conventions.md +200 -0
  255. package/dist/corpus/wiki/best-practices/code-style-standards/route-definitions.md +205 -0
  256. package/dist/corpus/wiki/best-practices/code-style-standards/tooling.md +168 -0
  257. package/dist/corpus/wiki/best-practices/code-style-standards/type-safety.md +199 -0
  258. package/dist/corpus/wiki/best-practices/common-pitfalls.md +447 -0
  259. package/dist/corpus/wiki/best-practices/contribution-workflow.md +211 -0
  260. package/dist/corpus/wiki/best-practices/data-modeling.md +548 -0
  261. package/dist/corpus/wiki/best-practices/deployment-strategies.md +736 -0
  262. package/dist/corpus/wiki/best-practices/error-handling.md +604 -0
  263. package/dist/corpus/wiki/best-practices/index.md +206 -0
  264. package/dist/corpus/wiki/best-practices/performance-optimization.md +437 -0
  265. package/dist/corpus/wiki/best-practices/security-guidelines.md +523 -0
  266. package/dist/corpus/wiki/best-practices/testing-strategies.md +639 -0
  267. package/dist/corpus/wiki/best-practices/troubleshooting-tips.md +227 -0
  268. package/dist/corpus/wiki/extensions/atlas/index.md +65 -0
  269. package/dist/corpus/wiki/extensions/components/api-reference.md +268 -0
  270. package/dist/corpus/wiki/extensions/components/authentication/api.md +643 -0
  271. package/dist/corpus/wiki/extensions/components/authentication/errors.md +211 -0
  272. package/dist/corpus/wiki/extensions/components/authentication/index.md +171 -0
  273. package/dist/corpus/wiki/extensions/components/authentication/usage.md +464 -0
  274. package/dist/corpus/wiki/extensions/components/authorization/api.md +1509 -0
  275. package/dist/corpus/wiki/extensions/components/authorization/errors.md +397 -0
  276. package/dist/corpus/wiki/extensions/components/authorization/getting-started.md +227 -0
  277. package/dist/corpus/wiki/extensions/components/authorization/index.md +155 -0
  278. package/dist/corpus/wiki/extensions/components/authorization/usage.md +587 -0
  279. package/dist/corpus/wiki/extensions/components/health-check.md +227 -0
  280. package/dist/corpus/wiki/extensions/components/index.md +26 -0
  281. package/dist/corpus/wiki/extensions/components/mail/api.md +773 -0
  282. package/dist/corpus/wiki/extensions/components/mail/errors.md +190 -0
  283. package/dist/corpus/wiki/extensions/components/mail/index.md +182 -0
  284. package/dist/corpus/wiki/extensions/components/mail/usage.md +370 -0
  285. package/dist/corpus/wiki/extensions/components/request-tracker.md +152 -0
  286. package/dist/corpus/wiki/extensions/components/socket-io/api.md +728 -0
  287. package/dist/corpus/wiki/extensions/components/socket-io/errors.md +119 -0
  288. package/dist/corpus/wiki/extensions/components/socket-io/index.md +116 -0
  289. package/dist/corpus/wiki/extensions/components/socket-io/usage.md +429 -0
  290. package/dist/corpus/wiki/extensions/components/static-asset/api.md +593 -0
  291. package/dist/corpus/wiki/extensions/components/static-asset/errors.md +159 -0
  292. package/dist/corpus/wiki/extensions/components/static-asset/index.md +160 -0
  293. package/dist/corpus/wiki/extensions/components/static-asset/usage.md +253 -0
  294. package/dist/corpus/wiki/extensions/components/template/api-page.md +125 -0
  295. package/dist/corpus/wiki/extensions/components/template/errors-page.md +100 -0
  296. package/dist/corpus/wiki/extensions/components/template/index.md +104 -0
  297. package/dist/corpus/wiki/extensions/components/template/setup-page.md +134 -0
  298. package/dist/corpus/wiki/extensions/components/template/single-page.md +132 -0
  299. package/dist/corpus/wiki/extensions/components/template/usage-page.md +127 -0
  300. package/dist/corpus/wiki/extensions/components/websocket/api.md +416 -0
  301. package/dist/corpus/wiki/extensions/components/websocket/errors.md +128 -0
  302. package/dist/corpus/wiki/extensions/components/websocket/index.md +127 -0
  303. package/dist/corpus/wiki/extensions/components/websocket/usage.md +257 -0
  304. package/dist/corpus/wiki/extensions/helpers/cron/index.md +116 -0
  305. package/dist/corpus/wiki/extensions/helpers/crypto/index.md +136 -0
  306. package/dist/corpus/wiki/extensions/helpers/crypto/reference.md +544 -0
  307. package/dist/corpus/wiki/extensions/helpers/env/index.md +119 -0
  308. package/dist/corpus/wiki/extensions/helpers/error/index.md +373 -0
  309. package/dist/corpus/wiki/extensions/helpers/index.md +63 -0
  310. package/dist/corpus/wiki/extensions/helpers/inversion/index.md +142 -0
  311. package/dist/corpus/wiki/extensions/helpers/inversion/reference.md +531 -0
  312. package/dist/corpus/wiki/extensions/helpers/kafka/admin.md +210 -0
  313. package/dist/corpus/wiki/extensions/helpers/kafka/compile-binary.md +125 -0
  314. package/dist/corpus/wiki/extensions/helpers/kafka/consumer.md +422 -0
  315. package/dist/corpus/wiki/extensions/helpers/kafka/examples.md +154 -0
  316. package/dist/corpus/wiki/extensions/helpers/kafka/index.md +84 -0
  317. package/dist/corpus/wiki/extensions/helpers/kafka/producer.md +408 -0
  318. package/dist/corpus/wiki/extensions/helpers/kafka/schema-registry.md +194 -0
  319. package/dist/corpus/wiki/extensions/helpers/logger/hf-logger.md +220 -0
  320. package/dist/corpus/wiki/extensions/helpers/logger/index.md +156 -0
  321. package/dist/corpus/wiki/extensions/helpers/logger/pino.md +107 -0
  322. package/dist/corpus/wiki/extensions/helpers/logger/reference.md +938 -0
  323. package/dist/corpus/wiki/extensions/helpers/network/api.md +1067 -0
  324. package/dist/corpus/wiki/extensions/helpers/network/index.md +189 -0
  325. package/dist/corpus/wiki/extensions/helpers/queue/index.md +165 -0
  326. package/dist/corpus/wiki/extensions/helpers/queue/reference.md +490 -0
  327. package/dist/corpus/wiki/extensions/helpers/redis/index.md +159 -0
  328. package/dist/corpus/wiki/extensions/helpers/redis/reference.md +784 -0
  329. package/dist/corpus/wiki/extensions/helpers/secrets/index.md +136 -0
  330. package/dist/corpus/wiki/extensions/helpers/socket-io/api.md +618 -0
  331. package/dist/corpus/wiki/extensions/helpers/socket-io/index.md +167 -0
  332. package/dist/corpus/wiki/extensions/helpers/storage/api.md +1021 -0
  333. package/dist/corpus/wiki/extensions/helpers/storage/index.md +162 -0
  334. package/dist/corpus/wiki/extensions/helpers/template/index.md +69 -0
  335. package/dist/corpus/wiki/extensions/helpers/template/single-page.md +126 -0
  336. package/dist/corpus/wiki/extensions/helpers/types/index.md +143 -0
  337. package/dist/corpus/wiki/extensions/helpers/types/reference.md +708 -0
  338. package/dist/corpus/wiki/extensions/helpers/uid/index.md +259 -0
  339. package/dist/corpus/wiki/extensions/helpers/websocket/api.md +888 -0
  340. package/dist/corpus/wiki/extensions/helpers/websocket/index.md +139 -0
  341. package/dist/corpus/wiki/extensions/helpers/worker-thread/index.md +142 -0
  342. package/dist/corpus/wiki/extensions/helpers/worker-thread/reference.md +434 -0
  343. package/dist/corpus/wiki/extensions/index.md +46 -0
  344. package/dist/corpus/wiki/guides/core-concepts/application/bootstrapping.md +274 -0
  345. package/dist/corpus/wiki/guides/core-concepts/application/index.md +239 -0
  346. package/dist/corpus/wiki/guides/core-concepts/components-guide.md +513 -0
  347. package/dist/corpus/wiki/guides/core-concepts/components.md +155 -0
  348. package/dist/corpus/wiki/guides/core-concepts/dependency-injection.md +336 -0
  349. package/dist/corpus/wiki/guides/core-concepts/grpc-controllers.md +296 -0
  350. package/dist/corpus/wiki/guides/core-concepts/persistent/datasources.md +195 -0
  351. package/dist/corpus/wiki/guides/core-concepts/persistent/index.md +132 -0
  352. package/dist/corpus/wiki/guides/core-concepts/persistent/models.md +331 -0
  353. package/dist/corpus/wiki/guides/core-concepts/persistent/pglite.md +218 -0
  354. package/dist/corpus/wiki/guides/core-concepts/persistent/postgres-drivers.md +207 -0
  355. package/dist/corpus/wiki/guides/core-concepts/persistent/repositories.md +311 -0
  356. package/dist/corpus/wiki/guides/core-concepts/persistent/search-meilisearch.md +195 -0
  357. package/dist/corpus/wiki/guides/core-concepts/persistent/search-typesense.md +443 -0
  358. package/dist/corpus/wiki/guides/core-concepts/persistent/sqlite.md +296 -0
  359. package/dist/corpus/wiki/guides/core-concepts/persistent/transactions.md +238 -0
  360. package/dist/corpus/wiki/guides/core-concepts/rest-controllers.md +465 -0
  361. package/dist/corpus/wiki/guides/core-concepts/secrets-vault.md +177 -0
  362. package/dist/corpus/wiki/guides/core-concepts/services.md +389 -0
  363. package/dist/corpus/wiki/guides/get-started/5-minute-quickstart.md +163 -0
  364. package/dist/corpus/wiki/guides/get-started/philosophy.md +135 -0
  365. package/dist/corpus/wiki/guides/get-started/setup.md +136 -0
  366. package/dist/corpus/wiki/guides/index.md +82 -0
  367. package/dist/corpus/wiki/guides/migrations/boot-api-removal-migration.md +79 -0
  368. package/dist/corpus/wiki/guides/migrations/redis-helpers-migration.md +178 -0
  369. package/dist/corpus/wiki/guides/migrations/scoped-rbac-migration.md +300 -0
  370. package/dist/corpus/wiki/guides/migrations/unified-connectors-migration.md +114 -0
  371. package/dist/corpus/wiki/guides/reference/glossary.md +250 -0
  372. package/dist/corpus/wiki/guides/tutorials/building-a-crud-api.md +704 -0
  373. package/dist/corpus/wiki/guides/tutorials/complete-installation.md +440 -0
  374. package/dist/corpus/wiki/guides/tutorials/ecommerce-api.md +1442 -0
  375. package/dist/corpus/wiki/guides/tutorials/realtime-chat.md +1571 -0
  376. package/dist/corpus/wiki/guides/tutorials/testing.md +264 -0
  377. package/dist/corpus/wiki/index.md +5 -0
  378. package/dist/corpus/wiki/public/apple-touch-icon.png +0 -0
  379. package/dist/corpus/wiki/public/logo.svg +1 -0
  380. package/dist/corpus/wiki/public/og-image.png +0 -0
  381. package/dist/corpus/wiki/public/site.webmanifest +11 -0
  382. package/dist/corpus/wiki/references/base/application.md +482 -0
  383. package/dist/corpus/wiki/references/base/bootstrapping.md +351 -0
  384. package/dist/corpus/wiki/references/base/components.md +883 -0
  385. package/dist/corpus/wiki/references/base/connectors.md +121 -0
  386. package/dist/corpus/wiki/references/base/controllers.md +1022 -0
  387. package/dist/corpus/wiki/references/base/datasources-reference.md +598 -0
  388. package/dist/corpus/wiki/references/base/datasources.md +165 -0
  389. package/dist/corpus/wiki/references/base/dependency-injection.md +423 -0
  390. package/dist/corpus/wiki/references/base/filter-system/application-usage.md +215 -0
  391. package/dist/corpus/wiki/references/base/filter-system/array-operators.md +135 -0
  392. package/dist/corpus/wiki/references/base/filter-system/comparison-operators.md +110 -0
  393. package/dist/corpus/wiki/references/base/filter-system/default-filter.md +267 -0
  394. package/dist/corpus/wiki/references/base/filter-system/fields-order-pagination.md +244 -0
  395. package/dist/corpus/wiki/references/base/filter-system/index.md +149 -0
  396. package/dist/corpus/wiki/references/base/filter-system/json-filtering.md +122 -0
  397. package/dist/corpus/wiki/references/base/filter-system/list-operators.md +56 -0
  398. package/dist/corpus/wiki/references/base/filter-system/logical-operators.md +148 -0
  399. package/dist/corpus/wiki/references/base/filter-system/null-operators.md +80 -0
  400. package/dist/corpus/wiki/references/base/filter-system/pattern-matching.md +105 -0
  401. package/dist/corpus/wiki/references/base/filter-system/quick-reference.md +172 -0
  402. package/dist/corpus/wiki/references/base/filter-system/range-operators.md +53 -0
  403. package/dist/corpus/wiki/references/base/filter-system/tips.md +154 -0
  404. package/dist/corpus/wiki/references/base/filter-system/use-cases.md +394 -0
  405. package/dist/corpus/wiki/references/base/grpc-controllers.md +1020 -0
  406. package/dist/corpus/wiki/references/base/index.md +112 -0
  407. package/dist/corpus/wiki/references/base/middlewares.md +543 -0
  408. package/dist/corpus/wiki/references/base/models-reference.md +886 -0
  409. package/dist/corpus/wiki/references/base/models.md +154 -0
  410. package/dist/corpus/wiki/references/base/providers.md +728 -0
  411. package/dist/corpus/wiki/references/base/repositories/advanced.md +627 -0
  412. package/dist/corpus/wiki/references/base/repositories/index.md +152 -0
  413. package/dist/corpus/wiki/references/base/repositories/mixins.md +103 -0
  414. package/dist/corpus/wiki/references/base/repositories/relations.md +379 -0
  415. package/dist/corpus/wiki/references/base/repositories/soft-deletable.md +307 -0
  416. package/dist/corpus/wiki/references/base/secrets.md +267 -0
  417. package/dist/corpus/wiki/references/base/services.md +417 -0
  418. package/dist/corpus/wiki/references/configuration/environment-variables.md +498 -0
  419. package/dist/corpus/wiki/references/configuration/index.md +132 -0
  420. package/dist/corpus/wiki/references/index.md +172 -0
  421. package/dist/corpus/wiki/references/quick-reference.md +594 -0
  422. package/dist/corpus/wiki/references/utilities/date.md +50 -0
  423. package/dist/corpus/wiki/references/utilities/duration.md +85 -0
  424. package/dist/corpus/wiki/references/utilities/index.md +81 -0
  425. package/dist/corpus/wiki/references/utilities/jsx-reference.md +298 -0
  426. package/dist/corpus/wiki/references/utilities/jsx.md +131 -0
  427. package/dist/corpus/wiki/references/utilities/module.md +110 -0
  428. package/dist/corpus/wiki/references/utilities/parse.md +55 -0
  429. package/dist/corpus/wiki/references/utilities/performance.md +54 -0
  430. package/dist/corpus/wiki/references/utilities/promise.md +54 -0
  431. package/dist/corpus/wiki/references/utilities/request.md +85 -0
  432. package/dist/corpus/wiki/references/utilities/retry.md +148 -0
  433. package/dist/corpus/wiki/references/utilities/schema.md +69 -0
  434. package/dist/corpus/wiki/references/utilities/statuses-reference.md +360 -0
  435. package/dist/corpus/wiki/references/utilities/statuses.md +122 -0
  436. package/package.json +74 -0
@@ -0,0 +1,104 @@
1
+ ---
2
+ title: Logger Overhaul - ILogger Tier, Pino Provider, Single-Provider Loading
3
+ description: The logger was rebuilt behind an ILogger contract - five levels, two swappable providers loaded one at a time, a reworked HfLogger, and a redaction kill-switch.
4
+ ---
5
+
6
+ # Changelog - 2026-07-18
7
+
8
+ ## Logger Overhaul
9
+
10
+ <Badge type="warning" text="Breaking Change" /> <Badge type="tip" text="New Feature" /> <Badge type="tip" text="Enhancement" /> <Badge type="info" text="Bug Fix" />
11
+
12
+ **In one line.** Consumers now type against `ILogger` and never name a provider. The app picks winston or pino with one line at the entrypoint, and loads only that one. `HfLogger` emits correct output and implements `ILogger`.
13
+
14
+ ## Architecture
15
+
16
+ `modules/logger/` follows IGNIS's house format:
17
+
18
+ ```
19
+ common/ ILogger, TLogLevel, LogLevels, LoggerFormats
20
+ base/ AbstractLogger -> BaseLogger (scope, prefix, DEBUG gate, .for(), one write() sink)
21
+ formatting/ formatLogMessage (deep %s inspection + secret redaction)
22
+ winston/ WinstonLogger + define.ts, formatters, transports -> sub-path /winston
23
+ pino/ PinoLogger + define.ts -> sub-path /pino
24
+ hf/ HfLogger, HfLogFlusher (separate ring-buffer pipeline)
25
+ factory.ts LoggerFactory - the one selection point
26
+ ```
27
+
28
+ - **`ILogger` is the contract.** `LoggerFactory.getLogger()` and `BaseHelper.logger` return `ILogger`; which provider backs it is invisible.
29
+ - **New exports:** `ILogger`, `AbstractLogger`, `BaseLogger`, `WinstonLogger`, `PinoLogger`, `ILoggerProvider`.
30
+
31
+ ## Provider registration and single-provider loading
32
+
33
+ ```typescript
34
+ // entrypoint - order-independent
35
+ import { LoggerFactory } from '@venizia/ignis-helpers';
36
+ import { PinoLogger } from '@venizia/ignis-helpers/pino';
37
+
38
+ LoggerFactory.use({ provider: PinoLogger });
39
+ ```
40
+
41
+ - **Swap-on-use.** The factory hands out stable wrappers and re-points every one at `use()`. A module-level `const logger = LoggerFactory.getLogger([...])`, captured at import time, still follows the registration. Wrapper cost: one property read.
42
+ - **Exactly ONE provider loads.** Wrappers resolve their delegate at the first log call, and the winston default sits behind a `createRequire` boundary a bundler cannot resolve. An app registering pino never loads or bundles winston.
43
+ - **Both providers are sub-path only.** The root barrel is provider-free; all winston names live at `@venizia/ignis-helpers/winston`, pino at `/pino`. All provider packages are optional peers.
44
+ - **Compiled binaries** (`bun build --compile`) MUST register explicitly - only a class reference carries a provider into a bundle.
45
+
46
+ **Pino provider** ([guide](/extensions/helpers/logger/pino)): NDJSON to stdout by default, `pino-pretty` on `APP_ENV_LOGGER_FORMAT=text`, `pino-roll` rotation honoring the existing `APP_ENV_LOGGER_FILE_*` variables. Roughly 2.5x faster per line than winston (~0.5us vs ~1.25us). Pino stays pino-native - JSON key names, single-destination output, and no UDP transport differ from winston by design.
47
+
48
+ ## Five log levels
49
+
50
+ `debug`, `info`, `warn`, `error`, `emerg` - each a direct method, plus `log(level, ...)` for dynamic choice. `alert`, `http`, `verbose`, and `silly` were removed (zero call sites, no consuming infrastructure; `alert` duplicated `emerg`). The default `debug` floor admits every level on both providers.
51
+
52
+ | Level | Priority | Color |
53
+ |-------|----------|-------|
54
+ | `error` | 0 | red |
55
+ | `emerg` | 0 | red |
56
+ | `warn` | 1 | yellow |
57
+ | `info` | 2 | green |
58
+ | `debug` | 3 | blue |
59
+
60
+ ## HfLogger rework
61
+
62
+ - **Correct output.** Entries carry explicit scope/message length bytes - no NUL padding, no stale tails from a longer overwritten message.
63
+ - **`ILogger` conformance.** All five level methods plus `log` and `for`; args are formatted (deep inspection + redaction), never dropped. The pre-encoded bytes hot path survives as an overload.
64
+ - **Exact lap accounting.** Every drain batch reports how many entries the ring overwrote; the default sink emits a `warn` marker.
65
+ - **Lazy 16MB ring** - allocated on first `HfLogger.get()`, not at import - lives on a plain `ArrayBuffer`. The design was always single-thread, so `SharedArrayBuffer` shared nothing.
66
+ - **Flusher lifecycle:** `stop()`, an unref'd interval, batched yielding drains, and pluggable `sink` / `filePath` options.
67
+ - Measured ~46-66ns per enqueue, ~14x faster than pino sync on the same machine; heap flat over 1M logs.
68
+
69
+ ## Secret redaction kill-switch
70
+
71
+ `APP_ENV_LOGGER_DO_REDACT=false` (that literal only - fail-closed) turns redaction into a pass-through for local debugging. It covers log arguments, fetcher request logs, and connection URLs. Unset or any other value keeps today's behavior. Never disable in production.
72
+
73
+ ## Breaking changes
74
+
75
+ | Change | Migration |
76
+ |---|---|
77
+ | Winston names left the root barrel | Import `Logger`, `WinstonLogger`, `defineCustomLogger`, formatters, `DgramTransport`, and their option types from `@venizia/ignis-helpers/winston` |
78
+ | winston is an optional peer | Apps relying on the default: `bun add winston winston-transport winston-daily-rotate-file` |
79
+ | Compiled binaries | Call `LoggerFactory.use({ provider })` explicitly |
80
+ | `applicationLogger` removed (value and `ApplicationLogger` type alias) | `ApplicationLogger.get('YourScope')`; annotate with `ILogger` |
81
+ | `: Logger` annotations | Widen to `: ILogger` (also for `.for()` results) |
82
+ | `ApplicationLogger` is no longer a class | `instanceof AbstractLogger` for provider-agnostic checks |
83
+ | Removed levels `alert`/`http`/`verbose`/`silly` | `alert` -> `emerg`, `http`/`verbose` -> `info` or `debug`, `silly` -> `debug` |
84
+ | `ICustomLoggerOptions` field names | `logLevels` -> `levels`, `logColors` -> `colors`, `loggerFormatter` -> `formatter` |
85
+ | HfLogger flushed line format | Now `<ISO time> [<levelName>] <scope> <message>`; the old NUL-padded shape was corrupt output, not a contract |
86
+
87
+ Untyped call sites (`this.logger.info(...)`, `LoggerFactory.getLogger([...])`, `.for('method')`) need no change.
88
+
89
+ ## Details
90
+
91
+ - **HfLogger entry layout v2** (256 bytes total):
92
+
93
+ | Field | Bytes |
94
+ |---|---|
95
+ | `float64` epoch-ms timestamp | 0-7 |
96
+ | Level code | 8 |
97
+ | Scope length | 9 |
98
+ | Scope | 10-41 |
99
+ | Message length | 42 |
100
+ | Message (cap 213 bytes) | 43-255 |
101
+
102
+ Encode cache is FIFO-bounded at 4096.
103
+ - **Winston pipeline:** two-stage formatting - shared prep on the logger, per-transport assembly. Console colorizes; file and UDP lines stay ANSI-free. File transports remain opt-in via `APP_ENV_LOGGER_FOLDER_PATH`.
104
+ - Environment variables, the level guide, and every API signature: [Full reference](/extensions/helpers/logger/reference).
@@ -0,0 +1,74 @@
1
+ ---
2
+ title: Repository Read Retry - Predicate-Driven Retries for Replica Lag
3
+ description: find/findOne/findById accept an opt-in retry option that re-reads until a predicate passes - fixes read-after-write staleness behind a replicated pool.
4
+ ---
5
+
6
+ # Changelog - 2026-07-18
7
+
8
+ ## Repository Read Retry
9
+
10
+ <Badge type="tip" text="New Feature" />
11
+
12
+ **In one line.** `find`, `findOne`, and `findById` accept an opt-in `retry` option: re-read with backoff until the result looks right. Built for read-after-write lag behind a replicated pool such as PgDog.
13
+
14
+ ## The problem it solves
15
+
16
+ You create a row, then read it back. The read lands on a replica that has not caught up, so the row "is not there". `retry` re-reads until it is:
17
+
18
+ ```typescript
19
+ const user = await userRepository.findById({
20
+ id,
21
+ options: { retry: { maxAttempts: 4 } },
22
+ });
23
+ ```
24
+
25
+ After an update, tell `retry` what "fresh" means:
26
+
27
+ ```typescript
28
+ const order = await orderRepository.findById({
29
+ id,
30
+ options: { retry: { until: result => result?.status === 'PAID' } },
31
+ });
32
+ ```
33
+
34
+ ## What changed
35
+
36
+ - `find`, `findOne`, `findById` accept `options.retry` - on the PostgreSQL chain and the search chain (Typesense, Meilisearch).
37
+ - Off by default. Without `retry`, behavior is exactly what it was before.
38
+ - Write verbs (`create`, `updateById`, ...) do not have this option. `retry` on a write is a compile error.
39
+ - New helper in `@venizia/ignis-helpers`: `executeWithRetryUntil` - the loop behind the option, usable anywhere you need to poll for a condition.
40
+
41
+ ## The rules, in plain words
42
+
43
+ - Retry happens only when the read SUCCEEDED but the result is not what you want yet.
44
+ - A real database error is never retried. It throws immediately, same as before.
45
+ - Out of attempts? You get the last result as-is. No new error.
46
+ - Inside a transaction, retry is skipped - transactions already go to the primary.
47
+
48
+ ## Options
49
+
50
+ | Option | Default | Meaning |
51
+ |---|---|---|
52
+ | `maxAttempts` | `3` | Total reads, including the first |
53
+ | `until` | per verb (below) | Return `true` to stop: "the result is fresh enough" |
54
+ | `maxTotalMs` | unlimited | Stop starting new attempts after this much time |
55
+ | `backoff` | 50ms up to 500ms, jittered | Wait between attempts |
56
+ | `signal` | - | Cancel the loop (rejects the call) |
57
+
58
+ Default `until` per verb - the predicate is typed, so it sees exactly what the verb returns:
59
+
60
+ | Verb | Stops when |
61
+ |---|---|
62
+ | `findOne` / `findById` | result is not `null`/`undefined` |
63
+ | `find` | array is non-empty |
64
+ | `find` + `shouldQueryRange: true` | `data` is non-empty |
65
+
66
+ ## Who is affected
67
+
68
+ - **Single-primary setups:** nothing to do.
69
+ - **Apps behind a replicated pool:** add `retry` to reads that follow writes. Delete your hand-rolled polling loops.
70
+
71
+ ## See also
72
+
73
+ - [Read Retry reference](/references/base/repositories/advanced#read-retry-replica-lag) - full option reference and edge cases
74
+ - [Retry Utility](/references/utilities/retry) - `executeWithRetry` and `executeWithRetryUntil`
@@ -0,0 +1,72 @@
1
+ ---
2
+ title: Casbin Custom Grants - Operation-Subset Grants in One Row
3
+ description: A PolicyDefinition grant row can now carry an arbitrary subset of a subject's operations via metadata.ops; ScopedCasbinAdapter expands it at read time and planGrant composes the smallest correct set of rows for any operation selection.
4
+ ---
5
+
6
+ # Changelog - 2026-07-20
7
+
8
+ ## Casbin Custom Grants
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="tip" text="Enhancement" />
11
+
12
+ **In one line.** A grant row can now express an arbitrary subset of a subject's operations, not only a full tier. `planGrant` composes the smallest correct set of rows for any selection.
13
+
14
+ ## The problem it solves
15
+
16
+ A grant row used to mean one of four fixed tiers - `read`, `write`, `execute`, or `manage`. Granting a subject three operations out of a five-operation tier meant granting the whole tier, or hand-writing five per-operation rows:
17
+
18
+ ```typescript
19
+ const rows = planGrant({
20
+ subject: { type: 'Role', id: roleId },
21
+ resource: { type: 'Permission', id: orderResourceNodeId, subject: 'Order' },
22
+ intent: { ops: ['find', 'deleteById'] },
23
+ catalog, // [{ subject, method, code, action }, ...] resolved from your Permission table
24
+ });
25
+ ```
26
+
27
+ `planGrant` picks the smallest row set that grants exactly `find` and `deleteById` on `Order`. It uses a tier row wherever a tier fully collapses, and a custom row otherwise.
28
+
29
+ ## What changed
30
+
31
+ - New `action = 'custom'` grant mode: `AuthorizationActions.CUSTOM` (`'custom'`) plus `AuthorizationPolicyBuilder.customGrant()`.
32
+ - A custom row carries `metadata: { ops: [...] }` against a subject-level resource node - the operations it grants, not a tier.
33
+ - `ScopedCasbinAdapter.queryGrants` expands each custom row into one `p` line per operation at read time.
34
+ - The output is byte-identical to what equivalent per-operation rows produce.
35
+ - Expanding a custom row costs one extra batched catalog query (`queryOperationCatalog`) per extraction.
36
+ - Reading a custom row is opt-in. Map `entities.policyDefinition.metadata.columnName`, or the adapter never selects `metadata` - it logs and skips any custom row it finds instead.
37
+ - New `planGrant()` planner in `common/grant-planner.ts` - the supported way to build an operations-subset grant.
38
+ - `planGrant` collapses a selection into tier rows wherever a tier is fully covered. What is left over becomes one custom row, or a per-operation row if only one operation remains.
39
+ - Pass `exact: true` to turn collapsing off.
40
+ - New nullable `metadata` jsonb column in `extraPolicyDefinitionColumns`. Every app that builds its `PolicyDefinition` table from this shared column set gets it automatically.
41
+ - `queryGrants`'s SELECT now also reads `permission.subject` and `permission.method`. These resolve a custom row's target subject, and distinguish a resource node from an operation-level permission.
42
+
43
+ ## How planGrant collapses a selection
44
+
45
+ - `manage` collapses only when the selection covers at least one operation in each of `read`, `write`, and `execute`. Otherwise a future operation added to an as-yet-empty tier would be silently pre-authorized.
46
+ - Each narrower tier (`read`, `write`, `execute`) collapses on its own whenever the selection fully covers it - even a tier with a single operation. A tier is never demoted to a custom row for being small.
47
+ - What is left over after collapsing becomes one custom row, or a per-operation row if only one operation is left over.
48
+ - When the target's `supportsCustomMetadata` is `false`, every leftover operation becomes its own per-operation row instead of one custom row.
49
+ - `planGrant` throws (via `getError`) on an unknown tier, an empty `ops`, or an operation missing from the resource's catalog slice. A write is a deliberate act, so the caller hears about a mistake immediately.
50
+ - The adapter only logs and skips a malformed custom row on read. A read runs over data that may already be inconsistent - one bad row must not deny a user their remaining permissions.
51
+
52
+ ## Who is affected
53
+
54
+ - **Every consumer of `ScopedCasbinAdapter` and `AuthorizationPolicyBuilder`.** No action needed. The `metadata` column is nullable, and reading it is opt-in via `metadata.columnName`.
55
+ - **Apps that want to grant a subject a handful of operations without a full tier.** Call `planGrant({ subject, resource, intent: { ops: [...] }, catalog })` instead of writing a `customGrant` row by hand.
56
+ - It does the tier-collapse math and throws on unrecognized operations.
57
+ - **Apps that provision `PolicyDefinition` via `extraPolicyDefinitionColumns`.** The new `metadata` column appears in their schema on the next migration. It is nullable, so no backfill is required.
58
+
59
+ ## Details
60
+
61
+ - **Row shape.** A subset grant is `action: 'custom'`, targeting a subject-level resource node (`Permission.method === AuthorizationPermissionBuilder.RESOURCE_NODE_METHOD`, the `*` sentinel), with `metadata: { ops: [...] }`.
62
+ - `ops` holds method names, not full permission codes. The subject comes from the target node, so `ops: ['find']` against node `Order` resolves to `Order.find`.
63
+ - **Expansion parity.** A planned custom row and the equivalent per-operation rows expand to identical casbin lines. Nothing downstream, including the enforcer, can tell the two encodings apart.
64
+
65
+ | File | Package |
66
+ |------|---------|
67
+ | `src/components/auth/authorize/common/grant-planner.ts` | core |
68
+ | `src/components/auth/authorize/common/custom-grant.ts` | core |
69
+ | `src/components/auth/authorize/common/policy-builder.ts` | core |
70
+ | `src/components/auth/authorize/common/constants.ts` | core |
71
+ | `src/components/auth/authorize/adapters/scoped-casbin.adapter.ts` | core |
72
+ | `src/components/auth/models/entities/policy-definition.model.ts` | core |
@@ -0,0 +1,58 @@
1
+ ---
2
+ title: Casbin Single-Wave Extraction - Recursive CTE Replaces the Second Query Wave
3
+ description: ScopedCasbinAdapter.loadFilteredPolicy now issues four statements in one Promise.all - a recursive CTE resolves the role closure in SQL - and holds no cache. Required indexes are documented in place of the removed structural cache.
4
+ ---
5
+
6
+ # Changelog - 2026-07-20
7
+
8
+ ## Casbin Single-Wave Extraction
9
+
10
+ <Badge type="tip" text="Enhancement" /> <Badge type="warning" text="Behavior Change" /> <Badge type="info" text="Bug Fix" />
11
+
12
+ **In one line.** `ScopedCasbinAdapter.loadFilteredPolicy` now issues four statements in one `Promise.all`, instead of two sequential waves with an in-process BFS between them. It holds no cache of any kind.
13
+
14
+ ## The problem it solves
15
+
16
+ `loadFilteredPolicy` used to run in two waves. The first wave ran role, membership, and grant queries. An in-process BFS then computed the role closure. A second wave then queried role grants using that closure.
17
+
18
+ This change replaces the whole shape with one recursive CTE that resolves the closure in SQL. It runs alongside the other three queries in a single `Promise.all`.
19
+
20
+ ## What changed
21
+
22
+ - **One wave, four statements.** `queryPrincipalPolicy` - a single recursive CTE - replaces the old first-wave role/membership/grant queries, the in-memory role-closure BFS, and the second-wave role-grant query.
23
+ - It returns every row scoped to the principal in one round trip: its own `assign_role` / `join_domain` / `grant` rows (`kind: 'direct'`).
24
+ - It also returns the `role_inherits` edges reachable from its roles (`kind: 'roleEdge'`), and the grants of that role closure (`kind: 'roleGrant'`).
25
+ - `queryResourceInherits`, `queryActionInherits`, and `queryDomainInherits` are unchanged, and now run alongside it in the same `Promise.all`.
26
+ - **The role closure is resolved in SQL, not in JavaScript.** The CTE's recursive term uses `UNION`, not `UNION ALL`.
27
+ - De-duplication is what terminates a cyclic role graph, in place of the old in-memory `visited` set.
28
+ - **Narrower `role_inherits` emission.** Only edges reachable from the principal's assigned roles are emitted now, not the whole role graph.
29
+ - This is behavior-preserving: an edge unreachable from `r.sub` could never be traversed by the matcher anyway. It also shrinks every user's line payload.
30
+ - **The permission join is now `LEFT JOIN`, not `INNER JOIN`.** Previously, a grant row whose target `Permission` did not resolve (missing or soft-deleted) vanished from the query result with no signal at all.
31
+ - It is now returned, and `buildGrantLines` logs an error naming the subject before skipping it.
32
+ - The end state - the grant does not apply - is unchanged, but it is no longer silent.
33
+ - **The structural cache is gone.** The `structuralCache` constructor option, `invalidateStructuralCache()`, and the 60-second staleness window are removed entirely. All three were introduced earlier on this same branch, and never released.
34
+ - Extraction cost is addressed with indexes (below), not a cache.
35
+
36
+ ## Who is affected
37
+
38
+ - **Every consumer of `ScopedCasbinAdapter`.** There are no in-repo construction sites, so this reaches downstream apps directly. The constructor no longer accepts `structuralCache` - a construction site that passed it needs the option dropped.
39
+ - **Apps that called `invalidateStructuralCache()` after a migration.** The method is gone; there is nothing to invalidate, since nothing is cached. Delete the call.
40
+ - **Operators of the backing `PolicyDefinition` table.** The framework does not create indexes - the consumer owns its schema.
41
+ - A query the framework writes, paired with an index it never mentions, is the seam that produced the production incident this work descends from.
42
+ - Create the indexes below.
43
+
44
+ ## Details
45
+
46
+ Required indexes on `PolicyDefinition`, verified against a real PostgreSQL database with `EXPLAIN (ANALYZE, BUFFERS)`:
47
+
48
+ | Index | Serves | Without it |
49
+ |---|---|---|
50
+ | `(variant, subject_type, subject_id)` | `queryPrincipalPolicy`'s CTE anchor term and its direct-edge branch | Sequential scan (uses the grant branch's existing `(subject_type, subject_id)` scan only for that one branch) |
51
+ | `(variant, subject_id)` | `queryPrincipalPolicy`'s recursive-term join and its role-grant branch | Sequential scan |
52
+ | `(variant)`, or per-variant partial indexes | `queryResourceInherits`, `queryActionInherits`, `queryDomainInherits` - each filters on `variant` alone | Sequential scan |
53
+
54
+ The grant branch's `(subject_type, subject_id)` scan and the permission join's primary-key lookup were already efficient. The recursive term's sequential scan was the gap, because nothing indexes `variant`.
55
+
56
+ | File | Package |
57
+ |------|---------|
58
+ | `src/components/auth/authorize/adapters/scoped-casbin.adapter.ts` | core |
@@ -0,0 +1,66 @@
1
+ ---
2
+ title: fromError - Rehydrate a Server Error on the Client
3
+ description: A new fromError inverts the error response the middleware emits, turning a wire payload back into a live ApplicationError. The wire shape is now a shared type, TResponsedError, instead of a partial duplicate declared in each client.
4
+ ---
5
+
6
+ # Changelog - 2026-07-20
7
+
8
+ ## `fromError` - Rehydrate a Server Error on the Client
9
+
10
+ <Badge type="tip" text="New API" />
11
+
12
+ **In one line.** `fromError({ error })` turns the JSON payload `AppErrorMiddleware` sends back into a live `ApplicationError`. One `catch` block then handles a server failure and a locally thrown one alike.
13
+
14
+ ## The problem it solves
15
+
16
+ The error layer already lived in `@venizia/ignis-inversion`, not helpers, so a browser app could import it. But there was no return trip: a client received an error response and had nothing to turn it back into an error. Each client had to rediscover how the response maps onto the constructor - that `normalized` becomes `message`, that `requestId` is worth keeping. It typically declared its own partial copy of the wire type to do it.
17
+
18
+ ```ts
19
+ import { fromError, isApplicationError } from '@venizia/ignis-inversion';
20
+
21
+ try {
22
+ const response = await fetch('/reservations', { method: 'POST', body });
23
+
24
+ if (!response.ok) {
25
+ const { error } = await response.json(); // `error` is the rootKey, if configured
26
+ throw fromError({ error });
27
+ }
28
+ } catch (error) {
29
+ if (isApplicationError(error)) {
30
+ showToast(translate(error.normalized.code, error.normalized.args));
31
+ }
32
+ }
33
+ ```
34
+
35
+ ## What changed
36
+
37
+ - **`fromError({ error })`** rebuilds an `ApplicationError` from the payload `AppErrorMiddleware` emits.
38
+ - **`TResponsedError`** names the response shape in plain TypeScript, in inversion. The existing `ErrorSchema` still describes the same payload for OpenAPI. But it lives in helpers and depends on `@hono/zod-openapi`, so a browser cannot import it.
39
+ - **Every field of `TResponsedError` is optional.** A client parses what a gateway, a proxy, or an older server actually sent, not what it should have sent.
40
+ - **A malformed response still yields a usable error.** An nginx HTML 502 or an empty body still produces an `ApplicationError`, degraded to `MessageCode.DEFAULT` and status `400`. No call site needs to branch on a parse failure.
41
+
42
+ ## Mapping
43
+
44
+ | Wire field | Where it lands |
45
+ | ------------ | -------------------------------------------------------------------------------- |
46
+ | `normalized` | `normalized`, verbatim - `text`, `code`, and `args` round-trip unchanged |
47
+ | `message` | `normalized.text`, but only when `normalized` is missing entirely |
48
+ | `statusCode` | `statusCode`; `400` when the payload carries none |
49
+ | `extra` | `extra`, verbatim |
50
+ | `requestId` | `extra.requestId` - the identifier a support ticket quotes, so it survives |
51
+ | `details` | dropped - `url` and `path` the client already knows, and `stack` is the server's |
52
+
53
+ ## Who is affected
54
+
55
+ - **Existing clients: nothing to do.** Reading `error.normalized.code` is still the shortest path and stays correct. `fromError` is for a client that wants one unified `catch` instead.
56
+ - **Clients that hand-rolled a wire-type copy or their own response-to-error mapping.** Replace it with `fromError` and drop the local declaration.
57
+
58
+ ## Notes
59
+
60
+ - Use `isApplicationError()` as the guard in a browser, not `instanceof ApplicationError`. The client bundles its own copy of the class, so `instanceof` fails across the package boundary - the guard duck-types on `statusCode` instead.
61
+ - A response body read straight from `response.json()` is a plain object, not an error. It has no prototype, so `isApplicationError()` returns `false` on it until `fromError` has run.
62
+
63
+ ## See also
64
+
65
+ - [Error](/extensions/helpers/error/) - the full error layer, including the response shape
66
+ - [Error Module Redesign](./2026-07-17-error-module-redesign) - where `{ text, code, args }` came from
@@ -0,0 +1,36 @@
1
+ ---
2
+ title: BaseFilteredAdapter Connector Resolution Fix
3
+ description: BaseFilteredAdapter now falls back from getConnector() to a pre-wired connector and throws a clear framework error instead of a bare TypeError when a datasource is cold.
4
+ ---
5
+
6
+ # Changelog - 2026-07-21
7
+
8
+ ## BaseFilteredAdapter Connector Resolution Fix
9
+
10
+ <Badge type="info" text="Bug Fix" />
11
+
12
+ **In one line.** `BaseFilteredAdapter`'s `connector` getter now prefers a lazy `getConnector()` accessor, and falls back to a pre-wired `connector` field. When a datasource has neither, it fails with a named error instead of a bare `TypeError`.
13
+
14
+ ## The problem it solves
15
+
16
+ A datasource that had not resolved a connector yet - cold, not yet touched by a repository - had no `connector` field set. `BaseFilteredAdapter` read `dataSource.connector` directly. A cold datasource threw a bare `TypeError` from deep inside adapter internals, with no indication of what went wrong.
17
+
18
+ ## What changed
19
+
20
+ - **Lazy accessor preferred, pre-wired connector as fallback.** The `connector` getter now resolves `dataSource.getConnector?.() ?? dataSource.connector`.
21
+ - `getConnector()` mirrors how a repository reaches its connector: it wires the driver on first read, and survives pool rotation.
22
+ - A datasource that has not been touched yet no longer needs a connector already sitting on it.
23
+ - **A cold datasource now fails loudly.** It throws a `getError` naming `[BaseFilteredAdapter]` and explaining that the datasource must expose either accessor, instead of a bare `TypeError`.
24
+ - **`ICasbinPolicySource` updated to match.** Both `getConnector?()` and `connector?` are optional - a source only needs to provide one of them.
25
+
26
+ ## Who is affected
27
+
28
+ - **Consumers constructing `ScopedCasbinAdapter` (or any `BaseFilteredAdapter` subclass) against a datasource without a resolved connector at construction time.** No action needed - both a pre-wired `connector` field and a `getConnector()` accessor keep working.
29
+ - **Consumers that matched on the old `TypeError` message.** None known, but that error text has changed.
30
+
31
+ ## Details
32
+
33
+ | File | Package |
34
+ |------|---------|
35
+ | `src/components/auth/authorize/adapters/base-filtered.ts` | core |
36
+ | `src/components/auth/authorize/adapters/types.ts` | core |
@@ -0,0 +1,129 @@
1
+ ---
2
+ title: Readable Error Logs and a logLevel Option on getError
3
+ description: A thrown error now logs as a compact block instead of a raw object dump, and getError takes a logLevel so an expected 404 stops landing next to a real 500.
4
+ ---
5
+
6
+ # Changelog - 2026-07-25
7
+
8
+ ## Readable Error Logs and `logLevel` on `getError`
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="tip" text="Enhancement" />
11
+
12
+ **In one line.** Your error log lines change shape: shorter, with the status code and the root cause up front, and a throw site can now pick the level it logs at.
13
+
14
+ ## The problem it solves
15
+
16
+ A failed query logged the raw error. A `drizzle` error carries the statement in `message`, again in `stack`, and again in `query`, plus the wrapped `pg` error as `cause`. One failure printed the same SQL four times over, and the one useful line was buried:
17
+
18
+ ```
19
+ … Error: { name: 'Error', message: 'Failed query: \n WITH summary AS (\n …800 chars… ',
20
+ stack: 'Error: Failed query: \n …the SAME 800 chars… ', query: '\n …a THIRD time… ',
21
+ params: [ '3f8c…', '3f8c…' ], cause: { message: 'cannot update table "SaleOrder" …',
22
+ stack: '…', length: 245, severity: 'ERROR', code: '55000', hint: '…', file: '…' } }
23
+ ```
24
+
25
+ The same failure now reads:
26
+
27
+ ```
28
+ … error: [req-abc] REQUEST ERROR | 500 | POST /sale-orders
29
+ cause: cannot update table "SaleOrder" because it does not have a replica identity (code 55000)
30
+ hint: To enable updating the table, set REPLICA IDENTITY using ALTER TABLE.
31
+ message:
32
+ Failed query:
33
+ WITH summary AS ( … )
34
+ UPDATE "sale"."SaleOrder" SET total = summary.total …
35
+ stack:
36
+ at queryWithCache (…/drizzle-orm/pg-core/session.cjs:66:33)
37
+ ```
38
+
39
+ ## What changed
40
+
41
+ - **`getError` takes `logLevel`.** Pass `error`, `emerg`, `warn`, `info` or `debug`. It steers the server log only and never reaches the client response.
42
+ - **The log line leads with the status code.** `REQUEST ERROR | 404 | GET /orders/9` replaces the old `path: … | method: … | url: …` header.
43
+ - **Three fields that were missing now appear:** the resolved `statusCode`, the `normalized.code`, and the caller's `extra`.
44
+ - **`extra` is redacted.** A secret-named key inside it prints as `[REDACTED]`.
45
+ - **Driver diagnostics survive.** `pg` supplies `hint`, `detail`, `table` and `constraint`; each gets its own line when present.
46
+ - **Stack frames appear only for an unexpected failure.** An intentional `getError` knows why it failed, so its frames are HTTP-framework plumbing.
47
+ - **`ErrorPrettier` is a new public export** from `@venizia/ignis-helpers`, for logging an error anywhere else in your app.
48
+
49
+ ## Lower the level of an expected failure
50
+
51
+ A `404` is the client's fault, not yours. It does not belong in the error log next to a real `500`:
52
+
53
+ ```typescript
54
+ throw getError({
55
+ message: 'Order not found',
56
+ statusCode: 404,
57
+ messageCode: 'server.sale.order.not_found',
58
+ logLevel: 'warn',
59
+ });
60
+ ```
61
+
62
+ That line now logs at `warn`, so it stays out of `APP-error-*.log` and still reaches `APP-info-*.log`.
63
+
64
+ | `logLevel` | Console | `APP-info-*.log` | `APP-error-*.log` |
65
+ |---|---|---|---|
66
+ | `emerg` | yes | yes | yes |
67
+ | `error` (default) | yes | yes | yes |
68
+ | `warn` | yes | yes | no |
69
+ | `info` | yes | yes | no |
70
+ | `debug` | yes | no | no |
71
+
72
+ > [!TIP]
73
+ > Use `info` rather than `debug` for a failure you want quiet but still recorded. A `debug` line reaches the console but neither log file.
74
+
75
+ ## Who is affected
76
+
77
+ - **Existing `getError` call sites.** No action needed. `logLevel` is optional and defaults to `error`, so every current throw site behaves exactly as before.
78
+ - **Anyone reading server logs.** The format changed. Nothing to do, but the shape is new.
79
+ - **Log parsing, alerting or dashboards.** Action needed if any rule greps the old header. See below.
80
+ - **Browser clients.** No change. `logLevel` never crosses the wire.
81
+
82
+ ## Breaking changes
83
+
84
+ > [!WARNING]
85
+ > No API breaks. But the error log line changed shape, so a grep-based alert on the old header stops matching.
86
+
87
+ **Before:**
88
+
89
+ ```
90
+ [req-abc] REQUEST ERROR | path: /sale-orders | method: POST | url: http://host/sale-orders | Error: { … }
91
+ ```
92
+
93
+ **After:**
94
+
95
+ ```
96
+ [req-abc] REQUEST ERROR | 500 | POST http://host/sale-orders
97
+ name: TypeError
98
+ message:
99
+ cannot read properties of undefined
100
+ ```
101
+
102
+ Update any rule that matched `path: ` in an error line. The path still appears, inside the URL.
103
+
104
+ ## Details
105
+
106
+ `ErrorPrettier` projects any thrown value down to what a human needs, then renders it. Use it wherever you log an error yourself:
107
+
108
+ ```typescript
109
+ import { ErrorPrettier } from '@venizia/ignis-helpers';
110
+
111
+ this.logger.warn('[recalculate] Order totals failed | %s', ErrorPrettier.format({ error }));
112
+ ```
113
+
114
+ It keeps `name`, the full untruncated `message`, `code`, the `pg` diagnostics, the root stack frames and a flattened `cause` chain. It drops `query`, `params` and the duplicated stack header. Pass it through `%s`, which prints the string verbatim and keeps the message's real newlines.
115
+
116
+ | Option | Type | Default | Meaning |
117
+ |---|---|---|---|
118
+ | `error` | `unknown` | - | The thrown value. Anything works, including a string or a plain object |
119
+ | `messageCode` | `string` | - | Renders a `code:` line. The middleware passes `normalized.code` |
120
+ | `extra` | `Record<string, unknown>` | - | Caller context. Redacted before printing |
121
+ | `includeStack` | `boolean` | `true` | Frames are noise on an intentional error |
122
+
123
+ `ErrorPrettier.summarize` returns the same projection as a typed `IErrorSummary` object, for a JSON sink or a log aggregator.
124
+
125
+ | File | Package |
126
+ |------|---------|
127
+ | `src/modules/logger/formatting/error-prettier.ts` | helpers |
128
+ | `src/modules/error/types.ts` | inversion |
129
+ | `src/base/middlewares/app-error/app-error.middleware.ts` | core |
@@ -0,0 +1,75 @@
1
+ ---
2
+ title: ignis-filter - the Filter Vocabulary as a Browser-Safe Package
3
+ description: The filter shape, operators and query schemas now ship as @venizia/ignis-filter, usable in a browser without the server framework. Applications on @venizia/ignis need no changes.
4
+ ---
5
+
6
+ # Changelog - 2026-07-25
7
+
8
+ ## `@venizia/ignis-filter` - the Filter Vocabulary as its Own Package
9
+
10
+ <Badge type="tip" text="New Package" /> <Badge type="tip" text="Enhancement" />
11
+
12
+ **In one line.** The filter language is now a standalone package a browser can use, and if you build on `@venizia/ignis` nothing changes for you - every name is still re-exported from the core barrel.
13
+
14
+ ## What moved
15
+
16
+ `TFilter` and its members, `QueryOperators`, `TQueryOperator` and `Sorts` left `@venizia/ignis` for `@venizia/ignis-filter`. The zod query schemas followed, onto a `/schemas` subpath.
17
+
18
+ You do not need to install it. It is a regular dependency of `@venizia/ignis`, so it arrives transitively, and the core barrel re-exports it:
19
+
20
+ ```typescript
21
+ // unchanged, still works
22
+ import { QueryOperators, type TFilter, FilterSchema } from '@venizia/ignis';
23
+ ```
24
+
25
+ Install it directly only when you want the filter language **without** the server framework:
26
+
27
+ ```typescript
28
+ import { QueryOperators, Sorts, type TFilter } from '@venizia/ignis-filter';
29
+ import { FilterSchema, WhereSchema } from '@venizia/ignis-filter/schemas';
30
+ ```
31
+
32
+ ## Why it is a separate package
33
+
34
+ An offline-capable client needs to express a query in the same language the server speaks, or the two drift and every sync becomes a translation problem. Sharing the vocabulary is only possible if the vocabulary carries nothing server-side.
35
+
36
+ It did not. `operators.ts` contains no server code at all, yet bundling it for a browser pulled in **13 node builtins plus `@hono/zod-openapi` and `ioredis`** - purely because it reached `getError` through the `@venizia/ignis-helpers` root barrel, which re-exports every module. Purity is a property of the resolved import graph, never of a file's own source.
37
+
38
+ The package now resolves to `@venizia/ignis-inversion`, `lodash` and `reflect-metadata`, and nothing else. A guard test bundles it for a browser target on every run and fails if anything else appears.
39
+
40
+ ## Two subpaths, and which one you want
41
+
42
+ | Import | Contains | Use it |
43
+ |---|---|---|
44
+ | `@venizia/ignis-filter` | `TFilter`, `QueryOperators`, `Sorts` | Anywhere. Resolves no `zod`. |
45
+ | `@venizia/ignis-filter/schemas` | `FilterSchema`, `WhereSchema`, the rest | In a browser. Adds `zod`. |
46
+ | `@venizia/ignis` | the same schemas, with OpenAPI metadata | **On a server.** |
47
+
48
+ The split is deliberate: importing the vocabulary must not drag a validator into a bundle that only needs `QueryOperators`.
49
+
50
+ The server distinction matters. The instances on `/schemas` validate identically but carry no OpenAPI metadata, so a route built on them produces an API reference with no descriptions. Take them from `@venizia/ignis` on the server.
51
+
52
+ ## Building your own metadata layer
53
+
54
+ `buildQuerySchemas` accepts a decorator applied to every node, nested ones included:
55
+
56
+ ```typescript
57
+ import { buildQuerySchemas } from '@venizia/ignis-filter/schemas';
58
+
59
+ const { FilterSchema } = buildQuerySchemas({
60
+ decorate: (schema, metadata) => schema.describe(metadata.description ?? ''),
61
+ });
62
+ ```
63
+
64
+ A factory rather than a plain export because `.openapi()` returns a **new** schema instead of mutating, and several of the descriptions sit on inner nodes of a nested tree - annotating them after the tree is composed would leave the composed children bare.
65
+
66
+ ## What stayed behind
67
+
68
+ - **Translation.** Turning a `TFilter` into SQL is engine-specific; the Postgres translator is Drizzle-coupled and lives with its connector.
69
+ - **The types are hand-written, not inferred.** `TFilter<T>` is generic over the entity, so `TFilter<User>` rejects `{ where: { notAField: 1 } }`. `z.infer<typeof FilterSchema>` accepts it, because the recursive where-clause is untyped. The schema describes what arrives over the wire; the type describes what your code builds.
70
+
71
+ ## Migration
72
+
73
+ None. No public name moved, and `TLimit` / `TOffset` / `TSkip` / `TOrderBy` are restated as literal types that a compile-time assertion proves identical to what they were.
74
+
75
+ One note for anyone publishing from this repo: `@venizia/ignis-filter` must reach npm **before** `@venizia/ignis`, which now depends on it.