velocious 1.0.578 → 1.0.579

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 (1672) hide show
  1. package/README.md +1 -1
  2. package/build/application.js +3 -3
  3. package/build/authorization/ability.js +6 -6
  4. package/build/authorization/base-resource.js +1 -1
  5. package/build/background-jobs/client.js +2 -2
  6. package/build/background-jobs/forked-runner-child.js +4 -4
  7. package/build/background-jobs/job-runner.js +2 -2
  8. package/build/background-jobs/job.js +6 -6
  9. package/build/background-jobs/json-socket.js +1 -1
  10. package/build/background-jobs/main.js +11 -11
  11. package/build/background-jobs/normalize-error.js +2 -2
  12. package/build/background-jobs/pooled-runner-child.js +3 -3
  13. package/build/background-jobs/scheduler.js +1 -1
  14. package/build/background-jobs/status-reporter.js +2 -2
  15. package/build/background-jobs/store.js +23 -23
  16. package/build/background-jobs/types.js +6 -6
  17. package/build/background-jobs/web/controller.js +6 -6
  18. package/build/background-jobs/web/counts-channel.js +1 -1
  19. package/build/background-jobs/worker.js +8 -8
  20. package/build/beacon/client.js +3 -3
  21. package/build/beacon/in-process-client.js +3 -3
  22. package/build/beacon/types.js +1 -1
  23. package/build/cli/base-command.js +1 -1
  24. package/build/cli/commands/console.js +1 -1
  25. package/build/cli/commands/db/schema/dump.js +1 -1
  26. package/build/cli/commands/db/schema/load.js +1 -1
  27. package/build/cli/commands/db/seed.js +1 -1
  28. package/build/cli/commands/generate/frontend-models.js +1 -1
  29. package/build/cli/commands/lint/relationships.js +1 -1
  30. package/build/cli/commands/run-script.js +1 -1
  31. package/build/cli/commands/runner.js +1 -1
  32. package/build/cli/index.js +2 -2
  33. package/build/cli/tenant-database-command-helper.js +2 -2
  34. package/build/configuration-types.js +47 -47
  35. package/build/configuration.js +98 -55
  36. package/build/controller.js +11 -8
  37. package/build/current.js +2 -2
  38. package/build/database/annotations-async-hooks.js +3 -3
  39. package/build/database/annotations.js +1 -1
  40. package/build/database/drivers/base-column.js +1 -1
  41. package/build/database/drivers/base-foreign-key.js +1 -1
  42. package/build/database/drivers/base-table.js +1 -1
  43. package/build/database/drivers/base.js +18 -18
  44. package/build/database/drivers/mssql/column.js +1 -1
  45. package/build/database/drivers/mssql/index.js +2 -2
  46. package/build/database/drivers/mssql/options.js +1 -1
  47. package/build/database/drivers/mssql/structure-sql.js +1 -1
  48. package/build/database/drivers/mssql/table.js +1 -1
  49. package/build/database/drivers/mysql/column.js +1 -1
  50. package/build/database/drivers/mysql/index.js +4 -4
  51. package/build/database/drivers/mysql/options.js +1 -1
  52. package/build/database/drivers/mysql/query.js +7 -7
  53. package/build/database/drivers/mysql/structure-sql.js +2 -2
  54. package/build/database/drivers/pgsql/column.js +1 -1
  55. package/build/database/drivers/pgsql/index.js +6 -6
  56. package/build/database/drivers/pgsql/structure-sql.js +1 -1
  57. package/build/database/drivers/sqlite/base.js +7 -7
  58. package/build/database/drivers/sqlite/column.js +1 -1
  59. package/build/database/drivers/sqlite/connection-sql-js.js +1 -1
  60. package/build/database/drivers/sqlite/foreign-key.js +1 -1
  61. package/build/database/drivers/sqlite/index.js +1 -1
  62. package/build/database/drivers/sqlite/index.native.js +2 -2
  63. package/build/database/drivers/sqlite/index.web.js +2 -2
  64. package/build/database/drivers/sqlite/query.js +2 -2
  65. package/build/database/drivers/sqlite/query.native.js +2 -2
  66. package/build/database/drivers/sqlite/query.web.js +2 -2
  67. package/build/database/drivers/sqlite/table-rebuilder.js +1 -1
  68. package/build/database/migration/index.js +2 -2
  69. package/build/database/migrator/types.js +2 -2
  70. package/build/database/operation.js +59 -6
  71. package/build/database/pool/async-tracked-multi-connection.js +75 -24
  72. package/build/database/pool/base-methods-forward.js +2 -2
  73. package/build/database/pool/base.js +48 -17
  74. package/build/database/pool/single-multi-use.js +501 -103
  75. package/build/database/query/delete-base.js +1 -1
  76. package/build/database/query/index.js +3 -3
  77. package/build/database/query/insert-base.js +4 -4
  78. package/build/database/query/model-class-query.js +39 -39
  79. package/build/database/query/preloader/belongs-to.js +2 -2
  80. package/build/database/query/preloader/ensure-model-class-initialized.js +3 -2
  81. package/build/database/query/preloader/has-many.js +3 -3
  82. package/build/database/query/preloader/has-one.js +1 -1
  83. package/build/database/query/preloader.js +9 -2
  84. package/build/database/query/query-data.js +7 -7
  85. package/build/database/query/update-base.js +3 -3
  86. package/build/database/query/upsert-base.js +2 -2
  87. package/build/database/query/where-model-class-hash.js +13 -13
  88. package/build/database/query/with-count.js +4 -4
  89. package/build/database/query-parser/options.js +2 -2
  90. package/build/database/query-parser/select-parser.js +1 -1
  91. package/build/database/record/acts-as-list.js +2 -2
  92. package/build/database/record/attachments/handle.js +6 -6
  93. package/build/database/record/attachments/normalize-input.js +11 -11
  94. package/build/database/record/attachments/storage-drivers/filesystem.js +1 -1
  95. package/build/database/record/attachments/storage-drivers/native.js +5 -5
  96. package/build/database/record/attachments/storage-drivers/s3.js +10 -10
  97. package/build/database/record/attachments/store.js +24 -20
  98. package/build/database/record/auditing.js +123 -29
  99. package/build/database/record/counter-cache-magnitude.js +11 -11
  100. package/build/database/record/index.js +227 -174
  101. package/build/database/record/instance-relationships/base.js +4 -4
  102. package/build/database/record/instance-relationships/belongs-to.js +1 -1
  103. package/build/database/record/instance-relationships/has-many.js +3 -3
  104. package/build/database/record/instance-relationships/has-one.js +1 -1
  105. package/build/database/record/relationships/base.js +22 -0
  106. package/build/database/record/state-machine.js +6 -6
  107. package/build/database/record/validators/base.js +1 -1
  108. package/build/database/structure-sql-loader.js +3 -3
  109. package/build/database/table-data/table-column.js +3 -3
  110. package/build/database/use-live-query.js +3 -3
  111. package/build/environment-handlers/base.js +56 -37
  112. package/build/environment-handlers/browser.js +1 -1
  113. package/build/environment-handlers/node/cli/commands/console.js +4 -4
  114. package/build/environment-handlers/node/cli/commands/db/seed.js +2 -2
  115. package/build/environment-handlers/node/cli/commands/generate/base-models.js +1 -1
  116. package/build/environment-handlers/node/cli/commands/run-script.js +2 -2
  117. package/build/environment-handlers/node/cli/commands/runner.js +2 -2
  118. package/build/environment-handlers/node/cli/commands/server.js +1 -1
  119. package/build/environment-handlers/node.js +36 -36
  120. package/build/error-logger.js +2 -2
  121. package/build/error-reporting/request-details.js +32 -32
  122. package/build/frontend-model-controller.js +144 -144
  123. package/build/frontend-model-resource/base-resource.js +44 -44
  124. package/build/frontend-model-resource/velocious-attachment-resource.js +1 -1
  125. package/build/frontend-models/base.js +137 -142
  126. package/build/frontend-models/clear-pending-debounced-callback.js +2 -2
  127. package/build/frontend-models/model-registry.js +4 -4
  128. package/build/frontend-models/outgoing-event-buffer.js +1 -1
  129. package/build/frontend-models/preloader.js +1 -1
  130. package/build/frontend-models/query.js +60 -60
  131. package/build/frontend-models/resource-definition.js +9 -9
  132. package/build/frontend-models/transport-serialization.js +27 -27
  133. package/build/frontend-models/websocket-channel.js +4 -4
  134. package/build/frontend-models/websocket-publishers.js +1 -1
  135. package/build/http-client/request.js +1 -1
  136. package/build/http-client/response.js +1 -1
  137. package/build/http-server/client/index.js +4 -4
  138. package/build/http-server/client/params-to-object.js +16 -16
  139. package/build/http-server/client/request-buffer/index.js +5 -2
  140. package/build/http-server/client/request-parser.js +2 -2
  141. package/build/http-server/client/request-runner.js +2 -2
  142. package/build/http-server/client/request.js +2 -2
  143. package/build/http-server/client/websocket-request.js +6 -6
  144. package/build/http-server/client/websocket-session.js +28 -28
  145. package/build/http-server/cookie.js +2 -2
  146. package/build/http-server/development-reloader.js +1 -1
  147. package/build/http-server/index.js +5 -5
  148. package/build/http-server/remote-address.js +1 -1
  149. package/build/http-server/server-lock.js +4 -4
  150. package/build/http-server/websocket-channel-subscribers.js +4 -4
  151. package/build/http-server/websocket-channel.js +1 -1
  152. package/build/http-server/websocket-connection.js +3 -3
  153. package/build/http-server/websocket-event-log-store.js +9 -9
  154. package/build/http-server/websocket-events-host.js +7 -7
  155. package/build/http-server/websocket-events.js +4 -4
  156. package/build/http-server/worker-handler/channel-subscriber-dispatch.js +1 -1
  157. package/build/http-server/worker-handler/in-process.js +5 -5
  158. package/build/http-server/worker-handler/index.js +10 -10
  159. package/build/http-server/worker-handler/worker-thread.js +8 -8
  160. package/build/index.d.ts.map +1 -1
  161. package/build/logger/base-logger.js +1 -1
  162. package/build/logger.js +12 -12
  163. package/build/mailer/backends/smtp.js +3 -3
  164. package/build/mailer/base.js +14 -14
  165. package/build/mailer/delivery.js +3 -3
  166. package/build/mailer/index.js +1 -1
  167. package/build/mailer.js +1 -1
  168. package/build/plugins/sqljs-wasm-route-controller.js +1 -1
  169. package/build/record-payload-values.js +3 -3
  170. package/build/routes/base-route.js +5 -5
  171. package/build/routes/basic-route.js +4 -4
  172. package/build/routes/get-route.js +2 -2
  173. package/build/routes/hooks/frontend-model-command-route-hook.js +1 -1
  174. package/build/routes/index.js +3 -3
  175. package/build/routes/namespace-route.js +1 -1
  176. package/build/routes/plugin-routes.js +1 -1
  177. package/build/routes/post-route.js +2 -2
  178. package/build/routes/resolver.js +5 -5
  179. package/build/routes/resource-route.js +1 -1
  180. package/build/src/application.d.ts +26 -29
  181. package/build/src/application.d.ts.map +1 -1
  182. package/build/src/application.js +4 -4
  183. package/build/src/authorization/ability.d.ts +47 -53
  184. package/build/src/authorization/ability.d.ts.map +1 -1
  185. package/build/src/authorization/ability.js +7 -7
  186. package/build/src/authorization/base-resource.d.ts +13 -13
  187. package/build/src/authorization/base-resource.d.ts.map +1 -1
  188. package/build/src/authorization/base-resource.js +2 -2
  189. package/build/src/background-jobs/client.d.ts +9 -9
  190. package/build/src/background-jobs/client.d.ts.map +1 -1
  191. package/build/src/background-jobs/client.js +3 -3
  192. package/build/src/background-jobs/cron-expression.d.ts +25 -16
  193. package/build/src/background-jobs/cron-expression.d.ts.map +1 -1
  194. package/build/src/background-jobs/forked-runner-child.js +5 -5
  195. package/build/src/background-jobs/job-record.d.ts +4 -3
  196. package/build/src/background-jobs/job-record.d.ts.map +1 -1
  197. package/build/src/background-jobs/job-registry.d.ts +6 -6
  198. package/build/src/background-jobs/job-registry.d.ts.map +1 -1
  199. package/build/src/background-jobs/job-runner.d.ts +9 -9
  200. package/build/src/background-jobs/job-runner.d.ts.map +1 -1
  201. package/build/src/background-jobs/job-runner.js +3 -3
  202. package/build/src/background-jobs/job.d.ts +14 -14
  203. package/build/src/background-jobs/job.d.ts.map +1 -1
  204. package/build/src/background-jobs/job.js +7 -7
  205. package/build/src/background-jobs/json-socket.d.ts +9 -10
  206. package/build/src/background-jobs/json-socket.d.ts.map +1 -1
  207. package/build/src/background-jobs/json-socket.js +2 -2
  208. package/build/src/background-jobs/main.d.ts +56 -59
  209. package/build/src/background-jobs/main.d.ts.map +1 -1
  210. package/build/src/background-jobs/main.js +12 -12
  211. package/build/src/background-jobs/normalize-error.d.ts +2 -2
  212. package/build/src/background-jobs/normalize-error.d.ts.map +1 -1
  213. package/build/src/background-jobs/normalize-error.js +3 -3
  214. package/build/src/background-jobs/pooled-runner-child.js +4 -4
  215. package/build/src/background-jobs/runner-graceful-shutdown.d.ts +7 -12
  216. package/build/src/background-jobs/runner-graceful-shutdown.d.ts.map +1 -1
  217. package/build/src/background-jobs/runner-process-title.d.ts.map +1 -1
  218. package/build/src/background-jobs/scheduler.d.ts +41 -41
  219. package/build/src/background-jobs/scheduler.d.ts.map +1 -1
  220. package/build/src/background-jobs/scheduler.js +2 -2
  221. package/build/src/background-jobs/socket-request.d.ts +14 -14
  222. package/build/src/background-jobs/socket-request.d.ts.map +1 -1
  223. package/build/src/background-jobs/status-reporter.d.ts +28 -28
  224. package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
  225. package/build/src/background-jobs/status-reporter.js +3 -3
  226. package/build/src/background-jobs/store.d.ts +100 -103
  227. package/build/src/background-jobs/store.d.ts.map +1 -1
  228. package/build/src/background-jobs/store.js +24 -24
  229. package/build/src/background-jobs/types.d.ts +124 -124
  230. package/build/src/background-jobs/types.d.ts.map +1 -1
  231. package/build/src/background-jobs/types.js +7 -7
  232. package/build/src/background-jobs/web/authorization.d.ts +2 -2
  233. package/build/src/background-jobs/web/authorization.d.ts.map +1 -1
  234. package/build/src/background-jobs/web/controller.d.ts +13 -13
  235. package/build/src/background-jobs/web/controller.d.ts.map +1 -1
  236. package/build/src/background-jobs/web/controller.js +7 -7
  237. package/build/src/background-jobs/web/counts-channel.d.ts +8 -8
  238. package/build/src/background-jobs/web/counts-channel.d.ts.map +1 -1
  239. package/build/src/background-jobs/web/counts-channel.js +2 -2
  240. package/build/src/background-jobs/web/index.d.ts +4 -4
  241. package/build/src/background-jobs/web/index.d.ts.map +1 -1
  242. package/build/src/background-jobs/web/path-matcher.d.ts +18 -13
  243. package/build/src/background-jobs/web/path-matcher.d.ts.map +1 -1
  244. package/build/src/background-jobs/web/registry.d.ts +21 -24
  245. package/build/src/background-jobs/web/registry.d.ts.map +1 -1
  246. package/build/src/background-jobs/worker.d.ts +74 -77
  247. package/build/src/background-jobs/worker.d.ts.map +1 -1
  248. package/build/src/background-jobs/worker.js +9 -9
  249. package/build/src/beacon/client.d.ts +30 -34
  250. package/build/src/beacon/client.d.ts.map +1 -1
  251. package/build/src/beacon/client.js +4 -4
  252. package/build/src/beacon/in-process-broker.d.ts +6 -9
  253. package/build/src/beacon/in-process-broker.d.ts.map +1 -1
  254. package/build/src/beacon/in-process-client.d.ts +17 -21
  255. package/build/src/beacon/in-process-client.d.ts.map +1 -1
  256. package/build/src/beacon/in-process-client.js +4 -4
  257. package/build/src/beacon/server.d.ts +15 -15
  258. package/build/src/beacon/server.d.ts.map +1 -1
  259. package/build/src/beacon/types.d.ts +21 -46
  260. package/build/src/beacon/types.d.ts.map +1 -1
  261. package/build/src/beacon/types.js +2 -2
  262. package/build/src/cli/base-command.d.ts +25 -28
  263. package/build/src/cli/base-command.d.ts.map +1 -1
  264. package/build/src/cli/base-command.js +2 -2
  265. package/build/src/cli/browser-cli.d.ts +1 -1
  266. package/build/src/cli/browser-cli.d.ts.map +1 -1
  267. package/build/src/cli/commands/background-jobs-main.d.ts +2 -1
  268. package/build/src/cli/commands/background-jobs-main.d.ts.map +1 -1
  269. package/build/src/cli/commands/background-jobs-runner.d.ts +2 -1
  270. package/build/src/cli/commands/background-jobs-runner.d.ts.map +1 -1
  271. package/build/src/cli/commands/background-jobs-worker.d.ts +2 -1
  272. package/build/src/cli/commands/background-jobs-worker.d.ts.map +1 -1
  273. package/build/src/cli/commands/beacon.d.ts +2 -1
  274. package/build/src/cli/commands/beacon.d.ts.map +1 -1
  275. package/build/src/cli/commands/console.d.ts +6 -1
  276. package/build/src/cli/commands/console.d.ts.map +1 -1
  277. package/build/src/cli/commands/console.js +2 -2
  278. package/build/src/cli/commands/db/base-command.d.ts +1 -1
  279. package/build/src/cli/commands/db/base-command.d.ts.map +1 -1
  280. package/build/src/cli/commands/db/create.d.ts +1 -1
  281. package/build/src/cli/commands/db/create.d.ts.map +1 -1
  282. package/build/src/cli/commands/db/drop.d.ts +1 -1
  283. package/build/src/cli/commands/db/drop.d.ts.map +1 -1
  284. package/build/src/cli/commands/db/migrate.d.ts +1 -1
  285. package/build/src/cli/commands/db/migrate.d.ts.map +1 -1
  286. package/build/src/cli/commands/db/reset.d.ts +1 -1
  287. package/build/src/cli/commands/db/reset.d.ts.map +1 -1
  288. package/build/src/cli/commands/db/rollback.d.ts +1 -1
  289. package/build/src/cli/commands/db/rollback.d.ts.map +1 -1
  290. package/build/src/cli/commands/db/schema/dump.d.ts +6 -1
  291. package/build/src/cli/commands/db/schema/dump.d.ts.map +1 -1
  292. package/build/src/cli/commands/db/schema/dump.js +2 -2
  293. package/build/src/cli/commands/db/schema/load.d.ts +6 -1
  294. package/build/src/cli/commands/db/schema/load.d.ts.map +1 -1
  295. package/build/src/cli/commands/db/schema/load.js +2 -2
  296. package/build/src/cli/commands/db/seed.d.ts +6 -1
  297. package/build/src/cli/commands/db/seed.d.ts.map +1 -1
  298. package/build/src/cli/commands/db/seed.js +2 -2
  299. package/build/src/cli/commands/db/tenants/check.d.ts +1 -1
  300. package/build/src/cli/commands/db/tenants/check.d.ts.map +1 -1
  301. package/build/src/cli/commands/db/tenants/create.d.ts +1 -1
  302. package/build/src/cli/commands/db/tenants/create.d.ts.map +1 -1
  303. package/build/src/cli/commands/db/tenants/drop.d.ts +1 -1
  304. package/build/src/cli/commands/db/tenants/drop.d.ts.map +1 -1
  305. package/build/src/cli/commands/db/tenants/migrate.d.ts +1 -1
  306. package/build/src/cli/commands/db/tenants/migrate.d.ts.map +1 -1
  307. package/build/src/cli/commands/destroy/migration.d.ts +2 -1
  308. package/build/src/cli/commands/destroy/migration.d.ts.map +1 -1
  309. package/build/src/cli/commands/generate/base-models.d.ts +2 -1
  310. package/build/src/cli/commands/generate/base-models.d.ts.map +1 -1
  311. package/build/src/cli/commands/generate/frontend-models.d.ts +6 -1
  312. package/build/src/cli/commands/generate/frontend-models.d.ts.map +1 -1
  313. package/build/src/cli/commands/generate/frontend-models.js +2 -2
  314. package/build/src/cli/commands/generate/migration.d.ts +2 -1
  315. package/build/src/cli/commands/generate/migration.d.ts.map +1 -1
  316. package/build/src/cli/commands/generate/model.d.ts +2 -1
  317. package/build/src/cli/commands/generate/model.d.ts.map +1 -1
  318. package/build/src/cli/commands/init.d.ts +4 -2
  319. package/build/src/cli/commands/init.d.ts.map +1 -1
  320. package/build/src/cli/commands/lint/relationships.d.ts +6 -1
  321. package/build/src/cli/commands/lint/relationships.d.ts.map +1 -1
  322. package/build/src/cli/commands/lint/relationships.js +2 -2
  323. package/build/src/cli/commands/routes.d.ts +2 -1
  324. package/build/src/cli/commands/routes.d.ts.map +1 -1
  325. package/build/src/cli/commands/run-script.d.ts +6 -1
  326. package/build/src/cli/commands/run-script.d.ts.map +1 -1
  327. package/build/src/cli/commands/run-script.js +2 -2
  328. package/build/src/cli/commands/runner.d.ts +6 -1
  329. package/build/src/cli/commands/runner.d.ts.map +1 -1
  330. package/build/src/cli/commands/runner.js +2 -2
  331. package/build/src/cli/commands/server.d.ts +2 -1
  332. package/build/src/cli/commands/server.d.ts.map +1 -1
  333. package/build/src/cli/commands/test.d.ts +2 -1
  334. package/build/src/cli/commands/test.d.ts.map +1 -1
  335. package/build/src/cli/index.d.ts +20 -20
  336. package/build/src/cli/index.d.ts.map +1 -1
  337. package/build/src/cli/index.js +3 -3
  338. package/build/src/cli/tenant-database-command-helper.d.ts +13 -13
  339. package/build/src/cli/tenant-database-command-helper.d.ts.map +1 -1
  340. package/build/src/cli/tenant-database-command-helper.js +3 -3
  341. package/build/src/cli/use-browser-cli.d.ts +1 -1
  342. package/build/src/cli/use-browser-cli.d.ts.map +1 -1
  343. package/build/src/configuration-resolver.d.ts +1 -1
  344. package/build/src/configuration-resolver.d.ts.map +1 -1
  345. package/build/src/configuration-types.d.ts +944 -1040
  346. package/build/src/configuration-types.d.ts.map +1 -1
  347. package/build/src/configuration-types.js +48 -48
  348. package/build/src/configuration.d.ts +132 -138
  349. package/build/src/configuration.d.ts.map +1 -1
  350. package/build/src/configuration.js +98 -56
  351. package/build/src/controller.d.ts +37 -35
  352. package/build/src/controller.d.ts.map +1 -1
  353. package/build/src/controller.js +11 -9
  354. package/build/src/current-configuration.d.ts +5 -4
  355. package/build/src/current-configuration.d.ts.map +1 -1
  356. package/build/src/current.d.ts +3 -3
  357. package/build/src/current.d.ts.map +1 -1
  358. package/build/src/current.js +3 -3
  359. package/build/src/database/advisory-lock-runner.d.ts +61 -60
  360. package/build/src/database/advisory-lock-runner.d.ts.map +1 -1
  361. package/build/src/database/annotations-async-hooks.js +4 -4
  362. package/build/src/database/annotations.d.ts +4 -6
  363. package/build/src/database/annotations.d.ts.map +1 -1
  364. package/build/src/database/annotations.js +2 -2
  365. package/build/src/database/column-types.d.ts +1 -1
  366. package/build/src/database/column-types.d.ts.map +1 -1
  367. package/build/src/database/datetime-storage.d.ts +6 -6
  368. package/build/src/database/datetime-storage.d.ts.map +1 -1
  369. package/build/src/database/drivers/base-column.d.ts +3 -3
  370. package/build/src/database/drivers/base-column.d.ts.map +1 -1
  371. package/build/src/database/drivers/base-column.js +2 -2
  372. package/build/src/database/drivers/base-columns-index.d.ts +2 -2
  373. package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
  374. package/build/src/database/drivers/base-foreign-key.d.ts +7 -7
  375. package/build/src/database/drivers/base-foreign-key.d.ts.map +1 -1
  376. package/build/src/database/drivers/base-foreign-key.js +2 -2
  377. package/build/src/database/drivers/base-table.d.ts +3 -3
  378. package/build/src/database/drivers/base-table.d.ts.map +1 -1
  379. package/build/src/database/drivers/base-table.js +2 -2
  380. package/build/src/database/drivers/base.d.ts +297 -342
  381. package/build/src/database/drivers/base.d.ts.map +1 -1
  382. package/build/src/database/drivers/base.js +19 -19
  383. package/build/src/database/drivers/index-metadata.d.ts +15 -18
  384. package/build/src/database/drivers/index-metadata.d.ts.map +1 -1
  385. package/build/src/database/drivers/mssql/column.d.ts +10 -5
  386. package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
  387. package/build/src/database/drivers/mssql/column.js +2 -2
  388. package/build/src/database/drivers/mssql/columns-index.d.ts +30 -22
  389. package/build/src/database/drivers/mssql/columns-index.d.ts.map +1 -1
  390. package/build/src/database/drivers/mssql/connect-connection.d.ts.map +1 -1
  391. package/build/src/database/drivers/mssql/foreign-key.d.ts +1 -1
  392. package/build/src/database/drivers/mssql/foreign-key.d.ts.map +1 -1
  393. package/build/src/database/drivers/mssql/index.d.ts +250 -9
  394. package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
  395. package/build/src/database/drivers/mssql/index.js +3 -3
  396. package/build/src/database/drivers/mssql/options.d.ts +31 -1
  397. package/build/src/database/drivers/mssql/options.d.ts.map +1 -1
  398. package/build/src/database/drivers/mssql/options.js +2 -2
  399. package/build/src/database/drivers/mssql/query-parser.d.ts +1 -1
  400. package/build/src/database/drivers/mssql/query-parser.d.ts.map +1 -1
  401. package/build/src/database/drivers/mssql/sql/alter-table.d.ts +1 -1
  402. package/build/src/database/drivers/mssql/sql/alter-table.d.ts.map +1 -1
  403. package/build/src/database/drivers/mssql/sql/create-database.d.ts +3 -2
  404. package/build/src/database/drivers/mssql/sql/create-database.d.ts.map +1 -1
  405. package/build/src/database/drivers/mssql/sql/create-index.d.ts +1 -1
  406. package/build/src/database/drivers/mssql/sql/create-index.d.ts.map +1 -1
  407. package/build/src/database/drivers/mssql/sql/create-table.d.ts +1 -1
  408. package/build/src/database/drivers/mssql/sql/create-table.d.ts.map +1 -1
  409. package/build/src/database/drivers/mssql/sql/delete.d.ts +1 -1
  410. package/build/src/database/drivers/mssql/sql/delete.d.ts.map +1 -1
  411. package/build/src/database/drivers/mssql/sql/drop-database.d.ts +14 -1
  412. package/build/src/database/drivers/mssql/sql/drop-database.d.ts.map +1 -1
  413. package/build/src/database/drivers/mssql/sql/drop-table.d.ts +1 -1
  414. package/build/src/database/drivers/mssql/sql/drop-table.d.ts.map +1 -1
  415. package/build/src/database/drivers/mssql/sql/insert.d.ts +1 -1
  416. package/build/src/database/drivers/mssql/sql/insert.d.ts.map +1 -1
  417. package/build/src/database/drivers/mssql/sql/remove-index.d.ts +1 -1
  418. package/build/src/database/drivers/mssql/sql/remove-index.d.ts.map +1 -1
  419. package/build/src/database/drivers/mssql/sql/update.d.ts +1 -1
  420. package/build/src/database/drivers/mssql/sql/update.d.ts.map +1 -1
  421. package/build/src/database/drivers/mssql/sql/upsert.d.ts +1 -1
  422. package/build/src/database/drivers/mssql/sql/upsert.d.ts.map +1 -1
  423. package/build/src/database/drivers/mssql/structure-sql.d.ts +3 -3
  424. package/build/src/database/drivers/mssql/structure-sql.d.ts.map +1 -1
  425. package/build/src/database/drivers/mssql/structure-sql.js +2 -2
  426. package/build/src/database/drivers/mssql/table.d.ts +39 -29
  427. package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
  428. package/build/src/database/drivers/mssql/table.js +2 -2
  429. package/build/src/database/drivers/mysql/column.d.ts +10 -6
  430. package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
  431. package/build/src/database/drivers/mysql/column.js +2 -2
  432. package/build/src/database/drivers/mysql/columns-index.d.ts +3 -1
  433. package/build/src/database/drivers/mysql/columns-index.d.ts.map +1 -1
  434. package/build/src/database/drivers/mysql/foreign-key.d.ts +1 -1
  435. package/build/src/database/drivers/mysql/foreign-key.d.ts.map +1 -1
  436. package/build/src/database/drivers/mysql/index.d.ts +225 -6
  437. package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
  438. package/build/src/database/drivers/mysql/index.js +5 -5
  439. package/build/src/database/drivers/mysql/options.d.ts +7 -1
  440. package/build/src/database/drivers/mysql/options.d.ts.map +1 -1
  441. package/build/src/database/drivers/mysql/options.js +2 -2
  442. package/build/src/database/drivers/mysql/query-parser.d.ts +1 -1
  443. package/build/src/database/drivers/mysql/query-parser.d.ts.map +1 -1
  444. package/build/src/database/drivers/mysql/query-stream.d.ts.map +1 -1
  445. package/build/src/database/drivers/mysql/query.d.ts +2 -2
  446. package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
  447. package/build/src/database/drivers/mysql/query.js +8 -8
  448. package/build/src/database/drivers/mysql/sql/alter-table.d.ts +12 -1
  449. package/build/src/database/drivers/mysql/sql/alter-table.d.ts.map +1 -1
  450. package/build/src/database/drivers/mysql/sql/create-database.d.ts +6 -1
  451. package/build/src/database/drivers/mysql/sql/create-database.d.ts.map +1 -1
  452. package/build/src/database/drivers/mysql/sql/create-index.d.ts +1 -1
  453. package/build/src/database/drivers/mysql/sql/create-index.d.ts.map +1 -1
  454. package/build/src/database/drivers/mysql/sql/create-table.d.ts +1 -1
  455. package/build/src/database/drivers/mysql/sql/create-table.d.ts.map +1 -1
  456. package/build/src/database/drivers/mysql/sql/delete.d.ts +1 -1
  457. package/build/src/database/drivers/mysql/sql/delete.d.ts.map +1 -1
  458. package/build/src/database/drivers/mysql/sql/drop-database.d.ts +1 -1
  459. package/build/src/database/drivers/mysql/sql/drop-database.d.ts.map +1 -1
  460. package/build/src/database/drivers/mysql/sql/drop-table.d.ts +1 -1
  461. package/build/src/database/drivers/mysql/sql/drop-table.d.ts.map +1 -1
  462. package/build/src/database/drivers/mysql/sql/insert.d.ts +1 -1
  463. package/build/src/database/drivers/mysql/sql/insert.d.ts.map +1 -1
  464. package/build/src/database/drivers/mysql/sql/remove-index.d.ts +1 -1
  465. package/build/src/database/drivers/mysql/sql/remove-index.d.ts.map +1 -1
  466. package/build/src/database/drivers/mysql/sql/update.d.ts +1 -1
  467. package/build/src/database/drivers/mysql/sql/update.d.ts.map +1 -1
  468. package/build/src/database/drivers/mysql/sql/upsert.d.ts +1 -1
  469. package/build/src/database/drivers/mysql/sql/upsert.d.ts.map +1 -1
  470. package/build/src/database/drivers/mysql/structure-sql.d.ts +5 -5
  471. package/build/src/database/drivers/mysql/structure-sql.d.ts.map +1 -1
  472. package/build/src/database/drivers/mysql/structure-sql.js +3 -3
  473. package/build/src/database/drivers/mysql/table.d.ts +11 -6
  474. package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
  475. package/build/src/database/drivers/pgsql/column.d.ts +10 -5
  476. package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
  477. package/build/src/database/drivers/pgsql/column.js +2 -2
  478. package/build/src/database/drivers/pgsql/columns-index.d.ts +30 -22
  479. package/build/src/database/drivers/pgsql/columns-index.d.ts.map +1 -1
  480. package/build/src/database/drivers/pgsql/foreign-key.d.ts +1 -1
  481. package/build/src/database/drivers/pgsql/foreign-key.d.ts.map +1 -1
  482. package/build/src/database/drivers/pgsql/index.d.ts +157 -6
  483. package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
  484. package/build/src/database/drivers/pgsql/index.js +7 -7
  485. package/build/src/database/drivers/pgsql/options.d.ts +1 -1
  486. package/build/src/database/drivers/pgsql/options.d.ts.map +1 -1
  487. package/build/src/database/drivers/pgsql/query-parser.d.ts +1 -1
  488. package/build/src/database/drivers/pgsql/query-parser.d.ts.map +1 -1
  489. package/build/src/database/drivers/pgsql/sql/alter-table.d.ts +1 -1
  490. package/build/src/database/drivers/pgsql/sql/alter-table.d.ts.map +1 -1
  491. package/build/src/database/drivers/pgsql/sql/create-database.d.ts +2 -1
  492. package/build/src/database/drivers/pgsql/sql/create-database.d.ts.map +1 -1
  493. package/build/src/database/drivers/pgsql/sql/create-index.d.ts +1 -1
  494. package/build/src/database/drivers/pgsql/sql/create-index.d.ts.map +1 -1
  495. package/build/src/database/drivers/pgsql/sql/create-table.d.ts +1 -1
  496. package/build/src/database/drivers/pgsql/sql/create-table.d.ts.map +1 -1
  497. package/build/src/database/drivers/pgsql/sql/delete.d.ts +1 -1
  498. package/build/src/database/drivers/pgsql/sql/delete.d.ts.map +1 -1
  499. package/build/src/database/drivers/pgsql/sql/drop-database.d.ts +1 -1
  500. package/build/src/database/drivers/pgsql/sql/drop-database.d.ts.map +1 -1
  501. package/build/src/database/drivers/pgsql/sql/drop-table.d.ts +1 -1
  502. package/build/src/database/drivers/pgsql/sql/drop-table.d.ts.map +1 -1
  503. package/build/src/database/drivers/pgsql/sql/insert.d.ts +1 -1
  504. package/build/src/database/drivers/pgsql/sql/insert.d.ts.map +1 -1
  505. package/build/src/database/drivers/pgsql/sql/remove-index.d.ts +1 -1
  506. package/build/src/database/drivers/pgsql/sql/remove-index.d.ts.map +1 -1
  507. package/build/src/database/drivers/pgsql/sql/update.d.ts +1 -1
  508. package/build/src/database/drivers/pgsql/sql/update.d.ts.map +1 -1
  509. package/build/src/database/drivers/pgsql/sql/upsert.d.ts +1 -1
  510. package/build/src/database/drivers/pgsql/sql/upsert.d.ts.map +1 -1
  511. package/build/src/database/drivers/pgsql/structure-sql.d.ts +3 -3
  512. package/build/src/database/drivers/pgsql/structure-sql.d.ts.map +1 -1
  513. package/build/src/database/drivers/pgsql/structure-sql.js +2 -2
  514. package/build/src/database/drivers/pgsql/table.d.ts +33 -31
  515. package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
  516. package/build/src/database/drivers/sqlite/base.d.ts +162 -12
  517. package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
  518. package/build/src/database/drivers/sqlite/base.js +8 -8
  519. package/build/src/database/drivers/sqlite/column.d.ts +12 -6
  520. package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
  521. package/build/src/database/drivers/sqlite/column.js +2 -2
  522. package/build/src/database/drivers/sqlite/columns-index.d.ts +5 -1
  523. package/build/src/database/drivers/sqlite/columns-index.d.ts.map +1 -1
  524. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +9 -9
  525. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
  526. package/build/src/database/drivers/sqlite/connection-sql-js.js +2 -2
  527. package/build/src/database/drivers/sqlite/foreign-key.d.ts +5 -4
  528. package/build/src/database/drivers/sqlite/foreign-key.d.ts.map +1 -1
  529. package/build/src/database/drivers/sqlite/foreign-key.js +2 -2
  530. package/build/src/database/drivers/sqlite/index.d.ts +53 -3
  531. package/build/src/database/drivers/sqlite/index.d.ts.map +1 -1
  532. package/build/src/database/drivers/sqlite/index.js +2 -2
  533. package/build/src/database/drivers/sqlite/index.native.d.ts +13 -5
  534. package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
  535. package/build/src/database/drivers/sqlite/index.native.js +3 -3
  536. package/build/src/database/drivers/sqlite/index.web.d.ts +48 -14
  537. package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
  538. package/build/src/database/drivers/sqlite/index.web.js +3 -3
  539. package/build/src/database/drivers/sqlite/options.d.ts +1 -1
  540. package/build/src/database/drivers/sqlite/options.d.ts.map +1 -1
  541. package/build/src/database/drivers/sqlite/query-parser.d.ts +1 -1
  542. package/build/src/database/drivers/sqlite/query-parser.d.ts.map +1 -1
  543. package/build/src/database/drivers/sqlite/query.d.ts +2 -2
  544. package/build/src/database/drivers/sqlite/query.d.ts.map +1 -1
  545. package/build/src/database/drivers/sqlite/query.js +3 -3
  546. package/build/src/database/drivers/sqlite/query.native.d.ts +4 -4
  547. package/build/src/database/drivers/sqlite/query.native.d.ts.map +1 -1
  548. package/build/src/database/drivers/sqlite/query.native.js +3 -3
  549. package/build/src/database/drivers/sqlite/query.web.d.ts +2 -2
  550. package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
  551. package/build/src/database/drivers/sqlite/query.web.js +3 -3
  552. package/build/src/database/drivers/sqlite/sql/alter-table.d.ts +19 -4
  553. package/build/src/database/drivers/sqlite/sql/alter-table.d.ts.map +1 -1
  554. package/build/src/database/drivers/sqlite/sql/create-index.d.ts +1 -1
  555. package/build/src/database/drivers/sqlite/sql/create-index.d.ts.map +1 -1
  556. package/build/src/database/drivers/sqlite/sql/create-table.d.ts +1 -1
  557. package/build/src/database/drivers/sqlite/sql/create-table.d.ts.map +1 -1
  558. package/build/src/database/drivers/sqlite/sql/delete.d.ts +1 -1
  559. package/build/src/database/drivers/sqlite/sql/delete.d.ts.map +1 -1
  560. package/build/src/database/drivers/sqlite/sql/drop-table.d.ts +1 -1
  561. package/build/src/database/drivers/sqlite/sql/drop-table.d.ts.map +1 -1
  562. package/build/src/database/drivers/sqlite/sql/insert.d.ts +1 -1
  563. package/build/src/database/drivers/sqlite/sql/insert.d.ts.map +1 -1
  564. package/build/src/database/drivers/sqlite/sql/remove-index.d.ts +1 -1
  565. package/build/src/database/drivers/sqlite/sql/remove-index.d.ts.map +1 -1
  566. package/build/src/database/drivers/sqlite/sql/update.d.ts +1 -1
  567. package/build/src/database/drivers/sqlite/sql/update.d.ts.map +1 -1
  568. package/build/src/database/drivers/sqlite/sql/upsert.d.ts +1 -1
  569. package/build/src/database/drivers/sqlite/sql/upsert.d.ts.map +1 -1
  570. package/build/src/database/drivers/sqlite/structure-sql.d.ts +1 -1
  571. package/build/src/database/drivers/sqlite/structure-sql.d.ts.map +1 -1
  572. package/build/src/database/drivers/sqlite/table-rebuilder.d.ts +5 -5
  573. package/build/src/database/drivers/sqlite/table-rebuilder.d.ts.map +1 -1
  574. package/build/src/database/drivers/sqlite/table-rebuilder.js +2 -2
  575. package/build/src/database/drivers/sqlite/table.d.ts +15 -5
  576. package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
  577. package/build/src/database/drivers/sqlite/web-persistence.d.ts +28 -34
  578. package/build/src/database/drivers/sqlite/web-persistence.d.ts.map +1 -1
  579. package/build/src/database/drivers/structure-sql/utils.d.ts +2 -2
  580. package/build/src/database/drivers/structure-sql/utils.d.ts.map +1 -1
  581. package/build/src/database/handler.d.ts.map +1 -1
  582. package/build/src/database/initializer-from-require-context.d.ts +18 -16
  583. package/build/src/database/initializer-from-require-context.d.ts.map +1 -1
  584. package/build/src/database/live-query.d.ts +13 -24
  585. package/build/src/database/live-query.d.ts.map +1 -1
  586. package/build/src/database/migration/index.d.ts +146 -169
  587. package/build/src/database/migration/index.d.ts.map +1 -1
  588. package/build/src/database/migration/index.js +3 -3
  589. package/build/src/database/migrations-ledger.d.ts.map +1 -1
  590. package/build/src/database/migrator/files-finder.d.ts +1 -1
  591. package/build/src/database/migrator/files-finder.d.ts.map +1 -1
  592. package/build/src/database/migrator/types.d.ts +26 -2
  593. package/build/src/database/migrator/types.d.ts.map +1 -1
  594. package/build/src/database/migrator/types.js +24 -1
  595. package/build/src/database/migrator.d.ts +10 -10
  596. package/build/src/database/migrator.d.ts.map +1 -1
  597. package/build/src/database/operation-connection.d.ts +3 -3
  598. package/build/src/database/operation-connection.d.ts.map +1 -1
  599. package/build/src/database/operation-lease.d.ts +4 -4
  600. package/build/src/database/operation-lease.d.ts.map +1 -1
  601. package/build/src/database/operation.d.ts +38 -7
  602. package/build/src/database/operation.d.ts.map +1 -1
  603. package/build/src/database/operation.js +55 -8
  604. package/build/src/database/pool/async-tracked-multi-connection.d.ts +174 -79
  605. package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
  606. package/build/src/database/pool/async-tracked-multi-connection.js +70 -25
  607. package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
  608. package/build/src/database/pool/base-methods-forward.js +3 -3
  609. package/build/src/database/pool/base.d.ts +93 -71
  610. package/build/src/database/pool/base.d.ts.map +1 -1
  611. package/build/src/database/pool/base.js +47 -17
  612. package/build/src/database/pool/single-multi-use.d.ts +243 -10
  613. package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
  614. package/build/src/database/pool/single-multi-use.js +467 -103
  615. package/build/src/database/query/alter-table-base.d.ts +8 -3
  616. package/build/src/database/query/alter-table-base.d.ts.map +1 -1
  617. package/build/src/database/query/base.d.ts +3 -3
  618. package/build/src/database/query/base.d.ts.map +1 -1
  619. package/build/src/database/query/create-database-base.d.ts +28 -22
  620. package/build/src/database/query/create-database-base.d.ts.map +1 -1
  621. package/build/src/database/query/create-index-base.d.ts +32 -30
  622. package/build/src/database/query/create-index-base.d.ts.map +1 -1
  623. package/build/src/database/query/create-table-base.d.ts +7 -7
  624. package/build/src/database/query/create-table-base.d.ts.map +1 -1
  625. package/build/src/database/query/delete-base.d.ts +5 -5
  626. package/build/src/database/query/delete-base.d.ts.map +1 -1
  627. package/build/src/database/query/delete-base.js +2 -2
  628. package/build/src/database/query/drop-database-base.d.ts +22 -18
  629. package/build/src/database/query/drop-database-base.d.ts.map +1 -1
  630. package/build/src/database/query/drop-table-base.d.ts +11 -6
  631. package/build/src/database/query/drop-table-base.d.ts.map +1 -1
  632. package/build/src/database/query/from-base.d.ts.map +1 -1
  633. package/build/src/database/query/from-plain.d.ts +3 -2
  634. package/build/src/database/query/from-plain.d.ts.map +1 -1
  635. package/build/src/database/query/from-table.d.ts +3 -2
  636. package/build/src/database/query/from-table.d.ts.map +1 -1
  637. package/build/src/database/query/index.d.ts +92 -107
  638. package/build/src/database/query/index.d.ts.map +1 -1
  639. package/build/src/database/query/index.js +4 -4
  640. package/build/src/database/query/insert-base.d.ts +18 -18
  641. package/build/src/database/query/insert-base.d.ts.map +1 -1
  642. package/build/src/database/query/insert-base.js +5 -5
  643. package/build/src/database/query/join-base.d.ts +1 -1
  644. package/build/src/database/query/join-base.d.ts.map +1 -1
  645. package/build/src/database/query/join-object.d.ts +9 -15
  646. package/build/src/database/query/join-object.d.ts.map +1 -1
  647. package/build/src/database/query/join-plain.d.ts +2 -2
  648. package/build/src/database/query/join-plain.d.ts.map +1 -1
  649. package/build/src/database/query/join-tracker.d.ts +3 -3
  650. package/build/src/database/query/join-tracker.d.ts.map +1 -1
  651. package/build/src/database/query/model-class-query.d.ts +39 -36
  652. package/build/src/database/query/model-class-query.d.ts.map +1 -1
  653. package/build/src/database/query/model-class-query.js +40 -40
  654. package/build/src/database/query/order-base.d.ts +1 -1
  655. package/build/src/database/query/order-base.d.ts.map +1 -1
  656. package/build/src/database/query/order-column.d.ts +19 -22
  657. package/build/src/database/query/order-column.d.ts.map +1 -1
  658. package/build/src/database/query/order-plain.d.ts +3 -3
  659. package/build/src/database/query/order-plain.d.ts.map +1 -1
  660. package/build/src/database/query/preloader/belongs-to.d.ts +5 -5
  661. package/build/src/database/query/preloader/belongs-to.d.ts.map +1 -1
  662. package/build/src/database/query/preloader/belongs-to.js +3 -3
  663. package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts +2 -1
  664. package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts.map +1 -1
  665. package/build/src/database/query/preloader/ensure-model-class-initialized.js +4 -3
  666. package/build/src/database/query/preloader/has-many.d.ts +6 -6
  667. package/build/src/database/query/preloader/has-many.d.ts.map +1 -1
  668. package/build/src/database/query/preloader/has-many.js +4 -4
  669. package/build/src/database/query/preloader/has-one.d.ts +5 -5
  670. package/build/src/database/query/preloader/has-one.d.ts.map +1 -1
  671. package/build/src/database/query/preloader/has-one.js +2 -2
  672. package/build/src/database/query/preloader/query-for-model.d.ts.map +1 -1
  673. package/build/src/database/query/preloader/selection.d.ts +6 -6
  674. package/build/src/database/query/preloader/selection.d.ts.map +1 -1
  675. package/build/src/database/query/preloader.d.ts +8 -8
  676. package/build/src/database/query/preloader.d.ts.map +1 -1
  677. package/build/src/database/query/preloader.js +9 -3
  678. package/build/src/database/query/query-data.d.ts +43 -55
  679. package/build/src/database/query/query-data.d.ts.map +1 -1
  680. package/build/src/database/query/query-data.js +8 -8
  681. package/build/src/database/query/remove-index-base.d.ts +21 -19
  682. package/build/src/database/query/remove-index-base.d.ts.map +1 -1
  683. package/build/src/database/query/select-base.d.ts +1 -1
  684. package/build/src/database/query/select-base.d.ts.map +1 -1
  685. package/build/src/database/query/select-plain.d.ts +3 -2
  686. package/build/src/database/query/select-plain.d.ts.map +1 -1
  687. package/build/src/database/query/select-table-and-column.d.ts +4 -3
  688. package/build/src/database/query/select-table-and-column.d.ts.map +1 -1
  689. package/build/src/database/query/update-base.d.ts +10 -10
  690. package/build/src/database/query/update-base.d.ts.map +1 -1
  691. package/build/src/database/query/update-base.js +4 -4
  692. package/build/src/database/query/upsert-base.d.ts +9 -9
  693. package/build/src/database/query/upsert-base.d.ts.map +1 -1
  694. package/build/src/database/query/upsert-base.js +3 -3
  695. package/build/src/database/query/where-base.d.ts +1 -1
  696. package/build/src/database/query/where-base.d.ts.map +1 -1
  697. package/build/src/database/query/where-combinator.d.ts +9 -4
  698. package/build/src/database/query/where-combinator.d.ts.map +1 -1
  699. package/build/src/database/query/where-hash.d.ts +11 -9
  700. package/build/src/database/query/where-hash.d.ts.map +1 -1
  701. package/build/src/database/query/where-model-class-hash.d.ts +28 -26
  702. package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
  703. package/build/src/database/query/where-model-class-hash.js +14 -14
  704. package/build/src/database/query/where-not.d.ts +8 -3
  705. package/build/src/database/query/where-not.d.ts.map +1 -1
  706. package/build/src/database/query/where-plain.d.ts +4 -3
  707. package/build/src/database/query/where-plain.d.ts.map +1 -1
  708. package/build/src/database/query/with-count.d.ts +22 -28
  709. package/build/src/database/query/with-count.d.ts.map +1 -1
  710. package/build/src/database/query/with-count.js +5 -5
  711. package/build/src/database/query-aborted-error.d.ts +5 -5
  712. package/build/src/database/query-aborted-error.d.ts.map +1 -1
  713. package/build/src/database/query-parser/base-query-parser.d.ts +3 -3
  714. package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
  715. package/build/src/database/query-parser/from-parser.d.ts +2 -2
  716. package/build/src/database/query-parser/from-parser.d.ts.map +1 -1
  717. package/build/src/database/query-parser/group-parser.d.ts +2 -2
  718. package/build/src/database/query-parser/group-parser.d.ts.map +1 -1
  719. package/build/src/database/query-parser/joins-parser.d.ts +3 -3
  720. package/build/src/database/query-parser/joins-parser.d.ts.map +1 -1
  721. package/build/src/database/query-parser/limit-parser.d.ts +2 -2
  722. package/build/src/database/query-parser/limit-parser.d.ts.map +1 -1
  723. package/build/src/database/query-parser/options.d.ts +31 -34
  724. package/build/src/database/query-parser/options.d.ts.map +1 -1
  725. package/build/src/database/query-parser/options.js +3 -3
  726. package/build/src/database/query-parser/order-parser.d.ts +2 -2
  727. package/build/src/database/query-parser/order-parser.d.ts.map +1 -1
  728. package/build/src/database/query-parser/select-parser.d.ts +2 -2
  729. package/build/src/database/query-parser/select-parser.d.ts.map +1 -1
  730. package/build/src/database/query-parser/select-parser.js +2 -2
  731. package/build/src/database/query-parser/where-parser.d.ts +2 -2
  732. package/build/src/database/query-parser/where-parser.d.ts.map +1 -1
  733. package/build/src/database/record/acts-as-list.d.ts.map +1 -1
  734. package/build/src/database/record/acts-as-list.js +3 -3
  735. package/build/src/database/record/attachments/attachment-record.d.ts +7 -3
  736. package/build/src/database/record/attachments/attachment-record.d.ts.map +1 -1
  737. package/build/src/database/record/attachments/download.d.ts +9 -9
  738. package/build/src/database/record/attachments/download.d.ts.map +1 -1
  739. package/build/src/database/record/attachments/handle.d.ts +12 -12
  740. package/build/src/database/record/attachments/handle.d.ts.map +1 -1
  741. package/build/src/database/record/attachments/handle.js +7 -7
  742. package/build/src/database/record/attachments/normalize-input.d.ts +16 -22
  743. package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
  744. package/build/src/database/record/attachments/normalize-input.js +12 -12
  745. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +4 -4
  746. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
  747. package/build/src/database/record/attachments/storage-drivers/filesystem.js +2 -2
  748. package/build/src/database/record/attachments/storage-drivers/native.d.ts +12 -12
  749. package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
  750. package/build/src/database/record/attachments/storage-drivers/native.js +6 -6
  751. package/build/src/database/record/attachments/storage-drivers/s3.d.ts +17 -17
  752. package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
  753. package/build/src/database/record/attachments/storage-drivers/s3.js +11 -11
  754. package/build/src/database/record/attachments/store.d.ts +38 -41
  755. package/build/src/database/record/attachments/store.d.ts.map +1 -1
  756. package/build/src/database/record/attachments/store.js +24 -21
  757. package/build/src/database/record/auditing.d.ts +67 -87
  758. package/build/src/database/record/auditing.d.ts.map +1 -1
  759. package/build/src/database/record/auditing.js +109 -30
  760. package/build/src/database/record/counter-cache-magnitude.d.ts +15 -35
  761. package/build/src/database/record/counter-cache-magnitude.d.ts.map +1 -1
  762. package/build/src/database/record/counter-cache-magnitude.js +12 -12
  763. package/build/src/database/record/index.d.ts +2390 -488
  764. package/build/src/database/record/index.d.ts.map +1 -1
  765. package/build/src/database/record/index.js +222 -172
  766. package/build/src/database/record/instance-relationships/base.d.ts +20 -23
  767. package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
  768. package/build/src/database/record/instance-relationships/base.js +5 -5
  769. package/build/src/database/record/instance-relationships/belongs-to.d.ts +9 -1
  770. package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
  771. package/build/src/database/record/instance-relationships/belongs-to.js +2 -2
  772. package/build/src/database/record/instance-relationships/has-many.d.ts +15 -3
  773. package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
  774. package/build/src/database/record/instance-relationships/has-many.js +4 -4
  775. package/build/src/database/record/instance-relationships/has-one.d.ts +19 -1
  776. package/build/src/database/record/instance-relationships/has-one.d.ts.map +1 -1
  777. package/build/src/database/record/instance-relationships/has-one.js +2 -2
  778. package/build/src/database/record/record-not-found-error.d.ts.map +1 -1
  779. package/build/src/database/record/relationships/base.d.ts +83 -71
  780. package/build/src/database/record/relationships/base.d.ts.map +1 -1
  781. package/build/src/database/record/relationships/base.js +21 -1
  782. package/build/src/database/record/relationships/belongs-to.d.ts +11 -1
  783. package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
  784. package/build/src/database/record/relationships/has-many.d.ts +11 -1
  785. package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
  786. package/build/src/database/record/relationships/has-one.d.ts +11 -1
  787. package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
  788. package/build/src/database/record/state-machine.d.ts +20 -29
  789. package/build/src/database/record/state-machine.d.ts.map +1 -1
  790. package/build/src/database/record/state-machine.js +7 -7
  791. package/build/src/database/record/user-module.d.ts +1 -1
  792. package/build/src/database/record/user-module.d.ts.map +1 -1
  793. package/build/src/database/record/validation-messages.d.ts +19 -22
  794. package/build/src/database/record/validation-messages.d.ts.map +1 -1
  795. package/build/src/database/record/validators/base.d.ts +4 -4
  796. package/build/src/database/record/validators/base.d.ts.map +1 -1
  797. package/build/src/database/record/validators/base.js +2 -2
  798. package/build/src/database/record/validators/format.d.ts +12 -1
  799. package/build/src/database/record/validators/format.d.ts.map +1 -1
  800. package/build/src/database/record/validators/length.d.ts +14 -1
  801. package/build/src/database/record/validators/length.d.ts.map +1 -1
  802. package/build/src/database/record/validators/presence.d.ts +11 -1
  803. package/build/src/database/record/validators/presence.d.ts.map +1 -1
  804. package/build/src/database/record/validators/uniqueness.d.ts +12 -1
  805. package/build/src/database/record/validators/uniqueness.d.ts.map +1 -1
  806. package/build/src/database/record-changes.d.ts +7 -18
  807. package/build/src/database/record-changes.d.ts.map +1 -1
  808. package/build/src/database/structure-sql-loader.d.ts +2 -2
  809. package/build/src/database/structure-sql-loader.d.ts.map +1 -1
  810. package/build/src/database/structure-sql-loader.js +4 -4
  811. package/build/src/database/table-data/index.d.ts +21 -24
  812. package/build/src/database/table-data/index.d.ts.map +1 -1
  813. package/build/src/database/table-data/table-column.d.ts +74 -80
  814. package/build/src/database/table-data/table-column.d.ts.map +1 -1
  815. package/build/src/database/table-data/table-column.js +4 -4
  816. package/build/src/database/table-data/table-foreign-key.d.ts +10 -10
  817. package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
  818. package/build/src/database/table-data/table-index.d.ts +12 -15
  819. package/build/src/database/table-data/table-index.d.ts.map +1 -1
  820. package/build/src/database/table-data/table-reference.d.ts +2 -2
  821. package/build/src/database/table-data/table-reference.d.ts.map +1 -1
  822. package/build/src/database/tenants/data-copier.d.ts +7 -7
  823. package/build/src/database/tenants/data-copier.d.ts.map +1 -1
  824. package/build/src/database/tenants/schema-cloner.d.ts +3 -3
  825. package/build/src/database/tenants/schema-cloner.d.ts.map +1 -1
  826. package/build/src/database/tenants/tenant-table-plan.d.ts +20 -14
  827. package/build/src/database/tenants/tenant-table-plan.d.ts.map +1 -1
  828. package/build/src/database/tenants/tenant-table-plan.js +17 -1
  829. package/build/src/database/use-database.d.ts.map +1 -1
  830. package/build/src/database/use-live-query.d.ts +17 -29
  831. package/build/src/database/use-live-query.d.ts.map +1 -1
  832. package/build/src/database/use-live-query.js +4 -4
  833. package/build/src/environment-handlers/base.d.ts +112 -103
  834. package/build/src/environment-handlers/base.d.ts.map +1 -1
  835. package/build/src/environment-handlers/base.js +54 -38
  836. package/build/src/environment-handlers/browser.d.ts +63 -56
  837. package/build/src/environment-handlers/browser.d.ts.map +1 -1
  838. package/build/src/environment-handlers/browser.js +2 -2
  839. package/build/src/environment-handlers/node/attachment-path-source.d.ts +9 -9
  840. package/build/src/environment-handlers/node/attachment-path-source.d.ts.map +1 -1
  841. package/build/src/environment-handlers/node/cli/commands/background-jobs-main.d.ts +1 -1
  842. package/build/src/environment-handlers/node/cli/commands/background-jobs-main.d.ts.map +1 -1
  843. package/build/src/environment-handlers/node/cli/commands/background-jobs-runner.d.ts +1 -1
  844. package/build/src/environment-handlers/node/cli/commands/background-jobs-runner.d.ts.map +1 -1
  845. package/build/src/environment-handlers/node/cli/commands/background-jobs-worker.d.ts +1 -1
  846. package/build/src/environment-handlers/node/cli/commands/background-jobs-worker.d.ts.map +1 -1
  847. package/build/src/environment-handlers/node/cli/commands/beacon.d.ts +1 -1
  848. package/build/src/environment-handlers/node/cli/commands/beacon.d.ts.map +1 -1
  849. package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts +7 -10
  850. package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts.map +1 -1
  851. package/build/src/environment-handlers/node/cli/commands/console.d.ts +9 -7
  852. package/build/src/environment-handlers/node/cli/commands/console.d.ts.map +1 -1
  853. package/build/src/environment-handlers/node/cli/commands/console.js +5 -5
  854. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts +1 -1
  855. package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts.map +1 -1
  856. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts +1 -1
  857. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts.map +1 -1
  858. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts +7 -5
  859. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts.map +1 -1
  860. package/build/src/environment-handlers/node/cli/commands/db/seed.js +3 -3
  861. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts +4 -7
  862. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
  863. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts +1 -1
  864. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts.map +1 -1
  865. package/build/src/environment-handlers/node/cli/commands/generate/base-models.js +2 -2
  866. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +93 -108
  867. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
  868. package/build/src/environment-handlers/node/cli/commands/generate/generated-file-banner.d.ts.map +1 -1
  869. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts +9 -12
  870. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
  871. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts +8 -11
  872. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
  873. package/build/src/environment-handlers/node/cli/commands/init.d.ts +7 -9
  874. package/build/src/environment-handlers/node/cli/commands/init.d.ts.map +1 -1
  875. package/build/src/environment-handlers/node/cli/commands/lint/relationships.d.ts +7 -7
  876. package/build/src/environment-handlers/node/cli/commands/lint/relationships.d.ts.map +1 -1
  877. package/build/src/environment-handlers/node/cli/commands/routes.d.ts +1 -1
  878. package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
  879. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts +7 -5
  880. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts.map +1 -1
  881. package/build/src/environment-handlers/node/cli/commands/run-script.js +3 -3
  882. package/build/src/environment-handlers/node/cli/commands/runner.d.ts +9 -7
  883. package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
  884. package/build/src/environment-handlers/node/cli/commands/runner.js +3 -3
  885. package/build/src/environment-handlers/node/cli/commands/server.d.ts +24 -30
  886. package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
  887. package/build/src/environment-handlers/node/cli/commands/server.js +2 -2
  888. package/build/src/environment-handlers/node/cli/commands/test.d.ts +5 -5
  889. package/build/src/environment-handlers/node/cli/commands/test.d.ts.map +1 -1
  890. package/build/src/environment-handlers/node/source-peer-package.d.ts +5 -7
  891. package/build/src/environment-handlers/node/source-peer-package.d.ts.map +1 -1
  892. package/build/src/environment-handlers/node/source-peer-package.js +1 -1
  893. package/build/src/environment-handlers/node.d.ts +362 -13
  894. package/build/src/environment-handlers/node.d.ts.map +1 -1
  895. package/build/src/environment-handlers/node.js +37 -37
  896. package/build/src/error-logger.d.ts +3 -3
  897. package/build/src/error-logger.d.ts.map +1 -1
  898. package/build/src/error-logger.js +3 -3
  899. package/build/src/error-reporting/request-details.d.ts +1 -1
  900. package/build/src/error-reporting/request-details.d.ts.map +1 -1
  901. package/build/src/error-reporting/request-details.js +33 -33
  902. package/build/src/frontend-model-controller.d.ts +209 -223
  903. package/build/src/frontend-model-controller.d.ts.map +1 -1
  904. package/build/src/frontend-model-controller.js +145 -145
  905. package/build/src/frontend-model-resource/base-resource.d.ts +315 -365
  906. package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
  907. package/build/src/frontend-model-resource/base-resource.js +45 -45
  908. package/build/src/frontend-model-resource/velocious-attachment-resource.d.ts +11 -5
  909. package/build/src/frontend-model-resource/velocious-attachment-resource.d.ts.map +1 -1
  910. package/build/src/frontend-model-resource/velocious-attachment-resource.js +2 -2
  911. package/build/src/frontend-models/base.d.ts +632 -726
  912. package/build/src/frontend-models/base.d.ts.map +1 -1
  913. package/build/src/frontend-models/base.js +138 -143
  914. package/build/src/frontend-models/built-in-resources.d.ts +2 -2
  915. package/build/src/frontend-models/built-in-resources.d.ts.map +1 -1
  916. package/build/src/frontend-models/clear-pending-debounced-callback.d.ts +2 -2
  917. package/build/src/frontend-models/clear-pending-debounced-callback.d.ts.map +1 -1
  918. package/build/src/frontend-models/clear-pending-debounced-callback.js +3 -3
  919. package/build/src/frontend-models/event-hook-models.d.ts +3 -6
  920. package/build/src/frontend-models/event-hook-models.d.ts.map +1 -1
  921. package/build/src/frontend-models/model-registry.d.ts +5 -5
  922. package/build/src/frontend-models/model-registry.d.ts.map +1 -1
  923. package/build/src/frontend-models/model-registry.js +5 -5
  924. package/build/src/frontend-models/outgoing-event-buffer.d.ts +20 -17
  925. package/build/src/frontend-models/outgoing-event-buffer.d.ts.map +1 -1
  926. package/build/src/frontend-models/outgoing-event-buffer.js +2 -2
  927. package/build/src/frontend-models/preloader.d.ts.map +1 -1
  928. package/build/src/frontend-models/preloader.js +2 -2
  929. package/build/src/frontend-models/query.d.ts +286 -331
  930. package/build/src/frontend-models/query.d.ts.map +1 -1
  931. package/build/src/frontend-models/query.js +61 -61
  932. package/build/src/frontend-models/resource-config-validation.d.ts +2 -2
  933. package/build/src/frontend-models/resource-config-validation.d.ts.map +1 -1
  934. package/build/src/frontend-models/resource-definition.d.ts +30 -33
  935. package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
  936. package/build/src/frontend-models/resource-definition.js +10 -10
  937. package/build/src/frontend-models/transport-deadline.d.ts.map +1 -1
  938. package/build/src/frontend-models/transport-serialization.d.ts +26 -32
  939. package/build/src/frontend-models/transport-serialization.d.ts.map +1 -1
  940. package/build/src/frontend-models/transport-serialization.js +28 -28
  941. package/build/src/frontend-models/use-created-event.d.ts +4 -4
  942. package/build/src/frontend-models/use-created-event.d.ts.map +1 -1
  943. package/build/src/frontend-models/use-destroyed-event.d.ts +8 -29
  944. package/build/src/frontend-models/use-destroyed-event.d.ts.map +1 -1
  945. package/build/src/frontend-models/use-model-class-event.d.ts +9 -33
  946. package/build/src/frontend-models/use-model-class-event.d.ts.map +1 -1
  947. package/build/src/frontend-models/use-updated-event.d.ts +8 -29
  948. package/build/src/frontend-models/use-updated-event.d.ts.map +1 -1
  949. package/build/src/frontend-models/websocket-channel.d.ts +30 -34
  950. package/build/src/frontend-models/websocket-channel.d.ts.map +1 -1
  951. package/build/src/frontend-models/websocket-channel.js +5 -5
  952. package/build/src/frontend-models/websocket-publishers.d.ts +4 -4
  953. package/build/src/frontend-models/websocket-publishers.d.ts.map +1 -1
  954. package/build/src/frontend-models/websocket-publishers.js +2 -2
  955. package/build/src/http-client/header.d.ts +2 -2
  956. package/build/src/http-client/header.d.ts.map +1 -1
  957. package/build/src/http-client/index.d.ts +23 -23
  958. package/build/src/http-client/index.d.ts.map +1 -1
  959. package/build/src/http-client/request.d.ts +9 -9
  960. package/build/src/http-client/request.d.ts.map +1 -1
  961. package/build/src/http-client/request.js +2 -2
  962. package/build/src/http-client/response.d.ts +12 -12
  963. package/build/src/http-client/response.d.ts.map +1 -1
  964. package/build/src/http-client/response.js +2 -2
  965. package/build/src/http-client/websocket-client.d.ts +20 -4
  966. package/build/src/http-client/websocket-client.d.ts.map +1 -1
  967. package/build/src/http-server/client/index.d.ts +26 -26
  968. package/build/src/http-server/client/index.d.ts.map +1 -1
  969. package/build/src/http-server/client/index.js +5 -5
  970. package/build/src/http-server/client/params-to-object.d.ts +11 -11
  971. package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
  972. package/build/src/http-server/client/params-to-object.js +17 -17
  973. package/build/src/http-server/client/request-buffer/form-data-part.d.ts +9 -9
  974. package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
  975. package/build/src/http-server/client/request-buffer/header.d.ts +3 -3
  976. package/build/src/http-server/client/request-buffer/header.d.ts.map +1 -1
  977. package/build/src/http-server/client/request-buffer/index.d.ts +28 -30
  978. package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
  979. package/build/src/http-server/client/request-buffer/index.js +5 -3
  980. package/build/src/http-server/client/request-parser.d.ts +11 -11
  981. package/build/src/http-server/client/request-parser.d.ts.map +1 -1
  982. package/build/src/http-server/client/request-parser.js +3 -3
  983. package/build/src/http-server/client/request-runner.d.ts +11 -11
  984. package/build/src/http-server/client/request-runner.d.ts.map +1 -1
  985. package/build/src/http-server/client/request-runner.js +3 -3
  986. package/build/src/http-server/client/request-timing.d.ts +5 -11
  987. package/build/src/http-server/client/request-timing.d.ts.map +1 -1
  988. package/build/src/http-server/client/request.d.ts +10 -10
  989. package/build/src/http-server/client/request.d.ts.map +1 -1
  990. package/build/src/http-server/client/request.js +3 -3
  991. package/build/src/http-server/client/response-compression.d.ts +5 -5
  992. package/build/src/http-server/client/response-compression.d.ts.map +1 -1
  993. package/build/src/http-server/client/response.d.ts +13 -13
  994. package/build/src/http-server/client/response.d.ts.map +1 -1
  995. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts +8 -2
  996. package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts.map +1 -1
  997. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts +8 -2
  998. package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts.map +1 -1
  999. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +4 -4
  1000. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
  1001. package/build/src/http-server/client/websocket-request.d.ts +26 -26
  1002. package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
  1003. package/build/src/http-server/client/websocket-request.js +7 -7
  1004. package/build/src/http-server/client/websocket-session.d.ts +105 -108
  1005. package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
  1006. package/build/src/http-server/client/websocket-session.js +29 -29
  1007. package/build/src/http-server/client-delivery-queue.d.ts +30 -30
  1008. package/build/src/http-server/client-delivery-queue.d.ts.map +1 -1
  1009. package/build/src/http-server/cookie.d.ts +80 -108
  1010. package/build/src/http-server/cookie.d.ts.map +1 -1
  1011. package/build/src/http-server/cookie.js +3 -3
  1012. package/build/src/http-server/development-reloader.d.ts +24 -24
  1013. package/build/src/http-server/development-reloader.d.ts.map +1 -1
  1014. package/build/src/http-server/development-reloader.js +2 -2
  1015. package/build/src/http-server/index.d.ts +66 -72
  1016. package/build/src/http-server/index.d.ts.map +1 -1
  1017. package/build/src/http-server/index.js +6 -6
  1018. package/build/src/http-server/remote-address.d.ts.map +1 -1
  1019. package/build/src/http-server/remote-address.js +2 -2
  1020. package/build/src/http-server/server-client.d.ts +9 -9
  1021. package/build/src/http-server/server-client.d.ts.map +1 -1
  1022. package/build/src/http-server/server-lock.d.ts +11 -11
  1023. package/build/src/http-server/server-lock.d.ts.map +1 -1
  1024. package/build/src/http-server/server-lock.js +5 -5
  1025. package/build/src/http-server/websocket-channel-subscribers.d.ts +11 -10
  1026. package/build/src/http-server/websocket-channel-subscribers.d.ts.map +1 -1
  1027. package/build/src/http-server/websocket-channel-subscribers.js +6 -6
  1028. package/build/src/http-server/websocket-channel.d.ts +8 -14
  1029. package/build/src/http-server/websocket-channel.d.ts.map +1 -1
  1030. package/build/src/http-server/websocket-channel.js +2 -2
  1031. package/build/src/http-server/websocket-connection.d.ts +10 -10
  1032. package/build/src/http-server/websocket-connection.d.ts.map +1 -1
  1033. package/build/src/http-server/websocket-connection.js +4 -4
  1034. package/build/src/http-server/websocket-event-log-store.d.ts +58 -64
  1035. package/build/src/http-server/websocket-event-log-store.d.ts.map +1 -1
  1036. package/build/src/http-server/websocket-event-log-store.js +10 -10
  1037. package/build/src/http-server/websocket-events-host.d.ts +17 -16
  1038. package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
  1039. package/build/src/http-server/websocket-events-host.js +8 -8
  1040. package/build/src/http-server/websocket-events.d.ts +9 -9
  1041. package/build/src/http-server/websocket-events.d.ts.map +1 -1
  1042. package/build/src/http-server/websocket-events.js +5 -5
  1043. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts +2 -2
  1044. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts.map +1 -1
  1045. package/build/src/http-server/worker-handler/channel-subscriber-dispatch.js +2 -2
  1046. package/build/src/http-server/worker-handler/in-process.d.ts +22 -22
  1047. package/build/src/http-server/worker-handler/in-process.d.ts.map +1 -1
  1048. package/build/src/http-server/worker-handler/in-process.js +6 -6
  1049. package/build/src/http-server/worker-handler/index.d.ts +50 -50
  1050. package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
  1051. package/build/src/http-server/worker-handler/index.js +11 -11
  1052. package/build/src/http-server/worker-handler/worker-thread.d.ts +61 -61
  1053. package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
  1054. package/build/src/http-server/worker-handler/worker-thread.js +9 -9
  1055. package/build/src/initializer.d.ts +2 -2
  1056. package/build/src/initializer.d.ts.map +1 -1
  1057. package/build/src/jobs/mail-delivery.d.ts +7 -2
  1058. package/build/src/jobs/mail-delivery.d.ts.map +1 -1
  1059. package/build/src/jobs/prune-terminal-background-jobs.d.ts +15 -2
  1060. package/build/src/jobs/prune-terminal-background-jobs.d.ts.map +1 -1
  1061. package/build/src/jobs/prune-terminal-background-jobs.js +1 -1
  1062. package/build/src/logger/base-logger.d.ts.map +1 -1
  1063. package/build/src/logger/base-logger.js +2 -2
  1064. package/build/src/logger/console-logger.d.ts +3 -3
  1065. package/build/src/logger/console-logger.d.ts.map +1 -1
  1066. package/build/src/logger/file-logger.d.ts +4 -4
  1067. package/build/src/logger/file-logger.d.ts.map +1 -1
  1068. package/build/src/logger/outputs/array-output.d.ts +9 -12
  1069. package/build/src/logger/outputs/array-output.d.ts.map +1 -1
  1070. package/build/src/logger/outputs/console-output.d.ts +1 -4
  1071. package/build/src/logger/outputs/console-output.d.ts.map +1 -1
  1072. package/build/src/logger/outputs/file-output.d.ts +13 -16
  1073. package/build/src/logger/outputs/file-output.d.ts.map +1 -1
  1074. package/build/src/logger/outputs/stdout-output.d.ts +1 -4
  1075. package/build/src/logger/outputs/stdout-output.d.ts.map +1 -1
  1076. package/build/src/logger.d.ts +30 -29
  1077. package/build/src/logger.d.ts.map +1 -1
  1078. package/build/src/logger.js +13 -13
  1079. package/build/src/mailer/backends/smtp.d.ts +8 -11
  1080. package/build/src/mailer/backends/smtp.d.ts.map +1 -1
  1081. package/build/src/mailer/backends/smtp.js +4 -4
  1082. package/build/src/mailer/base.d.ts +61 -61
  1083. package/build/src/mailer/base.d.ts.map +1 -1
  1084. package/build/src/mailer/base.js +15 -15
  1085. package/build/src/mailer/delivery.d.ts +16 -16
  1086. package/build/src/mailer/delivery.d.ts.map +1 -1
  1087. package/build/src/mailer/delivery.js +4 -4
  1088. package/build/src/mailer/index.d.ts +8 -13
  1089. package/build/src/mailer/index.d.ts.map +1 -1
  1090. package/build/src/mailer/index.js +2 -2
  1091. package/build/src/mailer.d.ts +9 -7
  1092. package/build/src/mailer.d.ts.map +1 -1
  1093. package/build/src/mailer.js +2 -2
  1094. package/build/src/packages/velocious-package.d.ts +5 -5
  1095. package/build/src/packages/velocious-package.d.ts.map +1 -1
  1096. package/build/src/plugins/sqljs-wasm-route-controller.d.ts +1 -1
  1097. package/build/src/plugins/sqljs-wasm-route-controller.d.ts.map +1 -1
  1098. package/build/src/plugins/sqljs-wasm-route-controller.js +2 -2
  1099. package/build/src/plugins/sqljs-wasm-route.d.ts +14 -20
  1100. package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
  1101. package/build/src/plugins/sqljs-wasm-route.js +1 -1
  1102. package/build/src/record-payload-values.d.ts +14 -14
  1103. package/build/src/record-payload-values.d.ts.map +1 -1
  1104. package/build/src/record-payload-values.js +4 -4
  1105. package/build/src/routes/app-routes.d.ts.map +1 -1
  1106. package/build/src/routes/base-route.d.ts +11 -10
  1107. package/build/src/routes/base-route.d.ts.map +1 -1
  1108. package/build/src/routes/base-route.js +6 -6
  1109. package/build/src/routes/basic-route.d.ts +36 -3
  1110. package/build/src/routes/basic-route.d.ts.map +1 -1
  1111. package/build/src/routes/basic-route.js +5 -5
  1112. package/build/src/routes/built-in/api-manifest/controller.d.ts +1 -1
  1113. package/build/src/routes/built-in/api-manifest/controller.d.ts.map +1 -1
  1114. package/build/src/routes/built-in/debug/controller.d.ts +1 -1
  1115. package/build/src/routes/built-in/debug/controller.d.ts.map +1 -1
  1116. package/build/src/routes/built-in/errors/controller.d.ts +1 -1
  1117. package/build/src/routes/built-in/errors/controller.d.ts.map +1 -1
  1118. package/build/src/routes/get-route.d.ts +19 -4
  1119. package/build/src/routes/get-route.d.ts.map +1 -1
  1120. package/build/src/routes/get-route.js +3 -3
  1121. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts +1 -1
  1122. package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts.map +1 -1
  1123. package/build/src/routes/hooks/frontend-model-command-route-hook.js +2 -2
  1124. package/build/src/routes/index.d.ts +5 -5
  1125. package/build/src/routes/index.d.ts.map +1 -1
  1126. package/build/src/routes/index.js +4 -4
  1127. package/build/src/routes/namespace-route.d.ts +19 -4
  1128. package/build/src/routes/namespace-route.d.ts.map +1 -1
  1129. package/build/src/routes/namespace-route.js +2 -2
  1130. package/build/src/routes/plugin-routes.d.ts +16 -19
  1131. package/build/src/routes/plugin-routes.d.ts.map +1 -1
  1132. package/build/src/routes/plugin-routes.js +2 -2
  1133. package/build/src/routes/post-route.d.ts +19 -4
  1134. package/build/src/routes/post-route.d.ts.map +1 -1
  1135. package/build/src/routes/post-route.js +3 -3
  1136. package/build/src/routes/resolver.d.ts +16 -16
  1137. package/build/src/routes/resolver.d.ts.map +1 -1
  1138. package/build/src/routes/resolver.js +6 -6
  1139. package/build/src/routes/resource-route.d.ts +23 -8
  1140. package/build/src/routes/resource-route.d.ts.map +1 -1
  1141. package/build/src/routes/resource-route.js +2 -2
  1142. package/build/src/routes/root-route.d.ts +1 -1
  1143. package/build/src/routes/root-route.d.ts.map +1 -1
  1144. package/build/src/sync/conflict-strategy.d.ts +50 -35
  1145. package/build/src/sync/conflict-strategy.d.ts.map +1 -1
  1146. package/build/src/sync/conflict-strategy.js +2 -2
  1147. package/build/src/sync/device-identity.d.ts +109 -79
  1148. package/build/src/sync/device-identity.d.ts.map +1 -1
  1149. package/build/src/sync/local-mutation-log.d.ts +115 -92
  1150. package/build/src/sync/local-mutation-log.d.ts.map +1 -1
  1151. package/build/src/sync/offline-grant.d.ts +80 -63
  1152. package/build/src/sync/offline-grant.d.ts.map +1 -1
  1153. package/build/src/sync/peer-mutation-bundle.d.ts +33 -39
  1154. package/build/src/sync/peer-mutation-bundle.d.ts.map +1 -1
  1155. package/build/src/sync/query-scope.d.ts +3 -3
  1156. package/build/src/sync/query-scope.d.ts.map +1 -1
  1157. package/build/src/sync/query-scope.js +8 -8
  1158. package/build/src/sync/server-change-feed.d.ts +129 -129
  1159. package/build/src/sync/server-change-feed.d.ts.map +1 -1
  1160. package/build/src/sync/server-change-feed.js +14 -14
  1161. package/build/src/sync/server-sequence-allocator.d.ts +36 -36
  1162. package/build/src/sync/server-sequence-allocator.d.ts.map +1 -1
  1163. package/build/src/sync/server-sequence-allocator.js +6 -6
  1164. package/build/src/sync/signed-sync-envelope-replay-service.d.ts +60 -48
  1165. package/build/src/sync/signed-sync-envelope-replay-service.d.ts.map +1 -1
  1166. package/build/src/sync/signed-sync-envelope-replay-service.js +21 -21
  1167. package/build/src/sync/stable-json.d.ts +2 -2
  1168. package/build/src/sync/stable-json.d.ts.map +1 -1
  1169. package/build/src/sync/stable-json.js +5 -5
  1170. package/build/src/sync/sync-api-client-types.d.ts +98 -25
  1171. package/build/src/sync/sync-api-client-types.d.ts.map +1 -1
  1172. package/build/src/sync/sync-api-client-types.js +73 -1
  1173. package/build/src/sync/sync-api-client.d.ts +71 -71
  1174. package/build/src/sync/sync-api-client.d.ts.map +1 -1
  1175. package/build/src/sync/sync-api-client.js +30 -30
  1176. package/build/src/sync/sync-api-controller.d.ts +23 -23
  1177. package/build/src/sync/sync-api-controller.d.ts.map +1 -1
  1178. package/build/src/sync/sync-change-fanout.d.ts +32 -38
  1179. package/build/src/sync/sync-change-fanout.d.ts.map +1 -1
  1180. package/build/src/sync/sync-change-fanout.js +7 -7
  1181. package/build/src/sync/sync-channel-name.d.ts +1 -1
  1182. package/build/src/sync/sync-channel-name.d.ts.map +1 -1
  1183. package/build/src/sync/sync-client-registry.d.ts +4 -4
  1184. package/build/src/sync/sync-client-registry.d.ts.map +1 -1
  1185. package/build/src/sync/sync-client-registry.js +4 -4
  1186. package/build/src/sync/sync-client-types.d.ts +130 -82
  1187. package/build/src/sync/sync-client-types.d.ts.map +1 -1
  1188. package/build/src/sync/sync-client-types.js +89 -1
  1189. package/build/src/sync/sync-client.d.ts +76 -76
  1190. package/build/src/sync/sync-client.d.ts.map +1 -1
  1191. package/build/src/sync/sync-client.js +19 -19
  1192. package/build/src/sync/sync-envelope-replay-service.d.ts +266 -298
  1193. package/build/src/sync/sync-envelope-replay-service.d.ts.map +1 -1
  1194. package/build/src/sync/sync-envelope-replay-service.js +77 -77
  1195. package/build/src/sync/sync-model-change-feed-service.d.ts +23 -23
  1196. package/build/src/sync/sync-model-change-feed-service.d.ts.map +1 -1
  1197. package/build/src/sync/sync-model-change-feed-service.js +8 -8
  1198. package/build/src/sync/sync-publish-suppression.d.ts +5 -5
  1199. package/build/src/sync/sync-publish-suppression.d.ts.map +1 -1
  1200. package/build/src/sync/sync-publish-suppression.js +3 -3
  1201. package/build/src/sync/sync-publisher-types.d.ts +98 -55
  1202. package/build/src/sync/sync-publisher-types.d.ts.map +1 -1
  1203. package/build/src/sync/sync-publisher-types.js +75 -1
  1204. package/build/src/sync/sync-publisher.d.ts +43 -43
  1205. package/build/src/sync/sync-publisher.d.ts.map +1 -1
  1206. package/build/src/sync/sync-publisher.js +20 -20
  1207. package/build/src/sync/sync-realtime-bridge.d.ts +23 -23
  1208. package/build/src/sync/sync-realtime-bridge.d.ts.map +1 -1
  1209. package/build/src/sync/sync-realtime-bridge.js +9 -9
  1210. package/build/src/sync/sync-replay-upsert-applier.d.ts +70 -70
  1211. package/build/src/sync/sync-replay-upsert-applier.d.ts.map +1 -1
  1212. package/build/src/sync/sync-replay-upsert-applier.js +17 -17
  1213. package/build/src/sync/sync-resource-base.d.ts +52 -51
  1214. package/build/src/sync/sync-resource-base.d.ts.map +1 -1
  1215. package/build/src/sync/sync-resource-base.js +15 -15
  1216. package/build/src/sync/sync-scope-attributes.d.ts +2 -2
  1217. package/build/src/sync/sync-scope-attributes.d.ts.map +1 -1
  1218. package/build/src/sync/sync-scope-attributes.js +2 -2
  1219. package/build/src/sync/sync-scope-store.d.ts +36 -36
  1220. package/build/src/sync/sync-scope-store.d.ts.map +1 -1
  1221. package/build/src/sync/sync-scope-store.js +6 -6
  1222. package/build/src/sync/sync-websocket-channel.d.ts +11 -6
  1223. package/build/src/sync/sync-websocket-channel.d.ts.map +1 -1
  1224. package/build/src/sync/sync-websocket-channel.js +6 -6
  1225. package/build/src/tenants/default-tenant-database-provisioning.d.ts +4 -4
  1226. package/build/src/tenants/default-tenant-database-provisioning.d.ts.map +1 -1
  1227. package/build/src/tenants/default-tenant-database-provisioning.js +2 -2
  1228. package/build/src/tenants/tenant-aggregator.d.ts +81 -81
  1229. package/build/src/tenants/tenant-aggregator.d.ts.map +1 -1
  1230. package/build/src/tenants/tenant-aggregator.js +13 -13
  1231. package/build/src/tenants/tenant-handle.d.ts +64 -0
  1232. package/build/src/tenants/tenant-handle.d.ts.map +1 -0
  1233. package/build/src/tenants/tenant-handle.js +221 -0
  1234. package/build/src/tenants/tenant-iterator.d.ts +17 -17
  1235. package/build/src/tenants/tenant-iterator.d.ts.map +1 -1
  1236. package/build/src/tenants/tenant-iterator.js +7 -7
  1237. package/build/src/tenants/tenant-model-scope.d.ts +73 -0
  1238. package/build/src/tenants/tenant-model-scope.d.ts.map +1 -0
  1239. package/build/src/tenants/tenant-model-scope.js +115 -0
  1240. package/build/src/tenants/tenant.d.ts +16 -6
  1241. package/build/src/tenants/tenant.d.ts.map +1 -1
  1242. package/build/src/tenants/tenant.js +15 -3
  1243. package/build/src/testing/base-expect.d.ts.map +1 -1
  1244. package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts +19 -31
  1245. package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts.map +1 -1
  1246. package/build/src/testing/browser-test-app.js +6 -6
  1247. package/build/src/testing/expect-to-change.d.ts +9 -7
  1248. package/build/src/testing/expect-to-change.d.ts.map +1 -1
  1249. package/build/src/testing/expect-to-change.js +2 -2
  1250. package/build/src/testing/expect-utils.d.ts +30 -29
  1251. package/build/src/testing/expect-utils.d.ts.map +1 -1
  1252. package/build/src/testing/expect-utils.js +30 -30
  1253. package/build/src/testing/expect.d.ts +30 -30
  1254. package/build/src/testing/expect.d.ts.map +1 -1
  1255. package/build/src/testing/expect.js +19 -19
  1256. package/build/src/testing/factory/association-declaration.d.ts +16 -16
  1257. package/build/src/testing/factory/association-declaration.d.ts.map +1 -1
  1258. package/build/src/testing/factory/association-declaration.js +3 -3
  1259. package/build/src/testing/factory/declarations.d.ts +90 -115
  1260. package/build/src/testing/factory/declarations.d.ts.map +1 -1
  1261. package/build/src/testing/factory/declarations.js +6 -6
  1262. package/build/src/testing/factory/definition-builder.d.ts +72 -70
  1263. package/build/src/testing/factory/definition-builder.d.ts.map +1 -1
  1264. package/build/src/testing/factory/definition-builder.js +40 -40
  1265. package/build/src/testing/factory/errors.d.ts +30 -29
  1266. package/build/src/testing/factory/errors.d.ts.map +1 -1
  1267. package/build/src/testing/factory/evaluation-context.d.ts +29 -29
  1268. package/build/src/testing/factory/evaluation-context.d.ts.map +1 -1
  1269. package/build/src/testing/factory/evaluation-context.js +17 -17
  1270. package/build/src/testing/factory/events.d.ts +4 -5
  1271. package/build/src/testing/factory/events.d.ts.map +1 -1
  1272. package/build/src/testing/factory/factory-definition.d.ts +14 -14
  1273. package/build/src/testing/factory/factory-definition.d.ts.map +1 -1
  1274. package/build/src/testing/factory/factory-definition.js +3 -3
  1275. package/build/src/testing/factory/factory-registry.d.ts +56 -54
  1276. package/build/src/testing/factory/factory-registry.d.ts.map +1 -1
  1277. package/build/src/testing/factory/factory-registry.js +35 -35
  1278. package/build/src/testing/factory/factory-runner.d.ts +67 -73
  1279. package/build/src/testing/factory/factory-runner.d.ts.map +1 -1
  1280. package/build/src/testing/factory/factory-runner.js +9 -9
  1281. package/build/src/testing/factory/index.d.ts +7 -7
  1282. package/build/src/testing/factory/index.d.ts.map +1 -1
  1283. package/build/src/testing/factory/linter.d.ts +7 -7
  1284. package/build/src/testing/factory/linter.d.ts.map +1 -1
  1285. package/build/src/testing/factory/linter.js +3 -3
  1286. package/build/src/testing/factory/model-contract.d.ts +3 -3
  1287. package/build/src/testing/factory/model-contract.d.ts.map +1 -1
  1288. package/build/src/testing/factory/model-contract.js +4 -4
  1289. package/build/src/testing/factory/node/load-definitions.d.ts +2 -2
  1290. package/build/src/testing/factory/node/load-definitions.d.ts.map +1 -1
  1291. package/build/src/testing/factory/sequence.d.ts +19 -23
  1292. package/build/src/testing/factory/sequence.d.ts.map +1 -1
  1293. package/build/src/testing/factory/sequence.js +3 -3
  1294. package/build/src/testing/factory/strategies/attributes-for.d.ts +3 -3
  1295. package/build/src/testing/factory/strategies/attributes-for.d.ts.map +1 -1
  1296. package/build/src/testing/factory/strategies/attributes-for.js +2 -2
  1297. package/build/src/testing/factory/strategies/base.d.ts +32 -32
  1298. package/build/src/testing/factory/strategies/base.d.ts.map +1 -1
  1299. package/build/src/testing/factory/strategies/base.js +25 -25
  1300. package/build/src/testing/factory/strategies/build.d.ts +3 -3
  1301. package/build/src/testing/factory/strategies/build.d.ts.map +1 -1
  1302. package/build/src/testing/factory/strategies/build.js +3 -3
  1303. package/build/src/testing/factory/strategies/create.d.ts +6 -6
  1304. package/build/src/testing/factory/strategies/create.d.ts.map +1 -1
  1305. package/build/src/testing/factory/strategies/create.js +5 -5
  1306. package/build/src/testing/factory/trait-definition.d.ts +4 -4
  1307. package/build/src/testing/factory/trait-definition.d.ts.map +1 -1
  1308. package/build/src/testing/request-client.d.ts +19 -19
  1309. package/build/src/testing/request-client.d.ts.map +1 -1
  1310. package/build/src/testing/test-files-finder.d.ts +15 -15
  1311. package/build/src/testing/test-files-finder.d.ts.map +1 -1
  1312. package/build/src/testing/test-files-finder.js +2 -2
  1313. package/build/src/testing/test-filter-parser.d.ts +19 -12
  1314. package/build/src/testing/test-filter-parser.d.ts.map +1 -1
  1315. package/build/src/testing/test-runner.d.ts +204 -251
  1316. package/build/src/testing/test-runner.d.ts.map +1 -1
  1317. package/build/src/testing/test-runner.js +15 -15
  1318. package/build/src/testing/test-suite-splitter.d.ts +25 -31
  1319. package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
  1320. package/build/src/testing/test.d.ts +51 -55
  1321. package/build/src/testing/test.d.ts.map +1 -1
  1322. package/build/src/testing/test.js +20 -18
  1323. package/build/src/testing/wait-for-event.d.ts +25 -25
  1324. package/build/src/testing/wait-for-event.d.ts.map +1 -1
  1325. package/build/src/testing/wait-for-event.js +6 -6
  1326. package/build/src/time-zone.d.ts +3 -3
  1327. package/build/src/time-zone.d.ts.map +1 -1
  1328. package/build/src/utils/backtrace-cleaner-node.d.ts +35 -2
  1329. package/build/src/utils/backtrace-cleaner-node.d.ts.map +1 -1
  1330. package/build/src/utils/backtrace-cleaner-node.js +1 -1
  1331. package/build/src/utils/backtrace-cleaner.d.ts +33 -28
  1332. package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
  1333. package/build/src/utils/bearer-token.d.ts +2 -2
  1334. package/build/src/utils/bearer-token.d.ts.map +1 -1
  1335. package/build/src/utils/deburr-column-name.d.ts.map +1 -1
  1336. package/build/src/utils/event-emitter.d.ts +1 -1
  1337. package/build/src/utils/event-emitter.d.ts.map +1 -1
  1338. package/build/src/utils/event-emitter.js +2 -2
  1339. package/build/src/utils/file-exists.d.ts.map +1 -1
  1340. package/build/src/utils/format-value.d.ts +9 -8
  1341. package/build/src/utils/format-value.d.ts.map +1 -1
  1342. package/build/src/utils/format-value.js +7 -7
  1343. package/build/src/utils/is-date.d.ts +2 -2
  1344. package/build/src/utils/is-date.d.ts.map +1 -1
  1345. package/build/src/utils/is-date.js +2 -2
  1346. package/build/src/utils/model-scope.d.ts +29 -24
  1347. package/build/src/utils/model-scope.d.ts.map +1 -1
  1348. package/build/src/utils/model-scope.js +11 -11
  1349. package/build/src/utils/mount-prefix.d.ts +2 -2
  1350. package/build/src/utils/mount-prefix.d.ts.map +1 -1
  1351. package/build/src/utils/nest-callbacks.d.ts.map +1 -1
  1352. package/build/src/utils/plain-object.d.ts +3 -3
  1353. package/build/src/utils/plain-object.d.ts.map +1 -1
  1354. package/build/src/utils/plain-object.js +3 -3
  1355. package/build/src/utils/ransack.d.ts +69 -90
  1356. package/build/src/utils/ransack.d.ts.map +1 -1
  1357. package/build/src/utils/ransack.js +36 -36
  1358. package/build/src/utils/rest-args-error.d.ts.map +1 -1
  1359. package/build/src/utils/sha256-hex.d.ts.map +1 -1
  1360. package/build/src/utils/shutdown-lifecycle.d.ts +1 -1
  1361. package/build/src/utils/shutdown-lifecycle.d.ts.map +1 -1
  1362. package/build/src/utils/singularize-model-name.d.ts.map +1 -1
  1363. package/build/src/utils/split-sql-statements.d.ts.map +1 -1
  1364. package/build/src/utils/to-import-specifier.d.ts.map +1 -1
  1365. package/build/src/utils/with-tracked-stack-async-hooks.d.ts +6 -5
  1366. package/build/src/utils/with-tracked-stack-async-hooks.d.ts.map +1 -1
  1367. package/build/src/utils/with-tracked-stack-async-hooks.js +9 -9
  1368. package/build/src/utils/with-tracked-stack.d.ts +6 -5
  1369. package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
  1370. package/build/src/utils/with-tracked-stack.js +7 -7
  1371. package/build/src/velocious-error.d.ts +23 -23
  1372. package/build/src/velocious-error.d.ts.map +1 -1
  1373. package/build/src/velocious-error.js +3 -3
  1374. package/build/sync/conflict-strategy.js +1 -1
  1375. package/build/sync/query-scope.js +7 -7
  1376. package/build/sync/server-change-feed.js +13 -13
  1377. package/build/sync/server-sequence-allocator.js +5 -5
  1378. package/build/sync/signed-sync-envelope-replay-service.js +20 -20
  1379. package/build/sync/stable-json.js +4 -4
  1380. package/build/sync/sync-api-client-types.js +7 -7
  1381. package/build/sync/sync-api-client.js +26 -26
  1382. package/build/sync/sync-change-fanout.js +6 -6
  1383. package/build/sync/sync-client-registry.js +3 -3
  1384. package/build/sync/sync-client-types.js +10 -10
  1385. package/build/sync/sync-client.js +18 -18
  1386. package/build/sync/sync-envelope-replay-service.js +76 -76
  1387. package/build/sync/sync-model-change-feed-service.js +7 -7
  1388. package/build/sync/sync-publish-suppression.js +2 -2
  1389. package/build/sync/sync-publisher-types.js +11 -11
  1390. package/build/sync/sync-publisher.js +19 -19
  1391. package/build/sync/sync-realtime-bridge.js +8 -8
  1392. package/build/sync/sync-replay-upsert-applier.js +16 -16
  1393. package/build/sync/sync-resource-base.js +14 -14
  1394. package/build/sync/sync-scope-attributes.js +1 -1
  1395. package/build/sync/sync-scope-store.js +5 -5
  1396. package/build/sync/sync-websocket-channel.js +5 -5
  1397. package/build/tenants/default-tenant-database-provisioning.js +1 -1
  1398. package/build/tenants/tenant-aggregator.js +13 -13
  1399. package/build/tenants/tenant-handle.js +252 -0
  1400. package/build/tenants/tenant-iterator.js +6 -6
  1401. package/build/tenants/tenant-model-scope.js +132 -0
  1402. package/build/tenants/tenant.js +15 -2
  1403. package/build/testing/browser-test-app.js +2 -2
  1404. package/build/testing/expect-to-change.js +1 -1
  1405. package/build/testing/expect-utils.js +29 -29
  1406. package/build/testing/expect.js +18 -18
  1407. package/build/testing/factory/association-declaration.js +2 -2
  1408. package/build/testing/factory/declarations.js +5 -5
  1409. package/build/testing/factory/definition-builder.js +39 -39
  1410. package/build/testing/factory/evaluation-context.js +16 -16
  1411. package/build/testing/factory/factory-definition.js +2 -2
  1412. package/build/testing/factory/factory-registry.js +34 -34
  1413. package/build/testing/factory/factory-runner.js +8 -8
  1414. package/build/testing/factory/linter.js +2 -2
  1415. package/build/testing/factory/model-contract.js +3 -3
  1416. package/build/testing/factory/sequence.js +2 -2
  1417. package/build/testing/factory/strategies/attributes-for.js +1 -1
  1418. package/build/testing/factory/strategies/base.js +24 -24
  1419. package/build/testing/factory/strategies/build.js +2 -2
  1420. package/build/testing/factory/strategies/create.js +4 -4
  1421. package/build/testing/test-files-finder.js +1 -1
  1422. package/build/testing/test-runner.js +14 -14
  1423. package/build/testing/test.js +19 -17
  1424. package/build/testing/wait-for-event.js +5 -5
  1425. package/build/tsconfig.tsbuildinfo +1 -1
  1426. package/build/utils/event-emitter.js +1 -1
  1427. package/build/utils/format-value.js +6 -6
  1428. package/build/utils/is-date.js +1 -1
  1429. package/build/utils/model-scope.js +10 -10
  1430. package/build/utils/plain-object.js +2 -2
  1431. package/build/utils/ransack.js +35 -35
  1432. package/build/utils/with-tracked-stack-async-hooks.js +8 -8
  1433. package/build/utils/with-tracked-stack.js +6 -6
  1434. package/build/velocious-error.js +2 -2
  1435. package/package.json +2 -2
  1436. package/src/application.js +3 -3
  1437. package/src/authorization/ability.js +6 -6
  1438. package/src/authorization/base-resource.js +1 -1
  1439. package/src/background-jobs/client.js +2 -2
  1440. package/src/background-jobs/forked-runner-child.js +4 -4
  1441. package/src/background-jobs/job-runner.js +2 -2
  1442. package/src/background-jobs/job.js +6 -6
  1443. package/src/background-jobs/json-socket.js +1 -1
  1444. package/src/background-jobs/main.js +11 -11
  1445. package/src/background-jobs/normalize-error.js +2 -2
  1446. package/src/background-jobs/pooled-runner-child.js +3 -3
  1447. package/src/background-jobs/scheduler.js +1 -1
  1448. package/src/background-jobs/status-reporter.js +2 -2
  1449. package/src/background-jobs/store.js +23 -23
  1450. package/src/background-jobs/types.js +6 -6
  1451. package/src/background-jobs/web/controller.js +6 -6
  1452. package/src/background-jobs/web/counts-channel.js +1 -1
  1453. package/src/background-jobs/worker.js +8 -8
  1454. package/src/beacon/client.js +3 -3
  1455. package/src/beacon/in-process-client.js +3 -3
  1456. package/src/beacon/types.js +1 -1
  1457. package/src/cli/base-command.js +1 -1
  1458. package/src/cli/commands/console.js +1 -1
  1459. package/src/cli/commands/db/schema/dump.js +1 -1
  1460. package/src/cli/commands/db/schema/load.js +1 -1
  1461. package/src/cli/commands/db/seed.js +1 -1
  1462. package/src/cli/commands/generate/frontend-models.js +1 -1
  1463. package/src/cli/commands/lint/relationships.js +1 -1
  1464. package/src/cli/commands/run-script.js +1 -1
  1465. package/src/cli/commands/runner.js +1 -1
  1466. package/src/cli/index.js +2 -2
  1467. package/src/cli/tenant-database-command-helper.js +2 -2
  1468. package/src/configuration-types.js +47 -47
  1469. package/src/configuration.js +98 -55
  1470. package/src/controller.js +11 -8
  1471. package/src/current.js +2 -2
  1472. package/src/database/annotations-async-hooks.js +3 -3
  1473. package/src/database/annotations.js +1 -1
  1474. package/src/database/drivers/base-column.js +1 -1
  1475. package/src/database/drivers/base-foreign-key.js +1 -1
  1476. package/src/database/drivers/base-table.js +1 -1
  1477. package/src/database/drivers/base.js +18 -18
  1478. package/src/database/drivers/mssql/column.js +1 -1
  1479. package/src/database/drivers/mssql/index.js +2 -2
  1480. package/src/database/drivers/mssql/options.js +1 -1
  1481. package/src/database/drivers/mssql/structure-sql.js +1 -1
  1482. package/src/database/drivers/mssql/table.js +1 -1
  1483. package/src/database/drivers/mysql/column.js +1 -1
  1484. package/src/database/drivers/mysql/index.js +4 -4
  1485. package/src/database/drivers/mysql/options.js +1 -1
  1486. package/src/database/drivers/mysql/query.js +7 -7
  1487. package/src/database/drivers/mysql/structure-sql.js +2 -2
  1488. package/src/database/drivers/pgsql/column.js +1 -1
  1489. package/src/database/drivers/pgsql/index.js +6 -6
  1490. package/src/database/drivers/pgsql/structure-sql.js +1 -1
  1491. package/src/database/drivers/sqlite/base.js +7 -7
  1492. package/src/database/drivers/sqlite/column.js +1 -1
  1493. package/src/database/drivers/sqlite/connection-sql-js.js +1 -1
  1494. package/src/database/drivers/sqlite/foreign-key.js +1 -1
  1495. package/src/database/drivers/sqlite/index.js +1 -1
  1496. package/src/database/drivers/sqlite/index.native.js +2 -2
  1497. package/src/database/drivers/sqlite/index.web.js +2 -2
  1498. package/src/database/drivers/sqlite/query.js +2 -2
  1499. package/src/database/drivers/sqlite/query.native.js +2 -2
  1500. package/src/database/drivers/sqlite/query.web.js +2 -2
  1501. package/src/database/drivers/sqlite/table-rebuilder.js +1 -1
  1502. package/src/database/migration/index.js +2 -2
  1503. package/src/database/migrator/types.js +2 -2
  1504. package/src/database/operation.js +59 -6
  1505. package/src/database/pool/async-tracked-multi-connection.js +75 -24
  1506. package/src/database/pool/base-methods-forward.js +2 -2
  1507. package/src/database/pool/base.js +48 -17
  1508. package/src/database/pool/single-multi-use.js +501 -103
  1509. package/src/database/query/delete-base.js +1 -1
  1510. package/src/database/query/index.js +3 -3
  1511. package/src/database/query/insert-base.js +4 -4
  1512. package/src/database/query/model-class-query.js +39 -39
  1513. package/src/database/query/preloader/belongs-to.js +2 -2
  1514. package/src/database/query/preloader/ensure-model-class-initialized.js +3 -2
  1515. package/src/database/query/preloader/has-many.js +3 -3
  1516. package/src/database/query/preloader/has-one.js +1 -1
  1517. package/src/database/query/preloader.js +9 -2
  1518. package/src/database/query/query-data.js +7 -7
  1519. package/src/database/query/update-base.js +3 -3
  1520. package/src/database/query/upsert-base.js +2 -2
  1521. package/src/database/query/where-model-class-hash.js +13 -13
  1522. package/src/database/query/with-count.js +4 -4
  1523. package/src/database/query-parser/options.js +2 -2
  1524. package/src/database/query-parser/select-parser.js +1 -1
  1525. package/src/database/record/acts-as-list.js +2 -2
  1526. package/src/database/record/attachments/handle.js +6 -6
  1527. package/src/database/record/attachments/normalize-input.js +11 -11
  1528. package/src/database/record/attachments/storage-drivers/filesystem.js +1 -1
  1529. package/src/database/record/attachments/storage-drivers/native.js +5 -5
  1530. package/src/database/record/attachments/storage-drivers/s3.js +10 -10
  1531. package/src/database/record/attachments/store.js +24 -20
  1532. package/src/database/record/auditing.js +123 -29
  1533. package/src/database/record/counter-cache-magnitude.js +11 -11
  1534. package/src/database/record/index.js +227 -174
  1535. package/src/database/record/instance-relationships/base.js +4 -4
  1536. package/src/database/record/instance-relationships/belongs-to.js +1 -1
  1537. package/src/database/record/instance-relationships/has-many.js +3 -3
  1538. package/src/database/record/instance-relationships/has-one.js +1 -1
  1539. package/src/database/record/relationships/base.js +22 -0
  1540. package/src/database/record/state-machine.js +6 -6
  1541. package/src/database/record/validators/base.js +1 -1
  1542. package/src/database/structure-sql-loader.js +3 -3
  1543. package/src/database/table-data/table-column.js +3 -3
  1544. package/src/database/use-live-query.js +3 -3
  1545. package/src/environment-handlers/base.js +56 -37
  1546. package/src/environment-handlers/browser.js +1 -1
  1547. package/src/environment-handlers/node/cli/commands/console.js +4 -4
  1548. package/src/environment-handlers/node/cli/commands/db/seed.js +2 -2
  1549. package/src/environment-handlers/node/cli/commands/generate/base-models.js +1 -1
  1550. package/src/environment-handlers/node/cli/commands/run-script.js +2 -2
  1551. package/src/environment-handlers/node/cli/commands/runner.js +2 -2
  1552. package/src/environment-handlers/node/cli/commands/server.js +1 -1
  1553. package/src/environment-handlers/node.js +36 -36
  1554. package/src/error-logger.js +2 -2
  1555. package/src/error-reporting/request-details.js +32 -32
  1556. package/src/frontend-model-controller.js +144 -144
  1557. package/src/frontend-model-resource/base-resource.js +44 -44
  1558. package/src/frontend-model-resource/velocious-attachment-resource.js +1 -1
  1559. package/src/frontend-models/base.js +137 -142
  1560. package/src/frontend-models/clear-pending-debounced-callback.js +2 -2
  1561. package/src/frontend-models/model-registry.js +4 -4
  1562. package/src/frontend-models/outgoing-event-buffer.js +1 -1
  1563. package/src/frontend-models/preloader.js +1 -1
  1564. package/src/frontend-models/query.js +60 -60
  1565. package/src/frontend-models/resource-definition.js +9 -9
  1566. package/src/frontend-models/transport-serialization.js +27 -27
  1567. package/src/frontend-models/websocket-channel.js +4 -4
  1568. package/src/frontend-models/websocket-publishers.js +1 -1
  1569. package/src/http-client/request.js +1 -1
  1570. package/src/http-client/response.js +1 -1
  1571. package/src/http-server/client/index.js +4 -4
  1572. package/src/http-server/client/params-to-object.js +16 -16
  1573. package/src/http-server/client/request-buffer/index.js +5 -2
  1574. package/src/http-server/client/request-parser.js +2 -2
  1575. package/src/http-server/client/request-runner.js +2 -2
  1576. package/src/http-server/client/request.js +2 -2
  1577. package/src/http-server/client/websocket-request.js +6 -6
  1578. package/src/http-server/client/websocket-session.js +28 -28
  1579. package/src/http-server/cookie.js +2 -2
  1580. package/src/http-server/development-reloader.js +1 -1
  1581. package/src/http-server/index.js +5 -5
  1582. package/src/http-server/remote-address.js +1 -1
  1583. package/src/http-server/server-lock.js +4 -4
  1584. package/src/http-server/websocket-channel-subscribers.js +4 -4
  1585. package/src/http-server/websocket-channel.js +1 -1
  1586. package/src/http-server/websocket-connection.js +3 -3
  1587. package/src/http-server/websocket-event-log-store.js +9 -9
  1588. package/src/http-server/websocket-events-host.js +7 -7
  1589. package/src/http-server/websocket-events.js +4 -4
  1590. package/src/http-server/worker-handler/channel-subscriber-dispatch.js +1 -1
  1591. package/src/http-server/worker-handler/in-process.js +5 -5
  1592. package/src/http-server/worker-handler/index.js +10 -10
  1593. package/src/http-server/worker-handler/worker-thread.js +8 -8
  1594. package/src/logger/base-logger.js +1 -1
  1595. package/src/logger.js +12 -12
  1596. package/src/mailer/backends/smtp.js +3 -3
  1597. package/src/mailer/base.js +14 -14
  1598. package/src/mailer/delivery.js +3 -3
  1599. package/src/mailer/index.js +1 -1
  1600. package/src/mailer.js +1 -1
  1601. package/src/plugins/sqljs-wasm-route-controller.js +1 -1
  1602. package/src/record-payload-values.js +3 -3
  1603. package/src/routes/base-route.js +5 -5
  1604. package/src/routes/basic-route.js +4 -4
  1605. package/src/routes/get-route.js +2 -2
  1606. package/src/routes/hooks/frontend-model-command-route-hook.js +1 -1
  1607. package/src/routes/index.js +3 -3
  1608. package/src/routes/namespace-route.js +1 -1
  1609. package/src/routes/plugin-routes.js +1 -1
  1610. package/src/routes/post-route.js +2 -2
  1611. package/src/routes/resolver.js +5 -5
  1612. package/src/routes/resource-route.js +1 -1
  1613. package/src/sync/conflict-strategy.js +1 -1
  1614. package/src/sync/query-scope.js +7 -7
  1615. package/src/sync/server-change-feed.js +13 -13
  1616. package/src/sync/server-sequence-allocator.js +5 -5
  1617. package/src/sync/signed-sync-envelope-replay-service.js +20 -20
  1618. package/src/sync/stable-json.js +4 -4
  1619. package/src/sync/sync-api-client-types.js +7 -7
  1620. package/src/sync/sync-api-client.js +26 -26
  1621. package/src/sync/sync-change-fanout.js +6 -6
  1622. package/src/sync/sync-client-registry.js +3 -3
  1623. package/src/sync/sync-client-types.js +10 -10
  1624. package/src/sync/sync-client.js +18 -18
  1625. package/src/sync/sync-envelope-replay-service.js +76 -76
  1626. package/src/sync/sync-model-change-feed-service.js +7 -7
  1627. package/src/sync/sync-publish-suppression.js +2 -2
  1628. package/src/sync/sync-publisher-types.js +11 -11
  1629. package/src/sync/sync-publisher.js +19 -19
  1630. package/src/sync/sync-realtime-bridge.js +8 -8
  1631. package/src/sync/sync-replay-upsert-applier.js +16 -16
  1632. package/src/sync/sync-resource-base.js +14 -14
  1633. package/src/sync/sync-scope-attributes.js +1 -1
  1634. package/src/sync/sync-scope-store.js +5 -5
  1635. package/src/sync/sync-websocket-channel.js +5 -5
  1636. package/src/tenants/default-tenant-database-provisioning.js +1 -1
  1637. package/src/tenants/tenant-aggregator.js +13 -13
  1638. package/src/tenants/tenant-handle.js +252 -0
  1639. package/src/tenants/tenant-iterator.js +6 -6
  1640. package/src/tenants/tenant-model-scope.js +132 -0
  1641. package/src/tenants/tenant.js +15 -2
  1642. package/src/testing/browser-test-app.js +2 -2
  1643. package/src/testing/expect-to-change.js +1 -1
  1644. package/src/testing/expect-utils.js +29 -29
  1645. package/src/testing/expect.js +18 -18
  1646. package/src/testing/factory/association-declaration.js +2 -2
  1647. package/src/testing/factory/declarations.js +5 -5
  1648. package/src/testing/factory/definition-builder.js +39 -39
  1649. package/src/testing/factory/evaluation-context.js +16 -16
  1650. package/src/testing/factory/factory-definition.js +2 -2
  1651. package/src/testing/factory/factory-registry.js +34 -34
  1652. package/src/testing/factory/factory-runner.js +8 -8
  1653. package/src/testing/factory/linter.js +2 -2
  1654. package/src/testing/factory/model-contract.js +3 -3
  1655. package/src/testing/factory/sequence.js +2 -2
  1656. package/src/testing/factory/strategies/attributes-for.js +1 -1
  1657. package/src/testing/factory/strategies/base.js +24 -24
  1658. package/src/testing/factory/strategies/build.js +2 -2
  1659. package/src/testing/factory/strategies/create.js +4 -4
  1660. package/src/testing/test-files-finder.js +1 -1
  1661. package/src/testing/test-runner.js +14 -14
  1662. package/src/testing/test.js +19 -17
  1663. package/src/testing/wait-for-event.js +5 -5
  1664. package/src/utils/event-emitter.js +1 -1
  1665. package/src/utils/format-value.js +6 -6
  1666. package/src/utils/is-date.js +1 -1
  1667. package/src/utils/model-scope.js +10 -10
  1668. package/src/utils/plain-object.js +2 -2
  1669. package/src/utils/ransack.js +35 -35
  1670. package/src/utils/with-tracked-stack-async-hooks.js +8 -8
  1671. package/src/utils/with-tracked-stack.js +6 -6
  1672. package/src/velocious-error.js +2 -2
