@marinoscar/platform-api 0.1.0-next.3 → 0.1.0-next.4

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 (4251) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/README.md +51 -9
  3. package/dist/ai/ai.constants.d.ts +8 -0
  4. package/dist/ai/ai.constants.d.ts.map +1 -0
  5. package/dist/ai/ai.constants.js +16 -0
  6. package/dist/ai/ai.constants.js.map +1 -0
  7. package/dist/ai/ai.module.d.ts +89 -0
  8. package/dist/ai/ai.module.d.ts.map +1 -0
  9. package/dist/ai/ai.module.js +117 -0
  10. package/dist/ai/ai.module.js.map +1 -0
  11. package/dist/ai/ai.options.d.ts +28 -0
  12. package/dist/ai/ai.options.d.ts.map +1 -0
  13. package/dist/ai/ai.options.js +19 -0
  14. package/dist/ai/ai.options.js.map +1 -0
  15. package/dist/ai/ai.permissions.d.ts +42 -0
  16. package/dist/ai/ai.permissions.d.ts.map +1 -0
  17. package/dist/ai/ai.permissions.js +132 -0
  18. package/dist/ai/ai.permissions.js.map +1 -0
  19. package/dist/ai/ai.system-settings.d.ts +514 -0
  20. package/dist/ai/ai.system-settings.d.ts.map +1 -0
  21. package/dist/ai/ai.system-settings.js +309 -0
  22. package/dist/ai/ai.system-settings.js.map +1 -0
  23. package/dist/ai/ai.user-settings.d.ts +67 -0
  24. package/dist/ai/ai.user-settings.d.ts.map +1 -0
  25. package/dist/ai/ai.user-settings.js +64 -0
  26. package/dist/ai/ai.user-settings.js.map +1 -0
  27. package/dist/ai/catalog/ai-catalog-refresh.handler.d.ts +34 -0
  28. package/dist/ai/catalog/ai-catalog-refresh.handler.d.ts.map +1 -0
  29. package/dist/ai/catalog/ai-catalog-refresh.handler.js +121 -0
  30. package/dist/ai/catalog/ai-catalog-refresh.handler.js.map +1 -0
  31. package/dist/ai/catalog/ai-catalog-refresh.task.d.ts +15 -0
  32. package/dist/ai/catalog/ai-catalog-refresh.task.d.ts.map +1 -0
  33. package/dist/ai/catalog/ai-catalog-refresh.task.js +101 -0
  34. package/dist/ai/catalog/ai-catalog-refresh.task.js.map +1 -0
  35. package/dist/ai/catalog/ai-catalog.events.d.ts +11 -0
  36. package/dist/ai/catalog/ai-catalog.events.d.ts.map +1 -0
  37. package/dist/ai/catalog/ai-catalog.events.js +21 -0
  38. package/dist/ai/catalog/ai-catalog.events.js.map +1 -0
  39. package/dist/ai/catalog/ai-catalog.module.d.ts +9 -0
  40. package/dist/ai/catalog/ai-catalog.module.d.ts.map +1 -0
  41. package/dist/ai/catalog/ai-catalog.module.js +39 -0
  42. package/dist/ai/catalog/ai-catalog.module.js.map +1 -0
  43. package/dist/ai/catalog/ai-catalog.service.d.ts +113 -0
  44. package/dist/ai/catalog/ai-catalog.service.d.ts.map +1 -0
  45. package/dist/ai/catalog/ai-catalog.service.js +371 -0
  46. package/dist/ai/catalog/ai-catalog.service.js.map +1 -0
  47. package/dist/ai/catalog/doctor/egress/ai-catalog-refresh.egress.contributor.d.ts +24 -0
  48. package/dist/ai/catalog/doctor/egress/ai-catalog-refresh.egress.contributor.d.ts.map +1 -0
  49. package/dist/ai/catalog/doctor/egress/ai-catalog-refresh.egress.contributor.js +70 -0
  50. package/dist/ai/catalog/doctor/egress/ai-catalog-refresh.egress.contributor.js.map +1 -0
  51. package/dist/ai/config/ai-admin.controller.d.ts +524 -0
  52. package/dist/ai/config/ai-admin.controller.d.ts.map +1 -0
  53. package/dist/ai/config/ai-admin.controller.js +352 -0
  54. package/dist/ai/config/ai-admin.controller.js.map +1 -0
  55. package/dist/ai/config/ai-config-admin.service.d.ts +199 -0
  56. package/dist/ai/config/ai-config-admin.service.d.ts.map +1 -0
  57. package/dist/ai/config/ai-config-admin.service.js +579 -0
  58. package/dist/ai/config/ai-config-admin.service.js.map +1 -0
  59. package/dist/ai/config/ai-config.module.d.ts +10 -0
  60. package/dist/ai/config/ai-config.module.d.ts.map +1 -0
  61. package/dist/ai/config/ai-config.module.js +69 -0
  62. package/dist/ai/config/ai-config.module.js.map +1 -0
  63. package/dist/ai/config/ai-config.service.d.ts +189 -0
  64. package/dist/ai/config/ai-config.service.d.ts.map +1 -0
  65. package/dist/ai/config/ai-config.service.js +334 -0
  66. package/dist/ai/config/ai-config.service.js.map +1 -0
  67. package/dist/ai/config/ai-credential.constants.d.ts +32 -0
  68. package/dist/ai/config/ai-credential.constants.d.ts.map +1 -0
  69. package/dist/ai/config/ai-credential.constants.js +66 -0
  70. package/dist/ai/config/ai-credential.constants.js.map +1 -0
  71. package/dist/ai/config/ai-enabled.guard.d.ts +17 -0
  72. package/dist/ai/config/ai-enabled.guard.d.ts.map +1 -0
  73. package/dist/ai/config/ai-enabled.guard.js +61 -0
  74. package/dist/ai/config/ai-enabled.guard.js.map +1 -0
  75. package/dist/ai/config/ai-models-admin.service.d.ts +44 -0
  76. package/dist/ai/config/ai-models-admin.service.d.ts.map +1 -0
  77. package/dist/ai/config/ai-models-admin.service.js +238 -0
  78. package/dist/ai/config/ai-models-admin.service.js.map +1 -0
  79. package/dist/ai/config/ai-org-enabled.interceptor.d.ts +21 -0
  80. package/dist/ai/config/ai-org-enabled.interceptor.d.ts.map +1 -0
  81. package/dist/ai/config/ai-org-enabled.interceptor.js +59 -0
  82. package/dist/ai/config/ai-org-enabled.interceptor.js.map +1 -0
  83. package/dist/ai/config/ai-provider-test.service.d.ts +39 -0
  84. package/dist/ai/config/ai-provider-test.service.d.ts.map +1 -0
  85. package/dist/ai/config/ai-provider-test.service.js +281 -0
  86. package/dist/ai/config/ai-provider-test.service.js.map +1 -0
  87. package/dist/ai/config/ai-public.controller.d.ts +29 -0
  88. package/dist/ai/config/ai-public.controller.d.ts.map +1 -0
  89. package/dist/ai/config/ai-public.controller.js +69 -0
  90. package/dist/ai/config/ai-public.controller.js.map +1 -0
  91. package/dist/ai/config/doctor/ai-enabled.doctor-check.d.ts +25 -0
  92. package/dist/ai/config/doctor/ai-enabled.doctor-check.d.ts.map +1 -0
  93. package/dist/ai/config/doctor/ai-enabled.doctor-check.js +53 -0
  94. package/dist/ai/config/doctor/ai-enabled.doctor-check.js.map +1 -0
  95. package/dist/ai/config/doctor/ai-providers.doctor-check.d.ts +31 -0
  96. package/dist/ai/config/doctor/ai-providers.doctor-check.d.ts.map +1 -0
  97. package/dist/ai/config/doctor/ai-providers.doctor-check.js +92 -0
  98. package/dist/ai/config/doctor/ai-providers.doctor-check.js.map +1 -0
  99. package/dist/ai/config/doctor/egress/ai-provider-endpoint.d.ts +20 -0
  100. package/dist/ai/config/doctor/egress/ai-provider-endpoint.d.ts.map +1 -0
  101. package/dist/ai/config/doctor/egress/ai-provider-endpoint.js +30 -0
  102. package/dist/ai/config/doctor/egress/ai-provider-endpoint.js.map +1 -0
  103. package/dist/ai/config/doctor/egress/ai-providers.egress.contributor.d.ts +23 -0
  104. package/dist/ai/config/doctor/egress/ai-providers.egress.contributor.d.ts.map +1 -0
  105. package/dist/ai/config/doctor/egress/ai-providers.egress.contributor.js +67 -0
  106. package/dist/ai/config/doctor/egress/ai-providers.egress.contributor.js.map +1 -0
  107. package/dist/ai/config/doctor/egress/ai-realtime.egress.contributor.d.ts +22 -0
  108. package/dist/ai/config/doctor/egress/ai-realtime.egress.contributor.d.ts.map +1 -0
  109. package/dist/ai/config/doctor/egress/ai-realtime.egress.contributor.js +67 -0
  110. package/dist/ai/config/doctor/egress/ai-realtime.egress.contributor.js.map +1 -0
  111. package/dist/ai/config/dto/ai-capabilities.dto.d.ts +24 -0
  112. package/dist/ai/config/dto/ai-capabilities.dto.d.ts.map +1 -0
  113. package/dist/ai/config/dto/ai-capabilities.dto.js +43 -0
  114. package/dist/ai/config/dto/ai-capabilities.dto.js.map +1 -0
  115. package/dist/ai/config/dto/ai-config-response.dto.d.ts +548 -0
  116. package/dist/ai/config/dto/ai-config-response.dto.d.ts.map +1 -0
  117. package/dist/ai/config/dto/ai-config-response.dto.js +181 -0
  118. package/dist/ai/config/dto/ai-config-response.dto.js.map +1 -0
  119. package/dist/ai/config/dto/ai-model.dto.d.ts +161 -0
  120. package/dist/ai/config/dto/ai-model.dto.d.ts.map +1 -0
  121. package/dist/ai/config/dto/ai-model.dto.js +127 -0
  122. package/dist/ai/config/dto/ai-model.dto.js.map +1 -0
  123. package/dist/ai/config/dto/ai-provider-key.dto.d.ts +26 -0
  124. package/dist/ai/config/dto/ai-provider-key.dto.d.ts.map +1 -0
  125. package/dist/ai/config/dto/ai-provider-key.dto.js +27 -0
  126. package/dist/ai/config/dto/ai-provider-key.dto.js.map +1 -0
  127. package/dist/ai/config/dto/ai-provider-test.dto.d.ts +169 -0
  128. package/dist/ai/config/dto/ai-provider-test.dto.d.ts.map +1 -0
  129. package/dist/ai/config/dto/ai-provider-test.dto.js +95 -0
  130. package/dist/ai/config/dto/ai-provider-test.dto.js.map +1 -0
  131. package/dist/ai/config/dto/ai-public-config.dto.d.ts +70 -0
  132. package/dist/ai/config/dto/ai-public-config.dto.d.ts.map +1 -0
  133. package/dist/ai/config/dto/ai-public-config.dto.js +106 -0
  134. package/dist/ai/config/dto/ai-public-config.dto.js.map +1 -0
  135. package/dist/ai/config/dto/update-ai-config.dto.d.ts +154 -0
  136. package/dist/ai/config/dto/update-ai-config.dto.d.ts.map +1 -0
  137. package/dist/ai/config/dto/update-ai-config.dto.js +184 -0
  138. package/dist/ai/config/dto/update-ai-config.dto.js.map +1 -0
  139. package/dist/ai/config/index.d.ts +5 -0
  140. package/dist/ai/config/index.d.ts.map +1 -0
  141. package/dist/ai/config/index.js +22 -0
  142. package/dist/ai/config/index.js.map +1 -0
  143. package/dist/ai/core/ai-core.module.d.ts +13 -0
  144. package/dist/ai/core/ai-core.module.d.ts.map +1 -0
  145. package/dist/ai/core/ai-core.module.js +31 -0
  146. package/dist/ai/core/ai-core.module.js.map +1 -0
  147. package/dist/ai/core/ai-error.d.ts +161 -0
  148. package/dist/ai/core/ai-error.d.ts.map +1 -0
  149. package/dist/ai/core/ai-error.js +233 -0
  150. package/dist/ai/core/ai-error.js.map +1 -0
  151. package/dist/ai/core/capabilities.d.ts +127 -0
  152. package/dist/ai/core/capabilities.d.ts.map +1 -0
  153. package/dist/ai/core/capabilities.js +112 -0
  154. package/dist/ai/core/capabilities.js.map +1 -0
  155. package/dist/ai/core/capability-registry.d.ts +83 -0
  156. package/dist/ai/core/capability-registry.d.ts.map +1 -0
  157. package/dist/ai/core/capability-registry.js +145 -0
  158. package/dist/ai/core/capability-registry.js.map +1 -0
  159. package/dist/ai/core/conversation.d.ts +16 -0
  160. package/dist/ai/core/conversation.d.ts.map +1 -0
  161. package/dist/ai/core/conversation.js +57 -0
  162. package/dist/ai/core/conversation.js.map +1 -0
  163. package/dist/ai/core/hosted-tools.d.ts +173 -0
  164. package/dist/ai/core/hosted-tools.d.ts.map +1 -0
  165. package/dist/ai/core/hosted-tools.js +289 -0
  166. package/dist/ai/core/hosted-tools.js.map +1 -0
  167. package/dist/ai/core/index.d.ts +14 -0
  168. package/dist/ai/core/index.d.ts.map +1 -0
  169. package/dist/ai/core/index.js +32 -0
  170. package/dist/ai/core/index.js.map +1 -0
  171. package/dist/ai/core/operation-registry.d.ts +104 -0
  172. package/dist/ai/core/operation-registry.d.ts.map +1 -0
  173. package/dist/ai/core/operation-registry.js +140 -0
  174. package/dist/ai/core/operation-registry.js.map +1 -0
  175. package/dist/ai/core/provider-adapter.interface.d.ts +261 -0
  176. package/dist/ai/core/provider-adapter.interface.d.ts.map +1 -0
  177. package/dist/ai/core/provider-adapter.interface.js +33 -0
  178. package/dist/ai/core/provider-adapter.interface.js.map +1 -0
  179. package/dist/ai/core/provider-registry.d.ts +52 -0
  180. package/dist/ai/core/provider-registry.d.ts.map +1 -0
  181. package/dist/ai/core/provider-registry.js +163 -0
  182. package/dist/ai/core/provider-registry.js.map +1 -0
  183. package/dist/ai/core/structured-output.d.ts +50 -0
  184. package/dist/ai/core/structured-output.d.ts.map +1 -0
  185. package/dist/ai/core/structured-output.js +83 -0
  186. package/dist/ai/core/structured-output.js.map +1 -0
  187. package/dist/ai/core/tools.d.ts +94 -0
  188. package/dist/ai/core/tools.d.ts.map +1 -0
  189. package/dist/ai/core/tools.js +76 -0
  190. package/dist/ai/core/tools.js.map +1 -0
  191. package/dist/ai/core/types/file-inputs.types.d.ts +103 -0
  192. package/dist/ai/core/types/file-inputs.types.d.ts.map +1 -0
  193. package/dist/ai/core/types/file-inputs.types.js +81 -0
  194. package/dist/ai/core/types/file-inputs.types.js.map +1 -0
  195. package/dist/ai/core/types/media.types.d.ts +617 -0
  196. package/dist/ai/core/types/media.types.d.ts.map +1 -0
  197. package/dist/ai/core/types/media.types.js +206 -0
  198. package/dist/ai/core/types/media.types.js.map +1 -0
  199. package/dist/ai/core/types/responses.types.d.ts +620 -0
  200. package/dist/ai/core/types/responses.types.d.ts.map +1 -0
  201. package/dist/ai/core/types/responses.types.js +60 -0
  202. package/dist/ai/core/types/responses.types.js.map +1 -0
  203. package/dist/ai/data/ai-db.d.ts +435 -0
  204. package/dist/ai/data/ai-db.d.ts.map +1 -0
  205. package/dist/ai/data/ai-db.js +22 -0
  206. package/dist/ai/data/ai-db.js.map +1 -0
  207. package/dist/ai/data/prisma.d.ts +54 -0
  208. package/dist/ai/data/prisma.d.ts.map +1 -0
  209. package/dist/ai/data/prisma.js +20 -0
  210. package/dist/ai/data/prisma.js.map +1 -0
  211. package/dist/ai/features/ai-feature.registry.d.ts +63 -0
  212. package/dist/ai/features/ai-feature.registry.d.ts.map +1 -0
  213. package/dist/ai/features/ai-feature.registry.js +99 -0
  214. package/dist/ai/features/ai-feature.registry.js.map +1 -0
  215. package/dist/ai/features/ai-features.controller.d.ts +23 -0
  216. package/dist/ai/features/ai-features.controller.d.ts.map +1 -0
  217. package/dist/ai/features/ai-features.controller.js +74 -0
  218. package/dist/ai/features/ai-features.controller.js.map +1 -0
  219. package/dist/ai/features/ai-features.module.d.ts +10 -0
  220. package/dist/ai/features/ai-features.module.d.ts.map +1 -0
  221. package/dist/ai/features/ai-features.module.js +33 -0
  222. package/dist/ai/features/ai-features.module.js.map +1 -0
  223. package/dist/ai/features/ai-features.service.d.ts +35 -0
  224. package/dist/ai/features/ai-features.service.d.ts.map +1 -0
  225. package/dist/ai/features/ai-features.service.js +68 -0
  226. package/dist/ai/features/ai-features.service.js.map +1 -0
  227. package/dist/ai/features/dto/ai-feature.dto.d.ts +16 -0
  228. package/dist/ai/features/dto/ai-feature.dto.d.ts.map +1 -0
  229. package/dist/ai/features/dto/ai-feature.dto.js +10 -0
  230. package/dist/ai/features/dto/ai-feature.dto.js.map +1 -0
  231. package/dist/ai/http/ai-audio.controller.d.ts +10 -0
  232. package/dist/ai/http/ai-audio.controller.d.ts.map +1 -0
  233. package/dist/ai/http/ai-audio.controller.js +194 -0
  234. package/dist/ai/http/ai-audio.controller.js.map +1 -0
  235. package/dist/ai/http/ai-embeddings.controller.d.ts +9 -0
  236. package/dist/ai/http/ai-embeddings.controller.d.ts.map +1 -0
  237. package/dist/ai/http/ai-embeddings.controller.js +132 -0
  238. package/dist/ai/http/ai-embeddings.controller.js.map +1 -0
  239. package/dist/ai/http/ai-http-request.d.ts +5 -0
  240. package/dist/ai/http/ai-http-request.d.ts.map +1 -0
  241. package/dist/ai/http/ai-http-request.js +41 -0
  242. package/dist/ai/http/ai-http-request.js.map +1 -0
  243. package/dist/ai/http/ai-http.module.d.ts +3 -0
  244. package/dist/ai/http/ai-http.module.d.ts.map +1 -0
  245. package/dist/ai/http/ai-http.module.js +44 -0
  246. package/dist/ai/http/ai-http.module.js.map +1 -0
  247. package/dist/ai/http/ai-images.controller.d.ts +10 -0
  248. package/dist/ai/http/ai-images.controller.d.ts.map +1 -0
  249. package/dist/ai/http/ai-images.controller.js +171 -0
  250. package/dist/ai/http/ai-images.controller.js.map +1 -0
  251. package/dist/ai/http/ai-realtime.controller.d.ts +8 -0
  252. package/dist/ai/http/ai-realtime.controller.d.ts.map +1 -0
  253. package/dist/ai/http/ai-realtime.controller.js +138 -0
  254. package/dist/ai/http/ai-realtime.controller.js.map +1 -0
  255. package/dist/ai/http/ai-responses.controller.d.ts +22 -0
  256. package/dist/ai/http/ai-responses.controller.d.ts.map +1 -0
  257. package/dist/ai/http/ai-responses.controller.js +235 -0
  258. package/dist/ai/http/ai-responses.controller.js.map +1 -0
  259. package/dist/ai/http/ai-runs.controller.d.ts +20 -0
  260. package/dist/ai/http/ai-runs.controller.d.ts.map +1 -0
  261. package/dist/ai/http/ai-runs.controller.js +186 -0
  262. package/dist/ai/http/ai-runs.controller.js.map +1 -0
  263. package/dist/ai/http/ai-sse.d.ts +55 -0
  264. package/dist/ai/http/ai-sse.d.ts.map +1 -0
  265. package/dist/ai/http/ai-sse.js +143 -0
  266. package/dist/ai/http/ai-sse.js.map +1 -0
  267. package/dist/ai/http/dto/ai-audio.dto.d.ts +67 -0
  268. package/dist/ai/http/dto/ai-audio.dto.d.ts.map +1 -0
  269. package/dist/ai/http/dto/ai-audio.dto.js +88 -0
  270. package/dist/ai/http/dto/ai-audio.dto.js.map +1 -0
  271. package/dist/ai/http/dto/ai-embeddings.dto.d.ts +53 -0
  272. package/dist/ai/http/dto/ai-embeddings.dto.d.ts.map +1 -0
  273. package/dist/ai/http/dto/ai-embeddings.dto.js +63 -0
  274. package/dist/ai/http/dto/ai-embeddings.dto.js.map +1 -0
  275. package/dist/ai/http/dto/ai-images.dto.d.ts +109 -0
  276. package/dist/ai/http/dto/ai-images.dto.d.ts.map +1 -0
  277. package/dist/ai/http/dto/ai-images.dto.js +57 -0
  278. package/dist/ai/http/dto/ai-images.dto.js.map +1 -0
  279. package/dist/ai/http/dto/ai-realtime.dto.d.ts +43 -0
  280. package/dist/ai/http/dto/ai-realtime.dto.d.ts.map +1 -0
  281. package/dist/ai/http/dto/ai-realtime.dto.js +70 -0
  282. package/dist/ai/http/dto/ai-realtime.dto.js.map +1 -0
  283. package/dist/ai/http/dto/ai-response-request.dto.d.ts +196 -0
  284. package/dist/ai/http/dto/ai-response-request.dto.d.ts.map +1 -0
  285. package/dist/ai/http/dto/ai-response-request.dto.js +126 -0
  286. package/dist/ai/http/dto/ai-response-request.dto.js.map +1 -0
  287. package/dist/ai/http/dto/ai-response.dto.d.ts +838 -0
  288. package/dist/ai/http/dto/ai-response.dto.d.ts.map +1 -0
  289. package/dist/ai/http/dto/ai-response.dto.js +258 -0
  290. package/dist/ai/http/dto/ai-response.dto.js.map +1 -0
  291. package/dist/ai/http/json-schema-structured-output.d.ts +21 -0
  292. package/dist/ai/http/json-schema-structured-output.d.ts.map +1 -0
  293. package/dist/ai/http/json-schema-structured-output.js +69 -0
  294. package/dist/ai/http/json-schema-structured-output.js.map +1 -0
  295. package/dist/ai/index.d.ts +67 -0
  296. package/dist/ai/index.d.ts.map +1 -0
  297. package/dist/ai/index.js +178 -0
  298. package/dist/ai/index.js.map +1 -0
  299. package/dist/ai/keys/ai-config-writer.lookup.d.ts +21 -0
  300. package/dist/ai/keys/ai-config-writer.lookup.d.ts.map +1 -0
  301. package/dist/ai/keys/ai-config-writer.lookup.js +87 -0
  302. package/dist/ai/keys/ai-config-writer.lookup.js.map +1 -0
  303. package/dist/ai/keys/ai-key-resolver.service.d.ts +107 -0
  304. package/dist/ai/keys/ai-key-resolver.service.d.ts.map +1 -0
  305. package/dist/ai/keys/ai-key-resolver.service.js +161 -0
  306. package/dist/ai/keys/ai-key-resolver.service.js.map +1 -0
  307. package/dist/ai/keys/ai-keys-catalog.listener.d.ts +9 -0
  308. package/dist/ai/keys/ai-keys-catalog.listener.d.ts.map +1 -0
  309. package/dist/ai/keys/ai-keys-catalog.listener.js +83 -0
  310. package/dist/ai/keys/ai-keys-catalog.listener.js.map +1 -0
  311. package/dist/ai/keys/ai-keys-recheck.handler.d.ts +27 -0
  312. package/dist/ai/keys/ai-keys-recheck.handler.d.ts.map +1 -0
  313. package/dist/ai/keys/ai-keys-recheck.handler.js +96 -0
  314. package/dist/ai/keys/ai-keys-recheck.handler.js.map +1 -0
  315. package/dist/ai/keys/ai-keys-recheck.task.d.ts +20 -0
  316. package/dist/ai/keys/ai-keys-recheck.task.d.ts.map +1 -0
  317. package/dist/ai/keys/ai-keys-recheck.task.js +113 -0
  318. package/dist/ai/keys/ai-keys-recheck.task.js.map +1 -0
  319. package/dist/ai/keys/ai-keys.module.d.ts +3 -0
  320. package/dist/ai/keys/ai-keys.module.d.ts.map +1 -0
  321. package/dist/ai/keys/ai-keys.module.js +57 -0
  322. package/dist/ai/keys/ai-keys.module.js.map +1 -0
  323. package/dist/ai/keys/ai-user-key.constants.d.ts +15 -0
  324. package/dist/ai/keys/ai-user-key.constants.d.ts.map +1 -0
  325. package/dist/ai/keys/ai-user-key.constants.js +29 -0
  326. package/dist/ai/keys/ai-user-key.constants.js.map +1 -0
  327. package/dist/ai/keys/dto/org-ai-key.dto.d.ts +18 -0
  328. package/dist/ai/keys/dto/org-ai-key.dto.d.ts.map +1 -0
  329. package/dist/ai/keys/dto/org-ai-key.dto.js +14 -0
  330. package/dist/ai/keys/dto/org-ai-key.dto.js.map +1 -0
  331. package/dist/ai/keys/dto/usable-ai-model.dto.d.ts +51 -0
  332. package/dist/ai/keys/dto/usable-ai-model.dto.d.ts.map +1 -0
  333. package/dist/ai/keys/dto/usable-ai-model.dto.js +45 -0
  334. package/dist/ai/keys/dto/usable-ai-model.dto.js.map +1 -0
  335. package/dist/ai/keys/dto/user-ai-key.dto.d.ts +155 -0
  336. package/dist/ai/keys/dto/user-ai-key.dto.d.ts.map +1 -0
  337. package/dist/ai/keys/dto/user-ai-key.dto.js +93 -0
  338. package/dist/ai/keys/dto/user-ai-key.dto.js.map +1 -0
  339. package/dist/ai/keys/org-key.service.d.ts +82 -0
  340. package/dist/ai/keys/org-key.service.d.ts.map +1 -0
  341. package/dist/ai/keys/org-key.service.js +183 -0
  342. package/dist/ai/keys/org-key.service.js.map +1 -0
  343. package/dist/ai/keys/org-keys.controller.d.ts +28 -0
  344. package/dist/ai/keys/org-keys.controller.d.ts.map +1 -0
  345. package/dist/ai/keys/org-keys.controller.js +129 -0
  346. package/dist/ai/keys/org-keys.controller.js.map +1 -0
  347. package/dist/ai/keys/usable-models.service.d.ts +48 -0
  348. package/dist/ai/keys/usable-models.service.d.ts.map +1 -0
  349. package/dist/ai/keys/usable-models.service.js +186 -0
  350. package/dist/ai/keys/usable-models.service.js.map +1 -0
  351. package/dist/ai/keys/user-ai-keys.controller.d.ts +64 -0
  352. package/dist/ai/keys/user-ai-keys.controller.d.ts.map +1 -0
  353. package/dist/ai/keys/user-ai-keys.controller.js +204 -0
  354. package/dist/ai/keys/user-ai-keys.controller.js.map +1 -0
  355. package/dist/ai/keys/user-ai-keys.service.d.ts +143 -0
  356. package/dist/ai/keys/user-ai-keys.service.d.ts.map +1 -0
  357. package/dist/ai/keys/user-ai-keys.service.js +491 -0
  358. package/dist/ai/keys/user-ai-keys.service.js.map +1 -0
  359. package/dist/ai/ports.d.ts +236 -0
  360. package/dist/ai/ports.d.ts.map +1 -0
  361. package/dist/ai/ports.js +85 -0
  362. package/dist/ai/ports.js.map +1 -0
  363. package/dist/ai/providers/ai-provider-definition.d.ts +199 -0
  364. package/dist/ai/providers/ai-provider-definition.d.ts.map +1 -0
  365. package/dist/ai/providers/ai-provider-definition.js +219 -0
  366. package/dist/ai/providers/ai-provider-definition.js.map +1 -0
  367. package/dist/ai/providers/anthropic/anthropic-client.factory.d.ts +20 -0
  368. package/dist/ai/providers/anthropic/anthropic-client.factory.d.ts.map +1 -0
  369. package/dist/ai/providers/anthropic/anthropic-client.factory.js +84 -0
  370. package/dist/ai/providers/anthropic/anthropic-client.factory.js.map +1 -0
  371. package/dist/ai/providers/anthropic/anthropic-errors.d.ts +16 -0
  372. package/dist/ai/providers/anthropic/anthropic-errors.d.ts.map +1 -0
  373. package/dist/ai/providers/anthropic/anthropic-errors.js +156 -0
  374. package/dist/ai/providers/anthropic/anthropic-errors.js.map +1 -0
  375. package/dist/ai/providers/anthropic/anthropic-messages.mapper.d.ts +80 -0
  376. package/dist/ai/providers/anthropic/anthropic-messages.mapper.d.ts.map +1 -0
  377. package/dist/ai/providers/anthropic/anthropic-messages.mapper.js +536 -0
  378. package/dist/ai/providers/anthropic/anthropic-messages.mapper.js.map +1 -0
  379. package/dist/ai/providers/anthropic/anthropic-model-catalog.d.ts +49 -0
  380. package/dist/ai/providers/anthropic/anthropic-model-catalog.d.ts.map +1 -0
  381. package/dist/ai/providers/anthropic/anthropic-model-catalog.js +198 -0
  382. package/dist/ai/providers/anthropic/anthropic-model-catalog.js.map +1 -0
  383. package/dist/ai/providers/anthropic/anthropic-stream.mapper.d.ts +35 -0
  384. package/dist/ai/providers/anthropic/anthropic-stream.mapper.d.ts.map +1 -0
  385. package/dist/ai/providers/anthropic/anthropic-stream.mapper.js +203 -0
  386. package/dist/ai/providers/anthropic/anthropic-stream.mapper.js.map +1 -0
  387. package/dist/ai/providers/anthropic/anthropic.adapter.d.ts +59 -0
  388. package/dist/ai/providers/anthropic/anthropic.adapter.d.ts.map +1 -0
  389. package/dist/ai/providers/anthropic/anthropic.adapter.js +327 -0
  390. package/dist/ai/providers/anthropic/anthropic.adapter.js.map +1 -0
  391. package/dist/ai/providers/anthropic/anthropic.module.d.ts +11 -0
  392. package/dist/ai/providers/anthropic/anthropic.module.d.ts.map +1 -0
  393. package/dist/ai/providers/anthropic/anthropic.module.js +32 -0
  394. package/dist/ai/providers/anthropic/anthropic.module.js.map +1 -0
  395. package/dist/ai/providers/anthropic/anthropic.provider-definition.d.ts +12 -0
  396. package/dist/ai/providers/anthropic/anthropic.provider-definition.d.ts.map +1 -0
  397. package/dist/ai/providers/anthropic/anthropic.provider-definition.js +24 -0
  398. package/dist/ai/providers/anthropic/anthropic.provider-definition.js.map +1 -0
  399. package/dist/ai/providers/anthropic/testing/anthropic-fixtures.d.ts +18 -0
  400. package/dist/ai/providers/anthropic/testing/anthropic-fixtures.d.ts.map +1 -0
  401. package/dist/ai/providers/anthropic/testing/anthropic-fixtures.js +120 -0
  402. package/dist/ai/providers/anthropic/testing/anthropic-fixtures.js.map +1 -0
  403. package/dist/ai/providers/anthropic/testing/anthropic-mock-transport.d.ts +59 -0
  404. package/dist/ai/providers/anthropic/testing/anthropic-mock-transport.d.ts.map +1 -0
  405. package/dist/ai/providers/anthropic/testing/anthropic-mock-transport.js +206 -0
  406. package/dist/ai/providers/anthropic/testing/anthropic-mock-transport.js.map +1 -0
  407. package/dist/ai/providers/azure-openai/azure-openai-client.factory.d.ts +21 -0
  408. package/dist/ai/providers/azure-openai/azure-openai-client.factory.d.ts.map +1 -0
  409. package/dist/ai/providers/azure-openai/azure-openai-client.factory.js +87 -0
  410. package/dist/ai/providers/azure-openai/azure-openai-client.factory.js.map +1 -0
  411. package/dist/ai/providers/azure-openai/azure-openai-settings.d.ts +23 -0
  412. package/dist/ai/providers/azure-openai/azure-openai-settings.d.ts.map +1 -0
  413. package/dist/ai/providers/azure-openai/azure-openai-settings.js +54 -0
  414. package/dist/ai/providers/azure-openai/azure-openai-settings.js.map +1 -0
  415. package/dist/ai/providers/azure-openai/azure-openai.adapter.d.ts +39 -0
  416. package/dist/ai/providers/azure-openai/azure-openai.adapter.d.ts.map +1 -0
  417. package/dist/ai/providers/azure-openai/azure-openai.adapter.js +205 -0
  418. package/dist/ai/providers/azure-openai/azure-openai.adapter.js.map +1 -0
  419. package/dist/ai/providers/azure-openai/azure-openai.module.d.ts +12 -0
  420. package/dist/ai/providers/azure-openai/azure-openai.module.d.ts.map +1 -0
  421. package/dist/ai/providers/azure-openai/azure-openai.module.js +33 -0
  422. package/dist/ai/providers/azure-openai/azure-openai.module.js.map +1 -0
  423. package/dist/ai/providers/azure-openai/azure-openai.provider-definition.d.ts +12 -0
  424. package/dist/ai/providers/azure-openai/azure-openai.provider-definition.d.ts.map +1 -0
  425. package/dist/ai/providers/azure-openai/azure-openai.provider-definition.js +28 -0
  426. package/dist/ai/providers/azure-openai/azure-openai.provider-definition.js.map +1 -0
  427. package/dist/ai/providers/builtin-ai-providers.d.ts +8 -0
  428. package/dist/ai/providers/builtin-ai-providers.d.ts.map +1 -0
  429. package/dist/ai/providers/builtin-ai-providers.js +41 -0
  430. package/dist/ai/providers/builtin-ai-providers.js.map +1 -0
  431. package/dist/ai/providers/gemini/gemini-client.factory.d.ts +23 -0
  432. package/dist/ai/providers/gemini/gemini-client.factory.d.ts.map +1 -0
  433. package/dist/ai/providers/gemini/gemini-client.factory.js +100 -0
  434. package/dist/ai/providers/gemini/gemini-client.factory.js.map +1 -0
  435. package/dist/ai/providers/gemini/gemini-content.mapper.d.ts +98 -0
  436. package/dist/ai/providers/gemini/gemini-content.mapper.d.ts.map +1 -0
  437. package/dist/ai/providers/gemini/gemini-content.mapper.js +665 -0
  438. package/dist/ai/providers/gemini/gemini-content.mapper.js.map +1 -0
  439. package/dist/ai/providers/gemini/gemini-embeddings.mapper.d.ts +13 -0
  440. package/dist/ai/providers/gemini/gemini-embeddings.mapper.d.ts.map +1 -0
  441. package/dist/ai/providers/gemini/gemini-embeddings.mapper.js +78 -0
  442. package/dist/ai/providers/gemini/gemini-embeddings.mapper.js.map +1 -0
  443. package/dist/ai/providers/gemini/gemini-errors.d.ts +32 -0
  444. package/dist/ai/providers/gemini/gemini-errors.d.ts.map +1 -0
  445. package/dist/ai/providers/gemini/gemini-errors.js +191 -0
  446. package/dist/ai/providers/gemini/gemini-errors.js.map +1 -0
  447. package/dist/ai/providers/gemini/gemini-model-catalog.d.ts +45 -0
  448. package/dist/ai/providers/gemini/gemini-model-catalog.d.ts.map +1 -0
  449. package/dist/ai/providers/gemini/gemini-model-catalog.js +264 -0
  450. package/dist/ai/providers/gemini/gemini-model-catalog.js.map +1 -0
  451. package/dist/ai/providers/gemini/gemini-stream.mapper.d.ts +31 -0
  452. package/dist/ai/providers/gemini/gemini-stream.mapper.d.ts.map +1 -0
  453. package/dist/ai/providers/gemini/gemini-stream.mapper.js +118 -0
  454. package/dist/ai/providers/gemini/gemini-stream.mapper.js.map +1 -0
  455. package/dist/ai/providers/gemini/gemini.adapter.d.ts +66 -0
  456. package/dist/ai/providers/gemini/gemini.adapter.d.ts.map +1 -0
  457. package/dist/ai/providers/gemini/gemini.adapter.js +382 -0
  458. package/dist/ai/providers/gemini/gemini.adapter.js.map +1 -0
  459. package/dist/ai/providers/gemini/gemini.module.d.ts +11 -0
  460. package/dist/ai/providers/gemini/gemini.module.d.ts.map +1 -0
  461. package/dist/ai/providers/gemini/gemini.module.js +32 -0
  462. package/dist/ai/providers/gemini/gemini.module.js.map +1 -0
  463. package/dist/ai/providers/gemini/gemini.provider-definition.d.ts +12 -0
  464. package/dist/ai/providers/gemini/gemini.provider-definition.d.ts.map +1 -0
  465. package/dist/ai/providers/gemini/gemini.provider-definition.js +24 -0
  466. package/dist/ai/providers/gemini/gemini.provider-definition.js.map +1 -0
  467. package/dist/ai/providers/gemini/testing/gemini-fixtures.d.ts +80 -0
  468. package/dist/ai/providers/gemini/testing/gemini-fixtures.d.ts.map +1 -0
  469. package/dist/ai/providers/gemini/testing/gemini-fixtures.js +118 -0
  470. package/dist/ai/providers/gemini/testing/gemini-fixtures.js.map +1 -0
  471. package/dist/ai/providers/gemini/testing/gemini-mock-transport.d.ts +82 -0
  472. package/dist/ai/providers/gemini/testing/gemini-mock-transport.d.ts.map +1 -0
  473. package/dist/ai/providers/gemini/testing/gemini-mock-transport.js +342 -0
  474. package/dist/ai/providers/gemini/testing/gemini-mock-transport.js.map +1 -0
  475. package/dist/ai/providers/openai/openai-audio.mapper.d.ts +42 -0
  476. package/dist/ai/providers/openai/openai-audio.mapper.d.ts.map +1 -0
  477. package/dist/ai/providers/openai/openai-audio.mapper.js +266 -0
  478. package/dist/ai/providers/openai/openai-audio.mapper.js.map +1 -0
  479. package/dist/ai/providers/openai/openai-call-telemetry.d.ts +25 -0
  480. package/dist/ai/providers/openai/openai-call-telemetry.d.ts.map +1 -0
  481. package/dist/ai/providers/openai/openai-call-telemetry.js +93 -0
  482. package/dist/ai/providers/openai/openai-call-telemetry.js.map +1 -0
  483. package/dist/ai/providers/openai/openai-chat-completions-stream.mapper.d.ts +41 -0
  484. package/dist/ai/providers/openai/openai-chat-completions-stream.mapper.d.ts.map +1 -0
  485. package/dist/ai/providers/openai/openai-chat-completions-stream.mapper.js +173 -0
  486. package/dist/ai/providers/openai/openai-chat-completions-stream.mapper.js.map +1 -0
  487. package/dist/ai/providers/openai/openai-chat-completions.engine.d.ts +33 -0
  488. package/dist/ai/providers/openai/openai-chat-completions.engine.d.ts.map +1 -0
  489. package/dist/ai/providers/openai/openai-chat-completions.engine.js +165 -0
  490. package/dist/ai/providers/openai/openai-chat-completions.engine.js.map +1 -0
  491. package/dist/ai/providers/openai/openai-chat-completions.mapper.d.ts +42 -0
  492. package/dist/ai/providers/openai/openai-chat-completions.mapper.d.ts.map +1 -0
  493. package/dist/ai/providers/openai/openai-chat-completions.mapper.js +304 -0
  494. package/dist/ai/providers/openai/openai-chat-completions.mapper.js.map +1 -0
  495. package/dist/ai/providers/openai/openai-client.factory.d.ts +40 -0
  496. package/dist/ai/providers/openai/openai-client.factory.d.ts.map +1 -0
  497. package/dist/ai/providers/openai/openai-client.factory.js +96 -0
  498. package/dist/ai/providers/openai/openai-client.factory.js.map +1 -0
  499. package/dist/ai/providers/openai/openai-embeddings.mapper.d.ts +25 -0
  500. package/dist/ai/providers/openai/openai-embeddings.mapper.d.ts.map +1 -0
  501. package/dist/ai/providers/openai/openai-embeddings.mapper.js +81 -0
  502. package/dist/ai/providers/openai/openai-embeddings.mapper.js.map +1 -0
  503. package/dist/ai/providers/openai/openai-errors.d.ts +45 -0
  504. package/dist/ai/providers/openai/openai-errors.d.ts.map +1 -0
  505. package/dist/ai/providers/openai/openai-errors.js +247 -0
  506. package/dist/ai/providers/openai/openai-errors.js.map +1 -0
  507. package/dist/ai/providers/openai/openai-family-guards.d.ts +4 -0
  508. package/dist/ai/providers/openai/openai-family-guards.d.ts.map +1 -0
  509. package/dist/ai/providers/openai/openai-family-guards.js +19 -0
  510. package/dist/ai/providers/openai/openai-family-guards.js.map +1 -0
  511. package/dist/ai/providers/openai/openai-images.mapper.d.ts +23 -0
  512. package/dist/ai/providers/openai/openai-images.mapper.d.ts.map +1 -0
  513. package/dist/ai/providers/openai/openai-images.mapper.js +164 -0
  514. package/dist/ai/providers/openai/openai-images.mapper.js.map +1 -0
  515. package/dist/ai/providers/openai/openai-model-catalog.d.ts +36 -0
  516. package/dist/ai/providers/openai/openai-model-catalog.d.ts.map +1 -0
  517. package/dist/ai/providers/openai/openai-model-catalog.js +209 -0
  518. package/dist/ai/providers/openai/openai-model-catalog.js.map +1 -0
  519. package/dist/ai/providers/openai/openai-realtime.mapper.d.ts +18 -0
  520. package/dist/ai/providers/openai/openai-realtime.mapper.d.ts.map +1 -0
  521. package/dist/ai/providers/openai/openai-realtime.mapper.js +159 -0
  522. package/dist/ai/providers/openai/openai-realtime.mapper.js.map +1 -0
  523. package/dist/ai/providers/openai/openai-redirect-guard.d.ts +9 -0
  524. package/dist/ai/providers/openai/openai-redirect-guard.d.ts.map +1 -0
  525. package/dist/ai/providers/openai/openai-redirect-guard.js +61 -0
  526. package/dist/ai/providers/openai/openai-redirect-guard.js.map +1 -0
  527. package/dist/ai/providers/openai/openai-responses.engine.d.ts +50 -0
  528. package/dist/ai/providers/openai/openai-responses.engine.d.ts.map +1 -0
  529. package/dist/ai/providers/openai/openai-responses.engine.js +206 -0
  530. package/dist/ai/providers/openai/openai-responses.engine.js.map +1 -0
  531. package/dist/ai/providers/openai/openai-responses.mapper.d.ts +64 -0
  532. package/dist/ai/providers/openai/openai-responses.mapper.d.ts.map +1 -0
  533. package/dist/ai/providers/openai/openai-responses.mapper.js +580 -0
  534. package/dist/ai/providers/openai/openai-responses.mapper.js.map +1 -0
  535. package/dist/ai/providers/openai/openai-stream.mapper.d.ts +28 -0
  536. package/dist/ai/providers/openai/openai-stream.mapper.d.ts.map +1 -0
  537. package/dist/ai/providers/openai/openai-stream.mapper.js +139 -0
  538. package/dist/ai/providers/openai/openai-stream.mapper.js.map +1 -0
  539. package/dist/ai/providers/openai/openai.adapter.d.ts +56 -0
  540. package/dist/ai/providers/openai/openai.adapter.d.ts.map +1 -0
  541. package/dist/ai/providers/openai/openai.adapter.js +241 -0
  542. package/dist/ai/providers/openai/openai.adapter.js.map +1 -0
  543. package/dist/ai/providers/openai/openai.module.d.ts +11 -0
  544. package/dist/ai/providers/openai/openai.module.d.ts.map +1 -0
  545. package/dist/ai/providers/openai/openai.module.js +32 -0
  546. package/dist/ai/providers/openai/openai.module.js.map +1 -0
  547. package/dist/ai/providers/openai/openai.provider-definition.d.ts +12 -0
  548. package/dist/ai/providers/openai/openai.provider-definition.d.ts.map +1 -0
  549. package/dist/ai/providers/openai/openai.provider-definition.js +24 -0
  550. package/dist/ai/providers/openai/openai.provider-definition.js.map +1 -0
  551. package/dist/ai/providers/openai/testing/chat-completions-fixtures.d.ts +24 -0
  552. package/dist/ai/providers/openai/testing/chat-completions-fixtures.d.ts.map +1 -0
  553. package/dist/ai/providers/openai/testing/chat-completions-fixtures.js +72 -0
  554. package/dist/ai/providers/openai/testing/chat-completions-fixtures.js.map +1 -0
  555. package/dist/ai/providers/openai/testing/conformance-responders.d.ts +7 -0
  556. package/dist/ai/providers/openai/testing/conformance-responders.d.ts.map +1 -0
  557. package/dist/ai/providers/openai/testing/conformance-responders.js +64 -0
  558. package/dist/ai/providers/openai/testing/conformance-responders.js.map +1 -0
  559. package/dist/ai/providers/openai/testing/openai-fixtures.d.ts +52 -0
  560. package/dist/ai/providers/openai/testing/openai-fixtures.d.ts.map +1 -0
  561. package/dist/ai/providers/openai/testing/openai-fixtures.js +208 -0
  562. package/dist/ai/providers/openai/testing/openai-fixtures.js.map +1 -0
  563. package/dist/ai/providers/openai/testing/openai-mock-transport.d.ts +242 -0
  564. package/dist/ai/providers/openai/testing/openai-mock-transport.d.ts.map +1 -0
  565. package/dist/ai/providers/openai/testing/openai-mock-transport.js +523 -0
  566. package/dist/ai/providers/openai/testing/openai-mock-transport.js.map +1 -0
  567. package/dist/ai/providers/openai-compatible/openai-compatible-client.factory.d.ts +16 -0
  568. package/dist/ai/providers/openai-compatible/openai-compatible-client.factory.d.ts.map +1 -0
  569. package/dist/ai/providers/openai-compatible/openai-compatible-client.factory.js +74 -0
  570. package/dist/ai/providers/openai-compatible/openai-compatible-client.factory.js.map +1 -0
  571. package/dist/ai/providers/openai-compatible/openai-compatible-settings.d.ts +13 -0
  572. package/dist/ai/providers/openai-compatible/openai-compatible-settings.d.ts.map +1 -0
  573. package/dist/ai/providers/openai-compatible/openai-compatible-settings.js +29 -0
  574. package/dist/ai/providers/openai-compatible/openai-compatible-settings.js.map +1 -0
  575. package/dist/ai/providers/openai-compatible/openai-compatible.adapter.d.ts +40 -0
  576. package/dist/ai/providers/openai-compatible/openai-compatible.adapter.d.ts.map +1 -0
  577. package/dist/ai/providers/openai-compatible/openai-compatible.adapter.js +184 -0
  578. package/dist/ai/providers/openai-compatible/openai-compatible.adapter.js.map +1 -0
  579. package/dist/ai/providers/openai-compatible/openai-compatible.module.d.ts +13 -0
  580. package/dist/ai/providers/openai-compatible/openai-compatible.module.d.ts.map +1 -0
  581. package/dist/ai/providers/openai-compatible/openai-compatible.module.js +34 -0
  582. package/dist/ai/providers/openai-compatible/openai-compatible.module.js.map +1 -0
  583. package/dist/ai/providers/openai-compatible/openai-compatible.provider-definition.d.ts +12 -0
  584. package/dist/ai/providers/openai-compatible/openai-compatible.provider-definition.d.ts.map +1 -0
  585. package/dist/ai/providers/openai-compatible/openai-compatible.provider-definition.js +28 -0
  586. package/dist/ai/providers/openai-compatible/openai-compatible.provider-definition.js.map +1 -0
  587. package/dist/ai/runtime/ai-audio-run-request.d.ts +45 -0
  588. package/dist/ai/runtime/ai-audio-run-request.d.ts.map +1 -0
  589. package/dist/ai/runtime/ai-audio-run-request.js +76 -0
  590. package/dist/ai/runtime/ai-audio-run-request.js.map +1 -0
  591. package/dist/ai/runtime/ai-audio-speech.handler.d.ts +22 -0
  592. package/dist/ai/runtime/ai-audio-speech.handler.d.ts.map +1 -0
  593. package/dist/ai/runtime/ai-audio-speech.handler.js +142 -0
  594. package/dist/ai/runtime/ai-audio-speech.handler.js.map +1 -0
  595. package/dist/ai/runtime/ai-audio-transcribe.handler.d.ts +18 -0
  596. package/dist/ai/runtime/ai-audio-transcribe.handler.d.ts.map +1 -0
  597. package/dist/ai/runtime/ai-audio-transcribe.handler.js +102 -0
  598. package/dist/ai/runtime/ai-audio-transcribe.handler.js.map +1 -0
  599. package/dist/ai/runtime/ai-hosted-outputs.d.ts +36 -0
  600. package/dist/ai/runtime/ai-hosted-outputs.d.ts.map +1 -0
  601. package/dist/ai/runtime/ai-hosted-outputs.js +94 -0
  602. package/dist/ai/runtime/ai-hosted-outputs.js.map +1 -0
  603. package/dist/ai/runtime/ai-image-generate.handler.d.ts +22 -0
  604. package/dist/ai/runtime/ai-image-generate.handler.d.ts.map +1 -0
  605. package/dist/ai/runtime/ai-image-generate.handler.js +133 -0
  606. package/dist/ai/runtime/ai-image-generate.handler.js.map +1 -0
  607. package/dist/ai/runtime/ai-image-run-request.d.ts +41 -0
  608. package/dist/ai/runtime/ai-image-run-request.d.ts.map +1 -0
  609. package/dist/ai/runtime/ai-image-run-request.js +78 -0
  610. package/dist/ai/runtime/ai-image-run-request.js.map +1 -0
  611. package/dist/ai/runtime/ai-limits.service.d.ts +83 -0
  612. package/dist/ai/runtime/ai-limits.service.d.ts.map +1 -0
  613. package/dist/ai/runtime/ai-limits.service.js +366 -0
  614. package/dist/ai/runtime/ai-limits.service.js.map +1 -0
  615. package/dist/ai/runtime/ai-media-run.handler.d.ts +67 -0
  616. package/dist/ai/runtime/ai-media-run.handler.d.ts.map +1 -0
  617. package/dist/ai/runtime/ai-media-run.handler.js +219 -0
  618. package/dist/ai/runtime/ai-media-run.handler.js.map +1 -0
  619. package/dist/ai/runtime/ai-provider-filename.d.ts +3 -0
  620. package/dist/ai/runtime/ai-provider-filename.d.ts.map +1 -0
  621. package/dist/ai/runtime/ai-provider-filename.js +66 -0
  622. package/dist/ai/runtime/ai-provider-filename.js.map +1 -0
  623. package/dist/ai/runtime/ai-response-run.handler.d.ts +47 -0
  624. package/dist/ai/runtime/ai-response-run.handler.d.ts.map +1 -0
  625. package/dist/ai/runtime/ai-response-run.handler.js +255 -0
  626. package/dist/ai/runtime/ai-response-run.handler.js.map +1 -0
  627. package/dist/ai/runtime/ai-run-operation.d.ts +7 -0
  628. package/dist/ai/runtime/ai-run-operation.d.ts.map +1 -0
  629. package/dist/ai/runtime/ai-run-operation.js +32 -0
  630. package/dist/ai/runtime/ai-run-operation.js.map +1 -0
  631. package/dist/ai/runtime/ai-run-request.d.ts +124 -0
  632. package/dist/ai/runtime/ai-run-request.d.ts.map +1 -0
  633. package/dist/ai/runtime/ai-run-request.js +182 -0
  634. package/dist/ai/runtime/ai-run-request.js.map +1 -0
  635. package/dist/ai/runtime/ai-runs-purge.handler.d.ts +39 -0
  636. package/dist/ai/runtime/ai-runs-purge.handler.d.ts.map +1 -0
  637. package/dist/ai/runtime/ai-runs-purge.handler.js +117 -0
  638. package/dist/ai/runtime/ai-runs-purge.handler.js.map +1 -0
  639. package/dist/ai/runtime/ai-runs.service.d.ts +137 -0
  640. package/dist/ai/runtime/ai-runs.service.d.ts.map +1 -0
  641. package/dist/ai/runtime/ai-runs.service.js +306 -0
  642. package/dist/ai/runtime/ai-runs.service.js.map +1 -0
  643. package/dist/ai/runtime/ai-runtime.module.d.ts +10 -0
  644. package/dist/ai/runtime/ai-runtime.module.d.ts.map +1 -0
  645. package/dist/ai/runtime/ai-runtime.module.js +76 -0
  646. package/dist/ai/runtime/ai-runtime.module.js.map +1 -0
  647. package/dist/ai/runtime/ai-runtime.types.d.ts +460 -0
  648. package/dist/ai/runtime/ai-runtime.types.d.ts.map +1 -0
  649. package/dist/ai/runtime/ai-runtime.types.js +37 -0
  650. package/dist/ai/runtime/ai-runtime.types.js.map +1 -0
  651. package/dist/ai/runtime/ai-tool-loop.d.ts +18 -0
  652. package/dist/ai/runtime/ai-tool-loop.d.ts.map +1 -0
  653. package/dist/ai/runtime/ai-tool-loop.js +207 -0
  654. package/dist/ai/runtime/ai-tool-loop.js.map +1 -0
  655. package/dist/ai/runtime/ai-transcription-extras.d.ts +25 -0
  656. package/dist/ai/runtime/ai-transcription-extras.d.ts.map +1 -0
  657. package/dist/ai/runtime/ai-transcription-extras.js +66 -0
  658. package/dist/ai/runtime/ai-transcription-extras.js.map +1 -0
  659. package/dist/ai/runtime/ai-usage.recorder.d.ts +69 -0
  660. package/dist/ai/runtime/ai-usage.recorder.d.ts.map +1 -0
  661. package/dist/ai/runtime/ai-usage.recorder.js +143 -0
  662. package/dist/ai/runtime/ai-usage.recorder.js.map +1 -0
  663. package/dist/ai/runtime/ai.service.d.ts +624 -0
  664. package/dist/ai/runtime/ai.service.d.ts.map +1 -0
  665. package/dist/ai/runtime/ai.service.js +1848 -0
  666. package/dist/ai/runtime/ai.service.js.map +1 -0
  667. package/dist/ai/runtime/index.d.ts +6 -0
  668. package/dist/ai/runtime/index.d.ts.map +1 -0
  669. package/dist/ai/runtime/index.js +32 -0
  670. package/dist/ai/runtime/index.js.map +1 -0
  671. package/dist/ai/runtime/target-resolver.d.ts +91 -0
  672. package/dist/ai/runtime/target-resolver.d.ts.map +1 -0
  673. package/dist/ai/runtime/target-resolver.js +121 -0
  674. package/dist/ai/runtime/target-resolver.js.map +1 -0
  675. package/dist/ai/storage/ai-output-writer.d.ts +76 -0
  676. package/dist/ai/storage/ai-output-writer.d.ts.map +1 -0
  677. package/dist/ai/storage/ai-output-writer.js +208 -0
  678. package/dist/ai/storage/ai-output-writer.js.map +1 -0
  679. package/dist/ai/storage/ai-storage-errors.d.ts +13 -0
  680. package/dist/ai/storage/ai-storage-errors.d.ts.map +1 -0
  681. package/dist/ai/storage/ai-storage-errors.js +67 -0
  682. package/dist/ai/storage/ai-storage-errors.js.map +1 -0
  683. package/dist/ai/storage/ai-storage-input.resolver.d.ts +101 -0
  684. package/dist/ai/storage/ai-storage-input.resolver.d.ts.map +1 -0
  685. package/dist/ai/storage/ai-storage-input.resolver.js +215 -0
  686. package/dist/ai/storage/ai-storage-input.resolver.js.map +1 -0
  687. package/dist/ai/storage/ai-storage-key-prefixes.d.ts +16 -0
  688. package/dist/ai/storage/ai-storage-key-prefixes.d.ts.map +1 -0
  689. package/dist/ai/storage/ai-storage-key-prefixes.js +46 -0
  690. package/dist/ai/storage/ai-storage-key-prefixes.js.map +1 -0
  691. package/dist/ai/storage/ai-storage.module.d.ts +18 -0
  692. package/dist/ai/storage/ai-storage.module.d.ts.map +1 -0
  693. package/dist/ai/storage/ai-storage.module.js +67 -0
  694. package/dist/ai/storage/ai-storage.module.js.map +1 -0
  695. package/dist/ai/storage/index.d.ts +5 -0
  696. package/dist/ai/storage/index.d.ts.map +1 -0
  697. package/dist/ai/storage/index.js +16 -0
  698. package/dist/ai/storage/index.js.map +1 -0
  699. package/dist/ai/storage/mime-type-match.d.ts +20 -0
  700. package/dist/ai/storage/mime-type-match.d.ts.map +1 -0
  701. package/dist/ai/storage/mime-type-match.js +30 -0
  702. package/dist/ai/storage/mime-type-match.js.map +1 -0
  703. package/dist/ai/testing/ai-runtime-harness.d.ts +387 -0
  704. package/dist/ai/testing/ai-runtime-harness.d.ts.map +1 -0
  705. package/dist/ai/testing/ai-runtime-harness.js +511 -0
  706. package/dist/ai/testing/ai-runtime-harness.js.map +1 -0
  707. package/dist/ai/testing/conformance/ai-conformance-fixture.d.ts +187 -0
  708. package/dist/ai/testing/conformance/ai-conformance-fixture.d.ts.map +1 -0
  709. package/dist/ai/testing/conformance/ai-conformance-fixture.js +117 -0
  710. package/dist/ai/testing/conformance/ai-conformance-fixture.js.map +1 -0
  711. package/dist/ai/testing/conformance/ai-egress-checks.d.ts +50 -0
  712. package/dist/ai/testing/conformance/ai-egress-checks.d.ts.map +1 -0
  713. package/dist/ai/testing/conformance/ai-egress-checks.js +122 -0
  714. package/dist/ai/testing/conformance/ai-egress-checks.js.map +1 -0
  715. package/dist/ai/testing/conformance/ai-http-client.d.ts +14 -0
  716. package/dist/ai/testing/conformance/ai-http-client.d.ts.map +1 -0
  717. package/dist/ai/testing/conformance/ai-http-client.js +30 -0
  718. package/dist/ai/testing/conformance/ai-http-client.js.map +1 -0
  719. package/dist/ai/testing/conformance/ai-jobs-server-only.suite.d.ts +74 -0
  720. package/dist/ai/testing/conformance/ai-jobs-server-only.suite.d.ts.map +1 -0
  721. package/dist/ai/testing/conformance/ai-jobs-server-only.suite.js +129 -0
  722. package/dist/ai/testing/conformance/ai-jobs-server-only.suite.js.map +1 -0
  723. package/dist/ai/testing/conformance/ai-key-policy.suite.d.ts +39 -0
  724. package/dist/ai/testing/conformance/ai-key-policy.suite.d.ts.map +1 -0
  725. package/dist/ai/testing/conformance/ai-key-policy.suite.js +642 -0
  726. package/dist/ai/testing/conformance/ai-key-policy.suite.js.map +1 -0
  727. package/dist/ai/testing/conformance/ai-kill-switch.suite.d.ts +31 -0
  728. package/dist/ai/testing/conformance/ai-kill-switch.suite.d.ts.map +1 -0
  729. package/dist/ai/testing/conformance/ai-kill-switch.suite.js +389 -0
  730. package/dist/ai/testing/conformance/ai-kill-switch.suite.js.map +1 -0
  731. package/dist/ai/testing/conformance/ai-no-sdk-leak.suite.d.ts +150 -0
  732. package/dist/ai/testing/conformance/ai-no-sdk-leak.suite.d.ts.map +1 -0
  733. package/dist/ai/testing/conformance/ai-no-sdk-leak.suite.js +359 -0
  734. package/dist/ai/testing/conformance/ai-no-sdk-leak.suite.js.map +1 -0
  735. package/dist/ai/testing/conformance/ai-orchestration-boundary.registered.d.ts +11 -0
  736. package/dist/ai/testing/conformance/ai-orchestration-boundary.registered.d.ts.map +1 -0
  737. package/dist/ai/testing/conformance/ai-orchestration-boundary.registered.js +24 -0
  738. package/dist/ai/testing/conformance/ai-orchestration-boundary.registered.js.map +1 -0
  739. package/dist/ai/testing/conformance/ai-rbac-matrix.suite.d.ts +29 -0
  740. package/dist/ai/testing/conformance/ai-rbac-matrix.suite.d.ts.map +1 -0
  741. package/dist/ai/testing/conformance/ai-rbac-matrix.suite.js +173 -0
  742. package/dist/ai/testing/conformance/ai-rbac-matrix.suite.js.map +1 -0
  743. package/dist/ai/testing/conformance/ai-route-checks.d.ts +134 -0
  744. package/dist/ai/testing/conformance/ai-route-checks.d.ts.map +1 -0
  745. package/dist/ai/testing/conformance/ai-route-checks.js +228 -0
  746. package/dist/ai/testing/conformance/ai-route-checks.js.map +1 -0
  747. package/dist/ai/testing/conformance/ai-secret-egress.suite.d.ts +25 -0
  748. package/dist/ai/testing/conformance/ai-secret-egress.suite.d.ts.map +1 -0
  749. package/dist/ai/testing/conformance/ai-secret-egress.suite.js +1043 -0
  750. package/dist/ai/testing/conformance/ai-secret-egress.suite.js.map +1 -0
  751. package/dist/ai/testing/conformance/orchestration-boundary.suite.d.ts +108 -0
  752. package/dist/ai/testing/conformance/orchestration-boundary.suite.d.ts.map +1 -0
  753. package/dist/ai/testing/conformance/orchestration-boundary.suite.js +196 -0
  754. package/dist/ai/testing/conformance/orchestration-boundary.suite.js.map +1 -0
  755. package/dist/ai/testing/conformance/register.d.ts +26 -0
  756. package/dist/ai/testing/conformance/register.d.ts.map +1 -0
  757. package/dist/ai/testing/conformance/register.js +27 -0
  758. package/dist/ai/testing/conformance/register.js.map +1 -0
  759. package/dist/ai/testing/conformance.d.ts +229 -0
  760. package/dist/ai/testing/conformance.d.ts.map +1 -0
  761. package/dist/ai/testing/conformance.js +666 -0
  762. package/dist/ai/testing/conformance.js.map +1 -0
  763. package/dist/ai/testing/fake-ai-provider.d.ts +379 -0
  764. package/dist/ai/testing/fake-ai-provider.d.ts.map +1 -0
  765. package/dist/ai/testing/fake-ai-provider.js +833 -0
  766. package/dist/ai/testing/fake-ai-provider.js.map +1 -0
  767. package/dist/ai/testing/in-memory-ai-keys-prisma.d.ts +137 -0
  768. package/dist/ai/testing/in-memory-ai-keys-prisma.d.ts.map +1 -0
  769. package/dist/ai/testing/in-memory-ai-keys-prisma.js +192 -0
  770. package/dist/ai/testing/in-memory-ai-keys-prisma.js.map +1 -0
  771. package/dist/ai/testing/in-memory-ai-storage.d.ts +132 -0
  772. package/dist/ai/testing/in-memory-ai-storage.d.ts.map +1 -0
  773. package/dist/ai/testing/in-memory-ai-storage.js +196 -0
  774. package/dist/ai/testing/in-memory-ai-storage.js.map +1 -0
  775. package/dist/ai/testing/index.d.ts +32 -0
  776. package/dist/ai/testing/index.d.ts.map +1 -0
  777. package/dist/ai/testing/index.js +116 -0
  778. package/dist/ai/testing/index.js.map +1 -0
  779. package/dist/ai/usage/ai-usage-admin.controller.d.ts +15 -0
  780. package/dist/ai/usage/ai-usage-admin.controller.d.ts.map +1 -0
  781. package/dist/ai/usage/ai-usage-admin.controller.js +122 -0
  782. package/dist/ai/usage/ai-usage-admin.controller.js.map +1 -0
  783. package/dist/ai/usage/ai-usage-purge.handler.d.ts +42 -0
  784. package/dist/ai/usage/ai-usage-purge.handler.d.ts.map +1 -0
  785. package/dist/ai/usage/ai-usage-purge.handler.js +119 -0
  786. package/dist/ai/usage/ai-usage-purge.handler.js.map +1 -0
  787. package/dist/ai/usage/ai-usage-purge.task.d.ts +10 -0
  788. package/dist/ai/usage/ai-usage-purge.task.d.ts.map +1 -0
  789. package/dist/ai/usage/ai-usage-purge.task.js +65 -0
  790. package/dist/ai/usage/ai-usage-purge.task.js.map +1 -0
  791. package/dist/ai/usage/ai-usage.controller.d.ts +14 -0
  792. package/dist/ai/usage/ai-usage.controller.d.ts.map +1 -0
  793. package/dist/ai/usage/ai-usage.controller.js +86 -0
  794. package/dist/ai/usage/ai-usage.controller.js.map +1 -0
  795. package/dist/ai/usage/ai-usage.module.d.ts +3 -0
  796. package/dist/ai/usage/ai-usage.module.d.ts.map +1 -0
  797. package/dist/ai/usage/ai-usage.module.js +40 -0
  798. package/dist/ai/usage/ai-usage.module.js.map +1 -0
  799. package/dist/ai/usage/ai-usage.service.d.ts +91 -0
  800. package/dist/ai/usage/ai-usage.service.d.ts.map +1 -0
  801. package/dist/ai/usage/ai-usage.service.js +461 -0
  802. package/dist/ai/usage/ai-usage.service.js.map +1 -0
  803. package/dist/ai/usage/dto/ai-usage.dto.d.ts +266 -0
  804. package/dist/ai/usage/dto/ai-usage.dto.d.ts.map +1 -0
  805. package/dist/ai/usage/dto/ai-usage.dto.js +160 -0
  806. package/dist/ai/usage/dto/ai-usage.dto.js.map +1 -0
  807. package/dist/android-app/android-app-push.service.d.ts +53 -0
  808. package/dist/android-app/android-app-push.service.d.ts.map +1 -0
  809. package/dist/android-app/android-app-push.service.js +162 -0
  810. package/dist/android-app/android-app-push.service.js.map +1 -0
  811. package/dist/android-app/android-app.controller.d.ts +37 -0
  812. package/dist/android-app/android-app.controller.d.ts.map +1 -0
  813. package/dist/android-app/android-app.controller.js +143 -0
  814. package/dist/android-app/android-app.controller.js.map +1 -0
  815. package/dist/android-app/android-app.key-prefixes.d.ts +27 -0
  816. package/dist/android-app/android-app.key-prefixes.d.ts.map +1 -0
  817. package/dist/android-app/android-app.key-prefixes.js +47 -0
  818. package/dist/android-app/android-app.key-prefixes.js.map +1 -0
  819. package/dist/android-app/android-app.module.d.ts +33 -0
  820. package/dist/android-app/android-app.module.d.ts.map +1 -0
  821. package/dist/android-app/android-app.module.js +75 -0
  822. package/dist/android-app/android-app.module.js.map +1 -0
  823. package/dist/android-app/android-app.options.d.ts +58 -0
  824. package/dist/android-app/android-app.options.d.ts.map +1 -0
  825. package/dist/android-app/android-app.options.js +39 -0
  826. package/dist/android-app/android-app.options.js.map +1 -0
  827. package/dist/android-app/android-app.service.d.ts +100 -0
  828. package/dist/android-app/android-app.service.d.ts.map +1 -0
  829. package/dist/android-app/android-app.service.js +227 -0
  830. package/dist/android-app/android-app.service.js.map +1 -0
  831. package/dist/android-app/asset-links.controller.d.ts +19 -0
  832. package/dist/android-app/asset-links.controller.d.ts.map +1 -0
  833. package/dist/android-app/asset-links.controller.js +87 -0
  834. package/dist/android-app/asset-links.controller.js.map +1 -0
  835. package/dist/android-app/data/android-app-db.d.ts +117 -0
  836. package/dist/android-app/data/android-app-db.d.ts.map +1 -0
  837. package/dist/android-app/data/android-app-db.js +48 -0
  838. package/dist/android-app/data/android-app-db.js.map +1 -0
  839. package/dist/android-app/device-sources.d.ts +72 -0
  840. package/dist/android-app/device-sources.d.ts.map +1 -0
  841. package/dist/android-app/device-sources.js +96 -0
  842. package/dist/android-app/device-sources.js.map +1 -0
  843. package/dist/android-app/doctor/android-assetlinks.doctor-check.d.ts +44 -0
  844. package/dist/android-app/doctor/android-assetlinks.doctor-check.d.ts.map +1 -0
  845. package/dist/android-app/doctor/android-assetlinks.doctor-check.js +101 -0
  846. package/dist/android-app/doctor/android-assetlinks.doctor-check.js.map +1 -0
  847. package/dist/android-app/doctor/android-releases.doctor-check.d.ts +64 -0
  848. package/dist/android-app/doctor/android-releases.doctor-check.d.ts.map +1 -0
  849. package/dist/android-app/doctor/android-releases.doctor-check.js +120 -0
  850. package/dist/android-app/doctor/android-releases.doctor-check.js.map +1 -0
  851. package/dist/android-app/dto/android-app.dto.d.ts +135 -0
  852. package/dist/android-app/dto/android-app.dto.d.ts.map +1 -0
  853. package/dist/android-app/dto/android-app.dto.js +62 -0
  854. package/dist/android-app/dto/android-app.dto.js.map +1 -0
  855. package/dist/android-app/index.d.ts +26 -0
  856. package/dist/android-app/index.d.ts.map +1 -0
  857. package/dist/android-app/index.js +80 -0
  858. package/dist/android-app/index.js.map +1 -0
  859. package/dist/android-app/releases/android-release-admin.controller.d.ts +41 -0
  860. package/dist/android-app/releases/android-release-admin.controller.d.ts.map +1 -0
  861. package/dist/android-app/releases/android-release-admin.controller.js +208 -0
  862. package/dist/android-app/releases/android-release-admin.controller.js.map +1 -0
  863. package/dist/android-app/releases/android-release.controller.d.ts +35 -0
  864. package/dist/android-app/releases/android-release.controller.d.ts.map +1 -0
  865. package/dist/android-app/releases/android-release.controller.js +142 -0
  866. package/dist/android-app/releases/android-release.controller.js.map +1 -0
  867. package/dist/android-app/releases/android-release.service.d.ts +245 -0
  868. package/dist/android-app/releases/android-release.service.d.ts.map +1 -0
  869. package/dist/android-app/releases/android-release.service.js +575 -0
  870. package/dist/android-app/releases/android-release.service.js.map +1 -0
  871. package/dist/android-app/releases/apk-inspector.d.ts +52 -0
  872. package/dist/android-app/releases/apk-inspector.d.ts.map +1 -0
  873. package/dist/android-app/releases/apk-inspector.js +119 -0
  874. package/dist/android-app/releases/apk-inspector.js.map +1 -0
  875. package/dist/android-app/releases/download-token.d.ts +67 -0
  876. package/dist/android-app/releases/download-token.d.ts.map +1 -0
  877. package/dist/android-app/releases/download-token.js +108 -0
  878. package/dist/android-app/releases/download-token.js.map +1 -0
  879. package/dist/android-app/testing/conformance.d.ts +63 -0
  880. package/dist/android-app/testing/conformance.d.ts.map +1 -0
  881. package/dist/android-app/testing/conformance.js +151 -0
  882. package/dist/android-app/testing/conformance.js.map +1 -0
  883. package/dist/android-app/testing/index.d.ts +3 -0
  884. package/dist/android-app/testing/index.d.ts.map +1 -0
  885. package/dist/android-app/testing/index.js +13 -0
  886. package/dist/android-app/testing/index.js.map +1 -0
  887. package/dist/android-app/trusted-apps-validation.pipe.d.ts +29 -0
  888. package/dist/android-app/trusted-apps-validation.pipe.d.ts.map +1 -0
  889. package/dist/android-app/trusted-apps-validation.pipe.js +80 -0
  890. package/dist/android-app/trusted-apps-validation.pipe.js.map +1 -0
  891. package/dist/android-app/user-data.d.ts +18 -0
  892. package/dist/android-app/user-data.d.ts.map +1 -0
  893. package/dist/android-app/user-data.js +35 -0
  894. package/dist/android-app/user-data.js.map +1 -0
  895. package/dist/core/crypto/secret-cipher.d.ts +38 -0
  896. package/dist/core/crypto/secret-cipher.d.ts.map +1 -1
  897. package/dist/core/crypto/secret-cipher.js +63 -4
  898. package/dist/core/crypto/secret-cipher.js.map +1 -1
  899. package/dist/core/data-access/access-reason.registry.d.ts +95 -0
  900. package/dist/core/data-access/access-reason.registry.d.ts.map +1 -0
  901. package/dist/core/data-access/access-reason.registry.js +136 -0
  902. package/dist/core/data-access/access-reason.registry.js.map +1 -0
  903. package/dist/core/data-access/index.d.ts +6 -0
  904. package/dist/core/data-access/index.d.ts.map +1 -1
  905. package/dist/core/data-access/index.js +24 -1
  906. package/dist/core/data-access/index.js.map +1 -1
  907. package/dist/core/data-access/model-ownership.d.ts +112 -0
  908. package/dist/core/data-access/model-ownership.d.ts.map +1 -0
  909. package/dist/core/data-access/model-ownership.js +142 -0
  910. package/dist/core/data-access/model-ownership.js.map +1 -0
  911. package/dist/core/data-access/rls.d.ts +243 -0
  912. package/dist/core/data-access/rls.d.ts.map +1 -0
  913. package/dist/core/data-access/rls.js +357 -0
  914. package/dist/core/data-access/rls.js.map +1 -0
  915. package/dist/core/database-url.d.ts +38 -0
  916. package/dist/core/database-url.d.ts.map +1 -0
  917. package/dist/core/database-url.js +52 -0
  918. package/dist/core/database-url.js.map +1 -0
  919. package/dist/core/errors/error-codes.d.ts +114 -0
  920. package/dist/core/errors/error-codes.d.ts.map +1 -0
  921. package/dist/core/errors/error-codes.js +140 -0
  922. package/dist/core/errors/error-codes.js.map +1 -0
  923. package/dist/core/errors/error.dto.d.ts +1 -1
  924. package/dist/core/errors/error.dto.d.ts.map +1 -1
  925. package/dist/core/errors/error.dto.js +12 -18
  926. package/dist/core/errors/error.dto.js.map +1 -1
  927. package/dist/core/errors/http-exception.filter.d.ts +47 -10
  928. package/dist/core/errors/http-exception.filter.d.ts.map +1 -1
  929. package/dist/core/errors/http-exception.filter.js +82 -53
  930. package/dist/core/errors/http-exception.filter.js.map +1 -1
  931. package/dist/core/host/platform-host.d.ts +11 -2
  932. package/dist/core/host/platform-host.d.ts.map +1 -1
  933. package/dist/core/host/platform-host.js +16 -2
  934. package/dist/core/host/platform-host.js.map +1 -1
  935. package/dist/core/host/ports.js +2 -2
  936. package/dist/core/host/ports.js.map +1 -1
  937. package/dist/core/index.d.ts +81 -3
  938. package/dist/core/index.d.ts.map +1 -1
  939. package/dist/core/index.js +90 -10
  940. package/dist/core/index.js.map +1 -1
  941. package/dist/core/maintenance/allow-during-maintenance.decorator.d.ts +33 -0
  942. package/dist/core/maintenance/allow-during-maintenance.decorator.d.ts.map +1 -0
  943. package/dist/core/maintenance/allow-during-maintenance.decorator.js +48 -0
  944. package/dist/core/maintenance/allow-during-maintenance.decorator.js.map +1 -0
  945. package/dist/core/openapi/api-data-response.decorator.d.ts +72 -0
  946. package/dist/core/openapi/api-data-response.decorator.d.ts.map +1 -0
  947. package/dist/core/openapi/api-data-response.decorator.js +133 -0
  948. package/dist/core/openapi/api-data-response.decorator.js.map +1 -0
  949. package/dist/core/permissions/index.d.ts +8 -0
  950. package/dist/core/permissions/index.d.ts.map +1 -0
  951. package/dist/core/permissions/index.js +23 -0
  952. package/dist/core/permissions/index.js.map +1 -0
  953. package/dist/core/permissions/permission-catalog.d.ts +135 -0
  954. package/dist/core/permissions/permission-catalog.d.ts.map +1 -0
  955. package/dist/core/permissions/permission-catalog.js +114 -0
  956. package/dist/core/permissions/permission-catalog.js.map +1 -0
  957. package/dist/core/permissions/permission-ids.d.ts +42 -0
  958. package/dist/core/permissions/permission-ids.d.ts.map +1 -0
  959. package/dist/core/permissions/permission-ids.js +48 -0
  960. package/dist/core/permissions/permission-ids.js.map +1 -0
  961. package/dist/core/permissions/permission.registry.d.ts +181 -0
  962. package/dist/core/permissions/permission.registry.d.ts.map +1 -0
  963. package/dist/core/permissions/permission.registry.js +285 -0
  964. package/dist/core/permissions/permission.registry.js.map +1 -0
  965. package/dist/core/permissions/permission.types.d.ts +104 -0
  966. package/dist/core/permissions/permission.types.d.ts.map +1 -0
  967. package/dist/core/permissions/permission.types.js +12 -0
  968. package/dist/core/permissions/permission.types.js.map +1 -0
  969. package/dist/core/pluggable/describe-config-fields.d.ts +35 -0
  970. package/dist/core/pluggable/describe-config-fields.d.ts.map +1 -0
  971. package/dist/core/pluggable/describe-config-fields.js +133 -0
  972. package/dist/core/pluggable/describe-config-fields.js.map +1 -0
  973. package/dist/core/pluggable/index.d.ts +5 -0
  974. package/dist/core/pluggable/index.d.ts.map +1 -0
  975. package/dist/core/pluggable/index.js +14 -0
  976. package/dist/core/pluggable/index.js.map +1 -0
  977. package/dist/core/pluggable/pluggable-errors.d.ts +46 -0
  978. package/dist/core/pluggable/pluggable-errors.d.ts.map +1 -0
  979. package/dist/core/pluggable/pluggable-errors.js +73 -0
  980. package/dist/core/pluggable/pluggable-errors.js.map +1 -0
  981. package/dist/core/pluggable/pluggable-kind.d.ts +194 -0
  982. package/dist/core/pluggable/pluggable-kind.d.ts.map +1 -0
  983. package/dist/core/pluggable/pluggable-kind.js +200 -0
  984. package/dist/core/pluggable/pluggable-kind.js.map +1 -0
  985. package/dist/core/principal/credential-kinds.d.ts +132 -0
  986. package/dist/core/principal/credential-kinds.d.ts.map +1 -0
  987. package/dist/core/principal/credential-kinds.js +185 -0
  988. package/dist/core/principal/credential-kinds.js.map +1 -0
  989. package/dist/core/principal/index.d.ts +6 -3
  990. package/dist/core/principal/index.d.ts.map +1 -1
  991. package/dist/core/principal/index.js +15 -0
  992. package/dist/core/principal/index.js.map +1 -1
  993. package/dist/core/principal/principal.types.d.ts +19 -7
  994. package/dist/core/principal/principal.types.d.ts.map +1 -1
  995. package/dist/core/principal/principal.types.js +4 -4
  996. package/dist/core/principal/principal.types.js.map +1 -1
  997. package/dist/core/registry/registry.d.ts +1 -1
  998. package/dist/core/registry/registry.js +1 -1
  999. package/dist/core/testing/index.d.ts +5 -0
  1000. package/dist/core/testing/index.d.ts.map +1 -0
  1001. package/dist/core/testing/index.js +13 -0
  1002. package/dist/core/testing/index.js.map +1 -0
  1003. package/dist/core/testing/pluggable-conformance.d.ts +56 -0
  1004. package/dist/core/testing/pluggable-conformance.d.ts.map +1 -0
  1005. package/dist/core/testing/pluggable-conformance.js +110 -0
  1006. package/dist/core/testing/pluggable-conformance.js.map +1 -0
  1007. package/dist/core/testing/vocabulary-conformance.d.ts +34 -0
  1008. package/dist/core/testing/vocabulary-conformance.d.ts.map +1 -0
  1009. package/dist/core/testing/vocabulary-conformance.js +149 -0
  1010. package/dist/core/testing/vocabulary-conformance.js.map +1 -0
  1011. package/dist/credentials/credential-internals.d.ts +79 -0
  1012. package/dist/credentials/credential-internals.d.ts.map +1 -0
  1013. package/dist/credentials/credential-internals.js +154 -0
  1014. package/dist/credentials/credential-internals.js.map +1 -0
  1015. package/dist/credentials/credentials.module.d.ts +16 -0
  1016. package/dist/credentials/credentials.module.d.ts.map +1 -0
  1017. package/dist/credentials/credentials.module.js +55 -0
  1018. package/dist/credentials/credentials.module.js.map +1 -0
  1019. package/dist/credentials/credentials.service.d.ts +117 -0
  1020. package/dist/credentials/credentials.service.d.ts.map +1 -0
  1021. package/dist/credentials/credentials.service.js +392 -0
  1022. package/dist/credentials/credentials.service.js.map +1 -0
  1023. package/dist/credentials/data/credentials-db.d.ts +134 -0
  1024. package/dist/credentials/data/credentials-db.d.ts.map +1 -0
  1025. package/dist/credentials/data/credentials-db.js +18 -0
  1026. package/dist/credentials/data/credentials-db.js.map +1 -0
  1027. package/dist/credentials/index.d.ts +17 -0
  1028. package/dist/credentials/index.d.ts.map +1 -0
  1029. package/dist/credentials/index.js +43 -0
  1030. package/dist/credentials/index.js.map +1 -0
  1031. package/dist/credentials/interfaces/credential-info.interface.d.ts +59 -0
  1032. package/dist/credentials/interfaces/credential-info.interface.d.ts.map +1 -0
  1033. package/dist/credentials/interfaces/credential-info.interface.js +29 -0
  1034. package/dist/credentials/interfaces/credential-info.interface.js.map +1 -0
  1035. package/dist/credentials/interfaces/org-credential-info.interface.d.ts +36 -0
  1036. package/dist/credentials/interfaces/org-credential-info.interface.d.ts.map +1 -0
  1037. package/dist/credentials/interfaces/org-credential-info.interface.js +14 -0
  1038. package/dist/credentials/interfaces/org-credential-info.interface.js.map +1 -0
  1039. package/dist/credentials/interfaces/user-credential-info.interface.d.ts +50 -0
  1040. package/dist/credentials/interfaces/user-credential-info.interface.d.ts.map +1 -0
  1041. package/dist/credentials/interfaces/user-credential-info.interface.js +18 -0
  1042. package/dist/credentials/interfaces/user-credential-info.interface.js.map +1 -0
  1043. package/dist/credentials/org-credentials.module.d.ts +17 -0
  1044. package/dist/credentials/org-credentials.module.d.ts.map +1 -0
  1045. package/dist/credentials/org-credentials.module.js +45 -0
  1046. package/dist/credentials/org-credentials.module.js.map +1 -0
  1047. package/dist/credentials/org-credentials.service.d.ts +87 -0
  1048. package/dist/credentials/org-credentials.service.d.ts.map +1 -0
  1049. package/dist/credentials/org-credentials.service.js +270 -0
  1050. package/dist/credentials/org-credentials.service.js.map +1 -0
  1051. package/dist/credentials/ownership.d.ts +30 -0
  1052. package/dist/credentials/ownership.d.ts.map +1 -0
  1053. package/dist/credentials/ownership.js +74 -0
  1054. package/dist/credentials/ownership.js.map +1 -0
  1055. package/dist/credentials/registry.d.ts +181 -0
  1056. package/dist/credentials/registry.d.ts.map +1 -0
  1057. package/dist/credentials/registry.js +240 -0
  1058. package/dist/credentials/registry.js.map +1 -0
  1059. package/dist/credentials/testing/conformance.d.ts +90 -0
  1060. package/dist/credentials/testing/conformance.d.ts.map +1 -0
  1061. package/dist/credentials/testing/conformance.js +170 -0
  1062. package/dist/credentials/testing/conformance.js.map +1 -0
  1063. package/dist/credentials/testing/index.d.ts +5 -0
  1064. package/dist/credentials/testing/index.d.ts.map +1 -0
  1065. package/dist/credentials/testing/index.js +16 -0
  1066. package/dist/credentials/testing/index.js.map +1 -0
  1067. package/dist/credentials/testing/with-credential-purposes.d.ts +33 -0
  1068. package/dist/credentials/testing/with-credential-purposes.d.ts.map +1 -0
  1069. package/dist/credentials/testing/with-credential-purposes.js +28 -0
  1070. package/dist/credentials/testing/with-credential-purposes.js.map +1 -0
  1071. package/dist/credentials/user-credential.resolver.d.ts +110 -0
  1072. package/dist/credentials/user-credential.resolver.d.ts.map +1 -0
  1073. package/dist/credentials/user-credential.resolver.js +165 -0
  1074. package/dist/credentials/user-credential.resolver.js.map +1 -0
  1075. package/dist/credentials/user-credentials.module.d.ts +17 -0
  1076. package/dist/credentials/user-credentials.module.d.ts.map +1 -0
  1077. package/dist/credentials/user-credentials.module.js +59 -0
  1078. package/dist/credentials/user-credentials.module.js.map +1 -0
  1079. package/dist/credentials/user-credentials.service.d.ts +82 -0
  1080. package/dist/credentials/user-credentials.service.d.ts.map +1 -0
  1081. package/dist/credentials/user-credentials.service.js +292 -0
  1082. package/dist/credentials/user-credentials.service.js.map +1 -0
  1083. package/dist/db-backup/admin-connection.util.d.ts +521 -0
  1084. package/dist/db-backup/admin-connection.util.d.ts.map +1 -0
  1085. package/dist/db-backup/admin-connection.util.js +786 -0
  1086. package/dist/db-backup/admin-connection.util.js.map +1 -0
  1087. package/dist/db-backup/backup-target.d.ts +222 -0
  1088. package/dist/db-backup/backup-target.d.ts.map +1 -0
  1089. package/dist/db-backup/backup-target.js +237 -0
  1090. package/dist/db-backup/backup-target.js.map +1 -0
  1091. package/dist/db-backup/carry-over.registry.d.ts +58 -0
  1092. package/dist/db-backup/carry-over.registry.d.ts.map +1 -0
  1093. package/dist/db-backup/carry-over.registry.js +96 -0
  1094. package/dist/db-backup/carry-over.registry.js.map +1 -0
  1095. package/dist/db-backup/data/db-backup-db.d.ts +207 -0
  1096. package/dist/db-backup/data/db-backup-db.d.ts.map +1 -0
  1097. package/dist/db-backup/data/db-backup-db.js +51 -0
  1098. package/dist/db-backup/data/db-backup-db.js.map +1 -0
  1099. package/dist/db-backup/database-restore.service.d.ts +760 -0
  1100. package/dist/db-backup/database-restore.service.d.ts.map +1 -0
  1101. package/dist/db-backup/database-restore.service.js +2113 -0
  1102. package/dist/db-backup/database-restore.service.js.map +1 -0
  1103. package/dist/db-backup/db-backup-admin.service.d.ts +358 -0
  1104. package/dist/db-backup/db-backup-admin.service.d.ts.map +1 -0
  1105. package/dist/db-backup/db-backup-admin.service.js +952 -0
  1106. package/dist/db-backup/db-backup-admin.service.js.map +1 -0
  1107. package/dist/db-backup/db-backup-events.d.ts +42 -0
  1108. package/dist/db-backup/db-backup-events.d.ts.map +1 -0
  1109. package/dist/db-backup/db-backup-events.js +123 -0
  1110. package/dist/db-backup/db-backup-events.js.map +1 -0
  1111. package/dist/db-backup/db-backup-key-prefix.d.ts +25 -0
  1112. package/dist/db-backup/db-backup-key-prefix.d.ts.map +1 -0
  1113. package/dist/db-backup/db-backup-key-prefix.js +54 -0
  1114. package/dist/db-backup/db-backup-key-prefix.js.map +1 -0
  1115. package/dist/db-backup/db-backup-retention.service.d.ts +91 -0
  1116. package/dist/db-backup/db-backup-retention.service.d.ts.map +1 -0
  1117. package/dist/db-backup/db-backup-retention.service.js +250 -0
  1118. package/dist/db-backup/db-backup-retention.service.js.map +1 -0
  1119. package/dist/db-backup/db-backup-runner.service.d.ts +816 -0
  1120. package/dist/db-backup/db-backup-runner.service.d.ts.map +1 -0
  1121. package/dist/db-backup/db-backup-runner.service.js +1866 -0
  1122. package/dist/db-backup/db-backup-runner.service.js.map +1 -0
  1123. package/dist/db-backup/db-backup-storage.d.ts +124 -0
  1124. package/dist/db-backup/db-backup-storage.d.ts.map +1 -0
  1125. package/dist/db-backup/db-backup-storage.js +268 -0
  1126. package/dist/db-backup/db-backup-storage.js.map +1 -0
  1127. package/dist/db-backup/db-backup.constants.d.ts +46 -0
  1128. package/dist/db-backup/db-backup.constants.d.ts.map +1 -0
  1129. package/dist/db-backup/db-backup.constants.js +51 -0
  1130. package/dist/db-backup/db-backup.constants.js.map +1 -0
  1131. package/dist/db-backup/db-backup.controller.d.ts +61 -0
  1132. package/dist/db-backup/db-backup.controller.d.ts.map +1 -0
  1133. package/dist/db-backup/db-backup.controller.js +683 -0
  1134. package/dist/db-backup/db-backup.controller.js.map +1 -0
  1135. package/dist/db-backup/db-backup.errors.d.ts +291 -0
  1136. package/dist/db-backup/db-backup.errors.d.ts.map +1 -0
  1137. package/dist/db-backup/db-backup.errors.js +433 -0
  1138. package/dist/db-backup/db-backup.errors.js.map +1 -0
  1139. package/dist/db-backup/db-backup.module.d.ts +39 -0
  1140. package/dist/db-backup/db-backup.module.d.ts.map +1 -0
  1141. package/dist/db-backup/db-backup.module.js +401 -0
  1142. package/dist/db-backup/db-backup.module.js.map +1 -0
  1143. package/dist/db-backup/db-backup.permissions.d.ts +32 -0
  1144. package/dist/db-backup/db-backup.permissions.d.ts.map +1 -0
  1145. package/dist/db-backup/db-backup.permissions.js +62 -0
  1146. package/dist/db-backup/db-backup.permissions.js.map +1 -0
  1147. package/dist/db-backup/db-backup.registrations.d.ts +76 -0
  1148. package/dist/db-backup/db-backup.registrations.d.ts.map +1 -0
  1149. package/dist/db-backup/db-backup.registrations.js +129 -0
  1150. package/dist/db-backup/db-backup.registrations.js.map +1 -0
  1151. package/dist/db-backup/db-backup.system-settings.d.ts +200 -0
  1152. package/dist/db-backup/db-backup.system-settings.d.ts.map +1 -0
  1153. package/dist/db-backup/db-backup.system-settings.js +145 -0
  1154. package/dist/db-backup/db-backup.system-settings.js.map +1 -0
  1155. package/dist/db-backup/doctor/backup-mirrors.doctor-check.d.ts +58 -0
  1156. package/dist/db-backup/doctor/backup-mirrors.doctor-check.d.ts.map +1 -0
  1157. package/dist/db-backup/doctor/backup-mirrors.doctor-check.js +140 -0
  1158. package/dist/db-backup/doctor/backup-mirrors.doctor-check.js.map +1 -0
  1159. package/dist/db-backup/doctor/backup-pg-client.doctor-check.d.ts +32 -0
  1160. package/dist/db-backup/doctor/backup-pg-client.doctor-check.d.ts.map +1 -0
  1161. package/dist/db-backup/doctor/backup-pg-client.doctor-check.js +90 -0
  1162. package/dist/db-backup/doctor/backup-pg-client.doctor-check.js.map +1 -0
  1163. package/dist/db-backup/doctor/backup-rls.doctor-check.d.ts +67 -0
  1164. package/dist/db-backup/doctor/backup-rls.doctor-check.d.ts.map +1 -0
  1165. package/dist/db-backup/doctor/backup-rls.doctor-check.js +141 -0
  1166. package/dist/db-backup/doctor/backup-rls.doctor-check.js.map +1 -0
  1167. package/dist/db-backup/doctor/backup-schedule.doctor-check.d.ts +53 -0
  1168. package/dist/db-backup/doctor/backup-schedule.doctor-check.d.ts.map +1 -0
  1169. package/dist/db-backup/doctor/backup-schedule.doctor-check.js +136 -0
  1170. package/dist/db-backup/doctor/backup-schedule.doctor-check.js.map +1 -0
  1171. package/dist/db-backup/dto/db-backup-actions.dto.d.ts +26 -0
  1172. package/dist/db-backup/dto/db-backup-actions.dto.d.ts.map +1 -0
  1173. package/dist/db-backup/dto/db-backup-actions.dto.js +75 -0
  1174. package/dist/db-backup/dto/db-backup-actions.dto.js.map +1 -0
  1175. package/dist/db-backup/dto/db-backup-config.dto.d.ts +56 -0
  1176. package/dist/db-backup/dto/db-backup-config.dto.d.ts.map +1 -0
  1177. package/dist/db-backup/dto/db-backup-config.dto.js +64 -0
  1178. package/dist/db-backup/dto/db-backup-config.dto.js.map +1 -0
  1179. package/dist/db-backup/dto/db-backup-list-query.dto.d.ts +13 -0
  1180. package/dist/db-backup/dto/db-backup-list-query.dto.d.ts.map +1 -0
  1181. package/dist/db-backup/dto/db-backup-list-query.dto.js +46 -0
  1182. package/dist/db-backup/dto/db-backup-list-query.dto.js.map +1 -0
  1183. package/dist/db-backup/dto/db-backup-node-credential.dto.d.ts +20 -0
  1184. package/dist/db-backup/dto/db-backup-node-credential.dto.d.ts.map +1 -0
  1185. package/dist/db-backup/dto/db-backup-node-credential.dto.js +58 -0
  1186. package/dist/db-backup/dto/db-backup-node-credential.dto.js.map +1 -0
  1187. package/dist/db-backup/dto/db-backup-restore.dto.d.ts +244 -0
  1188. package/dist/db-backup/dto/db-backup-restore.dto.d.ts.map +1 -0
  1189. package/dist/db-backup/dto/db-backup-restore.dto.js +335 -0
  1190. package/dist/db-backup/dto/db-backup-restore.dto.js.map +1 -0
  1191. package/dist/db-backup/dto/db-backup-run.dto.d.ts +70 -0
  1192. package/dist/db-backup/dto/db-backup-run.dto.d.ts.map +1 -0
  1193. package/dist/db-backup/dto/db-backup-run.dto.js +170 -0
  1194. package/dist/db-backup/dto/db-backup-run.dto.js.map +1 -0
  1195. package/dist/db-backup/handlers/db-backup-run.handler.d.ts +171 -0
  1196. package/dist/db-backup/handlers/db-backup-run.handler.d.ts.map +1 -0
  1197. package/dist/db-backup/handlers/db-backup-run.handler.js +354 -0
  1198. package/dist/db-backup/handlers/db-backup-run.handler.js.map +1 -0
  1199. package/dist/db-backup/handlers/db-backup-sweep.handler.d.ts +117 -0
  1200. package/dist/db-backup/handlers/db-backup-sweep.handler.d.ts.map +1 -0
  1201. package/dist/db-backup/handlers/db-backup-sweep.handler.js +539 -0
  1202. package/dist/db-backup/handlers/db-backup-sweep.handler.js.map +1 -0
  1203. package/dist/db-backup/handlers/db-restore-old-db-drop.handler.d.ts +40 -0
  1204. package/dist/db-backup/handlers/db-restore-old-db-drop.handler.d.ts.map +1 -0
  1205. package/dist/db-backup/handlers/db-restore-old-db-drop.handler.js +122 -0
  1206. package/dist/db-backup/handlers/db-restore-old-db-drop.handler.js.map +1 -0
  1207. package/dist/db-backup/handlers/db-restore-run.handler.d.ts +55 -0
  1208. package/dist/db-backup/handlers/db-restore-run.handler.d.ts.map +1 -0
  1209. package/dist/db-backup/handlers/db-restore-run.handler.js +207 -0
  1210. package/dist/db-backup/handlers/db-restore-run.handler.js.map +1 -0
  1211. package/dist/db-backup/index.d.ts +49 -0
  1212. package/dist/db-backup/index.d.ts.map +1 -0
  1213. package/dist/db-backup/index.js +116 -0
  1214. package/dist/db-backup/index.js.map +1 -0
  1215. package/dist/db-backup/migration-state.util.d.ts +62 -0
  1216. package/dist/db-backup/migration-state.util.d.ts.map +1 -0
  1217. package/dist/db-backup/migration-state.util.js +69 -0
  1218. package/dist/db-backup/migration-state.util.js.map +1 -0
  1219. package/dist/db-backup/options.d.ts +160 -0
  1220. package/dist/db-backup/options.d.ts.map +1 -0
  1221. package/dist/db-backup/options.js +103 -0
  1222. package/dist/db-backup/options.js.map +1 -0
  1223. package/dist/db-backup/pg-dump.util.d.ts +314 -0
  1224. package/dist/db-backup/pg-dump.util.d.ts.map +1 -0
  1225. package/dist/db-backup/pg-dump.util.js +458 -0
  1226. package/dist/db-backup/pg-dump.util.js.map +1 -0
  1227. package/dist/db-backup/pg-job-role.broker.d.ts +451 -0
  1228. package/dist/db-backup/pg-job-role.broker.d.ts.map +1 -0
  1229. package/dist/db-backup/pg-job-role.broker.js +912 -0
  1230. package/dist/db-backup/pg-job-role.broker.js.map +1 -0
  1231. package/dist/db-backup/pg-restore.util.d.ts +150 -0
  1232. package/dist/db-backup/pg-restore.util.d.ts.map +1 -0
  1233. package/dist/db-backup/pg-restore.util.js +236 -0
  1234. package/dist/db-backup/pg-restore.util.js.map +1 -0
  1235. package/dist/db-backup/pg-version.util.d.ts +207 -0
  1236. package/dist/db-backup/pg-version.util.d.ts.map +1 -0
  1237. package/dist/db-backup/pg-version.util.js +310 -0
  1238. package/dist/db-backup/pg-version.util.js.map +1 -0
  1239. package/dist/db-backup/ports.d.ts +212 -0
  1240. package/dist/db-backup/ports.d.ts.map +1 -0
  1241. package/dist/db-backup/ports.js +100 -0
  1242. package/dist/db-backup/ports.js.map +1 -0
  1243. package/dist/db-backup/restore-gate.d.ts +34 -0
  1244. package/dist/db-backup/restore-gate.d.ts.map +1 -0
  1245. package/dist/db-backup/restore-gate.js +80 -0
  1246. package/dist/db-backup/restore-gate.js.map +1 -0
  1247. package/dist/db-backup/restore-gate.registry.d.ts +253 -0
  1248. package/dist/db-backup/restore-gate.registry.d.ts.map +1 -0
  1249. package/dist/db-backup/restore-gate.registry.js +182 -0
  1250. package/dist/db-backup/restore-gate.registry.js.map +1 -0
  1251. package/dist/db-backup/restore-gates.builtin.d.ts +134 -0
  1252. package/dist/db-backup/restore-gates.builtin.d.ts.map +1 -0
  1253. package/dist/db-backup/restore-gates.builtin.js +513 -0
  1254. package/dist/db-backup/restore-gates.builtin.js.map +1 -0
  1255. package/dist/db-backup/restore-preflight.service.d.ts +339 -0
  1256. package/dist/db-backup/restore-preflight.service.d.ts.map +1 -0
  1257. package/dist/db-backup/restore-preflight.service.js +551 -0
  1258. package/dist/db-backup/restore-preflight.service.js.map +1 -0
  1259. package/dist/db-backup/schedule.util.d.ts +249 -0
  1260. package/dist/db-backup/schedule.util.d.ts.map +1 -0
  1261. package/dist/db-backup/schedule.util.js +619 -0
  1262. package/dist/db-backup/schedule.util.js.map +1 -0
  1263. package/dist/db-backup/tasks/db-backup-schedule.task.d.ts +96 -0
  1264. package/dist/db-backup/tasks/db-backup-schedule.task.d.ts.map +1 -0
  1265. package/dist/db-backup/tasks/db-backup-schedule.task.js +309 -0
  1266. package/dist/db-backup/tasks/db-backup-schedule.task.js.map +1 -0
  1267. package/dist/db-backup/testing/backup-target-conformance.d.ts +57 -0
  1268. package/dist/db-backup/testing/backup-target-conformance.d.ts.map +1 -0
  1269. package/dist/db-backup/testing/backup-target-conformance.js +307 -0
  1270. package/dist/db-backup/testing/backup-target-conformance.js.map +1 -0
  1271. package/dist/db-backup/testing/conformance.d.ts +61 -0
  1272. package/dist/db-backup/testing/conformance.d.ts.map +1 -0
  1273. package/dist/db-backup/testing/conformance.js +178 -0
  1274. package/dist/db-backup/testing/conformance.js.map +1 -0
  1275. package/dist/db-backup/testing/index.d.ts +49 -0
  1276. package/dist/db-backup/testing/index.d.ts.map +1 -0
  1277. package/dist/db-backup/testing/index.js +102 -0
  1278. package/dist/db-backup/testing/index.js.map +1 -0
  1279. package/dist/db-backup/testing/restore-gate-conformance.d.ts +82 -0
  1280. package/dist/db-backup/testing/restore-gate-conformance.d.ts.map +1 -0
  1281. package/dist/db-backup/testing/restore-gate-conformance.js +217 -0
  1282. package/dist/db-backup/testing/restore-gate-conformance.js.map +1 -0
  1283. package/dist/doctor/testing/describe-doctor-check-conformance.d.ts +80 -0
  1284. package/dist/doctor/testing/describe-doctor-check-conformance.d.ts.map +1 -0
  1285. package/dist/doctor/testing/describe-doctor-check-conformance.js +85 -0
  1286. package/dist/doctor/testing/describe-doctor-check-conformance.js.map +1 -0
  1287. package/dist/doctor/testing/doctor-read-only.suite.d.ts +203 -0
  1288. package/dist/doctor/testing/doctor-read-only.suite.d.ts.map +1 -0
  1289. package/dist/doctor/testing/doctor-read-only.suite.js +240 -0
  1290. package/dist/doctor/testing/doctor-read-only.suite.js.map +1 -0
  1291. package/dist/doctor/testing/index.d.ts +12 -0
  1292. package/dist/doctor/testing/index.d.ts.map +1 -0
  1293. package/dist/doctor/testing/index.js +29 -0
  1294. package/dist/doctor/testing/index.js.map +1 -0
  1295. package/dist/doctor/testing/recording-prisma.d.ts +83 -0
  1296. package/dist/doctor/testing/recording-prisma.d.ts.map +1 -0
  1297. package/dist/doctor/testing/recording-prisma.js +242 -0
  1298. package/dist/doctor/testing/recording-prisma.js.map +1 -0
  1299. package/dist/doctor/testing/run-doctor-check.d.ts +80 -0
  1300. package/dist/doctor/testing/run-doctor-check.d.ts.map +1 -0
  1301. package/dist/doctor/testing/run-doctor-check.js +176 -0
  1302. package/dist/doctor/testing/run-doctor-check.js.map +1 -0
  1303. package/dist/doctor/testing/write-failing-storage.d.ts +62 -0
  1304. package/dist/doctor/testing/write-failing-storage.d.ts.map +1 -0
  1305. package/dist/doctor/testing/write-failing-storage.js +99 -0
  1306. package/dist/doctor/testing/write-failing-storage.js.map +1 -0
  1307. package/dist/email/base-email.provider.d.ts +89 -0
  1308. package/dist/email/base-email.provider.d.ts.map +1 -0
  1309. package/dist/email/base-email.provider.js +223 -0
  1310. package/dist/email/base-email.provider.js.map +1 -0
  1311. package/dist/email/doctor/egress/email.egress.contributor.d.ts +30 -0
  1312. package/dist/email/doctor/egress/email.egress.contributor.d.ts.map +1 -0
  1313. package/dist/email/doctor/egress/email.egress.contributor.js +78 -0
  1314. package/dist/email/doctor/egress/email.egress.contributor.js.map +1 -0
  1315. package/dist/email/doctor/email-config.doctor-check.d.ts +42 -0
  1316. package/dist/email/doctor/email-config.doctor-check.d.ts.map +1 -0
  1317. package/dist/email/doctor/email-config.doctor-check.js +131 -0
  1318. package/dist/email/doctor/email-config.doctor-check.js.map +1 -0
  1319. package/dist/email/dto/email-settings-response.dto.d.ts +92 -0
  1320. package/dist/email/dto/email-settings-response.dto.d.ts.map +1 -0
  1321. package/dist/email/dto/email-settings-response.dto.js +26 -0
  1322. package/dist/email/dto/email-settings-response.dto.js.map +1 -0
  1323. package/dist/email/dto/test-email-result.dto.d.ts +18 -0
  1324. package/dist/email/dto/test-email-result.dto.d.ts.map +1 -0
  1325. package/dist/email/dto/test-email-result.dto.js +24 -0
  1326. package/dist/email/dto/test-email-result.dto.js.map +1 -0
  1327. package/dist/email/dto/update-email-settings.dto.d.ts +26 -0
  1328. package/dist/email/dto/update-email-settings.dto.d.ts.map +1 -0
  1329. package/dist/email/dto/update-email-settings.dto.js +25 -0
  1330. package/dist/email/dto/update-email-settings.dto.js.map +1 -0
  1331. package/dist/email/email-rate-limit.d.ts +38 -0
  1332. package/dist/email/email-rate-limit.d.ts.map +1 -0
  1333. package/dist/email/email-rate-limit.js +187 -0
  1334. package/dist/email/email-rate-limit.js.map +1 -0
  1335. package/dist/email/email-settings-compat.d.ts +95 -0
  1336. package/dist/email/email-settings-compat.d.ts.map +1 -0
  1337. package/dist/email/email-settings-compat.js +207 -0
  1338. package/dist/email/email-settings-compat.js.map +1 -0
  1339. package/dist/email/email-settings.controller.d.ts +45 -0
  1340. package/dist/email/email-settings.controller.d.ts.map +1 -0
  1341. package/dist/email/email-settings.controller.js +195 -0
  1342. package/dist/email/email-settings.controller.js.map +1 -0
  1343. package/dist/email/email-settings.schema.d.ts +3 -0
  1344. package/dist/email/email-settings.schema.d.ts.map +1 -0
  1345. package/dist/email/email-settings.schema.js +24 -0
  1346. package/dist/email/email-settings.schema.js.map +1 -0
  1347. package/dist/email/email-settings.service.d.ts +260 -0
  1348. package/dist/email/email-settings.service.d.ts.map +1 -0
  1349. package/dist/email/email-settings.service.js +570 -0
  1350. package/dist/email/email-settings.service.js.map +1 -0
  1351. package/dist/email/email-test-send.service.d.ts +101 -0
  1352. package/dist/email/email-test-send.service.d.ts.map +1 -0
  1353. package/dist/email/email-test-send.service.js +325 -0
  1354. package/dist/email/email-test-send.service.js.map +1 -0
  1355. package/dist/email/email.module.d.ts +60 -0
  1356. package/dist/email/email.module.d.ts.map +1 -0
  1357. package/dist/email/email.module.js +171 -0
  1358. package/dist/email/email.module.js.map +1 -0
  1359. package/dist/email/email.options.d.ts +83 -0
  1360. package/dist/email/email.options.d.ts.map +1 -0
  1361. package/dist/email/email.options.js +64 -0
  1362. package/dist/email/email.options.js.map +1 -0
  1363. package/dist/email/email.types.d.ts +125 -0
  1364. package/dist/email/email.types.d.ts.map +1 -0
  1365. package/dist/email/email.types.js +14 -0
  1366. package/dist/email/email.types.js.map +1 -0
  1367. package/dist/email/index.d.ts +55 -0
  1368. package/dist/email/index.d.ts.map +1 -0
  1369. package/dist/email/index.js +138 -0
  1370. package/dist/email/index.js.map +1 -0
  1371. package/dist/email/providers/email-provider.interface.d.ts +42 -0
  1372. package/dist/email/providers/email-provider.interface.d.ts.map +1 -0
  1373. package/dist/email/providers/email-provider.interface.js +3 -0
  1374. package/dist/email/providers/email-provider.interface.js.map +1 -0
  1375. package/dist/email/providers/ses-email.provider.d.ts +47 -0
  1376. package/dist/email/providers/ses-email.provider.d.ts.map +1 -0
  1377. package/dist/email/providers/ses-email.provider.js +226 -0
  1378. package/dist/email/providers/ses-email.provider.js.map +1 -0
  1379. package/dist/email/providers/smtp-email.provider.d.ts +57 -0
  1380. package/dist/email/providers/smtp-email.provider.d.ts.map +1 -0
  1381. package/dist/email/providers/smtp-email.provider.js +285 -0
  1382. package/dist/email/providers/smtp-email.provider.js.map +1 -0
  1383. package/dist/email/ses-credential.constants.d.ts +47 -0
  1384. package/dist/email/ses-credential.constants.d.ts.map +1 -0
  1385. package/dist/email/ses-credential.constants.js +79 -0
  1386. package/dist/email/ses-credential.constants.js.map +1 -0
  1387. package/dist/email/smtp-credential.constants.d.ts +46 -0
  1388. package/dist/email/smtp-credential.constants.d.ts.map +1 -0
  1389. package/dist/email/smtp-credential.constants.js +77 -0
  1390. package/dist/email/smtp-credential.constants.js.map +1 -0
  1391. package/dist/email/templates/allowlist-invitation.email.d.ts +47 -0
  1392. package/dist/email/templates/allowlist-invitation.email.d.ts.map +1 -0
  1393. package/dist/email/templates/allowlist-invitation.email.js +70 -0
  1394. package/dist/email/templates/allowlist-invitation.email.js.map +1 -0
  1395. package/dist/email/templates/backup-failed.email.d.ts +40 -0
  1396. package/dist/email/templates/backup-failed.email.d.ts.map +1 -0
  1397. package/dist/email/templates/backup-failed.email.js +120 -0
  1398. package/dist/email/templates/backup-failed.email.js.map +1 -0
  1399. package/dist/email/templates/broadcast.email.d.ts +67 -0
  1400. package/dist/email/templates/broadcast.email.d.ts.map +1 -0
  1401. package/dist/email/templates/broadcast.email.js +157 -0
  1402. package/dist/email/templates/broadcast.email.js.map +1 -0
  1403. package/dist/email/templates/email-template.registry.d.ts +182 -0
  1404. package/dist/email/templates/email-template.registry.d.ts.map +1 -0
  1405. package/dist/email/templates/email-template.registry.js +252 -0
  1406. package/dist/email/templates/email-template.registry.js.map +1 -0
  1407. package/dist/email/templates/email-template.types.d.ts +88 -0
  1408. package/dist/email/templates/email-template.types.d.ts.map +1 -0
  1409. package/dist/email/templates/email-template.types.js +31 -0
  1410. package/dist/email/templates/email-template.types.js.map +1 -0
  1411. package/dist/email/templates/index.d.ts +32 -0
  1412. package/dist/email/templates/index.d.ts.map +1 -0
  1413. package/dist/email/templates/index.js +76 -0
  1414. package/dist/email/templates/index.js.map +1 -0
  1415. package/dist/email/templates/job-failed.email.d.ts +47 -0
  1416. package/dist/email/templates/job-failed.email.d.ts.map +1 -0
  1417. package/dist/email/templates/job-failed.email.js +112 -0
  1418. package/dist/email/templates/job-failed.email.js.map +1 -0
  1419. package/dist/email/templates/layout-theme.d.ts +160 -0
  1420. package/dist/email/templates/layout-theme.d.ts.map +1 -0
  1421. package/dist/email/templates/layout-theme.js +134 -0
  1422. package/dist/email/templates/layout-theme.js.map +1 -0
  1423. package/dist/email/templates/layout.d.ts +114 -0
  1424. package/dist/email/templates/layout.d.ts.map +1 -0
  1425. package/dist/email/templates/layout.js +322 -0
  1426. package/dist/email/templates/layout.js.map +1 -0
  1427. package/dist/email/templates/node-offline.email.d.ts +36 -0
  1428. package/dist/email/templates/node-offline.email.d.ts.map +1 -0
  1429. package/dist/email/templates/node-offline.email.js +117 -0
  1430. package/dist/email/templates/node-offline.email.js.map +1 -0
  1431. package/dist/email/templates/platform-email-templates.d.ts +63 -0
  1432. package/dist/email/templates/platform-email-templates.d.ts.map +1 -0
  1433. package/dist/email/templates/platform-email-templates.js +34 -0
  1434. package/dist/email/templates/platform-email-templates.js.map +1 -0
  1435. package/dist/email/templates/render-context.d.ts +81 -0
  1436. package/dist/email/templates/render-context.d.ts.map +1 -0
  1437. package/dist/email/templates/render-context.js +115 -0
  1438. package/dist/email/templates/render-context.js.map +1 -0
  1439. package/dist/email/templates/restore-completed.email.d.ts +46 -0
  1440. package/dist/email/templates/restore-completed.email.d.ts.map +1 -0
  1441. package/dist/email/templates/restore-completed.email.js +118 -0
  1442. package/dist/email/templates/restore-completed.email.js.map +1 -0
  1443. package/dist/email/templates/role-changed.email.d.ts +36 -0
  1444. package/dist/email/templates/role-changed.email.d.ts.map +1 -0
  1445. package/dist/email/templates/role-changed.email.js +118 -0
  1446. package/dist/email/templates/role-changed.email.js.map +1 -0
  1447. package/dist/email/templates/safe-html.d.ts +110 -0
  1448. package/dist/email/templates/safe-html.d.ts.map +1 -0
  1449. package/dist/email/templates/safe-html.js +235 -0
  1450. package/dist/email/templates/safe-html.js.map +1 -0
  1451. package/dist/email/templates/test-email.email.d.ts +46 -0
  1452. package/dist/email/templates/test-email.email.d.ts.map +1 -0
  1453. package/dist/email/templates/test-email.email.js +129 -0
  1454. package/dist/email/templates/test-email.email.js.map +1 -0
  1455. package/dist/email/templates/user-welcome.email.d.ts +47 -0
  1456. package/dist/email/templates/user-welcome.email.d.ts.map +1 -0
  1457. package/dist/email/templates/user-welcome.email.js +96 -0
  1458. package/dist/email/templates/user-welcome.email.js.map +1 -0
  1459. package/dist/email/testing/conformance.d.ts +61 -0
  1460. package/dist/email/testing/conformance.d.ts.map +1 -0
  1461. package/dist/email/testing/conformance.js +179 -0
  1462. package/dist/email/testing/conformance.js.map +1 -0
  1463. package/dist/email/testing/index.d.ts +5 -0
  1464. package/dist/email/testing/index.d.ts.map +1 -0
  1465. package/dist/email/testing/index.js +16 -0
  1466. package/dist/email/testing/index.js.map +1 -0
  1467. package/dist/email/testing/transport-conformance.d.ts +111 -0
  1468. package/dist/email/testing/transport-conformance.d.ts.map +1 -0
  1469. package/dist/email/testing/transport-conformance.js +302 -0
  1470. package/dist/email/testing/transport-conformance.js.map +1 -0
  1471. package/dist/email/transports/builtin-email-transports.d.ts +53 -0
  1472. package/dist/email/transports/builtin-email-transports.d.ts.map +1 -0
  1473. package/dist/email/transports/builtin-email-transports.js +131 -0
  1474. package/dist/email/transports/builtin-email-transports.js.map +1 -0
  1475. package/dist/email/transports/email-transport.d.ts +265 -0
  1476. package/dist/email/transports/email-transport.d.ts.map +1 -0
  1477. package/dist/email/transports/email-transport.js +241 -0
  1478. package/dist/email/transports/email-transport.js.map +1 -0
  1479. package/dist/email/transports/email-transport.resolver.d.ts +75 -0
  1480. package/dist/email/transports/email-transport.resolver.d.ts.map +1 -0
  1481. package/dist/email/transports/email-transport.resolver.js +164 -0
  1482. package/dist/email/transports/email-transport.resolver.js.map +1 -0
  1483. package/dist/exports/csv.d.ts +95 -0
  1484. package/dist/exports/csv.d.ts.map +1 -0
  1485. package/dist/exports/csv.js +132 -0
  1486. package/dist/exports/csv.js.map +1 -0
  1487. package/dist/exports/datamodel.d.ts +139 -0
  1488. package/dist/exports/datamodel.d.ts.map +1 -0
  1489. package/dist/exports/datamodel.js +194 -0
  1490. package/dist/exports/datamodel.js.map +1 -0
  1491. package/dist/exports/documents/export-options.d.ts +102 -0
  1492. package/dist/exports/documents/export-options.d.ts.map +1 -0
  1493. package/dist/exports/documents/export-options.js +117 -0
  1494. package/dist/exports/documents/export-options.js.map +1 -0
  1495. package/dist/exports/documents/exporter-registry.d.ts +80 -0
  1496. package/dist/exports/documents/exporter-registry.d.ts.map +1 -0
  1497. package/dist/exports/documents/exporter-registry.js +96 -0
  1498. package/dist/exports/documents/exporter-registry.js.map +1 -0
  1499. package/dist/exports/export-job.d.ts +113 -0
  1500. package/dist/exports/export-job.d.ts.map +1 -0
  1501. package/dist/exports/export-job.js +140 -0
  1502. package/dist/exports/export-job.js.map +1 -0
  1503. package/dist/exports/export-stream.d.ts +46 -0
  1504. package/dist/exports/export-stream.d.ts.map +1 -0
  1505. package/dist/exports/export-stream.js +104 -0
  1506. package/dist/exports/export-stream.js.map +1 -0
  1507. package/dist/exports/export.registries.d.ts +89 -0
  1508. package/dist/exports/export.registries.d.ts.map +1 -0
  1509. package/dist/exports/export.registries.js +258 -0
  1510. package/dist/exports/export.registries.js.map +1 -0
  1511. package/dist/exports/export.types.d.ts +217 -0
  1512. package/dist/exports/export.types.d.ts.map +1 -0
  1513. package/dist/exports/export.types.js +19 -0
  1514. package/dist/exports/export.types.js.map +1 -0
  1515. package/dist/exports/exports.constants.d.ts +109 -0
  1516. package/dist/exports/exports.constants.d.ts.map +1 -0
  1517. package/dist/exports/exports.constants.js +133 -0
  1518. package/dist/exports/exports.constants.js.map +1 -0
  1519. package/dist/exports/exports.controller.d.ts +147 -0
  1520. package/dist/exports/exports.controller.d.ts.map +1 -0
  1521. package/dist/exports/exports.controller.js +196 -0
  1522. package/dist/exports/exports.controller.js.map +1 -0
  1523. package/dist/exports/exports.metrics.d.ts +45 -0
  1524. package/dist/exports/exports.metrics.d.ts.map +1 -0
  1525. package/dist/exports/exports.metrics.js +92 -0
  1526. package/dist/exports/exports.metrics.js.map +1 -0
  1527. package/dist/exports/exports.module.d.ts +29 -0
  1528. package/dist/exports/exports.module.d.ts.map +1 -0
  1529. package/dist/exports/exports.module.js +90 -0
  1530. package/dist/exports/exports.module.js.map +1 -0
  1531. package/dist/exports/exports.notifications.d.ts +78 -0
  1532. package/dist/exports/exports.notifications.d.ts.map +1 -0
  1533. package/dist/exports/exports.notifications.js +93 -0
  1534. package/dist/exports/exports.notifications.js.map +1 -0
  1535. package/dist/exports/exports.options.d.ts +140 -0
  1536. package/dist/exports/exports.options.d.ts.map +1 -0
  1537. package/dist/exports/exports.options.js +114 -0
  1538. package/dist/exports/exports.options.js.map +1 -0
  1539. package/dist/exports/exports.service.d.ts +111 -0
  1540. package/dist/exports/exports.service.d.ts.map +1 -0
  1541. package/dist/exports/exports.service.js +305 -0
  1542. package/dist/exports/exports.service.js.map +1 -0
  1543. package/dist/exports/handlers/export-purge.handler.d.ts +52 -0
  1544. package/dist/exports/handlers/export-purge.handler.d.ts.map +1 -0
  1545. package/dist/exports/handlers/export-purge.handler.js +135 -0
  1546. package/dist/exports/handlers/export-purge.handler.js.map +1 -0
  1547. package/dist/exports/handlers/export-run.handler.d.ts +50 -0
  1548. package/dist/exports/handlers/export-run.handler.d.ts.map +1 -0
  1549. package/dist/exports/handlers/export-run.handler.js +327 -0
  1550. package/dist/exports/handlers/export-run.handler.js.map +1 -0
  1551. package/dist/exports/index.d.ts +36 -0
  1552. package/dist/exports/index.d.ts.map +1 -0
  1553. package/dist/exports/index.js +140 -0
  1554. package/dist/exports/index.js.map +1 -0
  1555. package/dist/exports/ports.d.ts +77 -0
  1556. package/dist/exports/ports.d.ts.map +1 -0
  1557. package/dist/exports/ports.js +40 -0
  1558. package/dist/exports/ports.js.map +1 -0
  1559. package/dist/exports/request-fields.d.ts +18 -0
  1560. package/dist/exports/request-fields.d.ts.map +1 -0
  1561. package/dist/exports/request-fields.js +100 -0
  1562. package/dist/exports/request-fields.js.map +1 -0
  1563. package/dist/exports/sources/model-table.d.ts +40 -0
  1564. package/dist/exports/sources/model-table.d.ts.map +1 -0
  1565. package/dist/exports/sources/model-table.js +97 -0
  1566. package/dist/exports/sources/model-table.js.map +1 -0
  1567. package/dist/exports/sources/org-data.source.d.ts +40 -0
  1568. package/dist/exports/sources/org-data.source.d.ts.map +1 -0
  1569. package/dist/exports/sources/org-data.source.js +152 -0
  1570. package/dist/exports/sources/org-data.source.js.map +1 -0
  1571. package/dist/exports/sources/user-data.source.d.ts +33 -0
  1572. package/dist/exports/sources/user-data.source.d.ts.map +1 -0
  1573. package/dist/exports/sources/user-data.source.js +93 -0
  1574. package/dist/exports/sources/user-data.source.js.map +1 -0
  1575. package/dist/exports/tasks/export-purge.task.d.ts +17 -0
  1576. package/dist/exports/tasks/export-purge.task.d.ts.map +1 -0
  1577. package/dist/exports/tasks/export-purge.task.js +69 -0
  1578. package/dist/exports/tasks/export-purge.task.js.map +1 -0
  1579. package/dist/exports/testing/conformance.d.ts +138 -0
  1580. package/dist/exports/testing/conformance.d.ts.map +1 -0
  1581. package/dist/exports/testing/conformance.js +333 -0
  1582. package/dist/exports/testing/conformance.js.map +1 -0
  1583. package/dist/exports/testing/index.d.ts +5 -0
  1584. package/dist/exports/testing/index.d.ts.map +1 -0
  1585. package/dist/exports/testing/index.js +21 -0
  1586. package/dist/exports/testing/index.js.map +1 -0
  1587. package/dist/exports/testing/zip.d.ts +41 -0
  1588. package/dist/exports/testing/zip.d.ts.map +1 -0
  1589. package/dist/exports/testing/zip.js +92 -0
  1590. package/dist/exports/testing/zip.js.map +1 -0
  1591. package/dist/exports/writers/csv.writer.d.ts +20 -0
  1592. package/dist/exports/writers/csv.writer.d.ts.map +1 -0
  1593. package/dist/exports/writers/csv.writer.js +96 -0
  1594. package/dist/exports/writers/csv.writer.js.map +1 -0
  1595. package/dist/exports/writers/index.d.ts +11 -0
  1596. package/dist/exports/writers/index.d.ts.map +1 -0
  1597. package/dist/exports/writers/index.js +29 -0
  1598. package/dist/exports/writers/index.js.map +1 -0
  1599. package/dist/exports/writers/json.writer.d.ts +17 -0
  1600. package/dist/exports/writers/json.writer.d.ts.map +1 -0
  1601. package/dist/exports/writers/json.writer.js +83 -0
  1602. package/dist/exports/writers/json.writer.js.map +1 -0
  1603. package/dist/exports/writers/platform-sources.d.ts +8 -0
  1604. package/dist/exports/writers/platform-sources.d.ts.map +1 -0
  1605. package/dist/exports/writers/platform-sources.js +16 -0
  1606. package/dist/exports/writers/platform-sources.js.map +1 -0
  1607. package/dist/exports/writers/xlsx.writer.d.ts +20 -0
  1608. package/dist/exports/writers/xlsx.writer.d.ts.map +1 -0
  1609. package/dist/exports/writers/xlsx.writer.js +105 -0
  1610. package/dist/exports/writers/xlsx.writer.js.map +1 -0
  1611. package/dist/host/about/about-contributor.registry.d.ts +64 -0
  1612. package/dist/host/about/about-contributor.registry.d.ts.map +1 -0
  1613. package/dist/host/about/about-contributor.registry.js +79 -0
  1614. package/dist/host/about/about-contributor.registry.js.map +1 -0
  1615. package/dist/host/about/about-support-bundle.section.d.ts +150 -0
  1616. package/dist/host/about/about-support-bundle.section.d.ts.map +1 -0
  1617. package/dist/host/about/about-support-bundle.section.js +156 -0
  1618. package/dist/host/about/about-support-bundle.section.js.map +1 -0
  1619. package/dist/host/about/about.controller.d.ts +58 -0
  1620. package/dist/host/about/about.controller.d.ts.map +1 -0
  1621. package/dist/host/about/about.controller.js +185 -0
  1622. package/dist/host/about/about.controller.js.map +1 -0
  1623. package/dist/host/about/about.module.d.ts +22 -0
  1624. package/dist/host/about/about.module.d.ts.map +1 -0
  1625. package/dist/host/about/about.module.js +73 -0
  1626. package/dist/host/about/about.module.js.map +1 -0
  1627. package/dist/host/about/about.options.d.ts +38 -0
  1628. package/dist/host/about/about.options.d.ts.map +1 -0
  1629. package/dist/host/about/about.options.js +16 -0
  1630. package/dist/host/about/about.options.js.map +1 -0
  1631. package/dist/host/about/about.service.d.ts +52 -0
  1632. package/dist/host/about/about.service.d.ts.map +1 -0
  1633. package/dist/host/about/about.service.js +202 -0
  1634. package/dist/host/about/about.service.js.map +1 -0
  1635. package/dist/host/about/deploy-info.constants.d.ts +9 -0
  1636. package/dist/host/about/deploy-info.constants.d.ts.map +1 -0
  1637. package/dist/host/about/deploy-info.constants.js +12 -0
  1638. package/dist/host/about/deploy-info.constants.js.map +1 -0
  1639. package/dist/host/about/deploy-info.d.ts +154 -0
  1640. package/dist/host/about/deploy-info.d.ts.map +1 -0
  1641. package/dist/host/about/deploy-info.js +339 -0
  1642. package/dist/host/about/deploy-info.js.map +1 -0
  1643. package/dist/host/about/dto/about-response.dto.d.ts +268 -0
  1644. package/dist/host/about/dto/about-response.dto.d.ts.map +1 -0
  1645. package/dist/host/about/dto/about-response.dto.js +252 -0
  1646. package/dist/host/about/dto/about-response.dto.js.map +1 -0
  1647. package/dist/host/deployment/deployment-mode.d.ts +200 -0
  1648. package/dist/host/deployment/deployment-mode.d.ts.map +1 -0
  1649. package/dist/host/deployment/deployment-mode.js +261 -0
  1650. package/dist/host/deployment/deployment-mode.js.map +1 -0
  1651. package/dist/host/deployment/deployment-mode.service.d.ts +51 -0
  1652. package/dist/host/deployment/deployment-mode.service.d.ts.map +1 -0
  1653. package/dist/host/deployment/deployment-mode.service.js +83 -0
  1654. package/dist/host/deployment/deployment-mode.service.js.map +1 -0
  1655. package/dist/host/deployment/deployment-network.d.ts +41 -0
  1656. package/dist/host/deployment/deployment-network.d.ts.map +1 -0
  1657. package/dist/host/deployment/deployment-network.js +89 -0
  1658. package/dist/host/deployment/deployment-network.js.map +1 -0
  1659. package/dist/host/deployment/deployment-network.service.d.ts +28 -0
  1660. package/dist/host/deployment/deployment-network.service.d.ts.map +1 -0
  1661. package/dist/host/deployment/deployment-network.service.js +49 -0
  1662. package/dist/host/deployment/deployment-network.service.js.map +1 -0
  1663. package/dist/host/doctor/db-connection.doctor-check.d.ts +30 -0
  1664. package/dist/host/doctor/db-connection.doctor-check.d.ts.map +1 -0
  1665. package/dist/host/doctor/db-connection.doctor-check.js +90 -0
  1666. package/dist/host/doctor/db-connection.doctor-check.js.map +1 -0
  1667. package/dist/host/doctor/db-migrations.doctor-check.d.ts +48 -0
  1668. package/dist/host/doctor/db-migrations.doctor-check.d.ts.map +1 -0
  1669. package/dist/host/doctor/db-migrations.doctor-check.js +128 -0
  1670. package/dist/host/doctor/db-migrations.doctor-check.js.map +1 -0
  1671. package/dist/host/doctor/deployment-mode.doctor-check.d.ts +54 -0
  1672. package/dist/host/doctor/deployment-mode.doctor-check.d.ts.map +1 -0
  1673. package/dist/host/doctor/deployment-mode.doctor-check.js +110 -0
  1674. package/dist/host/doctor/deployment-mode.doctor-check.js.map +1 -0
  1675. package/dist/host/doctor/encryption-key.doctor-check.d.ts +25 -0
  1676. package/dist/host/doctor/encryption-key.doctor-check.d.ts.map +1 -0
  1677. package/dist/host/doctor/encryption-key.doctor-check.js +61 -0
  1678. package/dist/host/doctor/encryption-key.doctor-check.js.map +1 -0
  1679. package/dist/host/doctor/rls-role.doctor-check.d.ts +58 -0
  1680. package/dist/host/doctor/rls-role.doctor-check.d.ts.map +1 -0
  1681. package/dist/host/doctor/rls-role.doctor-check.js +118 -0
  1682. package/dist/host/doctor/rls-role.doctor-check.js.map +1 -0
  1683. package/dist/host/event-bus/builtin-event-bus-adapters.d.ts +15 -0
  1684. package/dist/host/event-bus/builtin-event-bus-adapters.d.ts.map +1 -0
  1685. package/dist/host/event-bus/builtin-event-bus-adapters.js +48 -0
  1686. package/dist/host/event-bus/builtin-event-bus-adapters.js.map +1 -0
  1687. package/dist/host/event-bus/doctor/event-bus.doctor-check.d.ts +32 -0
  1688. package/dist/host/event-bus/doctor/event-bus.doctor-check.d.ts.map +1 -0
  1689. package/dist/host/event-bus/doctor/event-bus.doctor-check.js +126 -0
  1690. package/dist/host/event-bus/doctor/event-bus.doctor-check.js.map +1 -0
  1691. package/dist/host/event-bus/event-bus-adapter.registry.d.ts +104 -0
  1692. package/dist/host/event-bus/event-bus-adapter.registry.d.ts.map +1 -0
  1693. package/dist/host/event-bus/event-bus-adapter.registry.js +90 -0
  1694. package/dist/host/event-bus/event-bus-adapter.registry.js.map +1 -0
  1695. package/dist/host/event-bus/event-bus-core.d.ts +74 -0
  1696. package/dist/host/event-bus/event-bus-core.d.ts.map +1 -0
  1697. package/dist/host/event-bus/event-bus-core.js +176 -0
  1698. package/dist/host/event-bus/event-bus-core.js.map +1 -0
  1699. package/dist/host/event-bus/event-bus.config.d.ts +46 -0
  1700. package/dist/host/event-bus/event-bus.config.d.ts.map +1 -0
  1701. package/dist/host/event-bus/event-bus.config.js +69 -0
  1702. package/dist/host/event-bus/event-bus.config.js.map +1 -0
  1703. package/dist/host/event-bus/event-bus.factory.d.ts +42 -0
  1704. package/dist/host/event-bus/event-bus.factory.d.ts.map +1 -0
  1705. package/dist/host/event-bus/event-bus.factory.js +71 -0
  1706. package/dist/host/event-bus/event-bus.factory.js.map +1 -0
  1707. package/dist/host/event-bus/event-bus.interface.d.ts +143 -0
  1708. package/dist/host/event-bus/event-bus.interface.d.ts.map +1 -0
  1709. package/dist/host/event-bus/event-bus.interface.js +154 -0
  1710. package/dist/host/event-bus/event-bus.interface.js.map +1 -0
  1711. package/dist/host/event-bus/event-bus.metrics.d.ts +66 -0
  1712. package/dist/host/event-bus/event-bus.metrics.d.ts.map +1 -0
  1713. package/dist/host/event-bus/event-bus.metrics.js +80 -0
  1714. package/dist/host/event-bus/event-bus.metrics.js.map +1 -0
  1715. package/dist/host/event-bus/in-process-event-bus.d.ts +52 -0
  1716. package/dist/host/event-bus/in-process-event-bus.d.ts.map +1 -0
  1717. package/dist/host/event-bus/in-process-event-bus.js +112 -0
  1718. package/dist/host/event-bus/in-process-event-bus.js.map +1 -0
  1719. package/dist/host/event-bus/postgres-event-bus.d.ts +181 -0
  1720. package/dist/host/event-bus/postgres-event-bus.d.ts.map +1 -0
  1721. package/dist/host/event-bus/postgres-event-bus.js +359 -0
  1722. package/dist/host/event-bus/postgres-event-bus.js.map +1 -0
  1723. package/dist/host/health/builtin-health-indicators.d.ts +14 -0
  1724. package/dist/host/health/builtin-health-indicators.d.ts.map +1 -0
  1725. package/dist/host/health/builtin-health-indicators.js +52 -0
  1726. package/dist/host/health/builtin-health-indicators.js.map +1 -0
  1727. package/dist/host/health/database.indicator.d.ts +19 -0
  1728. package/dist/host/health/database.indicator.d.ts.map +1 -0
  1729. package/dist/host/health/database.indicator.js +63 -0
  1730. package/dist/host/health/database.indicator.js.map +1 -0
  1731. package/dist/host/health/health-indicator.registry.d.ts +111 -0
  1732. package/dist/host/health/health-indicator.registry.d.ts.map +1 -0
  1733. package/dist/host/health/health-indicator.registry.js +102 -0
  1734. package/dist/host/health/health-indicator.registry.js.map +1 -0
  1735. package/dist/host/health/health-indicator.runner.d.ts +41 -0
  1736. package/dist/host/health/health-indicator.runner.d.ts.map +1 -0
  1737. package/dist/host/health/health-indicator.runner.js +92 -0
  1738. package/dist/host/health/health-indicator.runner.js.map +1 -0
  1739. package/dist/host/health/health.controller.d.ts +86 -0
  1740. package/dist/host/health/health.controller.d.ts.map +1 -0
  1741. package/dist/host/health/health.controller.js +236 -0
  1742. package/dist/host/health/health.controller.js.map +1 -0
  1743. package/dist/host/host-core.module.d.ts +41 -0
  1744. package/dist/host/host-core.module.d.ts.map +1 -0
  1745. package/dist/host/host-core.module.js +249 -0
  1746. package/dist/host/host-core.module.js.map +1 -0
  1747. package/dist/host/host-core.options.d.ts +152 -0
  1748. package/dist/host/host-core.options.d.ts.map +1 -0
  1749. package/dist/host/host-core.options.js +69 -0
  1750. package/dist/host/host-core.options.js.map +1 -0
  1751. package/dist/host/http/cors-options.d.ts +88 -0
  1752. package/dist/host/http/cors-options.d.ts.map +1 -0
  1753. package/dist/host/http/cors-options.js +158 -0
  1754. package/dist/host/http/cors-options.js.map +1 -0
  1755. package/dist/host/http/logging.interceptor.d.ts +21 -0
  1756. package/dist/host/http/logging.interceptor.d.ts.map +1 -0
  1757. package/dist/host/http/logging.interceptor.js +56 -0
  1758. package/dist/host/http/logging.interceptor.js.map +1 -0
  1759. package/dist/host/http/request-id.middleware.d.ts +33 -0
  1760. package/dist/host/http/request-id.middleware.d.ts.map +1 -0
  1761. package/dist/host/http/request-id.middleware.js +53 -0
  1762. package/dist/host/http/request-id.middleware.js.map +1 -0
  1763. package/dist/host/http/response-meta.registry.d.ts +62 -0
  1764. package/dist/host/http/response-meta.registry.d.ts.map +1 -0
  1765. package/dist/host/http/response-meta.registry.js +86 -0
  1766. package/dist/host/http/response-meta.registry.js.map +1 -0
  1767. package/dist/host/http/transform.interceptor.d.ts +77 -0
  1768. package/dist/host/http/transform.interceptor.d.ts.map +1 -0
  1769. package/dist/host/http/transform.interceptor.js +161 -0
  1770. package/dist/host/http/transform.interceptor.js.map +1 -0
  1771. package/dist/host/index.d.ts +83 -0
  1772. package/dist/host/index.d.ts.map +1 -0
  1773. package/dist/host/index.js +238 -0
  1774. package/dist/host/index.js.map +1 -0
  1775. package/dist/host/internal/bounded.d.ts +50 -0
  1776. package/dist/host/internal/bounded.d.ts.map +1 -0
  1777. package/dist/host/internal/bounded.js +109 -0
  1778. package/dist/host/internal/bounded.js.map +1 -0
  1779. package/dist/host/internal/host-access.d.ts +23 -0
  1780. package/dist/host/internal/host-access.d.ts.map +1 -0
  1781. package/dist/host/internal/host-access.js +42 -0
  1782. package/dist/host/internal/host-access.js.map +1 -0
  1783. package/dist/host/maintenance/doctor/maintenance-mode.doctor-check.d.ts +19 -0
  1784. package/dist/host/maintenance/doctor/maintenance-mode.doctor-check.d.ts.map +1 -0
  1785. package/dist/host/maintenance/doctor/maintenance-mode.doctor-check.js +80 -0
  1786. package/dist/host/maintenance/doctor/maintenance-mode.doctor-check.js.map +1 -0
  1787. package/dist/host/maintenance/dto/update-maintenance.dto.d.ts +115 -0
  1788. package/dist/host/maintenance/dto/update-maintenance.dto.d.ts.map +1 -0
  1789. package/dist/host/maintenance/dto/update-maintenance.dto.js +128 -0
  1790. package/dist/host/maintenance/dto/update-maintenance.dto.js.map +1 -0
  1791. package/dist/host/maintenance/maintenance-bypass.registry.d.ts +94 -0
  1792. package/dist/host/maintenance/maintenance-bypass.registry.d.ts.map +1 -0
  1793. package/dist/host/maintenance/maintenance-bypass.registry.js +90 -0
  1794. package/dist/host/maintenance/maintenance-bypass.registry.js.map +1 -0
  1795. package/dist/host/maintenance/maintenance-mode.service.d.ts +259 -0
  1796. package/dist/host/maintenance/maintenance-mode.service.d.ts.map +1 -0
  1797. package/dist/host/maintenance/maintenance-mode.service.js +368 -0
  1798. package/dist/host/maintenance/maintenance-mode.service.js.map +1 -0
  1799. package/dist/host/maintenance/maintenance.controller.d.ts +84 -0
  1800. package/dist/host/maintenance/maintenance.controller.d.ts.map +1 -0
  1801. package/dist/host/maintenance/maintenance.controller.js +176 -0
  1802. package/dist/host/maintenance/maintenance.controller.js.map +1 -0
  1803. package/dist/host/maintenance/maintenance.guard.d.ts +112 -0
  1804. package/dist/host/maintenance/maintenance.guard.d.ts.map +1 -0
  1805. package/dist/host/maintenance/maintenance.guard.js +274 -0
  1806. package/dist/host/maintenance/maintenance.guard.js.map +1 -0
  1807. package/dist/host/maintenance/maintenance.schemas.d.ts +91 -0
  1808. package/dist/host/maintenance/maintenance.schemas.d.ts.map +1 -0
  1809. package/dist/host/maintenance/maintenance.schemas.js +118 -0
  1810. package/dist/host/maintenance/maintenance.schemas.js.map +1 -0
  1811. package/dist/host/maintenance/maintenance.system-settings.d.ts +90 -0
  1812. package/dist/host/maintenance/maintenance.system-settings.d.ts.map +1 -0
  1813. package/dist/host/maintenance/maintenance.system-settings.js +76 -0
  1814. package/dist/host/maintenance/maintenance.system-settings.js.map +1 -0
  1815. package/dist/host/metrics/app-metrics.service.d.ts +365 -0
  1816. package/dist/host/metrics/app-metrics.service.d.ts.map +1 -0
  1817. package/dist/host/metrics/app-metrics.service.js +613 -0
  1818. package/dist/host/metrics/app-metrics.service.js.map +1 -0
  1819. package/dist/host/metrics/platform-app-metrics.d.ts +42 -0
  1820. package/dist/host/metrics/platform-app-metrics.d.ts.map +1 -0
  1821. package/dist/host/metrics/platform-app-metrics.js +203 -0
  1822. package/dist/host/metrics/platform-app-metrics.js.map +1 -0
  1823. package/dist/host/metrics/register.d.ts +22 -0
  1824. package/dist/host/metrics/register.d.ts.map +1 -0
  1825. package/dist/host/metrics/register.js +46 -0
  1826. package/dist/host/metrics/register.js.map +1 -0
  1827. package/dist/host/openapi/data-envelope.d.ts +7 -0
  1828. package/dist/host/openapi/data-envelope.d.ts.map +1 -0
  1829. package/dist/host/openapi/data-envelope.js +115 -0
  1830. package/dist/host/openapi/data-envelope.js.map +1 -0
  1831. package/dist/host/openapi/description.d.ts +22 -0
  1832. package/dist/host/openapi/description.d.ts.map +1 -0
  1833. package/dist/host/openapi/description.js +181 -0
  1834. package/dist/host/openapi/description.js.map +1 -0
  1835. package/dist/host/openapi/docs-page.d.ts +95 -0
  1836. package/dist/host/openapi/docs-page.d.ts.map +1 -0
  1837. package/dist/host/openapi/docs-page.js +297 -0
  1838. package/dist/host/openapi/docs-page.js.map +1 -0
  1839. package/dist/host/openapi/document.d.ts +107 -0
  1840. package/dist/host/openapi/document.d.ts.map +1 -0
  1841. package/dist/host/openapi/document.js +328 -0
  1842. package/dist/host/openapi/document.js.map +1 -0
  1843. package/dist/host/openapi/nullable.d.ts +9 -0
  1844. package/dist/host/openapi/nullable.d.ts.map +1 -0
  1845. package/dist/host/openapi/nullable.js +78 -0
  1846. package/dist/host/openapi/nullable.js.map +1 -0
  1847. package/dist/host/openapi/rbac-docs.d.ts +30 -0
  1848. package/dist/host/openapi/rbac-docs.d.ts.map +1 -0
  1849. package/dist/host/openapi/rbac-docs.js +105 -0
  1850. package/dist/host/openapi/rbac-docs.js.map +1 -0
  1851. package/dist/host/openapi/register-docs-routes.d.ts +177 -0
  1852. package/dist/host/openapi/register-docs-routes.d.ts.map +1 -0
  1853. package/dist/host/openapi/register-docs-routes.js +218 -0
  1854. package/dist/host/openapi/register-docs-routes.js.map +1 -0
  1855. package/dist/host/openapi/types.d.ts +56 -0
  1856. package/dist/host/openapi/types.d.ts.map +1 -0
  1857. package/dist/host/openapi/types.js +56 -0
  1858. package/dist/host/openapi/types.js.map +1 -0
  1859. package/dist/host/openapi/version.d.ts +24 -0
  1860. package/dist/host/openapi/version.d.ts.map +1 -0
  1861. package/dist/host/openapi/version.js +54 -0
  1862. package/dist/host/openapi/version.js.map +1 -0
  1863. package/dist/host/testing/conformance.d.ts +95 -0
  1864. package/dist/host/testing/conformance.d.ts.map +1 -0
  1865. package/dist/host/testing/conformance.js +210 -0
  1866. package/dist/host/testing/conformance.js.map +1 -0
  1867. package/dist/host/testing/event-bus-conformance.d.ts +52 -0
  1868. package/dist/host/testing/event-bus-conformance.d.ts.map +1 -0
  1869. package/dist/host/testing/event-bus-conformance.js +188 -0
  1870. package/dist/host/testing/event-bus-conformance.js.map +1 -0
  1871. package/dist/host/testing/fake-event-bus-network.d.ts +45 -0
  1872. package/dist/host/testing/fake-event-bus-network.d.ts.map +1 -0
  1873. package/dist/host/testing/fake-event-bus-network.js +117 -0
  1874. package/dist/host/testing/fake-event-bus-network.js.map +1 -0
  1875. package/dist/host/testing/index.d.ts +6 -0
  1876. package/dist/host/testing/index.d.ts.map +1 -0
  1877. package/dist/host/testing/index.js +19 -0
  1878. package/dist/host/testing/index.js.map +1 -0
  1879. package/dist/identity/allowlist/allowlist.controller.d.ts +22 -0
  1880. package/dist/identity/allowlist/allowlist.controller.d.ts.map +1 -0
  1881. package/dist/identity/allowlist/allowlist.controller.js +96 -0
  1882. package/dist/identity/allowlist/allowlist.controller.js.map +1 -0
  1883. package/dist/identity/allowlist/allowlist.module.d.ts +8 -0
  1884. package/dist/identity/allowlist/allowlist.module.d.ts.map +1 -0
  1885. package/dist/identity/allowlist/allowlist.module.js +31 -0
  1886. package/dist/identity/allowlist/allowlist.module.js.map +1 -0
  1887. package/dist/identity/allowlist/allowlist.permissions.d.ts +15 -0
  1888. package/dist/identity/allowlist/allowlist.permissions.d.ts.map +1 -0
  1889. package/dist/identity/allowlist/allowlist.permissions.js +37 -0
  1890. package/dist/identity/allowlist/allowlist.permissions.js.map +1 -0
  1891. package/dist/identity/allowlist/allowlist.service.d.ts +63 -0
  1892. package/dist/identity/allowlist/allowlist.service.d.ts.map +1 -0
  1893. package/dist/identity/allowlist/allowlist.service.js +258 -0
  1894. package/dist/identity/allowlist/allowlist.service.js.map +1 -0
  1895. package/dist/identity/allowlist/dto/add-email.dto.d.ts +13 -0
  1896. package/dist/identity/allowlist/dto/add-email.dto.d.ts.map +1 -0
  1897. package/dist/identity/allowlist/dto/add-email.dto.js +16 -0
  1898. package/dist/identity/allowlist/dto/add-email.dto.js.map +1 -0
  1899. package/dist/identity/allowlist/dto/allowlist-query.dto.d.ts +43 -0
  1900. package/dist/identity/allowlist/dto/allowlist-query.dto.d.ts.map +1 -0
  1901. package/dist/identity/allowlist/dto/allowlist-query.dto.js +17 -0
  1902. package/dist/identity/allowlist/dto/allowlist-query.dto.js.map +1 -0
  1903. package/dist/identity/allowlist/dto/allowlist-response.dto.d.ts +39 -0
  1904. package/dist/identity/allowlist/dto/allowlist-response.dto.d.ts.map +1 -0
  1905. package/dist/identity/allowlist/dto/allowlist-response.dto.js +33 -0
  1906. package/dist/identity/allowlist/dto/allowlist-response.dto.js.map +1 -0
  1907. package/dist/identity/auth/admin-bootstrap.service.d.ts +35 -0
  1908. package/dist/identity/auth/admin-bootstrap.service.d.ts.map +1 -0
  1909. package/dist/identity/auth/admin-bootstrap.service.js +138 -0
  1910. package/dist/identity/auth/admin-bootstrap.service.js.map +1 -0
  1911. package/dist/identity/auth/auth-error-codes.d.ts +64 -0
  1912. package/dist/identity/auth/auth-error-codes.d.ts.map +1 -0
  1913. package/dist/identity/auth/auth-error-codes.js +89 -0
  1914. package/dist/identity/auth/auth-error-codes.js.map +1 -0
  1915. package/dist/identity/auth/auth-provider.controller.d.ts +38 -0
  1916. package/dist/identity/auth/auth-provider.controller.d.ts.map +1 -0
  1917. package/dist/identity/auth/auth-provider.controller.js +137 -0
  1918. package/dist/identity/auth/auth-provider.controller.js.map +1 -0
  1919. package/dist/identity/auth/auth.controller.d.ts +92 -0
  1920. package/dist/identity/auth/auth.controller.d.ts.map +1 -0
  1921. package/dist/identity/auth/auth.controller.js +367 -0
  1922. package/dist/identity/auth/auth.controller.js.map +1 -0
  1923. package/dist/identity/auth/auth.module.d.ts +15 -0
  1924. package/dist/identity/auth/auth.module.d.ts.map +1 -0
  1925. package/dist/identity/auth/auth.module.js +89 -0
  1926. package/dist/identity/auth/auth.module.js.map +1 -0
  1927. package/dist/identity/auth/auth.service.d.ts +386 -0
  1928. package/dist/identity/auth/auth.service.d.ts.map +1 -0
  1929. package/dist/identity/auth/auth.service.js +1394 -0
  1930. package/dist/identity/auth/auth.service.js.map +1 -0
  1931. package/dist/identity/auth/cookie-http.d.ts +51 -0
  1932. package/dist/identity/auth/cookie-http.d.ts.map +1 -0
  1933. package/dist/identity/auth/cookie-http.js +3 -0
  1934. package/dist/identity/auth/cookie-http.js.map +1 -0
  1935. package/dist/identity/auth/credential-binding.d.ts +53 -0
  1936. package/dist/identity/auth/credential-binding.d.ts.map +1 -0
  1937. package/dist/identity/auth/credential-binding.js +73 -0
  1938. package/dist/identity/auth/credential-binding.js.map +1 -0
  1939. package/dist/identity/auth/decorators/auth-credential.decorator.d.ts +44 -0
  1940. package/dist/identity/auth/decorators/auth-credential.decorator.d.ts.map +1 -0
  1941. package/dist/identity/auth/decorators/auth-credential.decorator.js +23 -0
  1942. package/dist/identity/auth/decorators/auth-credential.decorator.js.map +1 -0
  1943. package/dist/identity/auth/decorators/auth.decorator.d.ts +97 -0
  1944. package/dist/identity/auth/decorators/auth.decorator.d.ts.map +1 -0
  1945. package/dist/identity/auth/decorators/auth.decorator.js +104 -0
  1946. package/dist/identity/auth/decorators/auth.decorator.js.map +1 -0
  1947. package/dist/identity/auth/decorators/current-org.decorator.d.ts +29 -0
  1948. package/dist/identity/auth/decorators/current-org.decorator.d.ts.map +1 -0
  1949. package/dist/identity/auth/decorators/current-org.decorator.js +55 -0
  1950. package/dist/identity/auth/decorators/current-org.decorator.js.map +1 -0
  1951. package/dist/identity/auth/decorators/current-principal.decorator.d.ts +38 -0
  1952. package/dist/identity/auth/decorators/current-principal.decorator.d.ts.map +1 -0
  1953. package/dist/identity/auth/decorators/current-principal.decorator.js +40 -0
  1954. package/dist/identity/auth/decorators/current-principal.decorator.js.map +1 -0
  1955. package/dist/identity/auth/decorators/current-user.decorator.d.ts +26 -0
  1956. package/dist/identity/auth/decorators/current-user.decorator.d.ts.map +1 -0
  1957. package/dist/identity/auth/decorators/current-user.decorator.js +33 -0
  1958. package/dist/identity/auth/decorators/current-user.decorator.js.map +1 -0
  1959. package/dist/identity/auth/decorators/index.d.ts +9 -0
  1960. package/dist/identity/auth/decorators/index.d.ts.map +1 -0
  1961. package/dist/identity/auth/decorators/index.js +25 -0
  1962. package/dist/identity/auth/decorators/index.js.map +1 -0
  1963. package/dist/identity/auth/decorators/permissions.decorator.d.ts +43 -0
  1964. package/dist/identity/auth/decorators/permissions.decorator.d.ts.map +1 -0
  1965. package/dist/identity/auth/decorators/permissions.decorator.js +48 -0
  1966. package/dist/identity/auth/decorators/permissions.decorator.js.map +1 -0
  1967. package/dist/identity/auth/decorators/public.decorator.d.ts +22 -0
  1968. package/dist/identity/auth/decorators/public.decorator.d.ts.map +1 -0
  1969. package/dist/identity/auth/decorators/public.decorator.js +27 -0
  1970. package/dist/identity/auth/decorators/public.decorator.js.map +1 -0
  1971. package/dist/identity/auth/decorators/roles.decorator.d.ts +26 -0
  1972. package/dist/identity/auth/decorators/roles.decorator.d.ts.map +1 -0
  1973. package/dist/identity/auth/decorators/roles.decorator.js +30 -0
  1974. package/dist/identity/auth/decorators/roles.decorator.js.map +1 -0
  1975. package/dist/identity/auth/doctor/auth-providers.doctor-check.d.ts +27 -0
  1976. package/dist/identity/auth/doctor/auth-providers.doctor-check.d.ts.map +1 -0
  1977. package/dist/identity/auth/doctor/auth-providers.doctor-check.js +78 -0
  1978. package/dist/identity/auth/doctor/auth-providers.doctor-check.js.map +1 -0
  1979. package/dist/identity/auth/doctor/egress/auth-providers.egress.contributor.d.ts +29 -0
  1980. package/dist/identity/auth/doctor/egress/auth-providers.egress.contributor.d.ts.map +1 -0
  1981. package/dist/identity/auth/doctor/egress/auth-providers.egress.contributor.js +97 -0
  1982. package/dist/identity/auth/doctor/egress/auth-providers.egress.contributor.js.map +1 -0
  1983. package/dist/identity/auth/doctor/egress/google-auth.egress.contributor.d.ts +2 -0
  1984. package/dist/identity/auth/doctor/egress/google-auth.egress.contributor.d.ts.map +1 -0
  1985. package/dist/identity/auth/doctor/egress/google-auth.egress.contributor.js +13 -0
  1986. package/dist/identity/auth/doctor/egress/google-auth.egress.contributor.js.map +1 -0
  1987. package/dist/identity/auth/doctor/initial-admin.doctor-check.d.ts +27 -0
  1988. package/dist/identity/auth/doctor/initial-admin.doctor-check.d.ts.map +1 -0
  1989. package/dist/identity/auth/doctor/initial-admin.doctor-check.js +87 -0
  1990. package/dist/identity/auth/doctor/initial-admin.doctor-check.js.map +1 -0
  1991. package/dist/identity/auth/doctor/jwt-secret.doctor-check.d.ts +27 -0
  1992. package/dist/identity/auth/doctor/jwt-secret.doctor-check.d.ts.map +1 -0
  1993. package/dist/identity/auth/doctor/jwt-secret.doctor-check.js +78 -0
  1994. package/dist/identity/auth/doctor/jwt-secret.doctor-check.js.map +1 -0
  1995. package/dist/identity/auth/doctor/principal-cache.doctor-check.d.ts +25 -0
  1996. package/dist/identity/auth/doctor/principal-cache.doctor-check.d.ts.map +1 -0
  1997. package/dist/identity/auth/doctor/principal-cache.doctor-check.js +95 -0
  1998. package/dist/identity/auth/doctor/principal-cache.doctor-check.js.map +1 -0
  1999. package/dist/identity/auth/dto/auth-provider.dto.d.ts +15 -0
  2000. package/dist/identity/auth/dto/auth-provider.dto.d.ts.map +1 -0
  2001. package/dist/identity/auth/dto/auth-provider.dto.js +60 -0
  2002. package/dist/identity/auth/dto/auth-provider.dto.js.map +1 -0
  2003. package/dist/identity/auth/dto/auth-user.dto.d.ts +50 -0
  2004. package/dist/identity/auth/dto/auth-user.dto.d.ts.map +1 -0
  2005. package/dist/identity/auth/dto/auth-user.dto.js +232 -0
  2006. package/dist/identity/auth/dto/auth-user.dto.js.map +1 -0
  2007. package/dist/identity/auth/dto/switch-org.dto.d.ts +8 -0
  2008. package/dist/identity/auth/dto/switch-org.dto.d.ts.map +1 -0
  2009. package/dist/identity/auth/dto/switch-org.dto.js +10 -0
  2010. package/dist/identity/auth/dto/switch-org.dto.js.map +1 -0
  2011. package/dist/identity/auth/external-profile.d.ts +86 -0
  2012. package/dist/identity/auth/external-profile.d.ts.map +1 -0
  2013. package/dist/identity/auth/external-profile.js +127 -0
  2014. package/dist/identity/auth/external-profile.js.map +1 -0
  2015. package/dist/identity/auth/filters/auth-provider-exception.filter.d.ts +24 -0
  2016. package/dist/identity/auth/filters/auth-provider-exception.filter.d.ts.map +1 -0
  2017. package/dist/identity/auth/filters/auth-provider-exception.filter.js +62 -0
  2018. package/dist/identity/auth/filters/auth-provider-exception.filter.js.map +1 -0
  2019. package/dist/identity/auth/filters/google-oauth-exception.filter.d.ts +27 -0
  2020. package/dist/identity/auth/filters/google-oauth-exception.filter.d.ts.map +1 -0
  2021. package/dist/identity/auth/filters/google-oauth-exception.filter.js +65 -0
  2022. package/dist/identity/auth/filters/google-oauth-exception.filter.js.map +1 -0
  2023. package/dist/identity/auth/guards/external-provider.guard.d.ts +29 -0
  2024. package/dist/identity/auth/guards/external-provider.guard.d.ts.map +1 -0
  2025. package/dist/identity/auth/guards/external-provider.guard.js +166 -0
  2026. package/dist/identity/auth/guards/external-provider.guard.js.map +1 -0
  2027. package/dist/identity/auth/guards/google-oauth.guard.d.ts +70 -0
  2028. package/dist/identity/auth/guards/google-oauth.guard.d.ts.map +1 -0
  2029. package/dist/identity/auth/guards/google-oauth.guard.js +108 -0
  2030. package/dist/identity/auth/guards/google-oauth.guard.js.map +1 -0
  2031. package/dist/identity/auth/guards/index.d.ts +5 -0
  2032. package/dist/identity/auth/guards/index.d.ts.map +1 -0
  2033. package/dist/identity/auth/guards/index.js +21 -0
  2034. package/dist/identity/auth/guards/index.js.map +1 -0
  2035. package/dist/identity/auth/guards/jwt-auth.guard.d.ts +85 -0
  2036. package/dist/identity/auth/guards/jwt-auth.guard.d.ts.map +1 -0
  2037. package/dist/identity/auth/guards/jwt-auth.guard.js +250 -0
  2038. package/dist/identity/auth/guards/jwt-auth.guard.js.map +1 -0
  2039. package/dist/identity/auth/guards/permissions.guard.d.ts +21 -0
  2040. package/dist/identity/auth/guards/permissions.guard.d.ts.map +1 -0
  2041. package/dist/identity/auth/guards/permissions.guard.js +79 -0
  2042. package/dist/identity/auth/guards/permissions.guard.js.map +1 -0
  2043. package/dist/identity/auth/guards/roles.guard.d.ts +20 -0
  2044. package/dist/identity/auth/guards/roles.guard.d.ts.map +1 -0
  2045. package/dist/identity/auth/guards/roles.guard.js +61 -0
  2046. package/dist/identity/auth/guards/roles.guard.js.map +1 -0
  2047. package/dist/identity/auth/handlers/token-cleanup.handler.d.ts +44 -0
  2048. package/dist/identity/auth/handlers/token-cleanup.handler.d.ts.map +1 -0
  2049. package/dist/identity/auth/handlers/token-cleanup.handler.js +124 -0
  2050. package/dist/identity/auth/handlers/token-cleanup.handler.js.map +1 -0
  2051. package/dist/identity/auth/interfaces/authenticated-user.interface.d.ts +121 -0
  2052. package/dist/identity/auth/interfaces/authenticated-user.interface.d.ts.map +1 -0
  2053. package/dist/identity/auth/interfaces/authenticated-user.interface.js +25 -0
  2054. package/dist/identity/auth/interfaces/authenticated-user.interface.js.map +1 -0
  2055. package/dist/identity/auth/principal-cache/index.d.ts +5 -0
  2056. package/dist/identity/auth/principal-cache/index.d.ts.map +1 -0
  2057. package/dist/identity/auth/principal-cache/index.js +15 -0
  2058. package/dist/identity/auth/principal-cache/index.js.map +1 -0
  2059. package/dist/identity/auth/principal-cache/local-event-bus.d.ts +15 -0
  2060. package/dist/identity/auth/principal-cache/local-event-bus.d.ts.map +1 -0
  2061. package/dist/identity/auth/principal-cache/local-event-bus.js +53 -0
  2062. package/dist/identity/auth/principal-cache/local-event-bus.js.map +1 -0
  2063. package/dist/identity/auth/principal-cache/principal-cache.config.d.ts +16 -0
  2064. package/dist/identity/auth/principal-cache/principal-cache.config.d.ts.map +1 -0
  2065. package/dist/identity/auth/principal-cache/principal-cache.config.js +55 -0
  2066. package/dist/identity/auth/principal-cache/principal-cache.config.js.map +1 -0
  2067. package/dist/identity/auth/principal-cache/principal-cache.module.d.ts +9 -0
  2068. package/dist/identity/auth/principal-cache/principal-cache.module.d.ts.map +1 -0
  2069. package/dist/identity/auth/principal-cache/principal-cache.module.js +44 -0
  2070. package/dist/identity/auth/principal-cache/principal-cache.module.js.map +1 -0
  2071. package/dist/identity/auth/principal-cache/principal-cache.service.d.ts +148 -0
  2072. package/dist/identity/auth/principal-cache/principal-cache.service.d.ts.map +1 -0
  2073. package/dist/identity/auth/principal-cache/principal-cache.service.js +381 -0
  2074. package/dist/identity/auth/principal-cache/principal-cache.service.js.map +1 -0
  2075. package/dist/identity/auth/principal.factory.d.ts +191 -0
  2076. package/dist/identity/auth/principal.factory.d.ts.map +1 -0
  2077. package/dist/identity/auth/principal.factory.js +247 -0
  2078. package/dist/identity/auth/principal.factory.js.map +1 -0
  2079. package/dist/identity/auth/providers/auth-provider.registry.d.ts +217 -0
  2080. package/dist/identity/auth/providers/auth-provider.registry.d.ts.map +1 -0
  2081. package/dist/identity/auth/providers/auth-provider.registry.js +136 -0
  2082. package/dist/identity/auth/providers/auth-provider.registry.js.map +1 -0
  2083. package/dist/identity/auth/providers/cookie-state-store.d.ts +88 -0
  2084. package/dist/identity/auth/providers/cookie-state-store.d.ts.map +1 -0
  2085. package/dist/identity/auth/providers/cookie-state-store.js +86 -0
  2086. package/dist/identity/auth/providers/cookie-state-store.js.map +1 -0
  2087. package/dist/identity/auth/providers/google.provider.d.ts +3 -0
  2088. package/dist/identity/auth/providers/google.provider.d.ts.map +1 -0
  2089. package/dist/identity/auth/providers/google.provider.js +34 -0
  2090. package/dist/identity/auth/providers/google.provider.js.map +1 -0
  2091. package/dist/identity/auth/sign-in-policy.d.ts +87 -0
  2092. package/dist/identity/auth/sign-in-policy.d.ts.map +1 -0
  2093. package/dist/identity/auth/sign-in-policy.js +34 -0
  2094. package/dist/identity/auth/sign-in-policy.js.map +1 -0
  2095. package/dist/identity/auth/sign-in-response.d.ts +94 -0
  2096. package/dist/identity/auth/sign-in-response.d.ts.map +1 -0
  2097. package/dist/identity/auth/sign-in-response.js +128 -0
  2098. package/dist/identity/auth/sign-in-response.js.map +1 -0
  2099. package/dist/identity/auth/strategies/google.strategy.d.ts +44 -0
  2100. package/dist/identity/auth/strategies/google.strategy.d.ts.map +1 -0
  2101. package/dist/identity/auth/strategies/google.strategy.js +67 -0
  2102. package/dist/identity/auth/strategies/google.strategy.js.map +1 -0
  2103. package/dist/identity/auth/strategies/jwt.strategy.d.ts +58 -0
  2104. package/dist/identity/auth/strategies/jwt.strategy.d.ts.map +1 -0
  2105. package/dist/identity/auth/strategies/jwt.strategy.js +57 -0
  2106. package/dist/identity/auth/strategies/jwt.strategy.js.map +1 -0
  2107. package/dist/identity/auth/tasks/token-cleanup.task.d.ts +8 -0
  2108. package/dist/identity/auth/tasks/token-cleanup.task.d.ts.map +1 -0
  2109. package/dist/identity/auth/tasks/token-cleanup.task.js +62 -0
  2110. package/dist/identity/auth/tasks/token-cleanup.task.js.map +1 -0
  2111. package/dist/identity/auth/tenancy-mode.d.ts +16 -0
  2112. package/dist/identity/auth/tenancy-mode.d.ts.map +1 -0
  2113. package/dist/identity/auth/tenancy-mode.js +41 -0
  2114. package/dist/identity/auth/tenancy-mode.js.map +1 -0
  2115. package/dist/identity/data/identity-db.d.ts +448 -0
  2116. package/dist/identity/data/identity-db.d.ts.map +1 -0
  2117. package/dist/identity/data/identity-db.js +58 -0
  2118. package/dist/identity/data/identity-db.js.map +1 -0
  2119. package/dist/identity/device-auth/device-auth.controller.d.ts +57 -0
  2120. package/dist/identity/device-auth/device-auth.controller.d.ts.map +1 -0
  2121. package/dist/identity/device-auth/device-auth.controller.js +315 -0
  2122. package/dist/identity/device-auth/device-auth.controller.js.map +1 -0
  2123. package/dist/identity/device-auth/device-auth.module.d.ts +16 -0
  2124. package/dist/identity/device-auth/device-auth.module.d.ts.map +1 -0
  2125. package/dist/identity/device-auth/device-auth.module.js +41 -0
  2126. package/dist/identity/device-auth/device-auth.module.js.map +1 -0
  2127. package/dist/identity/device-auth/device-auth.service.d.ts +213 -0
  2128. package/dist/identity/device-auth/device-auth.service.d.ts.map +1 -0
  2129. package/dist/identity/device-auth/device-auth.service.js +738 -0
  2130. package/dist/identity/device-auth/device-auth.service.js.map +1 -0
  2131. package/dist/identity/device-auth/dto/device-activate-response.dto.d.ts +10 -0
  2132. package/dist/identity/device-auth/dto/device-activate-response.dto.d.ts.map +1 -0
  2133. package/dist/identity/device-auth/dto/device-activate-response.dto.js +54 -0
  2134. package/dist/identity/device-auth/dto/device-activate-response.dto.js.map +1 -0
  2135. package/dist/identity/device-auth/dto/device-authorize-request.dto.d.ts +17 -0
  2136. package/dist/identity/device-auth/dto/device-authorize-request.dto.d.ts.map +1 -0
  2137. package/dist/identity/device-auth/dto/device-authorize-request.dto.js +41 -0
  2138. package/dist/identity/device-auth/dto/device-authorize-request.dto.js.map +1 -0
  2139. package/dist/identity/device-auth/dto/device-authorize-response.dto.d.ts +8 -0
  2140. package/dist/identity/device-auth/dto/device-authorize-response.dto.d.ts.map +1 -0
  2141. package/dist/identity/device-auth/dto/device-authorize-response.dto.js +36 -0
  2142. package/dist/identity/device-auth/dto/device-authorize-response.dto.js.map +1 -0
  2143. package/dist/identity/device-auth/dto/device-code-request.dto.d.ts +30 -0
  2144. package/dist/identity/device-auth/dto/device-code-request.dto.d.ts.map +1 -0
  2145. package/dist/identity/device-auth/dto/device-code-request.dto.js +51 -0
  2146. package/dist/identity/device-auth/dto/device-code-request.dto.js.map +1 -0
  2147. package/dist/identity/device-auth/dto/device-code-response.dto.d.ts +13 -0
  2148. package/dist/identity/device-auth/dto/device-code-response.dto.d.ts.map +1 -0
  2149. package/dist/identity/device-auth/dto/device-code-response.dto.js +74 -0
  2150. package/dist/identity/device-auth/dto/device-code-response.dto.js.map +1 -0
  2151. package/dist/identity/device-auth/dto/device-session.dto.d.ts +24 -0
  2152. package/dist/identity/device-auth/dto/device-session.dto.d.ts.map +1 -0
  2153. package/dist/identity/device-auth/dto/device-session.dto.js +151 -0
  2154. package/dist/identity/device-auth/dto/device-session.dto.js.map +1 -0
  2155. package/dist/identity/device-auth/dto/device-token-error.dto.d.ts +16 -0
  2156. package/dist/identity/device-auth/dto/device-token-error.dto.d.ts.map +1 -0
  2157. package/dist/identity/device-auth/dto/device-token-error.dto.js +53 -0
  2158. package/dist/identity/device-auth/dto/device-token-error.dto.js.map +1 -0
  2159. package/dist/identity/device-auth/dto/device-token-request.dto.d.ts +14 -0
  2160. package/dist/identity/device-auth/dto/device-token-request.dto.d.ts.map +1 -0
  2161. package/dist/identity/device-auth/dto/device-token-request.dto.js +33 -0
  2162. package/dist/identity/device-auth/dto/device-token-request.dto.js.map +1 -0
  2163. package/dist/identity/device-auth/dto/device-token-response.dto.d.ts +50 -0
  2164. package/dist/identity/device-auth/dto/device-token-response.dto.d.ts.map +1 -0
  2165. package/dist/identity/device-auth/dto/device-token-response.dto.js +145 -0
  2166. package/dist/identity/device-auth/dto/device-token-response.dto.js.map +1 -0
  2167. package/dist/identity/device-auth/dto/index.d.ts +10 -0
  2168. package/dist/identity/device-auth/dto/index.d.ts.map +1 -0
  2169. package/dist/identity/device-auth/dto/index.js +26 -0
  2170. package/dist/identity/device-auth/dto/index.js.map +1 -0
  2171. package/dist/identity/device-auth/exceptions/device-token-error.exception.d.ts +38 -0
  2172. package/dist/identity/device-auth/exceptions/device-token-error.exception.d.ts.map +1 -0
  2173. package/dist/identity/device-auth/exceptions/device-token-error.exception.js +61 -0
  2174. package/dist/identity/device-auth/exceptions/device-token-error.exception.js.map +1 -0
  2175. package/dist/identity/device-auth/handlers/device-code-cleanup.handler.d.ts +30 -0
  2176. package/dist/identity/device-auth/handlers/device-code-cleanup.handler.d.ts.map +1 -0
  2177. package/dist/identity/device-auth/handlers/device-code-cleanup.handler.js +80 -0
  2178. package/dist/identity/device-auth/handlers/device-code-cleanup.handler.js.map +1 -0
  2179. package/dist/identity/device-auth/tasks/device-code-cleanup.task.d.ts +8 -0
  2180. package/dist/identity/device-auth/tasks/device-code-cleanup.task.d.ts.map +1 -0
  2181. package/dist/identity/device-auth/tasks/device-code-cleanup.task.js +58 -0
  2182. package/dist/identity/device-auth/tasks/device-code-cleanup.task.js.map +1 -0
  2183. package/dist/identity/extensions/user-extensions.d.ts +263 -0
  2184. package/dist/identity/extensions/user-extensions.d.ts.map +1 -0
  2185. package/dist/identity/extensions/user-extensions.js +455 -0
  2186. package/dist/identity/extensions/user-extensions.js.map +1 -0
  2187. package/dist/identity/identity.configuration.d.ts +81 -0
  2188. package/dist/identity/identity.configuration.d.ts.map +1 -0
  2189. package/dist/identity/identity.configuration.js +87 -0
  2190. package/dist/identity/identity.configuration.js.map +1 -0
  2191. package/dist/identity/identity.constants.d.ts +3 -0
  2192. package/dist/identity/identity.constants.d.ts.map +1 -0
  2193. package/dist/identity/identity.constants.js +14 -0
  2194. package/dist/identity/identity.constants.js.map +1 -0
  2195. package/dist/identity/identity.events.d.ts +124 -0
  2196. package/dist/identity/identity.events.d.ts.map +1 -0
  2197. package/dist/identity/identity.events.js +74 -0
  2198. package/dist/identity/identity.events.js.map +1 -0
  2199. package/dist/identity/identity.module.d.ts +35 -0
  2200. package/dist/identity/identity.module.d.ts.map +1 -0
  2201. package/dist/identity/identity.module.js +127 -0
  2202. package/dist/identity/identity.module.js.map +1 -0
  2203. package/dist/identity/identity.options.d.ts +92 -0
  2204. package/dist/identity/identity.options.d.ts.map +1 -0
  2205. package/dist/identity/identity.options.js +71 -0
  2206. package/dist/identity/identity.options.js.map +1 -0
  2207. package/dist/identity/identity.permissions.d.ts +135 -0
  2208. package/dist/identity/identity.permissions.d.ts.map +1 -0
  2209. package/dist/identity/identity.permissions.js +111 -0
  2210. package/dist/identity/identity.permissions.js.map +1 -0
  2211. package/dist/identity/index.d.ts +121 -0
  2212. package/dist/identity/index.d.ts.map +1 -0
  2213. package/dist/identity/index.js +243 -0
  2214. package/dist/identity/index.js.map +1 -0
  2215. package/dist/identity/metadata/identity-metadata.service.d.ts +142 -0
  2216. package/dist/identity/metadata/identity-metadata.service.d.ts.map +1 -0
  2217. package/dist/identity/metadata/identity-metadata.service.js +273 -0
  2218. package/dist/identity/metadata/identity-metadata.service.js.map +1 -0
  2219. package/dist/identity/metadata/metadata-registry.d.ts +102 -0
  2220. package/dist/identity/metadata/metadata-registry.d.ts.map +1 -0
  2221. package/dist/identity/metadata/metadata-registry.js +130 -0
  2222. package/dist/identity/metadata/metadata-registry.js.map +1 -0
  2223. package/dist/identity/metadata/metadata-secret-guard.d.ts +58 -0
  2224. package/dist/identity/metadata/metadata-secret-guard.d.ts.map +1 -0
  2225. package/dist/identity/metadata/metadata-secret-guard.js +138 -0
  2226. package/dist/identity/metadata/metadata-secret-guard.js.map +1 -0
  2227. package/dist/identity/organizations/doctor/tenancy-mode.doctor-check.d.ts +49 -0
  2228. package/dist/identity/organizations/doctor/tenancy-mode.doctor-check.d.ts.map +1 -0
  2229. package/dist/identity/organizations/doctor/tenancy-mode.doctor-check.js +129 -0
  2230. package/dist/identity/organizations/doctor/tenancy-mode.doctor-check.js.map +1 -0
  2231. package/dist/identity/organizations/dto/org-invite.dto.d.ts +37 -0
  2232. package/dist/identity/organizations/dto/org-invite.dto.d.ts.map +1 -0
  2233. package/dist/identity/organizations/dto/org-invite.dto.js +21 -0
  2234. package/dist/identity/organizations/dto/org-invite.dto.js.map +1 -0
  2235. package/dist/identity/organizations/dto/org-member.dto.d.ts +29 -0
  2236. package/dist/identity/organizations/dto/org-member.dto.d.ts.map +1 -0
  2237. package/dist/identity/organizations/dto/org-member.dto.js +22 -0
  2238. package/dist/identity/organizations/dto/org-member.dto.js.map +1 -0
  2239. package/dist/identity/organizations/dto/organization.dto.d.ts +34 -0
  2240. package/dist/identity/organizations/dto/organization.dto.d.ts.map +1 -0
  2241. package/dist/identity/organizations/dto/organization.dto.js +27 -0
  2242. package/dist/identity/organizations/dto/organization.dto.js.map +1 -0
  2243. package/dist/identity/organizations/org-admin.common.d.ts +34 -0
  2244. package/dist/identity/organizations/org-admin.common.d.ts.map +1 -0
  2245. package/dist/identity/organizations/org-admin.common.js +76 -0
  2246. package/dist/identity/organizations/org-admin.common.js.map +1 -0
  2247. package/dist/identity/organizations/org-invites.controller.d.ts +21 -0
  2248. package/dist/identity/organizations/org-invites.controller.d.ts.map +1 -0
  2249. package/dist/identity/organizations/org-invites.controller.js +107 -0
  2250. package/dist/identity/organizations/org-invites.controller.js.map +1 -0
  2251. package/dist/identity/organizations/org-invites.service.d.ts +128 -0
  2252. package/dist/identity/organizations/org-invites.service.d.ts.map +1 -0
  2253. package/dist/identity/organizations/org-invites.service.js +294 -0
  2254. package/dist/identity/organizations/org-invites.service.js.map +1 -0
  2255. package/dist/identity/organizations/org-members.controller.d.ts +26 -0
  2256. package/dist/identity/organizations/org-members.controller.d.ts.map +1 -0
  2257. package/dist/identity/organizations/org-members.controller.js +116 -0
  2258. package/dist/identity/organizations/org-members.controller.js.map +1 -0
  2259. package/dist/identity/organizations/org-members.service.d.ts +84 -0
  2260. package/dist/identity/organizations/org-members.service.d.ts.map +1 -0
  2261. package/dist/identity/organizations/org-members.service.js +302 -0
  2262. package/dist/identity/organizations/org-members.service.js.map +1 -0
  2263. package/dist/identity/organizations/org-scope.d.ts +65 -0
  2264. package/dist/identity/organizations/org-scope.d.ts.map +1 -0
  2265. package/dist/identity/organizations/org-scope.js +84 -0
  2266. package/dist/identity/organizations/org-scope.js.map +1 -0
  2267. package/dist/identity/organizations/organizations-admin.controller.d.ts +23 -0
  2268. package/dist/identity/organizations/organizations-admin.controller.d.ts.map +1 -0
  2269. package/dist/identity/organizations/organizations-admin.controller.js +103 -0
  2270. package/dist/identity/organizations/organizations-admin.controller.js.map +1 -0
  2271. package/dist/identity/organizations/organizations-admin.service.d.ts +58 -0
  2272. package/dist/identity/organizations/organizations-admin.service.d.ts.map +1 -0
  2273. package/dist/identity/organizations/organizations-admin.service.js +191 -0
  2274. package/dist/identity/organizations/organizations-admin.service.js.map +1 -0
  2275. package/dist/identity/organizations/organizations.errors.d.ts +13 -0
  2276. package/dist/identity/organizations/organizations.errors.d.ts.map +1 -0
  2277. package/dist/identity/organizations/organizations.errors.js +19 -0
  2278. package/dist/identity/organizations/organizations.errors.js.map +1 -0
  2279. package/dist/identity/organizations/organizations.metrics.d.ts +24 -0
  2280. package/dist/identity/organizations/organizations.metrics.d.ts.map +1 -0
  2281. package/dist/identity/organizations/organizations.metrics.js +27 -0
  2282. package/dist/identity/organizations/organizations.metrics.js.map +1 -0
  2283. package/dist/identity/organizations/organizations.module.d.ts +17 -0
  2284. package/dist/identity/organizations/organizations.module.d.ts.map +1 -0
  2285. package/dist/identity/organizations/organizations.module.js +60 -0
  2286. package/dist/identity/organizations/organizations.module.js.map +1 -0
  2287. package/dist/identity/organizations/organizations.permissions.d.ts +23 -0
  2288. package/dist/identity/organizations/organizations.permissions.d.ts.map +1 -0
  2289. package/dist/identity/organizations/organizations.permissions.js +76 -0
  2290. package/dist/identity/organizations/organizations.permissions.js.map +1 -0
  2291. package/dist/identity/organizations/organizations.service.d.ts +173 -0
  2292. package/dist/identity/organizations/organizations.service.d.ts.map +1 -0
  2293. package/dist/identity/organizations/organizations.service.js +408 -0
  2294. package/dist/identity/organizations/organizations.service.js.map +1 -0
  2295. package/dist/identity/organizations/tenancy-mode.d.ts +79 -0
  2296. package/dist/identity/organizations/tenancy-mode.d.ts.map +1 -0
  2297. package/dist/identity/organizations/tenancy-mode.js +128 -0
  2298. package/dist/identity/organizations/tenancy-mode.js.map +1 -0
  2299. package/dist/identity/organizations/tenancy.service.d.ts +35 -0
  2300. package/dist/identity/organizations/tenancy.service.d.ts.map +1 -0
  2301. package/dist/identity/organizations/tenancy.service.js +65 -0
  2302. package/dist/identity/organizations/tenancy.service.js.map +1 -0
  2303. package/dist/identity/pat/dto/create-pat.dto.d.ts +11 -0
  2304. package/dist/identity/pat/dto/create-pat.dto.d.ts.map +1 -0
  2305. package/dist/identity/pat/dto/create-pat.dto.js +10 -0
  2306. package/dist/identity/pat/dto/create-pat.dto.js.map +1 -0
  2307. package/dist/identity/pat/dto/pat-response.dto.d.ts +28 -0
  2308. package/dist/identity/pat/dto/pat-response.dto.d.ts.map +1 -0
  2309. package/dist/identity/pat/dto/pat-response.dto.js +119 -0
  2310. package/dist/identity/pat/dto/pat-response.dto.js.map +1 -0
  2311. package/dist/identity/pat/index.d.ts +3 -0
  2312. package/dist/identity/pat/index.d.ts.map +1 -0
  2313. package/dist/identity/pat/index.js +8 -0
  2314. package/dist/identity/pat/index.js.map +1 -0
  2315. package/dist/identity/pat/pat.controller.d.ts +12 -0
  2316. package/dist/identity/pat/pat.controller.d.ts.map +1 -0
  2317. package/dist/identity/pat/pat.controller.js +111 -0
  2318. package/dist/identity/pat/pat.controller.js.map +1 -0
  2319. package/dist/identity/pat/pat.module.d.ts +8 -0
  2320. package/dist/identity/pat/pat.module.d.ts.map +1 -0
  2321. package/dist/identity/pat/pat.module.js +32 -0
  2322. package/dist/identity/pat/pat.module.js.map +1 -0
  2323. package/dist/identity/pat/pat.service.d.ts +86 -0
  2324. package/dist/identity/pat/pat.service.d.ts.map +1 -0
  2325. package/dist/identity/pat/pat.service.js +296 -0
  2326. package/dist/identity/pat/pat.service.js.map +1 -0
  2327. package/dist/identity/ports.d.ts +396 -0
  2328. package/dist/identity/ports.d.ts.map +1 -0
  2329. package/dist/identity/ports.js +126 -0
  2330. package/dist/identity/ports.js.map +1 -0
  2331. package/dist/identity/roles/dto/roles.dto.d.ts +16 -0
  2332. package/dist/identity/roles/dto/roles.dto.d.ts.map +1 -0
  2333. package/dist/identity/roles/dto/roles.dto.js +13 -0
  2334. package/dist/identity/roles/dto/roles.dto.js.map +1 -0
  2335. package/dist/identity/roles/index.d.ts +3 -0
  2336. package/dist/identity/roles/index.d.ts.map +1 -0
  2337. package/dist/identity/roles/index.js +15 -0
  2338. package/dist/identity/roles/index.js.map +1 -0
  2339. package/dist/identity/roles/role-catalog.d.ts +90 -0
  2340. package/dist/identity/roles/role-catalog.d.ts.map +1 -0
  2341. package/dist/identity/roles/role-catalog.js +187 -0
  2342. package/dist/identity/roles/role-catalog.js.map +1 -0
  2343. package/dist/identity/roles/roles.controller.d.ts +21 -0
  2344. package/dist/identity/roles/roles.controller.d.ts.map +1 -0
  2345. package/dist/identity/roles/roles.controller.js +72 -0
  2346. package/dist/identity/roles/roles.controller.js.map +1 -0
  2347. package/dist/identity/roles/roles.module.d.ts +8 -0
  2348. package/dist/identity/roles/roles.module.d.ts.map +1 -0
  2349. package/dist/identity/roles/roles.module.js +23 -0
  2350. package/dist/identity/roles/roles.module.js.map +1 -0
  2351. package/dist/identity/testing/auth-provider-conformance.d.ts +99 -0
  2352. package/dist/identity/testing/auth-provider-conformance.d.ts.map +1 -0
  2353. package/dist/identity/testing/auth-provider-conformance.js +184 -0
  2354. package/dist/identity/testing/auth-provider-conformance.js.map +1 -0
  2355. package/dist/identity/testing/conformance.d.ts +208 -0
  2356. package/dist/identity/testing/conformance.d.ts.map +1 -0
  2357. package/dist/identity/testing/conformance.js +369 -0
  2358. package/dist/identity/testing/conformance.js.map +1 -0
  2359. package/dist/identity/testing/dto/test-login.dto.d.ts +10 -0
  2360. package/dist/identity/testing/dto/test-login.dto.d.ts.map +1 -0
  2361. package/dist/identity/testing/dto/test-login.dto.js +17 -0
  2362. package/dist/identity/testing/dto/test-login.dto.js.map +1 -0
  2363. package/dist/identity/testing/guards/test-environment.guard.d.ts +14 -0
  2364. package/dist/identity/testing/guards/test-environment.guard.d.ts.map +1 -0
  2365. package/dist/identity/testing/guards/test-environment.guard.js +39 -0
  2366. package/dist/identity/testing/guards/test-environment.guard.js.map +1 -0
  2367. package/dist/identity/testing/index.d.ts +11 -0
  2368. package/dist/identity/testing/index.d.ts.map +1 -0
  2369. package/dist/identity/testing/index.js +32 -0
  2370. package/dist/identity/testing/index.js.map +1 -0
  2371. package/dist/identity/testing/stub-host.d.ts +76 -0
  2372. package/dist/identity/testing/stub-host.d.ts.map +1 -0
  2373. package/dist/identity/testing/stub-host.js +91 -0
  2374. package/dist/identity/testing/stub-host.js.map +1 -0
  2375. package/dist/identity/testing/test-auth.controller.d.ts +25 -0
  2376. package/dist/identity/testing/test-auth.controller.d.ts.map +1 -0
  2377. package/dist/identity/testing/test-auth.controller.js +114 -0
  2378. package/dist/identity/testing/test-auth.controller.js.map +1 -0
  2379. package/dist/identity/testing/test-auth.module.d.ts +8 -0
  2380. package/dist/identity/testing/test-auth.module.d.ts.map +1 -0
  2381. package/dist/identity/testing/test-auth.module.js +51 -0
  2382. package/dist/identity/testing/test-auth.module.js.map +1 -0
  2383. package/dist/identity/testing/test-auth.service.d.ts +64 -0
  2384. package/dist/identity/testing/test-auth.service.d.ts.map +1 -0
  2385. package/dist/identity/testing/test-auth.service.js +262 -0
  2386. package/dist/identity/testing/test-auth.service.js.map +1 -0
  2387. package/dist/identity/users/dto/update-user-roles.dto.d.ts +18 -0
  2388. package/dist/identity/users/dto/update-user-roles.dto.d.ts.map +1 -0
  2389. package/dist/identity/users/dto/update-user-roles.dto.js +22 -0
  2390. package/dist/identity/users/dto/update-user-roles.dto.js.map +1 -0
  2391. package/dist/identity/users/dto/update-user.dto.d.ts +13 -0
  2392. package/dist/identity/users/dto/update-user.dto.d.ts.map +1 -0
  2393. package/dist/identity/users/dto/update-user.dto.js +13 -0
  2394. package/dist/identity/users/dto/update-user.dto.js.map +1 -0
  2395. package/dist/identity/users/dto/user-list-query.dto.d.ts +43 -0
  2396. package/dist/identity/users/dto/user-list-query.dto.d.ts.map +1 -0
  2397. package/dist/identity/users/dto/user-list-query.dto.js +18 -0
  2398. package/dist/identity/users/dto/user-list-query.dto.js.map +1 -0
  2399. package/dist/identity/users/dto/user-response.dto.d.ts +144 -0
  2400. package/dist/identity/users/dto/user-response.dto.d.ts.map +1 -0
  2401. package/dist/identity/users/dto/user-response.dto.js +66 -0
  2402. package/dist/identity/users/dto/user-response.dto.js.map +1 -0
  2403. package/dist/identity/users/users.controller.d.ts +75 -0
  2404. package/dist/identity/users/users.controller.d.ts.map +1 -0
  2405. package/dist/identity/users/users.controller.js +124 -0
  2406. package/dist/identity/users/users.controller.js.map +1 -0
  2407. package/dist/identity/users/users.module.d.ts +8 -0
  2408. package/dist/identity/users/users.module.d.ts.map +1 -0
  2409. package/dist/identity/users/users.module.js +35 -0
  2410. package/dist/identity/users/users.module.js.map +1 -0
  2411. package/dist/identity/users/users.permissions.d.ts +17 -0
  2412. package/dist/identity/users/users.permissions.d.ts.map +1 -0
  2413. package/dist/identity/users/users.permissions.js +44 -0
  2414. package/dist/identity/users/users.permissions.js.map +1 -0
  2415. package/dist/identity/users/users.service.d.ts +144 -0
  2416. package/dist/identity/users/users.service.d.ts.map +1 -0
  2417. package/dist/identity/users/users.service.js +482 -0
  2418. package/dist/identity/users/users.service.js.map +1 -0
  2419. package/dist/jobs/backoff.util.d.ts +59 -0
  2420. package/dist/jobs/backoff.util.d.ts.map +1 -0
  2421. package/dist/jobs/backoff.util.js +100 -0
  2422. package/dist/jobs/backoff.util.js.map +1 -0
  2423. package/dist/jobs/data/jobs-db.d.ts +404 -0
  2424. package/dist/jobs/data/jobs-db.d.ts.map +1 -0
  2425. package/dist/jobs/data/jobs-db.js +62 -0
  2426. package/dist/jobs/data/jobs-db.js.map +1 -0
  2427. package/dist/jobs/data/prisma-runtime.d.ts +2 -0
  2428. package/dist/jobs/data/prisma-runtime.d.ts.map +1 -0
  2429. package/dist/jobs/data/prisma-runtime.js +28 -0
  2430. package/dist/jobs/data/prisma-runtime.js.map +1 -0
  2431. package/dist/jobs/doctor/jobs-backlog.doctor-check.d.ts +39 -0
  2432. package/dist/jobs/doctor/jobs-backlog.doctor-check.d.ts.map +1 -0
  2433. package/dist/jobs/doctor/jobs-backlog.doctor-check.js +106 -0
  2434. package/dist/jobs/doctor/jobs-backlog.doctor-check.js.map +1 -0
  2435. package/dist/jobs/doctor/jobs-worker.doctor-check.d.ts +32 -0
  2436. package/dist/jobs/doctor/jobs-worker.doctor-check.d.ts.map +1 -0
  2437. package/dist/jobs/doctor/jobs-worker.doctor-check.js +91 -0
  2438. package/dist/jobs/doctor/jobs-worker.doctor-check.js.map +1 -0
  2439. package/dist/jobs/dto/job-actions.dto.d.ts +27 -0
  2440. package/dist/jobs/dto/job-actions.dto.d.ts.map +1 -0
  2441. package/dist/jobs/dto/job-actions.dto.js +30 -0
  2442. package/dist/jobs/dto/job-actions.dto.js.map +1 -0
  2443. package/dist/jobs/dto/job-insights.dto.d.ts +101 -0
  2444. package/dist/jobs/dto/job-insights.dto.d.ts.map +1 -0
  2445. package/dist/jobs/dto/job-insights.dto.js +34 -0
  2446. package/dist/jobs/dto/job-insights.dto.js.map +1 -0
  2447. package/dist/jobs/dto/job-list-query.dto.d.ts +18 -0
  2448. package/dist/jobs/dto/job-list-query.dto.d.ts.map +1 -0
  2449. package/dist/jobs/dto/job-list-query.dto.js +20 -0
  2450. package/dist/jobs/dto/job-list-query.dto.js.map +1 -0
  2451. package/dist/jobs/dto/job-response.dto.d.ts +49 -0
  2452. package/dist/jobs/dto/job-response.dto.d.ts.map +1 -0
  2453. package/dist/jobs/dto/job-response.dto.js +23 -0
  2454. package/dist/jobs/dto/job-response.dto.js.map +1 -0
  2455. package/dist/jobs/dto/job-stats.dto.d.ts +41 -0
  2456. package/dist/jobs/dto/job-stats.dto.d.ts.map +1 -0
  2457. package/dist/jobs/dto/job-stats.dto.js +20 -0
  2458. package/dist/jobs/dto/job-stats.dto.js.map +1 -0
  2459. package/dist/jobs/events/job-settled.event.d.ts +58 -0
  2460. package/dist/jobs/events/job-settled.event.d.ts.map +1 -0
  2461. package/dist/jobs/events/job-settled.event.js +124 -0
  2462. package/dist/jobs/events/job-settled.event.js.map +1 -0
  2463. package/dist/jobs/handlers/job-history-purge.handler.d.ts +110 -0
  2464. package/dist/jobs/handlers/job-history-purge.handler.d.ts.map +1 -0
  2465. package/dist/jobs/handlers/job-history-purge.handler.js +378 -0
  2466. package/dist/jobs/handlers/job-history-purge.handler.js.map +1 -0
  2467. package/dist/jobs/housekeeping.enqueue.d.ts +57 -0
  2468. package/dist/jobs/housekeeping.enqueue.d.ts.map +1 -0
  2469. package/dist/jobs/housekeeping.enqueue.js +139 -0
  2470. package/dist/jobs/housekeeping.enqueue.js.map +1 -0
  2471. package/dist/jobs/index.d.ts +71 -0
  2472. package/dist/jobs/index.d.ts.map +1 -0
  2473. package/dist/jobs/index.js +168 -0
  2474. package/dist/jobs/index.js.map +1 -0
  2475. package/dist/jobs/job-admin.controller.d.ts +19 -0
  2476. package/dist/jobs/job-admin.controller.d.ts.map +1 -0
  2477. package/dist/jobs/job-admin.controller.js +347 -0
  2478. package/dist/jobs/job-admin.controller.js.map +1 -0
  2479. package/dist/jobs/job-admin.service.d.ts +228 -0
  2480. package/dist/jobs/job-admin.service.d.ts.map +1 -0
  2481. package/dist/jobs/job-admin.service.js +699 -0
  2482. package/dist/jobs/job-admin.service.js.map +1 -0
  2483. package/dist/jobs/job-claim.service.d.ts +103 -0
  2484. package/dist/jobs/job-claim.service.d.ts.map +1 -0
  2485. package/dist/jobs/job-claim.service.js +457 -0
  2486. package/dist/jobs/job-claim.service.js.map +1 -0
  2487. package/dist/jobs/job-clock.d.ts +46 -0
  2488. package/dist/jobs/job-clock.d.ts.map +1 -0
  2489. package/dist/jobs/job-clock.js +73 -0
  2490. package/dist/jobs/job-clock.js.map +1 -0
  2491. package/dist/jobs/job-counts.util.d.ts +44 -0
  2492. package/dist/jobs/job-counts.util.d.ts.map +1 -0
  2493. package/dist/jobs/job-counts.util.js +76 -0
  2494. package/dist/jobs/job-counts.util.js.map +1 -0
  2495. package/dist/jobs/job-execution-profile.d.ts +185 -0
  2496. package/dist/jobs/job-execution-profile.d.ts.map +1 -0
  2497. package/dist/jobs/job-execution-profile.js +333 -0
  2498. package/dist/jobs/job-execution-profile.js.map +1 -0
  2499. package/dist/jobs/job-handler.interface.d.ts +291 -0
  2500. package/dist/jobs/job-handler.interface.d.ts.map +1 -0
  2501. package/dist/jobs/job-handler.interface.js +191 -0
  2502. package/dist/jobs/job-handler.interface.js.map +1 -0
  2503. package/dist/jobs/job-handler.registry.d.ts +72 -0
  2504. package/dist/jobs/job-handler.registry.d.ts.map +1 -0
  2505. package/dist/jobs/job-handler.registry.js +174 -0
  2506. package/dist/jobs/job-handler.registry.js.map +1 -0
  2507. package/dist/jobs/job-insights.service.d.ts +152 -0
  2508. package/dist/jobs/job-insights.service.d.ts.map +1 -0
  2509. package/dist/jobs/job-insights.service.js +622 -0
  2510. package/dist/jobs/job-insights.service.js.map +1 -0
  2511. package/dist/jobs/job-keys.d.ts +14 -0
  2512. package/dist/jobs/job-keys.d.ts.map +1 -0
  2513. package/dist/jobs/job-keys.js +58 -0
  2514. package/dist/jobs/job-keys.js.map +1 -0
  2515. package/dist/jobs/job-lease.service.d.ts +187 -0
  2516. package/dist/jobs/job-lease.service.d.ts.map +1 -0
  2517. package/dist/jobs/job-lease.service.js +279 -0
  2518. package/dist/jobs/job-lease.service.js.map +1 -0
  2519. package/dist/jobs/job-reason.d.ts +81 -0
  2520. package/dist/jobs/job-reason.d.ts.map +1 -0
  2521. package/dist/jobs/job-reason.js +128 -0
  2522. package/dist/jobs/job-reason.js.map +1 -0
  2523. package/dist/jobs/job-scope.d.ts +41 -0
  2524. package/dist/jobs/job-scope.d.ts.map +1 -0
  2525. package/dist/jobs/job-scope.js +91 -0
  2526. package/dist/jobs/job-scope.js.map +1 -0
  2527. package/dist/jobs/job-secret-broker.d.ts +157 -0
  2528. package/dist/jobs/job-secret-broker.d.ts.map +1 -0
  2529. package/dist/jobs/job-secret-broker.js +97 -0
  2530. package/dist/jobs/job-secret-broker.js.map +1 -0
  2531. package/dist/jobs/job-settled.emit.d.ts +11 -0
  2532. package/dist/jobs/job-settled.emit.d.ts.map +1 -0
  2533. package/dist/jobs/job-settled.emit.js +43 -0
  2534. package/dist/jobs/job-settled.emit.js.map +1 -0
  2535. package/dist/jobs/job-stuck.service.d.ts +260 -0
  2536. package/dist/jobs/job-stuck.service.d.ts.map +1 -0
  2537. package/dist/jobs/job-stuck.service.js +612 -0
  2538. package/dist/jobs/job-stuck.service.js.map +1 -0
  2539. package/dist/jobs/job-temp.d.ts +67 -0
  2540. package/dist/jobs/job-temp.d.ts.map +1 -0
  2541. package/dist/jobs/job-temp.js +157 -0
  2542. package/dist/jobs/job-temp.js.map +1 -0
  2543. package/dist/jobs/job-terminal.service.d.ts +262 -0
  2544. package/dist/jobs/job-terminal.service.d.ts.map +1 -0
  2545. package/dist/jobs/job-terminal.service.js +733 -0
  2546. package/dist/jobs/job-terminal.service.js.map +1 -0
  2547. package/dist/jobs/job-trace-context.d.ts +74 -0
  2548. package/dist/jobs/job-trace-context.d.ts.map +1 -0
  2549. package/dist/jobs/job-trace-context.js +170 -0
  2550. package/dist/jobs/job-trace-context.js.map +1 -0
  2551. package/dist/jobs/job-type-label.d.ts +49 -0
  2552. package/dist/jobs/job-type-label.d.ts.map +1 -0
  2553. package/dist/jobs/job-type-label.js +99 -0
  2554. package/dist/jobs/job-type-label.js.map +1 -0
  2555. package/dist/jobs/job-wake.d.ts +12 -0
  2556. package/dist/jobs/job-wake.d.ts.map +1 -0
  2557. package/dist/jobs/job-wake.js +37 -0
  2558. package/dist/jobs/job-wake.js.map +1 -0
  2559. package/dist/jobs/job.worker.d.ts +514 -0
  2560. package/dist/jobs/job.worker.d.ts.map +1 -0
  2561. package/dist/jobs/job.worker.js +1183 -0
  2562. package/dist/jobs/job.worker.js.map +1 -0
  2563. package/dist/jobs/jobs.configuration.d.ts +71 -0
  2564. package/dist/jobs/jobs.configuration.d.ts.map +1 -0
  2565. package/dist/jobs/jobs.configuration.js +69 -0
  2566. package/dist/jobs/jobs.configuration.js.map +1 -0
  2567. package/dist/jobs/jobs.constants.d.ts +11 -0
  2568. package/dist/jobs/jobs.constants.d.ts.map +1 -0
  2569. package/dist/jobs/jobs.constants.js +16 -0
  2570. package/dist/jobs/jobs.constants.js.map +1 -0
  2571. package/dist/jobs/jobs.module.d.ts +37 -0
  2572. package/dist/jobs/jobs.module.d.ts.map +1 -0
  2573. package/dist/jobs/jobs.module.js +283 -0
  2574. package/dist/jobs/jobs.module.js.map +1 -0
  2575. package/dist/jobs/jobs.options.d.ts +97 -0
  2576. package/dist/jobs/jobs.options.d.ts.map +1 -0
  2577. package/dist/jobs/jobs.options.js +79 -0
  2578. package/dist/jobs/jobs.options.js.map +1 -0
  2579. package/dist/jobs/jobs.permissions.d.ts +29 -0
  2580. package/dist/jobs/jobs.permissions.d.ts.map +1 -0
  2581. package/dist/jobs/jobs.permissions.js +49 -0
  2582. package/dist/jobs/jobs.permissions.js.map +1 -0
  2583. package/dist/jobs/jobs.policy.d.ts +47 -0
  2584. package/dist/jobs/jobs.policy.d.ts.map +1 -0
  2585. package/dist/jobs/jobs.policy.js +44 -0
  2586. package/dist/jobs/jobs.policy.js.map +1 -0
  2587. package/dist/jobs/jobs.service.d.ts +220 -0
  2588. package/dist/jobs/jobs.service.d.ts.map +1 -0
  2589. package/dist/jobs/jobs.service.js +459 -0
  2590. package/dist/jobs/jobs.service.js.map +1 -0
  2591. package/dist/jobs/jobs.system-settings.d.ts +94 -0
  2592. package/dist/jobs/jobs.system-settings.d.ts.map +1 -0
  2593. package/dist/jobs/jobs.system-settings.js +76 -0
  2594. package/dist/jobs/jobs.system-settings.js.map +1 -0
  2595. package/dist/jobs/node-offload.service.d.ts +118 -0
  2596. package/dist/jobs/node-offload.service.d.ts.map +1 -0
  2597. package/dist/jobs/node-offload.service.js +264 -0
  2598. package/dist/jobs/node-offload.service.js.map +1 -0
  2599. package/dist/jobs/ports.d.ts +129 -0
  2600. package/dist/jobs/ports.d.ts.map +1 -0
  2601. package/dist/jobs/ports.js +69 -0
  2602. package/dist/jobs/ports.js.map +1 -0
  2603. package/dist/jobs/provider-throttle.service.d.ts +97 -0
  2604. package/dist/jobs/provider-throttle.service.d.ts.map +1 -0
  2605. package/dist/jobs/provider-throttle.service.js +248 -0
  2606. package/dist/jobs/provider-throttle.service.js.map +1 -0
  2607. package/dist/jobs/rate-limit.error.d.ts +90 -0
  2608. package/dist/jobs/rate-limit.error.d.ts.map +1 -0
  2609. package/dist/jobs/rate-limit.error.js +338 -0
  2610. package/dist/jobs/rate-limit.error.js.map +1 -0
  2611. package/dist/jobs/retention/audit-events-purge.handler.d.ts +75 -0
  2612. package/dist/jobs/retention/audit-events-purge.handler.d.ts.map +1 -0
  2613. package/dist/jobs/retention/audit-events-purge.handler.js +109 -0
  2614. package/dist/jobs/retention/audit-events-purge.handler.js.map +1 -0
  2615. package/dist/jobs/retention/batched-purge.d.ts +112 -0
  2616. package/dist/jobs/retention/batched-purge.d.ts.map +1 -0
  2617. package/dist/jobs/retention/batched-purge.js +150 -0
  2618. package/dist/jobs/retention/batched-purge.js.map +1 -0
  2619. package/dist/jobs/retention/retention-policy.registry.d.ts +108 -0
  2620. package/dist/jobs/retention/retention-policy.registry.d.ts.map +1 -0
  2621. package/dist/jobs/retention/retention-policy.registry.js +182 -0
  2622. package/dist/jobs/retention/retention-policy.registry.js.map +1 -0
  2623. package/dist/jobs/retention/retention-purge.registry.d.ts +60 -0
  2624. package/dist/jobs/retention/retention-purge.registry.d.ts.map +1 -0
  2625. package/dist/jobs/retention/retention-purge.registry.js +96 -0
  2626. package/dist/jobs/retention/retention-purge.registry.js.map +1 -0
  2627. package/dist/jobs/retention/retention-purge.task.d.ts +23 -0
  2628. package/dist/jobs/retention/retention-purge.task.d.ts.map +1 -0
  2629. package/dist/jobs/retention/retention-purge.task.js +123 -0
  2630. package/dist/jobs/retention/retention-purge.task.js.map +1 -0
  2631. package/dist/jobs/retention/retention.system-settings.d.ts +74 -0
  2632. package/dist/jobs/retention/retention.system-settings.d.ts.map +1 -0
  2633. package/dist/jobs/retention/retention.system-settings.js +167 -0
  2634. package/dist/jobs/retention/retention.system-settings.js.map +1 -0
  2635. package/dist/jobs/tasks/job-history-purge.task.d.ts +12 -0
  2636. package/dist/jobs/tasks/job-history-purge.task.d.ts.map +1 -0
  2637. package/dist/jobs/tasks/job-history-purge.task.js +150 -0
  2638. package/dist/jobs/tasks/job-history-purge.task.js.map +1 -0
  2639. package/dist/jobs/tasks/job-stuck-reset.task.d.ts +21 -0
  2640. package/dist/jobs/tasks/job-stuck-reset.task.d.ts.map +1 -0
  2641. package/dist/jobs/tasks/job-stuck-reset.task.js +128 -0
  2642. package/dist/jobs/tasks/job-stuck-reset.task.js.map +1 -0
  2643. package/dist/jobs/tasks/temp-file-janitor.task.d.ts +50 -0
  2644. package/dist/jobs/tasks/temp-file-janitor.task.d.ts.map +1 -0
  2645. package/dist/jobs/tasks/temp-file-janitor.task.js +206 -0
  2646. package/dist/jobs/tasks/temp-file-janitor.task.js.map +1 -0
  2647. package/dist/jobs/testing/fake-job-queue.d.ts +98 -0
  2648. package/dist/jobs/testing/fake-job-queue.d.ts.map +1 -0
  2649. package/dist/jobs/testing/fake-job-queue.js +203 -0
  2650. package/dist/jobs/testing/fake-job-queue.js.map +1 -0
  2651. package/dist/jobs/testing/index.d.ts +7 -0
  2652. package/dist/jobs/testing/index.d.ts.map +1 -0
  2653. package/dist/jobs/testing/index.js +22 -0
  2654. package/dist/jobs/testing/index.js.map +1 -0
  2655. package/dist/jobs/testing/job-handler-conformance.d.ts +136 -0
  2656. package/dist/jobs/testing/job-handler-conformance.d.ts.map +1 -0
  2657. package/dist/jobs/testing/job-handler-conformance.js +267 -0
  2658. package/dist/jobs/testing/job-handler-conformance.js.map +1 -0
  2659. package/dist/jobs/testing/on-event-no-io.suite.d.ts +99 -0
  2660. package/dist/jobs/testing/on-event-no-io.suite.d.ts.map +1 -0
  2661. package/dist/jobs/testing/on-event-no-io.suite.js +313 -0
  2662. package/dist/jobs/testing/on-event-no-io.suite.js.map +1 -0
  2663. package/dist/manifest/index.d.ts +9 -0
  2664. package/dist/manifest/index.d.ts.map +1 -0
  2665. package/dist/manifest/index.js +28 -0
  2666. package/dist/manifest/index.js.map +1 -0
  2667. package/dist/manifest/permission-sets.d.ts +54 -0
  2668. package/dist/manifest/permission-sets.d.ts.map +1 -0
  2669. package/dist/manifest/permission-sets.js +70 -0
  2670. package/dist/manifest/permission-sets.js.map +1 -0
  2671. package/dist/manifest/platform-model-ownership.d.ts +28 -0
  2672. package/dist/manifest/platform-model-ownership.d.ts.map +1 -0
  2673. package/dist/manifest/platform-model-ownership.js +170 -0
  2674. package/dist/manifest/platform-model-ownership.js.map +1 -0
  2675. package/dist/manifest/platform-permissions.d.ts +87 -0
  2676. package/dist/manifest/platform-permissions.d.ts.map +1 -0
  2677. package/dist/manifest/platform-permissions.js +104 -0
  2678. package/dist/manifest/platform-permissions.js.map +1 -0
  2679. package/dist/manifest/platform-user-owned-models.d.ts +30 -0
  2680. package/dist/manifest/platform-user-owned-models.d.ts.map +1 -0
  2681. package/dist/manifest/platform-user-owned-models.js +256 -0
  2682. package/dist/manifest/platform-user-owned-models.js.map +1 -0
  2683. package/dist/manifest/register-permissions.d.ts +118 -0
  2684. package/dist/manifest/register-permissions.d.ts.map +1 -0
  2685. package/dist/manifest/register-permissions.js +145 -0
  2686. package/dist/manifest/register-permissions.js.map +1 -0
  2687. package/dist/nodes/doctor/nodes-fleet.doctor-check.d.ts +31 -0
  2688. package/dist/nodes/doctor/nodes-fleet.doctor-check.d.ts.map +1 -0
  2689. package/dist/nodes/doctor/nodes-fleet.doctor-check.js +77 -0
  2690. package/dist/nodes/doctor/nodes-fleet.doctor-check.js.map +1 -0
  2691. package/dist/nodes/dto/claim-token.field.d.ts +3 -0
  2692. package/dist/nodes/dto/claim-token.field.d.ts.map +1 -0
  2693. package/dist/nodes/dto/claim-token.field.js +14 -0
  2694. package/dist/nodes/dto/claim-token.field.js.map +1 -0
  2695. package/dist/nodes/dto/create-node-credential.dto.d.ts +14 -0
  2696. package/dist/nodes/dto/create-node-credential.dto.d.ts.map +1 -0
  2697. package/dist/nodes/dto/create-node-credential.dto.js +24 -0
  2698. package/dist/nodes/dto/create-node-credential.dto.js.map +1 -0
  2699. package/dist/nodes/dto/node-admin.dto.d.ts +174 -0
  2700. package/dist/nodes/dto/node-admin.dto.d.ts.map +1 -0
  2701. package/dist/nodes/dto/node-admin.dto.js +506 -0
  2702. package/dist/nodes/dto/node-admin.dto.js.map +1 -0
  2703. package/dist/nodes/dto/node-control-plane.dto.d.ts +108 -0
  2704. package/dist/nodes/dto/node-control-plane.dto.d.ts.map +1 -0
  2705. package/dist/nodes/dto/node-control-plane.dto.js +72 -0
  2706. package/dist/nodes/dto/node-control-plane.dto.js.map +1 -0
  2707. package/dist/nodes/dto/node-credential-response.dto.d.ts +61 -0
  2708. package/dist/nodes/dto/node-credential-response.dto.d.ts.map +1 -0
  2709. package/dist/nodes/dto/node-credential-response.dto.js +152 -0
  2710. package/dist/nodes/dto/node-credential-response.dto.js.map +1 -0
  2711. package/dist/nodes/dto/node-data-plane.dto.d.ts +80 -0
  2712. package/dist/nodes/dto/node-data-plane.dto.d.ts.map +1 -0
  2713. package/dist/nodes/dto/node-data-plane.dto.js +202 -0
  2714. package/dist/nodes/dto/node-data-plane.dto.js.map +1 -0
  2715. package/dist/nodes/dto/node-job-secret.dto.d.ts +26 -0
  2716. package/dist/nodes/dto/node-job-secret.dto.d.ts.map +1 -0
  2717. package/dist/nodes/dto/node-job-secret.dto.js +75 -0
  2718. package/dist/nodes/dto/node-job-secret.dto.js.map +1 -0
  2719. package/dist/nodes/dto/node-response.dto.d.ts +139 -0
  2720. package/dist/nodes/dto/node-response.dto.d.ts.map +1 -0
  2721. package/dist/nodes/dto/node-response.dto.js +475 -0
  2722. package/dist/nodes/dto/node-response.dto.js.map +1 -0
  2723. package/dist/nodes/dto/node-telemetry.dto.d.ts +153 -0
  2724. package/dist/nodes/dto/node-telemetry.dto.d.ts.map +1 -0
  2725. package/dist/nodes/dto/node-telemetry.dto.js +210 -0
  2726. package/dist/nodes/dto/node-telemetry.dto.js.map +1 -0
  2727. package/dist/nodes/events/node-offline.event.d.ts +37 -0
  2728. package/dist/nodes/events/node-offline.event.d.ts.map +1 -0
  2729. package/dist/nodes/events/node-offline.event.js +64 -0
  2730. package/dist/nodes/events/node-offline.event.js.map +1 -0
  2731. package/dist/nodes/handlers/node-fleet-prune.handler.d.ts +70 -0
  2732. package/dist/nodes/handlers/node-fleet-prune.handler.d.ts.map +1 -0
  2733. package/dist/nodes/handlers/node-fleet-prune.handler.js +241 -0
  2734. package/dist/nodes/handlers/node-fleet-prune.handler.js.map +1 -0
  2735. package/dist/nodes/handlers/node-fleet-sweep.handler.d.ts +79 -0
  2736. package/dist/nodes/handlers/node-fleet-sweep.handler.d.ts.map +1 -0
  2737. package/dist/nodes/handlers/node-fleet-sweep.handler.js +300 -0
  2738. package/dist/nodes/handlers/node-fleet-sweep.handler.js.map +1 -0
  2739. package/dist/nodes/index.d.ts +38 -0
  2740. package/dist/nodes/index.d.ts.map +1 -0
  2741. package/dist/nodes/index.js +78 -0
  2742. package/dist/nodes/index.js.map +1 -0
  2743. package/dist/nodes/node-credential.controller.d.ts +11 -0
  2744. package/dist/nodes/node-credential.controller.d.ts.map +1 -0
  2745. package/dist/nodes/node-credential.controller.js +184 -0
  2746. package/dist/nodes/node-credential.controller.js.map +1 -0
  2747. package/dist/nodes/node-credential.module.d.ts +12 -0
  2748. package/dist/nodes/node-credential.module.d.ts.map +1 -0
  2749. package/dist/nodes/node-credential.module.js +73 -0
  2750. package/dist/nodes/node-credential.module.js.map +1 -0
  2751. package/dist/nodes/node-credential.service.d.ts +239 -0
  2752. package/dist/nodes/node-credential.service.d.ts.map +1 -0
  2753. package/dist/nodes/node-credential.service.js +406 -0
  2754. package/dist/nodes/node-credential.service.js.map +1 -0
  2755. package/dist/nodes/node-data-plane.service.d.ts +198 -0
  2756. package/dist/nodes/node-data-plane.service.d.ts.map +1 -0
  2757. package/dist/nodes/node-data-plane.service.js +478 -0
  2758. package/dist/nodes/node-data-plane.service.js.map +1 -0
  2759. package/dist/nodes/node-fleet-metrics.service.d.ts +85 -0
  2760. package/dist/nodes/node-fleet-metrics.service.d.ts.map +1 -0
  2761. package/dist/nodes/node-fleet-metrics.service.js +413 -0
  2762. package/dist/nodes/node-fleet-metrics.service.js.map +1 -0
  2763. package/dist/nodes/node-lifecycle.service.d.ts +93 -0
  2764. package/dist/nodes/node-lifecycle.service.d.ts.map +1 -0
  2765. package/dist/nodes/node-lifecycle.service.js +217 -0
  2766. package/dist/nodes/node-lifecycle.service.js.map +1 -0
  2767. package/dist/nodes/node-secret-broker.service.d.ts +281 -0
  2768. package/dist/nodes/node-secret-broker.service.d.ts.map +1 -0
  2769. package/dist/nodes/node-secret-broker.service.js +711 -0
  2770. package/dist/nodes/node-secret-broker.service.js.map +1 -0
  2771. package/dist/nodes/node-settlement-ledger.d.ts +19 -0
  2772. package/dist/nodes/node-settlement-ledger.d.ts.map +1 -0
  2773. package/dist/nodes/node-settlement-ledger.js +86 -0
  2774. package/dist/nodes/node-settlement-ledger.js.map +1 -0
  2775. package/dist/nodes/node-span-attribute.registry.d.ts +118 -0
  2776. package/dist/nodes/node-span-attribute.registry.d.ts.map +1 -0
  2777. package/dist/nodes/node-span-attribute.registry.js +153 -0
  2778. package/dist/nodes/node-span-attribute.registry.js.map +1 -0
  2779. package/dist/nodes/node-telemetry-rate-limiter.d.ts +25 -0
  2780. package/dist/nodes/node-telemetry-rate-limiter.d.ts.map +1 -0
  2781. package/dist/nodes/node-telemetry-rate-limiter.js +104 -0
  2782. package/dist/nodes/node-telemetry-rate-limiter.js.map +1 -0
  2783. package/dist/nodes/node-telemetry.service.d.ts +22 -0
  2784. package/dist/nodes/node-telemetry.service.d.ts.map +1 -0
  2785. package/dist/nodes/node-telemetry.service.js +178 -0
  2786. package/dist/nodes/node-telemetry.service.js.map +1 -0
  2787. package/dist/nodes/nodes-admin.controller.d.ts +12 -0
  2788. package/dist/nodes/nodes-admin.controller.d.ts.map +1 -0
  2789. package/dist/nodes/nodes-admin.controller.js +218 -0
  2790. package/dist/nodes/nodes-admin.controller.js.map +1 -0
  2791. package/dist/nodes/nodes-admin.service.d.ts +111 -0
  2792. package/dist/nodes/nodes-admin.service.d.ts.map +1 -0
  2793. package/dist/nodes/nodes-admin.service.js +310 -0
  2794. package/dist/nodes/nodes-admin.service.js.map +1 -0
  2795. package/dist/nodes/nodes.constants.d.ts +11 -0
  2796. package/dist/nodes/nodes.constants.d.ts.map +1 -0
  2797. package/dist/nodes/nodes.constants.js +15 -0
  2798. package/dist/nodes/nodes.constants.js.map +1 -0
  2799. package/dist/nodes/nodes.controller.d.ts +31 -0
  2800. package/dist/nodes/nodes.controller.d.ts.map +1 -0
  2801. package/dist/nodes/nodes.controller.js +616 -0
  2802. package/dist/nodes/nodes.controller.js.map +1 -0
  2803. package/dist/nodes/nodes.metrics.d.ts +51 -0
  2804. package/dist/nodes/nodes.metrics.d.ts.map +1 -0
  2805. package/dist/nodes/nodes.metrics.js +148 -0
  2806. package/dist/nodes/nodes.metrics.js.map +1 -0
  2807. package/dist/nodes/nodes.module.d.ts +35 -0
  2808. package/dist/nodes/nodes.module.d.ts.map +1 -0
  2809. package/dist/nodes/nodes.module.js +278 -0
  2810. package/dist/nodes/nodes.module.js.map +1 -0
  2811. package/dist/nodes/nodes.options.d.ts +64 -0
  2812. package/dist/nodes/nodes.options.d.ts.map +1 -0
  2813. package/dist/nodes/nodes.options.js +39 -0
  2814. package/dist/nodes/nodes.options.js.map +1 -0
  2815. package/dist/nodes/nodes.permissions.d.ts +29 -0
  2816. package/dist/nodes/nodes.permissions.d.ts.map +1 -0
  2817. package/dist/nodes/nodes.permissions.js +55 -0
  2818. package/dist/nodes/nodes.permissions.js.map +1 -0
  2819. package/dist/nodes/nodes.service.d.ts +482 -0
  2820. package/dist/nodes/nodes.service.d.ts.map +1 -0
  2821. package/dist/nodes/nodes.service.js +1017 -0
  2822. package/dist/nodes/nodes.service.js.map +1 -0
  2823. package/dist/nodes/nodes.system-settings.d.ts +83 -0
  2824. package/dist/nodes/nodes.system-settings.d.ts.map +1 -0
  2825. package/dist/nodes/nodes.system-settings.js +70 -0
  2826. package/dist/nodes/nodes.system-settings.js.map +1 -0
  2827. package/dist/nodes/ops/node-secret-revoker.d.ts +16 -0
  2828. package/dist/nodes/ops/node-secret-revoker.d.ts.map +1 -0
  2829. package/dist/nodes/ops/node-secret-revoker.js +152 -0
  2830. package/dist/nodes/ops/node-secret-revoker.js.map +1 -0
  2831. package/dist/nodes/ports.d.ts +126 -0
  2832. package/dist/nodes/ports.d.ts.map +1 -0
  2833. package/dist/nodes/ports.js +65 -0
  2834. package/dist/nodes/ports.js.map +1 -0
  2835. package/dist/nodes/tasks/node-offline-prune.task.d.ts +25 -0
  2836. package/dist/nodes/tasks/node-offline-prune.task.d.ts.map +1 -0
  2837. package/dist/nodes/tasks/node-offline-prune.task.js +96 -0
  2838. package/dist/nodes/tasks/node-offline-prune.task.js.map +1 -0
  2839. package/dist/nodes/tasks/node-secret-sweep.task.d.ts +24 -0
  2840. package/dist/nodes/tasks/node-secret-sweep.task.d.ts.map +1 -0
  2841. package/dist/nodes/tasks/node-secret-sweep.task.js +151 -0
  2842. package/dist/nodes/tasks/node-secret-sweep.task.js.map +1 -0
  2843. package/dist/nodes/tasks/node-stale-offline.task.d.ts +29 -0
  2844. package/dist/nodes/tasks/node-stale-offline.task.d.ts.map +1 -0
  2845. package/dist/nodes/tasks/node-stale-offline.task.js +120 -0
  2846. package/dist/nodes/tasks/node-stale-offline.task.js.map +1 -0
  2847. package/dist/notifications/broadcasts/broadcast-audience.d.ts +109 -0
  2848. package/dist/notifications/broadcasts/broadcast-audience.d.ts.map +1 -0
  2849. package/dist/notifications/broadcasts/broadcast-audience.js +150 -0
  2850. package/dist/notifications/broadcasts/broadcast-audience.js.map +1 -0
  2851. package/dist/notifications/broadcasts/broadcast-failure.listener.d.ts +30 -0
  2852. package/dist/notifications/broadcasts/broadcast-failure.listener.d.ts.map +1 -0
  2853. package/dist/notifications/broadcasts/broadcast-failure.listener.js +212 -0
  2854. package/dist/notifications/broadcasts/broadcast-failure.listener.js.map +1 -0
  2855. package/dist/notifications/broadcasts/broadcast-job-delete-guard.d.ts +17 -0
  2856. package/dist/notifications/broadcasts/broadcast-job-delete-guard.d.ts.map +1 -0
  2857. package/dist/notifications/broadcasts/broadcast-job-delete-guard.js +64 -0
  2858. package/dist/notifications/broadcasts/broadcast-job-delete-guard.js.map +1 -0
  2859. package/dist/notifications/broadcasts/broadcasts.controller.d.ts +32 -0
  2860. package/dist/notifications/broadcasts/broadcasts.controller.d.ts.map +1 -0
  2861. package/dist/notifications/broadcasts/broadcasts.controller.js +368 -0
  2862. package/dist/notifications/broadcasts/broadcasts.controller.js.map +1 -0
  2863. package/dist/notifications/broadcasts/broadcasts.module.d.ts +20 -0
  2864. package/dist/notifications/broadcasts/broadcasts.module.d.ts.map +1 -0
  2865. package/dist/notifications/broadcasts/broadcasts.module.js +121 -0
  2866. package/dist/notifications/broadcasts/broadcasts.module.js.map +1 -0
  2867. package/dist/notifications/broadcasts/broadcasts.notifications.d.ts +11 -0
  2868. package/dist/notifications/broadcasts/broadcasts.notifications.d.ts.map +1 -0
  2869. package/dist/notifications/broadcasts/broadcasts.notifications.js +92 -0
  2870. package/dist/notifications/broadcasts/broadcasts.notifications.js.map +1 -0
  2871. package/dist/notifications/broadcasts/broadcasts.service.d.ts +361 -0
  2872. package/dist/notifications/broadcasts/broadcasts.service.d.ts.map +1 -0
  2873. package/dist/notifications/broadcasts/broadcasts.service.js +693 -0
  2874. package/dist/notifications/broadcasts/broadcasts.service.js.map +1 -0
  2875. package/dist/notifications/broadcasts/dto/broadcast-list-query.dto.d.ts +15 -0
  2876. package/dist/notifications/broadcasts/dto/broadcast-list-query.dto.d.ts.map +1 -0
  2877. package/dist/notifications/broadcasts/dto/broadcast-list-query.dto.js +19 -0
  2878. package/dist/notifications/broadcasts/dto/broadcast-list-query.dto.js.map +1 -0
  2879. package/dist/notifications/broadcasts/dto/broadcast-response.dto.d.ts +152 -0
  2880. package/dist/notifications/broadcasts/dto/broadcast-response.dto.d.ts.map +1 -0
  2881. package/dist/notifications/broadcasts/dto/broadcast-response.dto.js +77 -0
  2882. package/dist/notifications/broadcasts/dto/broadcast-response.dto.js.map +1 -0
  2883. package/dist/notifications/broadcasts/dto/create-broadcast.dto.d.ts +62 -0
  2884. package/dist/notifications/broadcasts/dto/create-broadcast.dto.d.ts.map +1 -0
  2885. package/dist/notifications/broadcasts/dto/create-broadcast.dto.js +68 -0
  2886. package/dist/notifications/broadcasts/dto/create-broadcast.dto.js.map +1 -0
  2887. package/dist/notifications/broadcasts/handlers/broadcast-chunk.handler.d.ts +164 -0
  2888. package/dist/notifications/broadcasts/handlers/broadcast-chunk.handler.d.ts.map +1 -0
  2889. package/dist/notifications/broadcasts/handlers/broadcast-chunk.handler.js +807 -0
  2890. package/dist/notifications/broadcasts/handlers/broadcast-chunk.handler.js.map +1 -0
  2891. package/dist/notifications/broadcasts/handlers/broadcast-start.handler.d.ts +103 -0
  2892. package/dist/notifications/broadcasts/handlers/broadcast-start.handler.d.ts.map +1 -0
  2893. package/dist/notifications/broadcasts/handlers/broadcast-start.handler.js +454 -0
  2894. package/dist/notifications/broadcasts/handlers/broadcast-start.handler.js.map +1 -0
  2895. package/dist/notifications/channels/android-app-notification.channel.d.ts +36 -0
  2896. package/dist/notifications/channels/android-app-notification.channel.d.ts.map +1 -0
  2897. package/dist/notifications/channels/android-app-notification.channel.js +88 -0
  2898. package/dist/notifications/channels/android-app-notification.channel.js.map +1 -0
  2899. package/dist/notifications/channels/browser-notification.channel.d.ts +125 -0
  2900. package/dist/notifications/channels/browser-notification.channel.d.ts.map +1 -0
  2901. package/dist/notifications/channels/browser-notification.channel.js +312 -0
  2902. package/dist/notifications/channels/browser-notification.channel.js.map +1 -0
  2903. package/dist/notifications/channels/browser-templates.d.ts +98 -0
  2904. package/dist/notifications/channels/browser-templates.d.ts.map +1 -0
  2905. package/dist/notifications/channels/browser-templates.js +200 -0
  2906. package/dist/notifications/channels/browser-templates.js.map +1 -0
  2907. package/dist/notifications/channels/email-notification.channel.d.ts +76 -0
  2908. package/dist/notifications/channels/email-notification.channel.d.ts.map +1 -0
  2909. package/dist/notifications/channels/email-notification.channel.js +300 -0
  2910. package/dist/notifications/channels/email-notification.channel.js.map +1 -0
  2911. package/dist/notifications/channels/push-notification.channel.d.ts +82 -0
  2912. package/dist/notifications/channels/push-notification.channel.d.ts.map +1 -0
  2913. package/dist/notifications/channels/push-notification.channel.js +463 -0
  2914. package/dist/notifications/channels/push-notification.channel.js.map +1 -0
  2915. package/dist/notifications/channels/push-payload.d.ts +127 -0
  2916. package/dist/notifications/channels/push-payload.d.ts.map +1 -0
  2917. package/dist/notifications/channels/push-payload.js +108 -0
  2918. package/dist/notifications/channels/push-payload.js.map +1 -0
  2919. package/dist/notifications/data/notifications-db.d.ts +300 -0
  2920. package/dist/notifications/data/notifications-db.d.ts.map +1 -0
  2921. package/dist/notifications/data/notifications-db.js +52 -0
  2922. package/dist/notifications/data/notifications-db.js.map +1 -0
  2923. package/dist/notifications/describe-thrown.d.ts +21 -0
  2924. package/dist/notifications/describe-thrown.d.ts.map +1 -0
  2925. package/dist/notifications/describe-thrown.js +48 -0
  2926. package/dist/notifications/describe-thrown.js.map +1 -0
  2927. package/dist/notifications/doctor/egress/web-push.egress.contributor.d.ts +43 -0
  2928. package/dist/notifications/doctor/egress/web-push.egress.contributor.d.ts.map +1 -0
  2929. package/dist/notifications/doctor/egress/web-push.egress.contributor.js +111 -0
  2930. package/dist/notifications/doctor/egress/web-push.egress.contributor.js.map +1 -0
  2931. package/dist/notifications/doctor/push-vapid.doctor-check.d.ts +35 -0
  2932. package/dist/notifications/doctor/push-vapid.doctor-check.d.ts.map +1 -0
  2933. package/dist/notifications/doctor/push-vapid.doctor-check.js +87 -0
  2934. package/dist/notifications/doctor/push-vapid.doctor-check.js.map +1 -0
  2935. package/dist/notifications/dto/generate-push-config.dto.d.ts +13 -0
  2936. package/dist/notifications/dto/generate-push-config.dto.d.ts.map +1 -0
  2937. package/dist/notifications/dto/generate-push-config.dto.js +20 -0
  2938. package/dist/notifications/dto/generate-push-config.dto.js.map +1 -0
  2939. package/dist/notifications/dto/notification-channel.dto.d.ts +20 -0
  2940. package/dist/notifications/dto/notification-channel.dto.d.ts.map +1 -0
  2941. package/dist/notifications/dto/notification-channel.dto.js +18 -0
  2942. package/dist/notifications/dto/notification-channel.dto.js.map +1 -0
  2943. package/dist/notifications/dto/notification-config.dto.d.ts +15 -0
  2944. package/dist/notifications/dto/notification-config.dto.d.ts.map +1 -0
  2945. package/dist/notifications/dto/notification-config.dto.js +20 -0
  2946. package/dist/notifications/dto/notification-config.dto.js.map +1 -0
  2947. package/dist/notifications/dto/notification-event.dto.d.ts +19 -0
  2948. package/dist/notifications/dto/notification-event.dto.d.ts.map +1 -0
  2949. package/dist/notifications/dto/notification-event.dto.js +20 -0
  2950. package/dist/notifications/dto/notification-event.dto.js.map +1 -0
  2951. package/dist/notifications/dto/notification.dto.d.ts +43 -0
  2952. package/dist/notifications/dto/notification.dto.d.ts.map +1 -0
  2953. package/dist/notifications/dto/notification.dto.js +40 -0
  2954. package/dist/notifications/dto/notification.dto.js.map +1 -0
  2955. package/dist/notifications/dto/push-config-confirmation.dto.d.ts +24 -0
  2956. package/dist/notifications/dto/push-config-confirmation.dto.d.ts.map +1 -0
  2957. package/dist/notifications/dto/push-config-confirmation.dto.js +31 -0
  2958. package/dist/notifications/dto/push-config-confirmation.dto.js.map +1 -0
  2959. package/dist/notifications/dto/push-config-response.dto.d.ts +29 -0
  2960. package/dist/notifications/dto/push-config-response.dto.d.ts.map +1 -0
  2961. package/dist/notifications/dto/push-config-response.dto.js +22 -0
  2962. package/dist/notifications/dto/push-config-response.dto.js.map +1 -0
  2963. package/dist/notifications/dto/push-subscription.dto.d.ts +42 -0
  2964. package/dist/notifications/dto/push-subscription.dto.d.ts.map +1 -0
  2965. package/dist/notifications/dto/push-subscription.dto.js +38 -0
  2966. package/dist/notifications/dto/push-subscription.dto.js.map +1 -0
  2967. package/dist/notifications/dto/push-test.dto.d.ts +68 -0
  2968. package/dist/notifications/dto/push-test.dto.d.ts.map +1 -0
  2969. package/dist/notifications/dto/push-test.dto.js +37 -0
  2970. package/dist/notifications/dto/push-test.dto.js.map +1 -0
  2971. package/dist/notifications/dto/update-push-config.dto.d.ts +14 -0
  2972. package/dist/notifications/dto/update-push-config.dto.d.ts.map +1 -0
  2973. package/dist/notifications/dto/update-push-config.dto.js +20 -0
  2974. package/dist/notifications/dto/update-push-config.dto.js.map +1 -0
  2975. package/dist/notifications/index.d.ts +72 -0
  2976. package/dist/notifications/index.d.ts.map +1 -0
  2977. package/dist/notifications/index.js +173 -0
  2978. package/dist/notifications/index.js.map +1 -0
  2979. package/dist/notifications/notification-delivery.service.d.ts +63 -0
  2980. package/dist/notifications/notification-delivery.service.d.ts.map +1 -0
  2981. package/dist/notifications/notification-delivery.service.js +194 -0
  2982. package/dist/notifications/notification-delivery.service.js.map +1 -0
  2983. package/dist/notifications/notification-events.d.ts +72 -0
  2984. package/dist/notifications/notification-events.d.ts.map +1 -0
  2985. package/dist/notifications/notification-events.js +198 -0
  2986. package/dist/notifications/notification-events.js.map +1 -0
  2987. package/dist/notifications/notification-policy.d.ts +145 -0
  2988. package/dist/notifications/notification-policy.d.ts.map +1 -0
  2989. package/dist/notifications/notification-policy.js +132 -0
  2990. package/dist/notifications/notification-policy.js.map +1 -0
  2991. package/dist/notifications/notification-policy.service.d.ts +32 -0
  2992. package/dist/notifications/notification-policy.service.d.ts.map +1 -0
  2993. package/dist/notifications/notification-policy.service.js +127 -0
  2994. package/dist/notifications/notification-policy.service.js.map +1 -0
  2995. package/dist/notifications/notification-preferences.d.ts +146 -0
  2996. package/dist/notifications/notification-preferences.d.ts.map +1 -0
  2997. package/dist/notifications/notification-preferences.js +295 -0
  2998. package/dist/notifications/notification-preferences.js.map +1 -0
  2999. package/dist/notifications/notification-store.service.d.ts +72 -0
  3000. package/dist/notifications/notification-store.service.d.ts.map +1 -0
  3001. package/dist/notifications/notification-store.service.js +222 -0
  3002. package/dist/notifications/notification-store.service.js.map +1 -0
  3003. package/dist/notifications/notification-stream.service.d.ts +298 -0
  3004. package/dist/notifications/notification-stream.service.d.ts.map +1 -0
  3005. package/dist/notifications/notification-stream.service.js +406 -0
  3006. package/dist/notifications/notification-stream.service.js.map +1 -0
  3007. package/dist/notifications/notification.types.d.ts +432 -0
  3008. package/dist/notifications/notification.types.d.ts.map +1 -0
  3009. package/dist/notifications/notification.types.js +18 -0
  3010. package/dist/notifications/notification.types.js.map +1 -0
  3011. package/dist/notifications/notifications.constants.d.ts +17 -0
  3012. package/dist/notifications/notifications.constants.d.ts.map +1 -0
  3013. package/dist/notifications/notifications.constants.js +24 -0
  3014. package/dist/notifications/notifications.constants.js.map +1 -0
  3015. package/dist/notifications/notifications.controller.d.ts +141 -0
  3016. package/dist/notifications/notifications.controller.d.ts.map +1 -0
  3017. package/dist/notifications/notifications.controller.js +594 -0
  3018. package/dist/notifications/notifications.controller.js.map +1 -0
  3019. package/dist/notifications/notifications.module.d.ts +41 -0
  3020. package/dist/notifications/notifications.module.d.ts.map +1 -0
  3021. package/dist/notifications/notifications.module.js +311 -0
  3022. package/dist/notifications/notifications.module.js.map +1 -0
  3023. package/dist/notifications/notifications.options.d.ts +87 -0
  3024. package/dist/notifications/notifications.options.d.ts.map +1 -0
  3025. package/dist/notifications/notifications.options.js +43 -0
  3026. package/dist/notifications/notifications.options.js.map +1 -0
  3027. package/dist/notifications/notifications.permissions.d.ts +70 -0
  3028. package/dist/notifications/notifications.permissions.d.ts.map +1 -0
  3029. package/dist/notifications/notifications.permissions.js +98 -0
  3030. package/dist/notifications/notifications.permissions.js.map +1 -0
  3031. package/dist/notifications/notifications.service.d.ts +564 -0
  3032. package/dist/notifications/notifications.service.d.ts.map +1 -0
  3033. package/dist/notifications/notifications.service.js +1221 -0
  3034. package/dist/notifications/notifications.service.js.map +1 -0
  3035. package/dist/notifications/notifications.system-settings.d.ts +139 -0
  3036. package/dist/notifications/notifications.system-settings.d.ts.map +1 -0
  3037. package/dist/notifications/notifications.system-settings.js +198 -0
  3038. package/dist/notifications/notifications.system-settings.js.map +1 -0
  3039. package/dist/notifications/notifications.user-settings.d.ts +117 -0
  3040. package/dist/notifications/notifications.user-settings.d.ts.map +1 -0
  3041. package/dist/notifications/notifications.user-settings.js +192 -0
  3042. package/dist/notifications/notifications.user-settings.js.map +1 -0
  3043. package/dist/notifications/ops/job-failure-notifier.d.ts +31 -0
  3044. package/dist/notifications/ops/job-failure-notifier.d.ts.map +1 -0
  3045. package/dist/notifications/ops/job-failure-notifier.js +200 -0
  3046. package/dist/notifications/ops/job-failure-notifier.js.map +1 -0
  3047. package/dist/notifications/ops/node-offline-notifier.d.ts +18 -0
  3048. package/dist/notifications/ops/node-offline-notifier.d.ts.map +1 -0
  3049. package/dist/notifications/ops/node-offline-notifier.js +101 -0
  3050. package/dist/notifications/ops/node-offline-notifier.js.map +1 -0
  3051. package/dist/notifications/ops/nodes.notifications.d.ts +9 -0
  3052. package/dist/notifications/ops/nodes.notifications.d.ts.map +1 -0
  3053. package/dist/notifications/ops/nodes.notifications.js +41 -0
  3054. package/dist/notifications/ops/nodes.notifications.js.map +1 -0
  3055. package/dist/notifications/ops/ops.notifications.d.ts +9 -0
  3056. package/dist/notifications/ops/ops.notifications.d.ts.map +1 -0
  3057. package/dist/notifications/ops/ops.notifications.js +87 -0
  3058. package/dist/notifications/ops/ops.notifications.js.map +1 -0
  3059. package/dist/notifications/ports.d.ts +186 -0
  3060. package/dist/notifications/ports.d.ts.map +1 -0
  3061. package/dist/notifications/ports.js +110 -0
  3062. package/dist/notifications/ports.js.map +1 -0
  3063. package/dist/notifications/push-config.controller.d.ts +69 -0
  3064. package/dist/notifications/push-config.controller.d.ts.map +1 -0
  3065. package/dist/notifications/push-config.controller.js +275 -0
  3066. package/dist/notifications/push-config.controller.js.map +1 -0
  3067. package/dist/notifications/push-config.schema.d.ts +10 -0
  3068. package/dist/notifications/push-config.schema.d.ts.map +1 -0
  3069. package/dist/notifications/push-config.schema.js +22 -0
  3070. package/dist/notifications/push-config.schema.js.map +1 -0
  3071. package/dist/notifications/push-config.service.d.ts +205 -0
  3072. package/dist/notifications/push-config.service.d.ts.map +1 -0
  3073. package/dist/notifications/push-config.service.js +472 -0
  3074. package/dist/notifications/push-config.service.js.map +1 -0
  3075. package/dist/notifications/push-subscription.service.d.ts +72 -0
  3076. package/dist/notifications/push-subscription.service.d.ts.map +1 -0
  3077. package/dist/notifications/push-subscription.service.js +195 -0
  3078. package/dist/notifications/push-subscription.service.js.map +1 -0
  3079. package/dist/notifications/push-test.service.d.ts +99 -0
  3080. package/dist/notifications/push-test.service.d.ts.map +1 -0
  3081. package/dist/notifications/push-test.service.js +683 -0
  3082. package/dist/notifications/push-test.service.js.map +1 -0
  3083. package/dist/notifications/push-vapid-credential.constants.d.ts +45 -0
  3084. package/dist/notifications/push-vapid-credential.constants.d.ts.map +1 -0
  3085. package/dist/notifications/push-vapid-credential.constants.js +73 -0
  3086. package/dist/notifications/push-vapid-credential.constants.js.map +1 -0
  3087. package/dist/notifications/registry/bindings.registry.d.ts +128 -0
  3088. package/dist/notifications/registry/bindings.registry.d.ts.map +1 -0
  3089. package/dist/notifications/registry/bindings.registry.js +244 -0
  3090. package/dist/notifications/registry/bindings.registry.js.map +1 -0
  3091. package/dist/notifications/registry/channel-sender.registry.d.ts +54 -0
  3092. package/dist/notifications/registry/channel-sender.registry.d.ts.map +1 -0
  3093. package/dist/notifications/registry/channel-sender.registry.js +138 -0
  3094. package/dist/notifications/registry/channel-sender.registry.js.map +1 -0
  3095. package/dist/notifications/registry/channel-template.registry.d.ts +149 -0
  3096. package/dist/notifications/registry/channel-template.registry.d.ts.map +1 -0
  3097. package/dist/notifications/registry/channel-template.registry.js +169 -0
  3098. package/dist/notifications/registry/channel-template.registry.js.map +1 -0
  3099. package/dist/notifications/registry/channel.registry.d.ts +177 -0
  3100. package/dist/notifications/registry/channel.registry.d.ts.map +1 -0
  3101. package/dist/notifications/registry/channel.registry.js +214 -0
  3102. package/dist/notifications/registry/channel.registry.js.map +1 -0
  3103. package/dist/notifications/registry/event.registry.d.ts +154 -0
  3104. package/dist/notifications/registry/event.registry.d.ts.map +1 -0
  3105. package/dist/notifications/registry/event.registry.js +129 -0
  3106. package/dist/notifications/registry/event.registry.js.map +1 -0
  3107. package/dist/notifications/registry/index.d.ts +12 -0
  3108. package/dist/notifications/registry/index.d.ts.map +1 -0
  3109. package/dist/notifications/registry/index.js +61 -0
  3110. package/dist/notifications/registry/index.js.map +1 -0
  3111. package/dist/notifications/registry/platform-channels.d.ts +50 -0
  3112. package/dist/notifications/registry/platform-channels.d.ts.map +1 -0
  3113. package/dist/notifications/registry/platform-channels.js +105 -0
  3114. package/dist/notifications/registry/platform-channels.js.map +1 -0
  3115. package/dist/notifications/retention/notification-deliveries-purge.handler.d.ts +38 -0
  3116. package/dist/notifications/retention/notification-deliveries-purge.handler.d.ts.map +1 -0
  3117. package/dist/notifications/retention/notification-deliveries-purge.handler.js +113 -0
  3118. package/dist/notifications/retention/notification-deliveries-purge.handler.js.map +1 -0
  3119. package/dist/notifications/retention/notification-inbox-purge.handler.d.ts +32 -0
  3120. package/dist/notifications/retention/notification-inbox-purge.handler.d.ts.map +1 -0
  3121. package/dist/notifications/retention/notification-inbox-purge.handler.js +98 -0
  3122. package/dist/notifications/retention/notification-inbox-purge.handler.js.map +1 -0
  3123. package/dist/notifications/testing/conformance.d.ts +93 -0
  3124. package/dist/notifications/testing/conformance.d.ts.map +1 -0
  3125. package/dist/notifications/testing/conformance.js +292 -0
  3126. package/dist/notifications/testing/conformance.js.map +1 -0
  3127. package/dist/notifications/testing/index.d.ts +32 -0
  3128. package/dist/notifications/testing/index.d.ts.map +1 -0
  3129. package/dist/notifications/testing/index.js +85 -0
  3130. package/dist/notifications/testing/index.js.map +1 -0
  3131. package/dist/notifications/testing/sender-conformance.d.ts +71 -0
  3132. package/dist/notifications/testing/sender-conformance.d.ts.map +1 -0
  3133. package/dist/notifications/testing/sender-conformance.js +206 -0
  3134. package/dist/notifications/testing/sender-conformance.js.map +1 -0
  3135. package/dist/onboarding/index.d.ts +19 -0
  3136. package/dist/onboarding/index.d.ts.map +1 -0
  3137. package/dist/onboarding/index.js +65 -0
  3138. package/dist/onboarding/index.js.map +1 -0
  3139. package/dist/onboarding/onboarding-metrics.d.ts +56 -0
  3140. package/dist/onboarding/onboarding-metrics.d.ts.map +1 -0
  3141. package/dist/onboarding/onboarding-metrics.js +155 -0
  3142. package/dist/onboarding/onboarding-metrics.js.map +1 -0
  3143. package/dist/onboarding/onboarding.audiences.d.ts +50 -0
  3144. package/dist/onboarding/onboarding.audiences.d.ts.map +1 -0
  3145. package/dist/onboarding/onboarding.audiences.js +111 -0
  3146. package/dist/onboarding/onboarding.audiences.js.map +1 -0
  3147. package/dist/onboarding/onboarding.builtins.d.ts +88 -0
  3148. package/dist/onboarding/onboarding.builtins.d.ts.map +1 -0
  3149. package/dist/onboarding/onboarding.builtins.js +284 -0
  3150. package/dist/onboarding/onboarding.builtins.js.map +1 -0
  3151. package/dist/onboarding/onboarding.controller.d.ts +135 -0
  3152. package/dist/onboarding/onboarding.controller.d.ts.map +1 -0
  3153. package/dist/onboarding/onboarding.controller.js +164 -0
  3154. package/dist/onboarding/onboarding.controller.js.map +1 -0
  3155. package/dist/onboarding/onboarding.engine.d.ts +86 -0
  3156. package/dist/onboarding/onboarding.engine.d.ts.map +1 -0
  3157. package/dist/onboarding/onboarding.engine.js +226 -0
  3158. package/dist/onboarding/onboarding.engine.js.map +1 -0
  3159. package/dist/onboarding/onboarding.module.d.ts +29 -0
  3160. package/dist/onboarding/onboarding.module.d.ts.map +1 -0
  3161. package/dist/onboarding/onboarding.module.js +65 -0
  3162. package/dist/onboarding/onboarding.module.js.map +1 -0
  3163. package/dist/onboarding/onboarding.options.d.ts +56 -0
  3164. package/dist/onboarding/onboarding.options.d.ts.map +1 -0
  3165. package/dist/onboarding/onboarding.options.js +45 -0
  3166. package/dist/onboarding/onboarding.options.js.map +1 -0
  3167. package/dist/onboarding/onboarding.registries.d.ts +135 -0
  3168. package/dist/onboarding/onboarding.registries.d.ts.map +1 -0
  3169. package/dist/onboarding/onboarding.registries.js +282 -0
  3170. package/dist/onboarding/onboarding.registries.js.map +1 -0
  3171. package/dist/onboarding/onboarding.service.d.ts +62 -0
  3172. package/dist/onboarding/onboarding.service.d.ts.map +1 -0
  3173. package/dist/onboarding/onboarding.service.js +171 -0
  3174. package/dist/onboarding/onboarding.service.js.map +1 -0
  3175. package/dist/onboarding/onboarding.settings.d.ts +101 -0
  3176. package/dist/onboarding/onboarding.settings.d.ts.map +1 -0
  3177. package/dist/onboarding/onboarding.settings.js +171 -0
  3178. package/dist/onboarding/onboarding.settings.js.map +1 -0
  3179. package/dist/onboarding/onboarding.types.d.ts +225 -0
  3180. package/dist/onboarding/onboarding.types.d.ts.map +1 -0
  3181. package/dist/onboarding/onboarding.types.js +14 -0
  3182. package/dist/onboarding/onboarding.types.js.map +1 -0
  3183. package/dist/onboarding/ports.d.ts +48 -0
  3184. package/dist/onboarding/ports.d.ts.map +1 -0
  3185. package/dist/onboarding/ports.js +28 -0
  3186. package/dist/onboarding/ports.js.map +1 -0
  3187. package/dist/onboarding/testing/conformance.d.ts +64 -0
  3188. package/dist/onboarding/testing/conformance.d.ts.map +1 -0
  3189. package/dist/onboarding/testing/conformance.js +185 -0
  3190. package/dist/onboarding/testing/conformance.js.map +1 -0
  3191. package/dist/onboarding/testing/index.d.ts +3 -0
  3192. package/dist/onboarding/testing/index.d.ts.map +1 -0
  3193. package/dist/onboarding/testing/index.js +13 -0
  3194. package/dist/onboarding/testing/index.js.map +1 -0
  3195. package/dist/otel-core/index.d.ts +16 -1
  3196. package/dist/otel-core/index.d.ts.map +1 -1
  3197. package/dist/otel-core/index.js.map +1 -1
  3198. package/dist/otel-core/metrics/gauge-provider.d.ts +1 -1
  3199. package/dist/otel-core/metrics/gauge-provider.d.ts.map +1 -1
  3200. package/dist/otel-core/metrics/gauge-provider.js.map +1 -1
  3201. package/dist/otel-core/metrics/metric-name.registry.d.ts +0 -15
  3202. package/dist/otel-core/metrics/metric-name.registry.d.ts.map +1 -1
  3203. package/dist/otel-core/metrics/metric-name.registry.js +2 -0
  3204. package/dist/otel-core/metrics/metric-name.registry.js.map +1 -1
  3205. package/dist/otel-core/metrics/metrics-host.service.js +2 -2
  3206. package/dist/otel-core/metrics/metrics-host.service.js.map +1 -1
  3207. package/dist/otel-core/metrics/otel-metrics.module.d.ts.map +1 -1
  3208. package/dist/otel-core/metrics/otel-metrics.module.js +2 -1
  3209. package/dist/otel-core/metrics/otel-metrics.module.js.map +1 -1
  3210. package/dist/otel-core/sdk/index.d.ts +2 -2
  3211. package/dist/otel-core/sdk/index.d.ts.map +1 -1
  3212. package/dist/otel-core/sdk/index.js +6 -1
  3213. package/dist/otel-core/sdk/index.js.map +1 -1
  3214. package/dist/otel-core/sdk/initialize-otel.d.ts +54 -0
  3215. package/dist/otel-core/sdk/initialize-otel.d.ts.map +1 -1
  3216. package/dist/otel-core/sdk/initialize-otel.js +105 -11
  3217. package/dist/otel-core/sdk/initialize-otel.js.map +1 -1
  3218. package/dist/otel-core/sdk/telemetry-gate.d.ts +89 -3
  3219. package/dist/otel-core/sdk/telemetry-gate.d.ts.map +1 -1
  3220. package/dist/otel-core/sdk/telemetry-gate.js +182 -1
  3221. package/dist/otel-core/sdk/telemetry-gate.js.map +1 -1
  3222. package/dist/settings/data/settings-db.d.ts +144 -0
  3223. package/dist/settings/data/settings-db.d.ts.map +1 -0
  3224. package/dist/settings/data/settings-db.js +25 -0
  3225. package/dist/settings/data/settings-db.js.map +1 -0
  3226. package/dist/settings/data/settings-ownership.d.ts +27 -0
  3227. package/dist/settings/data/settings-ownership.d.ts.map +1 -0
  3228. package/dist/settings/data/settings-ownership.js +52 -0
  3229. package/dist/settings/data/settings-ownership.js.map +1 -0
  3230. package/dist/settings/index.d.ts +108 -0
  3231. package/dist/settings/index.d.ts.map +1 -0
  3232. package/dist/settings/index.js +114 -0
  3233. package/dist/settings/index.js.map +1 -0
  3234. package/dist/settings/org-settings/describe-fields.d.ts +7 -0
  3235. package/dist/settings/org-settings/describe-fields.d.ts.map +1 -0
  3236. package/dist/settings/org-settings/describe-fields.js +34 -0
  3237. package/dist/settings/org-settings/describe-fields.js.map +1 -0
  3238. package/dist/settings/org-settings/org-layer.d.ts +29 -0
  3239. package/dist/settings/org-settings/org-layer.d.ts.map +1 -0
  3240. package/dist/settings/org-settings/org-layer.js +74 -0
  3241. package/dist/settings/org-settings/org-layer.js.map +1 -0
  3242. package/dist/settings/org-settings/org-settings.controller.d.ts +112 -0
  3243. package/dist/settings/org-settings/org-settings.controller.d.ts.map +1 -0
  3244. package/dist/settings/org-settings/org-settings.controller.js +138 -0
  3245. package/dist/settings/org-settings/org-settings.controller.js.map +1 -0
  3246. package/dist/settings/org-settings/org-settings.service.d.ts +94 -0
  3247. package/dist/settings/org-settings/org-settings.service.d.ts.map +1 -0
  3248. package/dist/settings/org-settings/org-settings.service.js +267 -0
  3249. package/dist/settings/org-settings/org-settings.service.js.map +1 -0
  3250. package/dist/settings/ports.d.ts +79 -0
  3251. package/dist/settings/ports.d.ts.map +1 -0
  3252. package/dist/settings/ports.js +46 -0
  3253. package/dist/settings/ports.js.map +1 -0
  3254. package/dist/settings/registry/assemble.d.ts +195 -0
  3255. package/dist/settings/registry/assemble.d.ts.map +1 -0
  3256. package/dist/settings/registry/assemble.js +283 -0
  3257. package/dist/settings/registry/assemble.js.map +1 -0
  3258. package/dist/settings/registry/catalog.d.ts +24 -0
  3259. package/dist/settings/registry/catalog.d.ts.map +1 -0
  3260. package/dist/settings/registry/catalog.js +43 -0
  3261. package/dist/settings/registry/catalog.js.map +1 -0
  3262. package/dist/settings/registry/compose.d.ts +398 -0
  3263. package/dist/settings/registry/compose.d.ts.map +1 -0
  3264. package/dist/settings/registry/compose.js +285 -0
  3265. package/dist/settings/registry/compose.js.map +1 -0
  3266. package/dist/settings/registry/core-user-fields.d.ts +121 -0
  3267. package/dist/settings/registry/core-user-fields.d.ts.map +1 -0
  3268. package/dist/settings/registry/core-user-fields.js +252 -0
  3269. package/dist/settings/registry/core-user-fields.js.map +1 -0
  3270. package/dist/settings/registry/core-user-namespaces.d.ts +179 -0
  3271. package/dist/settings/registry/core-user-namespaces.d.ts.map +1 -0
  3272. package/dist/settings/registry/core-user-namespaces.js +142 -0
  3273. package/dist/settings/registry/core-user-namespaces.js.map +1 -0
  3274. package/dist/settings/registry/extend.d.ts +197 -0
  3275. package/dist/settings/registry/extend.d.ts.map +1 -0
  3276. package/dist/settings/registry/extend.js +379 -0
  3277. package/dist/settings/registry/extend.js.map +1 -0
  3278. package/dist/settings/registry/merge-helpers.d.ts +10 -0
  3279. package/dist/settings/registry/merge-helpers.d.ts.map +1 -0
  3280. package/dist/settings/registry/merge-helpers.js +24 -0
  3281. package/dist/settings/registry/merge-helpers.js.map +1 -0
  3282. package/dist/settings/registry/nested.d.ts +55 -0
  3283. package/dist/settings/registry/nested.d.ts.map +1 -0
  3284. package/dist/settings/registry/nested.js +158 -0
  3285. package/dist/settings/registry/nested.js.map +1 -0
  3286. package/dist/settings/registry/schema-walk.d.ts +46 -0
  3287. package/dist/settings/registry/schema-walk.d.ts.map +1 -0
  3288. package/dist/settings/registry/schema-walk.js +112 -0
  3289. package/dist/settings/registry/schema-walk.js.map +1 -0
  3290. package/dist/settings/registry/secret-fields.d.ts +32 -0
  3291. package/dist/settings/registry/secret-fields.d.ts.map +1 -0
  3292. package/dist/settings/registry/secret-fields.js +57 -0
  3293. package/dist/settings/registry/secret-fields.js.map +1 -0
  3294. package/dist/settings/registry/system-settings-namespace.d.ts +242 -0
  3295. package/dist/settings/registry/system-settings-namespace.d.ts.map +1 -0
  3296. package/dist/settings/registry/system-settings-namespace.js +214 -0
  3297. package/dist/settings/registry/system-settings-namespace.js.map +1 -0
  3298. package/dist/settings/registry/user-settings-namespace.d.ts +90 -0
  3299. package/dist/settings/registry/user-settings-namespace.d.ts.map +1 -0
  3300. package/dist/settings/registry/user-settings-namespace.js +108 -0
  3301. package/dist/settings/registry/user-settings-namespace.js.map +1 -0
  3302. package/dist/settings/row-store.d.ts +85 -0
  3303. package/dist/settings/row-store.d.ts.map +1 -0
  3304. package/dist/settings/row-store.js +168 -0
  3305. package/dist/settings/row-store.js.map +1 -0
  3306. package/dist/settings/settings-resolver.d.ts +48 -0
  3307. package/dist/settings/settings-resolver.d.ts.map +1 -0
  3308. package/dist/settings/settings-resolver.js +127 -0
  3309. package/dist/settings/settings-resolver.js.map +1 -0
  3310. package/dist/settings/settings.module.d.ts +35 -0
  3311. package/dist/settings/settings.module.d.ts.map +1 -0
  3312. package/dist/settings/settings.module.js +102 -0
  3313. package/dist/settings/settings.module.js.map +1 -0
  3314. package/dist/settings/settings.options.d.ts +69 -0
  3315. package/dist/settings/settings.options.d.ts.map +1 -0
  3316. package/dist/settings/settings.options.js +51 -0
  3317. package/dist/settings/settings.options.js.map +1 -0
  3318. package/dist/settings/settings.permissions.d.ts +55 -0
  3319. package/dist/settings/settings.permissions.d.ts.map +1 -0
  3320. package/dist/settings/settings.permissions.js +93 -0
  3321. package/dist/settings/settings.permissions.js.map +1 -0
  3322. package/dist/settings/system-settings/system-settings.controller.d.ts +12 -0
  3323. package/dist/settings/system-settings/system-settings.controller.d.ts.map +1 -0
  3324. package/dist/settings/system-settings/system-settings.controller.js +137 -0
  3325. package/dist/settings/system-settings/system-settings.controller.js.map +1 -0
  3326. package/dist/settings/system-settings/system-settings.service.d.ts +616 -0
  3327. package/dist/settings/system-settings/system-settings.service.d.ts.map +1 -0
  3328. package/dist/settings/system-settings/system-settings.service.js +969 -0
  3329. package/dist/settings/system-settings/system-settings.service.js.map +1 -0
  3330. package/dist/settings/testing/conformance.d.ts +59 -0
  3331. package/dist/settings/testing/conformance.d.ts.map +1 -0
  3332. package/dist/settings/testing/conformance.js +164 -0
  3333. package/dist/settings/testing/conformance.js.map +1 -0
  3334. package/dist/settings/testing/index.d.ts +3 -0
  3335. package/dist/settings/testing/index.d.ts.map +1 -0
  3336. package/dist/settings/testing/index.js +12 -0
  3337. package/dist/settings/testing/index.js.map +1 -0
  3338. package/dist/settings/user-settings/user-settings.controller.d.ts +12 -0
  3339. package/dist/settings/user-settings/user-settings.controller.d.ts.map +1 -0
  3340. package/dist/settings/user-settings/user-settings.controller.js +124 -0
  3341. package/dist/settings/user-settings/user-settings.controller.js.map +1 -0
  3342. package/dist/settings/user-settings/user-settings.service.d.ts +146 -0
  3343. package/dist/settings/user-settings/user-settings.service.d.ts.map +1 -0
  3344. package/dist/settings/user-settings/user-settings.service.js +380 -0
  3345. package/dist/settings/user-settings/user-settings.service.js.map +1 -0
  3346. package/dist/sharing/access/access-policy.service.d.ts +194 -0
  3347. package/dist/sharing/access/access-policy.service.d.ts.map +1 -0
  3348. package/dist/sharing/access/access-policy.service.js +515 -0
  3349. package/dist/sharing/access/access-policy.service.js.map +1 -0
  3350. package/dist/sharing/access/access-rules.d.ts +199 -0
  3351. package/dist/sharing/access/access-rules.d.ts.map +1 -0
  3352. package/dist/sharing/access/access-rules.js +230 -0
  3353. package/dist/sharing/access/access-rules.js.map +1 -0
  3354. package/dist/sharing/access/accessible.d.ts +197 -0
  3355. package/dist/sharing/access/accessible.d.ts.map +1 -0
  3356. package/dist/sharing/access/accessible.js +355 -0
  3357. package/dist/sharing/access/accessible.js.map +1 -0
  3358. package/dist/sharing/access/grantee-kinds.d.ts +261 -0
  3359. package/dist/sharing/access/grantee-kinds.d.ts.map +1 -0
  3360. package/dist/sharing/access/grantee-kinds.js +345 -0
  3361. package/dist/sharing/access/grantee-kinds.js.map +1 -0
  3362. package/dist/sharing/access/resource-types.d.ts +211 -0
  3363. package/dist/sharing/access/resource-types.d.ts.map +1 -0
  3364. package/dist/sharing/access/resource-types.js +235 -0
  3365. package/dist/sharing/access/resource-types.js.map +1 -0
  3366. package/dist/sharing/data/sharing-tx.d.ts +168 -0
  3367. package/dist/sharing/data/sharing-tx.d.ts.map +1 -0
  3368. package/dist/sharing/data/sharing-tx.js +24 -0
  3369. package/dist/sharing/data/sharing-tx.js.map +1 -0
  3370. package/dist/sharing/doctor/groups-orphaned.doctor-check.d.ts +37 -0
  3371. package/dist/sharing/doctor/groups-orphaned.doctor-check.d.ts.map +1 -0
  3372. package/dist/sharing/doctor/groups-orphaned.doctor-check.js +100 -0
  3373. package/dist/sharing/doctor/groups-orphaned.doctor-check.js.map +1 -0
  3374. package/dist/sharing/dto/grants.dto.d.ts +171 -0
  3375. package/dist/sharing/dto/grants.dto.d.ts.map +1 -0
  3376. package/dist/sharing/dto/grants.dto.js +78 -0
  3377. package/dist/sharing/dto/grants.dto.js.map +1 -0
  3378. package/dist/sharing/dto/groups.dto.d.ts +273 -0
  3379. package/dist/sharing/dto/groups.dto.d.ts.map +1 -0
  3380. package/dist/sharing/dto/groups.dto.js +150 -0
  3381. package/dist/sharing/dto/groups.dto.js.map +1 -0
  3382. package/dist/sharing/dto/link-grants.dto.d.ts +94 -0
  3383. package/dist/sharing/dto/link-grants.dto.d.ts.map +1 -0
  3384. package/dist/sharing/dto/link-grants.dto.js +53 -0
  3385. package/dist/sharing/dto/link-grants.dto.js.map +1 -0
  3386. package/dist/sharing/errors.d.ts +124 -0
  3387. package/dist/sharing/errors.d.ts.map +1 -0
  3388. package/dist/sharing/errors.js +236 -0
  3389. package/dist/sharing/errors.js.map +1 -0
  3390. package/dist/sharing/events.d.ts +99 -0
  3391. package/dist/sharing/events.d.ts.map +1 -0
  3392. package/dist/sharing/events.js +36 -0
  3393. package/dist/sharing/events.js.map +1 -0
  3394. package/dist/sharing/grants/grantee-kinds.controller.d.ts +14 -0
  3395. package/dist/sharing/grants/grantee-kinds.controller.d.ts.map +1 -0
  3396. package/dist/sharing/grants/grantee-kinds.controller.js +84 -0
  3397. package/dist/sharing/grants/grantee-kinds.controller.js.map +1 -0
  3398. package/dist/sharing/grants/grants.controller.d.ts +14 -0
  3399. package/dist/sharing/grants/grants.controller.d.ts.map +1 -0
  3400. package/dist/sharing/grants/grants.controller.js +176 -0
  3401. package/dist/sharing/grants/grants.controller.js.map +1 -0
  3402. package/dist/sharing/grants/grants.service.d.ts +197 -0
  3403. package/dist/sharing/grants/grants.service.d.ts.map +1 -0
  3404. package/dist/sharing/grants/grants.service.js +736 -0
  3405. package/dist/sharing/grants/grants.service.js.map +1 -0
  3406. package/dist/sharing/group-roles.d.ts +114 -0
  3407. package/dist/sharing/group-roles.d.ts.map +1 -0
  3408. package/dist/sharing/group-roles.js +186 -0
  3409. package/dist/sharing/group-roles.js.map +1 -0
  3410. package/dist/sharing/groups/group-common.d.ts +58 -0
  3411. package/dist/sharing/groups/group-common.d.ts.map +1 -0
  3412. package/dist/sharing/groups/group-common.js +96 -0
  3413. package/dist/sharing/groups/group-common.js.map +1 -0
  3414. package/dist/sharing/groups/group-invites.controller.d.ts +14 -0
  3415. package/dist/sharing/groups/group-invites.controller.d.ts.map +1 -0
  3416. package/dist/sharing/groups/group-invites.controller.js +124 -0
  3417. package/dist/sharing/groups/group-invites.controller.js.map +1 -0
  3418. package/dist/sharing/groups/group-invites.service.d.ts +118 -0
  3419. package/dist/sharing/groups/group-invites.service.d.ts.map +1 -0
  3420. package/dist/sharing/groups/group-invites.service.js +463 -0
  3421. package/dist/sharing/groups/group-invites.service.js.map +1 -0
  3422. package/dist/sharing/groups/group-membership.service.d.ts +108 -0
  3423. package/dist/sharing/groups/group-membership.service.d.ts.map +1 -0
  3424. package/dist/sharing/groups/group-membership.service.js +353 -0
  3425. package/dist/sharing/groups/group-membership.service.js.map +1 -0
  3426. package/dist/sharing/groups/groups.controller.d.ts +14 -0
  3427. package/dist/sharing/groups/groups.controller.d.ts.map +1 -0
  3428. package/dist/sharing/groups/groups.controller.js +327 -0
  3429. package/dist/sharing/groups/groups.controller.js.map +1 -0
  3430. package/dist/sharing/groups/groups.service.d.ts +81 -0
  3431. package/dist/sharing/groups/groups.service.d.ts.map +1 -0
  3432. package/dist/sharing/groups/groups.service.js +301 -0
  3433. package/dist/sharing/groups/groups.service.js.map +1 -0
  3434. package/dist/sharing/groups/member-lookup-throttle.d.ts +48 -0
  3435. package/dist/sharing/groups/member-lookup-throttle.d.ts.map +1 -0
  3436. package/dist/sharing/groups/member-lookup-throttle.js +99 -0
  3437. package/dist/sharing/groups/member-lookup-throttle.js.map +1 -0
  3438. package/dist/sharing/groups/sharing-effects.d.ts +85 -0
  3439. package/dist/sharing/groups/sharing-effects.d.ts.map +1 -0
  3440. package/dist/sharing/groups/sharing-effects.js +143 -0
  3441. package/dist/sharing/groups/sharing-effects.js.map +1 -0
  3442. package/dist/sharing/groups/sharing-principal.decorator.d.ts +14 -0
  3443. package/dist/sharing/groups/sharing-principal.decorator.d.ts.map +1 -0
  3444. package/dist/sharing/groups/sharing-principal.decorator.js +24 -0
  3445. package/dist/sharing/groups/sharing-principal.decorator.js.map +1 -0
  3446. package/dist/sharing/index.d.ts +56 -0
  3447. package/dist/sharing/index.d.ts.map +1 -0
  3448. package/dist/sharing/index.js +177 -0
  3449. package/dist/sharing/index.js.map +1 -0
  3450. package/dist/sharing/jobs/grants-prune.handler.d.ts +64 -0
  3451. package/dist/sharing/jobs/grants-prune.handler.d.ts.map +1 -0
  3452. package/dist/sharing/jobs/grants-prune.handler.js +181 -0
  3453. package/dist/sharing/jobs/grants-prune.handler.js.map +1 -0
  3454. package/dist/sharing/jobs/grants-prune.task.d.ts +14 -0
  3455. package/dist/sharing/jobs/grants-prune.task.d.ts.map +1 -0
  3456. package/dist/sharing/jobs/grants-prune.task.js +63 -0
  3457. package/dist/sharing/jobs/grants-prune.task.js.map +1 -0
  3458. package/dist/sharing/links/link-grant.decorators.d.ts +46 -0
  3459. package/dist/sharing/links/link-grant.decorators.d.ts.map +1 -0
  3460. package/dist/sharing/links/link-grant.decorators.js +71 -0
  3461. package/dist/sharing/links/link-grant.decorators.js.map +1 -0
  3462. package/dist/sharing/links/link-grant.guard.d.ts +47 -0
  3463. package/dist/sharing/links/link-grant.guard.d.ts.map +1 -0
  3464. package/dist/sharing/links/link-grant.guard.js +163 -0
  3465. package/dist/sharing/links/link-grant.guard.js.map +1 -0
  3466. package/dist/sharing/links/link-grants.controller.d.ts +14 -0
  3467. package/dist/sharing/links/link-grants.controller.d.ts.map +1 -0
  3468. package/dist/sharing/links/link-grants.controller.js +111 -0
  3469. package/dist/sharing/links/link-grants.controller.js.map +1 -0
  3470. package/dist/sharing/links/link-grants.service.d.ts +315 -0
  3471. package/dist/sharing/links/link-grants.service.d.ts.map +1 -0
  3472. package/dist/sharing/links/link-grants.service.js +582 -0
  3473. package/dist/sharing/links/link-grants.service.js.map +1 -0
  3474. package/dist/sharing/links/link-miss-throttle.d.ts +15 -0
  3475. package/dist/sharing/links/link-miss-throttle.d.ts.map +1 -0
  3476. package/dist/sharing/links/link-miss-throttle.js +55 -0
  3477. package/dist/sharing/links/link-miss-throttle.js.map +1 -0
  3478. package/dist/sharing/links/link-token.d.ts +11 -0
  3479. package/dist/sharing/links/link-token.d.ts.map +1 -0
  3480. package/dist/sharing/links/link-token.js +47 -0
  3481. package/dist/sharing/links/link-token.js.map +1 -0
  3482. package/dist/sharing/links/public-link.interceptor.d.ts +34 -0
  3483. package/dist/sharing/links/public-link.interceptor.d.ts.map +1 -0
  3484. package/dist/sharing/links/public-link.interceptor.js +76 -0
  3485. package/dist/sharing/links/public-link.interceptor.js.map +1 -0
  3486. package/dist/sharing/links/public-links.controller.d.ts +13 -0
  3487. package/dist/sharing/links/public-links.controller.d.ts.map +1 -0
  3488. package/dist/sharing/links/public-links.controller.js +97 -0
  3489. package/dist/sharing/links/public-links.controller.js.map +1 -0
  3490. package/dist/sharing/metrics.d.ts +75 -0
  3491. package/dist/sharing/metrics.d.ts.map +1 -0
  3492. package/dist/sharing/metrics.js +128 -0
  3493. package/dist/sharing/metrics.js.map +1 -0
  3494. package/dist/sharing/notifications/group-invitation.templates.d.ts +149 -0
  3495. package/dist/sharing/notifications/group-invitation.templates.d.ts.map +1 -0
  3496. package/dist/sharing/notifications/group-invitation.templates.js +146 -0
  3497. package/dist/sharing/notifications/group-invitation.templates.js.map +1 -0
  3498. package/dist/sharing/notifications/shared-with-you.templates.d.ts +118 -0
  3499. package/dist/sharing/notifications/shared-with-you.templates.d.ts.map +1 -0
  3500. package/dist/sharing/notifications/shared-with-you.templates.js +140 -0
  3501. package/dist/sharing/notifications/shared-with-you.templates.js.map +1 -0
  3502. package/dist/sharing/ownership.d.ts +134 -0
  3503. package/dist/sharing/ownership.d.ts.map +1 -0
  3504. package/dist/sharing/ownership.js +140 -0
  3505. package/dist/sharing/ownership.js.map +1 -0
  3506. package/dist/sharing/permissions.d.ts +57 -0
  3507. package/dist/sharing/permissions.d.ts.map +1 -0
  3508. package/dist/sharing/permissions.js +94 -0
  3509. package/dist/sharing/permissions.js.map +1 -0
  3510. package/dist/sharing/ports.d.ts +246 -0
  3511. package/dist/sharing/ports.d.ts.map +1 -0
  3512. package/dist/sharing/ports.js +65 -0
  3513. package/dist/sharing/ports.js.map +1 -0
  3514. package/dist/sharing/principal-groups.provider.d.ts +113 -0
  3515. package/dist/sharing/principal-groups.provider.d.ts.map +1 -0
  3516. package/dist/sharing/principal-groups.provider.js +281 -0
  3517. package/dist/sharing/principal-groups.provider.js.map +1 -0
  3518. package/dist/sharing/sharing.module.d.ts +34 -0
  3519. package/dist/sharing/sharing.module.d.ts.map +1 -0
  3520. package/dist/sharing/sharing.module.js +151 -0
  3521. package/dist/sharing/sharing.module.js.map +1 -0
  3522. package/dist/sharing/sharing.options.d.ts +175 -0
  3523. package/dist/sharing/sharing.options.d.ts.map +1 -0
  3524. package/dist/sharing/sharing.options.js +153 -0
  3525. package/dist/sharing/sharing.options.js.map +1 -0
  3526. package/dist/sharing/testing/access-rule-conformance.d.ts +90 -0
  3527. package/dist/sharing/testing/access-rule-conformance.d.ts.map +1 -0
  3528. package/dist/sharing/testing/access-rule-conformance.js +180 -0
  3529. package/dist/sharing/testing/access-rule-conformance.js.map +1 -0
  3530. package/dist/sharing/testing/conformance.d.ts +211 -0
  3531. package/dist/sharing/testing/conformance.d.ts.map +1 -0
  3532. package/dist/sharing/testing/conformance.js +509 -0
  3533. package/dist/sharing/testing/conformance.js.map +1 -0
  3534. package/dist/sharing/testing/grantee-kind-conformance.d.ts +77 -0
  3535. package/dist/sharing/testing/grantee-kind-conformance.d.ts.map +1 -0
  3536. package/dist/sharing/testing/grantee-kind-conformance.js +218 -0
  3537. package/dist/sharing/testing/grantee-kind-conformance.js.map +1 -0
  3538. package/dist/sharing/testing/hostile-principal.d.ts +26 -0
  3539. package/dist/sharing/testing/hostile-principal.d.ts.map +1 -0
  3540. package/dist/sharing/testing/hostile-principal.js +47 -0
  3541. package/dist/sharing/testing/hostile-principal.js.map +1 -0
  3542. package/dist/sharing/testing/index.d.ts +11 -0
  3543. package/dist/sharing/testing/index.d.ts.map +1 -0
  3544. package/dist/sharing/testing/index.js +29 -0
  3545. package/dist/sharing/testing/index.js.map +1 -0
  3546. package/dist/sharing/testing/recording-sql-kit.d.ts +24 -0
  3547. package/dist/sharing/testing/recording-sql-kit.d.ts.map +1 -0
  3548. package/dist/sharing/testing/recording-sql-kit.js +66 -0
  3549. package/dist/sharing/testing/recording-sql-kit.js.map +1 -0
  3550. package/dist/sharing/user-data.d.ts +56 -0
  3551. package/dist/sharing/user-data.d.ts.map +1 -0
  3552. package/dist/sharing/user-data.js +185 -0
  3553. package/dist/sharing/user-data.js.map +1 -0
  3554. package/dist/storage/config/doctor/egress/storage.egress.contributor.d.ts +28 -0
  3555. package/dist/storage/config/doctor/egress/storage.egress.contributor.d.ts.map +1 -0
  3556. package/dist/storage/config/doctor/egress/storage.egress.contributor.js +76 -0
  3557. package/dist/storage/config/doctor/egress/storage.egress.contributor.js.map +1 -0
  3558. package/dist/storage/config/doctor/storage-bucket.doctor-check.d.ts +47 -0
  3559. package/dist/storage/config/doctor/storage-bucket.doctor-check.d.ts.map +1 -0
  3560. package/dist/storage/config/doctor/storage-bucket.doctor-check.js +141 -0
  3561. package/dist/storage/config/doctor/storage-bucket.doctor-check.js.map +1 -0
  3562. package/dist/storage/config/doctor/storage-config.doctor-check.d.ts +31 -0
  3563. package/dist/storage/config/doctor/storage-config.doctor-check.d.ts.map +1 -0
  3564. package/dist/storage/config/doctor/storage-config.doctor-check.js +82 -0
  3565. package/dist/storage/config/doctor/storage-config.doctor-check.js.map +1 -0
  3566. package/dist/storage/config/dto/storage-bucket-provision.dto.d.ts +52 -0
  3567. package/dist/storage/config/dto/storage-bucket-provision.dto.d.ts.map +1 -0
  3568. package/dist/storage/config/dto/storage-bucket-provision.dto.js +33 -0
  3569. package/dist/storage/config/dto/storage-bucket-provision.dto.js.map +1 -0
  3570. package/dist/storage/config/dto/storage-config-response.dto.d.ts +80 -0
  3571. package/dist/storage/config/dto/storage-config-response.dto.d.ts.map +1 -0
  3572. package/dist/storage/config/dto/storage-config-response.dto.js +20 -0
  3573. package/dist/storage/config/dto/storage-config-response.dto.js.map +1 -0
  3574. package/dist/storage/config/dto/storage-connection-test.dto.d.ts +49 -0
  3575. package/dist/storage/config/dto/storage-connection-test.dto.d.ts.map +1 -0
  3576. package/dist/storage/config/dto/storage-connection-test.dto.js +32 -0
  3577. package/dist/storage/config/dto/storage-connection-test.dto.js.map +1 -0
  3578. package/dist/storage/config/dto/update-storage-config.dto.d.ts +24 -0
  3579. package/dist/storage/config/dto/update-storage-config.dto.d.ts.map +1 -0
  3580. package/dist/storage/config/dto/update-storage-config.dto.js +20 -0
  3581. package/dist/storage/config/dto/update-storage-config.dto.js.map +1 -0
  3582. package/dist/storage/config/index.d.ts +15 -0
  3583. package/dist/storage/config/index.d.ts.map +1 -0
  3584. package/dist/storage/config/index.js +33 -0
  3585. package/dist/storage/config/index.js.map +1 -0
  3586. package/dist/storage/config/storage-bucket-provision.service.d.ts +34 -0
  3587. package/dist/storage/config/storage-bucket-provision.service.d.ts.map +1 -0
  3588. package/dist/storage/config/storage-bucket-provision.service.js +185 -0
  3589. package/dist/storage/config/storage-bucket-provision.service.js.map +1 -0
  3590. package/dist/storage/config/storage-config-admin.service.d.ts +120 -0
  3591. package/dist/storage/config/storage-config-admin.service.d.ts.map +1 -0
  3592. package/dist/storage/config/storage-config-admin.service.js +355 -0
  3593. package/dist/storage/config/storage-config-admin.service.js.map +1 -0
  3594. package/dist/storage/config/storage-config.controller.d.ts +199 -0
  3595. package/dist/storage/config/storage-config.controller.d.ts.map +1 -0
  3596. package/dist/storage/config/storage-config.controller.js +275 -0
  3597. package/dist/storage/config/storage-config.controller.js.map +1 -0
  3598. package/dist/storage/config/storage-config.d.ts +104 -0
  3599. package/dist/storage/config/storage-config.d.ts.map +1 -0
  3600. package/dist/storage/config/storage-config.js +66 -0
  3601. package/dist/storage/config/storage-config.js.map +1 -0
  3602. package/dist/storage/config/storage-config.module.d.ts +11 -0
  3603. package/dist/storage/config/storage-config.module.d.ts.map +1 -0
  3604. package/dist/storage/config/storage-config.module.js +108 -0
  3605. package/dist/storage/config/storage-config.module.js.map +1 -0
  3606. package/dist/storage/config/storage-config.permissions.d.ts +17 -0
  3607. package/dist/storage/config/storage-config.permissions.d.ts.map +1 -0
  3608. package/dist/storage/config/storage-config.permissions.js +69 -0
  3609. package/dist/storage/config/storage-config.permissions.js.map +1 -0
  3610. package/dist/storage/config/storage-config.service.d.ts +248 -0
  3611. package/dist/storage/config/storage-config.service.d.ts.map +1 -0
  3612. package/dist/storage/config/storage-config.service.js +431 -0
  3613. package/dist/storage/config/storage-config.service.js.map +1 -0
  3614. package/dist/storage/config/storage-connection-test.service.d.ts +30 -0
  3615. package/dist/storage/config/storage-connection-test.service.d.ts.map +1 -0
  3616. package/dist/storage/config/storage-connection-test.service.js +174 -0
  3617. package/dist/storage/config/storage-connection-test.service.js.map +1 -0
  3618. package/dist/storage/config/storage-driver-context.d.ts +36 -0
  3619. package/dist/storage/config/storage-driver-context.d.ts.map +1 -0
  3620. package/dist/storage/config/storage-driver-context.js +61 -0
  3621. package/dist/storage/config/storage-driver-context.js.map +1 -0
  3622. package/dist/storage/config/storage-not-configured.error.d.ts +70 -0
  3623. package/dist/storage/config/storage-not-configured.error.d.ts.map +1 -0
  3624. package/dist/storage/config/storage-not-configured.error.js +117 -0
  3625. package/dist/storage/config/storage-not-configured.error.js.map +1 -0
  3626. package/dist/storage/config/storage-settings-compat.d.ts +44 -0
  3627. package/dist/storage/config/storage-settings-compat.d.ts.map +1 -0
  3628. package/dist/storage/config/storage-settings-compat.js +135 -0
  3629. package/dist/storage/config/storage-settings-compat.js.map +1 -0
  3630. package/dist/storage/config/storage-submission.service.d.ts +46 -0
  3631. package/dist/storage/config/storage-submission.service.d.ts.map +1 -0
  3632. package/dist/storage/config/storage-submission.service.js +102 -0
  3633. package/dist/storage/config/storage-submission.service.js.map +1 -0
  3634. package/dist/storage/config/storage.system-settings.d.ts +130 -0
  3635. package/dist/storage/config/storage.system-settings.d.ts.map +1 -0
  3636. package/dist/storage/config/storage.system-settings.js +307 -0
  3637. package/dist/storage/config/storage.system-settings.js.map +1 -0
  3638. package/dist/storage/data/storage-db.d.ts +292 -0
  3639. package/dist/storage/data/storage-db.d.ts.map +1 -0
  3640. package/dist/storage/data/storage-db.js +87 -0
  3641. package/dist/storage/data/storage-db.js.map +1 -0
  3642. package/dist/storage/drivers/builtin-storage-drivers.d.ts +8 -0
  3643. package/dist/storage/drivers/builtin-storage-drivers.d.ts.map +1 -0
  3644. package/dist/storage/drivers/builtin-storage-drivers.js +35 -0
  3645. package/dist/storage/drivers/builtin-storage-drivers.js.map +1 -0
  3646. package/dist/storage/drivers/s3/s3-config.d.ts +316 -0
  3647. package/dist/storage/drivers/s3/s3-config.d.ts.map +1 -0
  3648. package/dist/storage/drivers/s3/s3-config.js +315 -0
  3649. package/dist/storage/drivers/s3/s3-config.js.map +1 -0
  3650. package/dist/storage/drivers/s3/s3-connection-test.d.ts +28 -0
  3651. package/dist/storage/drivers/s3/s3-connection-test.d.ts.map +1 -0
  3652. package/dist/storage/drivers/s3/s3-connection-test.js +424 -0
  3653. package/dist/storage/drivers/s3/s3-connection-test.js.map +1 -0
  3654. package/dist/storage/drivers/s3/s3-family.d.ts +20 -0
  3655. package/dist/storage/drivers/s3/s3-family.d.ts.map +1 -0
  3656. package/dist/storage/drivers/s3/s3-family.js +208 -0
  3657. package/dist/storage/drivers/s3/s3-family.js.map +1 -0
  3658. package/dist/storage/drivers/s3/s3-probe.support.d.ts +153 -0
  3659. package/dist/storage/drivers/s3/s3-probe.support.d.ts.map +1 -0
  3660. package/dist/storage/drivers/s3/s3-probe.support.js +250 -0
  3661. package/dist/storage/drivers/s3/s3-probe.support.js.map +1 -0
  3662. package/dist/storage/drivers/s3/s3-provision.d.ts +46 -0
  3663. package/dist/storage/drivers/s3/s3-provision.d.ts.map +1 -0
  3664. package/dist/storage/drivers/s3/s3-provision.js +495 -0
  3665. package/dist/storage/drivers/s3/s3-provision.js.map +1 -0
  3666. package/dist/storage/drivers/s3/s3-purge.d.ts +29 -0
  3667. package/dist/storage/drivers/s3/s3-purge.d.ts.map +1 -0
  3668. package/dist/storage/drivers/s3/s3-purge.js +146 -0
  3669. package/dist/storage/drivers/s3/s3-purge.js.map +1 -0
  3670. package/dist/storage/drivers/storage-driver.d.ts +393 -0
  3671. package/dist/storage/drivers/storage-driver.d.ts.map +1 -0
  3672. package/dist/storage/drivers/storage-driver.js +251 -0
  3673. package/dist/storage/drivers/storage-driver.js.map +1 -0
  3674. package/dist/storage/handlers/storage-cleanup.handler.d.ts +59 -0
  3675. package/dist/storage/handlers/storage-cleanup.handler.d.ts.map +1 -0
  3676. package/dist/storage/handlers/storage-cleanup.handler.js +185 -0
  3677. package/dist/storage/handlers/storage-cleanup.handler.js.map +1 -0
  3678. package/dist/storage/handlers/storage-object-process.handler.d.ts +47 -0
  3679. package/dist/storage/handlers/storage-object-process.handler.d.ts.map +1 -0
  3680. package/dist/storage/handlers/storage-object-process.handler.js +172 -0
  3681. package/dist/storage/handlers/storage-object-process.handler.js.map +1 -0
  3682. package/dist/storage/index.d.ts +86 -0
  3683. package/dist/storage/index.d.ts.map +1 -0
  3684. package/dist/storage/index.js +221 -0
  3685. package/dist/storage/index.js.map +1 -0
  3686. package/dist/storage/mime-type-match.d.ts +26 -0
  3687. package/dist/storage/mime-type-match.d.ts.map +1 -0
  3688. package/dist/storage/mime-type-match.js +36 -0
  3689. package/dist/storage/mime-type-match.js.map +1 -0
  3690. package/dist/storage/multipart.d.ts +51 -0
  3691. package/dist/storage/multipart.d.ts.map +1 -0
  3692. package/dist/storage/multipart.js +21 -0
  3693. package/dist/storage/multipart.js.map +1 -0
  3694. package/dist/storage/node-object-store.binding.d.ts +28 -0
  3695. package/dist/storage/node-object-store.binding.d.ts.map +1 -0
  3696. package/dist/storage/node-object-store.binding.js +40 -0
  3697. package/dist/storage/node-object-store.binding.js.map +1 -0
  3698. package/dist/storage/objects/dto/complete-upload.dto.d.ts +17 -0
  3699. package/dist/storage/objects/dto/complete-upload.dto.d.ts.map +1 -0
  3700. package/dist/storage/objects/dto/complete-upload.dto.js +19 -0
  3701. package/dist/storage/objects/dto/complete-upload.dto.js.map +1 -0
  3702. package/dist/storage/objects/dto/download-url-response.dto.d.ts +14 -0
  3703. package/dist/storage/objects/dto/download-url-response.dto.d.ts.map +1 -0
  3704. package/dist/storage/objects/dto/download-url-response.dto.js +19 -0
  3705. package/dist/storage/objects/dto/download-url-response.dto.js.map +1 -0
  3706. package/dist/storage/objects/dto/init-upload.dto.d.ts +33 -0
  3707. package/dist/storage/objects/dto/init-upload.dto.d.ts.map +1 -0
  3708. package/dist/storage/objects/dto/init-upload.dto.js +28 -0
  3709. package/dist/storage/objects/dto/init-upload.dto.js.map +1 -0
  3710. package/dist/storage/objects/dto/object-list-query.dto.d.ts +13 -0
  3711. package/dist/storage/objects/dto/object-list-query.dto.d.ts.map +1 -0
  3712. package/dist/storage/objects/dto/object-list-query.dto.js +7 -0
  3713. package/dist/storage/objects/dto/object-list-query.dto.js.map +1 -0
  3714. package/dist/storage/objects/dto/object-response.dto.d.ts +35 -0
  3715. package/dist/storage/objects/dto/object-response.dto.d.ts.map +1 -0
  3716. package/dist/storage/objects/dto/object-response.dto.js +28 -0
  3717. package/dist/storage/objects/dto/object-response.dto.js.map +1 -0
  3718. package/dist/storage/objects/dto/update-metadata.dto.d.ts +14 -0
  3719. package/dist/storage/objects/dto/update-metadata.dto.d.ts.map +1 -0
  3720. package/dist/storage/objects/dto/update-metadata.dto.js +19 -0
  3721. package/dist/storage/objects/dto/update-metadata.dto.js.map +1 -0
  3722. package/dist/storage/objects/objects.controller.d.ts +77 -0
  3723. package/dist/storage/objects/objects.controller.d.ts.map +1 -0
  3724. package/dist/storage/objects/objects.controller.js +383 -0
  3725. package/dist/storage/objects/objects.controller.js.map +1 -0
  3726. package/dist/storage/objects/objects.service.d.ts +156 -0
  3727. package/dist/storage/objects/objects.service.d.ts.map +1 -0
  3728. package/dist/storage/objects/objects.service.js +642 -0
  3729. package/dist/storage/objects/objects.service.js.map +1 -0
  3730. package/dist/storage/ports.d.ts +39 -0
  3731. package/dist/storage/ports.d.ts.map +1 -0
  3732. package/dist/storage/ports.js +37 -0
  3733. package/dist/storage/ports.js.map +1 -0
  3734. package/dist/storage/processing/index.d.ts +11 -0
  3735. package/dist/storage/processing/index.d.ts.map +1 -0
  3736. package/dist/storage/processing/index.js +16 -0
  3737. package/dist/storage/processing/index.js.map +1 -0
  3738. package/dist/storage/processing/object-processing.module.d.ts +11 -0
  3739. package/dist/storage/processing/object-processing.module.d.ts.map +1 -0
  3740. package/dist/storage/processing/object-processing.module.js +32 -0
  3741. package/dist/storage/processing/object-processing.module.js.map +1 -0
  3742. package/dist/storage/processing/object-processing.service.d.ts +65 -0
  3743. package/dist/storage/processing/object-processing.service.d.ts.map +1 -0
  3744. package/dist/storage/processing/object-processing.service.js +211 -0
  3745. package/dist/storage/processing/object-processing.service.js.map +1 -0
  3746. package/dist/storage/processing/object-processor.interface.d.ts +47 -0
  3747. package/dist/storage/processing/object-processor.interface.d.ts.map +1 -0
  3748. package/dist/storage/processing/object-processor.interface.js +3 -0
  3749. package/dist/storage/processing/object-processor.interface.js.map +1 -0
  3750. package/dist/storage/processing/object-processor.registry.d.ts +50 -0
  3751. package/dist/storage/processing/object-processor.registry.d.ts.map +1 -0
  3752. package/dist/storage/processing/object-processor.registry.js +100 -0
  3753. package/dist/storage/processing/object-processor.registry.js.map +1 -0
  3754. package/dist/storage/processing/processing-metadata.d.ts +20 -0
  3755. package/dist/storage/processing/processing-metadata.d.ts.map +1 -0
  3756. package/dist/storage/processing/processing-metadata.js +34 -0
  3757. package/dist/storage/processing/processing-metadata.js.map +1 -0
  3758. package/dist/storage/profile-image/avatar.controller.d.ts +24 -0
  3759. package/dist/storage/profile-image/avatar.controller.d.ts.map +1 -0
  3760. package/dist/storage/profile-image/avatar.controller.js +90 -0
  3761. package/dist/storage/profile-image/avatar.controller.js.map +1 -0
  3762. package/dist/storage/profile-image/avatar.service.d.ts +60 -0
  3763. package/dist/storage/profile-image/avatar.service.d.ts.map +1 -0
  3764. package/dist/storage/profile-image/avatar.service.js +117 -0
  3765. package/dist/storage/profile-image/avatar.service.js.map +1 -0
  3766. package/dist/storage/profile-image/dto/profile-image-response.dto.d.ts +28 -0
  3767. package/dist/storage/profile-image/dto/profile-image-response.dto.d.ts.map +1 -0
  3768. package/dist/storage/profile-image/dto/profile-image-response.dto.js +40 -0
  3769. package/dist/storage/profile-image/dto/profile-image-response.dto.js.map +1 -0
  3770. package/dist/storage/profile-image/profile-image.controller.d.ts +32 -0
  3771. package/dist/storage/profile-image/profile-image.controller.d.ts.map +1 -0
  3772. package/dist/storage/profile-image/profile-image.controller.js +192 -0
  3773. package/dist/storage/profile-image/profile-image.controller.js.map +1 -0
  3774. package/dist/storage/profile-image/profile-image.d.ts +138 -0
  3775. package/dist/storage/profile-image/profile-image.d.ts.map +1 -0
  3776. package/dist/storage/profile-image/profile-image.js +182 -0
  3777. package/dist/storage/profile-image/profile-image.js.map +1 -0
  3778. package/dist/storage/profile-image/profile-image.module.d.ts +39 -0
  3779. package/dist/storage/profile-image/profile-image.module.d.ts.map +1 -0
  3780. package/dist/storage/profile-image/profile-image.module.js +66 -0
  3781. package/dist/storage/profile-image/profile-image.module.js.map +1 -0
  3782. package/dist/storage/profile-image/profile-image.service.d.ts +66 -0
  3783. package/dist/storage/profile-image/profile-image.service.d.ts.map +1 -0
  3784. package/dist/storage/profile-image/profile-image.service.js +243 -0
  3785. package/dist/storage/profile-image/profile-image.service.js.map +1 -0
  3786. package/dist/storage/providers/index.d.ts +11 -0
  3787. package/dist/storage/providers/index.d.ts.map +1 -0
  3788. package/dist/storage/providers/index.js +18 -0
  3789. package/dist/storage/providers/index.js.map +1 -0
  3790. package/dist/storage/providers/resolving-storage.provider.d.ts +113 -0
  3791. package/dist/storage/providers/resolving-storage.provider.d.ts.map +1 -0
  3792. package/dist/storage/providers/resolving-storage.provider.js +292 -0
  3793. package/dist/storage/providers/resolving-storage.provider.js.map +1 -0
  3794. package/dist/storage/providers/s3/s3-storage.provider.d.ts +263 -0
  3795. package/dist/storage/providers/s3/s3-storage.provider.d.ts.map +1 -0
  3796. package/dist/storage/providers/s3/s3-storage.provider.js +542 -0
  3797. package/dist/storage/providers/s3/s3-storage.provider.js.map +1 -0
  3798. package/dist/storage/providers/storage-provider.binding.d.ts +29 -0
  3799. package/dist/storage/providers/storage-provider.binding.d.ts.map +1 -0
  3800. package/dist/storage/providers/storage-provider.binding.js +80 -0
  3801. package/dist/storage/providers/storage-provider.binding.js.map +1 -0
  3802. package/dist/storage/providers/storage-provider.interface.d.ts +164 -0
  3803. package/dist/storage/providers/storage-provider.interface.d.ts.map +1 -0
  3804. package/dist/storage/providers/storage-provider.interface.js +33 -0
  3805. package/dist/storage/providers/storage-provider.interface.js.map +1 -0
  3806. package/dist/storage/providers/storage-provider.types.d.ts +90 -0
  3807. package/dist/storage/providers/storage-provider.types.d.ts.map +1 -0
  3808. package/dist/storage/providers/storage-provider.types.js +3 -0
  3809. package/dist/storage/providers/storage-provider.types.js.map +1 -0
  3810. package/dist/storage/providers/storage-providers.module.d.ts +63 -0
  3811. package/dist/storage/providers/storage-providers.module.d.ts.map +1 -0
  3812. package/dist/storage/providers/storage-providers.module.js +94 -0
  3813. package/dist/storage/providers/storage-providers.module.js.map +1 -0
  3814. package/dist/storage/purge/run-storage-purge.d.ts +179 -0
  3815. package/dist/storage/purge/run-storage-purge.d.ts.map +1 -0
  3816. package/dist/storage/purge/run-storage-purge.js +205 -0
  3817. package/dist/storage/purge/run-storage-purge.js.map +1 -0
  3818. package/dist/storage/status/dto/storage-status.dto.d.ts +14 -0
  3819. package/dist/storage/status/dto/storage-status.dto.d.ts.map +1 -0
  3820. package/dist/storage/status/dto/storage-status.dto.js +19 -0
  3821. package/dist/storage/status/dto/storage-status.dto.js.map +1 -0
  3822. package/dist/storage/status/storage-status.controller.d.ts +16 -0
  3823. package/dist/storage/status/storage-status.controller.d.ts.map +1 -0
  3824. package/dist/storage/status/storage-status.controller.js +85 -0
  3825. package/dist/storage/status/storage-status.controller.js.map +1 -0
  3826. package/dist/storage/storage-credential.constants.d.ts +47 -0
  3827. package/dist/storage/storage-credential.constants.d.ts.map +1 -0
  3828. package/dist/storage/storage-credential.constants.js +88 -0
  3829. package/dist/storage/storage-credential.constants.js.map +1 -0
  3830. package/dist/storage/storage-job-input.d.ts +90 -0
  3831. package/dist/storage/storage-job-input.d.ts.map +1 -0
  3832. package/dist/storage/storage-job-input.js +96 -0
  3833. package/dist/storage/storage-job-input.js.map +1 -0
  3834. package/dist/storage/storage-key-prefix.registry.d.ts +196 -0
  3835. package/dist/storage/storage-key-prefix.registry.d.ts.map +1 -0
  3836. package/dist/storage/storage-key-prefix.registry.js +303 -0
  3837. package/dist/storage/storage-key-prefix.registry.js.map +1 -0
  3838. package/dist/storage/storage-key-prefixes.d.ts +66 -0
  3839. package/dist/storage/storage-key-prefixes.d.ts.map +1 -0
  3840. package/dist/storage/storage-key-prefixes.js +161 -0
  3841. package/dist/storage/storage-key-prefixes.js.map +1 -0
  3842. package/dist/storage/storage.constants.d.ts +17 -0
  3843. package/dist/storage/storage.constants.d.ts.map +1 -0
  3844. package/dist/storage/storage.constants.js +28 -0
  3845. package/dist/storage/storage.constants.js.map +1 -0
  3846. package/dist/storage/storage.module.d.ts +35 -0
  3847. package/dist/storage/storage.module.d.ts.map +1 -0
  3848. package/dist/storage/storage.module.js +99 -0
  3849. package/dist/storage/storage.module.js.map +1 -0
  3850. package/dist/storage/storage.options.d.ts +116 -0
  3851. package/dist/storage/storage.options.d.ts.map +1 -0
  3852. package/dist/storage/storage.options.js +97 -0
  3853. package/dist/storage/storage.options.js.map +1 -0
  3854. package/dist/storage/storage.permissions.d.ts +33 -0
  3855. package/dist/storage/storage.permissions.d.ts.map +1 -0
  3856. package/dist/storage/storage.permissions.js +55 -0
  3857. package/dist/storage/storage.permissions.js.map +1 -0
  3858. package/dist/storage/tasks/index.d.ts +2 -0
  3859. package/dist/storage/tasks/index.d.ts.map +1 -0
  3860. package/dist/storage/tasks/index.js +18 -0
  3861. package/dist/storage/tasks/index.js.map +1 -0
  3862. package/dist/storage/tasks/storage-cleanup.task.d.ts +17 -0
  3863. package/dist/storage/tasks/storage-cleanup.task.d.ts.map +1 -0
  3864. package/dist/storage/tasks/storage-cleanup.task.js +71 -0
  3865. package/dist/storage/tasks/storage-cleanup.task.js.map +1 -0
  3866. package/dist/storage/testing/conformance.d.ts +61 -0
  3867. package/dist/storage/testing/conformance.d.ts.map +1 -0
  3868. package/dist/storage/testing/conformance.js +163 -0
  3869. package/dist/storage/testing/conformance.js.map +1 -0
  3870. package/dist/storage/testing/driver-conformance.d.ts +66 -0
  3871. package/dist/storage/testing/driver-conformance.d.ts.map +1 -0
  3872. package/dist/storage/testing/driver-conformance.js +333 -0
  3873. package/dist/storage/testing/driver-conformance.js.map +1 -0
  3874. package/dist/storage/testing/index.d.ts +5 -0
  3875. package/dist/storage/testing/index.d.ts.map +1 -0
  3876. package/dist/storage/testing/index.js +16 -0
  3877. package/dist/storage/testing/index.js.map +1 -0
  3878. package/dist/telemetry/assistant/telemetry-assistant-tool.registry.d.ts +90 -0
  3879. package/dist/telemetry/assistant/telemetry-assistant-tool.registry.d.ts.map +1 -0
  3880. package/dist/telemetry/assistant/telemetry-assistant-tool.registry.js +52 -0
  3881. package/dist/telemetry/assistant/telemetry-assistant-tool.registry.js.map +1 -0
  3882. package/dist/telemetry/assistant/telemetry-assistant.metrics.d.ts +1 -1
  3883. package/dist/telemetry/assistant/telemetry-assistant.metrics.d.ts.map +1 -1
  3884. package/dist/telemetry/assistant/telemetry-assistant.service.d.ts +47 -4
  3885. package/dist/telemetry/assistant/telemetry-assistant.service.d.ts.map +1 -1
  3886. package/dist/telemetry/assistant/telemetry-assistant.service.js +129 -14
  3887. package/dist/telemetry/assistant/telemetry-assistant.service.js.map +1 -1
  3888. package/dist/telemetry/connection/dto/telemetry-connection.dto.d.ts +1 -1
  3889. package/dist/telemetry/connection/telemetry-connection-test.service.d.ts +1 -1
  3890. package/dist/telemetry/connection/telemetry-connection-test.service.d.ts.map +1 -1
  3891. package/dist/telemetry/connection/telemetry-connection-test.service.js +2 -2
  3892. package/dist/telemetry/connection/telemetry-connection-test.service.js.map +1 -1
  3893. package/dist/telemetry/connection/telemetry-connection.schema.d.ts +7 -1
  3894. package/dist/telemetry/connection/telemetry-connection.schema.d.ts.map +1 -1
  3895. package/dist/telemetry/connection/telemetry-connection.schema.js +7 -1
  3896. package/dist/telemetry/connection/telemetry-connection.schema.js.map +1 -1
  3897. package/dist/telemetry/dashboard/panels/dashboard-panel.manifest.d.ts +2 -0
  3898. package/dist/telemetry/dashboard/panels/dashboard-panel.manifest.d.ts.map +1 -0
  3899. package/dist/telemetry/dashboard/panels/dashboard-panel.manifest.js +28 -0
  3900. package/dist/telemetry/dashboard/panels/dashboard-panel.manifest.js.map +1 -0
  3901. package/dist/telemetry/dashboard/panels/dashboard-panel.registry.d.ts +111 -0
  3902. package/dist/telemetry/dashboard/panels/dashboard-panel.registry.d.ts.map +1 -0
  3903. package/dist/telemetry/dashboard/panels/dashboard-panel.registry.js +63 -0
  3904. package/dist/telemetry/dashboard/panels/dashboard-panel.registry.js.map +1 -0
  3905. package/dist/telemetry/dashboard/panels/dashboard-panels.d.ts +3 -0
  3906. package/dist/telemetry/dashboard/panels/dashboard-panels.d.ts.map +1 -0
  3907. package/dist/telemetry/dashboard/panels/dashboard-panels.js +12 -0
  3908. package/dist/telemetry/dashboard/panels/dashboard-panels.js.map +1 -0
  3909. package/dist/telemetry/dashboard/panels/telemetry-dashboard-panel.service.d.ts +34 -0
  3910. package/dist/telemetry/dashboard/panels/telemetry-dashboard-panel.service.d.ts.map +1 -0
  3911. package/dist/telemetry/dashboard/panels/telemetry-dashboard-panel.service.js +145 -0
  3912. package/dist/telemetry/dashboard/panels/telemetry-dashboard-panel.service.js.map +1 -0
  3913. package/dist/telemetry/dashboard/sql-literals.d.ts +2 -0
  3914. package/dist/telemetry/dashboard/sql-literals.d.ts.map +1 -1
  3915. package/dist/telemetry/dashboard/sql-literals.js +7 -0
  3916. package/dist/telemetry/dashboard/sql-literals.js.map +1 -1
  3917. package/dist/telemetry/dashboard/telemetry-dashboard.controller.d.ts.map +1 -1
  3918. package/dist/telemetry/dashboard/telemetry-dashboard.controller.js +70 -5
  3919. package/dist/telemetry/dashboard/telemetry-dashboard.controller.js.map +1 -1
  3920. package/dist/telemetry/dashboard/telemetry-dashboard.service.d.ts +21 -4
  3921. package/dist/telemetry/dashboard/telemetry-dashboard.service.d.ts.map +1 -1
  3922. package/dist/telemetry/dashboard/telemetry-dashboard.service.js +73 -35
  3923. package/dist/telemetry/dashboard/telemetry-dashboard.service.js.map +1 -1
  3924. package/dist/telemetry/dashboard/telemetry-dashboard.sql.d.ts +21 -15
  3925. package/dist/telemetry/dashboard/telemetry-dashboard.sql.d.ts.map +1 -1
  3926. package/dist/telemetry/dashboard/telemetry-dashboard.sql.js +104 -65
  3927. package/dist/telemetry/dashboard/telemetry-dashboard.sql.js.map +1 -1
  3928. package/dist/telemetry/doctor/telemetry-freshness.doctor-check.d.ts +5 -4
  3929. package/dist/telemetry/doctor/telemetry-freshness.doctor-check.d.ts.map +1 -1
  3930. package/dist/telemetry/doctor/telemetry-freshness.doctor-check.js +14 -9
  3931. package/dist/telemetry/doctor/telemetry-freshness.doctor-check.js.map +1 -1
  3932. package/dist/telemetry/doctor/telemetry-reachable.doctor-check.d.ts +4 -4
  3933. package/dist/telemetry/doctor/telemetry-reachable.doctor-check.d.ts.map +1 -1
  3934. package/dist/telemetry/doctor/telemetry-reachable.doctor-check.js +12 -8
  3935. package/dist/telemetry/doctor/telemetry-reachable.doctor-check.js.map +1 -1
  3936. package/dist/telemetry/dto/telemetry-config.dto.d.ts +4 -0
  3937. package/dist/telemetry/dto/telemetry-config.dto.d.ts.map +1 -1
  3938. package/dist/telemetry/dto/telemetry-dashboard.dto.d.ts +94 -22
  3939. package/dist/telemetry/dto/telemetry-dashboard.dto.d.ts.map +1 -1
  3940. package/dist/telemetry/dto/telemetry-dashboard.dto.js +11 -1
  3941. package/dist/telemetry/dto/telemetry-dashboard.dto.js.map +1 -1
  3942. package/dist/telemetry/dto/telemetry-query.dto.d.ts +1 -1
  3943. package/dist/telemetry/handlers/telemetry-retention.handler.d.ts +6 -6
  3944. package/dist/telemetry/handlers/telemetry-retention.handler.d.ts.map +1 -1
  3945. package/dist/telemetry/handlers/telemetry-retention.handler.js +43 -52
  3946. package/dist/telemetry/handlers/telemetry-retention.handler.js.map +1 -1
  3947. package/dist/telemetry/index.d.ts +49 -6
  3948. package/dist/telemetry/index.d.ts.map +1 -1
  3949. package/dist/telemetry/index.js +66 -3
  3950. package/dist/telemetry/index.js.map +1 -1
  3951. package/dist/telemetry/metrics/groups/database.metric-group.d.ts.map +1 -1
  3952. package/dist/telemetry/metrics/groups/database.metric-group.js +3 -0
  3953. package/dist/telemetry/metrics/groups/database.metric-group.js.map +1 -1
  3954. package/dist/telemetry/metrics/groups/host.metric-group.d.ts.map +1 -1
  3955. package/dist/telemetry/metrics/groups/host.metric-group.js +3 -0
  3956. package/dist/telemetry/metrics/groups/host.metric-group.js.map +1 -1
  3957. package/dist/telemetry/metrics/groups/nodes.metric-group.d.ts.map +1 -1
  3958. package/dist/telemetry/metrics/groups/nodes.metric-group.js +3 -0
  3959. package/dist/telemetry/metrics/groups/nodes.metric-group.js.map +1 -1
  3960. package/dist/telemetry/metrics/groups/pipeline.metric-group.d.ts.map +1 -1
  3961. package/dist/telemetry/metrics/groups/pipeline.metric-group.js +3 -0
  3962. package/dist/telemetry/metrics/groups/pipeline.metric-group.js.map +1 -1
  3963. package/dist/telemetry/metrics/groups/queue.metric-group.d.ts.map +1 -1
  3964. package/dist/telemetry/metrics/groups/queue.metric-group.js +3 -0
  3965. package/dist/telemetry/metrics/groups/queue.metric-group.js.map +1 -1
  3966. package/dist/telemetry/metrics/groups/uptime.metric-group.d.ts.map +1 -1
  3967. package/dist/telemetry/metrics/groups/uptime.metric-group.js +3 -0
  3968. package/dist/telemetry/metrics/groups/uptime.metric-group.js.map +1 -1
  3969. package/dist/telemetry/metrics/metric-catalog.d.ts +5 -4
  3970. package/dist/telemetry/metrics/metric-catalog.d.ts.map +1 -1
  3971. package/dist/telemetry/metrics/metric-catalog.helpers.d.ts +9 -1
  3972. package/dist/telemetry/metrics/metric-catalog.helpers.d.ts.map +1 -1
  3973. package/dist/telemetry/metrics/metric-catalog.helpers.js.map +1 -1
  3974. package/dist/telemetry/metrics/metric-catalog.js.map +1 -1
  3975. package/dist/telemetry/metrics/metric-group.d.ts +3 -1
  3976. package/dist/telemetry/metrics/metric-group.d.ts.map +1 -1
  3977. package/dist/telemetry/metrics/metric-group.js +4 -2
  3978. package/dist/telemetry/metrics/metric-group.js.map +1 -1
  3979. package/dist/telemetry/metrics/metric-group.registry.d.ts +10 -26
  3980. package/dist/telemetry/metrics/metric-group.registry.d.ts.map +1 -1
  3981. package/dist/telemetry/metrics/metric-group.registry.js +6 -3
  3982. package/dist/telemetry/metrics/metric-group.registry.js.map +1 -1
  3983. package/dist/telemetry/metrics/metric-presentation.d.ts +29 -0
  3984. package/dist/telemetry/metrics/metric-presentation.d.ts.map +1 -0
  3985. package/dist/telemetry/metrics/metric-presentation.js +127 -0
  3986. package/dist/telemetry/metrics/metric-presentation.js.map +1 -0
  3987. package/dist/telemetry/metrics/metric-sql.d.ts +3 -2
  3988. package/dist/telemetry/metrics/metric-sql.d.ts.map +1 -1
  3989. package/dist/telemetry/metrics/metric-sql.js +7 -4
  3990. package/dist/telemetry/metrics/metric-sql.js.map +1 -1
  3991. package/dist/telemetry/metrics/metric-unit.registry.d.ts +61 -0
  3992. package/dist/telemetry/metrics/metric-unit.registry.d.ts.map +1 -0
  3993. package/dist/telemetry/metrics/metric-unit.registry.js +91 -0
  3994. package/dist/telemetry/metrics/metric-unit.registry.js.map +1 -0
  3995. package/dist/telemetry/metrics/metric-values.d.ts +1 -1
  3996. package/dist/telemetry/metrics/metric-values.d.ts.map +1 -1
  3997. package/dist/telemetry/metrics/metric-values.js +1 -1
  3998. package/dist/telemetry/metrics/metric-values.js.map +1 -1
  3999. package/dist/telemetry/metrics/metric-verdict.d.ts +1 -1
  4000. package/dist/telemetry/metrics/metric-verdict.d.ts.map +1 -1
  4001. package/dist/telemetry/query/telemetry-availability.d.ts +3 -3
  4002. package/dist/telemetry/query/telemetry-availability.d.ts.map +1 -1
  4003. package/dist/telemetry/query/telemetry-availability.js +8 -8
  4004. package/dist/telemetry/query/telemetry-availability.js.map +1 -1
  4005. package/dist/telemetry/query/telemetry-query-facade.d.ts +128 -0
  4006. package/dist/telemetry/query/telemetry-query-facade.d.ts.map +1 -0
  4007. package/dist/telemetry/query/telemetry-query-facade.js +112 -0
  4008. package/dist/telemetry/query/telemetry-query-facade.js.map +1 -0
  4009. package/dist/telemetry/query/telemetry-query.errors.d.ts +2 -0
  4010. package/dist/telemetry/query/telemetry-query.errors.d.ts.map +1 -1
  4011. package/dist/telemetry/query/telemetry-query.errors.js +10 -0
  4012. package/dist/telemetry/query/telemetry-query.errors.js.map +1 -1
  4013. package/dist/telemetry/query/telemetry-query.service.d.ts +5 -5
  4014. package/dist/telemetry/query/telemetry-query.service.d.ts.map +1 -1
  4015. package/dist/telemetry/query/telemetry-query.service.js +13 -11
  4016. package/dist/telemetry/query/telemetry-query.service.js.map +1 -1
  4017. package/dist/telemetry/query/telemetry-schema.service.d.ts +4 -10
  4018. package/dist/telemetry/query/telemetry-schema.service.d.ts.map +1 -1
  4019. package/dist/telemetry/query/telemetry-schema.service.js +17 -66
  4020. package/dist/telemetry/query/telemetry-schema.service.js.map +1 -1
  4021. package/dist/telemetry/stack/dto/telemetry-stack.dto.d.ts +3 -3
  4022. package/dist/telemetry/stack/stack-agent.client.d.ts +2 -2
  4023. package/dist/telemetry/stack/telemetry-stack-deploy.handler.d.ts +1 -0
  4024. package/dist/telemetry/stack/telemetry-stack-deploy.handler.d.ts.map +1 -1
  4025. package/dist/telemetry/stack/telemetry-stack-deploy.handler.js +1 -0
  4026. package/dist/telemetry/stack/telemetry-stack-deploy.handler.js.map +1 -1
  4027. package/dist/telemetry/stores/dto/telemetry-store.dto.d.ts +73 -0
  4028. package/dist/telemetry/stores/dto/telemetry-store.dto.d.ts.map +1 -0
  4029. package/dist/telemetry/stores/dto/telemetry-store.dto.js +15 -0
  4030. package/dist/telemetry/stores/dto/telemetry-store.dto.js.map +1 -0
  4031. package/dist/telemetry/stores/greptime/greptime-host.d.ts.map +1 -0
  4032. package/dist/telemetry/stores/greptime/greptime-host.js.map +1 -0
  4033. package/dist/telemetry/{greptime → stores/greptime}/greptime.client.d.ts +30 -57
  4034. package/dist/telemetry/stores/greptime/greptime.client.d.ts.map +1 -0
  4035. package/dist/telemetry/{greptime → stores/greptime}/greptime.client.js +52 -23
  4036. package/dist/telemetry/stores/greptime/greptime.client.js.map +1 -0
  4037. package/dist/telemetry/stores/greptime/greptime.dialect.d.ts +8 -0
  4038. package/dist/telemetry/stores/greptime/greptime.dialect.d.ts.map +1 -0
  4039. package/dist/telemetry/stores/greptime/greptime.dialect.js +53 -0
  4040. package/dist/telemetry/stores/greptime/greptime.dialect.js.map +1 -0
  4041. package/dist/telemetry/stores/greptime/greptime.retention.d.ts +37 -0
  4042. package/dist/telemetry/stores/greptime/greptime.retention.d.ts.map +1 -0
  4043. package/dist/telemetry/stores/greptime/greptime.retention.js +128 -0
  4044. package/dist/telemetry/stores/greptime/greptime.retention.js.map +1 -0
  4045. package/dist/telemetry/stores/greptime/greptime.schema.d.ts +25 -0
  4046. package/dist/telemetry/stores/greptime/greptime.schema.d.ts.map +1 -0
  4047. package/dist/telemetry/stores/greptime/greptime.schema.js +80 -0
  4048. package/dist/telemetry/stores/greptime/greptime.schema.js.map +1 -0
  4049. package/dist/telemetry/stores/greptime/greptime.store.d.ts +8 -0
  4050. package/dist/telemetry/stores/greptime/greptime.store.d.ts.map +1 -0
  4051. package/dist/telemetry/stores/greptime/greptime.store.js +47 -0
  4052. package/dist/telemetry/stores/greptime/greptime.store.js.map +1 -0
  4053. package/dist/telemetry/stores/telemetry-store-settings.service.d.ts +44 -0
  4054. package/dist/telemetry/stores/telemetry-store-settings.service.d.ts.map +1 -0
  4055. package/dist/telemetry/stores/telemetry-store-settings.service.js +208 -0
  4056. package/dist/telemetry/stores/telemetry-store-settings.service.js.map +1 -0
  4057. package/dist/telemetry/stores/telemetry-store.controller.d.ts +14 -0
  4058. package/dist/telemetry/stores/telemetry-store.controller.d.ts.map +1 -0
  4059. package/dist/telemetry/stores/telemetry-store.controller.js +111 -0
  4060. package/dist/telemetry/stores/telemetry-store.controller.js.map +1 -0
  4061. package/dist/telemetry/stores/telemetry-store.d.ts +428 -0
  4062. package/dist/telemetry/stores/telemetry-store.d.ts.map +1 -0
  4063. package/dist/telemetry/{greptime/greptime.errors.d.ts → stores/telemetry-store.errors.d.ts} +31 -5
  4064. package/dist/telemetry/stores/telemetry-store.errors.d.ts.map +1 -0
  4065. package/dist/telemetry/{greptime/greptime.errors.js → stores/telemetry-store.errors.js} +41 -15
  4066. package/dist/telemetry/stores/telemetry-store.errors.js.map +1 -0
  4067. package/dist/telemetry/stores/telemetry-store.js +213 -0
  4068. package/dist/telemetry/stores/telemetry-store.js.map +1 -0
  4069. package/dist/telemetry/stores/telemetry-store.resolver.d.ts +81 -0
  4070. package/dist/telemetry/stores/telemetry-store.resolver.d.ts.map +1 -0
  4071. package/dist/telemetry/stores/telemetry-store.resolver.js +312 -0
  4072. package/dist/telemetry/stores/telemetry-store.resolver.js.map +1 -0
  4073. package/dist/telemetry/tasks/telemetry-retention.task.js +1 -1
  4074. package/dist/telemetry/tasks/telemetry-retention.task.js.map +1 -1
  4075. package/dist/telemetry/telemetry-settings.service.d.ts +5 -3
  4076. package/dist/telemetry/telemetry-settings.service.d.ts.map +1 -1
  4077. package/dist/telemetry/telemetry-settings.service.js +15 -9
  4078. package/dist/telemetry/telemetry-settings.service.js.map +1 -1
  4079. package/dist/telemetry/telemetry-status.service.d.ts +5 -17
  4080. package/dist/telemetry/telemetry-status.service.d.ts.map +1 -1
  4081. package/dist/telemetry/telemetry-status.service.js +31 -100
  4082. package/dist/telemetry/telemetry-status.service.js.map +1 -1
  4083. package/dist/telemetry/telemetry-support-bundle.section.d.ts +13 -13
  4084. package/dist/telemetry/telemetry-support-bundle.section.d.ts.map +1 -1
  4085. package/dist/telemetry/telemetry-support-bundle.section.js +10 -8
  4086. package/dist/telemetry/telemetry-support-bundle.section.js.map +1 -1
  4087. package/dist/telemetry/telemetry.module.d.ts +2 -2
  4088. package/dist/telemetry/telemetry.module.d.ts.map +1 -1
  4089. package/dist/telemetry/telemetry.module.js +42 -3
  4090. package/dist/telemetry/telemetry.module.js.map +1 -1
  4091. package/dist/telemetry/telemetry.options.d.ts +60 -0
  4092. package/dist/telemetry/telemetry.options.d.ts.map +1 -1
  4093. package/dist/telemetry/telemetry.options.js +57 -1
  4094. package/dist/telemetry/telemetry.options.js.map +1 -1
  4095. package/dist/telemetry/telemetry.permissions.d.ts +4 -16
  4096. package/dist/telemetry/telemetry.permissions.d.ts.map +1 -1
  4097. package/dist/telemetry/telemetry.permissions.js +1 -1
  4098. package/dist/telemetry/telemetry.permissions.js.map +1 -1
  4099. package/dist/telemetry/testing/conformance.d.ts +63 -4
  4100. package/dist/telemetry/testing/conformance.d.ts.map +1 -1
  4101. package/dist/telemetry/testing/conformance.js +154 -16
  4102. package/dist/telemetry/testing/conformance.js.map +1 -1
  4103. package/dist/telemetry/testing/index.d.ts +6 -2
  4104. package/dist/telemetry/testing/index.d.ts.map +1 -1
  4105. package/dist/telemetry/testing/index.js +10 -1
  4106. package/dist/telemetry/testing/index.js.map +1 -1
  4107. package/dist/telemetry/testing/metric-schema.fixture.d.ts +1 -1
  4108. package/dist/telemetry/testing/metric-schema.fixture.js +1 -1
  4109. package/dist/telemetry/testing/store-conformance.d.ts +129 -0
  4110. package/dist/telemetry/testing/store-conformance.d.ts.map +1 -0
  4111. package/dist/telemetry/testing/store-conformance.js +371 -0
  4112. package/dist/telemetry/testing/store-conformance.js.map +1 -0
  4113. package/dist/telemetry/testing/stub-ports.d.ts +11 -1
  4114. package/dist/telemetry/testing/stub-ports.d.ts.map +1 -1
  4115. package/dist/telemetry/testing/stub-ports.js +17 -9
  4116. package/dist/telemetry/testing/stub-ports.js.map +1 -1
  4117. package/dist/testing/conformance-suite.d.ts +43 -0
  4118. package/dist/testing/conformance-suite.d.ts.map +1 -1
  4119. package/dist/testing/conformance-suites.d.ts +2 -2
  4120. package/dist/testing/conformance-suites.d.ts.map +1 -1
  4121. package/dist/testing/conformance-suites.js.map +1 -1
  4122. package/dist/testing/index.d.ts +31 -3
  4123. package/dist/testing/index.d.ts.map +1 -1
  4124. package/dist/testing/index.js +4 -1
  4125. package/dist/testing/index.js.map +1 -1
  4126. package/dist/testing/run-platform-conformance.d.ts +41 -34
  4127. package/dist/testing/run-platform-conformance.d.ts.map +1 -1
  4128. package/dist/testing/run-platform-conformance.js +51 -2
  4129. package/dist/testing/run-platform-conformance.js.map +1 -1
  4130. package/dist/testing/suites/cron-enqueue-only.d.ts +7 -0
  4131. package/dist/testing/suites/cron-enqueue-only.d.ts.map +1 -1
  4132. package/dist/testing/suites/cron-enqueue-only.js +12 -5
  4133. package/dist/testing/suites/cron-enqueue-only.js.map +1 -1
  4134. package/dist/testing/suites/user-owned-data.d.ts +1 -1
  4135. package/dist/testing/test-api.d.ts +15 -0
  4136. package/dist/testing/test-api.d.ts.map +1 -0
  4137. package/dist/testing/test-api.js +29 -0
  4138. package/dist/testing/test-api.js.map +1 -0
  4139. package/dist/user-data/composed-schema.d.ts +28 -0
  4140. package/dist/user-data/composed-schema.d.ts.map +1 -0
  4141. package/dist/user-data/composed-schema.js +56 -0
  4142. package/dist/user-data/composed-schema.js.map +1 -0
  4143. package/dist/user-data/default-environment.d.ts +19 -0
  4144. package/dist/user-data/default-environment.d.ts.map +1 -0
  4145. package/dist/user-data/default-environment.js +47 -0
  4146. package/dist/user-data/default-environment.js.map +1 -0
  4147. package/dist/user-data/doctor/user-data-registries.doctor-check.d.ts +23 -0
  4148. package/dist/user-data/doctor/user-data-registries.doctor-check.d.ts.map +1 -0
  4149. package/dist/user-data/doctor/user-data-registries.doctor-check.js +102 -0
  4150. package/dist/user-data/doctor/user-data-registries.doctor-check.js.map +1 -0
  4151. package/dist/user-data/handlers/factory-reset.handler.d.ts +54 -0
  4152. package/dist/user-data/handlers/factory-reset.handler.d.ts.map +1 -0
  4153. package/dist/user-data/handlers/factory-reset.handler.js +351 -0
  4154. package/dist/user-data/handlers/factory-reset.handler.js.map +1 -0
  4155. package/dist/user-data/handlers/org-offboard.handler.d.ts +52 -0
  4156. package/dist/user-data/handlers/org-offboard.handler.d.ts.map +1 -0
  4157. package/dist/user-data/handlers/org-offboard.handler.js +263 -0
  4158. package/dist/user-data/handlers/org-offboard.handler.js.map +1 -0
  4159. package/dist/user-data/handlers/user-data-purge.handler.d.ts +69 -0
  4160. package/dist/user-data/handlers/user-data-purge.handler.d.ts.map +1 -0
  4161. package/dist/user-data/handlers/user-data-purge.handler.js +146 -0
  4162. package/dist/user-data/handlers/user-data-purge.handler.js.map +1 -0
  4163. package/dist/user-data/index.d.ts +30 -0
  4164. package/dist/user-data/index.d.ts.map +1 -0
  4165. package/dist/user-data/index.js +118 -0
  4166. package/dist/user-data/index.js.map +1 -0
  4167. package/dist/user-data/platform-user-data.d.ts +39 -0
  4168. package/dist/user-data/platform-user-data.d.ts.map +1 -0
  4169. package/dist/user-data/platform-user-data.js +167 -0
  4170. package/dist/user-data/platform-user-data.js.map +1 -0
  4171. package/dist/user-data/ports.d.ts +68 -0
  4172. package/dist/user-data/ports.d.ts.map +1 -0
  4173. package/dist/user-data/ports.js +43 -0
  4174. package/dist/user-data/ports.js.map +1 -0
  4175. package/dist/user-data/preconditions/recent-org-export.d.ts +29 -0
  4176. package/dist/user-data/preconditions/recent-org-export.d.ts.map +1 -0
  4177. package/dist/user-data/preconditions/recent-org-export.js +79 -0
  4178. package/dist/user-data/preconditions/recent-org-export.js.map +1 -0
  4179. package/dist/user-data/purge/purge-planner.d.ts +106 -0
  4180. package/dist/user-data/purge/purge-planner.d.ts.map +1 -0
  4181. package/dist/user-data/purge/purge-planner.js +202 -0
  4182. package/dist/user-data/purge/purge-planner.js.map +1 -0
  4183. package/dist/user-data/purge/user-purge.d.ts +209 -0
  4184. package/dist/user-data/purge/user-purge.d.ts.map +1 -0
  4185. package/dist/user-data/purge/user-purge.js +305 -0
  4186. package/dist/user-data/purge/user-purge.js.map +1 -0
  4187. package/dist/user-data/registry-checks.d.ts +44 -0
  4188. package/dist/user-data/registry-checks.d.ts.map +1 -0
  4189. package/dist/user-data/registry-checks.js +121 -0
  4190. package/dist/user-data/registry-checks.js.map +1 -0
  4191. package/dist/user-data/testing/conformance.d.ts +33 -0
  4192. package/dist/user-data/testing/conformance.d.ts.map +1 -0
  4193. package/dist/user-data/testing/conformance.js +80 -0
  4194. package/dist/user-data/testing/conformance.js.map +1 -0
  4195. package/dist/user-data/testing/index.d.ts +3 -0
  4196. package/dist/user-data/testing/index.d.ts.map +1 -0
  4197. package/dist/user-data/testing/index.js +13 -0
  4198. package/dist/user-data/testing/index.js.map +1 -0
  4199. package/dist/user-data/user-data-plan.service.d.ts +62 -0
  4200. package/dist/user-data/user-data-plan.service.d.ts.map +1 -0
  4201. package/dist/user-data/user-data-plan.service.js +84 -0
  4202. package/dist/user-data/user-data-plan.service.js.map +1 -0
  4203. package/dist/user-data/user-data.controller.d.ts +142 -0
  4204. package/dist/user-data/user-data.controller.d.ts.map +1 -0
  4205. package/dist/user-data/user-data.controller.js +302 -0
  4206. package/dist/user-data/user-data.controller.js.map +1 -0
  4207. package/dist/user-data/user-data.metrics.d.ts +57 -0
  4208. package/dist/user-data/user-data.metrics.d.ts.map +1 -0
  4209. package/dist/user-data/user-data.metrics.js +84 -0
  4210. package/dist/user-data/user-data.metrics.js.map +1 -0
  4211. package/dist/user-data/user-data.module.d.ts +38 -0
  4212. package/dist/user-data/user-data.module.d.ts.map +1 -0
  4213. package/dist/user-data/user-data.module.js +86 -0
  4214. package/dist/user-data/user-data.module.js.map +1 -0
  4215. package/dist/user-data/user-data.options.d.ts +108 -0
  4216. package/dist/user-data/user-data.options.d.ts.map +1 -0
  4217. package/dist/user-data/user-data.options.js +66 -0
  4218. package/dist/user-data/user-data.options.js.map +1 -0
  4219. package/dist/user-data/user-data.permissions.d.ts +29 -0
  4220. package/dist/user-data/user-data.permissions.d.ts.map +1 -0
  4221. package/dist/user-data/user-data.permissions.js +33 -0
  4222. package/dist/user-data/user-data.permissions.js.map +1 -0
  4223. package/dist/user-data/user-data.registries.d.ts +202 -0
  4224. package/dist/user-data/user-data.registries.d.ts.map +1 -0
  4225. package/dist/user-data/user-data.registries.js +425 -0
  4226. package/dist/user-data/user-data.registries.js.map +1 -0
  4227. package/dist/user-data/user-data.service.d.ts +132 -0
  4228. package/dist/user-data/user-data.service.d.ts.map +1 -0
  4229. package/dist/user-data/user-data.service.js +434 -0
  4230. package/dist/user-data/user-data.service.js.map +1 -0
  4231. package/dist/user-data/user-data.types.d.ts +299 -0
  4232. package/dist/user-data/user-data.types.d.ts.map +1 -0
  4233. package/dist/user-data/user-data.types.js +23 -0
  4234. package/dist/user-data/user-data.types.js.map +1 -0
  4235. package/dist/user-data/user-purge.runner.d.ts +132 -0
  4236. package/dist/user-data/user-purge.runner.d.ts.map +1 -0
  4237. package/dist/user-data/user-purge.runner.js +283 -0
  4238. package/dist/user-data/user-purge.runner.js.map +1 -0
  4239. package/dist/user-data/user-removal-hooks.d.ts +17 -0
  4240. package/dist/user-data/user-removal-hooks.d.ts.map +1 -0
  4241. package/dist/user-data/user-removal-hooks.js +27 -0
  4242. package/dist/user-data/user-removal-hooks.js.map +1 -0
  4243. package/package.json +210 -4
  4244. package/dist/telemetry/greptime/greptime-host.d.ts.map +0 -1
  4245. package/dist/telemetry/greptime/greptime-host.js.map +0 -1
  4246. package/dist/telemetry/greptime/greptime.client.d.ts.map +0 -1
  4247. package/dist/telemetry/greptime/greptime.client.js.map +0 -1
  4248. package/dist/telemetry/greptime/greptime.errors.d.ts.map +0 -1
  4249. package/dist/telemetry/greptime/greptime.errors.js.map +0 -1
  4250. /package/dist/telemetry/{greptime → stores/greptime}/greptime-host.d.ts +0 -0
  4251. /package/dist/telemetry/{greptime → stores/greptime}/greptime-host.js +0 -0
@@ -0,0 +1,1866 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var DatabaseBackupRunnerService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DatabaseBackupRunnerService = exports.systemBackupTimers = exports.DB_BACKUP_TIMERS = exports.systemDatabaseBackupEngine = exports.DB_BACKUP_ENGINE = exports.BACKUP_JOB_DEDUP_KEY = exports.BACKUP_JOB_TYPE = exports.ACTIVE_RUN_STATUSES = exports.ACTIVE_RUN_INDEX_NAME = exports.NODE_CLOCK_SKEW_WARN_MS = exports.BACKUP_HEARTBEAT_INTERVAL_MS = void 0;
17
+ exports.isActiveRunConflict = isActiveRunConflict;
18
+ const node_crypto_1 = require("node:crypto");
19
+ const node_crypto_2 = require("node:crypto");
20
+ const node_stream_1 = require("node:stream");
21
+ const promises_1 = require("node:stream/promises");
22
+ const common_1 = require("@nestjs/common");
23
+ const config_1 = require("@nestjs/config");
24
+ const index_1 = require("../jobs/index");
25
+ const index_2 = require("../jobs/index");
26
+ const db_backup_sweep_handler_1 = require("./handlers/db-backup-sweep.handler");
27
+ const index_3 = require("../jobs/index");
28
+ const index_4 = require("../core/index");
29
+ const db_backup_db_1 = require("./data/db-backup-db");
30
+ const options_1 = require("./options");
31
+ const ports_1 = require("./ports");
32
+ const index_5 = require("../settings/index");
33
+ const index_6 = require("../storage/index");
34
+ const index_7 = require("../storage/index");
35
+ const db_backup_storage_1 = require("./db-backup-storage");
36
+ const db_backup_constants_1 = require("./db-backup.constants");
37
+ const backup_target_1 = require("./backup-target");
38
+ const db_backup_events_1 = require("./db-backup-events");
39
+ const db_backup_errors_1 = require("./db-backup.errors");
40
+ const migration_state_util_1 = require("./migration-state.util");
41
+ const pg_dump_util_1 = require("./pg-dump.util");
42
+ const pg_restore_util_1 = require("./pg-restore.util");
43
+ const pg_version_util_1 = require("./pg-version.util");
44
+ // =============================================================================
45
+ // The streaming pg_dump engine (issue #281, epic #254)
46
+ // =============================================================================
47
+ //
48
+ // One backup = one `database_backup_runs` row + one `pg_dump` process whose
49
+ // stdout goes STRAIGHT INTO OBJECT STORAGE. This file is the only place either
50
+ // is created. Everything in it exists to hold five properties, and each of the
51
+ // five is a failure this template has to not have.
52
+ //
53
+ // -----------------------------------------------------------------------------
54
+ // 1. THE DUMP IS A QUEUE JOB, AND THE JOB'S LIFETIME IS THE DUMP'S LIFETIME
55
+ // (issue #351, epic #345)
56
+ // -----------------------------------------------------------------------------
57
+ //
58
+ // It did not used to be. Until #351 `startBackup` awaited an INSERT and then
59
+ // fired `void this.executeRun(...)`: the dump had no job type, appeared in
60
+ // neither `GET /api/admin/jobs` nor insights, occupied no worker slot, and
61
+ // could not run anywhere but the API process. `schema.prisma` gave three
62
+ // reasons for that, and #346/#347 removed all three:
63
+ //
64
+ // 1. "The 30-minute reaper would requeue a running dump" → answered by a
65
+ // per-type PROFILE. `db.backup.run` declares `maxRuntimeMs: 6h`, and the
66
+ // lease is DERIVED from it (`resolveJobLeaseMs`), so the reaper's
67
+ // deadline is longer than the ceiling by construction.
68
+ // 2. "The in-process worker never renews its lease" → answered by #347.
69
+ // `JobWorker` renews on a ticker for as long as `process()` runs.
70
+ // 3. "A retry budget would re-run a failed multi-gigabyte dump" → answered
71
+ // by `maxAttempts: 1` in that same profile. The correct retry for a
72
+ // backup is still the next scheduled one; the difference is that the
73
+ // QUEUE now knows that, and `JobStuckService`'s give-up phase enforces
74
+ // it rather than the absence of a queue enforcing it by accident.
75
+ //
76
+ // So there are now TWO entry points into this file, and the difference
77
+ // between them is exactly which of them owns a `jobs` row:
78
+ //
79
+ // `queueBackup` — the normal path (#283's endpoint, #282's cron). Writes a
80
+ // `jobs` row and a `pending` run row IN ONE TRANSACTION and
81
+ // returns; a worker claims the job and calls
82
+ // `runQueuedBackup`, which is where the dump actually
83
+ // happens, AWAITED.
84
+ // `startBackup` — the ONE remaining detached path: the `pre_restore` safety
85
+ // dump (`DatabaseRestoreService`). It takes a backup while
86
+ // a restore is mid-flight, so it must not depend on a
87
+ // worker slot being free, on `JOBS_WORKER_MODE`, or on this
88
+ // process still polling the queue seconds from now. It
89
+ // claims `running` directly, with no job.
90
+ //
91
+ // ⚠ THE DETACHED PROMISE (`startBackup` only) CARRIES A TERMINAL `.catch()`.
92
+ // Without one, an EXPECTED failure (the dump exits non-zero; the bucket
93
+ // refuses the write) becomes an unhandled promise rejection, and an unhandled
94
+ // rejection TERMINATES the Node process by default. A failed backup must not
95
+ // be able to take the API down with it. `runQueuedBackup` needs no such guard
96
+ // and deliberately has none: it has a caller — the worker — whose entire job
97
+ // is to turn a rejection into a settled row.
98
+ //
99
+ // ⚠ WHY `executeRun` RETURNS AN OUTCOME RATHER THAN THROWING. It records
100
+ // every failure it anticipates on the run row and returns; the decision to
101
+ // FAIL THE JOB belongs to `runQueuedBackup`, which rethrows the recorded
102
+ // error. Had `executeRun` simply kept swallowing, the queued path would
103
+ // report `succeeded` for a job whose run row said `failed` — a job row that
104
+ // lies, which is worse than no job row at all.
105
+ //
106
+ // -----------------------------------------------------------------------------
107
+ // 2. THE VERSION CHECK RUNS BEFORE A SINGLE BYTE IS DUMPED
108
+ // -----------------------------------------------------------------------------
109
+ //
110
+ // `pg_dump` refuses to dump a server newer than itself. Checked first (see
111
+ // `pg-version.util.ts`), that becomes a run whose `lastError` says "rebuild the
112
+ // image with postgresql<N>-client"; checked never, it becomes an opaque
113
+ // non-zero exit after a partial object has already been written.
114
+ //
115
+ // It runs INSIDE the detached body rather than before the claim, deliberately:
116
+ // the check opens a connection of its own, and a blocked deployment deserves a
117
+ // VISIBLE failed run in the admin list every night rather than an exception
118
+ // swallowed by a cron with no row to point at.
119
+ //
120
+ // -----------------------------------------------------------------------------
121
+ // 3. THE ARCHIVE IS NEVER MATERIALISED — ONE PASS, ONE COPY, NO HEAP
122
+ // -----------------------------------------------------------------------------
123
+ //
124
+ // dump.done.catch(err => meter.destroy(err));
125
+ // dump.stdout.pipe(meter);
126
+ // await Promise.all([provider.upload(key, meter, opts), dump.done]);
127
+ //
128
+ // The metering `Transform` hashes and counts each chunk AS IT PASSES and
129
+ // forwards it unchanged. There is no buffer, no temp file, no second read:
130
+ // checksum and byte count are produced by the same single pass the upload is
131
+ // already making. Buffering "just to hash it first" would put an entire
132
+ // production database in this process's heap — the memory profile this whole
133
+ // design exists to avoid, and one that fails on the deployment that needs the
134
+ // backup most.
135
+ //
136
+ // ⚠ `Promise.all` ON **BOTH** HALVES IS LOAD-BEARING, NOT BELT-AND-BRACES.
137
+ // The two failure modes are genuinely independent and each is invisible to the
138
+ // other side:
139
+ //
140
+ // - A DUMP THAT DIES MID-STREAM simply ENDS its stdout. The upload sees a
141
+ // clean EOF and reports a perfectly successful upload OF A TRUNCATED
142
+ // ARCHIVE. Only `dump.done`'s exit code distinguishes that from a complete
143
+ // dump — which is why `pg-dump.util.ts` calls it "the authority on
144
+ // success".
145
+ // - A DUMP CAN EXIT NON-ZERO AFTER ITS LAST BYTE LANDED (a failure during
146
+ // cleanup), and an upload can fail after the dump finished cleanly.
147
+ //
148
+ // So both are awaited, and either one rejecting fails the run. The two
149
+ // cross-teardowns beside them close the remaining leaks: a dead dump destroys
150
+ // the metering stream (or the upload would hang forever waiting on bytes that
151
+ // will never come), and a dead upload SIGKILLs the dump (or `pg_dump` would
152
+ // keep reading a database for an archive nobody is storing).
153
+ //
154
+ // -----------------------------------------------------------------------------
155
+ // 4. VERIFICATION READS THE STORED OBJECT BACK, NOT THE STREAM WE SENT
156
+ // -----------------------------------------------------------------------------
157
+ //
158
+ // Before a run is `completed`, the UPLOADED OBJECT is streamed back out of
159
+ // storage and through `pg_restore --list`; an empty table of contents fails the
160
+ // run. The checksum proves the bytes we SENT are the bytes we hashed. This
161
+ // proves the bytes that ARRIVED are a readable archive — which catches a
162
+ // truncated upload, a zero-byte object, and a dump that ran against the wrong
163
+ // (empty) database, none of which any exit code or byte count can see.
164
+ //
165
+ // The cost is one extra read of the object. That is the correct price for the
166
+ // property that makes the whole feature worth having: a backup marked
167
+ // `completed` in this table is a backup that has been proven restorable-shaped
168
+ // at least once.
169
+ //
170
+ // -----------------------------------------------------------------------------
171
+ // 5. FAILURE DELETES THE OBJECT FIRST, THEN MARKS THE ROW
172
+ // -----------------------------------------------------------------------------
173
+ //
174
+ // In that order, always. The row is the only index of what exists in the
175
+ // bucket: a run marked `failed` while its partial object is still there is an
176
+ // orphan nothing will ever look for, billed forever. Deleting first means the
177
+ // worst case is the opposite — an object already gone when the row says
178
+ // `running`, which #282's stale sweep resolves.
179
+ //
180
+ // The delete is BEST-EFFORT and never masks the original error. The reason the
181
+ // backup failed is what the operator needs; "and also the delete failed" is a
182
+ // log line, not a replacement diagnosis.
183
+ //
184
+ // THERE IS NO AUTOMATIC RETRY. Re-running a failed multi-gigabyte dump burns
185
+ // hours of I/O on a database that is probably already unwell; the retry for a
186
+ // backup is the next scheduled run. That is now `maxAttempts: 1` on the
187
+ // handler's profile rather than the absence of a queue — see
188
+ // `handlers/db-backup-run.handler.ts`.
189
+ // =============================================================================
190
+ /**
191
+ * How often the heartbeat writes `lastHeartbeatAt` and the live
192
+ * `bytesWritten`.
193
+ *
194
+ * ⚠ THIS IS PROGRESS REPORTING, NOT THE LIVENESS SIGNAL — that changed in
195
+ * #351 and the distinction matters when tuning it. While the dump was
196
+ * detached, this beat was the ONLY evidence a run was still alive, and #282's
197
+ * stale sweep was the only thing that could settle an abandoned one. The dump
198
+ * is now a queue job, and #347's LEASE RENEWAL is what says "the executor is
199
+ * still there": the worker renews on a ticker derived from the type's
200
+ * `maxRuntimeMs`, and `JobStuckService` reaps a lease that stops being
201
+ * renewed. What this beat still owns — and nothing else does — is
202
+ * `bytesWritten`, the number the admin UI's progress bar reads.
203
+ *
204
+ * TWENTY SECONDS, and the number is still bounded on both sides by things
205
+ * that already exist. `databaseBackup.runStaleMinutes` starts at 120 and its
206
+ * minimum is 1, so the interval must stay comfortably under a minute: the
207
+ * stale sweep remains the backstop for the `pre_restore` path, which has no
208
+ * job and therefore no lease. At the other end each beat is one indexed
209
+ * UPDATE by primary key, so a tighter interval would be affordable but
210
+ * pointless: the progress bar it feeds is read by a human.
211
+ *
212
+ * A CONSTANT, not an environment variable. Nothing an operator could set here
213
+ * would be a better answer than "well inside the smallest stale window", and a
214
+ * knob whose only wrong settings are silent (too slow → false stale sweeps)
215
+ * is a knob worth not having.
216
+ *
217
+ * @stability experimental
218
+ */
219
+ exports.BACKUP_HEARTBEAT_INTERVAL_MS = 20_000;
220
+ /**
221
+ * How many times the claim will re-attempt its INSERT when the run holding the
222
+ * active slot settles out from under the re-read.
223
+ *
224
+ * BOUNDED, for the reason `ENQUEUE_MAX_ATTEMPTS` is (see `jobs.service.ts`):
225
+ * an unbounded loop is correct in theory and a spin in practice. Three covers
226
+ * the real race — a run finishing inside the few milliseconds between the
227
+ * failed insert and the lookup — and turns a pathological one into an honest
228
+ * "already running" rather than a hang.
229
+ */
230
+ const CLAIM_MAX_ATTEMPTS = 3;
231
+ /**
232
+ * The name of the partial unique index that enforces one active run.
233
+ *
234
+ * Declared in
235
+ * `prisma/migrations/20260907120000_add_database_backup_runs/migration.sql`;
236
+ * repeated here because a P2002 has to be attributed to *this* constraint and
237
+ * not to some other unique constraint a fork may add to the table.
238
+ */
239
+ /**
240
+ * How far a worker node's reported finish time may be from this server's clock
241
+ * before the completing write logs a warning.
242
+ *
243
+ * FIVE MINUTES, and it is a WARNING AND NOTHING ELSE — never a refusal. A
244
+ * skewed clock does not make an archive less valid, and refusing a verified
245
+ * multi-gigabyte backup over NTP would be the wrong trade by a wide margin.
246
+ * The reason it is worth a line in the log at all is that the node's lease
247
+ * renewal (#347) runs on the very same clock, so a node this far out is a node
248
+ * whose next long job may lose its claim for reasons nobody will connect to
249
+ * the time.
250
+ *
251
+ * @stability experimental
252
+ */
253
+ exports.NODE_CLOCK_SKEW_WARN_MS = 5 * 60 * 1000;
254
+ /**
255
+ * The raw-SQL partial unique index that admits ONE `pending`/`running` run
256
+ * (intentional schema drift: never `@@unique`, never a `findFirst` pre-check).
257
+ *
258
+ * @stability experimental
259
+ */
260
+ exports.ACTIVE_RUN_INDEX_NAME = 'database_backup_runs_active_uniq_idx';
261
+ /** The physical column and the Prisma field the index is built over. */
262
+ const ACTIVE_RUN_COLUMN_NAME = 'status';
263
+ /**
264
+ * The statuses the index's predicate covers — "an active run".
265
+ *
266
+ * @stability experimental
267
+ */
268
+ exports.ACTIVE_RUN_STATUSES = ['pending', 'running'];
269
+ /**
270
+ * The `Job.type` a queued dump runs under (issue #351, epic #345).
271
+ *
272
+ * DECLARED HERE RATHER THAN IN THE HANDLER, and the direction is the reason:
273
+ * this file ENQUEUES the job and the handler EXECUTES it, so the handler can
274
+ * import the runner but the runner must never import the handler (that would
275
+ * be a cycle, and a module-evaluation-order one at that). The single
276
+ * definition therefore lives on the enqueueing side, and
277
+ * `handlers/db-backup-run.handler.ts` imports it for its `type`.
278
+ *
279
+ * ⚠ PERMANENT once jobs of this type exist, exactly as
280
+ * `JobHandler.type` says: `jobs` rows outlive the handler that produced them,
281
+ * so renaming this string orphans every historical row and every job already
282
+ * queued under the old name.
283
+ *
284
+ * @stability experimental
285
+ */
286
+ exports.BACKUP_JOB_TYPE = 'db.backup.run';
287
+ /**
288
+ * The one dedup key EVERY backup enqueue uses.
289
+ *
290
+ * CONSTANT, and that is the entire single-active-backup guard at the queue
291
+ * layer. A backup has no subject — there is one database and one archive per
292
+ * run — so `buildDedupKey` folds the null subject pair away and every caller
293
+ * lands on the same string. `jobs_active_dedup_uniq_idx` then makes a second
294
+ * enqueue while one is `pending`/`running` a P2002, which is exactly what
295
+ * BOTH callers want: the scheduler stands down, and #283's endpoint reports
296
+ * "already running" with the winner's run id.
297
+ *
298
+ * Derived through `buildDedupKey` rather than written out as a literal,
299
+ * because the index enforces uniqueness over whatever string the enqueue path
300
+ * puts in the column — and a literal here that drifted from the builder would
301
+ * silently stop colliding with the rows it is supposed to collide with.
302
+ *
303
+ * @stability experimental
304
+ */
305
+ exports.BACKUP_JOB_DEDUP_KEY = (0, index_2.buildDedupKey)(exports.BACKUP_JOB_TYPE, null, null);
306
+ /**
307
+ * DI token for {@link DatabaseBackupEngine}.
308
+ *
309
+ * OPTIONAL, and DELIBERATELY NOT PROVIDED in `DbBackupModule` — exactly like
310
+ * `JOB_CLOCK`. The application always gets {@link systemDatabaseBackupEngine};
311
+ * only a test that constructs this service directly can substitute one, so a
312
+ * fork cannot ship a stubbed dump engine by accident.
313
+ *
314
+ * @stability experimental
315
+ */
316
+ exports.DB_BACKUP_ENGINE = Symbol('DB_BACKUP_ENGINE');
317
+ /**
318
+ * The real engine: real binaries, real database.
319
+ *
320
+ * @stability experimental
321
+ */
322
+ exports.systemDatabaseBackupEngine = {
323
+ startDump: ({ compressionLevel, timeoutMs }) => (0, pg_dump_util_1.spawnPgDump)({ compressionLevel, timeoutMs }),
324
+ readTocEntryCount: (source) => (0, pg_restore_util_1.readTocEntryCount)({ source }),
325
+ checkClientVersion: () => (0, pg_version_util_1.checkPgClientVersion)({
326
+ // The `pg` seam rather than a Prisma query, so the check still answers
327
+ // while the application database is mid-swap during a Phase 7 restore.
328
+ readServerVersionNum: () => (0, pg_version_util_1.readServerVersionNumWithPgClient)(),
329
+ }),
330
+ };
331
+ /**
332
+ * DI token for {@link BackupTimers}. Optional and unprovided, as {@link DB_BACKUP_ENGINE} is.
333
+ *
334
+ * @stability experimental
335
+ */
336
+ exports.DB_BACKUP_TIMERS = Symbol('DB_BACKUP_TIMERS');
337
+ /**
338
+ * The real timers, with the interval UNREF'D.
339
+ *
340
+ * A refed 20-second interval would hold a shutting-down process open, turning
341
+ * a graceful deploy into an orchestrator kill for as long as a dump lasts.
342
+ * Unref'd, the heartbeat stops mattering the moment nothing else is keeping
343
+ * the process alive — which is correct, because at that point there is no dump
344
+ * left to report progress for either. (The `typeof` guard is for fake-timer
345
+ * configurations whose handle is a bare number.)
346
+ *
347
+ * @stability experimental
348
+ */
349
+ exports.systemBackupTimers = {
350
+ setInterval: (handler, ms) => {
351
+ const timer = setInterval(handler, ms);
352
+ if (typeof timer.unref === 'function') {
353
+ timer.unref();
354
+ }
355
+ return timer;
356
+ },
357
+ clearInterval: (handle) => clearInterval(handle),
358
+ };
359
+ /**
360
+ * Whether `error` is a unique-constraint violation on the SINGLE-ACTIVE-RUN
361
+ * index specifically — as opposed to any other P2002 this table (or a fork's
362
+ * additions to it) might raise.
363
+ *
364
+ * THIS DISCRIMINATION IS LOAD-BEARING, for the same reason
365
+ * `isActiveDedupConflict` gives in `jobs.service.ts`: treating every P2002 as
366
+ * "already running" would report a genuine constraint bug as an ordinary busy
367
+ * signal, and that is the exact class of error that must stay loud. Anything
368
+ * this function does not positively recognise propagates untouched.
369
+ *
370
+ * Two metadata shapes are inspected because Prisma reports the violation
371
+ * differently depending on how the client is talking to Postgres — the driver
372
+ * adapter (`@prisma/adapter-pg`, which `PrismaService` uses) puts it under
373
+ * `meta.driverAdapterError.cause`, the classic engine under `meta.target`. Both
374
+ * are checked so that switching adapters degrades to "the P2002 propagates",
375
+ * never to "an unrelated conflict is silently swallowed".
376
+ *
377
+ * @stability experimental
378
+ */
379
+ function isActiveRunConflict(error) {
380
+ if (!(error instanceof db_backup_db_1.PrismaClientKnownRequestError) || error.code !== 'P2002') {
381
+ return false;
382
+ }
383
+ const names = new Set([exports.ACTIVE_RUN_INDEX_NAME, ACTIVE_RUN_COLUMN_NAME]);
384
+ const meta = (error.meta ?? {});
385
+ // Shape 1: driver adapter.
386
+ const adapterError = meta.driverAdapterError;
387
+ const cause = adapterError?.cause;
388
+ if (cause) {
389
+ const constraint = cause.constraint;
390
+ if (Array.isArray(constraint?.fields) &&
391
+ constraint.fields.some((field) => names.has(String(field)))) {
392
+ return true;
393
+ }
394
+ if (typeof constraint?.index === 'string' && constraint.index === exports.ACTIVE_RUN_INDEX_NAME) {
395
+ return true;
396
+ }
397
+ if (typeof cause.originalMessage === 'string' &&
398
+ cause.originalMessage.includes(exports.ACTIVE_RUN_INDEX_NAME)) {
399
+ return true;
400
+ }
401
+ }
402
+ // Shape 2: classic query engine.
403
+ const target = meta.target;
404
+ if (typeof target === 'string') {
405
+ return names.has(target);
406
+ }
407
+ if (Array.isArray(target)) {
408
+ return target.some((entry) => names.has(String(entry)));
409
+ }
410
+ return false;
411
+ }
412
+ /** Anything thrown, as an `Error`. JavaScript lets you throw a string. */
413
+ function toError(value) {
414
+ return value instanceof Error ? value : new Error(String(value));
415
+ }
416
+ /**
417
+ * The trigger and actor a `db.backup.run` job carries, DEFENSIVELY.
418
+ *
419
+ * `Job.payload` is opaque JSONB written by an earlier process — possibly an
420
+ * earlier BUILD of this application, possibly by hand — so it is parsed, not
421
+ * cast. The fallback is `manual` with no actor rather than a throw: this is
422
+ * only reached when a job has no run row at all (see `resolveRunForJob`), and
423
+ * refusing to take a backup because its provenance is unreadable would trade
424
+ * a missing audit field for a missing backup.
425
+ */
426
+ function readBackupJobPayload(job) {
427
+ const payload = (job.payload ?? {});
428
+ const trigger = payload.trigger === 'scheduled' || payload.trigger === 'pre_restore'
429
+ ? payload.trigger
430
+ : 'manual';
431
+ return {
432
+ trigger,
433
+ createdById: typeof payload.createdById === 'string' ? payload.createdById : null,
434
+ };
435
+ }
436
+ /**
437
+ * The backup engine: the ONE writer of `database_backup_runs`. Claims a run (the partial unique index arbitrates), streams `pg_dump` into object storage without buffering, verifies the archive, prunes by retention and records the outcome. Drive it through `queueBackup` (the queue) or `startBackup`.
438
+ *
439
+ * @stability experimental
440
+ */
441
+ let DatabaseBackupRunnerService = DatabaseBackupRunnerService_1 = class DatabaseBackupRunnerService {
442
+ prisma;
443
+ settings;
444
+ notifications;
445
+ config;
446
+ jobs;
447
+ metrics;
448
+ events;
449
+ logger = new common_1.Logger(DatabaseBackupRunnerService_1.name);
450
+ engine;
451
+ timers;
452
+ /** See {@link ActiveRunHandle}: process-local, never shared, never persisted. */
453
+ active = new Map();
454
+ constructor(prisma, settings, storage,
455
+ // #373 (epic #372). The token above moves the archive and names its kind
456
+ // (`storage.kind`, PP-14.1); this is read first only to REFRESH the
457
+ // settings snapshot the default provider answers `kind` from, so the pair
458
+ // on a backup row (bucket, provider) still describes one fresh
459
+ // configuration. A backup row that named the wrong provider is a row a
460
+ // restore cannot act on — see `db-backup-storage.ts`'s header.
461
+ storageConfig, notifications, config,
462
+ // #351 (epic #345). REQUIRED, like the two above it and for the same kind
463
+ // of reason: a runner that could be constructed without the queue is a
464
+ // runner a fork can wire so that `queueBackup` has nothing to enqueue
465
+ // into, and the failure would be "backups silently stop happening" — the
466
+ // one failure mode this subsystem must not have.
467
+ jobs, engine, timers, metrics = ports_1.NOOP_DB_BACKUP_METRICS, options, target, mirrors, events) {
468
+ this.prisma = prisma;
469
+ this.settings = settings;
470
+ this.notifications = notifications;
471
+ this.config = config;
472
+ this.jobs = jobs;
473
+ this.metrics = metrics;
474
+ this.events = events;
475
+ this.engine = engine ?? exports.systemDatabaseBackupEngine;
476
+ this.timers = timers ?? exports.systemBackupTimers;
477
+ this.metrics = metrics ?? ports_1.NOOP_DB_BACKUP_METRICS;
478
+ this.appVersion = options?.appVersion ?? options_1.defaultAppVersion;
479
+ this.target = target ?? new backup_target_1.StorageProviderBackupTarget(storage, storageConfig);
480
+ this.mirrors = mirrors ?? [];
481
+ }
482
+ /** Where every archive is written, read back and deleted. */
483
+ target;
484
+ /** Where copies are written after the primary succeeded. */
485
+ mirrors;
486
+ /**
487
+ * Whether a worker node can take this deployment's backups: its presigned PUT
488
+ * writes through the storage provider, so only the default target qualifies.
489
+ * `DatabaseBackupRunHandler.nodeOffloadEnabled` withholds the type otherwise.
490
+ */
491
+ supportsNodeOffload() {
492
+ return (0, backup_target_1.isStorageBackedTarget)(this.target);
493
+ }
494
+ /** The application version recorded on a run (`DbBackupModuleOptions.appVersion`). */
495
+ appVersion;
496
+ /**
497
+ * The kind of the storage provider in force, for the rows and the rule that
498
+ * record or compare it: `STORAGE_PROVIDER`'s own `kind` (the configured
499
+ * `s3`/`r2`/`s3compatible` for the default provider, the app backend's id for
500
+ * a `StorageModule.forRoot({ provider })` binding).
501
+ *
502
+ * The settings read comes first, and only for the default provider's sake:
503
+ * `ResolvingStorageProvider.kind` is synchronous and answers from the last
504
+ * settings read, so awaiting one here keeps this exactly as fresh as the
505
+ * `activeProvider()` call it replaces.
506
+ */
507
+ async activeProviderKind() {
508
+ await this.target.refresh?.();
509
+ return this.target.id;
510
+ }
511
+ /**
512
+ * Validates a `databaseBackup.storageProvider` value against the provider
513
+ * this deployment actually has.
514
+ *
515
+ * Exposed on the service so #283's `PUT` config handler can call it without
516
+ * importing storage internals, and so there is exactly ONE rule shared by
517
+ * the write path and the run path. The rule itself is pure and lives in
518
+ * `db-backup-storage.ts`.
519
+ *
520
+ * ⚠ ASYNC SINCE #373 (epic #372), and unavoidably so: "the active provider"
521
+ * is a setting now, so answering the question means reading it. This is the
522
+ * ONE place that read happens for both call sites — the `PUT` config endpoint
523
+ * (`DatabaseBackupAdminService.updateConfig`) and the run paths below — which
524
+ * is what keeps the form and the runner from ever judging the same value
525
+ * against two different answers.
526
+ *
527
+ * @throws {@link DatabaseBackupStorageProviderError} → a 400.
528
+ */
529
+ async assertStorageProviderUsable(configured) {
530
+ (0, db_backup_storage_1.assertUsableStorageProvider)(configured, await this.activeProviderKind());
531
+ }
532
+ /**
533
+ * Queues a backup: writes the `jobs` row and its `pending` run row, and
534
+ * returns. A worker claims the job and `runQueuedBackup` takes the dump.
535
+ *
536
+ * THE NORMAL PATH — #283's `POST /api/admin/db-backup/runs` and #282's cron
537
+ * both come through here. Only the `pre_restore` dump still uses
538
+ * {@link startBackup}.
539
+ *
540
+ * ---------------------------------------------------------------------------
541
+ * ⚠ BOTH INSERTS ARE ONE TRANSACTION. THIS IS THE PART TO READ.
542
+ * ---------------------------------------------------------------------------
543
+ *
544
+ * The endpoint must keep answering with a real run id immediately (its 202
545
+ * shape and `GET /runs/{id}` polling are unchanged), so the run row is
546
+ * created at ENQUEUE time as `pending` and the handler flips it to `running`
547
+ * when a worker actually claims it. That is strictly more honest than the
548
+ * old behaviour, which reported `running` before anything ran. It also
549
+ * creates two rows that must agree, and there are exactly three ways for
550
+ * two rows written separately to disagree. All three are made
551
+ * UNREPRESENTABLE by putting both inserts in ONE COMMIT:
552
+ *
553
+ * 1. A CLAIMED JOB WITH NO RUN ROW. A worker can claim within
554
+ * milliseconds of the enqueue. Insert the job first and there is a real
555
+ * window in which the handler resolves its run and finds nothing.
556
+ * Inside one transaction the job row is invisible to every other
557
+ * session — the claim's `FOR UPDATE SKIP LOCKED` included — until the
558
+ * same commit that publishes the run row. The window has no duration
559
+ * because it has no state.
560
+ * 2. AN ORPHAN `pending` RUN ROW. Insert the run row first and a failed
561
+ * enqueue (or a process death between the two statements) leaves a
562
+ * `pending` row behind. That is not a cosmetic leak: the TIGHTENED
563
+ * `database_backup_runs_active_uniq_idx` admits exactly ONE active row
564
+ * across `pending` and `running` COMBINED, so a leaked row blocks every
565
+ * future backup — manual and scheduled — until somebody deletes it by
566
+ * hand. A rolled-back transaction leaves nothing at all.
567
+ * 3. A RUN ROW WHOSE `job_id` WAS FILLED IN AFTERWARDS. Insert-then-UPDATE
568
+ * reintroduces (1) for the length of the gap. The `jobId` is written
569
+ * BY THE INSERT, never by a second statement.
570
+ *
571
+ * REJECTED: two statements with compensating deletes ("insert the run,
572
+ * enqueue, delete the run if the enqueue throws"). The compensation is
573
+ * itself a write that can fail, and its failure mode is precisely (2) —
574
+ * the leak that blocks every future backup. A rollback the database
575
+ * performs cannot fail in that way.
576
+ *
577
+ * REJECTED: `JobsService.enqueue` inside the transaction. Its
578
+ * catch-the-P2002-and-re-read loop cannot run there at all — Postgres aborts
579
+ * a transaction at the first failed statement — which is why
580
+ * `enqueueWithin` exists and why the conflict is resolved out here, after
581
+ * the transaction has ended.
582
+ *
583
+ * ⚠ THE ORDER OF THE TWO INSERTS INSIDE THE TRANSACTION IS NOT LOAD-BEARING
584
+ * (that is the point of a transaction), but the job goes first anyway so
585
+ * that its id can be written onto the run row by the insert rather than by
586
+ * an update. See (3).
587
+ *
588
+ * @throws {@link DatabaseBackupAlreadyRunningError} when either guard refused —
589
+ * the queue's dedup index (a backup job is already in flight) or the run
590
+ * table's single-active index (a `pre_restore` dump, say) — carrying the id
591
+ * of the run that won where one can be identified.
592
+ * @throws {@link DatabaseBackupStorageProviderError} when the configured provider
593
+ * is not the active one. Raised BEFORE anything is written, so a
594
+ * misconfigured provider is a clean 400 at request time and not a job that
595
+ * fails an hour later.
596
+ */
597
+ async queueBackup(input) {
598
+ const policy = await this.settings.getDatabaseBackupPolicy();
599
+ // BEFORE the transaction, exactly as it was before the claim: there is
600
+ // nothing to record about a backup that was never allowed to start, and a
601
+ // `failed` row (or a failed job) per attempt would bury the real history
602
+ // under configuration noise.
603
+ await this.assertStorageProviderUsable(policy.storageProvider);
604
+ const bucket = this.target.location ?? this.target.id;
605
+ // Resolved once, OUTSIDE the retry loop and outside the transaction below:
606
+ // it is a settings read, and a transaction is the last place to put one.
607
+ // Both halves of the pair are taken here so every attempt writes the same
608
+ // provider and bucket.
609
+ const provider = await this.activeProviderKind();
610
+ for (let attempt = 1; attempt <= CLAIM_MAX_ATTEMPTS; attempt += 1) {
611
+ // Generated HERE, for the reason `claimRun` gives: the storage key
612
+ // embeds it. The timestamp the key is built from is the ENQUEUE time
613
+ // rather than the start time, which is only a naming detail — the uuid
614
+ // is what makes the key unique, and a key that named a start time would
615
+ // have to be rewritten when the worker claimed it.
616
+ const id = (0, node_crypto_2.randomUUID)();
617
+ const queuedAt = new Date();
618
+ try {
619
+ return await this.prisma.$transaction(async (tx) => {
620
+ const job = await this.jobs.enqueueWithin(tx, {
621
+ type: exports.BACKUP_JOB_TYPE,
622
+ // `backfill`, reused rather than extended — the same choice the
623
+ // broadcast fan-out made. A `backup` reason would be a
624
+ // registration plus a new stored value for a display string, and
625
+ // the thing it would say is already said
626
+ // precisely by `DatabaseBackupRun.trigger`
627
+ // (`manual`/`scheduled`/`pre_restore`).
628
+ reason: 'backfill',
629
+ // No subject, which is what makes the dedup key constant — see
630
+ // BACKUP_JOB_DEDUP_KEY. Dedup is deliberately left ON.
631
+ payload: {
632
+ trigger: input.trigger,
633
+ createdById: input.createdById ?? null,
634
+ },
635
+ });
636
+ const run = await tx.databaseBackupRun.create({
637
+ data: {
638
+ ...this.buildRunData(input, { id, bucket, provider, at: queuedAt }),
639
+ jobId: job.id,
640
+ // `pending`: nothing has started. `startedAt` and
641
+ // `lastHeartbeatAt` are deliberately left NULL — the sweep in
642
+ // `db-backup-schedule.task.ts` ages a pending row by `createdAt`
643
+ // precisely because a row that never started must not be able to
644
+ // claim it did.
645
+ status: 'pending',
646
+ },
647
+ });
648
+ return { run, job };
649
+ });
650
+ }
651
+ catch (error) {
652
+ const winner = await this.resolveQueueConflict(error);
653
+ if (winner !== 'retry')
654
+ throw winner;
655
+ // Whichever guard fired, the row that held the slot SETTLED between
656
+ // the failed insert and the lookup, so nothing is active any more and
657
+ // reporting "already running" would be false. Loop and insert again —
658
+ // with a fresh run id and key, because the old ones were never stored.
659
+ this.logger.debug(`The backup slot was released between a conflicting enqueue and the lookup ` +
660
+ `(attempt ${attempt}/${CLAIM_MAX_ATTEMPTS}); retrying.`);
661
+ }
662
+ }
663
+ // Every attempt collided and every lookup came back empty: something is
664
+ // churning backups faster than this loop can insert between them. An
665
+ // honest "not now" with no id beats a spin.
666
+ throw new db_backup_errors_1.DatabaseBackupAlreadyRunningError(null);
667
+ }
668
+ /**
669
+ * Classifies a failed {@link queueBackup} transaction.
670
+ *
671
+ * Returns the error to throw, or the literal `'retry'` when the conflict
672
+ * has already resolved itself and the caller should insert again.
673
+ *
674
+ * ⚠ IT RUNS AFTER THE TRANSACTION HAS ROLLED BACK, never inside it — see
675
+ * `JobsService.enqueueWithin` for why an aborted transaction can execute no
676
+ * further statement. Both discriminators are the EXISTING exported ones
677
+ * (`isActiveDedupConflict`, `isActiveRunConflict`), so anything neither
678
+ * positively recognises propagates untouched: a genuine constraint bug must
679
+ * stay loud rather than be reported as an ordinary busy signal.
680
+ */
681
+ async resolveQueueConflict(error) {
682
+ if ((0, index_3.isActiveDedupConflict)(error)) {
683
+ // The queue's guard fired: a `db.backup.run` job is already pending or
684
+ // running. Its run row was written in the SAME commit as the job, so if
685
+ // the job is there the run is there too — which is what lets a 409 carry
686
+ // a real run id rather than a bare "one is already running".
687
+ const active = await this.prisma.job.findFirst({
688
+ where: { dedupKey: exports.BACKUP_JOB_DEDUP_KEY, status: { in: ['pending', 'running'] } },
689
+ orderBy: { createdAt: 'asc' },
690
+ select: { id: true, backupRun: { select: { id: true } } },
691
+ });
692
+ if (active === null)
693
+ return 'retry';
694
+ // ⚠ `?? null`, NOT a throw. The link can legitimately be absent: an
695
+ // administrator deleting the run row (#283's `DELETE /runs/{id}`) leaves
696
+ // the job, and `job.history.purge` deleting the job sets `job_id` back
697
+ // to NULL on the run. "A backup is already queued, and here is no id"
698
+ // is still a true and useful 409; inventing an error because the audit
699
+ // link is missing would turn a survivable state into a 500.
700
+ return new db_backup_errors_1.DatabaseBackupAlreadyRunningError(active.backupRun?.id ?? null);
701
+ }
702
+ if (isActiveRunConflict(error)) {
703
+ // The run table's own guard fired. The commonest cause is the ONE path
704
+ // that still creates a run outside the queue — the `pre_restore` dump —
705
+ // and the next commonest is a `pending` row whose job was deleted from
706
+ // under it. Either way the correct answer is the same 409 the manual
707
+ // path has always given.
708
+ const activeRunId = await this.findActiveRunId();
709
+ return activeRunId === null
710
+ ? 'retry'
711
+ : new db_backup_errors_1.DatabaseBackupAlreadyRunningError(activeRunId);
712
+ }
713
+ return toError(error);
714
+ }
715
+ /**
716
+ * Takes a backup WITHOUT a job: claims the single active slot as `running`,
717
+ * then streams the dump into storage in the background.
718
+ *
719
+ * ⚠ ONE CALLER REMAINS, AND IT IS NOT A LEGACY ONE. `DatabaseRestoreService`
720
+ * takes the `pre_restore` safety dump through here, deliberately outside the
721
+ * queue: it runs in the middle of a restore, and making it wait for a worker
722
+ * slot would make the safety net depend on `JOBS_WORKER_MODE`, on the queue
723
+ * being drained, and on this process still polling seconds from now — three
724
+ * things that are least trustworthy at exactly the moment a database is
725
+ * being replaced. Everything else must use {@link queueBackup}.
726
+ *
727
+ * @returns the freshly claimed run, ALREADY `running` and with its
728
+ * server-chosen `storageKey` set. The dump has not finished — see property 1
729
+ * in this file's header for why it must not have.
730
+ *
731
+ * @throws {@link DatabaseBackupAlreadyRunningError} when the index refused the
732
+ * claim, carrying the id of the run that won.
733
+ * @throws {@link DatabaseBackupStorageProviderError} when the configured provider
734
+ * is not the active one.
735
+ */
736
+ async startBackup(input) {
737
+ const policy = await this.settings.getDatabaseBackupPolicy();
738
+ // BEFORE the claim, so a misconfigured provider produces a clean 400 and
739
+ // no row at all — there is nothing to record about a backup that was never
740
+ // allowed to start, and a `failed` row per attempt would bury the real
741
+ // history under configuration noise.
742
+ await this.assertStorageProviderUsable(policy.storageProvider);
743
+ const run = await this.claimRun(input);
744
+ // ⚠ DETACHED, WITH A TERMINAL `.catch()`. `executeRun` is written not to
745
+ // reject — every failure it anticipates is recorded on the row — so this
746
+ // handler is the guard for the ones it does not: a Prisma outage while
747
+ // writing the failure itself, a bug in this file. Without it such a
748
+ // rejection is unhandled, and an unhandled rejection terminates the
749
+ // process. `void` marks the promise as deliberately not awaited.
750
+ void this.executeRun(run, policy).catch((error) => {
751
+ this.logger.error(`Database backup run ${run.id} failed outside its own failure handling: ` +
752
+ `${toError(error).message}`);
753
+ });
754
+ return run;
755
+ }
756
+ /**
757
+ * Takes the dump a `db.backup.run` job was queued for, AWAITED.
758
+ *
759
+ * THE JOB'S LIFETIME IS THE DUMP'S LIFETIME — this method returns when
760
+ * `pg_dump` has finished, the archive has been uploaded, and the stored
761
+ * object has been read back and verified. That is the whole point of #351:
762
+ * a handler that returned early would buy a dashboard row and nothing else
763
+ * (no lease, no slot accounting, no timeout, no possibility of node
764
+ * execution). `handlers/db-backup-run.handler.ts` calls exactly this and
765
+ * does nothing else.
766
+ *
767
+ * ---------------------------------------------------------------------------
768
+ * IT IS AUTHORITATIVE ABOUT THE RUN ROW, AND IT IS IDEMPOTENT
769
+ * ---------------------------------------------------------------------------
770
+ *
771
+ * `job_id` is `@unique`, so "the run for this job" is a single lookup that
772
+ * CANNOT return two rows — the resolution below is not a heuristic. What it
773
+ * finds decides what happens:
774
+ *
775
+ * - `pending` (the ordinary case) → flipped to `running` with `startedAt`
776
+ * and a seeded heartbeat. Only now has anything actually started, which
777
+ * is why the row did not claim otherwise before.
778
+ * - `running` → adopted with a warning. Unreachable while the profile says
779
+ * `maxAttempts: 1` (the reaper's give-up phase fails such a job rather
780
+ * than requeueing it), but a fork that raises that budget makes it
781
+ * reachable, and stranding the row would be worse than re-dumping to a
782
+ * key that is overwritten anyway.
783
+ * - `completed` → returns without doing anything. The queue is
784
+ * at-least-once; re-running a job whose work is already durable must be
785
+ * a no-op, not a second dump.
786
+ * - `failed` / `stale` → throws. Something already gave up on this run
787
+ * (an operator, or the stale sweep), and it is no longer holding the
788
+ * active slot — so re-dumping could run alongside a backup started since.
789
+ * - NOTHING AT ALL → creates the row, from the job's payload. `queueBackup`
790
+ * makes this unreachable for jobs it queued (both rows land in one
791
+ * commit), so it covers the paths that are not `queueBackup`: a job
792
+ * enqueued by hand, or a run row an administrator deleted while its job
793
+ * was still queued. Failing the job there would be a worse answer than
794
+ * taking the backup that was asked for.
795
+ *
796
+ * @throws whatever the dump failed with, AFTER `executeRun` has recorded it
797
+ * on the run row. The worker turns that into `Job.lastError` and — with
798
+ * `maxAttempts: 1` — a terminal `failed`, never a retry.
799
+ */
800
+ async runQueuedBackup(job) {
801
+ // Read FRESH rather than carried in the payload: the job may have been
802
+ // queued hours ago (a busy worker, a paused queue), and the compression
803
+ // level, the stale window and the storage provider are all settings an
804
+ // administrator may have changed since. Same rule the payload comment
805
+ // states — carry identifiers, re-read state.
806
+ const policy = await this.settings.getDatabaseBackupPolicy();
807
+ // Re-asserted here as well as in `queueBackup`, and not redundantly: the
808
+ // provider can be reconfigured between the enqueue and the claim, and a
809
+ // dump written with the wrong provider is a backup nobody can find. It
810
+ // throws, which fails the job with a legible reason.
811
+ await this.assertStorageProviderUsable(policy.storageProvider);
812
+ const run = await this.resolveRunForJob(job);
813
+ // Already `completed` — see the idempotency note above.
814
+ if (run === null)
815
+ return;
816
+ const outcome = await this.executeRun(run, policy);
817
+ if (outcome.status === 'failed') {
818
+ // ⚠ RETHROWN, DELIBERATELY, EVEN THOUGH THE RUN ROW ALREADY SAYS
819
+ // `failed`. The two rows record different facts — the run says what the
820
+ // archive is, the job says what the executor did — and a job that
821
+ // reported `succeeded` for a dump that failed would be a row that LIES,
822
+ // which is strictly worse than the detached behaviour it replaced. It
823
+ // also makes `GET /api/admin/jobs` and insights tell the truth about
824
+ // backup failures, which is half of why this type exists.
825
+ throw outcome.error;
826
+ }
827
+ }
828
+ /**
829
+ * The run row this job owns, made ready to execute — or `null` when the work
830
+ * is already done. See {@link runQueuedBackup} for the full decision table.
831
+ */
832
+ async resolveRunForJob(job) {
833
+ // ONE lookup on a UNIQUE column. Not a `findFirst` with an ordering, which
834
+ // would be a way of coping with duplicates the schema makes impossible.
835
+ const existing = await this.prisma.databaseBackupRun.findUnique({
836
+ where: { jobId: job.id },
837
+ });
838
+ const startedAt = new Date();
839
+ if (existing !== null) {
840
+ if (existing.status === 'completed') {
841
+ this.logger.log(`Job ${job.id} (${exports.BACKUP_JOB_TYPE}) is for backup run ${existing.id}, which has ` +
842
+ 'already completed; nothing to do.');
843
+ return null;
844
+ }
845
+ if (existing.status !== 'pending' && existing.status !== 'running') {
846
+ throw new Error(`Backup run ${existing.id} is already "${existing.status}", so job ${job.id} will ` +
847
+ 'not re-take it: the run no longer holds the single active slot, and dumping now ' +
848
+ 'could run alongside a backup started since it was abandoned.');
849
+ }
850
+ if (existing.status === 'running') {
851
+ this.logger.warn(`Backup run ${existing.id} was already "running" when job ${job.id} claimed it; ` +
852
+ 'its previous executor did not settle it. Re-taking the dump to the same key.');
853
+ }
854
+ return this.prisma.databaseBackupRun.update({
855
+ where: { id: existing.id },
856
+ data: {
857
+ status: 'running',
858
+ // The FIRST start is the one worth keeping — see the `running`
859
+ // branch above, which is the only way this is ever already set.
860
+ startedAt: existing.startedAt ?? startedAt,
861
+ // Seeded so the stale sweep has a baseline from the first moment:
862
+ // a `running` run whose heartbeat is NULL is indistinguishable from
863
+ // one that never started.
864
+ lastHeartbeatAt: startedAt,
865
+ },
866
+ });
867
+ }
868
+ // No row. Create one — the run id is generated here because the storage
869
+ // key embeds it, exactly as in `claimRun` and `queueBackup`.
870
+ const payload = readBackupJobPayload(job);
871
+ this.logger.warn(`Job ${job.id} (${exports.BACKUP_JOB_TYPE}) has no backup run row; creating one from its ` +
872
+ 'payload. This is expected only for a job that was not queued by `queueBackup`.');
873
+ const id = (0, node_crypto_2.randomUUID)();
874
+ return this.prisma.databaseBackupRun.create({
875
+ data: {
876
+ ...this.buildRunData(payload, {
877
+ id,
878
+ bucket: this.target.location ?? this.target.id,
879
+ provider: await this.activeProviderKind(),
880
+ at: startedAt,
881
+ }),
882
+ jobId: job.id,
883
+ status: 'running',
884
+ startedAt,
885
+ lastHeartbeatAt: startedAt,
886
+ },
887
+ });
888
+ }
889
+ /**
890
+ * Stops a run THIS PROCESS is executing.
891
+ *
892
+ * Cancellation is not a second teardown mechanism: it destroys the metering
893
+ * stream with a {@link DatabaseBackupCancelledError}, which tears the upload
894
+ * down, which fails the `Promise.all`, which reaches the ORDINARY failure
895
+ * path — partial object deleted, row marked `failed`, heartbeat cleared. A
896
+ * bespoke "cancelled" cleanup would be a second chance to leave a
897
+ * half-written object in the bucket.
898
+ *
899
+ * Reports honestly when it holds no handle; see {@link CancelBackupResult}.
900
+ */
901
+ cancel(runId) {
902
+ const handle = this.active.get(runId);
903
+ if (handle === undefined) {
904
+ return { outcome: 'not_running_here', runId };
905
+ }
906
+ // Set BEFORE calling `abort`, because `abort` is a no-op in the window
907
+ // between the run being registered and the child existing. `executeRun`
908
+ // re-reads this flag right after the spawn so a cancel that landed in that
909
+ // window still kills the process it just started.
910
+ handle.cancelled = true;
911
+ handle.abort(new db_backup_errors_1.DatabaseBackupCancelledError(runId));
912
+ return { outcome: 'signalled', runId };
913
+ }
914
+ /**
915
+ * INSERTs the run, letting the partial unique index decide the race.
916
+ *
917
+ * There is deliberately no `findFirst({ where: { status: 'running' } })`
918
+ * anywhere in this path. That is a check-then-act race and it is racy
919
+ * exactly when it matters — a scheduled tick on one replica and an admin's
920
+ * click on another, in the same second. Only the database can make "is one
921
+ * already active" atomic with the insert that would violate it.
922
+ */
923
+ async claimRun(input) {
924
+ const bucket = this.target.location ?? this.target.id;
925
+ // Once, before the loop — see `queueBackup`: one settings read, and every
926
+ // attempt records the same pair.
927
+ const provider = await this.activeProviderKind();
928
+ for (let attempt = 1; attempt <= CLAIM_MAX_ATTEMPTS; attempt += 1) {
929
+ // The id is generated HERE rather than left to the column default,
930
+ // because the storage key contains it (see `buildBackupStorageKey`) and
931
+ // the key has to be on the row the insert creates — a second UPDATE to
932
+ // fill it in would leave a window in which a crashed process had claimed
933
+ // the active slot with no key to clean up.
934
+ const id = (0, node_crypto_2.randomUUID)();
935
+ const startedAt = new Date();
936
+ const data = {
937
+ ...this.buildRunData(input, { id, bucket, provider, at: startedAt }),
938
+ // Claimed directly as `running`, never as `pending`: on THIS path
939
+ // (the `pre_restore` dump) the claim and the start are one act, so a
940
+ // separate `pending` phase would be a state nothing ever observes and
941
+ // a second write to leave behind on a crash. `queueBackup` is the path
942
+ // that legitimately writes `pending`, because there the claim and the
943
+ // start are genuinely different moments — a worker sits between them.
944
+ status: 'running',
945
+ startedAt,
946
+ // Seeded at the claim so the stale sweep has a baseline from the first
947
+ // moment: a run whose heartbeat is NULL is indistinguishable from one
948
+ // that never started.
949
+ lastHeartbeatAt: startedAt,
950
+ };
951
+ try {
952
+ return await this.prisma.databaseBackupRun.create({ data });
953
+ }
954
+ catch (error) {
955
+ // Any conflict that is NOT this index's is somebody else's problem and
956
+ // must stay loud.
957
+ if (!isActiveRunConflict(error)) {
958
+ throw error;
959
+ }
960
+ const activeRunId = await this.findActiveRunId();
961
+ if (activeRunId !== null) {
962
+ throw new db_backup_errors_1.DatabaseBackupAlreadyRunningError(activeRunId);
963
+ }
964
+ // The winner SETTLED between the failed insert and this lookup, so it
965
+ // dropped out of the index's predicate and the slot is free again.
966
+ // Reporting "already running" now would be false. Loop and insert
967
+ // again — with a fresh id and key, because the old ones were never
968
+ // stored.
969
+ this.logger.debug(`The active backup slot was released between a conflicting insert and the ` +
970
+ `lookup (attempt ${attempt}/${CLAIM_MAX_ATTEMPTS}); retrying the claim.`);
971
+ }
972
+ }
973
+ // Every attempt collided and every lookup came back empty: something is
974
+ // churning runs faster than this loop can insert between them. An honest
975
+ // "not now" with no id beats a spin.
976
+ throw new db_backup_errors_1.DatabaseBackupAlreadyRunningError(null);
977
+ }
978
+ /**
979
+ * The columns every new run row carries, whichever path creates it.
980
+ *
981
+ * ONE BUILDER, THREE CALLERS (`claimRun`, `queueBackup`,
982
+ * `resolveRunForJob`), and the reason is the storage triple: provider, key
983
+ * and bucket are chosen by the SERVER and must be chosen the same way every
984
+ * time, or two paths produce archives that a restore looks for in different
985
+ * places. What it deliberately does NOT set is the lifecycle trio —
986
+ * `status`, `startedAt`, `lastHeartbeatAt` — because that is precisely where
987
+ * the three callers legitimately differ.
988
+ *
989
+ * ⚠ `provider` AND `bucket` BOTH ARRIVE IN `args`, and this method reads
990
+ * neither for itself. Both are live values since #373 (epic #372) — the
991
+ * bucket from `StorageProvider.getBucket()`, the provider from
992
+ * `StorageConfigService.activeProvider()` — and both must be resolved by the
993
+ * caller, which is `async` and can await, rather than here, which is
994
+ * synchronous because it is sometimes called inside a transaction callback.
995
+ * Passing them in also keeps the pair together: a row names one
996
+ * configuration's bucket and that same configuration's provider.
997
+ *
998
+ * ⚠ `Unchecked` INPUT, DELIBERATELY. `createdById` is a real relation
999
+ * (`createdBy`), and Prisma's *Checked* create input stops accepting the raw
1000
+ * scalar the moment a scalar FK is promoted to one — it wants
1001
+ * `createdBy: { connect: { id } }` instead, which cannot express "and also
1002
+ * null". The unchecked variant takes the column as written, which is what a
1003
+ * nullable audit FK wants.
1004
+ */
1005
+ buildRunData(input, args) {
1006
+ return {
1007
+ id: args.id,
1008
+ trigger: input.trigger,
1009
+ storageProvider: args.provider,
1010
+ storageKey: (0, db_backup_storage_1.buildBackupStorageKey)(args.at, args.id),
1011
+ bucket: args.bucket,
1012
+ format: db_backup_storage_1.BACKUP_ARCHIVE_FORMAT,
1013
+ createdById: input.createdById ?? null,
1014
+ };
1015
+ }
1016
+ /** The id of whichever run currently occupies the active slot, or `null`. */
1017
+ async findActiveRunId() {
1018
+ const row = await this.prisma.databaseBackupRun.findFirst({
1019
+ where: { status: { in: [...exports.ACTIVE_RUN_STATUSES] } },
1020
+ orderBy: { createdAt: 'desc' },
1021
+ select: { id: true },
1022
+ });
1023
+ return row?.id ?? null;
1024
+ }
1025
+ /**
1026
+ * The dump itself. NEVER REJECTS for a failure it anticipates — it records
1027
+ * the failure on the run and REPORTS it as a {@link BackupRunOutcome},
1028
+ * because one of its two callers has nobody left to tell and the other must
1029
+ * fail a job.
1030
+ *
1031
+ * ⚠ THE RETURN VALUE IS NOT A SECOND RECORD OF THE FAILURE. The run row is
1032
+ * written first and is the durable fact; this is how the caller learns of
1033
+ * it. `startBackup` discards it (detached, nobody to tell);
1034
+ * `runQueuedBackup` rethrows `error` so the worker settles the job.
1035
+ */
1036
+ async executeRun(run, policy) {
1037
+ const { id: runId, storageKey } = run;
1038
+ const handle = { cancelled: false, abort: () => undefined };
1039
+ this.active.set(runId, handle);
1040
+ // A holder rather than a plain `let`, so the heartbeat closure and the
1041
+ // metering transform see the same counter without either capturing a stale
1042
+ // copy.
1043
+ const progress = { bytes: 0n };
1044
+ // Best-effort provenance, gathered once and written onto whichever terminal
1045
+ // update happens — so a FAILED run carries it too. Which server, which
1046
+ // build and (most importantly) which schema produced this archive is
1047
+ // exactly what someone reading a failure at 3am needs.
1048
+ const audit = {
1049
+ dbVersion: null,
1050
+ appVersion: this.appVersion(),
1051
+ migrationName: null,
1052
+ pgDumpVersion: null,
1053
+ };
1054
+ let heartbeat;
1055
+ try {
1056
+ const version = await this.engine.checkClientVersion();
1057
+ if (version.status === 'blocked') {
1058
+ throw new db_backup_errors_1.DatabaseBackupClientVersionError(version.message, version.clientMajor, version.serverMajor);
1059
+ }
1060
+ // `unknown` is WARN AND PROCEED by design — an unreadable version string
1061
+ // must never be the reason a backup did not happen. See
1062
+ // `pg-version.util.ts`'s header.
1063
+ if (version.status === 'unknown')
1064
+ this.logger.warn(version.message);
1065
+ if (version.warning !== undefined)
1066
+ this.logger.warn(version.warning);
1067
+ // WHICH CLIENT WROTE THIS ARCHIVE (#352). On this path it is the API
1068
+ // image's own `pg_dump`, which is not news — but the node path records
1069
+ // the same column from a binary nobody here can inspect, and a column
1070
+ // that is populated on one path and empty on the other is a column
1071
+ // nobody trusts. `version.client` is the raw `--version` banner, or
1072
+ // `null` when it could not be read, which never fails a backup.
1073
+ audit.pgDumpVersion = version.client ?? null;
1074
+ audit.dbVersion = await this.readServerVersion();
1075
+ audit.migrationName = await this.readLatestMigrationName();
1076
+ const dump = this.engine.startDump({
1077
+ compressionLevel: policy.compressionLevel,
1078
+ // The operator's own stale window IS the dump's budget. Letting the
1079
+ // dump outlive the window that declares it stale would produce a run
1080
+ // marked `stale` by #282's sweep while `pg_dump` was still writing to
1081
+ // the very key the sweep is about to consider abandoned.
1082
+ timeoutMs: policy.runStaleMinutes * 60_000,
1083
+ });
1084
+ const hash = (0, node_crypto_1.createHash)('sha256');
1085
+ const meter = new node_stream_1.Transform({
1086
+ transform(chunk, _encoding, callback) {
1087
+ hash.update(chunk);
1088
+ progress.bytes += BigInt(chunk.length);
1089
+ // The chunk is forwarded UNCHANGED and NOT retained: this transform
1090
+ // is a tap, not a buffer. That is the whole streaming contract.
1091
+ callback(null, chunk);
1092
+ },
1093
+ });
1094
+ // ⚠ NO-OP `error` LISTENERS, AND THEY ARE NOT DECORATION. A Node stream
1095
+ // that emits `error` with nothing listening throws the error as an
1096
+ // UNCAUGHT EXCEPTION and takes the process down. Both of these streams
1097
+ // are destroyed on purpose in this file's failure paths — the meter by a
1098
+ // dead dump or by `cancel`, stdout when the child is SIGKILLed — and at
1099
+ // that moment the upload may already have stopped reading, so there is
1100
+ // genuinely no other listener. The error itself is not lost: it is
1101
+ // already travelling to the `catch` below through `Promise.all`, which is
1102
+ // where the run's `lastError` comes from.
1103
+ meter.on('error', () => undefined);
1104
+ dump.stdout.on('error', () => undefined);
1105
+ handle.abort = (error) => {
1106
+ dump.kill('SIGKILL');
1107
+ meter.destroy(error);
1108
+ };
1109
+ // A cancel that arrived while the version check was still running found a
1110
+ // no-op `abort`. Re-read the flag now that there is something to kill.
1111
+ if (handle.cancelled) {
1112
+ handle.abort(new db_backup_errors_1.DatabaseBackupCancelledError(runId));
1113
+ }
1114
+ heartbeat = this.timers.setInterval(() => {
1115
+ void this.writeHeartbeat(runId, progress.bytes);
1116
+ }, exports.BACKUP_HEARTBEAT_INTERVAL_MS);
1117
+ // A DEAD DUMP MUST TEAR THE UPLOAD DOWN. Without this the provider sits
1118
+ // waiting on a stream that will never end or error, and the run hangs
1119
+ // until something else kills the process. `.catch()` returns a NEW
1120
+ // promise, so `dump.done` still rejects into the `Promise.all` below.
1121
+ dump.done.catch((error) => {
1122
+ meter.destroy(toError(error));
1123
+ });
1124
+ // The archive goes into the TARGET's streaming sink: `openWrite` returns a
1125
+ // writable the meter is piped into, and `done` settles once the target
1126
+ // holds every byte. Nothing here collects the bytes (property 2).
1127
+ const sink = this.target.openWrite(storageKey, {
1128
+ contentType: db_backup_storage_1.BACKUP_CONTENT_TYPE,
1129
+ // Deliberately no size: a streamed dump's size is unknown until the
1130
+ // last byte, which is exactly why it is streamed.
1131
+ // Provenance ON THE OBJECT as well as on the row: an operator staring
1132
+ // at a bucket with `aws s3api head-object` can find the run this file
1133
+ // came from without a database, which is the situation a restore is
1134
+ // most likely to be happening in.
1135
+ metadata: { runId, trigger: run.trigger },
1136
+ });
1137
+ const upload = sink.done;
1138
+ // `pipeline` rather than `pipe`: a failure on EITHER side destroys the
1139
+ // other, so a dead sink stops the meter and a destroyed meter (a dead
1140
+ // dump, a cancel) fails the sink. The error itself is not lost here; it
1141
+ // travels to the `catch` below through `Promise.all`.
1142
+ const piped = (0, promises_1.pipeline)(meter, sink.stream).catch(() => undefined);
1143
+ void piped;
1144
+ // ...AND A DEAD UPLOAD MUST TEAR THE DUMP DOWN, or `pg_dump` keeps
1145
+ // reading a whole database to produce an archive nobody is storing.
1146
+ // Same `.catch()` trick: `upload` itself still rejects below.
1147
+ upload.catch(() => {
1148
+ dump.kill('SIGKILL');
1149
+ });
1150
+ dump.stdout.pipe(meter);
1151
+ // BOTH HALVES. See property 3 in this file's header for why neither one
1152
+ // alone is evidence of success.
1153
+ await Promise.all([upload, dump.done]);
1154
+ // VERIFY WHAT ARRIVED, not what we sent.
1155
+ const stored = await this.target.openRead(storageKey);
1156
+ const tocEntries = await this.engine.readTocEntryCount(stored);
1157
+ if (tocEntries <= 0) {
1158
+ throw new db_backup_errors_1.DatabaseBackupVerificationError(storageKey, tocEntries);
1159
+ }
1160
+ // The archive is stored and proven: stop the progress heartbeat now, so it
1161
+ // cannot write to a row `completeRun` is about to settle (and so it does
1162
+ // not keep ticking through the mirror copies that follow).
1163
+ if (heartbeat !== undefined) {
1164
+ this.timers.clearInterval(heartbeat);
1165
+ heartbeat = undefined;
1166
+ }
1167
+ // ⚠ THE COMPLETING WRITE IS A SHARED METHOD, AND THAT IS THE #352 RULE.
1168
+ // `completeNodeRun` — the path where a WORKER NODE ran the dump — calls
1169
+ // the very same `completeRun` with the numbers the node reported, so a
1170
+ // run's stored state cannot depend on which executor produced it. Inline
1171
+ // this update again and the two paths start drifting on the day somebody
1172
+ // fixes a bug in one of them. See `example-checksum.handler.ts` for the
1173
+ // same shape one level up.
1174
+ await this.completeRun({
1175
+ runId,
1176
+ storageKey,
1177
+ // `bytesWritten` and `sizeBytes` converge here and only here: one was
1178
+ // live progress, the other is the final answer.
1179
+ bytes: progress.bytes,
1180
+ checksumSha256: hash.digest('hex'),
1181
+ tocEntries,
1182
+ executor: 'server',
1183
+ audit,
1184
+ at: new Date(),
1185
+ });
1186
+ return { status: 'completed' };
1187
+ }
1188
+ catch (error) {
1189
+ // ORDER MATTERS. Delete first — see property 5 in the header.
1190
+ const failure = toError(error);
1191
+ await this.deletePartialObject(storageKey);
1192
+ await this.markFailed(runId, failure, progress.bytes, audit);
1193
+ // ⚠ RETURNED, NOT RETHROWN, and the `finally` below still runs either
1194
+ // way. Rethrowing here would make the detached `pre_restore` path
1195
+ // reject, which is the unhandled-rejection hazard property 1 spends a
1196
+ // paragraph on; `runQueuedBackup` is where this becomes a throw, and it
1197
+ // is a throw with a caller.
1198
+ return { status: 'failed', error: failure };
1199
+ }
1200
+ finally {
1201
+ // ALWAYS. A heartbeat that outlives its run would keep writing
1202
+ // `lastHeartbeatAt` to a settled row forever, which is precisely the
1203
+ // signal #282's stale sweep uses to decide a run is still alive.
1204
+ if (heartbeat !== undefined)
1205
+ this.timers.clearInterval(heartbeat);
1206
+ this.active.delete(runId);
1207
+ }
1208
+ }
1209
+ // ===========================================================================
1210
+ // The completing write — ONE METHOD, TWO EXECUTORS (#352, epic #345)
1211
+ // ===========================================================================
1212
+ /**
1213
+ * Marks a run `completed`: the terminal write, plus the enqueue of the
1214
+ * retention prune that may only ever follow it.
1215
+ *
1216
+ * ⚠ BOTH EXECUTION PATHS COME THROUGH HERE, AND THAT IS THE POINT.
1217
+ * `executeRun` calls it with what THIS process streamed and hashed;
1218
+ * {@link completeNodeRun} calls it with what a worker node reported and this
1219
+ * server then verified. A run's stored state therefore cannot depend on
1220
+ * which executor produced it — the same "one write, two paths" rule
1221
+ * `example-checksum.handler.ts` states for a node-eligible handler, applied
1222
+ * to the row that a restore later reads.
1223
+ *
1224
+ * ⚠ IT ASSUMES VERIFICATION HAS ALREADY HAPPENED, and takes `tocEntries` as
1225
+ * the evidence rather than the trust: both callers download the STORED
1226
+ * object and count its table of contents before calling, and `verifiedAt` is
1227
+ * written here precisely because it is unreachable without having done so.
1228
+ * Do not add a `skipVerification` parameter; the day this method can be
1229
+ * called without a server-side read-back is the day `verified_at` stops
1230
+ * meaning anything.
1231
+ *
1232
+ * The prune's ENQUEUE lives here rather than at the two call sites for the
1233
+ * reason the long comment below gives four times over: every one of its
1234
+ * ordering constraints is a property of "a run just completed", not of who
1235
+ * ran it.
1236
+ */
1237
+ async completeRun(input) {
1238
+ const { runId, storageKey, bytes, executor, at } = input;
1239
+ const completed = await this.prisma.databaseBackupRun.update({
1240
+ where: { id: runId },
1241
+ data: {
1242
+ status: 'completed',
1243
+ finishedAt: at,
1244
+ lastHeartbeatAt: at,
1245
+ bytesWritten: bytes,
1246
+ sizeBytes: bytes,
1247
+ checksumSha256: input.checksumSha256,
1248
+ // ⚠ THE SERVER'S OWN READ-BACK IS WHAT SETS THIS, on both paths. A node
1249
+ // reporting `verified: true` would be the machine with the least reason
1250
+ // to be trusted attesting to the one fact this subsystem rests on; see
1251
+ // docs/specs/database-backup.md, "Read-back verification", and the
1252
+ // result contract's header.
1253
+ verifiedAt: at,
1254
+ lastError: null,
1255
+ ...input.audit,
1256
+ },
1257
+ });
1258
+ // #600. After the `completed` write, from the row it returned (a mocked
1259
+ // client may return nothing — the metrics service tolerates a null).
1260
+ this.metrics.backupSettled('completed', runDurationMs(completed?.startedAt, at), bytes);
1261
+ this.logger.log(`Database backup run ${runId} completed on the ${executor}: ${bytes} bytes at ` +
1262
+ `"${storageKey}" (${input.tocEntries} archive entries verified).`);
1263
+ // `db_backup.run.completed`: AFTER the `completed` write committed and
1264
+ // outside any transaction, so it reports a fact that is already durable. It
1265
+ // never throws (`DbBackupEvents`).
1266
+ this.events?.runCompleted({
1267
+ runId,
1268
+ status: 'completed',
1269
+ targetId: completed?.storageProvider ?? this.target.id,
1270
+ sizeBytes: (0, db_backup_events_1.eventBytes)(bytes),
1271
+ durationMs: Math.max(0, runDurationMs(completed?.startedAt, at) ?? 0),
1272
+ });
1273
+ // -------------------------------------------------------------------------
1274
+ // QUEUE THE PRUNE HERE, AND NOWHERE ELSE (#353, epic #345).
1275
+ // -------------------------------------------------------------------------
1276
+ //
1277
+ // This used to `await this.retention.prune()`. It now enqueues
1278
+ // `db.backup.sweep`, whose handler does the pruning on a worker slot — the
1279
+ // last piece of long-running work in this subsystem that was still running
1280
+ // detached from the queue. ALL THREE ORDERING CONSTRAINTS THAT GOVERNED THE
1281
+ // INLINE CALL STILL GOVERN THE ENQUEUE, and they are why this statement is
1282
+ // exactly here:
1283
+ //
1284
+ // AFTER VERIFICATION, because retention deletes older archives and this one
1285
+ // is only a replacement for them once it has been proven to be a readable
1286
+ // archive. Enqueueing before the `pg_restore --list` check would let a run
1287
+ // that is about to fail verification delete the last known-good backup on
1288
+ // its way out — the single worst thing this subsystem could do.
1289
+ //
1290
+ // AFTER THE `completed` UPDATE, not before it, and the reason is an
1291
+ // off-by-one that is easy to ship: the count rule keeps the newest N
1292
+ // `completed` runs, so a prune that ran while this row still said `running`
1293
+ // would not count it, and would evict one MORE old backup than retention
1294
+ // asked for — a deployment set to keep 7 would drift to 6. A job cannot be
1295
+ // claimed before the write it was enqueued after has committed, so the
1296
+ // constraint holds across the move.
1297
+ //
1298
+ // ONLY ON SUCCESS. There is no enqueue on any failure path. A failed backup
1299
+ // is exactly when the old archives matter most; deleting one because the
1300
+ // night's dump died would be the failure mode of a backup system that makes
1301
+ // things worse under stress.
1302
+ //
1303
+ // ⚠ THE FOURTH CONSTRAINT IS NOW STRUCTURAL RATHER THAN DEFENDED BY A
1304
+ // `try`. The inline call was wrapped because this method runs INSIDE
1305
+ // `executeRun`'s `try`, whose `catch` deletes the object and marks the run
1306
+ // `failed`: a `throw` escaping retention would have DELETED THE ARCHIVE THIS
1307
+ // RUN HAD JUST PROVEN GOOD. The prune now happens in a different job, on a
1308
+ // different worker slot, after this job has settled — there is no longer any
1309
+ // code path by which retention can reach the backup's failure handler. The
1310
+ // `try` stays anyway, because the ENQUEUE is still a database write inside
1311
+ // that same `try`, and storage housekeeping must not be able to fail a
1312
+ // verified backup for any reason at all.
1313
+ try {
1314
+ await (0, index_1.enqueueHousekeepingJob)({
1315
+ jobs: this.jobs,
1316
+ prisma: this.prisma,
1317
+ logger: this.logger,
1318
+ type: db_backup_sweep_handler_1.DB_BACKUP_SWEEP_TYPE,
1319
+ what: 'database backup sweep',
1320
+ });
1321
+ }
1322
+ catch (error) {
1323
+ this.logger.warn(`Could not queue retention after database backup run ${runId} completed (the ` +
1324
+ `backup itself is fine; storage will be reclaimed by the scheduler's next ` +
1325
+ `tick): ${toError(error).message}`);
1326
+ }
1327
+ // -------------------------------------------------------------------------
1328
+ // MIRRORS, LAST, AND ONLY NOW (PP-14.12).
1329
+ // -------------------------------------------------------------------------
1330
+ //
1331
+ // The primary's archive is written, read back and recorded `completed`: it
1332
+ // is restorable. Copying it elsewhere is a second line of defence, so it
1333
+ // runs AFTER that fact is durable and inside this same job (the lease keeps
1334
+ // renewing while the copy streams), and nothing it does can change the
1335
+ // run's outcome. See `mirrorArchive`.
1336
+ await this.mirrorArchive(runId, storageKey, completed?.trigger ?? 'manual');
1337
+ }
1338
+ /**
1339
+ * Copies a verified archive to every mirror target, one at a time, and
1340
+ * records each result. NEVER THROWS, and never changes the run.
1341
+ *
1342
+ * Each copy STREAMS the primary's bytes (`openRead`) into the mirror's sink
1343
+ * (`openWrite`): the dump is not run twice and the archive is not buffered.
1344
+ * The copy is then read back from the mirror and its SHA-256 compared with
1345
+ * the one computed over what the primary served, so a mirror holds a proven
1346
+ * copy or a recorded failure, never a silent half-file (a failed copy is
1347
+ * deleted from the mirror). The result of each is an `audit_events` row
1348
+ * (`db_backup.mirror.completed` / `.failed`) that the `backup.mirrors` Doctor
1349
+ * check reads, plus a log line.
1350
+ */
1351
+ async mirrorArchive(runId, storageKey, trigger) {
1352
+ for (const mirror of this.mirrors) {
1353
+ try {
1354
+ const result = await this.copyToMirror(mirror, runId, storageKey, trigger);
1355
+ await this.recordMirrorResult(runId, storageKey, mirror, result);
1356
+ }
1357
+ catch (error) {
1358
+ // `copyToMirror` and `recordMirrorResult` contain their own failures;
1359
+ // this is the net for anything unforeseen, so the next mirror still runs.
1360
+ this.logger.error(`Mirroring database backup run ${runId} to "${mirror.id}" hit an unexpected error ` +
1361
+ `(the run is unaffected): ${toError(error).message}`);
1362
+ }
1363
+ }
1364
+ }
1365
+ /** One mirror copy: stream, read back, compare. Resolves the outcome; never throws. */
1366
+ async copyToMirror(mirror, runId, storageKey, trigger) {
1367
+ const sourceHash = (0, node_crypto_1.createHash)('sha256');
1368
+ let bytes = 0n;
1369
+ try {
1370
+ const source = await this.target.openRead(storageKey);
1371
+ const tap = new node_stream_1.Transform({
1372
+ transform(chunk, _encoding, callback) {
1373
+ sourceHash.update(chunk);
1374
+ bytes += BigInt(chunk.length);
1375
+ callback(null, chunk);
1376
+ },
1377
+ });
1378
+ const sink = mirror.openWrite(storageKey, {
1379
+ contentType: db_backup_storage_1.BACKUP_CONTENT_TYPE,
1380
+ metadata: { runId, trigger },
1381
+ });
1382
+ const stored = sink.done.then(() => undefined);
1383
+ // Both halves, as for the primary: the stream finished AND the target says
1384
+ // every byte is stored. A rejection on either rejects the whole.
1385
+ await Promise.all([(0, promises_1.pipeline)(source, tap, sink.stream), stored]);
1386
+ // Read it BACK from the mirror and hash what it holds.
1387
+ const copyHash = (0, node_crypto_1.createHash)('sha256');
1388
+ let copyBytes = 0n;
1389
+ for await (const chunk of await mirror.openRead(storageKey)) {
1390
+ const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
1391
+ copyHash.update(buffer);
1392
+ copyBytes += BigInt(buffer.length);
1393
+ }
1394
+ if (copyBytes !== bytes || copyHash.digest('hex') !== sourceHash.digest('hex')) {
1395
+ throw new Error(`the copy read back from the mirror differs from the primary archive (${copyBytes} bytes, expected ${bytes})`);
1396
+ }
1397
+ return { targetId: mirror.id, status: 'ok', sizeBytes: (0, db_backup_events_1.eventBytes)(bytes) };
1398
+ }
1399
+ catch (error) {
1400
+ // A failed copy must not leave a plausible-looking partial archive behind.
1401
+ try {
1402
+ await mirror.delete(storageKey);
1403
+ }
1404
+ catch {
1405
+ // Best effort; the failure below is what the operator needs.
1406
+ }
1407
+ return { targetId: mirror.id, status: 'failed', sizeBytes: 0, error: toError(error).message };
1408
+ }
1409
+ }
1410
+ /** Records one mirror result: a log line and an audit row (best effort). */
1411
+ async recordMirrorResult(runId, storageKey, mirror, result) {
1412
+ if (result.status === 'ok') {
1413
+ this.logger.log(`Database backup run ${runId} was mirrored to "${mirror.id}" (${result.sizeBytes} bytes at "${storageKey}").`);
1414
+ }
1415
+ else {
1416
+ this.logger.warn(`Database backup run ${runId} could NOT be mirrored to "${mirror.id}" (the run itself is fine; ` +
1417
+ `the backup.mirrors Doctor check reports it): ${result.error ?? 'unknown error'}`);
1418
+ }
1419
+ try {
1420
+ await this.prisma.auditEvent.create({
1421
+ data: {
1422
+ actorUserId: null,
1423
+ action: result.status === 'ok' ? db_backup_constants_1.MIRROR_AUDIT_COMPLETED : db_backup_constants_1.MIRROR_AUDIT_FAILED,
1424
+ targetType: db_backup_constants_1.MIRROR_AUDIT_TARGET_TYPE,
1425
+ targetId: runId,
1426
+ meta: { ...result, storageKey },
1427
+ },
1428
+ });
1429
+ }
1430
+ catch (error) {
1431
+ this.logger.warn(`Could not record the mirror result of run ${runId} for "${mirror.id}": ${toError(error).message}`);
1432
+ }
1433
+ }
1434
+ // ===========================================================================
1435
+ // The node path (#352, epic #345)
1436
+ // ===========================================================================
1437
+ /**
1438
+ * Where a worker node must write this job's archive — the run's OWN key,
1439
+ * re-read by `jobId`.
1440
+ *
1441
+ * This is what `DatabaseBackupRunHandler.deriveOutputKey` delegates to, and
1442
+ * it exists because the data plane's default (`node-outputs/<jobId>/<uuid>`)
1443
+ * is exactly wrong for this artifact: `database_backup_runs.storage_key` is
1444
+ * what the retention sweep, the download endpoint and the whole restore path
1445
+ * look the archive up by, so a backup written anywhere else is a backup none
1446
+ * of them can find.
1447
+ *
1448
+ * ⚠ IDEMPOTENT BY CONSTRUCTION, NOT BY CONVENTION. A node asks for its
1449
+ * upload URL more than once as a matter of course (a timed-out transfer, a
1450
+ * lost response, a process restarted while holding the lease), and every one
1451
+ * of those calls must yield the SAME key or a retry silently writes a second
1452
+ * archive that no row points at. The key is read back from the run row, and
1453
+ * `DatabaseBackupRun.jobId` is `@unique`, so "there is at most one to find"
1454
+ * is enforced by the database rather than remembered by this method.
1455
+ *
1456
+ * ⚠ IT ALSO FLIPS `pending` → `running`, AND THAT IS DELIBERATE. This
1457
+ * request is the ONLY moment the server learns that a remote executor has
1458
+ * actually begun dumping: on the node path nothing else writes to the row
1459
+ * between the claim and the result. Leaving it `pending` would mean the
1460
+ * admin list reports "queued" for a dump that has been streaming for twenty
1461
+ * minutes, and `startedAt` — which the failure notification and every
1462
+ * duration render — would stay NULL. The flip is idempotent: a second call
1463
+ * finds `running` and only reads.
1464
+ *
1465
+ * @throws when there is no run row for this job, or when the run has already
1466
+ * settled. Both fail the upload-URL request (a 500 the node reports as a job
1467
+ * failure), which is the correct answer: there is nowhere legitimate for
1468
+ * those bytes to go, and signing a URL anyway would put an unreferenced
1469
+ * archive in the bucket.
1470
+ */
1471
+ async resolveNodeOutputKey(job) {
1472
+ const run = await this.prisma.databaseBackupRun.findUnique({
1473
+ where: { jobId: job.id },
1474
+ });
1475
+ if (run === null) {
1476
+ throw new Error(`Job ${job.id} (${exports.BACKUP_JOB_TYPE}) has no backup run row, so there is no key for a ` +
1477
+ 'node to write to. Refusing to sign an upload.');
1478
+ }
1479
+ if (run.status !== 'pending' && run.status !== 'running') {
1480
+ throw new Error(`Backup run ${run.id} is already "${run.status}", so job ${job.id} may not be handed ` +
1481
+ 'an upload URL: the run no longer holds the active slot and its archive is settled.');
1482
+ }
1483
+ if (run.status === 'pending') {
1484
+ const startedAt = new Date();
1485
+ await this.prisma.databaseBackupRun.update({
1486
+ where: { id: run.id },
1487
+ data: {
1488
+ status: 'running',
1489
+ startedAt,
1490
+ // Seeded so #282's stale sweep has a baseline from the first moment.
1491
+ // On this path it is never advanced again — a node has no database
1492
+ // access and cannot heartbeat — which is exactly why that sweep
1493
+ // consults the JOB's lease before giving up on a run; see
1494
+ // `DatabaseBackupScheduleTask.releaseStaleRuns`.
1495
+ lastHeartbeatAt: startedAt,
1496
+ },
1497
+ });
1498
+ this.logger.log(`Backup run ${run.id} is being taken by a worker node for job ${job.id}; it asked ` +
1499
+ `for its upload target, so the dump has started.`);
1500
+ }
1501
+ return run.storageKey;
1502
+ }
1503
+ /**
1504
+ * Writes down a backup a WORKER NODE took — after this server has read the
1505
+ * uploaded archive back and proven it is one.
1506
+ *
1507
+ * This is the whole of `DatabaseBackupRunHandler.persistNodeResult`, and the
1508
+ * order of its four steps is the design:
1509
+ *
1510
+ * 1. FIND THE RUN by `jobId` (one lookup on a UNIQUE column, which cannot
1511
+ * return two rows).
1512
+ * 2. REFUSE A KEY WE DID NOT HAND OUT. A node may only report the key
1513
+ * `resolveNodeOutputKey` gave it. Anything else is either a confused
1514
+ * executor or an attempt to point this deployment's restore path at
1515
+ * bytes of somebody else's choosing, and neither is something to
1516
+ * "correct" by trusting the node's spelling.
1517
+ * 3. VERIFY SERVER-SIDE, ALWAYS. `download(key)` → `readTocEntryCount` →
1518
+ * `> 0`. The node's `sha256` is recorded as THE NODE'S CLAIM about what
1519
+ * it streamed; `verifiedAt` is set only because THIS process read the
1520
+ * object back out of the bucket. docs/specs/database-backup.md,
1521
+ * "Read-back verification", already settled that verification means
1522
+ * "what the bucket holds", and the cost — one download per backup — is
1523
+ * the cost this path already pays on the server.
1524
+ * 4. WRITE THROUGH `completeRun`, the same method `executeRun` uses.
1525
+ *
1526
+ * ⚠ THIS IS NOT A SECOND DUMP ENGINE AND MUST NOT BECOME ONE. It does not
1527
+ * re-hash the archive, does not recompute the size, and does not "fix" a
1528
+ * digest it dislikes — `job-handler.interface.ts` states why (the moment the
1529
+ * server redoes the work, the node's answer is decorative and the reason for
1530
+ * the node plane is gone). The read-back is not a recomputation of the
1531
+ * node's result: it is the one check whose whole point is that it must not
1532
+ * be delegated.
1533
+ *
1534
+ * FAILURE GOES THROUGH THE ORDINARY FAILURE PATH — delete the partial
1535
+ * object, then mark the run `failed` — for the reason property 5 of this
1536
+ * file's header gives: a `failed` run must never leave an object behind, or
1537
+ * the bucket accumulates archives that nothing points at and retention has
1538
+ * no row to prune them by. The throw then reaches `NodesService.submitResult`,
1539
+ * which settles the JOB as failed. Both rows end up telling the truth.
1540
+ */
1541
+ async completeNodeRun(job, result) {
1542
+ const run = await this.prisma.databaseBackupRun.findUnique({
1543
+ where: { jobId: job.id },
1544
+ });
1545
+ if (run === null) {
1546
+ throw new Error(`Job ${job.id} (${exports.BACKUP_JOB_TYPE}) has no backup run row, so there is nothing to ` +
1547
+ 'record a node-taken backup against.');
1548
+ }
1549
+ // IDEMPOTENT RESUBMISSION. A node whose result reached us but whose
1550
+ // response was lost will send the identical result again; the work is done
1551
+ // and the row says so. Refusing here would fail a job whose archive is
1552
+ // sitting verified in the bucket.
1553
+ if (run.status === 'completed') {
1554
+ this.logger.log(`Backup run ${run.id} is already completed; job ${job.id}'s node result is a ` +
1555
+ 'resubmission and was ignored.');
1556
+ return;
1557
+ }
1558
+ if (run.status !== 'pending' && run.status !== 'running') {
1559
+ throw new Error(`Backup run ${run.id} is "${run.status}", so job ${job.id}'s node result will not be ` +
1560
+ 'recorded: the run was given up on and no longer holds the active backup slot.');
1561
+ }
1562
+ // ⚠ STEP 2. Compared against the row, never against a recomputed template:
1563
+ // the key was chosen once, at run creation, and the row is the only place
1564
+ // it lives.
1565
+ if (result.storageKey !== run.storageKey) {
1566
+ await this.failNodeRun(run, new Error(`The node reported storage key "${result.storageKey}" but backup run ${run.id} was ` +
1567
+ `assigned "${run.storageKey}". A node may only report the key the server handed ` +
1568
+ 'it; nothing was recorded.'));
1569
+ // Unreachable — `failNodeRun` always throws. Kept so the control flow is
1570
+ // readable without following the helper.
1571
+ return;
1572
+ }
1573
+ const bytes = BigInt(result.bytes);
1574
+ // ⚠ STEP 3. `readTocEntryCount` reads the STORED object, not the node's
1575
+ // report of it. An upload that was truncated by a dead transfer, an
1576
+ // archive `pg_dump` never finished writing, and a key the node uploaded
1577
+ // nothing to all fail here — which is the entire reason this step is not
1578
+ // the node's to perform.
1579
+ let tocEntries;
1580
+ try {
1581
+ const stored = await this.target.openRead(run.storageKey);
1582
+ tocEntries = await this.engine.readTocEntryCount(stored);
1583
+ }
1584
+ catch (error) {
1585
+ await this.failNodeRun(run, toError(error));
1586
+ return;
1587
+ }
1588
+ if (tocEntries <= 0) {
1589
+ await this.failNodeRun(run, new db_backup_errors_1.DatabaseBackupVerificationError(run.storageKey, tocEntries));
1590
+ return;
1591
+ }
1592
+ // The node's own view of the dump, kept in the LOG and out of the row.
1593
+ //
1594
+ // REJECTED: writing `result.startedAt`/`finishedAt` into `started_at` and
1595
+ // `finished_at`. Those two columns are this server's record of the run's
1596
+ // lifetime — the claim, and the settle that follows a verified read-back —
1597
+ // and a remote clock in them would make a run's duration depend on the
1598
+ // executor's NTP configuration, produce `finishedAt < startedAt` for a
1599
+ // node running a few seconds behind, and put a value in a column every
1600
+ // list, notification and duration render already reads on the server's
1601
+ // clock. The node's window is still worth having: it is the only measure
1602
+ // of how long the dump ITSELF took, because this process sees only the
1603
+ // claim and the settle.
1604
+ const at = new Date();
1605
+ const skewMs = Math.abs(at.getTime() - Date.parse(result.finishedAt));
1606
+ if (Number.isFinite(skewMs) && skewMs > exports.NODE_CLOCK_SKEW_WARN_MS) {
1607
+ this.logger.warn(`Node-reported finish time for backup run ${run.id} is ${Math.round(skewMs / 1000)}s ` +
1608
+ `away from this server's clock. The archive is fine — the row is written on this ` +
1609
+ `server's clock — but a node whose clock is far out is worth checking, because its ` +
1610
+ `lease arithmetic runs on the same one.`);
1611
+ }
1612
+ await this.completeRun({
1613
+ runId: run.id,
1614
+ storageKey: run.storageKey,
1615
+ bytes,
1616
+ checksumSha256: result.sha256,
1617
+ tocEntries,
1618
+ executor: 'node',
1619
+ audit: {
1620
+ // The three facts only the executor could know...
1621
+ dbVersion: result.dbVersion,
1622
+ migrationName: result.migrationName,
1623
+ pgDumpVersion: result.pgDumpVersion,
1624
+ // ...and the one only this process can: which application build wrote
1625
+ // the row. Deliberately NOT the node's CLI version — that is a
1626
+ // property of the executor, and `Job.executor` plus the node's own id
1627
+ // already record which machine ran it.
1628
+ appVersion: this.appVersion(),
1629
+ },
1630
+ at,
1631
+ });
1632
+ this.logger.log(`Backup run ${run.id} was taken by a worker node for job ${job.id}: the node reports it ` +
1633
+ `dumped from ${result.startedAt} to ${result.finishedAt} (${bytes} bytes, sha256 ` +
1634
+ `${result.sha256.slice(0, 12)}…).`);
1635
+ }
1636
+ /**
1637
+ * The node path's failure path: delete, mark, throw.
1638
+ *
1639
+ * ALWAYS THROWS, and the throw is the contract — `persistNodeResult` failing
1640
+ * is how `NodesService.submitResult` learns to settle the job as failed. A
1641
+ * variant that returned quietly would leave a `failed` run row under a
1642
+ * `succeeded` job, which is precisely the pair of rows that must never
1643
+ * disagree.
1644
+ *
1645
+ * The DELETE comes first, for the reason `executeRun`'s catch does the same:
1646
+ * a `failed` run that leaves its object behind is an archive nothing points
1647
+ * at and retention has no row to prune it by.
1648
+ */
1649
+ async failNodeRun(run, error) {
1650
+ await this.deletePartialObject(run.storageKey);
1651
+ await this.markFailed(run.id, error, run.bytesWritten, {
1652
+ dbVersion: run.dbVersion,
1653
+ appVersion: run.appVersion ?? this.appVersion(),
1654
+ migrationName: run.migrationName,
1655
+ pgDumpVersion: run.pgDumpVersion,
1656
+ });
1657
+ throw error;
1658
+ }
1659
+ /**
1660
+ * One heartbeat: liveness plus live progress, in one indexed UPDATE.
1661
+ *
1662
+ * SWALLOWS ITS OWN FAILURES. A transient write failure — a connection
1663
+ * recycled, a brief failover, a lock wait — is not evidence that a dump
1664
+ * streaming perfectly well should be abandoned. Aborting a two-hour backup
1665
+ * because one progress UPDATE failed would be the definition of a
1666
+ * self-inflicted outage. A sustained failure is not silent either: the
1667
+ * heartbeat stops advancing, and #282's stale sweep is exactly the mechanism
1668
+ * that notices.
1669
+ */
1670
+ async writeHeartbeat(runId, bytes) {
1671
+ try {
1672
+ await this.prisma.databaseBackupRun.update({
1673
+ where: { id: runId },
1674
+ data: { lastHeartbeatAt: new Date(), bytesWritten: bytes },
1675
+ });
1676
+ }
1677
+ catch (error) {
1678
+ this.logger.warn(`Heartbeat for database backup run ${runId} could not be written ` +
1679
+ `(the dump continues): ${toError(error).message}`);
1680
+ }
1681
+ }
1682
+ /**
1683
+ * Removes the object a failed run may have partially written.
1684
+ *
1685
+ * BEST-EFFORT, AND IT NEVER MASKS THE ORIGINAL ERROR. Whatever broke the
1686
+ * backup is what the operator needs on the row; "and the cleanup also failed"
1687
+ * is a log line. Deleting a key that was never created is a no-op on every
1688
+ * provider this interface targets, so there is no need to check first.
1689
+ */
1690
+ async deletePartialObject(storageKey) {
1691
+ try {
1692
+ await this.target.delete(storageKey);
1693
+ }
1694
+ catch (error) {
1695
+ this.logger.warn(`Could not delete the partial backup object "${storageKey}"; it may need ` +
1696
+ `removing by hand: ${toError(error).message}`);
1697
+ }
1698
+ }
1699
+ /** Writes the terminal `failed` row. Never throws — it is the last thing in a failure path. */
1700
+ async markFailed(runId, error, bytes, audit) {
1701
+ this.logger.error(`Database backup run ${runId} failed: ${error.message}`);
1702
+ let failed;
1703
+ try {
1704
+ failed = await this.prisma.databaseBackupRun.update({
1705
+ where: { id: runId },
1706
+ data: {
1707
+ status: 'failed',
1708
+ finishedAt: new Date(),
1709
+ // NOT reset to zero: how far a failed dump got is the difference
1710
+ // between "the database refused the connection" and "it died at 40 GB".
1711
+ bytesWritten: bytes,
1712
+ lastError: error.message,
1713
+ ...audit,
1714
+ },
1715
+ });
1716
+ }
1717
+ catch (writeError) {
1718
+ // The row is now stuck in `running` with a stopped heartbeat, which is
1719
+ // exactly the shape #282's stale sweep exists to resolve. Nothing better
1720
+ // is available from here, and throwing would only reach the detached
1721
+ // `.catch()` in `startBackup`.
1722
+ this.logger.error(`Could not record the failure of database backup run ${runId}; the stale ` +
1723
+ `sweep will settle it: ${toError(writeError).message}`);
1724
+ // ⚠ NO NOTIFICATION ON THIS BRANCH, DELIBERATELY. Nothing has been
1725
+ // recorded, so the run is still `running` from the table's point of view,
1726
+ // and the stale sweep will settle it and raise the event with a `stale`
1727
+ // outcome. Raising it here as well would mail two failure notices for one
1728
+ // failure, and the second one would contradict the row.
1729
+ return;
1730
+ }
1731
+ this.metrics.backupSettled('failed', runDurationMs(failed?.startedAt, failed?.finishedAt));
1732
+ // `db_backup.run.completed` with `status: 'failed'`: after the row is
1733
+ // written, outside any transaction, never throwing.
1734
+ this.events?.runCompleted({
1735
+ runId,
1736
+ status: 'failed',
1737
+ targetId: failed?.storageProvider ?? this.target.id,
1738
+ sizeBytes: (0, db_backup_events_1.eventBytes)(failed?.sizeBytes),
1739
+ durationMs: Math.max(0, runDurationMs(failed?.startedAt, failed?.finishedAt) ?? 0),
1740
+ });
1741
+ // ⚠ AFTER THE COMMIT, AND OUTSIDE ANY TRANSACTION. The `failed` row above
1742
+ // is the fact; this is the report of it, and the report must not be able to
1743
+ // change or delay the fact. `notifyPermissionHolders` is detached and never
1744
+ // rejects, and the `void` is what says so at the call site.
1745
+ this.announceFailure(failed, 'failed');
1746
+ }
1747
+ /**
1748
+ * Raise `db_backup.backup_failed` for a settled run. Never throws.
1749
+ *
1750
+ * SHARED WITH THE STALE SWEEP in shape but not in code — the sweep
1751
+ * (`tasks/db-backup-schedule.task.ts`) writes its own rows and raises its own
1752
+ * event, because it is a different process settling a run this one never saw.
1753
+ * What IS shared is the event key, the permission and the template; the two
1754
+ * differ only in `outcome`, which is exactly the field that exists to record
1755
+ * that difference.
1756
+ */
1757
+ announceFailure(run, outcome) {
1758
+ try {
1759
+ // ANNOTATED WITH THE TEMPLATE'S TYPE: `notifyPermissionHolders` takes
1760
+ // `data: unknown`, so this is the only place the shape is checked.
1761
+ const payload = {
1762
+ runId: run.id,
1763
+ outcome,
1764
+ error: run.lastError,
1765
+ startedAt: run.startedAt,
1766
+ failedAt: run.finishedAt ?? new Date(),
1767
+ trigger: run.trigger,
1768
+ appUrl: this.appUrl(),
1769
+ };
1770
+ // `db_backup:read` — the exact string `db-backup.controller.ts` enforces.
1771
+ //
1772
+ // ⚠ `.catch()` DESPITE THE DISPATCHER CONTRACTING NEVER TO REJECT: that
1773
+ // contract is `NotificationsService`'s, not this file's, and an unhandled
1774
+ // rejection on a detached backup-failure path has nobody to report it to.
1775
+ // The `try/catch` around this block cannot see a rejected promise.
1776
+ void this.notifications
1777
+ .notifyPermissionHolders('db_backup.backup_failed', db_backup_constants_1.PERMISSIONS.DB_BACKUP_READ, payload)
1778
+ .catch((error) => {
1779
+ this.logger.error(`Dispatching 'db_backup.backup_failed' for run ${run.id} rejected, ` +
1780
+ `which the dispatcher contracts never to do: ${toError(error).message}`);
1781
+ });
1782
+ }
1783
+ catch (error) {
1784
+ this.logger.error(`Could not raise 'db_backup.backup_failed' for run ${run.id}; the run's ` +
1785
+ `${outcome} row is unaffected: ${toError(error).message}`);
1786
+ }
1787
+ }
1788
+ /**
1789
+ * The application root, trailing slashes trimmed, or `undefined`.
1790
+ *
1791
+ * Same shape as `UsersService.appUrl()`; `undefined` makes the template omit
1792
+ * its CTA rather than render a button that goes nowhere.
1793
+ */
1794
+ appUrl() {
1795
+ const appUrl = this.config.get('appUrl');
1796
+ return appUrl ? appUrl.replace(/\/+$/, '') : undefined;
1797
+ }
1798
+ /**
1799
+ * The PostgreSQL server version, for the run's audit trio.
1800
+ *
1801
+ * `current_setting('server_version')` rather than `version()`, which returns
1802
+ * a whole banner including the compiler and platform — provenance we neither
1803
+ * need nor want to store per run.
1804
+ *
1805
+ * BEST-EFFORT: a failure here is `null`, never a failed backup. A run that
1806
+ * could not read the server version is still a perfectly valid archive.
1807
+ */
1808
+ async readServerVersion() {
1809
+ try {
1810
+ const rows = await this.prisma.$queryRaw `
1811
+ SELECT current_setting('server_version') AS server_version
1812
+ `;
1813
+ const value = rows[0]?.server_version;
1814
+ return typeof value === 'string' && value.length > 0 ? value : null;
1815
+ }
1816
+ catch {
1817
+ return null;
1818
+ }
1819
+ }
1820
+ /**
1821
+ * The newest applied migration, for the run's audit trio.
1822
+ *
1823
+ * THE MOST IMPORTANT OF THE THREE: it says which SCHEMA the archive
1824
+ * contains, so an operator can tell — before replaying it — whether the code
1825
+ * that is running will understand what comes back.
1826
+ *
1827
+ * ⚠ THE QUERY LIVES IN `migration-state.util.ts` AND IS SHARED WITH #284's
1828
+ * RESTORE PRE-FLIGHT, which compares the value recorded here against the one
1829
+ * live at restore time. Two copies of "the newest applied migration" — one
1830
+ * that excludes rolled-back rows and one that does not, say — would make that
1831
+ * comparison meaningless: the gate would block restores of compatible
1832
+ * archives, or pass an incompatible one. Best-effort, like the version above.
1833
+ */
1834
+ async readLatestMigrationName() {
1835
+ return (0, migration_state_util_1.readLatestAppliedMigration)(this.prisma);
1836
+ }
1837
+ };
1838
+ exports.DatabaseBackupRunnerService = DatabaseBackupRunnerService;
1839
+ exports.DatabaseBackupRunnerService = DatabaseBackupRunnerService = DatabaseBackupRunnerService_1 = __decorate([
1840
+ (0, common_1.Injectable)(),
1841
+ __param(0, (0, common_1.Inject)(index_4.PLATFORM_PRISMA)),
1842
+ __param(2, (0, common_1.Inject)(index_6.STORAGE_PROVIDER)),
1843
+ __param(4, (0, common_1.Inject)(ports_1.DB_BACKUP_NOTIFIER)),
1844
+ __param(7, (0, common_1.Optional)()),
1845
+ __param(7, (0, common_1.Inject)(exports.DB_BACKUP_ENGINE)),
1846
+ __param(8, (0, common_1.Optional)()),
1847
+ __param(8, (0, common_1.Inject)(exports.DB_BACKUP_TIMERS)),
1848
+ __param(9, (0, common_1.Optional)()),
1849
+ __param(9, (0, common_1.Inject)(ports_1.DB_BACKUP_METRICS)),
1850
+ __param(10, (0, common_1.Optional)()),
1851
+ __param(10, (0, common_1.Inject)(options_1.DB_BACKUP_OPTIONS)),
1852
+ __param(11, (0, common_1.Optional)()),
1853
+ __param(11, (0, common_1.Inject)(backup_target_1.DB_BACKUP_TARGET)),
1854
+ __param(12, (0, common_1.Optional)()),
1855
+ __param(12, (0, common_1.Inject)(backup_target_1.DB_BACKUP_MIRROR_TARGETS)),
1856
+ __param(13, (0, common_1.Optional)()),
1857
+ __metadata("design:paramtypes", [Object, index_5.SystemSettingsService, Object, index_7.StorageConfigService, Object, config_1.ConfigService,
1858
+ index_3.JobsService, Object, Object, Object, Object, Object, Array, db_backup_events_1.DbBackupEvents])
1859
+ ], DatabaseBackupRunnerService);
1860
+ /** A settled run's wall time in ms, or `null` when either instant is missing (#600). */
1861
+ function runDurationMs(startedAt, finishedAt) {
1862
+ return startedAt instanceof Date && finishedAt instanceof Date
1863
+ ? finishedAt.getTime() - startedAt.getTime()
1864
+ : null;
1865
+ }
1866
+ //# sourceMappingURL=db-backup-runner.service.js.map