@wildo-ai/platform-config-lib 1.0.1 → 1.1.0

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 (414) hide show
  1. package/LICENSE +34 -0
  2. package/dist/esm/.builder.pid +9 -0
  3. package/dist/esm/_unimplemented/index.d.ts +3 -0
  4. package/dist/esm/_unimplemented/index.d.ts.map +1 -0
  5. package/dist/esm/_unimplemented/index.js +3 -0
  6. package/dist/esm/_unimplemented/index.js.map +1 -0
  7. package/dist/esm/_unimplemented/soft-warn.d.ts +124 -0
  8. package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -0
  9. package/dist/esm/_unimplemented/soft-warn.js +170 -0
  10. package/dist/esm/_unimplemented/soft-warn.js.map +1 -0
  11. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +137 -0
  12. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +1 -0
  13. package/dist/esm/_unimplemented/unimplemented-field-warning.js +153 -0
  14. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -0
  15. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  16. package/dist/esm/bootstrap/application-backend-env.contracts.js +1 -1
  17. package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
  18. package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts +13 -0
  19. package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -0
  20. package/dist/esm/bootstrap/application-creation-verification-env.contracts.js +14 -0
  21. package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -0
  22. package/dist/esm/bootstrap/bootstrap-planner.d.ts +1 -1
  23. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  24. package/dist/esm/bootstrap/bootstrap-planner.js +1 -1
  25. package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
  26. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +141 -37
  27. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  28. package/dist/esm/bootstrap/bootstrap.contracts.js +104 -18
  29. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  30. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +430 -421
  31. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  32. package/dist/esm/bootstrap/bootstrap.schemas.js +383 -21
  33. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  34. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +213 -8
  35. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  36. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +230 -5
  37. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  38. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +79 -0
  39. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -0
  40. package/dist/esm/bootstrap/runtime-backing-service-access.js +83 -0
  41. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -0
  42. package/dist/esm/bootstrap/runtime-network-policy.d.ts +63 -0
  43. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -0
  44. package/dist/esm/bootstrap/runtime-network-policy.js +104 -0
  45. package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -0
  46. package/dist/esm/bootstrap/runtime-network-topology.d.ts +78 -0
  47. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -0
  48. package/dist/esm/bootstrap/runtime-network-topology.js +134 -0
  49. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -0
  50. package/dist/esm/bootstrap/runtime-platform-access.d.ts +67 -0
  51. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -0
  52. package/dist/esm/bootstrap/runtime-platform-access.js +57 -0
  53. package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -0
  54. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +173 -0
  55. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -0
  56. package/dist/esm/bootstrap/runtime-principal.contracts.js +218 -0
  57. package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -0
  58. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts +112 -1
  59. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  60. package/dist/esm/bootstrap/runtime-topology.contracts.js +141 -8
  61. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  62. package/dist/esm/config-authoring.entry.d.ts +3 -0
  63. package/dist/esm/config-authoring.entry.d.ts.map +1 -0
  64. package/dist/esm/config-authoring.entry.js +5 -0
  65. package/dist/esm/config-authoring.entry.js.map +1 -0
  66. package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
  67. package/dist/esm/credentials/credential-generator.service.js +1 -1
  68. package/dist/esm/credentials/credential-generator.service.js.map +1 -1
  69. package/dist/esm/index.d.ts +30 -15
  70. package/dist/esm/index.d.ts.map +1 -1
  71. package/dist/esm/index.js +16 -1
  72. package/dist/esm/index.js.map +1 -1
  73. package/dist/esm/lockfile/canonical-json.d.ts +41 -0
  74. package/dist/esm/lockfile/canonical-json.d.ts.map +1 -0
  75. package/dist/esm/lockfile/canonical-json.js +56 -0
  76. package/dist/esm/lockfile/canonical-json.js.map +1 -0
  77. package/dist/esm/lockfile/lockfile-io.d.ts +231 -0
  78. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -0
  79. package/dist/esm/lockfile/lockfile-io.js +303 -0
  80. package/dist/esm/lockfile/lockfile-io.js.map +1 -0
  81. package/dist/esm/lockfile/materialize-infra-section.d.ts +99 -0
  82. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -0
  83. package/dist/esm/lockfile/materialize-infra-section.js +153 -0
  84. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -0
  85. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +522 -0
  86. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -0
  87. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +116 -0
  88. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -0
  89. package/dist/esm/project-config/define-framework-config.d.ts +36 -10
  90. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  91. package/dist/esm/project-config/define-framework-config.js +67 -3
  92. package/dist/esm/project-config/define-framework-config.js.map +1 -1
  93. package/dist/esm/project-config/define-infra-env-config.d.ts +570 -0
  94. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -0
  95. package/dist/esm/project-config/define-infra-env-config.js +726 -0
  96. package/dist/esm/project-config/define-infra-env-config.js.map +1 -0
  97. package/dist/esm/project-config/define-minion-config.d.ts +221 -23
  98. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  99. package/dist/esm/project-config/define-minion-config.js +228 -11
  100. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  101. package/dist/esm/project-config/define-saas-config.d.ts +427 -218
  102. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  103. package/dist/esm/project-config/define-saas-config.js +704 -75
  104. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  105. package/dist/esm/project-config/define-worker-config.d.ts +106 -10
  106. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  107. package/dist/esm/project-config/define-worker-config.js +99 -9
  108. package/dist/esm/project-config/define-worker-config.js.map +1 -1
  109. package/dist/esm/project-config/index.d.ts +28 -21
  110. package/dist/esm/project-config/index.d.ts.map +1 -1
  111. package/dist/esm/project-config/index.js +14 -7
  112. package/dist/esm/project-config/index.js.map +1 -1
  113. package/dist/esm/project-config/loader.d.ts +120 -10
  114. package/dist/esm/project-config/loader.d.ts.map +1 -1
  115. package/dist/esm/project-config/loader.js +290 -38
  116. package/dist/esm/project-config/loader.js.map +1 -1
  117. package/dist/esm/project-config/minion-local-provider-registration.d.ts +69 -0
  118. package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -0
  119. package/dist/esm/project-config/minion-local-provider-registration.js +72 -0
  120. package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -0
  121. package/dist/esm/project-config/provider-catalog-types.d.ts +12 -0
  122. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -0
  123. package/dist/esm/project-config/provider-catalog-types.js +49 -0
  124. package/dist/esm/project-config/provider-catalog-types.js.map +1 -0
  125. package/dist/esm/project-config/provider-companion-discovery.d.ts +24 -0
  126. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -0
  127. package/dist/esm/project-config/provider-companion-discovery.js +244 -0
  128. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -0
  129. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +297 -0
  130. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -0
  131. package/dist/esm/project-config/provider-runtime-artifacts.js +860 -0
  132. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -0
  133. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +18 -0
  134. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -0
  135. package/dist/esm/project-config/shared/application-creation-verification.schemas.js +25 -0
  136. package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -0
  137. package/dist/esm/project-config/shared/application-modules.schemas.d.ts +10 -2
  138. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  139. package/dist/esm/project-config/shared/application-modules.schemas.js +12 -1
  140. package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
  141. package/dist/esm/project-config/shared/application-modules.utils.d.ts +2 -1
  142. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  143. package/dist/esm/project-config/shared/application-modules.utils.js +6 -1
  144. package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
  145. package/dist/esm/project-config/shared/auth.schemas.d.ts +102 -0
  146. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -0
  147. package/dist/esm/project-config/shared/auth.schemas.js +100 -0
  148. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -0
  149. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +316 -39
  150. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  151. package/dist/esm/project-config/shared/backing-services.schemas.js +359 -24
  152. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  153. package/dist/esm/project-config/shared/cdn.example.d.ts +14 -0
  154. package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -0
  155. package/dist/esm/project-config/shared/cdn.example.js +38 -0
  156. package/dist/esm/project-config/shared/cdn.example.js.map +1 -0
  157. package/dist/esm/project-config/shared/cdn.schemas.d.ts +182 -0
  158. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -0
  159. package/dist/esm/project-config/shared/cdn.schemas.js +151 -0
  160. package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -0
  161. package/dist/esm/project-config/shared/csp-defaults.d.ts +92 -0
  162. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -0
  163. package/dist/esm/project-config/shared/csp-defaults.js +195 -0
  164. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -0
  165. package/dist/esm/project-config/shared/csp-emit.d.ts +106 -0
  166. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -0
  167. package/dist/esm/project-config/shared/csp-emit.js +305 -0
  168. package/dist/esm/project-config/shared/csp-emit.js.map +1 -0
  169. package/dist/esm/project-config/shared/csp.schemas.d.ts +266 -0
  170. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -0
  171. package/dist/esm/project-config/shared/csp.schemas.js +281 -0
  172. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -0
  173. package/dist/esm/project-config/shared/data-services.schemas.d.ts +45 -9
  174. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  175. package/dist/esm/project-config/shared/data-services.schemas.js +45 -9
  176. package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
  177. package/dist/esm/project-config/shared/env-example-defaults.d.ts +0 -1
  178. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  179. package/dist/esm/project-config/shared/env-example-defaults.js +1 -2
  180. package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
  181. package/dist/esm/project-config/shared/environment.schemas.d.ts +134 -8
  182. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  183. package/dist/esm/project-config/shared/environment.schemas.js +185 -2
  184. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  185. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +779 -0
  186. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -0
  187. package/dist/esm/project-config/shared/infra-providers.schemas.js +210 -0
  188. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -0
  189. package/dist/esm/project-config/shared/infra-service.schemas.d.ts +18 -0
  190. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -0
  191. package/dist/esm/project-config/shared/infra-service.schemas.js +16 -0
  192. package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -0
  193. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +83 -1
  194. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  195. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +99 -2
  196. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  197. package/dist/esm/project-config/shared/k8s-utils.d.ts +51 -7
  198. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  199. package/dist/esm/project-config/shared/k8s-utils.js +59 -12
  200. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  201. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts +31 -0
  202. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -0
  203. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js +32 -0
  204. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -0
  205. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +142 -0
  206. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -0
  207. package/dist/esm/project-config/shared/minion-resource-access.validation.js +159 -0
  208. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -0
  209. package/dist/esm/project-config/shared/object-storage-session-policy.d.ts +100 -0
  210. package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -0
  211. package/dist/esm/project-config/shared/object-storage-session-policy.js +130 -0
  212. package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -0
  213. package/dist/esm/project-config/shared/platform-services.schemas.d.ts +9 -14
  214. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  215. package/dist/esm/project-config/shared/platform-services.schemas.js +13 -9
  216. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  217. package/dist/esm/project-config/shared/schema-version.schemas.d.ts +15 -0
  218. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -0
  219. package/dist/esm/project-config/shared/schema-version.schemas.js +40 -0
  220. package/dist/esm/project-config/shared/schema-version.schemas.js.map +1 -0
  221. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +283 -8
  222. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  223. package/dist/esm/project-config/shared/service-definitions.schemas.js +325 -8
  224. package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
  225. package/dist/esm/registry/artifact-domain.schemas.d.ts +54 -0
  226. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -0
  227. package/dist/esm/registry/artifact-domain.schemas.js +40 -0
  228. package/dist/esm/registry/artifact-domain.schemas.js.map +1 -0
  229. package/dist/esm/registry/companion-api.schemas.d.ts +176 -0
  230. package/dist/esm/registry/companion-api.schemas.d.ts.map +1 -0
  231. package/dist/esm/registry/companion-api.schemas.js +165 -0
  232. package/dist/esm/registry/companion-api.schemas.js.map +1 -0
  233. package/dist/esm/registry/digest.schemas.d.ts +20 -0
  234. package/dist/esm/registry/digest.schemas.d.ts.map +1 -0
  235. package/dist/esm/registry/digest.schemas.js +21 -0
  236. package/dist/esm/registry/digest.schemas.js.map +1 -0
  237. package/dist/esm/registry/index.d.ts +33 -0
  238. package/dist/esm/registry/index.d.ts.map +1 -0
  239. package/dist/esm/registry/index.js +33 -0
  240. package/dist/esm/registry/index.js.map +1 -0
  241. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +107 -0
  242. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -0
  243. package/dist/esm/registry/lockfile-modules-section.schemas.js +67 -0
  244. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -0
  245. package/dist/esm/registry/module-artifact.schemas.d.ts +94 -0
  246. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -0
  247. package/dist/esm/registry/module-artifact.schemas.js +69 -0
  248. package/dist/esm/registry/module-artifact.schemas.js.map +1 -0
  249. package/dist/esm/registry/module-manifest.schemas.d.ts +134 -0
  250. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -0
  251. package/dist/esm/registry/module-manifest.schemas.js +155 -0
  252. package/dist/esm/registry/module-manifest.schemas.js.map +1 -0
  253. package/dist/esm/registry/registry-config.schemas.d.ts +31 -0
  254. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -0
  255. package/dist/esm/registry/registry-config.schemas.js +24 -0
  256. package/dist/esm/registry/registry-config.schemas.js.map +1 -0
  257. package/dist/esm/registry/registry-defaults.constants.d.ts +37 -0
  258. package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -0
  259. package/dist/esm/registry/registry-defaults.constants.js +37 -0
  260. package/dist/esm/registry/registry-defaults.constants.js.map +1 -0
  261. package/dist/esm/registry/registry-errors.d.ts +109 -0
  262. package/dist/esm/registry/registry-errors.d.ts.map +1 -0
  263. package/dist/esm/registry/registry-errors.js +185 -0
  264. package/dist/esm/registry/registry-errors.js.map +1 -0
  265. package/dist/esm/registry/registry-section-schemas.constants.d.ts +39 -0
  266. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -0
  267. package/dist/esm/registry/registry-section-schemas.constants.js +22 -0
  268. package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -0
  269. package/dist/esm/release/framework-release.constants.d.ts +26 -1
  270. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  271. package/dist/esm/release/framework-release.constants.js +27 -2
  272. package/dist/esm/release/framework-release.constants.js.map +1 -1
  273. package/dist/esm/schemas/framework-info.schemas.d.ts +1 -1
  274. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  275. package/dist/esm/schemas/framework-info.schemas.js +1 -1
  276. package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
  277. package/dist/esm/schemas/framework-secrets.schemas.d.ts +5 -5
  278. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  279. package/dist/esm/schemas/framework-secrets.schemas.js +1 -1
  280. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  281. package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
  282. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  283. package/dist/esm/schemas/platform-application-config.schemas.js +11 -2
  284. package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
  285. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +7 -7
  286. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  287. package/dist/esm/schemas/platform-application-secrets.schemas.js +17 -2
  288. package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
  289. package/dist/esm/schemas/platform-config.schemas.d.ts +12 -13
  290. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  291. package/dist/esm/schemas/platform-config.schemas.js +15 -3
  292. package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
  293. package/dist/esm/workspace-scope/application-subject-manifest.d.ts +26 -0
  294. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -0
  295. package/dist/esm/workspace-scope/application-subject-manifest.js +43 -0
  296. package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -0
  297. package/dist/esm/workspace-scope/index.d.ts +5 -2
  298. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  299. package/dist/esm/workspace-scope/index.js +4 -1
  300. package/dist/esm/workspace-scope/index.js.map +1 -1
  301. package/dist/esm/workspace-scope/resolve-homes.d.ts +20 -0
  302. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -0
  303. package/dist/esm/workspace-scope/resolve-homes.js +62 -0
  304. package/dist/esm/workspace-scope/resolve-homes.js.map +1 -0
  305. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +211 -0
  306. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -0
  307. package/dist/esm/workspace-scope/workspace-homes.schemas.js +113 -0
  308. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -0
  309. package/dist/esm/workspace-scope/workspace-scope-detector.d.ts +10 -5
  310. package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
  311. package/dist/esm/workspace-scope/workspace-scope-detector.js +22 -36
  312. package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
  313. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +147 -58
  314. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  315. package/dist/esm/workspace-scope/workspace-scope.schemas.js +174 -78
  316. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  317. package/dist/tsconfig.build.tsbuildinfo +1 -1
  318. package/package.json +31 -17
  319. package/dist/esm/credentials/credentials-provisioner.service.d.ts +0 -190
  320. package/dist/esm/credentials/credentials-provisioner.service.d.ts.map +0 -1
  321. package/dist/esm/credentials/credentials-provisioner.service.js +0 -278
  322. package/dist/esm/credentials/credentials-provisioner.service.js.map +0 -1
  323. package/dist/esm/infra-managers/infra-manager.models.d.ts +0 -146
  324. package/dist/esm/infra-managers/infra-manager.models.d.ts.map +0 -1
  325. package/dist/esm/infra-managers/infra-manager.models.js +0 -2
  326. package/dist/esm/infra-managers/infra-manager.models.js.map +0 -1
  327. package/dist/esm/infra-managers/mongo-atlas-manager.service.d.ts +0 -64
  328. package/dist/esm/infra-managers/mongo-atlas-manager.service.d.ts.map +0 -1
  329. package/dist/esm/infra-managers/mongo-atlas-manager.service.js +0 -307
  330. package/dist/esm/infra-managers/mongo-atlas-manager.service.js.map +0 -1
  331. package/dist/esm/infra-managers/postgresql-manager.service.d.ts +0 -115
  332. package/dist/esm/infra-managers/postgresql-manager.service.d.ts.map +0 -1
  333. package/dist/esm/infra-managers/postgresql-manager.service.js +0 -403
  334. package/dist/esm/infra-managers/postgresql-manager.service.js.map +0 -1
  335. package/dist/esm/infra-managers/rabbitmq-manager.service.d.ts +0 -64
  336. package/dist/esm/infra-managers/rabbitmq-manager.service.d.ts.map +0 -1
  337. package/dist/esm/infra-managers/rabbitmq-manager.service.js +0 -288
  338. package/dist/esm/infra-managers/rabbitmq-manager.service.js.map +0 -1
  339. package/dist/esm/infra-managers/redis-manager.service.d.ts +0 -78
  340. package/dist/esm/infra-managers/redis-manager.service.d.ts.map +0 -1
  341. package/dist/esm/infra-managers/redis-manager.service.js +0 -326
  342. package/dist/esm/infra-managers/redis-manager.service.js.map +0 -1
  343. package/dist/esm/project-config/define-infra-config.d.ts +0 -128
  344. package/dist/esm/project-config/define-infra-config.d.ts.map +0 -1
  345. package/dist/esm/project-config/define-infra-config.js +0 -87
  346. package/dist/esm/project-config/define-infra-config.js.map +0 -1
  347. package/dist/esm/project-config/define-platform-config.d.ts +0 -65
  348. package/dist/esm/project-config/define-platform-config.d.ts.map +0 -1
  349. package/dist/esm/project-config/define-platform-config.js +0 -22
  350. package/dist/esm/project-config/define-platform-config.js.map +0 -1
  351. package/dist/esm/project-config/define-platform-env-config.d.ts +0 -41
  352. package/dist/esm/project-config/define-platform-env-config.d.ts.map +0 -1
  353. package/dist/esm/project-config/define-platform-env-config.js +0 -45
  354. package/dist/esm/project-config/define-platform-env-config.js.map +0 -1
  355. package/dist/esm/project-config/define-project-config.d.ts +0 -38
  356. package/dist/esm/project-config/define-project-config.d.ts.map +0 -1
  357. package/dist/esm/project-config/define-project-config.js +0 -57
  358. package/dist/esm/project-config/define-project-config.js.map +0 -1
  359. package/dist/esm/project-config/define-sharing-policy.d.ts +0 -35
  360. package/dist/esm/project-config/define-sharing-policy.d.ts.map +0 -1
  361. package/dist/esm/project-config/define-sharing-policy.js +0 -30
  362. package/dist/esm/project-config/define-sharing-policy.js.map +0 -1
  363. package/dist/esm/project-config/sharing-policy-validation.d.ts +0 -40
  364. package/dist/esm/project-config/sharing-policy-validation.d.ts.map +0 -1
  365. package/dist/esm/project-config/sharing-policy-validation.js +0 -143
  366. package/dist/esm/project-config/sharing-policy-validation.js.map +0 -1
  367. package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.d.ts +0 -23
  368. package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.d.ts.map +0 -1
  369. package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.js +0 -13
  370. package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.js.map +0 -1
  371. package/src/bootstrap/application-backend-env.contracts.ts +0 -17
  372. package/src/bootstrap/bootstrap-planner.ts +0 -46
  373. package/src/bootstrap/bootstrap.contracts.ts +0 -251
  374. package/src/bootstrap/bootstrap.schemas.ts +0 -164
  375. package/src/bootstrap/platform-runtime-env.contracts.ts +0 -99
  376. package/src/bootstrap/runtime-topology.contracts.ts +0 -102
  377. package/src/credentials/credential-generator.service.ts +0 -39
  378. package/src/index.ts +0 -16
  379. package/src/project-config/__tests__/application-modules.utils.test.ts +0 -53
  380. package/src/project-config/__tests__/define-framework-config.test.ts +0 -43
  381. package/src/project-config/__tests__/define-saas-config.test.ts +0 -210
  382. package/src/project-config/__tests__/loader.test.ts +0 -100
  383. package/src/project-config/define-framework-config.ts +0 -44
  384. package/src/project-config/define-infra-config.ts +0 -168
  385. package/src/project-config/define-minion-config.ts +0 -27
  386. package/src/project-config/define-platform-config.ts +0 -28
  387. package/src/project-config/define-platform-env-config.ts +0 -59
  388. package/src/project-config/define-project-config.ts +0 -63
  389. package/src/project-config/define-saas-config.ts +0 -171
  390. package/src/project-config/define-sharing-policy.ts +0 -36
  391. package/src/project-config/define-worker-config.ts +0 -27
  392. package/src/project-config/index.ts +0 -23
  393. package/src/project-config/loader.ts +0 -220
  394. package/src/project-config/shared/application-modules.schemas.ts +0 -12
  395. package/src/project-config/shared/application-modules.utils.ts +0 -65
  396. package/src/project-config/shared/backing-services.schemas.ts +0 -59
  397. package/src/project-config/shared/data-services.schemas.ts +0 -58
  398. package/src/project-config/shared/env-example-defaults.ts +0 -50
  399. package/src/project-config/shared/environment.schemas.ts +0 -136
  400. package/src/project-config/shared/infrastructure-defaults.schemas.ts +0 -47
  401. package/src/project-config/shared/k8s-utils.ts +0 -56
  402. package/src/project-config/shared/platform-services.schemas.ts +0 -33
  403. package/src/project-config/shared/service-definitions.schemas.ts +0 -38
  404. package/src/project-config/sharing-policy-validation.ts +0 -159
  405. package/src/release/framework-release.constants.ts +0 -2
  406. package/src/schemas/__tests__/platform-config.schemas.test.ts +0 -90
  407. package/src/schemas/framework-info.schemas.ts +0 -13
  408. package/src/schemas/framework-secrets.schemas.ts +0 -19
  409. package/src/schemas/platform-application-config.schemas.ts +0 -25
  410. package/src/schemas/platform-application-secrets.schemas.ts +0 -78
  411. package/src/schemas/platform-config.schemas.ts +0 -45
  412. package/src/workspace-scope/index.ts +0 -2
  413. package/src/workspace-scope/workspace-scope-detector.ts +0 -98
  414. package/src/workspace-scope/workspace-scope.schemas.ts +0 -224
