velocious 1.0.428 → 1.0.430

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 (933) hide show
  1. package/README.md +2 -0
  2. package/build/src/application.d.ts +96 -9
  3. package/build/src/application.d.ts.map +1 -1
  4. package/build/src/application.js +127 -28
  5. package/build/src/authorization/ability.d.ts +72 -31
  6. package/build/src/authorization/ability.d.ts.map +1 -1
  7. package/build/src/authorization/ability.js +59 -22
  8. package/build/src/authorization/base-resource.d.ts +47 -20
  9. package/build/src/authorization/base-resource.d.ts.map +1 -1
  10. package/build/src/authorization/base-resource.js +43 -14
  11. package/build/src/background-jobs/client.d.ts +4 -2
  12. package/build/src/background-jobs/client.d.ts.map +1 -1
  13. package/build/src/background-jobs/client.js +4 -2
  14. package/build/src/background-jobs/cron-expression.d.ts +9 -5
  15. package/build/src/background-jobs/cron-expression.d.ts.map +1 -1
  16. package/build/src/background-jobs/cron-expression.js +16 -6
  17. package/build/src/background-jobs/forked-runner-child.js +12 -5
  18. package/build/src/background-jobs/job-registry.d.ts +7 -1
  19. package/build/src/background-jobs/job-registry.d.ts.map +1 -1
  20. package/build/src/background-jobs/job-registry.js +8 -2
  21. package/build/src/background-jobs/job-runner.d.ts +1 -0
  22. package/build/src/background-jobs/job-runner.d.ts.map +1 -1
  23. package/build/src/background-jobs/job-runner.js +8 -3
  24. package/build/src/background-jobs/job.d.ts +12 -8
  25. package/build/src/background-jobs/job.d.ts.map +1 -1
  26. package/build/src/background-jobs/job.js +12 -6
  27. package/build/src/background-jobs/json-socket.d.ts +17 -5
  28. package/build/src/background-jobs/json-socket.d.ts.map +1 -1
  29. package/build/src/background-jobs/json-socket.js +18 -6
  30. package/build/src/background-jobs/main.d.ts +118 -32
  31. package/build/src/background-jobs/main.d.ts.map +1 -1
  32. package/build/src/background-jobs/main.js +123 -35
  33. package/build/src/background-jobs/normalize-error.d.ts +2 -1
  34. package/build/src/background-jobs/normalize-error.d.ts.map +1 -1
  35. package/build/src/background-jobs/normalize-error.js +5 -3
  36. package/build/src/background-jobs/scheduler.d.ts +31 -10
  37. package/build/src/background-jobs/scheduler.d.ts.map +1 -1
  38. package/build/src/background-jobs/scheduler.js +33 -11
  39. package/build/src/background-jobs/socket-request.d.ts +2 -0
  40. package/build/src/background-jobs/socket-request.d.ts.map +1 -1
  41. package/build/src/background-jobs/socket-request.js +11 -3
  42. package/build/src/background-jobs/status-reporter.d.ts +5 -2
  43. package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
  44. package/build/src/background-jobs/status-reporter.js +6 -3
  45. package/build/src/background-jobs/store.d.ts +57 -19
  46. package/build/src/background-jobs/store.d.ts.map +1 -1
  47. package/build/src/background-jobs/store.js +70 -20
  48. package/build/src/background-jobs/types.d.ts +7 -7
  49. package/build/src/background-jobs/types.d.ts.map +1 -1
  50. package/build/src/background-jobs/types.js +6 -6
  51. package/build/src/background-jobs/web/authorization.d.ts.map +1 -1
  52. package/build/src/background-jobs/web/authorization.js +3 -1
  53. package/build/src/background-jobs/web/controller.d.ts +40 -14
  54. package/build/src/background-jobs/web/controller.d.ts.map +1 -1
  55. package/build/src/background-jobs/web/controller.js +46 -15
  56. package/build/src/background-jobs/web/registry.d.ts +5 -0
  57. package/build/src/background-jobs/web/registry.d.ts.map +1 -1
  58. package/build/src/background-jobs/web/registry.js +4 -1
  59. package/build/src/background-jobs/worker.d.ts +41 -8
  60. package/build/src/background-jobs/worker.d.ts.map +1 -1
  61. package/build/src/background-jobs/worker.js +64 -16
  62. package/build/src/beacon/client.d.ts +39 -12
  63. package/build/src/beacon/client.d.ts.map +1 -1
  64. package/build/src/beacon/client.js +45 -15
  65. package/build/src/beacon/in-process-broker.d.ts +4 -0
  66. package/build/src/beacon/in-process-broker.d.ts.map +1 -1
  67. package/build/src/beacon/in-process-broker.js +8 -3
  68. package/build/src/beacon/in-process-client.d.ts +28 -9
  69. package/build/src/beacon/in-process-client.d.ts.map +1 -1
  70. package/build/src/beacon/in-process-client.js +27 -9
  71. package/build/src/beacon/server.d.ts +13 -2
  72. package/build/src/beacon/server.d.ts.map +1 -1
  73. package/build/src/beacon/server.js +21 -5
  74. package/build/src/beacon/types.d.ts +3 -3
  75. package/build/src/beacon/types.d.ts.map +1 -1
  76. package/build/src/beacon/types.js +2 -2
  77. package/build/src/cli/base-command.d.ts +18 -4
  78. package/build/src/cli/base-command.d.ts.map +1 -1
  79. package/build/src/cli/base-command.js +15 -4
  80. package/build/src/cli/browser-cli.d.ts +3 -0
  81. package/build/src/cli/browser-cli.d.ts.map +1 -1
  82. package/build/src/cli/browser-cli.js +7 -2
  83. package/build/src/cli/commands/background-jobs-main.d.ts +0 -1
  84. package/build/src/cli/commands/background-jobs-main.d.ts.map +1 -1
  85. package/build/src/cli/commands/background-jobs-runner.d.ts +0 -1
  86. package/build/src/cli/commands/background-jobs-runner.d.ts.map +1 -1
  87. package/build/src/cli/commands/background-jobs-worker.d.ts +0 -1
  88. package/build/src/cli/commands/background-jobs-worker.d.ts.map +1 -1
  89. package/build/src/cli/commands/beacon.d.ts +0 -1
  90. package/build/src/cli/commands/beacon.d.ts.map +1 -1
  91. package/build/src/cli/commands/console.d.ts +0 -2
  92. package/build/src/cli/commands/console.d.ts.map +1 -1
  93. package/build/src/cli/commands/console.js +5 -2
  94. package/build/src/cli/commands/db/base-command.d.ts +11 -2
  95. package/build/src/cli/commands/db/base-command.d.ts.map +1 -1
  96. package/build/src/cli/commands/db/base-command.js +12 -3
  97. package/build/src/cli/commands/db/create.d.ts +3 -0
  98. package/build/src/cli/commands/db/create.d.ts.map +1 -1
  99. package/build/src/cli/commands/db/create.js +4 -1
  100. package/build/src/cli/commands/db/drop.d.ts +3 -0
  101. package/build/src/cli/commands/db/drop.d.ts.map +1 -1
  102. package/build/src/cli/commands/db/drop.js +4 -1
  103. package/build/src/cli/commands/db/schema/dump.d.ts +0 -2
  104. package/build/src/cli/commands/db/schema/dump.d.ts.map +1 -1
  105. package/build/src/cli/commands/db/schema/dump.js +5 -2
  106. package/build/src/cli/commands/db/schema/load.d.ts +0 -2
  107. package/build/src/cli/commands/db/schema/load.d.ts.map +1 -1
  108. package/build/src/cli/commands/db/schema/load.js +5 -2
  109. package/build/src/cli/commands/db/seed.d.ts +0 -2
  110. package/build/src/cli/commands/db/seed.d.ts.map +1 -1
  111. package/build/src/cli/commands/db/seed.js +5 -2
  112. package/build/src/cli/commands/db/tenants/check.d.ts +4 -1
  113. package/build/src/cli/commands/db/tenants/check.d.ts.map +1 -1
  114. package/build/src/cli/commands/db/tenants/check.js +5 -2
  115. package/build/src/cli/commands/db/tenants/create.d.ts +4 -1
  116. package/build/src/cli/commands/db/tenants/create.d.ts.map +1 -1
  117. package/build/src/cli/commands/db/tenants/create.js +5 -2
  118. package/build/src/cli/commands/db/tenants/migrate.d.ts +4 -1
  119. package/build/src/cli/commands/db/tenants/migrate.d.ts.map +1 -1
  120. package/build/src/cli/commands/db/tenants/migrate.js +5 -2
  121. package/build/src/cli/commands/destroy/migration.d.ts +0 -1
  122. package/build/src/cli/commands/destroy/migration.d.ts.map +1 -1
  123. package/build/src/cli/commands/generate/base-models.d.ts +0 -1
  124. package/build/src/cli/commands/generate/base-models.d.ts.map +1 -1
  125. package/build/src/cli/commands/generate/frontend-models.d.ts +0 -2
  126. package/build/src/cli/commands/generate/frontend-models.d.ts.map +1 -1
  127. package/build/src/cli/commands/generate/frontend-models.js +5 -2
  128. package/build/src/cli/commands/generate/migration.d.ts +0 -1
  129. package/build/src/cli/commands/generate/migration.d.ts.map +1 -1
  130. package/build/src/cli/commands/generate/model.d.ts +0 -1
  131. package/build/src/cli/commands/generate/model.d.ts.map +1 -1
  132. package/build/src/cli/commands/init.d.ts +0 -1
  133. package/build/src/cli/commands/init.d.ts.map +1 -1
  134. package/build/src/cli/commands/routes.d.ts +0 -1
  135. package/build/src/cli/commands/routes.d.ts.map +1 -1
  136. package/build/src/cli/commands/run-script.d.ts +0 -2
  137. package/build/src/cli/commands/run-script.d.ts.map +1 -1
  138. package/build/src/cli/commands/run-script.js +5 -2
  139. package/build/src/cli/commands/runner.d.ts +0 -2
  140. package/build/src/cli/commands/runner.d.ts.map +1 -1
  141. package/build/src/cli/commands/runner.js +5 -2
  142. package/build/src/cli/commands/server.d.ts +0 -1
  143. package/build/src/cli/commands/server.d.ts.map +1 -1
  144. package/build/src/cli/commands/test.d.ts +0 -1
  145. package/build/src/cli/commands/test.d.ts.map +1 -1
  146. package/build/src/cli/index.d.ts +18 -5
  147. package/build/src/cli/index.d.ts.map +1 -1
  148. package/build/src/cli/index.js +25 -8
  149. package/build/src/cli/tenant-database-command-helper.d.ts +24 -9
  150. package/build/src/cli/tenant-database-command-helper.d.ts.map +1 -1
  151. package/build/src/cli/tenant-database-command-helper.js +30 -11
  152. package/build/src/cli/use-browser-cli.d.ts +1 -0
  153. package/build/src/cli/use-browser-cli.d.ts.map +1 -1
  154. package/build/src/cli/use-browser-cli.js +5 -2
  155. package/build/src/configuration-resolver.d.ts +1 -0
  156. package/build/src/configuration-resolver.d.ts.map +1 -1
  157. package/build/src/configuration-resolver.js +2 -1
  158. package/build/src/configuration-types.d.ts +44 -44
  159. package/build/src/configuration-types.d.ts.map +1 -1
  160. package/build/src/configuration-types.js +27 -27
  161. package/build/src/configuration.d.ts +350 -114
  162. package/build/src/configuration.d.ts.map +1 -1
  163. package/build/src/configuration.js +416 -128
  164. package/build/src/controller.d.ts +67 -18
  165. package/build/src/controller.d.ts.map +1 -1
  166. package/build/src/controller.js +88 -23
  167. package/build/src/current-configuration.d.ts +2 -0
  168. package/build/src/current-configuration.d.ts.map +1 -1
  169. package/build/src/current-configuration.js +6 -2
  170. package/build/src/current.d.ts +16 -9
  171. package/build/src/current.d.ts.map +1 -1
  172. package/build/src/current.js +15 -8
  173. package/build/src/database/annotations-async-hooks.js +13 -6
  174. package/build/src/database/annotations.d.ts +7 -1
  175. package/build/src/database/annotations.d.ts.map +1 -1
  176. package/build/src/database/annotations.js +12 -5
  177. package/build/src/database/drivers/base-column.d.ts +21 -3
  178. package/build/src/database/drivers/base-column.d.ts.map +1 -1
  179. package/build/src/database/drivers/base-column.js +21 -3
  180. package/build/src/database/drivers/base-columns-index.d.ts +9 -0
  181. package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
  182. package/build/src/database/drivers/base-columns-index.js +10 -1
  183. package/build/src/database/drivers/base-foreign-key.d.ts +15 -3
  184. package/build/src/database/drivers/base-foreign-key.d.ts.map +1 -1
  185. package/build/src/database/drivers/base-foreign-key.js +15 -3
  186. package/build/src/database/drivers/base-table.d.ts +16 -3
  187. package/build/src/database/drivers/base-table.d.ts.map +1 -1
  188. package/build/src/database/drivers/base-table.js +16 -3
  189. package/build/src/database/drivers/base.d.ts +174 -37
  190. package/build/src/database/drivers/base.d.ts.map +1 -1
  191. package/build/src/database/drivers/base.js +156 -40
  192. package/build/src/database/drivers/mssql/column.d.ts +3 -2
  193. package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
  194. package/build/src/database/drivers/mssql/column.js +3 -2
  195. package/build/src/database/drivers/mssql/index.d.ts +5 -6
  196. package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
  197. package/build/src/database/drivers/mssql/index.js +38 -7
  198. package/build/src/database/drivers/mssql/options.d.ts +1 -0
  199. package/build/src/database/drivers/mssql/options.d.ts.map +1 -1
  200. package/build/src/database/drivers/mssql/options.js +8 -2
  201. package/build/src/database/drivers/mssql/sql/create-database.d.ts +1 -0
  202. package/build/src/database/drivers/mssql/sql/create-database.d.ts.map +1 -1
  203. package/build/src/database/drivers/mssql/sql/create-database.js +2 -1
  204. package/build/src/database/drivers/mssql/sql/drop-database.d.ts.map +1 -1
  205. package/build/src/database/drivers/mssql/sql/drop-database.js +2 -1
  206. package/build/src/database/drivers/mssql/structure-sql.d.ts +5 -2
  207. package/build/src/database/drivers/mssql/structure-sql.d.ts.map +1 -1
  208. package/build/src/database/drivers/mssql/structure-sql.js +5 -2
  209. package/build/src/database/drivers/mssql/table.d.ts +1 -0
  210. package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
  211. package/build/src/database/drivers/mssql/table.js +9 -4
  212. package/build/src/database/drivers/mysql/column.d.ts +3 -2
  213. package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
  214. package/build/src/database/drivers/mysql/column.js +4 -3
  215. package/build/src/database/drivers/mysql/index.d.ts +11 -3
  216. package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
  217. package/build/src/database/drivers/mysql/index.js +54 -10
  218. package/build/src/database/drivers/mysql/options.d.ts +1 -0
  219. package/build/src/database/drivers/mysql/options.d.ts.map +1 -1
  220. package/build/src/database/drivers/mysql/options.js +4 -2
  221. package/build/src/database/drivers/mysql/query.d.ts +3 -2
  222. package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
  223. package/build/src/database/drivers/mysql/query.js +6 -3
  224. package/build/src/database/drivers/mysql/sql/create-database.d.ts.map +1 -1
  225. package/build/src/database/drivers/mysql/sql/create-database.js +3 -1
  226. package/build/src/database/drivers/mysql/structure-sql.d.ts +7 -2
  227. package/build/src/database/drivers/mysql/structure-sql.d.ts.map +1 -1
  228. package/build/src/database/drivers/mysql/structure-sql.js +7 -2
  229. package/build/src/database/drivers/mysql/table.d.ts +1 -0
  230. package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
  231. package/build/src/database/drivers/mysql/table.js +7 -3
  232. package/build/src/database/drivers/pgsql/column.d.ts +3 -2
  233. package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
  234. package/build/src/database/drivers/pgsql/column.js +3 -2
  235. package/build/src/database/drivers/pgsql/index.d.ts +1 -1
  236. package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
  237. package/build/src/database/drivers/pgsql/index.js +36 -11
  238. package/build/src/database/drivers/pgsql/options.d.ts +2 -0
  239. package/build/src/database/drivers/pgsql/options.d.ts.map +1 -1
  240. package/build/src/database/drivers/pgsql/options.js +3 -1
  241. package/build/src/database/drivers/pgsql/structure-sql.d.ts +5 -2
  242. package/build/src/database/drivers/pgsql/structure-sql.d.ts.map +1 -1
  243. package/build/src/database/drivers/pgsql/structure-sql.js +5 -2
  244. package/build/src/database/drivers/pgsql/table.d.ts +1 -0
  245. package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
  246. package/build/src/database/drivers/pgsql/table.js +6 -2
  247. package/build/src/database/drivers/sqlite/base.d.ts +15 -5
  248. package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
  249. package/build/src/database/drivers/sqlite/base.js +79 -27
  250. package/build/src/database/drivers/sqlite/column.d.ts +3 -2
  251. package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
  252. package/build/src/database/drivers/sqlite/column.js +3 -2
  253. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +4 -2
  254. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
  255. package/build/src/database/drivers/sqlite/connection-sql-js.js +4 -2
  256. package/build/src/database/drivers/sqlite/foreign-key.d.ts +3 -2
  257. package/build/src/database/drivers/sqlite/foreign-key.d.ts.map +1 -1
  258. package/build/src/database/drivers/sqlite/foreign-key.js +3 -2
  259. package/build/src/database/drivers/sqlite/index.d.ts +18 -5
  260. package/build/src/database/drivers/sqlite/index.d.ts.map +1 -1
  261. package/build/src/database/drivers/sqlite/index.js +40 -16
  262. package/build/src/database/drivers/sqlite/index.native.d.ts +1 -1
  263. package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
  264. package/build/src/database/drivers/sqlite/index.native.js +6 -3
  265. package/build/src/database/drivers/sqlite/index.web.d.ts +16 -4
  266. package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
  267. package/build/src/database/drivers/sqlite/index.web.js +17 -7
  268. package/build/src/database/drivers/sqlite/options.d.ts +2 -0
  269. package/build/src/database/drivers/sqlite/options.d.ts.map +1 -1
  270. package/build/src/database/drivers/sqlite/options.js +3 -1
  271. package/build/src/database/drivers/sqlite/query.d.ts +3 -2
  272. package/build/src/database/drivers/sqlite/query.d.ts.map +1 -1
  273. package/build/src/database/drivers/sqlite/query.js +6 -3
  274. package/build/src/database/drivers/sqlite/query.native.d.ts +2 -2
  275. package/build/src/database/drivers/sqlite/query.native.d.ts.map +1 -1
  276. package/build/src/database/drivers/sqlite/query.native.js +3 -3
  277. package/build/src/database/drivers/sqlite/query.web.d.ts +3 -2
  278. package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
  279. package/build/src/database/drivers/sqlite/query.web.js +6 -3
  280. package/build/src/database/drivers/sqlite/sql/alter-table.d.ts.map +1 -1
  281. package/build/src/database/drivers/sqlite/sql/alter-table.js +9 -3
  282. package/build/src/database/drivers/sqlite/structure-sql.d.ts +2 -0
  283. package/build/src/database/drivers/sqlite/structure-sql.d.ts.map +1 -1
  284. package/build/src/database/drivers/sqlite/structure-sql.js +3 -1
  285. package/build/src/database/drivers/sqlite/table-rebuilder.d.ts +2 -0
  286. package/build/src/database/drivers/sqlite/table-rebuilder.d.ts.map +1 -1
  287. package/build/src/database/drivers/sqlite/table-rebuilder.js +3 -1
  288. package/build/src/database/drivers/sqlite/table.d.ts +2 -0
  289. package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
  290. package/build/src/database/drivers/sqlite/table.js +14 -4
  291. package/build/src/database/drivers/structure-sql/utils.d.ts +2 -0
  292. package/build/src/database/drivers/structure-sql/utils.d.ts.map +1 -1
  293. package/build/src/database/drivers/structure-sql/utils.js +3 -1
  294. package/build/src/database/handler.d.ts +1 -0
  295. package/build/src/database/handler.d.ts.map +1 -1
  296. package/build/src/database/handler.js +2 -1
  297. package/build/src/database/initializer-from-require-context.d.ts +8 -0
  298. package/build/src/database/initializer-from-require-context.d.ts.map +1 -1
  299. package/build/src/database/initializer-from-require-context.js +4 -1
  300. package/build/src/database/migration/index.d.ts +40 -5
  301. package/build/src/database/migration/index.d.ts.map +1 -1
  302. package/build/src/database/migration/index.js +34 -6
  303. package/build/src/database/migrator/files-finder.d.ts +2 -0
  304. package/build/src/database/migrator/files-finder.d.ts.map +1 -1
  305. package/build/src/database/migrator/files-finder.js +6 -2
  306. package/build/src/database/migrator.d.ts +29 -4
  307. package/build/src/database/migrator.d.ts.map +1 -1
  308. package/build/src/database/migrator.js +45 -10
  309. package/build/src/database/pool/async-tracked-multi-connection.d.ts +125 -31
  310. package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
  311. package/build/src/database/pool/async-tracked-multi-connection.js +189 -52
  312. package/build/src/database/pool/base-methods-forward.d.ts +1 -0
  313. package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
  314. package/build/src/database/pool/base-methods-forward.js +12 -3
  315. package/build/src/database/pool/base.d.ts +39 -7
  316. package/build/src/database/pool/base.d.ts.map +1 -1
  317. package/build/src/database/pool/base.js +59 -18
  318. package/build/src/database/pool/single-multi-use.d.ts +1 -0
  319. package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
  320. package/build/src/database/pool/single-multi-use.js +16 -4
  321. package/build/src/database/query/alter-table-base.d.ts +1 -0
  322. package/build/src/database/query/alter-table-base.d.ts.map +1 -1
  323. package/build/src/database/query/alter-table-base.js +3 -1
  324. package/build/src/database/query/base.d.ts +3 -0
  325. package/build/src/database/query/base.d.ts.map +1 -1
  326. package/build/src/database/query/base.js +4 -1
  327. package/build/src/database/query/create-database-base.d.ts +5 -0
  328. package/build/src/database/query/create-database-base.d.ts.map +1 -1
  329. package/build/src/database/query/create-database-base.js +4 -1
  330. package/build/src/database/query/create-index-base.d.ts +5 -0
  331. package/build/src/database/query/create-index-base.d.ts.map +1 -1
  332. package/build/src/database/query/create-index-base.js +4 -1
  333. package/build/src/database/query/create-table-base.d.ts +2 -0
  334. package/build/src/database/query/create-table-base.d.ts.map +1 -1
  335. package/build/src/database/query/create-table-base.js +3 -1
  336. package/build/src/database/query/delete-base.d.ts +3 -2
  337. package/build/src/database/query/delete-base.d.ts.map +1 -1
  338. package/build/src/database/query/delete-base.js +3 -2
  339. package/build/src/database/query/drop-database-base.d.ts +5 -0
  340. package/build/src/database/query/drop-database-base.d.ts.map +1 -1
  341. package/build/src/database/query/drop-database-base.js +4 -1
  342. package/build/src/database/query/drop-table-base.d.ts +1 -0
  343. package/build/src/database/query/drop-table-base.d.ts.map +1 -1
  344. package/build/src/database/query/drop-table-base.js +3 -1
  345. package/build/src/database/query/from-base.d.ts +6 -1
  346. package/build/src/database/query/from-base.d.ts.map +1 -1
  347. package/build/src/database/query/from-base.js +7 -2
  348. package/build/src/database/query/from-plain.d.ts +1 -0
  349. package/build/src/database/query/from-plain.d.ts.map +1 -1
  350. package/build/src/database/query/from-plain.js +2 -1
  351. package/build/src/database/query/from-table.d.ts +1 -0
  352. package/build/src/database/query/from-table.d.ts.map +1 -1
  353. package/build/src/database/query/from-table.js +2 -1
  354. package/build/src/database/query/index.d.ts +72 -12
  355. package/build/src/database/query/index.d.ts.map +1 -1
  356. package/build/src/database/query/index.js +79 -19
  357. package/build/src/database/query/insert-base.d.ts +13 -8
  358. package/build/src/database/query/insert-base.d.ts.map +1 -1
  359. package/build/src/database/query/insert-base.js +10 -5
  360. package/build/src/database/query/join-base.d.ts +4 -0
  361. package/build/src/database/query/join-base.d.ts.map +1 -1
  362. package/build/src/database/query/join-base.js +5 -1
  363. package/build/src/database/query/join-object.d.ts +11 -0
  364. package/build/src/database/query/join-object.d.ts.map +1 -1
  365. package/build/src/database/query/join-object.js +15 -4
  366. package/build/src/database/query/join-plain.d.ts +1 -0
  367. package/build/src/database/query/join-plain.d.ts.map +1 -1
  368. package/build/src/database/query/join-plain.js +2 -1
  369. package/build/src/database/query/join-tracker.d.ts +7 -0
  370. package/build/src/database/query/join-tracker.d.ts.map +1 -1
  371. package/build/src/database/query/join-tracker.js +8 -1
  372. package/build/src/database/query/model-class-query.d.ts +92 -26
  373. package/build/src/database/query/model-class-query.d.ts.map +1 -1
  374. package/build/src/database/query/model-class-query.js +230 -76
  375. package/build/src/database/query/order-base.d.ts +3 -0
  376. package/build/src/database/query/order-base.d.ts.map +1 -1
  377. package/build/src/database/query/order-base.js +4 -1
  378. package/build/src/database/query/order-column.d.ts +9 -1
  379. package/build/src/database/query/order-column.d.ts.map +1 -1
  380. package/build/src/database/query/order-column.js +10 -2
  381. package/build/src/database/query/order-plain.d.ts +1 -0
  382. package/build/src/database/query/order-plain.d.ts.map +1 -1
  383. package/build/src/database/query/order-plain.js +2 -1
  384. package/build/src/database/query/preloader/belongs-to.d.ts +1 -0
  385. package/build/src/database/query/preloader/belongs-to.d.ts.map +1 -1
  386. package/build/src/database/query/preloader/belongs-to.js +68 -23
  387. package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts +1 -0
  388. package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts.map +1 -1
  389. package/build/src/database/query/preloader/ensure-model-class-initialized.js +2 -1
  390. package/build/src/database/query/preloader/has-many.d.ts +5 -3
  391. package/build/src/database/query/preloader/has-many.d.ts.map +1 -1
  392. package/build/src/database/query/preloader/has-many.js +66 -24
  393. package/build/src/database/query/preloader/has-one.d.ts +1 -0
  394. package/build/src/database/query/preloader/has-one.d.ts.map +1 -1
  395. package/build/src/database/query/preloader/has-one.js +26 -9
  396. package/build/src/database/query/preloader/selection.d.ts +7 -1
  397. package/build/src/database/query/preloader/selection.d.ts.map +1 -1
  398. package/build/src/database/query/preloader/selection.js +13 -5
  399. package/build/src/database/query/preloader.d.ts +1 -0
  400. package/build/src/database/query/preloader.d.ts.map +1 -1
  401. package/build/src/database/query/preloader.js +28 -9
  402. package/build/src/database/query/query-data.d.ts +21 -7
  403. package/build/src/database/query/query-data.d.ts.map +1 -1
  404. package/build/src/database/query/query-data.js +37 -18
  405. package/build/src/database/query/select-base.d.ts +3 -0
  406. package/build/src/database/query/select-base.d.ts.map +1 -1
  407. package/build/src/database/query/select-base.js +4 -1
  408. package/build/src/database/query/select-plain.d.ts +1 -0
  409. package/build/src/database/query/select-plain.d.ts.map +1 -1
  410. package/build/src/database/query/select-plain.js +2 -1
  411. package/build/src/database/query/select-table-and-column.d.ts +1 -0
  412. package/build/src/database/query/select-table-and-column.d.ts.map +1 -1
  413. package/build/src/database/query/select-table-and-column.js +2 -1
  414. package/build/src/database/query/update-base.d.ts +9 -6
  415. package/build/src/database/query/update-base.d.ts.map +1 -1
  416. package/build/src/database/query/update-base.js +7 -4
  417. package/build/src/database/query/upsert-base.d.ts +13 -4
  418. package/build/src/database/query/upsert-base.d.ts.map +1 -1
  419. package/build/src/database/query/upsert-base.js +12 -3
  420. package/build/src/database/query/where-base.d.ts +4 -0
  421. package/build/src/database/query/where-base.d.ts.map +1 -1
  422. package/build/src/database/query/where-base.js +5 -1
  423. package/build/src/database/query/where-combinator.d.ts +1 -0
  424. package/build/src/database/query/where-combinator.d.ts.map +1 -1
  425. package/build/src/database/query/where-combinator.js +6 -2
  426. package/build/src/database/query/where-hash.d.ts +6 -0
  427. package/build/src/database/query/where-hash.d.ts.map +1 -1
  428. package/build/src/database/query/where-hash.js +5 -1
  429. package/build/src/database/query/where-model-class-hash.d.ts +30 -16
  430. package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
  431. package/build/src/database/query/where-model-class-hash.js +55 -20
  432. package/build/src/database/query/where-not.d.ts +1 -0
  433. package/build/src/database/query/where-not.d.ts.map +1 -1
  434. package/build/src/database/query/where-not.js +3 -1
  435. package/build/src/database/query/where-plain.d.ts +1 -0
  436. package/build/src/database/query/where-plain.d.ts.map +1 -1
  437. package/build/src/database/query/where-plain.js +2 -1
  438. package/build/src/database/query/with-count.d.ts +11 -5
  439. package/build/src/database/query/with-count.d.ts.map +1 -1
  440. package/build/src/database/query/with-count.js +36 -15
  441. package/build/src/database/query-parser/base-query-parser.d.ts +1 -0
  442. package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
  443. package/build/src/database/query-parser/base-query-parser.js +2 -1
  444. package/build/src/database/query-parser/from-parser.d.ts +5 -1
  445. package/build/src/database/query-parser/from-parser.d.ts.map +1 -1
  446. package/build/src/database/query-parser/from-parser.js +6 -2
  447. package/build/src/database/query-parser/group-parser.d.ts +2 -0
  448. package/build/src/database/query-parser/group-parser.d.ts.map +1 -1
  449. package/build/src/database/query-parser/group-parser.js +3 -1
  450. package/build/src/database/query-parser/joins-parser.d.ts +1 -0
  451. package/build/src/database/query-parser/joins-parser.d.ts.map +1 -1
  452. package/build/src/database/query-parser/joins-parser.js +2 -1
  453. package/build/src/database/query-parser/limit-parser.d.ts +1 -0
  454. package/build/src/database/query-parser/limit-parser.d.ts.map +1 -1
  455. package/build/src/database/query-parser/limit-parser.js +2 -1
  456. package/build/src/database/query-parser/options.d.ts +15 -4
  457. package/build/src/database/query-parser/options.d.ts.map +1 -1
  458. package/build/src/database/query-parser/options.js +11 -3
  459. package/build/src/database/query-parser/order-parser.d.ts +1 -0
  460. package/build/src/database/query-parser/order-parser.d.ts.map +1 -1
  461. package/build/src/database/query-parser/order-parser.js +2 -1
  462. package/build/src/database/query-parser/select-parser.d.ts +1 -0
  463. package/build/src/database/query-parser/select-parser.d.ts.map +1 -1
  464. package/build/src/database/query-parser/select-parser.js +2 -1
  465. package/build/src/database/query-parser/where-parser.d.ts +1 -0
  466. package/build/src/database/query-parser/where-parser.d.ts.map +1 -1
  467. package/build/src/database/query-parser/where-parser.js +2 -1
  468. package/build/src/database/record/acts-as-list.d.ts +0 -1
  469. package/build/src/database/record/acts-as-list.d.ts.map +1 -1
  470. package/build/src/database/record/acts-as-list.js +89 -45
  471. package/build/src/database/record/attachments/download.d.ts +34 -15
  472. package/build/src/database/record/attachments/download.d.ts.map +1 -1
  473. package/build/src/database/record/attachments/download.js +34 -22
  474. package/build/src/database/record/attachments/handle.d.ts +17 -5
  475. package/build/src/database/record/attachments/handle.d.ts.map +1 -1
  476. package/build/src/database/record/attachments/handle.js +25 -9
  477. package/build/src/database/record/attachments/normalize-input.d.ts +6 -1
  478. package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
  479. package/build/src/database/record/attachments/normalize-input.js +54 -17
  480. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +7 -1
  481. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
  482. package/build/src/database/record/attachments/storage-drivers/filesystem.js +10 -2
  483. package/build/src/database/record/attachments/storage-drivers/native.d.ts +12 -7
  484. package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
  485. package/build/src/database/record/attachments/storage-drivers/native.js +13 -6
  486. package/build/src/database/record/attachments/storage-drivers/s3.d.ts +18 -9
  487. package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
  488. package/build/src/database/record/attachments/storage-drivers/s3.js +38 -13
  489. package/build/src/database/record/attachments/store.d.ts +48 -25
  490. package/build/src/database/record/attachments/store.d.ts.map +1 -1
  491. package/build/src/database/record/attachments/store.js +63 -25
  492. package/build/src/database/record/index.d.ts +394 -146
  493. package/build/src/database/record/index.d.ts.map +1 -1
  494. package/build/src/database/record/index.js +697 -248
  495. package/build/src/database/record/instance-relationships/base.d.ts +78 -19
  496. package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
  497. package/build/src/database/record/instance-relationships/base.js +98 -26
  498. package/build/src/database/record/instance-relationships/belongs-to.d.ts +1 -0
  499. package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
  500. package/build/src/database/record/instance-relationships/belongs-to.js +13 -5
  501. package/build/src/database/record/instance-relationships/has-many.d.ts +27 -7
  502. package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
  503. package/build/src/database/record/instance-relationships/has-many.js +50 -16
  504. package/build/src/database/record/instance-relationships/has-one.d.ts +4 -1
  505. package/build/src/database/record/instance-relationships/has-one.d.ts.map +1 -1
  506. package/build/src/database/record/instance-relationships/has-one.js +28 -10
  507. package/build/src/database/record/relationships/base.d.ts +61 -14
  508. package/build/src/database/record/relationships/base.d.ts.map +1 -1
  509. package/build/src/database/record/relationships/base.js +60 -15
  510. package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
  511. package/build/src/database/record/relationships/belongs-to.js +9 -3
  512. package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
  513. package/build/src/database/record/relationships/has-many.js +9 -3
  514. package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
  515. package/build/src/database/record/relationships/has-one.js +9 -3
  516. package/build/src/database/record/state-machine.d.ts +9 -1
  517. package/build/src/database/record/state-machine.d.ts.map +1 -1
  518. package/build/src/database/record/state-machine.js +35 -14
  519. package/build/src/database/record/user-module.d.ts +2 -0
  520. package/build/src/database/record/user-module.d.ts.map +1 -1
  521. package/build/src/database/record/user-module.js +3 -1
  522. package/build/src/database/record/validators/base.d.ts +4 -2
  523. package/build/src/database/record/validators/base.d.ts.map +1 -1
  524. package/build/src/database/record/validators/base.js +4 -2
  525. package/build/src/database/record/validators/format.d.ts.map +1 -1
  526. package/build/src/database/record/validators/format.js +2 -1
  527. package/build/src/database/record/validators/presence.d.ts.map +1 -1
  528. package/build/src/database/record/validators/presence.js +5 -2
  529. package/build/src/database/record/validators/uniqueness.d.ts +0 -2
  530. package/build/src/database/record/validators/uniqueness.d.ts.map +1 -1
  531. package/build/src/database/record/validators/uniqueness.js +18 -8
  532. package/build/src/database/table-data/index.d.ts +40 -4
  533. package/build/src/database/table-data/index.d.ts.map +1 -1
  534. package/build/src/database/table-data/index.js +38 -5
  535. package/build/src/database/table-data/table-column.d.ts +43 -5
  536. package/build/src/database/table-data/table-column.d.ts.map +1 -1
  537. package/build/src/database/table-data/table-column.js +37 -4
  538. package/build/src/database/table-data/table-foreign-key.d.ts +8 -0
  539. package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
  540. package/build/src/database/table-data/table-foreign-key.js +9 -1
  541. package/build/src/database/table-data/table-index.d.ts +8 -0
  542. package/build/src/database/table-data/table-index.d.ts.map +1 -1
  543. package/build/src/database/table-data/table-index.js +6 -1
  544. package/build/src/database/table-data/table-reference.d.ts +1 -0
  545. package/build/src/database/table-data/table-reference.d.ts.map +1 -1
  546. package/build/src/database/table-data/table-reference.js +2 -1
  547. package/build/src/database/use-database.d.ts +1 -0
  548. package/build/src/database/use-database.d.ts.map +1 -1
  549. package/build/src/database/use-database.js +2 -1
  550. package/build/src/environment-handlers/base.d.ts +94 -36
  551. package/build/src/environment-handlers/base.d.ts.map +1 -1
  552. package/build/src/environment-handlers/base.js +90 -36
  553. package/build/src/environment-handlers/browser.d.ts +33 -3
  554. package/build/src/environment-handlers/browser.d.ts.map +1 -1
  555. package/build/src/environment-handlers/browser.js +36 -9
  556. package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts +5 -0
  557. package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts.map +1 -1
  558. package/build/src/environment-handlers/node/cli/commands/cli-command-context.js +6 -2
  559. package/build/src/environment-handlers/node/cli/commands/console.d.ts +3 -2
  560. package/build/src/environment-handlers/node/cli/commands/console.d.ts.map +1 -1
  561. package/build/src/environment-handlers/node/cli/commands/console.js +23 -9
  562. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts +4 -1
  563. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts.map +1 -1
  564. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.js +5 -2
  565. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts +6 -2
  566. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts.map +1 -1
  567. package/build/src/environment-handlers/node/cli/commands/db/schema/load.js +11 -5
  568. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts +15 -5
  569. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts.map +1 -1
  570. package/build/src/environment-handlers/node/cli/commands/db/seed.js +20 -6
  571. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts +5 -0
  572. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
  573. package/build/src/environment-handlers/node/cli/commands/destroy/migration.js +3 -1
  574. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts +2 -0
  575. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts.map +1 -1
  576. package/build/src/environment-handlers/node/cli/commands/generate/base-models.js +6 -4
  577. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +43 -29
  578. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
  579. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.js +99 -40
  580. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts +5 -0
  581. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
  582. package/build/src/environment-handlers/node/cli/commands/generate/migration.js +3 -1
  583. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts +5 -0
  584. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
  585. package/build/src/environment-handlers/node/cli/commands/generate/model.js +3 -1
  586. package/build/src/environment-handlers/node/cli/commands/init.d.ts +5 -0
  587. package/build/src/environment-handlers/node/cli/commands/init.d.ts.map +1 -1
  588. package/build/src/environment-handlers/node/cli/commands/init.js +3 -1
  589. package/build/src/environment-handlers/node/cli/commands/routes.d.ts +3 -0
  590. package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
  591. package/build/src/environment-handlers/node/cli/commands/routes.js +4 -1
  592. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts +15 -5
  593. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts.map +1 -1
  594. package/build/src/environment-handlers/node/cli/commands/run-script.js +20 -6
  595. package/build/src/environment-handlers/node/cli/commands/runner.d.ts +18 -6
  596. package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
  597. package/build/src/environment-handlers/node/cli/commands/runner.js +20 -6
  598. package/build/src/environment-handlers/node/cli/commands/server.d.ts +13 -1
  599. package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
  600. package/build/src/environment-handlers/node/cli/commands/server.js +23 -6
  601. package/build/src/environment-handlers/node.d.ts +14 -2
  602. package/build/src/environment-handlers/node.d.ts.map +1 -1
  603. package/build/src/environment-handlers/node.js +107 -39
  604. package/build/src/error-logger.d.ts +4 -3
  605. package/build/src/error-logger.d.ts.map +1 -1
  606. package/build/src/error-logger.js +4 -3
  607. package/build/src/frontend-model-controller.d.ts +239 -90
  608. package/build/src/frontend-model-controller.d.ts.map +1 -1
  609. package/build/src/frontend-model-controller.js +577 -787
  610. package/build/src/frontend-model-resource/base-resource.d.ts +118 -66
  611. package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
  612. package/build/src/frontend-model-resource/base-resource.js +205 -82
  613. package/build/src/frontend-models/base.d.ts +319 -163
  614. package/build/src/frontend-models/base.d.ts.map +1 -1
  615. package/build/src/frontend-models/base.js +717 -366
  616. package/build/src/frontend-models/clear-pending-debounced-callback.d.ts +2 -1
  617. package/build/src/frontend-models/clear-pending-debounced-callback.d.ts.map +1 -1
  618. package/build/src/frontend-models/clear-pending-debounced-callback.js +6 -3
  619. package/build/src/frontend-models/event-hook-models.d.ts +5 -0
  620. package/build/src/frontend-models/event-hook-models.d.ts.map +1 -1
  621. package/build/src/frontend-models/event-hook-models.js +10 -3
  622. package/build/src/frontend-models/model-registry.d.ts +5 -5
  623. package/build/src/frontend-models/model-registry.d.ts.map +1 -1
  624. package/build/src/frontend-models/model-registry.js +5 -5
  625. package/build/src/frontend-models/outgoing-event-buffer.d.ts +11 -3
  626. package/build/src/frontend-models/outgoing-event-buffer.d.ts.map +1 -1
  627. package/build/src/frontend-models/outgoing-event-buffer.js +13 -5
  628. package/build/src/frontend-models/preloader.d.ts +9 -6
  629. package/build/src/frontend-models/preloader.d.ts.map +1 -1
  630. package/build/src/frontend-models/preloader.js +21 -9
  631. package/build/src/frontend-models/query.d.ts +283 -73
  632. package/build/src/frontend-models/query.d.ts.map +1 -1
  633. package/build/src/frontend-models/query.js +331 -203
  634. package/build/src/frontend-models/resource-config-validation.d.ts +2 -0
  635. package/build/src/frontend-models/resource-config-validation.d.ts.map +1 -1
  636. package/build/src/frontend-models/resource-config-validation.js +3 -1
  637. package/build/src/frontend-models/resource-definition.d.ts +12 -5
  638. package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
  639. package/build/src/frontend-models/resource-definition.js +39 -13
  640. package/build/src/frontend-models/transport-serialization.d.ts +14 -11
  641. package/build/src/frontend-models/transport-serialization.d.ts.map +1 -1
  642. package/build/src/frontend-models/transport-serialization.js +80 -53
  643. package/build/src/frontend-models/use-destroyed-event.d.ts +21 -0
  644. package/build/src/frontend-models/use-destroyed-event.d.ts.map +1 -1
  645. package/build/src/frontend-models/use-destroyed-event.js +34 -11
  646. package/build/src/frontend-models/use-model-class-event.d.ts +24 -0
  647. package/build/src/frontend-models/use-model-class-event.d.ts.map +1 -1
  648. package/build/src/frontend-models/use-model-class-event.js +39 -12
  649. package/build/src/frontend-models/use-updated-event.d.ts +21 -0
  650. package/build/src/frontend-models/use-updated-event.d.ts.map +1 -1
  651. package/build/src/frontend-models/use-updated-event.js +37 -12
  652. package/build/src/frontend-models/websocket-channel.d.ts +51 -9
  653. package/build/src/frontend-models/websocket-channel.d.ts.map +1 -1
  654. package/build/src/frontend-models/websocket-channel.js +96 -26
  655. package/build/src/frontend-models/websocket-publishers.d.ts +2 -0
  656. package/build/src/frontend-models/websocket-publishers.d.ts.map +1 -1
  657. package/build/src/frontend-models/websocket-publishers.js +33 -11
  658. package/build/src/http-client/header.d.ts +1 -0
  659. package/build/src/http-client/header.d.ts.map +1 -1
  660. package/build/src/http-client/header.js +2 -1
  661. package/build/src/http-client/index.d.ts +4 -0
  662. package/build/src/http-client/index.d.ts.map +1 -1
  663. package/build/src/http-client/index.js +5 -1
  664. package/build/src/http-client/request.d.ts +5 -0
  665. package/build/src/http-client/request.d.ts.map +1 -1
  666. package/build/src/http-client/request.js +6 -1
  667. package/build/src/http-client/response.d.ts +14 -4
  668. package/build/src/http-client/response.d.ts.map +1 -1
  669. package/build/src/http-client/response.js +14 -4
  670. package/build/src/http-client/websocket-client.d.ts +1 -0
  671. package/build/src/http-client/websocket-client.d.ts.map +1 -1
  672. package/build/src/http-client/websocket-client.js +2 -1
  673. package/build/src/http-server/client/index.d.ts +16 -2
  674. package/build/src/http-server/client/index.d.ts.map +1 -1
  675. package/build/src/http-server/client/index.js +44 -13
  676. package/build/src/http-server/client/params-to-object.d.ts +16 -10
  677. package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
  678. package/build/src/http-server/client/params-to-object.js +46 -17
  679. package/build/src/http-server/client/request-buffer/form-data-part.d.ts +10 -6
  680. package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
  681. package/build/src/http-server/client/request-buffer/form-data-part.js +11 -7
  682. package/build/src/http-server/client/request-buffer/header.d.ts +1 -0
  683. package/build/src/http-server/client/request-buffer/header.d.ts.map +1 -1
  684. package/build/src/http-server/client/request-buffer/header.js +2 -1
  685. package/build/src/http-server/client/request-buffer/index.d.ts +29 -4
  686. package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
  687. package/build/src/http-server/client/request-buffer/index.js +43 -9
  688. package/build/src/http-server/client/request-parser.d.ts +52 -13
  689. package/build/src/http-server/client/request-parser.d.ts.map +1 -1
  690. package/build/src/http-server/client/request-parser.js +58 -15
  691. package/build/src/http-server/client/request-runner.d.ts +5 -1
  692. package/build/src/http-server/client/request-runner.d.ts.map +1 -1
  693. package/build/src/http-server/client/request-runner.js +32 -8
  694. package/build/src/http-server/client/request-timing.d.ts +37 -7
  695. package/build/src/http-server/client/request-timing.d.ts.map +1 -1
  696. package/build/src/http-server/client/request-timing.js +32 -8
  697. package/build/src/http-server/client/request.d.ts +15 -5
  698. package/build/src/http-server/client/request.d.ts.map +1 -1
  699. package/build/src/http-server/client/request.js +17 -5
  700. package/build/src/http-server/client/response.d.ts +22 -4
  701. package/build/src/http-server/client/response.d.ts.map +1 -1
  702. package/build/src/http-server/client/response.js +29 -7
  703. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts +1 -0
  704. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts.map +1 -1
  705. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.js +3 -1
  706. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts +1 -0
  707. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts.map +1 -1
  708. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.js +3 -1
  709. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +2 -0
  710. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
  711. package/build/src/http-server/client/uploaded-file/uploaded-file.js +3 -1
  712. package/build/src/http-server/client/websocket-request.d.ts +24 -12
  713. package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
  714. package/build/src/http-server/client/websocket-request.js +24 -10
  715. package/build/src/http-server/client/websocket-session.d.ts +101 -62
  716. package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
  717. package/build/src/http-server/client/websocket-session.js +118 -61
  718. package/build/src/http-server/cookie.d.ts +36 -8
  719. package/build/src/http-server/cookie.d.ts.map +1 -1
  720. package/build/src/http-server/cookie.js +37 -9
  721. package/build/src/http-server/development-reloader.d.ts +32 -7
  722. package/build/src/http-server/development-reloader.d.ts.map +1 -1
  723. package/build/src/http-server/development-reloader.js +39 -10
  724. package/build/src/http-server/index.d.ts +102 -25
  725. package/build/src/http-server/index.d.ts.map +1 -1
  726. package/build/src/http-server/index.js +117 -32
  727. package/build/src/http-server/remote-address.d.ts +1 -0
  728. package/build/src/http-server/remote-address.d.ts.map +1 -1
  729. package/build/src/http-server/remote-address.js +15 -4
  730. package/build/src/http-server/server-client.d.ts +37 -8
  731. package/build/src/http-server/server-client.d.ts.map +1 -1
  732. package/build/src/http-server/server-client.js +48 -12
  733. package/build/src/http-server/server-lock.d.ts +76 -0
  734. package/build/src/http-server/server-lock.d.ts.map +1 -0
  735. package/build/src/http-server/server-lock.js +164 -0
  736. package/build/src/http-server/websocket-channel-subscribers.d.ts +13 -8
  737. package/build/src/http-server/websocket-channel-subscribers.d.ts.map +1 -1
  738. package/build/src/http-server/websocket-channel-subscribers.js +16 -7
  739. package/build/src/http-server/websocket-channel.d.ts +13 -11
  740. package/build/src/http-server/websocket-channel.d.ts.map +1 -1
  741. package/build/src/http-server/websocket-channel.js +8 -12
  742. package/build/src/http-server/websocket-connection.d.ts +10 -14
  743. package/build/src/http-server/websocket-connection.d.ts.map +1 -1
  744. package/build/src/http-server/websocket-connection.js +8 -12
  745. package/build/src/http-server/websocket-event-log-store.d.ts +48 -10
  746. package/build/src/http-server/websocket-event-log-store.d.ts.map +1 -1
  747. package/build/src/http-server/websocket-event-log-store.js +76 -34
  748. package/build/src/http-server/websocket-events-host.d.ts +21 -15
  749. package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
  750. package/build/src/http-server/websocket-events-host.js +20 -11
  751. package/build/src/http-server/websocket-events.d.ts +8 -7
  752. package/build/src/http-server/websocket-events.d.ts.map +1 -1
  753. package/build/src/http-server/websocket-events.js +6 -5
  754. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts +3 -2
  755. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts.map +1 -1
  756. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.js +3 -2
  757. package/build/src/http-server/worker-handler/in-process.d.ts +18 -18
  758. package/build/src/http-server/worker-handler/in-process.d.ts.map +1 -1
  759. package/build/src/http-server/worker-handler/in-process.js +28 -20
  760. package/build/src/http-server/worker-handler/index.d.ts +39 -20
  761. package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
  762. package/build/src/http-server/worker-handler/index.js +34 -14
  763. package/build/src/http-server/worker-handler/worker-thread.d.ts +31 -15
  764. package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
  765. package/build/src/http-server/worker-handler/worker-thread.js +31 -12
  766. package/build/src/initializer.d.ts +4 -0
  767. package/build/src/initializer.d.ts.map +1 -1
  768. package/build/src/initializer.js +5 -1
  769. package/build/src/jobs/mail-delivery.d.ts +1 -0
  770. package/build/src/jobs/mail-delivery.d.ts.map +1 -1
  771. package/build/src/jobs/mail-delivery.js +2 -1
  772. package/build/src/logger/base-logger.js +2 -2
  773. package/build/src/logger/console-logger.d.ts +2 -0
  774. package/build/src/logger/console-logger.d.ts.map +1 -1
  775. package/build/src/logger/console-logger.js +3 -1
  776. package/build/src/logger/file-logger.d.ts +2 -0
  777. package/build/src/logger/file-logger.d.ts.map +1 -1
  778. package/build/src/logger/file-logger.js +3 -1
  779. package/build/src/logger/outputs/array-output.d.ts +21 -5
  780. package/build/src/logger/outputs/array-output.d.ts.map +1 -1
  781. package/build/src/logger/outputs/array-output.js +19 -6
  782. package/build/src/logger/outputs/console-output.d.ts +10 -2
  783. package/build/src/logger/outputs/console-output.d.ts.map +1 -1
  784. package/build/src/logger/outputs/console-output.js +8 -3
  785. package/build/src/logger/outputs/file-output.d.ts +20 -5
  786. package/build/src/logger/outputs/file-output.d.ts.map +1 -1
  787. package/build/src/logger/outputs/file-output.js +18 -6
  788. package/build/src/logger/outputs/stdout-output.d.ts +7 -1
  789. package/build/src/logger/outputs/stdout-output.d.ts.map +1 -1
  790. package/build/src/logger/outputs/stdout-output.js +9 -3
  791. package/build/src/logger.d.ts +28 -13
  792. package/build/src/logger.d.ts.map +1 -1
  793. package/build/src/logger.js +60 -23
  794. package/build/src/mailer/backends/smtp.d.ts +5 -0
  795. package/build/src/mailer/backends/smtp.d.ts.map +1 -1
  796. package/build/src/mailer/backends/smtp.js +17 -4
  797. package/build/src/mailer/base.d.ts +33 -17
  798. package/build/src/mailer/base.d.ts.map +1 -1
  799. package/build/src/mailer/base.js +54 -18
  800. package/build/src/mailer/delivery.d.ts +16 -5
  801. package/build/src/mailer/delivery.d.ts.map +1 -1
  802. package/build/src/mailer/delivery.js +18 -7
  803. package/build/src/mailer/index.d.ts +5 -5
  804. package/build/src/mailer/index.d.ts.map +1 -1
  805. package/build/src/mailer/index.js +2 -2
  806. package/build/src/mailer.d.ts +5 -5
  807. package/build/src/mailer.d.ts.map +1 -1
  808. package/build/src/mailer.js +2 -2
  809. package/build/src/plugins/sqljs-wasm-route-controller.d.ts +4 -1
  810. package/build/src/plugins/sqljs-wasm-route-controller.d.ts.map +1 -1
  811. package/build/src/plugins/sqljs-wasm-route-controller.js +11 -4
  812. package/build/src/plugins/sqljs-wasm-route.d.ts +6 -0
  813. package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
  814. package/build/src/plugins/sqljs-wasm-route.js +4 -1
  815. package/build/src/record-payload-values.d.ts +54 -0
  816. package/build/src/record-payload-values.d.ts.map +1 -0
  817. package/build/src/record-payload-values.js +80 -0
  818. package/build/src/routes/app-routes.d.ts +1 -0
  819. package/build/src/routes/app-routes.d.ts.map +1 -1
  820. package/build/src/routes/app-routes.js +2 -1
  821. package/build/src/routes/base-route.d.ts +52 -16
  822. package/build/src/routes/base-route.d.ts.map +1 -1
  823. package/build/src/routes/base-route.js +50 -14
  824. package/build/src/routes/basic-route.d.ts +1 -0
  825. package/build/src/routes/basic-route.d.ts.map +1 -1
  826. package/build/src/routes/basic-route.js +13 -4
  827. package/build/src/routes/built-in/debug/controller.d.ts +4 -1
  828. package/build/src/routes/built-in/debug/controller.d.ts.map +1 -1
  829. package/build/src/routes/built-in/debug/controller.js +5 -2
  830. package/build/src/routes/get-route.d.ts +1 -0
  831. package/build/src/routes/get-route.d.ts.map +1 -1
  832. package/build/src/routes/get-route.js +7 -4
  833. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts +1 -0
  834. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts.map +1 -1
  835. package/build/src/routes/hooks/frontend-model-command-route-hook.js +6 -2
  836. package/build/src/routes/index.d.ts +3 -2
  837. package/build/src/routes/index.d.ts.map +1 -1
  838. package/build/src/routes/index.js +10 -4
  839. package/build/src/routes/namespace-route.d.ts +1 -0
  840. package/build/src/routes/namespace-route.d.ts.map +1 -1
  841. package/build/src/routes/namespace-route.js +5 -3
  842. package/build/src/routes/plugin-routes.d.ts +10 -1
  843. package/build/src/routes/plugin-routes.d.ts.map +1 -1
  844. package/build/src/routes/plugin-routes.js +11 -3
  845. package/build/src/routes/post-route.d.ts +1 -0
  846. package/build/src/routes/post-route.d.ts.map +1 -1
  847. package/build/src/routes/post-route.js +7 -4
  848. package/build/src/routes/resolver.d.ts +20 -5
  849. package/build/src/routes/resolver.d.ts.map +1 -1
  850. package/build/src/routes/resolver.js +47 -14
  851. package/build/src/routes/resource-route.d.ts +6 -1
  852. package/build/src/routes/resource-route.d.ts.map +1 -1
  853. package/build/src/routes/resource-route.js +10 -4
  854. package/build/src/testing/base-expect.d.ts +2 -0
  855. package/build/src/testing/base-expect.d.ts.map +1 -1
  856. package/build/src/testing/base-expect.js +3 -1
  857. package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts +33 -5
  858. package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts.map +1 -1
  859. package/build/src/testing/browser-frontend-model-event-hook-scenarios.js +95 -23
  860. package/build/src/testing/expect-to-change.d.ts +3 -0
  861. package/build/src/testing/expect-to-change.d.ts.map +1 -1
  862. package/build/src/testing/expect-to-change.js +4 -1
  863. package/build/src/testing/expect-utils.d.ts +22 -16
  864. package/build/src/testing/expect-utils.d.ts.map +1 -1
  865. package/build/src/testing/expect-utils.js +62 -30
  866. package/build/src/testing/expect.d.ts +50 -21
  867. package/build/src/testing/expect.d.ts.map +1 -1
  868. package/build/src/testing/expect.js +58 -17
  869. package/build/src/testing/request-client.d.ts +16 -3
  870. package/build/src/testing/request-client.d.ts.map +1 -1
  871. package/build/src/testing/request-client.js +17 -4
  872. package/build/src/testing/test-files-finder.d.ts +41 -9
  873. package/build/src/testing/test-files-finder.d.ts.map +1 -1
  874. package/build/src/testing/test-files-finder.js +42 -10
  875. package/build/src/testing/test-filter-parser.d.ts +6 -0
  876. package/build/src/testing/test-filter-parser.d.ts.map +1 -1
  877. package/build/src/testing/test-filter-parser.js +12 -3
  878. package/build/src/testing/test-runner.d.ts +102 -6
  879. package/build/src/testing/test-runner.d.ts.map +1 -1
  880. package/build/src/testing/test-runner.js +115 -23
  881. package/build/src/testing/test-suite-splitter.d.ts +7 -0
  882. package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
  883. package/build/src/testing/test-suite-splitter.js +7 -2
  884. package/build/src/testing/test.d.ts +20 -4
  885. package/build/src/testing/test.d.ts.map +1 -1
  886. package/build/src/testing/test.js +67 -20
  887. package/build/src/utils/backtrace-cleaner-node.d.ts.map +1 -1
  888. package/build/src/utils/backtrace-cleaner-node.js +6 -1
  889. package/build/src/utils/backtrace-cleaner.d.ts +16 -1
  890. package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
  891. package/build/src/utils/backtrace-cleaner.js +20 -2
  892. package/build/src/utils/ensure-error.d.ts +3 -2
  893. package/build/src/utils/ensure-error.d.ts.map +1 -1
  894. package/build/src/utils/ensure-error.js +3 -2
  895. package/build/src/utils/event-emitter.d.ts.map +1 -1
  896. package/build/src/utils/event-emitter.js +2 -2
  897. package/build/src/utils/file-exists.d.ts +1 -0
  898. package/build/src/utils/file-exists.d.ts.map +1 -1
  899. package/build/src/utils/file-exists.js +2 -1
  900. package/build/src/utils/format-value.d.ts +5 -4
  901. package/build/src/utils/format-value.d.ts.map +1 -1
  902. package/build/src/utils/format-value.js +12 -7
  903. package/build/src/utils/model-scope.d.ts +18 -12
  904. package/build/src/utils/model-scope.d.ts.map +1 -1
  905. package/build/src/utils/model-scope.js +19 -11
  906. package/build/src/utils/nest-callbacks.d.ts +1 -0
  907. package/build/src/utils/nest-callbacks.d.ts.map +1 -1
  908. package/build/src/utils/nest-callbacks.js +2 -1
  909. package/build/src/utils/plain-object.d.ts +7 -0
  910. package/build/src/utils/plain-object.d.ts.map +1 -0
  911. package/build/src/utils/plain-object.js +13 -0
  912. package/build/src/utils/ransack.d.ts +29 -5
  913. package/build/src/utils/ransack.d.ts.map +1 -1
  914. package/build/src/utils/ransack.js +136 -49
  915. package/build/src/utils/rest-args-error.d.ts +1 -0
  916. package/build/src/utils/rest-args-error.d.ts.map +1 -1
  917. package/build/src/utils/rest-args-error.js +2 -1
  918. package/build/src/utils/singularize-model-name.d.ts +1 -0
  919. package/build/src/utils/singularize-model-name.d.ts.map +1 -1
  920. package/build/src/utils/singularize-model-name.js +2 -1
  921. package/build/src/utils/to-import-specifier.d.ts.map +1 -1
  922. package/build/src/utils/to-import-specifier.js +3 -1
  923. package/build/src/utils/with-tracked-stack-async-hooks.d.ts +8 -5
  924. package/build/src/utils/with-tracked-stack-async-hooks.d.ts.map +1 -1
  925. package/build/src/utils/with-tracked-stack-async-hooks.js +32 -13
  926. package/build/src/utils/with-tracked-stack.d.ts +9 -5
  927. package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
  928. package/build/src/utils/with-tracked-stack.js +19 -8
  929. package/build/src/velocious-error.d.ts +4 -2
  930. package/build/src/velocious-error.d.ts.map +1 -1
  931. package/build/src/velocious-error.js +5 -3
  932. package/build/tsconfig.tsbuildinfo +1 -1
  933. package/package.json +1 -1