@@ -180,7 +180,7 @@ export default class VelociousBackgroundJobsWebController extends Controller {
180
180
  /**
181
181
  * Runs serialize job.
182
182
  * @param {import("../types.js").BackgroundJobRow} job - Job row.
183
- * @returns {Record<string, ?>} - Serialized job for the API.
183
+ * @returns {Record<string, ReturnType<typeof JSON.parse>>} - Serialized job for the API.
184
184
  */
185
185
  _serializeJob(job) {
186
186
  const redactArgs = Boolean(this._mountOptions().redactArgs)
@@ -209,7 +209,7 @@ export default class VelociousBackgroundJobsWebController extends Controller {
209
209
  /**
210
210
  * Runs serialize schedule.
211
211
  * @param {import("../../configuration-types.js").ScheduledBackgroundJobsConfiguration | undefined} scheduled - Scheduled jobs config.
212
- * @returns {Array<Record<string, ?>>} - Serialized recurring jobs.
212
+ * @returns {Array<Record<string, ReturnType<typeof JSON.parse>>>} - Serialized recurring jobs.
213
213
  */
214
214
  _serializeSchedule(scheduled) {
215
215
  const jobs = scheduled?.jobs
@@ -219,7 +219,7 @@ export default class VelociousBackgroundJobsWebController extends Controller {
219
219
  const redactArgs = Boolean(this._mountOptions().redactArgs)
220
220
 
221
221
  return Object.keys(jobs).map((name) => {
222
- const entry = jobs[name] || /** @type {?} */ ({})
222
+ const entry = jobs[name] || /** @type {ReturnType<typeof JSON.parse>} */ ({})
223
223
 
224
224
  return {
225
225
  args: redactArgs ? undefined : (entry.args || []),
@@ -235,7 +235,7 @@ export default class VelociousBackgroundJobsWebController extends Controller {
235
235
 
236
236
  /**
237
237
  * Runs sanitize status.
238
- * @param {?} value - Raw status param.
238
+ * @param {ReturnType<typeof JSON.parse>} value - Raw status param.
239
239
  * @returns {string | undefined} - Valid status or undefined.
240
240
  */
241
241
  _sanitizeStatus(value) {
@@ -244,7 +244,7 @@ export default class VelociousBackgroundJobsWebController extends Controller {
244
244
 
245
245
  /**
246
246
  * Runs sanitize sort.
247
- * @param {?} value - Raw sort param (e.g. "createdAtMs" or "-failedAtMs").
247
+ * @param {ReturnType<typeof JSON.parse>} value - Raw sort param (e.g. "createdAtMs" or "-failedAtMs").
248
248
  * @returns {{sortColumn: string, sortDirection: "ASC" | "DESC"}} - Normalized sort.
249
249
  */
250
250
  _sanitizeSort(value) {
@@ -261,7 +261,7 @@ export default class VelociousBackgroundJobsWebController extends Controller {
261
261
 
262
262
  /**
263
263
  * Runs positive int.
264
- * @param {?} value - Raw numeric param.
264
+ * @param {ReturnType<typeof JSON.parse>} value - Raw numeric param.
265
265
  * @param {number} fallback - Fallback when invalid.
266
266
  * @returns {number} - Positive integer.
267
267
  */
@@ -55,7 +55,7 @@ export default class BackgroundJobCountsChannel extends VelociousWebsocketChanne
55
55
  matches(broadcastParams) {
56
56
  if (!broadcastParams || typeof broadcastParams !== "object" || Array.isArray(broadcastParams)) return false
57
57
 
58
- return String(/** @type {Record<string, ?>} */ (broadcastParams).databaseIdentifier) === this.databaseIdentifier
58
+ return String(/** @type {Record<string, ReturnType<typeof JSON.parse>>} */ (broadcastParams).databaseIdentifier) === this.databaseIdentifier
59
59
  }
60
60
 
61
61
  /**
@@ -434,7 +434,7 @@ export default class BackgroundJobsWorker {
434
434
  /**
435
435
  * Identified payload.
436
436
  * @type {import("./types.js").BackgroundJobPayload & {id: string}} */
437
- const identifiedPayload = /** @type {?} */ (payload)
437
+ const identifiedPayload = /** @type {ReturnType<typeof JSON.parse>} */ (payload)
438
438
 
439
439
  const executionMode = this._executionModeForPayload(identifiedPayload)
440
440
 
@@ -795,12 +795,12 @@ export default class BackgroundJobsWorker {
795
795
  * runs jobs concurrently and reports one `job-outcome` per job id.
796
796
  * @param {object} args - Message details.
797
797
  * @param {import("node:child_process").ChildProcess} args.child - Pooled child.
798
- * @param {?} args.message - IPC message.
798
+ * @param {ReturnType<typeof JSON.parse>} args.message - IPC message.
799
799
  * @returns {void}
800
800
  */
801
801
  _handlePooledChildMessage({child, message}) {
802
802
  if (!message || typeof message !== "object") return
803
- const record = /** @type {{type?: ?, jobId?: ?, acknowledged?: ?, rssBytes?: ?, error?: ?}} */ (message)
803
+ const record = /** @type {{type?: ReturnType<typeof JSON.parse>, jobId?: ReturnType<typeof JSON.parse>, acknowledged?: ReturnType<typeof JSON.parse>, rssBytes?: ReturnType<typeof JSON.parse>, error?: ReturnType<typeof JSON.parse>}} */ (message)
804
804
  const state = this.pooledChildStates.get(child)
805
805
  if (record.type !== "job-outcome" || !state || state.settling || typeof record.jobId !== "string") return
806
806
  const entry = state.inflight.get(record.jobId)
@@ -885,7 +885,7 @@ export default class BackgroundJobsWorker {
885
885
  * loop when a child crashes on startup.
886
886
  * @param {object} args - Failure details.
887
887
  * @param {import("node:child_process").ChildProcess} args.child - Pooled child.
888
- * @param {?} args.error - Failure.
888
+ * @param {ReturnType<typeof JSON.parse>} args.error - Failure.
889
889
  * @returns {Promise<void>}
890
890
  */
891
891
  async _handlePooledChildFailure({child, error}) {
@@ -935,7 +935,7 @@ export default class BackgroundJobsWorker {
935
935
  const jobInstance = new JobClass()
936
936
  /**
937
937
  * Perform.
938
- * @type {(...args: Array<?>) => Promise<void>} */
938
+ * @type {(...args: Array<ReturnType<typeof JSON.parse>>) => Promise<void>} */
939
939
  const perform = jobInstance.perform
940
940
 
941
941
  await configuration.withConnections({databaseIdentifiers: JobClass.databaseIdentifiers, name: `Background job worker inline: ${payload.jobName}`}, async () => {
@@ -1170,7 +1170,7 @@ export default class BackgroundJobsWorker {
1170
1170
  * Runs report forked child failure.
1171
1171
  * @param {object} args - Options.
1172
1172
  * @param {import("./types.js").BackgroundJobPayload & {id: string}} args.payload - Payload.
1173
- * @param {?} args.error - Error.
1173
+ * @param {ReturnType<typeof JSON.parse>} args.error - Error.
1174
1174
  * @returns {void}
1175
1175
  */
1176
1176
  _reportForkedChildFailure({payload, error}) {
@@ -1234,7 +1234,7 @@ export default class BackgroundJobsWorker {
1234
1234
  * @param {object} args - Options.
1235
1235
  * @param {string} args.jobId - Job id.
1236
1236
  * @param {"completed" | "failed"} args.status - Status.
1237
- * @param {?} [args.error] - Error.
1237
+ * @param {ReturnType<typeof JSON.parse>} [args.error] - Error.
1238
1238
  * @param {string} [args.handoffId] - Handoff lease id.
1239
1239
  * @param {number} [args.handedOffAtMs] - Handed off timestamp.
1240
1240
  * @param {string} [args.workerId] - Worker id.
@@ -1261,7 +1261,7 @@ export default class BackgroundJobsWorker {
1261
1261
  * @param {object} args - Options.
1262
1262
  * @param {string} args.jobId - Job id.
1263
1263
  * @param {"completed" | "failed"} args.status - Status.
1264
- * @param {?} [args.error] - Error.
1264
+ * @param {ReturnType<typeof JSON.parse>} [args.error] - Error.
1265
1265
  * @param {string} [args.handoffId] - Handoff lease id.
1266
1266
  * @param {number} [args.handedOffAtMs] - Handed off timestamp.
1267
1267
  * @param {string} [args.workerId] - Worker id.
@@ -9,7 +9,7 @@ import EventEmitter from "../utils/event-emitter.js"
9
9
 
10
10
  /**
11
11
  * BeaconBroadcastHandler type.
12
- * @typedef {function(import("./types.js").BeaconBroadcastMessage): void} BeaconBroadcastHandler
12
+ * @typedef {(arg: import("./types.js").BeaconBroadcastMessage) => void} BeaconBroadcastHandler
13
13
  */
14
14
  const DEFAULT_RECONNECT_DELAY_MS = 1000
15
15
  const MAX_RECONNECT_DELAY_MS = 30_000
@@ -178,8 +178,8 @@ export default class BeaconClient extends EventEmitter {
178
178
  * unless the daemon is restarted mid-publish).
179
179
  * @param {object} args - Broadcast args.
180
180
  * @param {string} args.channel - Channel name.
181
- * @param {Record<string, ?>} args.broadcastParams - Routing params.
182
- * @param {?} args.body - Message body.
181
+ * @param {Record<string, ReturnType<typeof JSON.parse>>} args.broadcastParams - Routing params.
182
+ * @param {ReturnType<typeof JSON.parse>} args.body - Message body.
183
183
  * @returns {boolean} - True if the publish was written to the socket. False if the client is currently disconnected.
184
184
  */
185
185
  publish({channel, broadcastParams, body}) {
@@ -7,7 +7,7 @@ import {publishToInProcessPeers, registerInProcessPeer} from "./in-process-broke
7
7
 
8
8
  /**
9
9
  * BeaconBroadcastHandler type.
10
- * @typedef {function(import("./types.js").BeaconBroadcastMessage): void} BeaconBroadcastHandler
10
+ * @typedef {(arg: import("./types.js").BeaconBroadcastMessage) => void} BeaconBroadcastHandler
11
11
  */
12
12
 
13
13
  /**
@@ -85,8 +85,8 @@ export default class InProcessBeaconClient extends EventEmitter {
85
85
  * `BeaconClient` semantics.
86
86
  * @param {object} args - Broadcast args.
87
87
  * @param {string} args.channel - Channel name.
88
- * @param {Record<string, ?>} args.broadcastParams - Routing params.
89
- * @param {?} args.body - Message body.
88
+ * @param {Record<string, ReturnType<typeof JSON.parse>>} args.broadcastParams - Routing params.
89
+ * @param {ReturnType<typeof JSON.parse>} args.body - Message body.
90
90
  * @returns {boolean} - True when the broadcast was queued.
91
91
  */
92
92
  publish({channel, broadcastParams, body}) {
@@ -37,7 +37,7 @@
37
37
  */
38
38
 
39
39
  /**
40
- * @typedef {{type: "broadcast", channel: string, broadcastParams: Record<string, ?>, body: ?, originPeerId?: string}} BeaconBroadcastMessage
40
+ * @typedef {{type: "broadcast", channel: string, broadcastParams: Record<string, ReturnType<typeof JSON.parse>>, body: ReturnType<typeof JSON.parse>, originPeerId?: string}} BeaconBroadcastMessage
41
41
  *
42
42
  * `channel`, `broadcastParams`, and `body` mirror the
43
43
  * `configuration.broadcastToChannel(channel, broadcastParams, body)`
@@ -37,7 +37,7 @@ export default class VelociousCliBaseCommand {
37
37
  /**
38
38
  * Runs execute.
39
39
  * @abstract
40
- * @returns {Promise<?>} - Resolves with the execute.
40
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the execute.
41
41
  */
42
42
  execute() {
43
43
  throw new Error("execute not implemented")
@@ -4,7 +4,7 @@ import BaseCommand from "../base-command.js"
4
4
  export default class VelociousCliCommandsConsole extends BaseCommand{
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsConsole(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../../../base-command.js"
4
4
  export default class DbSchemaDump extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsDbSchemaDump(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../../../base-command.js"
4
4
  export default class DbSchemaLoad extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsDbSchemaLoad(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../../base-command.js"
4
4
  export default class DbSeed extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsDbSeed(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../../base-command.js"
4
4
  export default class DbGenerateFrontendModels extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Command execution result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Command execution result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsGenerateFrontendModels(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../../base-command.js"
4
4
  export default class VelociousCliCommandsLintRelationships extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsLintRelationships(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../base-command.js"
4
4
  export default class RunScriptCommand extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsRunScript(this)
@@ -4,7 +4,7 @@ import BaseCommand from "../base-command.js"
4
4
  export default class RunnerCommand extends BaseCommand {
5
5
  /**
6
6
  * Runs execute.
7
- * @returns {Promise<?>} - Resolves with the command result.
7
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
8
8
  */
9
9
  async execute() {
10
10
  return await this.getConfiguration().getEnvironmentHandler().cliCommandsRunner(this)
@@ -24,7 +24,7 @@ export default class VelociousCli {
24
24
 
25
25
  /**
26
26
  * Runs execute.
27
- * @returns {Promise<?>} - Resolves with the final command result.
27
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the final command result.
28
28
  */
29
29
  async execute() {
30
30
  const commandGroups = await this.commandGroups()
@@ -48,7 +48,7 @@ export default class VelociousCli {
48
48
  /**
49
49
  * Runs execute command.
50
50
  * @param {string[]} processArgs - Process args for a single command.
51
- * @returns {Promise<?>} - Resolves with the command result.
51
+ * @returns {Promise<ReturnType<typeof JSON.parse>>} - Resolves with the command result.
52
52
  */
53
53
  async executeCommand(processArgs) {
54
54
  if (!processArgs[0]) {
@@ -57,7 +57,7 @@ export default class TenantDatabaseCommandHelper {
57
57
 
58
58
  /**
59
59
  * Runs list tenants.
60
- * @returns {Promise<Array<?>>} - Tenants.
60
+ * @returns {Promise<Array<ReturnType<typeof JSON.parse>>>} - Tenants.
61
61
  */
62
62
  async listTenants() {
63
63
  this.validateTenantDatabaseIdentifier()
@@ -79,7 +79,7 @@ export default class TenantDatabaseCommandHelper {
79
79
 
80
80
  /**
81
81
  * Runs each tenant.
82
- * @param {function({databaseConfiguration: import("../configuration-types.js").DatabaseConfigurationType, tenant: ?}) : Promise<void>} callback - Callback.
82
+ * @param {(args: {databaseConfiguration: import("../configuration-types.js").DatabaseConfigurationType, tenant: ReturnType<typeof JSON.parse>}) => Promise<void>} callback - Callback.
83
83
  * @returns {Promise<number>} - Number of tenants processed.
84
84
  */
85
85
  async eachTenant(callback) {
@@ -5,23 +5,23 @@
5
5
  */
6
6
 
7
7
  /**
8
- * @typedef {function({request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default}): Promise<void>} CorsType
8
+ * @typedef {(args: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default}) => Promise<void>} CorsType
9
9
  */
10
10
 
11
11
  /**
12
- * @typedef {function({request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, subscription?: {channel: string, params?: Record<string, ?>}, client: import("./http-server/client/index.js").default, websocketSession: import("./http-server/client/websocket-session.js").default, configuration: import("./configuration.js").default}): typeof import("./http-server/websocket-channel.js").default | import("./http-server/websocket-channel.js").default | void | Promise<typeof import("./http-server/websocket-channel.js").default | import("./http-server/websocket-channel.js").default | void>} WebsocketChannelResolverType
12
+ * @typedef {(args: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, subscription?: {channel: string, params?: Record<string, ReturnType<typeof JSON.parse>>}, client: import("./http-server/client/index.js").default, websocketSession: import("./http-server/client/websocket-session.js").default, configuration: import("./configuration.js").default}) => typeof import("./http-server/websocket-channel.js").default | import("./http-server/websocket-channel.js").default | void | Promise<typeof import("./http-server/websocket-channel.js").default | import("./http-server/websocket-channel.js").default | void>} WebsocketChannelResolverType
13
13
  */
14
14
 
15
15
  /**
16
16
  * @typedef {object} WebsocketMessageHandler
17
- * @property {function({message: ?, session: import("./http-server/client/websocket-session.js").default}) : Promise<void> | void} [onMessage] - Handler for incoming websocket messages.
18
- * @property {function({session: import("./http-server/client/websocket-session.js").default}) : Promise<void> | void} [onOpen] - Handler when the websocket session opens.
19
- * @property {function({session: import("./http-server/client/websocket-session.js").default}) : Promise<void> | void} [onClose] - Handler when the websocket session closes.
20
- * @property {function({error: Error, session: import("./http-server/client/websocket-session.js").default}) : Promise<void> | void} [onError] - Handler when a websocket message errors.
17
+ * @property {(args: {message: ReturnType<typeof JSON.parse>, session: import("./http-server/client/websocket-session.js").default}) => Promise<void> | void} [onMessage] - Handler for incoming websocket messages.
18
+ * @property {(args: {session: import("./http-server/client/websocket-session.js").default}) => Promise<void> | void} [onOpen] - Handler when the websocket session opens.
19
+ * @property {(args: {session: import("./http-server/client/websocket-session.js").default}) => Promise<void> | void} [onClose] - Handler when the websocket session closes.
20
+ * @property {(args: {error: Error, session: import("./http-server/client/websocket-session.js").default}) => Promise<void> | void} [onError] - Handler when a websocket message errors.
21
21
  */
22
22
 
23
23
  /**
24
- * @typedef {function({request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, client: import("./http-server/client/index.js").default, configuration: import("./configuration.js").default}): WebsocketMessageHandler | void | Promise<WebsocketMessageHandler | void>} WebsocketMessageHandlerResolverType
24
+ * @typedef {(args: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, client: import("./http-server/client/index.js").default, configuration: import("./configuration.js").default}) => WebsocketMessageHandler | void | Promise<WebsocketMessageHandler | void>} WebsocketMessageHandlerResolverType
25
25
  */
26
26
 
27
27
  /**
@@ -31,7 +31,7 @@
31
31
  * id: string
32
32
  * }} WebpackRequireContext
33
33
  * @typedef {{requireContext: WebpackRequireContext}} InitializersExportType
34
- * @typedef {function({configuration: import("./configuration.js").default}) : Promise<InitializersExportType>} InitializersType
34
+ * @typedef {(args: {configuration: import("./configuration.js").default}) => Promise<InitializersExportType>} InitializersType
35
35
  */
36
36
 
37
37
  /**
@@ -69,7 +69,7 @@
69
69
  * @property {number} [deadlockMaxWaitMs] - Cap (ms) on the deadlock retry backoff ceiling so the jittered wait stays bounded. Defaults to 1000.
70
70
  * @property {typeof import("./database/drivers/base.js").default} [driver] - Driver class to use for this database.
71
71
  * @property {typeof import("./database/pool/base.js").default} [poolType] - Pool class to use for this database.
72
- * @property {function() : ?} [getConnection] - Custom connection factory override.
72
+ * @property {() => ReturnType<typeof JSON.parse>} [getConnection] - Custom connection factory override.
73
73
  * @property {string} [host] - Database host.
74
74
  * @property {boolean} [migrations] - Whether migrations are enabled for this database.
75
75
  * @property {boolean} [multipleStatements] - (MySQL) Opt in to multi-statement queries so a whole structure SQL dump loads in one round-trip via `StructureSqlLoader`. Off by default; ordinary queries otherwise reject stacked statements.
@@ -106,7 +106,7 @@
106
106
 
107
107
  /**
108
108
  * @typedef {object} LoggingOutput
109
- * @property {function(LoggingOutputPayload): Promise<void> | void} write - Write a log entry.
109
+ * @property {(arg: LoggingOutputPayload) => Promise<void> | void} write - Write a log entry.
110
110
  * @property {LogLevel[]} [levels] - Default levels for this output.
111
111
  */
112
112
 
@@ -284,7 +284,7 @@
284
284
 
285
285
  /**
286
286
  * @typedef {object} ScheduledBackgroundJobConfiguration
287
- * @property {Array<?>} [args] - Arguments passed to the job when enqueued.
287
+ * @property {Array<ReturnType<typeof JSON.parse>>} [args] - Arguments passed to the job when enqueued.
288
288
  * @property {typeof import("./background-jobs/job.js").default} class - Job class to enqueue.
289
289
  * @property {string} [cron] - Crontab expression (5-field POSIX, plus `@hourly`/`@daily`/`@weekly`/`@monthly`/`@yearly`/`@midnight`). Mutually exclusive with `every`.
290
290
  * @property {boolean} [enabled] - Whether the schedule is enabled.
@@ -302,7 +302,7 @@
302
302
 
303
303
  /**
304
304
  * @typedef {object} ErrorRequestDetails
305
- * @property {?} [body] - Sanitized parsed request body, when available.
305
+ * @property {ReturnType<typeof JSON.parse>} [body] - Sanitized parsed request body, when available.
306
306
  * @property {string} httpMethod - Request HTTP method.
307
307
  * @property {string} path - Request path.
308
308
  */
@@ -320,12 +320,12 @@
320
320
  */
321
321
 
322
322
  /**
323
- * @typedef {function({
323
+ * @typedef {(args: {
324
324
  * context: ClientErrorPayloadContext,
325
325
  * error: Error,
326
326
  * request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined,
327
327
  * requestDetails: ErrorRequestDetails | null
328
- * }): Promise<ClientErrorPayloadReporterPayload | void> | ClientErrorPayloadReporterPayload | void} ClientErrorPayloadReporterType
328
+ * }) => Promise<ClientErrorPayloadReporterPayload | void> | ClientErrorPayloadReporterPayload | void} ClientErrorPayloadReporterType
329
329
  */
330
330
 
331
331
  /**
@@ -333,7 +333,7 @@
333
333
  */
334
334
 
335
335
  /**
336
- * @typedef {new (args: {attachmentName?: string, configuration: import("./configuration.js").default, modelClass?: typeof import("./database/record/index.js").default, name?: string, options?: Record<string, ?>}) => object} AttachmentDriverConstructor
336
+ * @typedef {new (args: {attachmentName?: string, configuration: import("./configuration.js").default, modelClass?: typeof import("./database/record/index.js").default, name?: string, options?: Record<string, ReturnType<typeof JSON.parse>>}) => object} AttachmentDriverConstructor
337
337
  */
338
338
 
339
339
  /**
@@ -342,27 +342,27 @@
342
342
  */
343
343
 
344
344
  /**
345
- * @typedef {function({configuration: import("./configuration.js").default}) : ScheduledBackgroundJobsConfiguration | Promise<ScheduledBackgroundJobsConfiguration>} ScheduledBackgroundJobsLoaderType
345
+ * @typedef {(args: {configuration: import("./configuration.js").default}) => ScheduledBackgroundJobsConfiguration | Promise<ScheduledBackgroundJobsConfiguration>} ScheduledBackgroundJobsLoaderType
346
346
  */
347
347
 
348
348
  /**
349
349
  * @typedef {object} AttachmentDriverConfiguration
350
- * @property {function({configuration: import("./configuration.js").default, name: string, options: Record<string, ?>}) : Record<string, ?>} [create] - Optional factory for a custom attachment driver instance.
350
+ * @property {(args: {configuration: import("./configuration.js").default, name: string, options: Record<string, ReturnType<typeof JSON.parse>>}) => Record<string, ReturnType<typeof JSON.parse>>} [create] - Optional factory for a custom attachment driver instance.
351
351
  * @property {AttachmentDriverConstructor} [driverClass] - Optional custom attachment driver class.
352
- * @property {Record<string, ?>} [instance] - Optional custom attachment driver instance.
352
+ * @property {Record<string, ReturnType<typeof JSON.parse>>} [instance] - Optional custom attachment driver instance.
353
353
  */
354
354
 
355
355
  /**
356
356
  * @typedef {object} AttachmentsConfiguration
357
357
  * @property {string} [defaultDriver] - Default attachment storage driver name.
358
- * @property {Record<string, AttachmentDriverConfiguration & Record<string, ?>>} [drivers] - Named attachment driver configurations.
358
+ * @property {Record<string, AttachmentDriverConfiguration & Record<string, ReturnType<typeof JSON.parse>>>} [drivers] - Named attachment driver configurations.
359
359
  * @property {boolean} [allowPathInput] - Whether `{path: ...}` attachment input is allowed.
360
360
  * @property {string[]} [allowedPathPrefixes] - Optional allowlist of directories for `{path: ...}` input.
361
361
  */
362
362
 
363
363
  /**
364
364
  * @typedef {object} MailerBackend
365
- * @property {function({payload: import("./mailer.js").MailerDeliveryPayload, configuration: import("./configuration.js").default}) : Promise<?> | ?} deliver - Deliver a mailer payload.
365
+ * @property {(args: {payload: import("./mailer.js").MailerDeliveryPayload, configuration: import("./configuration.js").default}) => Promise<ReturnType<typeof JSON.parse>> | ReturnType<typeof JSON.parse>} deliver - Deliver a mailer payload.
366
366
  */
367
367
 
368
368
 
@@ -418,7 +418,7 @@
418
418
  * @typedef {object} FrontendModelResourceCustomCommandObject
419
419
  * @property {string} name - camelCase command method name.
420
420
  * @property {Array<{name: string, type: string}>} [args] - Typed command arguments; each generates a named, typed method parameter mapped positionally into the command payload. `type` is a JSDoc type string.
421
- * @property {string} [returnType] - JSDoc type for the command response. When set, the generated method is typed `Promise<returnType>` instead of `Promise<Record<string, ?>>`. Emitted verbatim into the generated frontend model, so it must resolve there.
421
+ * @property {string} [returnType] - JSDoc type for the command response. When set, the generated method is typed `Promise<returnType>` instead of `Promise<Record<string, ReturnType<typeof JSON.parse>>>`. Emitted verbatim into the generated frontend model, so it must resolve there.
422
422
  */
423
423
 
424
424
  /**
@@ -456,15 +456,15 @@
456
456
  * Client-side sync transport owning HTTP POSTs to the framework sync endpoints,
457
457
  * matching the frontend-model websocket client post contract.
458
458
  * @typedef {object} VelociousSyncClientTransport
459
- * @property {(path: string, body?: ?, options?: {headers?: Record<string, string>}) => Promise<{json: () => ?}>} post - Posts one request and resolves a response with a json accessor.
459
+ * @property {(path: string, body?: ReturnType<typeof JSON.parse>, options?: {headers?: Record<string, string>}) => Promise<{json: () => ReturnType<typeof JSON.parse>}>} post - Posts one request and resolves a response with a json accessor.
460
460
  */
461
461
 
462
462
  /**
463
463
  * Websocket client contract required from `sync.client.realtime.createClient`,
464
464
  * matching `VelociousWebsocketClient` / snapreq's websocket client.
465
465
  * @typedef {object} VelociousSyncRealtimeWebsocketClient
466
- * @property {() => Promise<?>} connect - Connects the websocket.
467
- * @property {(channelType: string, options?: {params?: Record<string, ?>, onMessage?: (body: ?) => void, onResume?: () => void, onClose?: (reason: string) => void}) => VelociousSyncRealtimeSubscription} subscribeChannel - Opens one channel subscription.
466
+ * @property {() => Promise<ReturnType<typeof JSON.parse>>} connect - Connects the websocket.
467
+ * @property {(channelType: string, options?: {params?: Record<string, ReturnType<typeof JSON.parse>>, onMessage?: (body: ReturnType<typeof JSON.parse>) => void, onResume?: () => void, onClose?: (reason: string) => void}) => VelociousSyncRealtimeSubscription} subscribeChannel - Opens one channel subscription.
468
468
  * @property {() => Promise<void>} disconnectAndStopReconnect - Closes the socket and stops auto-reconnect.
469
469
  */
470
470
 
@@ -480,7 +480,7 @@
480
480
  * One realtime channel subscription descriptor.
481
481
  * @typedef {object} VelociousSyncRealtimeChannelDescriptor
482
482
  * @property {string} channel - Server channel name to subscribe.
483
- * @property {Record<string, ?>} [params] - Subscribe params (runtime scope values). The framework injects `authenticationToken` automatically.
483
+ * @property {Record<string, ReturnType<typeof JSON.parse>>} [params] - Subscribe params (runtime scope values). The framework injects `authenticationToken` automatically.
484
484
  * @property {string} [resourceType] - Default resource/model name for pushed changes that do not carry their own resourceType.
485
485
  */
486
486
 
@@ -492,7 +492,7 @@
492
492
  * resource applier, echo suppression, and pull-on-reconnect - is derived.
493
493
  * @typedef {object} VelociousSyncClientRealtimeConfiguration
494
494
  * @property {() => VelociousSyncRealtimeWebsocketClient | Promise<VelociousSyncRealtimeWebsocketClient>} createClient - Builds the (unconnected) websocket client; the framework owns connect/disconnect.
495
- * @property {(context: ?) => Array<VelociousSyncRealtimeChannelDescriptor> | Promise<Array<VelociousSyncRealtimeChannelDescriptor>>} [channels] - Deprecated legacy escape hatch: resolves extra app-channel descriptors from the `subscribeRealtime(context)` context. Declared pull scopes subscribe the framework sync channel automatically.
495
+ * @property {(context: ReturnType<typeof JSON.parse>) => Array<VelociousSyncRealtimeChannelDescriptor> | Promise<Array<VelociousSyncRealtimeChannelDescriptor>>} [channels] - Deprecated legacy escape hatch: resolves extra app-channel descriptors from the `subscribeRealtime(context)` context. Declared pull scopes subscribe the framework sync channel automatically.
496
496
  * @property {() => string | Promise<string>} [localOrigin] - Resolves this device's echo origin; pushed messages with a matching `echoOrigin` are dropped.
497
497
  * @property {boolean} [pullOnReconnect] - Fire a coalesced `pull()` when subscriptions become ready or resume after a drop, closing offline gaps. Defaults to true.
498
498
  */
@@ -566,13 +566,13 @@
566
566
 
567
567
  /**
568
568
  * @typedef {object} FrontendModelResourceServerConfiguration
569
- * @property {function({action: "index" | "find" | "create" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default}) : (boolean | void | Promise<boolean | void>)} [beforeAction] - Optional callback run before built-in frontend actions.
570
- * @property {function({action: "index", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default}) : Promise<import("./database/record/index.js").default[]>} [records] - Records loader for frontendIndex.
571
- * @property {function({action: "index" | "find" | "create" | "update", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default, model: import("./database/record/index.js").default}) : Record<string, ?> | Promise<Record<string, ?>>} [serialize] - Record serializer for response payloads.
572
- * @property {function({action: "find" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default, id: string | number}) : Promise<import("./database/record/index.js").default | null>} [find] - Record loader for find/update/destroy/attach/download/url actions.
573
- * @property {function({action: "create", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default, attributes: Record<string, ?>}) : Promise<import("./database/record/index.js").default>} [create] - Custom create callback.
574
- * @property {function({action: "update", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default, model: import("./database/record/index.js").default, attributes: Record<string, ?>}) : Promise<import("./database/record/index.js").default | void>} [update] - Custom update callback.
575
- * @property {function({action: "destroy", controller: import("./controller.js").default, params: Record<string, ?>, modelClass: typeof import("./database/record/index.js").default, model: import("./database/record/index.js").default}) : Promise<void>} [destroy] - Custom destroy callback.
569
+ * @property {(args: {action: "index" | "find" | "create" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default}) => (boolean | void | Promise<boolean | void>)} [beforeAction] - Optional callback run before built-in frontend actions.
570
+ * @property {(args: {action: "index", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default}) => Promise<import("./database/record/index.js").default[]>} [records] - Records loader for frontendIndex.
571
+ * @property {(args: {action: "index" | "find" | "create" | "update", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default, model: import("./database/record/index.js").default}) => Record<string, ReturnType<typeof JSON.parse>> | Promise<Record<string, ReturnType<typeof JSON.parse>>>} [serialize] - Record serializer for response payloads.
572
+ * @property {(args: {action: "find" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default, id: string | number}) => Promise<import("./database/record/index.js").default | null>} [find] - Record loader for find/update/destroy/attach/download/url actions.
573
+ * @property {(args: {action: "create", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default, attributes: Record<string, ReturnType<typeof JSON.parse>>}) => Promise<import("./database/record/index.js").default>} [create] - Custom create callback.
574
+ * @property {(args: {action: "update", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default, model: import("./database/record/index.js").default, attributes: Record<string, ReturnType<typeof JSON.parse>>}) => Promise<import("./database/record/index.js").default | void>} [update] - Custom update callback.
575
+ * @property {(args: {action: "destroy", controller: import("./controller.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, modelClass: typeof import("./database/record/index.js").default, model: import("./database/record/index.js").default}) => Promise<void>} [destroy] - Custom destroy callback.
576
576
  */
577
577
 
578
578
  /**
@@ -603,7 +603,7 @@
603
603
  /**
604
604
  * @typedef {object} RouteResolverHookArgs
605
605
  * @property {import("./configuration.js").default} configuration - Configuration instance.
606
- * @property {Record<string, ?>} params - Mutable request params object.
606
+ * @property {Record<string, ReturnType<typeof JSON.parse>>} params - Mutable request params object.
607
607
  * @property {string} currentPath - Request path without query.
608
608
  * @property {boolean} [hasMatchingCustomRoute] - True when matching a configured custom route.
609
609
  * @property {import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default} request - Request object.
@@ -617,7 +617,7 @@
617
617
  * @property {string} controller - Controller path (for example `accounts`).
618
618
  * @property {typeof import("./controller.js").default} [controllerClass] - Optional controller class override.
619
619
  * @property {string} [controllerPath] - Optional absolute/relative controller file path override.
620
- * @property {Record<string, ?>} [params] - Extra params to merge for controller/action.
620
+ * @property {Record<string, ReturnType<typeof JSON.parse>>} [params] - Extra params to merge for controller/action.
621
621
  * @property {boolean} [skipAbilityResolution] - Whether to run the controller action without resolving request ability.
622
622
  * @property {boolean} [skipControllerConnections] - Whether to run the controller action without the automatic database checkout wrapper.
623
623
  * @property {boolean} [skipTenantResolution] - Whether to run the controller action without resolving request tenant.
@@ -625,7 +625,7 @@
625
625
  */
626
626
 
627
627
  /**
628
- * @typedef {function(RouteResolverHookArgs) : RouteResolverHookResult | null | Promise<RouteResolverHookResult | null>} RouteResolverHookType
628
+ * @typedef {(arg: RouteResolverHookArgs) => RouteResolverHookResult | null | Promise<RouteResolverHookResult | null>} RouteResolverHookType
629
629
  */
630
630
 
631
631
  /**
@@ -633,15 +633,15 @@
633
633
  */
634
634
 
635
635
  /**
636
- * @typedef {function({configuration: import("./configuration.js").default, params: Record<string, ?>, request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, response: import("./http-server/client/response.js").default | undefined}) : import("./authorization/ability.js").default | void | Promise<import("./authorization/ability.js").default | void>} AbilityResolverType
636
+ * @typedef {(args: {configuration: import("./configuration.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, response: import("./http-server/client/response.js").default | undefined}) => import("./authorization/ability.js").default | void | Promise<import("./authorization/ability.js").default | void>} AbilityResolverType
637
637
  */
638
638
 
639
639
  /**
640
- * @typedef {function({configuration: import("./configuration.js").default, params: Record<string, ?>, request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, response: import("./http-server/client/response.js").default | undefined, subscription?: {channel: string, params?: Record<string, ?>}}) : ? | void | Promise<? | void>} TenantResolverType
640
+ * @typedef {(args: {configuration: import("./configuration.js").default, params: Record<string, ReturnType<typeof JSON.parse>>, request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined, response: import("./http-server/client/response.js").default | undefined, subscription?: {channel: string, params?: Record<string, ReturnType<typeof JSON.parse>>}}) => ReturnType<typeof JSON.parse> | void | Promise<ReturnType<typeof JSON.parse> | void>} TenantResolverType
641
641
  */
642
642
 
643
643
  /**
644
- * @typedef {function({configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ?}) : DatabaseConfigurationType | Partial<DatabaseConfigurationType> | void} TenantDatabaseResolverType
644
+ * @typedef {(args: {configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ReturnType<typeof JSON.parse>}) => DatabaseConfigurationType | Partial<DatabaseConfigurationType> | void} TenantDatabaseResolverType
645
645
  */
646
646
 
647
647
  /**
@@ -658,12 +658,12 @@
658
658
 
659
659
  /**
660
660
  * @typedef {object} TenantDatabaseProviderType
661
- * @property {function({configuration: import("./configuration.js").default, identifier: string}) : Array<?> | Promise<Array<?>>} listTenants - Lists tenants that should be created, checked, or migrated for this database identifier.
662
- * @property {function({configuration: import("./configuration.js").default, identifier: string}) : Array<?> | Promise<Array<?>>} [listRestrictTenants] - Lists existing tenants that should be checked for dependent restrict destroys. Defaults to listTenants.
663
- * @property {function({configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ?}) : void | Promise<void>} [createDatabase] - Creates the tenant database/schema for one tenant.
664
- * @property {function({configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ?}) : void | Promise<void>} [dropDatabase] - Drops the tenant database/schema for one tenant.
665
- * @property {function({configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ?}) : void | Promise<void>} [checkTenant] - Checks one tenant database before generic connection validation.
666
- * @property {function({configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, migrationsApplied: number, tenant: ?}) : void | Promise<void>} [afterMigrateTenant] - Runs app-owned tenant work after generic migrations for one tenant. `migrationsApplied` is how many migrations actually ran (0 when the tenant was already up to date), so the app can skip expensive per-tenant work on no-op deploys.
661
+ * @property {(args: {configuration: import("./configuration.js").default, identifier: string}) => Array<ReturnType<typeof JSON.parse>> | Promise<Array<ReturnType<typeof JSON.parse>>>} listTenants - Lists tenants that should be created, checked, or migrated for this database identifier.
662
+ * @property {(args: {configuration: import("./configuration.js").default, identifier: string}) => Array<ReturnType<typeof JSON.parse>> | Promise<Array<ReturnType<typeof JSON.parse>>>} [listRestrictTenants] - Lists existing tenants that should be checked for dependent restrict destroys. Defaults to listTenants.
663
+ * @property {(args: {configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ReturnType<typeof JSON.parse>}) => void | Promise<void>} [createDatabase] - Creates the tenant database/schema for one tenant.
664
+ * @property {(args: {configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ReturnType<typeof JSON.parse>}) => void | Promise<void>} [dropDatabase] - Drops the tenant database/schema for one tenant.
665
+ * @property {(args: {configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, tenant: ReturnType<typeof JSON.parse>}) => void | Promise<void>} [checkTenant] - Checks one tenant database before generic connection validation.
666
+ * @property {(args: {configuration: import("./configuration.js").default, databaseConfiguration: DatabaseConfigurationType, identifier: string, migrationsApplied: number, tenant: ReturnType<typeof JSON.parse>}) => void | Promise<void>} [afterMigrateTenant] - Runs app-owned tenant work after generic migrations for one tenant. `migrationsApplied` is how many migrations actually ran (0 when the tenant was already up to date), so the app can skip expensive per-tenant work on no-op deploys.
667
667
  */
668
668
 
669
669
  /**
@@ -691,9 +691,9 @@
691
691
  * @property {BeaconConfiguration} [beacon] - Beacon broadcast bus configuration.
692
692
  * @property {ScheduledBackgroundJobsConfiguration | ScheduledBackgroundJobsLoaderType} [scheduledBackgroundJobs] - Scheduled background jobs configuration.
693
693
  * @property {MailerBackend} [mailerBackend] - Mail delivery backend.
694
- * @property {function({configuration: import("./configuration.js").default, type: string}) : void} initializeModels - Hook to register models for a given initialization type.
694
+ * @property {(args: {configuration: import("./configuration.js").default, type: string}) => void} initializeModels - Hook to register models for a given initialization type.
695
695
  * @property {InitializersType} [initializers] - Initializer loader for environment bootstrapping.
696
- * @property {string | function() : string} locale - Default locale or locale resolver.
696
+ * @property {string | (() => string)} locale - Default locale or locale resolver.
697
697
  * @property {string[]} locales - Supported locales.
698
698
  * @property {LocaleFallbacksType} localeFallbacks - Locale fallback map.
699
699
  * @property {StructureSqlConfiguration} [structureSql] - Structure SQL generation configuration.