@@ -0,0 +1,779 @@
1
+ import { z } from 'zod';
2
+ import type { ApplicationRuntimePrincipal } from '../../bootstrap/runtime-principal.contracts';
3
+ import type { MinionResourceGrants } from './minion-resource-access.validation';
4
+ import type { PostgreSQLSSLMode } from '@wildo-ai/saas-models';
5
+ /**
6
+ * Environment functions an infra environment must fulfill.
7
+ *
8
+ * This vocabulary is intentionally platform/config-owned, not part of
9
+ * `@wildo-ai/saas-models`, because browser/runtime packages must not
10
+ * import infrastructure provider concepts.
11
+ */
12
+ export declare enum InfraCapability {
13
+ DOCUMENT_DATABASE = "DOCUMENT_DATABASE",
14
+ RELATIONAL_DATABASE = "RELATIONAL_DATABASE",
15
+ AUDIT_LOG_STORAGE = "AUDIT_LOG_STORAGE",
16
+ OBJECT_STORAGE = "OBJECT_STORAGE",
17
+ ANTIVIRUS_SCANNING = "ANTIVIRUS_SCANNING",
18
+ QUEUING_SYSTEM = "QUEUING_SYSTEM",
19
+ CACHE_MANAGER = "CACHE_MANAGER",
20
+ DOCUMENT_RENDERING = "DOCUMENT_RENDERING",
21
+ METRICS_TELEMETRY = "METRICS_TELEMETRY",
22
+ BACKUP_MANAGER = "BACKUP_MANAGER"
23
+ }
24
+ /**
25
+ * Built-in environment-facing provider ids — the (kind × hosting-model
26
+ * × brand) projection vocabulary. Apps SELECT these implicitly via
27
+ * `wildo.infra.<env>.config.ts > backingServices.<kind>.{source,
28
+ * provider?}`; the planner resolves the tuple to one of these
29
+ * `InfraProvider` values via `resolveInfraProvider`.
30
+ *
31
+ * **Naming convention**: `<KIND>_<BRAND>` — `BRAND` is either a
32
+ * vendor (Atlas / AWS_RDS / Supabase / …) for managed services, or
33
+ * an open-source software name (MinIO / vanilla self-hosted) for
34
+ * self-hosted. `<KIND>_MANAGED` exists as a generic fallback when
35
+ * the operator hasn't named a brand (Postgres in particular —
36
+ * acceptable while the brand catalog is incomplete; Mongo's
37
+ * `MONGODB_ATLAS` is the only branded managed option today, so no
38
+ * `MONGODB_MANAGED` generic is needed).
39
+ *
40
+ * Slice 4.B.0 (2026-05-07) added the Postgres brand expansion to
41
+ * generalize the source/brand split that S3 already had.
42
+ */
43
+ export declare enum InfraProvider {
44
+ /** Self-hosted vanilla MongoDB (in-cluster docker-compose / K8s
45
+ * deployment). Selected via `source: SELF`. No `provider` brand
46
+ * required (Mongo's `provider` axis is reserved for managed
47
+ * variants like `'atlas'`). */
48
+ MONGODB_SELF = "mongodb-self",
49
+ /** MongoDB Atlas (managed cloud). brand: `'atlas'`. */
50
+ MONGODB_ATLAS = "mongodb-atlas",
51
+ /** Self-hosted vanilla PostgreSQL (in-cluster docker-compose /
52
+ * K8s deployment). Selected via `source: SELF`. */
53
+ POSTGRES_SELF = "postgres-self",
54
+ /** Generic managed Postgres — fallback when the operator hasn't
55
+ * named a brand. Concrete brand identifiers below are preferred. */
56
+ POSTGRES_MANAGED = "postgres-managed",
57
+ /** AWS RDS for PostgreSQL. brand: `'aws-rds'`. */
58
+ POSTGRES_AWS_RDS = "postgres-aws-rds",
59
+ /** Google Cloud SQL for PostgreSQL. brand: `'gcp-cloud-sql'`. */
60
+ POSTGRES_GCP_CLOUD_SQL = "postgres-gcp-cloud-sql",
61
+ /** Azure Database for PostgreSQL. brand: `'azure-database'`. */
62
+ POSTGRES_AZURE_DATABASE = "postgres-azure-database",
63
+ /** Supabase. brand: `'supabase'`. */
64
+ POSTGRES_SUPABASE = "postgres-supabase",
65
+ /** Neon. brand: `'neon'`. */
66
+ POSTGRES_NEON = "postgres-neon",
67
+ /** Render. brand: `'render'`. */
68
+ POSTGRES_RENDER = "postgres-render",
69
+ /** Self-hosted Redis-compatible cache (today: Valkey under the
70
+ * hood; the engine adapter is wire-protocol compatible with
71
+ * Redis OSS). Selected via `source: SELF`. */
72
+ REDIS_SELF = "redis-self",
73
+ /** Self-hosted RabbitMQ broker (in-cluster docker-compose / K8s
74
+ * deployment). Selected via `source: SELF`. */
75
+ RABBITMQ_SELF = "rabbitmq-self",
76
+ /** MinIO (self-hosted S3-compatible). brand: `'minio'` (or unset on
77
+ * source=self — MinIO is the canonical default). */
78
+ MINIO_SELF = "minio-self",
79
+ /** AWS S3 (managed). brand: `'aws'`. */
80
+ AWS_S3 = "aws-s3",
81
+ /** Self-hosted ClamAV antivirus scanning service. Stateless (no
82
+ * auth, no per-tenant state); apps connect to a shared host:port.
83
+ * Selected via `source: SELF`. */
84
+ CLAMAV_SELF = "clamav-self",
85
+ /** Self-hosted Gotenberg HTML/Office-to-PDF rendering service.
86
+ * Stateless; apps POST documents and receive rendered PDFs.
87
+ * Selected via `source: SELF`. */
88
+ GOTENBERG_SELF = "gotenberg-self",
89
+ /** Self-hosted immudb — immutable, cryptographically-verifiable DB used as a
90
+ * tamper-evident audit-log store. Selected via `source: SELF`. */
91
+ IMMUDB_SELF = "immudb-self"
92
+ }
93
+ /**
94
+ * Platform-side consumers of an `InfraProviderPlanContribution.platformAdmin`
95
+ * block. Each provider declares which platform services receive its
96
+ * admin credentials so the planner can route them to the right pod /
97
+ * compose service / env file.
98
+ *
99
+ * Locked enum (2026-05-05). Extending requires adding the consumer
100
+ * enum value here AND in every `InfraProviderModule.plan()` that
101
+ * legitimately delivers admin credentials to the new consumer.
102
+ *
103
+ * Excluded by design (consume platform-service APIs, not direct infra-admin):
104
+ * - `file-generator`
105
+ * - `sourcecode-provider`
106
+ *
107
+ * Add as real consumers surface, not pre-emptively.
108
+ */
109
+ export declare enum InfraPlatformAdminConsumer {
110
+ APPS_MANAGER = "apps-manager",
111
+ COMPANION = "companion",
112
+ CRONTABS_BATCHES_MANAGER = "crontabs-batches-manager",
113
+ MODULE_REGISTRY = "module-registry"
114
+ }
115
+ /**
116
+ * Audience: platform services that need **management-API access** to
117
+ * administer the infra resource (create per-app users / vhosts / ACLs
118
+ * / DBs). This is audience-1 in the three-audience model:
119
+ *
120
+ * 1. **Platform-admin** (this contribution slice). Cluster-wide
121
+ * management-API credentials. Consumed by apps-manager (mints
122
+ * per-app users via `mintAppCredentials`), companion (mirrors
123
+ * apps-manager admin role for local dev). `crontabs` /
124
+ * `module-registry` are listed in the enum because they MAY
125
+ * surface admin needs in future slices, but no provider should
126
+ * declare them as consumers in this slice unless evidence
127
+ * surfaces.
128
+ * 2. **Platform-service-scoped** (NOT modeled in `plan()` yet —
129
+ * see LD-8 / Slice 2.5). Per-platform-service publish/consume
130
+ * creds for the platform-services that participate in
131
+ * inter-service messaging (`PLATFORM_SERVICES` enum:
132
+ * apps-manager, crontabs-batches-manager, file-generator).
133
+ * Today provisioned inline by
134
+ * `PlatformInfrastructureManagerService.provisionAllPlatformServices`.
135
+ * 3. **App-scoped** (`appRuntime` slice below). Per-app
136
+ * publish/consume creds, minted by `mintAppCredentials`.
137
+ *
138
+ * `consumers` is the explicit audience declaration: every provider
139
+ * states which platform services receive this block. The planner
140
+ * routes the credentials accordingly.
141
+ */
142
+ declare const InfraProviderPlatformAdminContributionSchema: z.ZodObject<{
143
+ envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
144
+ secretEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ consumers: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof InfraPlatformAdminConsumer>>>;
146
+ }, z.core.$strict>;
147
+ export type InfraProviderPlatformAdminContribution = z.infer<typeof InfraProviderPlatformAdminContributionSchema>;
148
+ /**
149
+ * Audience: customer-app + minion + Node-worker pods. Per-app
150
+ * runtime delivery flows through the persisted
151
+ * `Wildo_Application_Config` and `Wildo_Application_Secrets` blobs in
152
+ * MongoDB (NOT through K8s deployment-Secret env vars; engine
153
+ * consumers like `queue.backend.service.ts:144-149` read from
154
+ * `appConfigService.{config,secrets}` after fetching them at startup
155
+ * via app-config-fetch).
156
+ *
157
+ * - `perAppConfigBlobPaths`: JSON paths into `Wildo_Application_Config`
158
+ * carrying static values (same for every app in this env) — e.g.
159
+ * `'database.rabbitmq.host': 'rabbitmq'`. Merged into the persisted
160
+ * config blob by the planner at sync time.
161
+ * - `perAppSecretBlobPaths`: JSON paths into `Wildo_Application_Secrets`
162
+ * that `mintAppCredentials` will populate at deploy time (e.g.
163
+ * `'database.rabbitmq.username'`). The planner emits only the path
164
+ * list; apps-manager invokes `mintAppCredentials` per app to produce
165
+ * the values, then merges them into the persisted secrets blob via
166
+ * the existing `_merge_WildoApplicationSecrets` machinery.
167
+ *
168
+ * No K8s-Secret-env-var output is intentional: the K8s
169
+ * `{appSlug}-secret` carries only the four-env bootstrap-env-contract
170
+ * (APPLICATION_ID / PLATFORM_APPLICATION_PRIMARY_SECRET /
171
+ * PLATFORM_APPS_MANAGER_URL / APPLICATION_ENV); per-resource creds
172
+ * land in MongoDB, not env. If a future provider genuinely needs
173
+ * env-var injection it can extend this contribution shape via
174
+ * `.passthrough()` — not pre-emptively designed for here.
175
+ */
176
+ declare const InfraProviderAppRuntimeContributionSchema: z.ZodObject<{
177
+ perAppConfigBlobPaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
+ perAppSecretBlobPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
+ }, z.core.$strict>;
180
+ export type InfraProviderAppRuntimeContribution = z.infer<typeof InfraProviderAppRuntimeContributionSchema>;
181
+ /**
182
+ * Two-slice contribution shape. The audience-less resource block
183
+ * (compose / K8s / CI) merges with the audience-scoped credential
184
+ * blocks (`platformAdmin`, `appRuntime`).
185
+ *
186
+ * `.passthrough()` is preserved on the merged shape so future
187
+ * contribution kinds (dashboards, alerting rules, autoscaler hints)
188
+ * can be added without breaking existing modules.
189
+ */
190
+ export declare const InfraProviderPlanContributionSchema: z.ZodObject<{
191
+ dockerComposeServices: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
+ k8sResources: z.ZodOptional<z.ZodArray<z.ZodString>>;
193
+ startupScripts: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ ciChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ policyChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
+ platformAdmin: z.ZodOptional<z.ZodObject<{
197
+ envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
198
+ secretEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
199
+ consumers: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof InfraPlatformAdminConsumer>>>;
200
+ }, z.core.$strict>>;
201
+ appRuntime: z.ZodOptional<z.ZodObject<{
202
+ perAppConfigBlobPaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
203
+ perAppSecretBlobPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
+ }, z.core.$strict>>;
205
+ }, z.core.$loose>;
206
+ export type InfraProviderPlanContribution = z.infer<typeof InfraProviderPlanContributionSchema>;
207
+ export interface InfraProviderPlanningContext {
208
+ environment: string;
209
+ runtime: string;
210
+ backingServiceKey: string;
211
+ config: unknown;
212
+ }
213
+ /**
214
+ * Per-app credential minting context. Called by the orchestrator
215
+ * (apps-manager `wildo-application-lifecycle.service.ts`) at app-init
216
+ * time — not at K8s deploy time. The orchestrator is responsible for
217
+ * **generation policy** (read existing creds from MongoDB; decide
218
+ * rotate-vs-preserve based on `overrideCredentials` flag; generate
219
+ * new password when needed); the module is responsible for the
220
+ * **broker upsert** (install / replace the user on the broker with
221
+ * the supplied password).
222
+ *
223
+ * Inputs:
224
+ * - `appSlug` — the application slug (or its derived namespace
225
+ * `ns`); used by the module to compute the rabbit username,
226
+ * permission regex, etc.
227
+ * - `adminClient` — pre-wired by the orchestrator from the resolved
228
+ * `platformAdmin` env vars; concrete type narrowed per provider at
229
+ * the module's implementation site (e.g., RabbitMQ modules narrow
230
+ * to `RabbitMQManagementClient`).
231
+ * - `secretInputs` — orchestrator-supplied scalars keyed by the JSON
232
+ * path the module declared in `appRuntime.perAppSecretBlobPaths`.
233
+ * For RabbitMQ: `{ 'database.rabbitmq.password': '<orchestrator-generated-password>' }`.
234
+ * The module installs these on the broker; it does NOT generate
235
+ * passwords itself.
236
+ *
237
+ * Note: `applicationEnv` was previously included in this context but
238
+ * removed 2026-05-06 — the integration site (`wildo-application-lifecycle`)
239
+ * does not carry an env field on its options shape.
240
+ */
241
+ export interface AppCredentialMintingContext {
242
+ /**
243
+ * Raw application slug (e.g., `'wonder-todos'`). Used by modules
244
+ * whose per-app resource names embed the slug directly without
245
+ * env-scoping (e.g., MongoDB database name).
246
+ */
247
+ appSlug: string;
248
+ /**
249
+ * Application namespace = `<appSlug>-<environmentId>`, derived
250
+ * server-side via `buildApplicationNamespace` in platform-config-lib.
251
+ * Used by modules whose per-app resource names scope by namespace
252
+ * (RabbitMQ username, Redis ACL keyPattern, …) — i.e., resources
253
+ * that must remain isolated across env boundaries (`wonder-todos-local`
254
+ * vs `wonder-todos-staging`).
255
+ */
256
+ applicationNamespace: string;
257
+ /**
258
+ * Stable opaque application identifier (Mongo ObjectId-shaped string,
259
+ * matches the convention at
260
+ * `wildo-application-lifecycle.service.ts:552` where the broker
261
+ * permission regex disambiguates per-app queue/reply names by this
262
+ * id, NOT by `appSlug` — the slug is human-readable and could
263
+ * theoretically be reassigned, the id is forever-stable). Required
264
+ * by modules whose per-app resource names embed the application id
265
+ * (RabbitMQ permission regex, …).
266
+ */
267
+ wildoApplicationId: string;
268
+ /**
269
+ * WHICH runtime principal these credentials are for (Step 2 / D17).
270
+ *
271
+ * Optional, and absent means the APPLICATION BACKEND — which keeps every
272
+ * existing module and call site meaning exactly what it meant before, since
273
+ * per-application minting IS the backend principal's case.
274
+ *
275
+ * A module that ignores this field still mints correctly for the backend and
276
+ * simply does not participate in per-principal narrowing; a module that reads
277
+ * it must derive a DISTINCT resource name (ACL username, DB user, queue
278
+ * permission) per principal, or two principals will share one credential and
279
+ * the narrowing will exist only on paper.
280
+ *
281
+ * `buildRuntimePrincipalKey` renders the stable identity to embed in such a
282
+ * name — the same string the stored section is keyed by, so a minted resource
283
+ * and the row that records it cannot drift.
284
+ */
285
+ principal?: ApplicationRuntimePrincipal;
286
+ /**
287
+ * What this principal may touch, in RESOURCE TYPES (Step 3).
288
+ *
289
+ * Deliberately the platform vocabulary, not storage names: a module that
290
+ * grants on tables and a module that grants on collections must receive the
291
+ * same contract, and the translation belongs at each adapter via
292
+ * `resolveGrantStorageNames`.
293
+ *
294
+ * Absent for the application backend, which is granted database-wide by a
295
+ * different path. Absent for a NAMED principal means "no grants derived" —
296
+ * which a module must treat as an ERROR rather than as a reason to fall back
297
+ * to the wide grant (D11/R3: a minion with no declared access gets no
298
+ * database user at all, and that is the orchestrator's decision to make).
299
+ */
300
+ resourceGrants?: MinionResourceGrants;
301
+ adminClient: unknown;
302
+ secretInputs: Record<string, string>;
303
+ /**
304
+ * Optional non-secret per-app config inputs supplied by the
305
+ * orchestrator. Distinct from `secretInputs` (passwords) — these
306
+ * are authored topology values that affect HOW the module
307
+ * provisions the per-app resource. Each module documents the keys
308
+ * it consumes in its own JSDoc.
309
+ *
310
+ * Slice 2.5c-3 introduced this field for `RabbitmqSelfInfraProviderModule`
311
+ * to receive the optional per-app vhost (key `'vhost'`); future
312
+ * modules may use it for per-app database suffixes, bucket prefixes,
313
+ * or other authored topology overrides without further extending
314
+ * the context shape.
315
+ *
316
+ * When `undefined` or missing a key the module relies on, the
317
+ * module falls back to its default behavior (e.g., RabbitMQ
318
+ * provisions on the default vhost `/`).
319
+ */
320
+ applicationConfigInputs?: Record<string, string>;
321
+ }
322
+ /**
323
+ * Context for `InfraProviderModule.mintPlatformServiceCredentials`.
324
+ * Same orchestrator-pattern as `mintAppCredentials`: orchestrator
325
+ * generates the password, passes it via `secretInputs`; module is
326
+ * upsert-only on the broker.
327
+ */
328
+ export interface PlatformServiceCredentialMintingContext {
329
+ /**
330
+ * Stable identifier of the platform service this credential is for.
331
+ * Today: members of `PlatformApplicationType` (e.g.,
332
+ * `'platform_apps_manager'`, `'platform_crontabs_batches_manager'`,
333
+ * `'platform_file_generator'`). Module derives the per-service
334
+ * permission regex from this string.
335
+ */
336
+ serviceName: string;
337
+ adminClient: unknown;
338
+ /**
339
+ * Orchestrator-supplied scalars. For RabbitMQ the only required
340
+ * key is `'password'` (no JSON-blob-path conventions because
341
+ * platform-service creds don't go into a per-app blob — they're
342
+ * persisted at the platform-services collection level).
343
+ */
344
+ secretInputs: Record<string, string>;
345
+ }
346
+ export interface PlatformServiceCredentialMintingResult {
347
+ /**
348
+ * Username installed on the broker. Equals `serviceName` today
349
+ * (the legacy convention preserved from the inline ceremony in
350
+ * `PlatformInfrastructureManagerService.provisionServiceCredentials`).
351
+ * Future modules may transform if needed; the orchestrator persists
352
+ * this value alongside the password.
353
+ */
354
+ username: string;
355
+ }
356
+ /**
357
+ * Per-app credential minting result. Keys are JSON paths into
358
+ * `Wildo_Application_Secrets` (those declared in
359
+ * `appRuntime.perAppSecretBlobPaths`); values are the canonical
360
+ * persisted form post-broker-upsert. Typically:
361
+ * - **Module-derived** values (e.g., `'database.rabbitmq.username': 'app_<ns>'`).
362
+ * The module computes these from `appSlug`.
363
+ * - **Echoed** values from `secretInputs` (e.g.,
364
+ * `'database.rabbitmq.password': '<the-password-you-passed-in>'`)
365
+ * — the module confirms it installed them on the broker.
366
+ *
367
+ * The orchestrator (apps-manager) merges this map into the persisted
368
+ * secrets blob via `_merge_WildoApplicationSecrets`. The customer
369
+ * pod reads at startup via the standard app-config-fetch path — no
370
+ * K8s Secret involvement for per-app data creds.
371
+ */
372
+ export interface AppCredentialMintingResult {
373
+ secretBlobValues: Record<string, string>;
374
+ /**
375
+ * Optional non-persisted return values the module produces in the
376
+ * course of upsert. Distinct from `secretBlobValues` (which lands
377
+ * in `Wildo_Application_Secrets`) — `runtimeArtifacts` is a back-
378
+ * channel for values the orchestrator needs at app-init time but
379
+ * deliberately does NOT persist.
380
+ *
381
+ * Slice 4.B.3 of `infra-provider-planner.md` introduced this
382
+ * field for the MongoDB modules: `MongodbAtlasInfraProviderModule`
383
+ * returns `runtimeArtifacts['connectionString']` (the per-app
384
+ * SRV URL with credentials embedded) so the orchestrator can use
385
+ * it for transient app-database seeding without persisting the
386
+ * whole credentialed URL into secrets — the persistence shape is
387
+ * `(username, password)` in secrets + `(host, protocol, options,
388
+ * database)` in config, NOT a single URL string.
389
+ *
390
+ * When `undefined`, the module has no transient artifacts; the
391
+ * orchestrator should rely on `secretBlobValues` only.
392
+ */
393
+ runtimeArtifacts?: Record<string, string>;
394
+ }
395
+ /**
396
+ * Raw RabbitMQ management-API transport (HTTP `PUT/DELETE`). Surface
397
+ * what `RabbitmqSelfInfraProviderModule.mintAppCredentials` /
398
+ * `revokeAppCredentials` need; nothing more. The 5C policy/transport
399
+ * split (LD-4) carves *policy* methods (`upsertTenantUserPermissions`
400
+ * etc.) out of the manager into the module; this interface is the
401
+ * pure-transport remainder.
402
+ *
403
+ * **Argument-order convention** (Slice 4.A.2 / L3): for permission
404
+ * methods, the order is `(vhost, username, permissions)` — vhost
405
+ * first. The legacy pre-Slice-2 convention was `(username, vhost, ...)`
406
+ * (positional, username first). The new convention is cleaner but
407
+ * silently swappable since both args are strings. **Do NOT reorder**;
408
+ * stale call sites copying the legacy positional order will produce
409
+ * wrong-vhost permissions without compile-time complaint.
410
+ */
411
+ export interface IRabbitMQManagementClient {
412
+ /** PUT /api/users/{name} — idempotent upsert. */
413
+ putUser(username: string, password: string, tags: ReadonlyArray<string>): Promise<void>;
414
+ /** PUT /api/permissions/{vhost}/{name} — vhost-first per the
415
+ * argument-order convention noted on the interface JSDoc. */
416
+ setPermissions(vhost: string, username: string, permissions: {
417
+ configure: string;
418
+ write: string;
419
+ read: string;
420
+ }): Promise<void>;
421
+ /** PUT /api/topic-permissions/{vhost}/{name} — vhost-first. */
422
+ setTopicPermissions(vhost: string, username: string, permissions: {
423
+ exchange: string;
424
+ write: string;
425
+ read: string;
426
+ }): Promise<void>;
427
+ /** DELETE /api/users/{name} — idempotent (404 → no-op). */
428
+ deleteUser(username: string): Promise<void>;
429
+ /** PUT /api/vhosts/{name} — ensures vhost exists; idempotent. */
430
+ ensureVhost(vhost: string): Promise<void>;
431
+ }
432
+ /**
433
+ * Raw Redis (Valkey) ACL transport. Surface what
434
+ * `RedisSelfInfraProviderModule.mintAppCredentials` /
435
+ * `revokeAppCredentials` need; nothing more. Used over a `redis-cli`-
436
+ * equivalent ACL connection (the apps-manager's
437
+ * `RedisConnectionManagerService` opens it once at boot and reuses).
438
+ *
439
+ * **Channel pattern policy** (Slice 4.B.1, 2026-05-10): the legacy
440
+ * `RedisConnectionManagerService.upsertTenantUserAcl` derived a
441
+ * fixed family of pub/sub channel patterns from `username`
442
+ * (`<u>#*`, `<u>#/#*`, `<u>-request#*`, `<u>-request#/#*`,
443
+ * `<u>-response#*`, `<u>-response#/#*`). That fan-out is module-
444
+ * internal policy, NOT transport. The contract therefore takes
445
+ * only `username`/`password`/`keyPattern` — the channel patterns
446
+ * live inside the manager implementation today (preserves Slice 2
447
+ * behavior parity); when the legacy method is retired the policy
448
+ * moves into `RedisSelfInfraProviderModule` proper. Until then,
449
+ * `upsertUser` is a thin delegator and the contract is the
450
+ * forward-looking shape.
451
+ *
452
+ * **Idempotent persistence** (`persistAcl`): Valkey/Redis ACL
453
+ * changes are in-memory until `ACL SAVE` is called. The legacy
454
+ * code paired every `upsertTenantUserAcl` with `aclSave`; the
455
+ * module mirrors that pairing.
456
+ */
457
+ export interface IRedisAclClient {
458
+ /**
459
+ * `ACL SETUSER <name> on >password resetkeys ~<keyPattern> ...`
460
+ * — idempotent upsert. The implementation owns the full ACL
461
+ * command shape (channel patterns, allow/deny categories,
462
+ * dangerous-command denials) — the contract surfaces only the
463
+ * orchestrator-supplied identity material. Slice 4.B.1's manager
464
+ * impl preserves the legacy channel-pattern fan-out from
465
+ * `RedisConnectionManagerService.upsertTenantUserAcl`.
466
+ */
467
+ upsertUser(input: {
468
+ username: string;
469
+ password: string;
470
+ keyPattern: string;
471
+ }): Promise<void>;
472
+ /**
473
+ * `ACL DELUSER <name>` — idempotent (no-op when the user is
474
+ * already absent).
475
+ */
476
+ deleteUser(username: string): Promise<void>;
477
+ /**
478
+ * `ACL SAVE` — flushes the in-memory ACL list to disk. MUST be
479
+ * called after every mutation set so Valkey restarts don't lose
480
+ * tenant users.
481
+ */
482
+ persistAcl(): Promise<void>;
483
+ }
484
+ /**
485
+ * Raw Postgres admin transport. Surface what
486
+ * `PostgresSelfInfraProviderModule.mintAppCredentials` /
487
+ * `revokeAppCredentials` need; nothing more. The legacy
488
+ * `PostgreSQLConnectionManagerService` (apps-manager) implements
489
+ * this contract via its existing `createApplicationDatabase` /
490
+ * `deleteApplicationDatabase` methods (Slice 4.B.2 5C policy/
491
+ * transport split).
492
+ *
493
+ * **Identifier-injection-safe**: implementations MUST validate
494
+ * `databaseName` / `username` shapes (alphanumeric + underscore;
495
+ * 63-char Postgres limit) and quote them safely — module callers
496
+ * pass authored slugs verbatim. `PostgreSQLConnectionManagerService`
497
+ * uses the legacy `validateIdentifier` + `quoteIdentifier` pair.
498
+ *
499
+ * **Idempotent upsert** (`upsertApplicationDatabase`): the legacy
500
+ * `createApplicationDatabase` is upsert-style — `CREATE USER` falls
501
+ * back to `ALTER USER` on conflict; `CREATE DATABASE` skips when the
502
+ * DB exists; ownership + privileges always reapplied. The module
503
+ * surface preserves that contract; "create" is renamed to "upsert"
504
+ * in the contract to match the orchestrator-pattern vocabulary.
505
+ */
506
+ export interface IPostgresAdminClient {
507
+ /**
508
+ * Upsert per-app database + role. Returns the resolved
509
+ * `connectionUrl` so the orchestrator can persist it into
510
+ * `Wildo_Application_Secrets.database.postgresql.connectUrl`.
511
+ * Idempotent: safe to call repeatedly with the same input.
512
+ */
513
+ upsertApplicationDatabase(input: {
514
+ databaseName: string;
515
+ username: string;
516
+ password: string;
517
+ sslMode?: PostgreSQLSSLMode;
518
+ }): Promise<{
519
+ connectionUrl: string;
520
+ }>;
521
+ /**
522
+ * Drop per-app database + user. Idempotent: missing DB / missing
523
+ * user are non-throws (best-effort cleanup, see legacy
524
+ * `deleteApplicationDatabase` semantics).
525
+ */
526
+ dropApplicationDatabase(input: {
527
+ databaseName: string;
528
+ username: string;
529
+ }): Promise<void>;
530
+ /**
531
+ * Upsert a LOGIN role holding exactly the given per-table privileges inside an
532
+ * existing application database (Step 3 / R1).
533
+ *
534
+ * A SEPARATE method from {@link IPostgresAdminClient.upsertApplicationDatabase},
535
+ * for the same reason the Mongo port is split: that one CREATEs the database
536
+ * and makes its caller the OWNER with `ALL PRIVILEGES`, this one grants named
537
+ * verbs on named tables inside a database somebody else owns. One method with
538
+ * an optional privileges argument would make OWNERSHIP the behaviour you get
539
+ * by forgetting to pass something.
540
+ *
541
+ * The grants are AUTHORITATIVE: the implementation must revoke what the role
542
+ * previously held before granting, or a table removed from `resourceAccess`
543
+ * keeps its privilege and revocation becomes a no-op that reports success.
544
+ *
545
+ * An empty `readTables`/`writeTables` pair is legitimate — a role that can
546
+ * connect and see nothing — and must NOT be read as "unspecified, leave the
547
+ * previous grants alone".
548
+ */
549
+ /**
550
+ * Remove a table-scoped LOGIN role and everything it holds — WITHOUT touching
551
+ * the database it was scoped into.
552
+ *
553
+ * Separate from {@link IPostgresAdminClient.dropApplicationDatabase}, which
554
+ * drops the DATABASE and its owner. Reusing that one to retire a minion would
555
+ * destroy the entire application's data while believing it was removing one
556
+ * principal's access. That asymmetry is why revocation gets its own method
557
+ * rather than a flag.
558
+ */
559
+ dropTableScopedDatabaseRole(input: {
560
+ databaseName: string;
561
+ username: string;
562
+ schemaName: string;
563
+ }): Promise<void>;
564
+ upsertTableScopedDatabaseRole(input: {
565
+ databaseName: string;
566
+ username: string;
567
+ password: string;
568
+ schemaName: string;
569
+ readTables: readonly string[];
570
+ writeTables: readonly string[];
571
+ sslMode?: PostgreSQLSSLMode;
572
+ }): Promise<{
573
+ connectionUrl: string;
574
+ }>;
575
+ }
576
+ /**
577
+ * Raw MongoDB Atlas API transport. Surface what
578
+ * `MongodbAtlasInfraProviderModule.mintAppCredentials` /
579
+ * `revokeAppCredentials` need; nothing more. The legacy
580
+ * `MongoAtlasManagerService` (apps-manager) implements this
581
+ * contract via its existing `createApplicationDatabase` /
582
+ * `deleteDatabaseUser` methods (Slice 4.B.3 5C policy/transport
583
+ * split).
584
+ *
585
+ * **Idempotent upsert** (`upsertApplicationDatabase`): the legacy
586
+ * `createApplicationDatabase` is upsert-style — `POST /databaseUsers`
587
+ * falls back to `PATCH` on conflict (existing user); cluster scope +
588
+ * roles are reapplied on every call. Returns the SRV connection
589
+ * string with credentials embedded, ready for transient
590
+ * app-database seeding by the orchestrator.
591
+ */
592
+ export interface IMongoAtlasClient {
593
+ /**
594
+ * Upsert per-app Atlas database user. Returns the SRV connection
595
+ * string (with credentials embedded, `mongodb+srv://user:pass@...`)
596
+ * that the orchestrator uses for transient app-init operations.
597
+ * The string is NOT persisted into `Wildo_Application_Secrets`
598
+ * by today's orchestrator — it's exposed via
599
+ * `AppCredentialMintingResult.runtimeArtifacts.connectionString`.
600
+ */
601
+ upsertApplicationDatabase(input: {
602
+ clusterName: string;
603
+ databaseName: string;
604
+ username: string;
605
+ password: string;
606
+ }): Promise<{
607
+ connectionString: string;
608
+ }>;
609
+ /**
610
+ * Delete an Atlas database user. Idempotent: 404 → no-op.
611
+ */
612
+ deleteDatabaseUser(username: string): Promise<void>;
613
+ }
614
+ /**
615
+ * Raw self-managed MongoDB admin transport. Surface what
616
+ * `MongodbSelfInfraProviderModule.mintAppCredentials` /
617
+ * `revokeAppCredentials` need; nothing more. Implemented by a
618
+ * lightweight admin-side mongoose connection — the legacy inline
619
+ * `ensureSelfManagedMongoApplicationUser` at
620
+ * `wildo-application-lifecycle.service.ts:2710-2745` is the source
621
+ * of behavior.
622
+ *
623
+ * **Why this contract is asymmetric to `IMongoAtlasClient`** (Slice
624
+ * 4.B.3 design note, 2026-05-10): Atlas exposes a stateless REST
625
+ * API for user management; self-managed Mongo requires opening an
626
+ * admin-DB connection and running `createUser` / `updateUser`
627
+ * commands. The contract therefore takes the admin connect URL as
628
+ * an input (not a constructor-time configuration) — implementations
629
+ * open transient connections per call, mirroring the legacy
630
+ * pattern.
631
+ */
632
+ export interface IMongoSelfAdminClient {
633
+ /**
634
+ * Upsert per-app database user on a self-managed MongoDB
635
+ * instance. Connects to `adminConnectUrl` (admin-scoped),
636
+ * creates or updates the user with `readWrite` + `dbAdmin`
637
+ * roles on `databaseName`, then closes the connection. Idempotent.
638
+ */
639
+ upsertApplicationDatabaseUser(input: {
640
+ adminConnectUrl: string;
641
+ databaseName: string;
642
+ username: string;
643
+ password: string;
644
+ }): Promise<void>;
645
+ /**
646
+ * Delete a per-app database user. Idempotent: missing user is a
647
+ * no-op (best-effort cleanup, mirrors `IPostgresAdminClient`
648
+ * semantics).
649
+ */
650
+ deleteApplicationDatabaseUser(input: {
651
+ adminConnectUrl: string;
652
+ username: string;
653
+ }): Promise<void>;
654
+ /**
655
+ * Upsert a database user holding ONE custom role carrying exactly the given
656
+ * collection-scoped privileges (Step 3 / R1 / D14).
657
+ *
658
+ * Deliberately a SEPARATE method from
659
+ * {@link IMongoSelfAdminClient.upsertApplicationDatabaseUser} rather than an
660
+ * optional parameter on it. The two grant fundamentally different authority —
661
+ * that one grants `readWrite` + `dbAdmin` on the WHOLE database, this one
662
+ * grants named actions on named collections and nothing else — and a single
663
+ * method with an optional "privileges" argument would make the wide grant the
664
+ * behaviour you get by forgetting to pass something. Two methods make the
665
+ * caller name which authority it intends.
666
+ *
667
+ * `privileges` is authoritative and REPLACES the role's previous contents, so
668
+ * a resource removed from `resourceAccess` loses its grant on the next sync.
669
+ * An empty list is legitimate — a principal with no data access — and MUST
670
+ * yield a role granting nothing rather than being treated as "unspecified".
671
+ *
672
+ * Idempotent: safe to call when the role and user already exist.
673
+ */
674
+ /**
675
+ * Retire a collection-scoped user AND the custom role it holds.
676
+ *
677
+ * Separate from {@link IMongoSelfAdminClient.deleteApplicationDatabaseUser}
678
+ * because a scoped principal owns TWO objects in TWO databases — the user in
679
+ * `admin`, the role in the application database — and dropping only the user
680
+ * leaves a privileged role behind that the next mint silently adopts.
681
+ *
682
+ * Idempotent in both halves: a missing user or a missing role is a no-op.
683
+ */
684
+ dropCollectionScopedDatabaseUser(input: {
685
+ adminConnectUrl: string;
686
+ databaseName: string;
687
+ username: string;
688
+ roleName: string;
689
+ }): Promise<void>;
690
+ upsertCollectionScopedDatabaseUser(input: {
691
+ adminConnectUrl: string;
692
+ databaseName: string;
693
+ username: string;
694
+ password: string;
695
+ roleName: string;
696
+ privileges: ReadonlyArray<{
697
+ resource: {
698
+ db: string;
699
+ collection: string;
700
+ };
701
+ actions: readonly string[];
702
+ }>;
703
+ }): Promise<void>;
704
+ }
705
+ export interface InfraProviderModule {
706
+ provider: InfraProvider;
707
+ supportedCapabilities: ReadonlyArray<InfraCapability>;
708
+ /**
709
+ * Every `Wildo_Application_Secrets` JSON path this module can mint PER RUNTIME PRINCIPAL.
710
+ *
711
+ * ## Why this is static, when `plan()` already reports the same paths
712
+ *
713
+ * `plan()` answers "what does THIS application get", so it needs an
714
+ * {@link InfraProviderPlanningContext}. The secret-DELIVERY path in apps-manager asks a different
715
+ * question — "which paths are per-principal AT ALL" — and must answer it with no application in
716
+ * hand, because it decides what to STRIP from the application blob before overlaying a
717
+ * principal's own material. A principal must receive a credential only where one was minted for
718
+ * it; anything left un-stripped is delivered with the APPLICATION's value, which for a database
719
+ * means `readWrite` + `dbAdmin` on the whole database.
720
+ *
721
+ * Empty for a provider with no per-app credentials — shared-bucket object storage
722
+ * (`MINIO_SELF`, `AWS_S3`) and stateless infra (`CLAMAV_SELF`, `GOTENBERG_SELF`). Empty is a
723
+ * real answer, not a missing one, which is why the field is required rather than optional: a
724
+ * module that mints per-principal material must not be able to omit it and be silently read as
725
+ * "nothing to confine".
726
+ *
727
+ * **Modules MUST derive `appRuntime.perAppSecretBlobPaths` from this same constant** rather than
728
+ * repeating the literal list. Two spellings of where a credential lives is the defect this exists
729
+ * to prevent, one layer up.
730
+ */
731
+ perPrincipalSecretBlobPaths: ReadonlyArray<string>;
732
+ plan(context: InfraProviderPlanningContext): InfraProviderPlanContribution;
733
+ /**
734
+ * Optional. Called by apps-manager at app-init time (see
735
+ * `wildo-application-lifecycle.service.ts:432-580` — the existing
736
+ * per-resource ceremony this method abstracts). Upserts the per-app
737
+ * user / role / DB on the broker using `secretInputs` for any
738
+ * orchestrator-supplied passwords; returns the canonical form of
739
+ * the persisted secrets blob slice.
740
+ *
741
+ * Returns `null` when the provider has no per-app credentials (e.g.,
742
+ * shared S3 bucket with shared access key).
743
+ *
744
+ * **Idempotent broker upsert** — the module installs / replaces the
745
+ * user with the password from `secretInputs`. It does NOT make
746
+ * generation/rotation decisions; that is the orchestrator's
747
+ * responsibility (driven by the existing `overrideCredentials`
748
+ * flag on `WildoApplicationInitOptions`). The module MUST NOT
749
+ * crash on "user already exists" (PUT semantics on the broker
750
+ * management API are sufficient for RabbitMQ; equivalent
751
+ * upsert-on-conflict semantics for other providers).
752
+ */
753
+ mintAppCredentials?(context: AppCredentialMintingContext): Promise<AppCredentialMintingResult | null>;
754
+ /**
755
+ * Optional. Symmetric to `mintAppCredentials`; called at app
756
+ * tear-down time. Idempotent: safe to call when the per-app user /
757
+ * DB / role does not exist (best-effort cleanup, no throw on
758
+ * already-absent).
759
+ */
760
+ revokeAppCredentials?(context: AppCredentialMintingContext): Promise<void>;
761
+ /**
762
+ * Optional (LD-8 / Slice 2.5). Called by the orchestrator
763
+ * (`PlatformInfrastructureManagerService.provisionServiceCredentials`
764
+ * + `ensureAppsManagerCredentials`) at platform-service-init time.
765
+ * Upserts a SCOPED (non-admin) per-platform-service user on the
766
+ * broker for inter-service messaging — distinct from
767
+ * `mintAppCredentials` (audience-3, customer-app per-app creds).
768
+ *
769
+ * Same orchestrator-pattern as `mintAppCredentials`: orchestrator
770
+ * owns generation, module is upsert-only.
771
+ *
772
+ * Returns `null` when the provider has no per-platform-service
773
+ * credentials concept (e.g., S3 modules — platform services use a
774
+ * shared bucket).
775
+ */
776
+ mintPlatformServiceCredentials?(context: PlatformServiceCredentialMintingContext): Promise<PlatformServiceCredentialMintingResult | null>;
777
+ }
778
+ export {};
779
+ //# sourceMappingURL=infra-providers.schemas.d.ts.map