@@ -1,25 +1,46 @@
1
1
  export { CurrentConfigurationNotSetError };
2
2
  export default class VelociousConfiguration {
3
- /** @returns {VelociousConfiguration} - The current. */
3
+ /**
4
+ * Runs current.
5
+ * @returns {VelociousConfiguration} - The current.
6
+ */
4
7
  static current(): VelociousConfiguration;
5
- /** @param {import("./configuration-types.js").ConfigurationArgsType} args - Configuration arguments. */
8
+ /**
9
+ * Runs constructor.
10
+ * @param {import("./configuration-types.js").ConfigurationArgsType} args - Configuration arguments.
11
+ */
6
12
  constructor({ abilityResolver, abilityResources, attachments, autoload, backgroundJobs, backendProjects, beacon, cookieSecret, cors, database, debug, debugEndpoint, directory, enforceTenantDatabaseScopes, environment, environmentHandler, exposeInternalErrorsToClients, httpServer, initializeModels, initializers, locale, localeFallbacks, locales, logging, mailerBackend, requestTimeoutMs, routeResolverHooks, scheduledBackgroundJobs, structureSql, tenantDatabaseProviders, tenantDatabaseResolver, tenantResolver, testing, timezoneOffsetMinutes, trustedProxies, websocketChannelResolver, websocketMessageHandlerResolver, ...restArgs }: import("./configuration-types.js").ConfigurationArgsType);
7
- /** @type {Promise<void> | null} */
13
+ /**
14
+ * Close database connections promise.
15
+ @type {Promise<void> | null} */
8
16
  _closeDatabaseConnectionsPromise: Promise<void> | null;
9
17
  _abilityResolver: import("./configuration-types.js").AbilityResolverType | undefined;
10
18
  _abilityResources: typeof import("./authorization/base-resource.js").default[];
11
19
  _autoload: boolean;
12
20
  _backgroundJobs: import("./configuration-types.js").BackgroundJobsConfiguration | undefined;
13
21
  _beacon: import("./configuration-types.js").BeaconConfiguration | undefined;
14
- /** @type {import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined} */
22
+ /**
23
+ * Stores the beacon client value.
24
+ @type {import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined} */
15
25
  _beaconClient: import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined;
16
- /** @type {Promise<import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined> | undefined} */
26
+ /**
27
+ * Stores the beacon connect promise value.
28
+ @type {Promise<import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined> | undefined} */
17
29
  _beaconConnectPromise: Promise<import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined> | undefined;
18
- /** @type {ReturnType<typeof setTimeout> | undefined} - Pending "beacon still unreachable" report timer. */
30
+ /**
31
+ * Stores the beacon report timer value.
32
+ * @type {ReturnType<typeof setTimeout> | undefined} - Pending "beacon still unreachable" report timer.
33
+ */
19
34
  _beaconReportTimer: ReturnType<typeof setTimeout> | undefined;
20
- /** @type {boolean} - Whether the current beacon outage has already been reported. */
35
+ /**
36
+ * Stores the beacon outage reported value.
37
+ * @type {boolean} - Whether the current beacon outage has already been reported.
38
+ */
21
39
  _beaconOutageReported: boolean;
22
- /** @type {{stage: "beacon-connect" | "beacon-disconnect", error: Error} | undefined} - Latest beacon-down details, reported only if the outage is sustained. */
40
+ /**
41
+ * Stores the beacon last down error value.
42
+ * @type {{stage: "beacon-connect" | "beacon-disconnect", error: Error} | undefined} - Latest beacon-down details, reported only if the outage is sustained.
43
+ */
23
44
  _beaconLastDownError: {
24
45
  stage: "beacon-connect" | "beacon-disconnect";
25
46
  error: Error;
@@ -51,7 +72,9 @@ export default class VelociousConfiguration {
51
72
  }) => void;
52
73
  _isInitialized: boolean;
53
74
  httpServer: import("./configuration-types.js").HttpServerConfiguration;
54
- /** @type {{getDebugSnapshot: () => Promise<Record<string, unknown>>} | undefined} */
75
+ /**
76
+ * Stores the http server instance value.
77
+ @type {{getDebugSnapshot: () => Promise<Record<string, ?>>} | undefined} */
55
78
  _httpServerInstance: {
56
79
  getDebugSnapshot: () => Promise<Record<string, unknown>>;
57
80
  } | undefined;
@@ -68,19 +91,34 @@ export default class VelociousConfiguration {
68
91
  _tenantDatabaseResolver: import("./configuration-types.js").TenantDatabaseResolverType | undefined;
69
92
  _tenantResolver: import("./configuration-types.js").TenantResolverType | undefined;
70
93
  _websocketEvents: import("./http-server/websocket-events.js").default | undefined;
71
- /** @type {VelociousWebsocketChannelSubscribers | undefined} */
94
+ /**
95
+ * Stores the websocket channel subscribers value.
96
+ @type {VelociousWebsocketChannelSubscribers | undefined} */
72
97
  _websocketChannelSubscribers: VelociousWebsocketChannelSubscribers | undefined;
73
98
  _websocketChannelResolver: import("./configuration-types.js").WebsocketChannelResolverType | undefined;
74
99
  _websocketMessageHandlerResolver: import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined;
75
- /** @type {Map<string, typeof import("./http-server/websocket-connection.js").default>} */
100
+ /**
101
+ * Stores the websocket connection classes value.
102
+ @type {Map<string, typeof import("./http-server/websocket-connection.js").default>} */
76
103
  _websocketConnectionClasses: Map<string, typeof import("./http-server/websocket-connection.js").default>;
77
- /** @type {Map<string, typeof import("./http-server/websocket-channel.js").default>} */
104
+ /**
105
+ * Stores the websocket channel classes value.
106
+ @type {Map<string, typeof import("./http-server/websocket-channel.js").default>} */
78
107
  _websocketChannelClasses: Map<string, typeof import("./http-server/websocket-channel.js").default>;
79
- /** @type {Map<string, Set<import("./http-server/websocket-channel.js").default>>} - channelType → live subscriptions across all sessions. */
108
+ /**
109
+ * Stores the websocket channel subscriptions value.
110
+ * @type {Map<string, Set<import("./http-server/websocket-channel.js").default>>} - channelType → live subscriptions across all sessions.
111
+ */
80
112
  _websocketChannelSubscriptions: Map<string, Set<import("./http-server/websocket-channel.js").default>>;
81
- /** @type {Set<import("./http-server/client/websocket-session.js").default>} - Live websocket sessions, including paused sessions within the grace window. */
113
+ /**
114
+ * Stores the websocket sessions value.
115
+ * @type {Set<import("./http-server/client/websocket-session.js").default>} - Live websocket sessions, including paused sessions within the grace window.
116
+ */
82
117
  _websocketSessions: Set<import("./http-server/client/websocket-session.js").default>;
83
- /** @type {Map<string, {session: import("./http-server/client/websocket-session.js").default, graceTimer: ReturnType<typeof setTimeout>, pausedAt: number}>} - sessionId → paused session awaiting resume. */
118
+ /**
119
+ * Stores the paused websocket sessions value.
120
+ * @type {Map<string, {session: import("./http-server/client/websocket-session.js").default, graceTimer: ReturnType<typeof setTimeout>, pausedAt: number}>} - sessionId → paused session awaiting resume.
121
+ */
84
122
  _pausedWebsocketSessions: Map<string, {
85
123
  session: import("./http-server/client/websocket-session.js").default;
86
124
  graceTimer: ReturnType<typeof setTimeout>;
@@ -96,45 +134,68 @@ export default class VelociousConfiguration {
96
134
  * @type {((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null}
97
135
  */
98
136
  _websocketAroundRequest: ((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null;
99
- /** @type {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null} */
137
+ /**
138
+ * Stores the around action value.
139
+ @type {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null} */
100
140
  _aroundAction: ((context: {
101
141
  request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default;
102
142
  response: import("./http-server/client/response.js").default;
103
143
  next: () => Promise<void>;
104
144
  }) => Promise<void>) | null;
105
- /** @type {((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null} */
106
- _websocketSessionIdentityResolver: ((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null;
145
+ /**
146
+ * Stores the websocket session identity resolver value.
147
+ @type {((session: import("./http-server/client/websocket-session.js").default) => ? | Promise<?>) | null} */
148
+ _websocketSessionIdentityResolver: ((session: import("./http-server/client/websocket-session.js").default) => unknown | Promise<unknown>) | null;
107
149
  _logging: import("./configuration-types.js").LoggingConfiguration | undefined;
108
150
  _mailerBackend: import("./configuration-types.js").MailerBackend | undefined;
109
151
  _routeResolverHooks: import("./configuration-types.js").RouteResolverHookType[];
110
- /** @type {WeakSet<object>} */
152
+ /**
153
+ * Stores the applied route mounts value.
154
+ @type {WeakSet<object>} */
111
155
  _appliedRouteMounts: WeakSet<object>;
112
156
  _errorEvents: import("eventemitter3").EventEmitter<string | symbol, any>;
113
- /** @type {{[key: string]: import("./database/pool/base.js").default}} */
157
+ /**
158
+ * Stores the database pools value.
159
+ @type {{[key: string]: import("./database/pool/base.js").default}} */
114
160
  databasePools: {
115
161
  [key: string]: import("./database/pool/base.js").default;
116
162
  };
117
- /** @type {{[key: string]: typeof import("./database/record/index.js").default}} */
163
+ /**
164
+ * Stores the model classes value.
165
+ @type {{[key: string]: typeof import("./database/record/index.js").default}} */
118
166
  modelClasses: {
119
167
  [key: string]: typeof import("./database/record/index.js").default;
120
168
  };
121
- /** @returns {boolean} Whether auto-batch-preload of relationships on lazy access is enabled globally. */
169
+ /**
170
+ * Runs get autoload.
171
+ * @returns {boolean} Whether auto-batch-preload of relationships on lazy access is enabled globally.
172
+ */
122
173
  getAutoload(): boolean;
123
- /** @returns {boolean} Whether unexpected internal error details may be returned to API clients. */
174
+ /**
175
+ * Runs get expose internal errors to clients.
176
+ * @returns {boolean} Whether unexpected internal error details may be returned to API clients.
177
+ */
124
178
  getExposeInternalErrorsToClients(): boolean;
125
- /** @returns {{enabled: boolean, path: string, token: string | null}} - Debug endpoint configuration. */
179
+ /**
180
+ * Runs get debug endpoint.
181
+ * @returns {{enabled: boolean, path: string, token: string | null}} - Debug endpoint configuration.
182
+ */
126
183
  getDebugEndpoint(): {
127
184
  enabled: boolean;
128
185
  path: string;
129
186
  token: string | null;
130
187
  };
131
- /** @returns {{enabled: boolean, path: string, tokenConfigured: boolean}} - Debug endpoint config for the snapshot, with the token redacted. */
188
+ /**
189
+ * Runs debug endpoint snapshot.
190
+ * @returns {{enabled: boolean, path: string, tokenConfigured: boolean}} - Debug endpoint config for the snapshot, with the token redacted.
191
+ */
132
192
  _debugEndpointSnapshot(): {
133
193
  enabled: boolean;
134
194
  path: string;
135
195
  tokenConfigured: boolean;
136
196
  };
137
197
  /**
198
+ * Runs normalize debug endpoint.
138
199
  * @param {boolean | {path?: string, token?: string}} value - Debug endpoint configuration.
139
200
  * @returns {{enabled: boolean, path: string, token: string | null}} - Normalized debug endpoint configuration.
140
201
  */
@@ -146,57 +207,104 @@ export default class VelociousConfiguration {
146
207
  path: string;
147
208
  token: string | null;
148
209
  };
149
- /** @returns {void} - No return value. */
210
+ /**
211
+ * Runs add debug endpoint route hook.
212
+ * @returns {void} - No return value.
213
+ */
150
214
  _addDebugEndpointRouteHook(): void;
151
215
  /**
216
+ * Runs set autoload.
152
217
  * @param {boolean} newValue - Whether auto-batch-preload of relationships is enabled.
153
218
  * @returns {void}
154
219
  */
155
220
  setAutoload(newValue: boolean): void;
156
- /** @returns {import("./configuration-types.js").CorsType | undefined} - The cors. */
221
+ /**
222
+ * Runs get cors.
223
+ * @returns {import("./configuration-types.js").CorsType | undefined} - The cors.
224
+ */
157
225
  getCors(): import("./configuration-types.js").CorsType | undefined;
158
- /** @returns {string | undefined} - Cookie secret. */
226
+ /**
227
+ * Runs get cookie secret.
228
+ * @returns {string | undefined} - Cookie secret.
229
+ */
159
230
  getCookieSecret(): string | undefined;
160
- /** @returns {Record<string, import("./configuration-types.js").DatabaseConfigurationType>} - The database configuration. */
231
+ /**
232
+ * Runs get database configuration.
233
+ * @returns {Record<string, import("./configuration-types.js").DatabaseConfigurationType>} - The database configuration.
234
+ */
161
235
  getDatabaseConfiguration(): Record<string, import("./configuration-types.js").DatabaseConfigurationType>;
162
236
  /**
237
+ * Runs resolve database configuration.
163
238
  * @param {string} identifier - Identifier.
164
- * @param {unknown} [tenant] - Tenant override.
239
+ * @param {?} [tenant] - Tenant override.
165
240
  * @returns {import("./configuration-types.js").DatabaseConfigurationType} - Resolved database configuration for the identifier.
166
241
  */
167
242
  resolveDatabaseConfiguration(identifier: string, tenant?: unknown): import("./configuration-types.js").DatabaseConfigurationType;
168
- /** @returns {Set<string>} - Disabled database identifiers from env flags. */
243
+ /**
244
+ * Runs get disabled database identifiers.
245
+ * @returns {Set<string>} - Disabled database identifiers from env flags.
246
+ */
169
247
  getDisabledDatabaseIdentifiers(): Set<string>;
170
248
  /**
249
+ * Runs is database identifier active.
171
250
  * @param {string} identifier - Database identifier.
172
- * @param {unknown} [tenant] - Tenant override.
251
+ * @param {?} [tenant] - Tenant override.
173
252
  * @returns {boolean} - Whether this database identifier is active in the current tenant context.
174
253
  */
175
254
  isDatabaseIdentifierActive(identifier: string, tenant?: unknown): boolean;
176
- /** @returns {Array<string>} - The database identifiers. */
255
+ /**
256
+ * Runs get database identifiers.
257
+ * @returns {Array<string>} - The database identifiers.
258
+ */
177
259
  getDatabaseIdentifiers(): Array<string>;
178
- /** @returns {Promise<Record<string, unknown>>} - Human-readable server diagnostics. */
260
+ /**
261
+ * Runs get debug snapshot.
262
+ * @returns {Promise<Record<string, ?>>} - Human-readable server diagnostics.
263
+ */
179
264
  getDebugSnapshot(): Promise<Record<string, unknown>>;
180
- /** @returns {Record<string, unknown>} - Human-readable diagnostics for this process only. */
265
+ /**
266
+ * Runs get local debug snapshot.
267
+ * @returns {Record<string, ?>} - Human-readable diagnostics for this process only.
268
+ */
181
269
  getLocalDebugSnapshot(): Record<string, unknown>;
182
- /** @returns {Promise<Record<string, unknown>>} - HTTP server worker diagnostics. */
270
+ /**
271
+ * Runs debug http server snapshot.
272
+ * @returns {Promise<Record<string, ?>>} - HTTP server worker diagnostics.
273
+ */
183
274
  _debugHttpServerSnapshot(): Promise<Record<string, unknown>>;
184
- /** @returns {Record<string, unknown>} - Server runtime diagnostics. */
275
+ /**
276
+ * Runs debug server snapshot.
277
+ * @returns {Record<string, ?>} - Server runtime diagnostics.
278
+ */
185
279
  _debugServerSnapshot(): Record<string, unknown>;
186
- /** @returns {Record<string, unknown>} - Configuration diagnostics. */
280
+ /**
281
+ * Runs debug configuration snapshot.
282
+ * @returns {Record<string, ?>} - Configuration diagnostics.
283
+ */
187
284
  _debugConfigurationSnapshot(): Record<string, unknown>;
188
- /** @returns {Record<string, unknown>} - Background job diagnostics. */
285
+ /**
286
+ * Runs debug background jobs snapshot.
287
+ * @returns {Record<string, ?>} - Background job diagnostics.
288
+ */
189
289
  _debugBackgroundJobsSnapshot(): Record<string, unknown>;
190
- /** @returns {Record<string, unknown>} - Database diagnostics. */
290
+ /**
291
+ * Runs debug database snapshot.
292
+ * @returns {Record<string, ?>} - Database diagnostics.
293
+ */
191
294
  _debugDatabaseSnapshot(): Record<string, unknown>;
192
- /** @returns {Record<string, unknown>} - WebSocket diagnostics. */
295
+ /**
296
+ * Runs debug websocket snapshot.
297
+ * @returns {Record<string, ?>} - WebSocket diagnostics.
298
+ */
193
299
  _debugWebsocketSnapshot(): Record<string, unknown>;
194
300
  /**
301
+ * Runs get database pool.
195
302
  * @param {string} identifier - Identifier.
196
303
  * @returns {import("./database/pool/base.js").default} - The database pool.
197
304
  */
198
305
  getDatabasePool(identifier?: string): import("./database/pool/base.js").default;
199
306
  /**
307
+ * Runs get database identifier.
200
308
  * @param {string} identifier - Identifier.
201
309
  * @returns {import("./configuration-types.js").DatabaseConfigurationType})
202
310
  */
@@ -211,98 +319,139 @@ export default class VelociousConfiguration {
211
319
  */
212
320
  clearSchemaCachesForReuseKey(reuseKey: string): void;
213
321
  /**
322
+ * Runs get database pool type.
214
323
  * @param {string} identifier - Identifier.
215
324
  * @returns {typeof import("./database/pool/base.js").default} - The database pool type.
216
325
  */
217
326
  getDatabasePoolType(identifier?: string): typeof import("./database/pool/base.js").default;
218
327
  getDatabaseType(identifier?: string): "sqlite" | "pgsql" | "mysql" | "mssql";
219
328
  /**
329
+ * Runs get directory.
220
330
  * @returns {string} - The directory.
221
331
  */
222
332
  getDirectory(): string;
223
333
  /**
334
+ * Runs get directory if available.
224
335
  * @returns {string | undefined} - The directory when the runtime can resolve one.
225
336
  */
226
337
  getDirectoryIfAvailable(): string | undefined;
227
338
  /**
339
+ * Runs get backend projects.
228
340
  * @returns {import("./configuration-types.js").BackendProjectConfiguration[]} - Backend projects.
229
341
  */
230
342
  getBackendProjects(): import("./configuration-types.js").BackendProjectConfiguration[];
231
- /** @returns {import("./configuration-types.js").AbilityResourceClassType[]} - Ability resource classes. */
343
+ /**
344
+ * Runs get ability resources.
345
+ * @returns {import("./configuration-types.js").AbilityResourceClassType[]} - Ability resource classes.
346
+ */
232
347
  getAbilityResources(): import("./configuration-types.js").AbilityResourceClassType[];
233
348
  /**
349
+ * Runs set ability resources.
234
350
  * @param {import("./configuration-types.js").AbilityResourceClassType[]} resources - Ability resource classes.
235
351
  * @returns {void} - No return value.
236
352
  */
237
353
  setAbilityResources(resources: import("./configuration-types.js").AbilityResourceClassType[]): void;
238
- /** @returns {import("./configuration-types.js").AbilityResolverType | undefined} - Ability resolver. */
354
+ /**
355
+ * Runs get ability resolver.
356
+ * @returns {import("./configuration-types.js").AbilityResolverType | undefined} - Ability resolver.
357
+ */
239
358
  getAbilityResolver(): import("./configuration-types.js").AbilityResolverType | undefined;
240
- /** @returns {import("./configuration-types.js").TenantResolverType | undefined} - Tenant resolver. */
359
+ /**
360
+ * Runs get tenant resolver.
361
+ * @returns {import("./configuration-types.js").TenantResolverType | undefined} - Tenant resolver.
362
+ */
241
363
  getTenantResolver(): import("./configuration-types.js").TenantResolverType | undefined;
242
- /** @returns {import("./configuration-types.js").TenantDatabaseResolverType | undefined} - Tenant database resolver. */
364
+ /**
365
+ * Runs get tenant database resolver.
366
+ * @returns {import("./configuration-types.js").TenantDatabaseResolverType | undefined} - Tenant database resolver.
367
+ */
243
368
  getTenantDatabaseResolver(): import("./configuration-types.js").TenantDatabaseResolverType | undefined;
244
- /** @returns {boolean} - Whether tenant-switched models require a resolved tenant database identifier. */
369
+ /**
370
+ * Runs get enforce tenant database scopes.
371
+ * @returns {boolean} - Whether tenant-switched models require a resolved tenant database identifier.
372
+ */
245
373
  getEnforceTenantDatabaseScopes(): boolean;
246
- /** @returns {Record<string, import("./configuration-types.js").TenantDatabaseProviderType>} - Tenant database lifecycle providers. */
374
+ /**
375
+ * Runs get tenant database providers.
376
+ * @returns {Record<string, import("./configuration-types.js").TenantDatabaseProviderType>} - Tenant database lifecycle providers.
377
+ */
247
378
  getTenantDatabaseProviders(): Record<string, import("./configuration-types.js").TenantDatabaseProviderType>;
248
379
  /**
380
+ * Runs get tenant database provider.
249
381
  * @param {string} identifier - Database identifier.
250
382
  * @returns {import("./configuration-types.js").TenantDatabaseProviderType} - Tenant database lifecycle provider.
251
383
  */
252
384
  getTenantDatabaseProvider(identifier: string): import("./configuration-types.js").TenantDatabaseProviderType;
253
- /** @returns {import("./configuration-types.js").AttachmentsConfiguration} - Attachments configuration. */
385
+ /**
386
+ * Runs get attachments configuration.
387
+ * @returns {import("./configuration-types.js").AttachmentsConfiguration} - Attachments configuration.
388
+ */
254
389
  getAttachmentsConfiguration(): import("./configuration-types.js").AttachmentsConfiguration;
255
- /** @returns {import("./configuration-types.js").RouteResolverHookType[]} - Route resolver hooks. */
390
+ /**
391
+ * Runs get route resolver hooks.
392
+ * @returns {import("./configuration-types.js").RouteResolverHookType[]} - Route resolver hooks.
393
+ */
256
394
  getRouteResolverHooks(): import("./configuration-types.js").RouteResolverHookType[];
257
395
  /**
396
+ * Runs add route resolver hook.
258
397
  * @param {import("./configuration-types.js").RouteResolverHookType} hook - Route resolver hook.
259
398
  * @returns {void} - No return value.
260
399
  */
261
400
  addRouteResolverHook(hook: import("./configuration-types.js").RouteResolverHookType): void;
262
401
  /**
402
+ * Runs set ability resolver.
263
403
  * @param {import("./configuration-types.js").AbilityResolverType | undefined} resolver - Ability resolver.
264
404
  * @returns {void} - No return value.
265
405
  */
266
406
  setAbilityResolver(resolver: import("./configuration-types.js").AbilityResolverType | undefined): void;
267
407
  /**
408
+ * Runs set tenant resolver.
268
409
  * @param {import("./configuration-types.js").TenantResolverType | undefined} resolver - Tenant resolver.
269
410
  * @returns {void} - No return value.
270
411
  */
271
412
  setTenantResolver(resolver: import("./configuration-types.js").TenantResolverType | undefined): void;
272
413
  /**
414
+ * Runs set tenant database resolver.
273
415
  * @param {import("./configuration-types.js").TenantDatabaseResolverType | undefined} resolver - Tenant database resolver.
274
416
  * @returns {void} - No return value.
275
417
  */
276
418
  setTenantDatabaseResolver(resolver: import("./configuration-types.js").TenantDatabaseResolverType | undefined): void;
277
419
  /**
420
+ * Runs set enforce tenant database scopes.
278
421
  * @param {boolean} newValue - Whether tenant-switched models require a resolved tenant database identifier.
279
422
  * @returns {void} - No return value.
280
423
  */
281
424
  setEnforceTenantDatabaseScopes(newValue: boolean): void;
282
425
  /**
426
+ * Runs set tenant database providers.
283
427
  * @param {Record<string, import("./configuration-types.js").TenantDatabaseProviderType>} providers - Tenant database lifecycle providers.
284
428
  * @returns {void} - No return value.
285
429
  */
286
430
  setTenantDatabaseProviders(providers: Record<string, import("./configuration-types.js").TenantDatabaseProviderType>): void;
287
431
  /**
432
+ * Runs get environment.
288
433
  * @returns {string} - The environment.
289
434
  */
290
435
  getEnvironment(): string;
291
436
  /**
437
+ * Runs get request timeout ms.
292
438
  * @returns {number} - Request timeout in seconds.
293
439
  */
294
440
  getRequestTimeoutMs(): number;
295
441
  /**
442
+ * Runs parse request timeout seconds.
296
443
  * @param {string | undefined} rawValue - Env value.
297
444
  * @returns {number | undefined} - Timeout in seconds.
298
445
  */
299
446
  _parseRequestTimeoutSeconds(rawValue: string | undefined): number | undefined;
300
447
  /**
448
+ * Runs set environment.
301
449
  * @param {string} newEnvironment - New environment.
302
450
  * @returns {void} - No return value.
303
451
  */
304
452
  setEnvironment(newEnvironment: string): void;
305
453
  /**
454
+ * Runs get logging configuration.
306
455
  * @param {object} [args] - Options object.
307
456
  * @param {boolean} [args.defaultConsole] - Whether default console.
308
457
  * @returns {Required<Pick<import("./configuration-types.js").LoggingConfiguration, "console" | "file" | "levels">> & Pick<import("./configuration-types.js").LoggingConfiguration, "directory" | "filePath"> & Partial<Pick<import("./configuration-types.js").LoggingConfiguration, "outputs" | "loggers">>} - The logging configuration.
@@ -311,14 +460,17 @@ export default class VelociousConfiguration {
311
460
  defaultConsole?: boolean | undefined;
312
461
  }): Required<Pick<import("./configuration-types.js").LoggingConfiguration, "console" | "file" | "levels">> & Pick<import("./configuration-types.js").LoggingConfiguration, "directory" | "filePath"> & Partial<Pick<import("./configuration-types.js").LoggingConfiguration, "outputs" | "loggers">>;
313
462
  /**
463
+ * Runs get query logging enabled.
314
464
  * @returns {boolean} - Whether database query logging is enabled.
315
465
  */
316
466
  getQueryLoggingEnabled(): boolean;
317
467
  /**
468
+ * Runs get background jobs config.
318
469
  * @returns {Required<import("./configuration-types.js").BackgroundJobsConfiguration>} - Background jobs configuration.
319
470
  */
320
471
  getBackgroundJobsConfig(): Required<import("./configuration-types.js").BackgroundJobsConfiguration>;
321
472
  /**
473
+ * Runs set background jobs config.
322
474
  * @param {import("./configuration-types.js").BackgroundJobsConfiguration} backgroundJobs - Background jobs config.
323
475
  * @returns {void}
324
476
  */
@@ -342,11 +494,13 @@ export default class VelociousConfiguration {
342
494
  unreachableReportMs: number;
343
495
  };
344
496
  /**
497
+ * Runs set beacon config.
345
498
  * @param {import("./configuration-types.js").BeaconConfiguration} beacon - Beacon config.
346
499
  * @returns {void}
347
500
  */
348
501
  setBeaconConfig(beacon: import("./configuration-types.js").BeaconConfiguration): void;
349
502
  /**
503
+ * Runs get beacon client.
350
504
  * @returns {import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined} - The active Beacon client, if connected.
351
505
  */
352
506
  getBeaconClient(): import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined;
@@ -454,19 +608,23 @@ export default class VelociousConfiguration {
454
608
  */
455
609
  _deliverBroadcastFromBeacon(message: import("./beacon/types.js").BeaconBroadcastMessage): void;
456
610
  /**
611
+ * Runs get scheduled background jobs config.
457
612
  * @returns {Promise<import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | undefined>} - Scheduled background jobs configuration.
458
613
  */
459
614
  getScheduledBackgroundJobsConfig(): Promise<import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | undefined>;
460
615
  /**
616
+ * Runs set scheduled background jobs config.
461
617
  * @param {import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | import("./configuration-types.js").ScheduledBackgroundJobsLoaderType | undefined} scheduledBackgroundJobs - Scheduled background jobs configuration.
462
618
  * @returns {void}
463
619
  */
464
620
  setScheduledBackgroundJobsConfig(scheduledBackgroundJobs: import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | import("./configuration-types.js").ScheduledBackgroundJobsLoaderType | undefined): void;
465
621
  /**
622
+ * Runs get mailer backend.
466
623
  * @returns {import("./configuration-types.js").MailerBackend | undefined} - Mailer backend.
467
624
  */
468
625
  getMailerBackend(): import("./configuration-types.js").MailerBackend | undefined;
469
626
  /**
627
+ * Runs set mailer backend.
470
628
  * @param {import("./configuration-types.js").MailerBackend} mailerBackend - Mailer backend.
471
629
  * @returns {void} - No return value.
472
630
  */
@@ -477,21 +635,28 @@ export default class VelociousConfiguration {
477
635
  */
478
636
  getHttpLoggingConfiguration(): Required<Pick<import("./configuration-types.js").LoggingConfiguration, "console" | "file" | "levels">> & Pick<import("./configuration-types.js").LoggingConfiguration, "directory" | "filePath"> & Partial<Pick<import("./configuration-types.js").LoggingConfiguration, "outputs" | "loggers">>;
479
637
  /**
638
+ * Runs get environment handler.
480
639
  * @returns {import("./environment-handlers/base.js").default} - The environment handler.
481
640
  */
482
641
  getEnvironmentHandler(): import("./environment-handlers/base.js").default;
483
642
  /**
643
+ * Runs get locale fallbacks.
484
644
  * @returns {import("./configuration-types.js").LocaleFallbacksType | undefined} - The locale fallbacks.
485
645
  */
486
646
  getLocaleFallbacks(): import("./configuration-types.js").LocaleFallbacksType | undefined;
487
647
  /**
648
+ * Runs set locale fallbacks.
488
649
  * @param {import("./configuration-types.js").LocaleFallbacksType} newLocaleFallbacks - New locale fallbacks.
489
650
  * @returns {void} - No return value.
490
651
  */
491
652
  setLocaleFallbacks(newLocaleFallbacks: import("./configuration-types.js").LocaleFallbacksType): void;
492
- /** @returns {import("./configuration-types.js").StructureSqlConfiguration | undefined} - Structure SQL config. */
653
+ /**
654
+ * Runs get structure sql config.
655
+ * @returns {import("./configuration-types.js").StructureSqlConfiguration | undefined} - Structure SQL config.
656
+ */
493
657
  getStructureSqlConfig(): import("./configuration-types.js").StructureSqlConfiguration | undefined;
494
658
  /**
659
+ * Runs should write structure sql.
495
660
  * @param {{reason?: "migration" | "schemaDump"}} [args] - Call context for the structure sql write decision.
496
661
  * @returns {boolean} - Whether structure SQL files should be generated for the current environment.
497
662
  */
@@ -499,47 +664,67 @@ export default class VelociousConfiguration {
499
664
  reason?: "migration" | "schemaDump";
500
665
  }): boolean;
501
666
  /**
667
+ * Runs set structure sql config.
502
668
  * @param {import("./configuration-types.js").StructureSqlConfiguration} structureSql - Structure SQL config.
503
669
  * @returns {void} - No return value.
504
670
  */
505
671
  setStructureSqlConfig(structureSql: import("./configuration-types.js").StructureSqlConfiguration): void;
506
672
  /**
673
+ * Runs get locale.
507
674
  * @returns {string} - The locale.
508
675
  */
509
676
  getLocale(): string;
510
- /** @returns {Array<string>} - The locales. */
677
+ /**
678
+ * Runs get locales.
679
+ * @returns {Array<string>} - The locales.
680
+ */
511
681
  getLocales(): Array<string>;
512
682
  /**
683
+ * Runs get model class.
513
684
  * @param {string} name - Name.
514
685
  * @returns {typeof import("./database/record/index.js").default} - The model class.
515
686
  */
516
687
  getModelClass(name: string): typeof import("./database/record/index.js").default;
517
688
  /**
689
+ * Runs get model classes.
518
690
  * @returns {Record<string, typeof import("./database/record/index.js").default>} A hash of all model classes, keyed by model name, as they were defined in the configuration. This is a direct reference to the model classes, not a copy.
519
691
  */
520
692
  getModelClasses(): Record<string, typeof import("./database/record/index.js").default>;
521
- /** @returns {string | undefined} The path to a config file that should be used for testing. */
693
+ /**
694
+ * Runs get testing.
695
+ * @returns {string | undefined} The path to a config file that should be used for testing.
696
+ */
522
697
  getTesting(): string | undefined;
523
- /** @returns {string | string[] | undefined} Trusted reverse proxy address ranges. */
698
+ /**
699
+ * Runs get trusted proxies.
700
+ * @returns {string | string[] | undefined} Trusted reverse proxy address ranges.
701
+ */
524
702
  getTrustedProxies(): string | string[] | undefined;
525
703
  /**
704
+ * Runs set trusted proxies.
526
705
  * @param {string | string[] | undefined} trustedProxies - Trusted reverse proxy address ranges.
527
706
  * @returns {void}
528
707
  */
529
708
  setTrustedProxies(trustedProxies: string | string[] | undefined): void;
530
709
  /**
710
+ * Runs initialize database pool.
531
711
  * @param {string} [identifier] - Database identifier to initialize.
532
712
  * @returns {void} - No return value.
533
713
  */
534
714
  initializeDatabasePool(identifier?: string): void;
535
715
  /**
716
+ * Runs is database pool initialized.
536
717
  * @param {string} [identifier] - Database identifier to check.
537
718
  * @returns {boolean} - Whether database pool initialized.
538
719
  */
539
720
  isDatabasePoolInitialized(identifier?: string): boolean;
540
- /** @returns {boolean} - Whether initialized. */
721
+ /**
722
+ * Runs is initialized.
723
+ * @returns {boolean} - Whether initialized.
724
+ */
541
725
  isInitialized(): boolean;
542
726
  /**
727
+ * Runs initialize models.
543
728
  * @param {object} args - Options object.
544
729
  * @param {string} args.type - Type identifier.
545
730
  * @returns {Promise<void>} - Resolves when complete.
@@ -555,6 +740,7 @@ export default class VelociousConfiguration {
555
740
  */
556
741
  ensureGlobalConnections(): Promise<void>;
557
742
  /**
743
+ * Runs initialize.
558
744
  * @param {object} args - Options object.
559
745
  * @param {string} args.type - Type identifier.
560
746
  * @returns {Promise<void>} - Resolves when complete.
@@ -565,20 +751,27 @@ export default class VelociousConfiguration {
565
751
  /**
566
752
  * Validates that resource-defined relationships are also defined on the corresponding model classes.
567
753
  * Throws an error if a relationship is defined on a resource but missing from the model.
568
- *
569
754
  * @returns {void}
570
755
  */
571
756
  _validateResourceRelationshipsOnModels(): void;
572
757
  /**
758
+ * Runs register model class.
573
759
  * @param {typeof import("./database/record/index.js").default} modelClass - Model class.
574
760
  * @returns {void} - No return value.
575
761
  */
576
762
  registerModelClass(modelClass: typeof import("./database/record/index.js").default): void;
577
- /** @returns {void} - No return value. */
763
+ /**
764
+ * Runs set current.
765
+ * @returns {void} - No return value.
766
+ */
578
767
  setCurrent(): void;
579
- /** @returns {import("./routes/index.js").default | undefined} - The routes. */
768
+ /**
769
+ * Runs get routes.
770
+ * @returns {import("./routes/index.js").default | undefined} - The routes.
771
+ */
580
772
  getRoutes(): import("./routes/index.js").default | undefined;
581
773
  /**
774
+ * Runs set routes.
582
775
  * @param {import("./routes/index.js").default} newRoutes - New routes.
583
776
  * @returns {void} - No return value.
584
777
  */
@@ -600,29 +793,41 @@ export default class VelociousConfiguration {
600
793
  */
601
794
  routes(callback: (routes: import("./routes/plugin-routes.js").default) => void): void;
602
795
  /**
603
- * @param {function(string, Record<string, any> | undefined) : string} callback - Translator callback.
796
+ * Runs set translator.
797
+ * @param {function(string, Record<string, ?> | undefined) : string} callback - Translator callback.
604
798
  * @returns {void} - No return value.
605
799
  */
606
- setTranslator(callback: (arg0: string, arg1: Record<string, any> | undefined) => string): void;
607
- _translator: ((arg0: string, arg1: Record<string, any> | undefined) => string) | undefined;
800
+ setTranslator(callback: (arg0: string, arg1: Record<string, unknown> | undefined) => string): void;
801
+ _translator: ((arg0: string, arg1: Record<string, unknown> | undefined) => string) | undefined;
608
802
  /**
803
+ * Runs default translator.
609
804
  * @param {string} msgID - Msg id.
610
- * @param {Record<string, any>} [args] - Translator options and variables.
805
+ * @param {Record<string, ?>} [args] - Translator options and variables.
611
806
  * @returns {string} - The default translator.
612
807
  */
613
- _defaultTranslator(msgID: string, args?: Record<string, any>): string;
614
- /** @returns {(msgID: string, args?: Record<string, any>) => string} */
615
- getTranslator(): (msgID: string, args?: Record<string, any>) => string;
616
- _defaultTranslatorBound: ((msgID: string, args?: Record<string, any>) => string) | undefined;
617
- /** @returns {void} - Configure gettext defaults for this configuration. */
808
+ _defaultTranslator(msgID: string, args?: Record<string, unknown>): string;
809
+ /**
810
+ * Runs get translator.
811
+ @returns {(msgID: string, args?: Record<string, ?>) => string} */
812
+ getTranslator(): (msgID: string, args?: Record<string, unknown>) => string;
813
+ _defaultTranslatorBound: ((msgID: string, args?: Record<string, unknown>) => string) | undefined;
814
+ /**
815
+ * Runs configure default translator.
816
+ * @returns {void} - Configure gettext defaults for this configuration.
817
+ */
618
818
  _configureDefaultTranslator(): void;
619
819
  /**
820
+ * Runs get timezone offset minutes.
620
821
  * @returns {number | undefined} - The timezone offset in minutes.
621
822
  */
622
823
  getTimezoneOffsetMinutes(): number | undefined;
623
- /** @returns {import("./http-server/websocket-events.js").default | undefined} - The websocket events. */
824
+ /**
825
+ * Runs get websocket events.
826
+ * @returns {import("./http-server/websocket-events.js").default | undefined} - The websocket events.
827
+ */
624
828
  getWebsocketEvents(): import("./http-server/websocket-events.js").default | undefined;
625
829
  /**
830
+ * Runs set websocket events.
626
831
  * @param {import("./http-server/websocket-events.js").default} websocketEvents - Websocket events.
627
832
  * @returns {void} - No return value.
628
833
  */
@@ -634,19 +839,22 @@ export default class VelociousConfiguration {
634
839
  * @returns {import("./http-server/websocket-channel-subscribers.js").default} - The channel subscribers registry.
635
840
  */
636
841
  getWebsocketChannelSubscribers(): import("./http-server/websocket-channel-subscribers.js").default;
637
- /** @returns {import("./configuration-types.js").WebsocketChannelResolverType | undefined} - The websocket channel resolver. */
842
+ /**
843
+ * Runs get websocket channel resolver.
844
+ * @returns {import("./configuration-types.js").WebsocketChannelResolverType | undefined} - The websocket channel resolver.
845
+ */
638
846
  getWebsocketChannelResolver(): import("./configuration-types.js").WebsocketChannelResolverType | undefined;
639
847
  /**
640
848
  * Registers a `VelociousWebsocketConnection` subclass under a name.
641
849
  * Clients that send `{type: "connection-open", connectionType: name}`
642
850
  * will have this class instantiated for their connection.
643
- *
644
851
  * @param {string} name
645
852
  * @param {typeof import("./http-server/websocket-connection.js").default} ConnectionClass
646
853
  * @returns {void}
647
854
  */
648
855
  registerWebsocketConnection(name: string, ConnectionClass: typeof import("./http-server/websocket-connection.js").default): void;
649
856
  /**
857
+ * Runs get websocket connection class.
650
858
  * @param {string} name
651
859
  * @returns {typeof import("./http-server/websocket-connection.js").default | undefined}
652
860
  */
@@ -654,13 +862,13 @@ export default class VelociousConfiguration {
654
862
  /**
655
863
  * Registers a `VelociousWebsocketChannel` subclass under a name.
656
864
  * Clients subscribe via `{type: "channel-subscribe", channelType: name, ...}`.
657
- *
658
865
  * @param {string} name
659
866
  * @param {typeof import("./http-server/websocket-channel.js").default} ChannelClass
660
867
  * @returns {void}
661
868
  */
662
869
  registerWebsocketChannel(name: string, ChannelClass: typeof import("./http-server/websocket-channel.js").default): void;
663
870
  /**
871
+ * Runs get websocket channel class.
664
872
  * @param {string} name
665
873
  * @returns {typeof import("./http-server/websocket-channel.js").default | undefined}
666
874
  */
@@ -669,13 +877,13 @@ export default class VelociousConfiguration {
669
877
  * Tracks a live channel subscription in the global routing registry.
670
878
  * Called by the session when `canSubscribe()` resolves truthy; the
671
879
  * session calls `_unregisterWebsocketChannelSubscription` on unsubscribe.
672
- *
673
880
  * @param {string} name
674
881
  * @param {import("./http-server/websocket-channel.js").default} subscription
675
882
  * @returns {void}
676
883
  */
677
884
  _registerWebsocketChannelSubscription(name: string, subscription: import("./http-server/websocket-channel.js").default): void;
678
885
  /**
886
+ * Runs unregister websocket channel subscription.
679
887
  * @param {string} name
680
888
  * @param {import("./http-server/websocket-channel.js").default} subscription
681
889
  * @returns {void}
@@ -687,13 +895,13 @@ export default class VelociousConfiguration {
687
895
  * re-check, no persistence. Subscribers who were admitted by
688
896
  * `canSubscribe()` continue to receive broadcasts until they
689
897
  * unsubscribe or the session ends.
690
- *
691
898
  * @param {string} name
692
- * @param {Record<string, any>} broadcastParams
693
- * @param {any} body
899
+ * @param {Record<string, ?>} broadcastParams
900
+ * @param {?} body
694
901
  * @returns {void}
695
902
  */
696
903
  /**
904
+ * Runs get websocket session grace seconds.
697
905
  * @returns {number} - Grace period (seconds) before a paused WS session is torn down.
698
906
  */
699
907
  getWebsocketSessionGraceSeconds(): number;
@@ -702,12 +910,12 @@ export default class VelociousConfiguration {
702
910
  * connection message / channel dispatch. The wrapper receives the
703
911
  * session and a `next` callback; it must call `next()` to run the
704
912
  * handler. Use it to set up AsyncLocalStorage per request.
705
- *
706
913
  * @param {((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null} wrapper
707
914
  * @returns {void}
708
915
  */
709
916
  setWebsocketAroundRequest(wrapper: ((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null): void;
710
917
  /**
918
+ * Runs get websocket around request.
711
919
  * @returns {((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null}
712
920
  */
713
921
  getWebsocketAroundRequest(): ((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null;
@@ -716,7 +924,6 @@ export default class VelociousConfiguration {
716
924
  * HTTP and WS-borne. Receives `{request, response, next}` and must
717
925
  * call `next()` to run the action. Use it for per-request context
718
926
  * like AsyncLocalStorage-scoped locale or tracing.
719
- *
720
927
  * @param {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null} wrapper
721
928
  * @returns {void}
722
929
  */
@@ -726,6 +933,7 @@ export default class VelociousConfiguration {
726
933
  next: () => Promise<void>;
727
934
  }) => Promise<void>) | null): void;
728
935
  /**
936
+ * Runs get around action.
729
937
  * @returns {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null}
730
938
  */
731
939
  getAroundAction(): ((context: {
@@ -746,14 +954,16 @@ export default class VelociousConfiguration {
746
954
  *
747
955
  * Return `null`/`undefined` to mean "no identity" — resumes still
748
956
  * succeed if pause and resume both resolve to a nullish value.
749
- *
750
- * @param {((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null} resolver
957
+ * @param {((session: import("./http-server/client/websocket-session.js").default) => ? | Promise<?>) | null} resolver
751
958
  * @returns {void}
752
959
  */
753
- setWebsocketSessionIdentityResolver(resolver: ((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null): void;
754
- /** @returns {((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null} */
755
- getWebsocketSessionIdentityResolver(): ((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null;
960
+ setWebsocketSessionIdentityResolver(resolver: ((session: import("./http-server/client/websocket-session.js").default) => unknown | Promise<unknown>) | null): void;
756
961
  /**
962
+ * Runs get websocket session identity resolver.
963
+ @returns {((session: import("./http-server/client/websocket-session.js").default) => ? | Promise<?>) | null} */
964
+ getWebsocketSessionIdentityResolver(): ((session: import("./http-server/client/websocket-session.js").default) => unknown | Promise<unknown>) | null;
965
+ /**
966
+ * Runs set websocket session grace seconds.
757
967
  * @param {number} seconds
758
968
  * @returns {void}
759
969
  */
@@ -763,7 +973,6 @@ export default class VelociousConfiguration {
763
973
  * timer. When the timer fires, the session's permanent teardown
764
974
  * hook is invoked. Called by the session itself from `_handleClose`
765
975
  * when there is resumable state (live Connections / Channel subs).
766
- *
767
976
  * @param {import("./http-server/client/websocket-session.js").default} session
768
977
  * @returns {void}
769
978
  */
@@ -771,7 +980,6 @@ export default class VelociousConfiguration {
771
980
  /**
772
981
  * Looks up a paused session by id (does NOT remove it — caller is
773
982
  * expected to call `_resumeWebsocketSession` to complete the handoff).
774
- *
775
983
  * @param {string} sessionId
776
984
  * @returns {import("./http-server/client/websocket-session.js").default | null}
777
985
  */
@@ -780,7 +988,6 @@ export default class VelociousConfiguration {
780
988
  * Removes a paused session from the registry and cancels its grace
781
989
  * timer. Called on successful resume handoff and on explicit
782
990
  * expiry.
783
- *
784
991
  * @param {string} sessionId
785
992
  * @returns {void}
786
993
  */
@@ -788,24 +995,23 @@ export default class VelociousConfiguration {
788
995
  /**
789
996
  * Grace-timer callback. Calls the session's permanent-teardown
790
997
  * hook and drops it from the registry.
791
- *
792
998
  * @param {string} sessionId
793
999
  * @returns {void}
794
1000
  */
795
1001
  _expireWebsocketSession(sessionId: string): void;
796
1002
  /**
1003
+ * Runs broadcast to channel.
797
1004
  * @param {string} name
798
- * @param {Record<string, any>} broadcastParams
799
- * @param {any} body
1005
+ * @param {Record<string, ?>} broadcastParams
1006
+ * @param {?} body
800
1007
  * @returns {void}
801
1008
  */
802
- broadcastToChannel(name: string, broadcastParams: Record<string, any>, body: any): void;
1009
+ broadcastToChannel(name: string, broadcastParams: Record<string, unknown>, body: unknown): void;
803
1010
  /**
804
1011
  * Awaits all pending broadcast operations (including event-log
805
1012
  * persistence). Call this after `broadcastToChannel` when you need
806
1013
  * the event to be persisted before continuing (e.g. before
807
1014
  * responding to an HTTP request).
808
- *
809
1015
  * @returns {Promise<void>}
810
1016
  */
811
1017
  awaitPendingBroadcasts(): Promise<void>;
@@ -813,17 +1019,17 @@ export default class VelociousConfiguration {
813
1019
  * Local (per-worker) channel broadcast dispatch. Called either
814
1020
  * directly (in-process mode) or by the worker thread after the
815
1021
  * main-process fan-out.
816
- *
817
1022
  * @param {string} name - Channel name.
818
- * @param {Record<string, any>} broadcastParams - Params passed to each subscription's `matches()`.
819
- * @param {any} body - Message body delivered via `sendMessage()`.
1023
+ * @param {Record<string, ?>} broadcastParams - Params passed to each subscription's `matches()`.
1024
+ * @param {?} body - Message body delivered via `sendMessage()`.
820
1025
  * @param {{eventId?: string}} [meta] - Optional event metadata for replay tracking.
821
1026
  * @returns {void}
822
1027
  */
823
- _broadcastToChannelLocal(name: string, broadcastParams: Record<string, any>, body: any, meta?: {
1028
+ _broadcastToChannelLocal(name: string, broadcastParams: Record<string, unknown>, body: unknown, meta?: {
824
1029
  eventId?: string;
825
1030
  }): void;
826
1031
  /**
1032
+ * Runs deliver websocket channel broadcast.
827
1033
  * @param {import("./http-server/websocket-channel.js").default} subscription - Channel subscription.
828
1034
  * @param {import("./http-server/websocket-channel.js").WebsocketJsonValue} body - Broadcast body.
829
1035
  * @param {{eventId?: string}} meta - Broadcast metadata.
@@ -832,70 +1038,83 @@ export default class VelociousConfiguration {
832
1038
  _deliverWebsocketChannelBroadcast(subscription: import("./http-server/websocket-channel.js").default, body: import("./http-server/websocket-channel.js").WebsocketJsonValue, meta: {
833
1039
  eventId?: string;
834
1040
  }): void | Promise<void>;
835
- /** @returns {import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined} - The websocket message handler resolver. */
1041
+ /**
1042
+ * Runs get websocket message handler resolver.
1043
+ * @returns {import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined} - The websocket message handler resolver.
1044
+ */
836
1045
  getWebsocketMessageHandlerResolver(): import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined;
837
1046
  /**
1047
+ * Runs set websocket channel resolver.
838
1048
  * @param {import("./configuration-types.js").WebsocketChannelResolverType} resolver - Resolver.
839
1049
  * @returns {void} - No return value.
840
1050
  */
841
1051
  setWebsocketChannelResolver(resolver: import("./configuration-types.js").WebsocketChannelResolverType): void;
842
1052
  /**
1053
+ * Runs set websocket message handler resolver.
843
1054
  * @param {import("./configuration-types.js").WebsocketMessageHandlerResolverType} resolver - Resolver.
844
1055
  * @returns {void} - No return value.
845
1056
  */
846
1057
  setWebsocketMessageHandlerResolver(resolver: import("./configuration-types.js").WebsocketMessageHandlerResolverType): void;
847
1058
  /**
1059
+ * Runs resolve ability.
848
1060
  * @param {object} args - Ability resolver args.
849
- * @param {Record<string, any>} args.params - Request params.
1061
+ * @param {Record<string, ?>} args.params - Request params.
850
1062
  * @param {import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default} args.request - Request object.
851
1063
  * @param {import("./http-server/client/response.js").default} args.response - Response object.
852
1064
  * @returns {Promise<import("./authorization/ability.js").default | undefined>} - Resolved ability.
853
1065
  */
854
1066
  resolveAbility({ params, request, response }: {
855
- params: Record<string, any>;
1067
+ params: Record<string, unknown>;
856
1068
  request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default;
857
1069
  response: import("./http-server/client/response.js").default;
858
1070
  }): Promise<import("./authorization/ability.js").default | undefined>;
859
1071
  /**
1072
+ * Runs run with ability.
860
1073
  * @param {import("./authorization/ability.js").default | undefined} ability - Ability instance.
861
- * @param {() => Promise<any>} callback - Callback.
862
- * @returns {Promise<any>} - Callback result.
1074
+ * @param {() => Promise<?>} callback - Callback.
1075
+ * @returns {Promise<?>} - Callback result.
863
1076
  */
864
- runWithAbility(ability: import("./authorization/ability.js").default | undefined, callback: () => Promise<any>): Promise<any>;
1077
+ runWithAbility(ability: import("./authorization/ability.js").default | undefined, callback: () => Promise<unknown>): Promise<unknown>;
865
1078
  /**
1079
+ * Runs run with request timing.
866
1080
  * @param {import("./http-server/client/request-timing.js").default | undefined} requestTiming - Request timing collector.
867
- * @param {() => Promise<any>} callback - Callback.
868
- * @returns {Promise<any>} - Callback result.
1081
+ * @param {() => Promise<?>} callback - Callback.
1082
+ * @returns {Promise<?>} - Callback result.
869
1083
  */
870
- runWithRequestTiming(requestTiming: import("./http-server/client/request-timing.js").default | undefined, callback: () => Promise<any>): Promise<any>;
1084
+ runWithRequestTiming(requestTiming: import("./http-server/client/request-timing.js").default | undefined, callback: () => Promise<unknown>): Promise<unknown>;
871
1085
  /**
1086
+ * Runs get current ability.
872
1087
  * @returns {import("./authorization/ability.js").default | undefined} - Current ability from context.
873
1088
  */
874
1089
  getCurrentAbility(): import("./authorization/ability.js").default | undefined;
875
1090
  /**
1091
+ * Runs get current request timing.
876
1092
  * @returns {import("./http-server/client/request-timing.js").default | undefined} - Current request timing collector.
877
1093
  */
878
1094
  getCurrentRequestTiming(): import("./http-server/client/request-timing.js").default | undefined;
879
1095
  /**
880
- * @returns {unknown} - Current tenant from context.
1096
+ * Runs get current tenant.
1097
+ * @returns {?} - Current tenant from context.
881
1098
  */
882
1099
  getCurrentTenant(): unknown;
883
1100
  /**
884
- * @param {unknown} tenant - Tenant.
885
- * @param {() => Promise<any>} callback - Callback.
886
- * @returns {Promise<any>} - Callback result.
1101
+ * Runs run with tenant.
1102
+ * @param {?} tenant - Tenant.
1103
+ * @param {() => Promise<?>} callback - Callback.
1104
+ * @returns {Promise<?>} - Callback result.
887
1105
  */
888
- runWithTenant(tenant: unknown, callback: () => Promise<any>): Promise<any>;
1106
+ runWithTenant(tenant: unknown, callback: () => Promise<unknown>): Promise<unknown>;
889
1107
  /**
1108
+ * Runs resolve tenant.
890
1109
  * @param {object} args - Tenant resolver args.
891
- * @param {Record<string, any>} args.params - Request params.
1110
+ * @param {Record<string, ?>} args.params - Request params.
892
1111
  * @param {import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined} args.request - Request object.
893
1112
  * @param {import("./http-server/client/response.js").default | undefined} args.response - Response object.
894
- * @param {{channel: string, params?: Record<string, unknown>}} [args.subscription] - Subscription metadata.
895
- * @returns {Promise<unknown>} - Resolved tenant.
1113
+ * @param {{channel: string, params?: Record<string, ?>}} [args.subscription] - Subscription metadata.
1114
+ * @returns {Promise<?>} - Resolved tenant.
896
1115
  */
897
1116
  resolveTenant({ params, request, response, subscription }: {
898
- params: Record<string, any>;
1117
+ params: Record<string, unknown>;
899
1118
  request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined;
900
1119
  response: import("./http-server/client/response.js").default | undefined;
901
1120
  subscription?: {
@@ -903,29 +1122,39 @@ export default class VelociousConfiguration {
903
1122
  params?: Record<string, unknown>;
904
1123
  } | undefined;
905
1124
  }): Promise<unknown>;
906
- /** @returns {import("eventemitter3").EventEmitter} - Framework error events emitter. */
1125
+ /**
1126
+ * Runs get error events.
1127
+ * @returns {import("eventemitter3").EventEmitter} - Framework error events emitter.
1128
+ */
907
1129
  getErrorEvents(): import("eventemitter3").EventEmitter;
908
1130
  /**
1131
+ * Runs with connections.
909
1132
  * @template T
910
1133
  * @param {WithConnectionsOptionsType | WithConnectionsCallbackType<T>} optionsOrCallback - Checkout options or callback function.
911
1134
  * @param {WithConnectionsCallbackType<T>} [callback] - Callback function.
912
1135
  * @returns {Promise<T>} - Resolves with the callback result.
913
1136
  */
914
1137
  withConnections<T>(optionsOrCallback: WithConnectionsOptionsType | WithConnectionsCallbackType<T>, callback?: WithConnectionsCallbackType<T>): Promise<T>;
915
- /** @returns {Record<string, import("./database/drivers/base.js").default>} A map of database connections with identifier as key */
1138
+ /**
1139
+ * Runs get current connections.
1140
+ * @returns {Record<string, import("./database/drivers/base.js").default>} A map of database connections with identifier as key
1141
+ */
916
1142
  getCurrentConnections(): Record<string, import("./database/drivers/base.js").default>;
917
1143
  /**
1144
+ * Runs without current connection contexts.
918
1145
  * @template T
919
1146
  * @param {() => T} callback - Callback to run without inherited DB connection contexts.
920
1147
  * @returns {T} - Callback result.
921
1148
  */
922
1149
  withoutCurrentConnectionContexts<T>(callback: () => T): T;
923
1150
  /**
924
- * @param {unknown} error - Error thrown while looking up the current connection.
1151
+ * Runs is missing current connection error.
1152
+ * @param {?} error - Error thrown while looking up the current connection.
925
1153
  * @returns {boolean} - Whether the error means no current connection is available.
926
1154
  */
927
1155
  isMissingCurrentConnectionError(error: unknown): boolean;
928
1156
  /**
1157
+ * Runs ensure connections.
929
1158
  * @template T
930
1159
  * @param {WithConnectionsOptionsType | WithConnectionsCallbackType<T>} optionsOrCallback - Checkout options or callback function.
931
1160
  * @param {WithConnectionsCallbackType<T>} [callback] - Callback function.
@@ -938,6 +1167,7 @@ export default class VelociousConfiguration {
938
1167
  */
939
1168
  closeDatabaseConnections(): Promise<void>;
940
1169
  /**
1170
+ * Runs debug endpoint request authorized.
941
1171
  * @param {{header: (name: string) => string | null | undefined}} request - Incoming request.
942
1172
  * @param {string} expectedToken - Configured debug-endpoint token.
943
1173
  * @returns {boolean} - Whether the request carries the expected bearer token.
@@ -946,7 +1176,13 @@ export default class VelociousConfiguration {
946
1176
  header: (name: string) => string | null | undefined;
947
1177
  }, expectedToken: string): boolean;
948
1178
  }
1179
+ /**
1180
+ * WithConnectionsCallbackType type.
1181
+ */
949
1182
  export type WithConnectionsCallbackType<T> = (arg0: Record<string, import("./database/drivers/base.js").default>) => Promise<T>;
1183
+ /**
1184
+ * WithConnectionsOptionsType type.
1185
+ */
950
1186
  export type WithConnectionsOptionsType = {
951
1187
  /**
952
1188
  * - Human-readable name for the checked-out database connections.