@wildo-ai/platform-config-lib 1.1.10 → 1.1.12

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 (396) hide show
  1. package/dist/esm/_unimplemented/soft-warn.d.ts +24 -49
  2. package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
  3. package/dist/esm/_unimplemented/soft-warn.js +24 -49
  4. package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
  5. package/dist/esm/blueprint/anchored-region.d.ts +83 -0
  6. package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
  7. package/dist/esm/blueprint/anchored-region.js +263 -0
  8. package/dist/esm/blueprint/anchored-region.js.map +1 -0
  9. package/dist/esm/blueprint/blueprint.schemas.d.ts +600 -0
  10. package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
  11. package/dist/esm/blueprint/blueprint.schemas.js +638 -0
  12. package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
  13. package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
  14. package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
  15. package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
  16. package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
  17. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
  18. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  19. package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
  20. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  21. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +29 -4
  22. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  23. package/dist/esm/bootstrap/bootstrap.schemas.js +29 -4
  24. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  25. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +131 -2
  26. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  27. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +139 -2
  28. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  29. package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
  30. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
  31. package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
  32. package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
  33. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
  34. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
  35. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
  36. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
  37. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
  38. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  39. package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
  40. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
  41. package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
  42. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  43. package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
  44. package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
  45. package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
  46. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  47. package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
  48. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
  49. package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
  50. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
  51. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  52. package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
  53. package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
  54. package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
  55. package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
  56. package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
  57. package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
  58. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
  59. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
  60. package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
  61. package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
  62. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  63. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
  64. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
  65. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
  66. package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
  67. package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
  68. package/dist/esm/config-authoring.entry.js.map +1 -1
  69. package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
  70. package/dist/esm/credentials/credential-generator.service.js.map +1 -1
  71. package/dist/esm/index.d.ts +20 -1
  72. package/dist/esm/index.d.ts.map +1 -1
  73. package/dist/esm/index.js +20 -1
  74. package/dist/esm/index.js.map +1 -1
  75. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
  76. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
  77. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
  78. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
  79. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
  80. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
  81. package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
  82. package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
  83. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
  84. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
  85. package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
  86. package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
  87. package/dist/esm/key-management/approval-seal-verifier.d.ts +278 -0
  88. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
  89. package/dist/esm/key-management/approval-seal-verifier.js +355 -0
  90. package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
  91. package/dist/esm/key-management/approval-seal.contracts.d.ts +128 -0
  92. package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
  93. package/dist/esm/key-management/approval-seal.contracts.js +135 -0
  94. package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
  95. package/dist/esm/key-management/data-key.contracts.d.ts +106 -0
  96. package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
  97. package/dist/esm/key-management/data-key.contracts.js +54 -0
  98. package/dist/esm/key-management/data-key.contracts.js.map +1 -0
  99. package/dist/esm/key-management/es256-jws.d.ts +60 -0
  100. package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
  101. package/dist/esm/key-management/es256-jws.js +135 -0
  102. package/dist/esm/key-management/es256-jws.js.map +1 -0
  103. package/dist/esm/key-management/key-provider.spi.d.ts +158 -0
  104. package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
  105. package/dist/esm/key-management/key-provider.spi.js +38 -0
  106. package/dist/esm/key-management/key-provider.spi.js.map +1 -0
  107. package/dist/esm/key-management/keyring-rotation.contracts.d.ts +83 -0
  108. package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
  109. package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
  110. package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
  111. package/dist/esm/key-management/keyring-status.contracts.d.ts +59 -0
  112. package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
  113. package/dist/esm/key-management/keyring-status.contracts.js +45 -0
  114. package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
  115. package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
  116. package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
  117. package/dist/esm/key-management/pdf-incremental-update.js +730 -0
  118. package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
  119. package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
  120. package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
  121. package/dist/esm/key-management/pdf-truetype-font.js +152 -0
  122. package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
  123. package/dist/esm/key-management/qr-code.d.ts +38 -0
  124. package/dist/esm/key-management/qr-code.d.ts.map +1 -0
  125. package/dist/esm/key-management/qr-code.js +325 -0
  126. package/dist/esm/key-management/qr-code.js.map +1 -0
  127. package/dist/esm/key-management/signature-request.contracts.d.ts +91 -0
  128. package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
  129. package/dist/esm/key-management/signature-request.contracts.js +96 -0
  130. package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
  131. package/dist/esm/key-management/signing-log-export.contracts.d.ts +215 -0
  132. package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
  133. package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
  134. package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
  135. package/dist/esm/key-management/vault-custody.contracts.d.ts +98 -0
  136. package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
  137. package/dist/esm/key-management/vault-custody.contracts.js +154 -0
  138. package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
  139. package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
  140. package/dist/esm/lockfile/build-parallelism.js.map +1 -1
  141. package/dist/esm/lockfile/canonical-json.d.ts +1 -1
  142. package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
  143. package/dist/esm/lockfile/canonical-json.js +1 -1
  144. package/dist/esm/lockfile/canonical-json.js.map +1 -1
  145. package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
  146. package/dist/esm/lockfile/file-lock-hold.js +2 -1
  147. package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
  148. package/dist/esm/lockfile/lockfile-io.d.ts +13 -17
  149. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  150. package/dist/esm/lockfile/lockfile-io.js +29 -30
  151. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  152. package/dist/esm/lockfile/materialize-infra-section.d.ts +22 -20
  153. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  154. package/dist/esm/lockfile/materialize-infra-section.js +13 -14
  155. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  156. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +27 -249
  157. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  158. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +28 -3
  159. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  160. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
  161. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
  162. package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
  163. package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
  164. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
  165. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +22 -3
  166. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
  167. package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
  168. package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
  169. package/dist/esm/project-config/application-served-public-documents.loader.js +86 -0
  170. package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
  171. package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
  172. package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
  173. package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
  174. package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
  175. package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
  176. package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
  177. package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
  178. package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
  179. package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
  180. package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
  181. package/dist/esm/project-config/config-module-resolution.js +33 -0
  182. package/dist/esm/project-config/config-module-resolution.js.map +1 -0
  183. package/dist/esm/project-config/define-framework-config.js.map +1 -1
  184. package/dist/esm/project-config/define-infra-env-config.d.ts +344 -69
  185. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  186. package/dist/esm/project-config/define-infra-env-config.js +194 -143
  187. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  188. package/dist/esm/project-config/define-minion-config.d.ts +26 -36
  189. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  190. package/dist/esm/project-config/define-minion-config.js +64 -25
  191. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  192. package/dist/esm/project-config/define-saas-config.d.ts +82 -348
  193. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  194. package/dist/esm/project-config/define-saas-config.js +262 -103
  195. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  196. package/dist/esm/project-config/define-worker-config.d.ts +10 -20
  197. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  198. package/dist/esm/project-config/define-worker-config.js +10 -12
  199. package/dist/esm/project-config/define-worker-config.js.map +1 -1
  200. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
  201. package/dist/esm/project-config/hosted-infra-env-config.js +4 -1
  202. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
  203. package/dist/esm/project-config/index.d.ts +5 -0
  204. package/dist/esm/project-config/index.d.ts.map +1 -1
  205. package/dist/esm/project-config/index.js +5 -0
  206. package/dist/esm/project-config/index.js.map +1 -1
  207. package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
  208. package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
  209. package/dist/esm/project-config/loader-instances-zod.js +40 -0
  210. package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
  211. package/dist/esm/project-config/loader.d.ts +131 -14
  212. package/dist/esm/project-config/loader.d.ts.map +1 -1
  213. package/dist/esm/project-config/loader.js +226 -12
  214. package/dist/esm/project-config/loader.js.map +1 -1
  215. package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
  216. package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
  217. package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
  218. package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
  219. package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
  220. package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
  221. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
  222. package/dist/esm/project-config/npm-version-range.js +39 -16
  223. package/dist/esm/project-config/npm-version-range.js.map +1 -1
  224. package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
  225. package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
  226. package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
  227. package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
  228. package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
  229. package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
  230. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  231. package/dist/esm/project-config/provider-companion-discovery.js +16 -10
  232. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  233. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +103 -49
  234. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  235. package/dist/esm/project-config/provider-runtime-artifacts.js +216 -16
  236. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  237. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
  238. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  239. package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
  240. package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
  241. package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
  242. package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
  243. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  244. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
  245. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
  246. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
  247. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  248. package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
  249. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  250. package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
  251. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  252. package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
  253. package/dist/esm/project-config/shared/csp-defaults.d.ts +36 -9
  254. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  255. package/dist/esm/project-config/shared/csp-defaults.js +54 -11
  256. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
  257. package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
  258. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  259. package/dist/esm/project-config/shared/csp-emit.js +77 -24
  260. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  261. package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -85
  262. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  263. package/dist/esm/project-config/shared/csp.schemas.js +40 -13
  264. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  265. package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
  266. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  267. package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
  268. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  269. package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
  270. package/dist/esm/project-config/shared/environment.schemas.d.ts +101 -8
  271. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  272. package/dist/esm/project-config/shared/environment.schemas.js +128 -9
  273. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  274. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
  275. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  276. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  277. package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
  278. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +2 -1
  279. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  280. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +4 -1
  281. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  282. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  283. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  284. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
  285. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
  286. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +24 -0
  287. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  288. package/dist/esm/project-config/shared/minion-resource-access.validation.js +25 -2
  289. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  290. package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
  291. package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
  292. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +276 -0
  293. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
  294. package/dist/esm/project-config/shared/platform-key-management.schemas.js +296 -0
  295. package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
  296. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  297. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
  298. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
  299. package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
  300. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
  301. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
  302. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  303. package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
  304. package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
  305. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
  306. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
  307. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
  308. package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
  309. package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
  310. package/dist/esm/project-config/static-asset-import-noop.js +36 -20
  311. package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
  312. package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
  313. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  314. package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
  315. package/dist/esm/registry/digest.schemas.js.map +1 -1
  316. package/dist/esm/registry/index.d.ts +3 -3
  317. package/dist/esm/registry/index.d.ts.map +1 -1
  318. package/dist/esm/registry/index.js +3 -3
  319. package/dist/esm/registry/index.js.map +1 -1
  320. package/dist/esm/registry/local-checkout-source.d.ts +22 -2
  321. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
  322. package/dist/esm/registry/local-checkout-source.js +66 -3
  323. package/dist/esm/registry/local-checkout-source.js.map +1 -1
  324. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +11 -98
  325. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  326. package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
  327. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
  328. package/dist/esm/registry/module-artifact.schemas.d.ts +40 -17
  329. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  330. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  331. package/dist/esm/registry/module-manifest.schemas.d.ts +324 -74
  332. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  333. package/dist/esm/registry/module-manifest.schemas.js +377 -19
  334. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  335. package/dist/esm/registry/module-search.schemas.d.ts +2 -0
  336. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
  337. package/dist/esm/registry/module-search.schemas.js +14 -1
  338. package/dist/esm/registry/module-search.schemas.js.map +1 -1
  339. package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
  340. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  341. package/dist/esm/registry/registry-config.schemas.js.map +1 -1
  342. package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
  343. package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
  344. package/dist/esm/registry/registry-errors.d.ts +103 -5
  345. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  346. package/dist/esm/registry/registry-errors.js +213 -6
  347. package/dist/esm/registry/registry-errors.js.map +1 -1
  348. package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
  349. package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
  350. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  351. package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
  352. package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
  353. package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
  354. package/dist/esm/registry/registry-url-resolution.js +157 -0
  355. package/dist/esm/registry/registry-url-resolution.js.map +1 -0
  356. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  357. package/dist/esm/release/framework-release.constants.js.map +1 -1
  358. package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
  359. package/dist/esm/schemas/framework-secrets.schemas.d.ts +48 -0
  360. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  361. package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
  362. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  363. package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
  364. package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
  365. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
  366. package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
  367. package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
  368. package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
  369. package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
  370. package/dist/esm/workspace-scope/index.js.map +1 -1
  371. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
  372. package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
  373. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  374. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  375. package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
  376. package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
  377. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  378. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  379. package/dist/tsconfig.build.tsbuildinfo +1 -1
  380. package/package.json +12 -12
  381. package/dist/esm/_unimplemented/index.d.ts +0 -3
  382. package/dist/esm/_unimplemented/index.d.ts.map +0 -1
  383. package/dist/esm/_unimplemented/index.js +0 -3
  384. package/dist/esm/_unimplemented/index.js.map +0 -1
  385. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
  386. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
  387. package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
  388. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
  389. package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
  390. package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
  391. package/dist/esm/project-config/shared/cdn.example.js +0 -38
  392. package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
  393. package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
  394. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
  395. package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
  396. package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
@@ -1,17 +1,15 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
2
- import { RuntimeEnvironment } from '@wildo-ai/saas-models';
1
+ import { InboundEmailConfigSchema, RuntimeEnvironment } from '@wildo-ai/saas-models';
3
2
  import { z } from 'zod';
4
- import { UnimplementedFieldSource, createUnimplementedFieldWarner, } from '../_unimplemented/unimplemented-field-warning.js';
5
3
  import { WildoAuthConfigSchema } from './shared/auth.schemas.js';
6
4
  import { ApplicationCreationVerificationConfigSchema } from './shared/application-creation-verification.schemas.js';
7
5
  import { BackingServiceKind, BackingServiceSource, BackingServicesEnvConfigSchema } from './shared/backing-services.schemas.js';
8
6
  import { WildoCdnConfigSchema } from './shared/cdn.schemas.js';
9
7
  import { WildoSystemsOfRecordEnvConfigSchema } from './shared/systems-of-record-env.schemas.js';
10
8
  import { WildoPlatformStorageConfigSchema } from './shared/platform-storage.schemas.js';
9
+ import { WildoPlatformKeyManagementConfigSchema } from './shared/platform-key-management.schemas.js';
11
10
  import { EnvCspOverrideSchema } from './shared/csp.schemas.js';
12
- import { WildoSchemaVersionSchema } from './shared/schema-version.schemas.js';
13
11
  import { InfraServiceAddressingSchema, } from './shared/infra-service.schemas.js';
14
- import { DatabaseEngine, resolveApplicationDatabaseEngine, WildoDeploymentConfigSchema, WildoDeploymentRuntime, WildoEnvironment, WildoEnvironmentIdSchema, WildoKubernetesConfigSchema, WildoLocationType, WildoLocalDataStorage, resolveDefaultLocalDataStorage, WildoLoggingConfigSchema, WildoObservabilityConfigSchema, WildoDocumentationSiteConfigSchema, WildoEnvironmentProviderConfigurationsSchema, WildoProviderSelectionOverridesSchema, WildoRemoteProviderSchema, WildoImageTagStrategy, isLocalEnvironmentId, } from './shared/environment.schemas.js';
12
+ import { DatabaseEngine, resolveApplicationDatabaseEngine, WildoDeploymentConfigSchema, WildoDeploymentRuntime, WildoEnvironment, WildoEnvironmentIdSchema, WildoKubernetesConfigSchema, WildoLocationType, WildoLocalDataStorage, resolveDefaultLocalDataStorage, DEFAULT_ENVIRONMENT_SERVICE_PROFILE, EnvironmentServiceProfile, EnvironmentServiceProfileOptionalService, describeServiceOmittedByEnvironmentServiceProfile, environmentServiceProfileOmits, environmentServiceProfileRunsOneDatabaseFamily, WildoLoggingConfigSchema, WildoObservabilityConfigSchema, WildoDocumentationSiteConfigSchema, WildoEnvironmentProviderConfigurationsSchema, WildoProviderSelectionOverridesSchema, WildoRemoteProviderSchema, WildoImageTagStrategy, isLocalEnvironmentId, } from './shared/environment.schemas.js';
15
13
  const InfraEnvKubernetesSchema = WildoKubernetesConfigSchema.strict();
16
14
  /**
17
15
  * A POSIX (`/…`), drive-letter (`C:\…`, `C:/…`) or UNC (`\\host\…`) absolute path.
@@ -58,31 +56,50 @@ const SERVICE_HOST_LABEL = /^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)(?:\.[a-z0-9](?:
58
56
  * single topology on every environment; the per-env map keeps those
59
57
  * decisions explicit and author-driven.
60
58
  *
61
- * See `cross-app-jwt-propagation.md` Step 1 for the motivating
62
- * decision and the Step 2 URL composer that consumes this mapping
63
- * when building cross-frontend handoff URLs.
59
+ * The URL composer that builds cross-frontend handoff URLs consumes
60
+ * this mapping.
64
61
  */
65
62
  const ServiceHostValueSchema = z.string()
66
63
  .refine((value) => value === '' || SERVICE_HOST_LABEL.test(value), 'serviceHosts value must be a lowercase DNS subdomain chain (e.g. "app", "docs", "dev.admin") or "" (empty string, meaning apex).');
67
64
  const ServiceHostsMapSchema = z.record(z.string().min(1), ServiceHostValueSchema);
68
- const consumedInfraCspServiceKeysContext = new AsyncLocalStorage();
69
- function parseConsumedInfraCspServiceKeysFromEnv() {
70
- return new Set((process.env.WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS ?? '')
71
- .split(',')
72
- .map((value) => value.trim())
73
- .filter((value) => value.length > 0));
74
- }
75
- function getConsumedInfraCspServiceKeys() {
76
- const contextKeys = consumedInfraCspServiceKeysContext.getStore();
77
- const envKeys = parseConsumedInfraCspServiceKeysFromEnv();
78
- if (contextKeys === undefined || contextKeys.size === 0) {
79
- return envKeys;
80
- }
81
- if (envKeys.size === 0) {
82
- return contextKeys;
83
- }
84
- return new Set([...contextKeys, ...envKeys]);
85
- }
65
+ /**
66
+ * Per-environment email values, laid over `email` in the backend configuration (`saas-config.backend.ts`) for THIS
67
+ * environment only.
68
+ *
69
+ * `inbound.sharedDomain` is the shared receiving domain: every organization is reachable at `{slug}@{sharedDomain}`,
70
+ * and the domain's MX points at the receiving provider. It is a property of a DEPLOYMENT, not of the application: a
71
+ * local stack receives through a developer's own provider account (Resend assigns each account an `<id>.resend.app`
72
+ * domain), staging and production through their own domains, and one constant in the backend configuration made every
73
+ * environment claim the same domain — or, kept generic, made local receiving impossible to exercise. Validated by the
74
+ * same schema the backend configuration uses (`InboundEmailConfigSchema.shape.sharedDomain`), so the two cannot
75
+ * disagree about what a domain is.
76
+ *
77
+ * Projected to `WILDO_INBOUND_EMAIL_SHARED_DOMAIN` by `env-vars-builder`; the backend's inbound services read it
78
+ * through `resolveInboundEmailConfig`, where it wins over the authored value. Absent, the authored value applies.
79
+ */
80
+ export const WildoInfraEmailConfigSchema = z.strictObject({
81
+ inbound: z.strictObject({
82
+ sharedDomain: InboundEmailConfigSchema.shape.sharedDomain,
83
+ }).optional(),
84
+ });
85
+ /**
86
+ * Where THIS local environment's ownership-DNS stand-in answers (#2519): the development/test double that answers a
87
+ * domain-ownership challenge for a name nobody can publish — a corporate domain such as `wonder-group.test`, whose
88
+ * "IT department" on a developer machine is a test double (`client-org-mock`) rather than a DNS zone.
89
+ *
90
+ * A domain-ownership proof is what PUBLIC DNS says, everywhere else. So this is LOCAL-ONLY — refused by this schema in
91
+ * any other environment — and the backend honours it only where its declared runtime environment is development or
92
+ * test, and REFUSES TO START with it set anywhere else (`assertOwnershipDnsStandInAdmitted` in the backend). The
93
+ * stand-in answers `GET {baseUrl}/__wildo/dns/txt?name=<name>` with `{ "records": ["…"] }`.
94
+ *
95
+ * Projected to `WILDO_OWNERSHIP_DNS_STAND_IN_URL` (`PlatformOwnershipDnsEnvKey`) by `env-vars-builder`, for the
96
+ * application backend that serves the domain-ownership doors. Absent, every ownership challenge asks public DNS.
97
+ */
98
+ export const WildoOwnershipDnsStandInConfigSchema = z.strictObject({
99
+ // http(s) only: a bare `z.url()` admits `localhost:18319` as a URL whose SCHEME is `localhost:`, which the backend
100
+ // would then fail to fetch at the first verification instead of here.
101
+ baseUrl: z.url({ protocol: /^https?$/ }).describe("The stand-in's base URL, e.g. `http://localhost:18319`. Its DNS path is appended to it."),
102
+ });
86
103
  /**
87
104
  * The shape of a STANDALONE environment descriptor — one that owns its infrastructure.
88
105
  *
@@ -92,23 +109,10 @@ function getConsumedInfraCspServiceKeys() {
92
109
  * descriptors can agree on what an application-owned field IS without restating it.
93
110
  */
94
111
  const WILDO_INFRA_ENV_CONFIG_SHAPE = {
95
- /**
96
- * Authored schema-format version for this `wildo.infra.<env>.config.ts`,
97
- * expressed as a **SemVer 2.0.0 string** (e.g. `'1.0.0'`,
98
- * `'2.3.1-rc.1'`, `'1.0.0+build.42'`).
99
- *
100
- * @unimplemented Slice 3.5 wires a parse-time warning when this is
101
- * authored. The full schema-evolution / migration tooling story is
102
- * tracked under deferred-backlog **D-5**
103
- * (`.cursor/plans/post-flattening-completion-fixes.md`). Symmetrical
104
- * with `WildoSaasConfig.version` — both reservations land/retire
105
- * together so the migration tooling, when it ships, can target both
106
- * authored configs through a single mechanism. SemVer (not a bare
107
- * integer) was chosen for the same reason as on the SaaS-config side
108
- * — see the JSDoc on `WildoSaasConfig.version`. Field is `.optional()`
109
- * (no Zod default) so unauthored configs stay silent.
112
+ /*
113
+ * No `version` key, deliberately (#3496): the descriptor's compatibility is fixed by the `@wildo-ai/*` release the
114
+ * application installs, exactly as for `wildo.saas.config.ts`. The strict object refuses one if it is authored.
110
115
  */
111
- version: WildoSchemaVersionSchema.optional(),
112
116
  environment: WildoEnvironmentIdSchema,
113
117
  locationType: z.enum(WildoLocationType).optional(),
114
118
  runtimeEnvironment: z.enum(RuntimeEnvironment).optional(),
@@ -126,6 +130,25 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
126
130
  * Ignored by KUBERNETES environments, which take their storage from PVs rather than from here.
127
131
  */
128
132
  localDataStorage: z.enum(WildoLocalDataStorage).optional(),
133
+ /**
134
+ * Which optional backing services this environment runs — its footprint (#2303). Omit it and the
135
+ * environment runs `FULL`, every service its declarations ask for.
136
+ *
137
+ * `SMALL` runs no ClamAV, no immudb and no mongot. A small internal tool usually needs none of them, and
138
+ * they are the heaviest containers in the stack. Each capability that depends on one is REFUSED at the
139
+ * application's boot when the application declares it, with a message naming this profile and the remedy:
140
+ * a `z_file({ scanPolicy: 'required' })` field (antivirus), an enabled `COMPLIANCE_AUDIT_TRAIL` with no
141
+ * external audit store (immudb), a `.ragSource()` field on a MongoDB-persisted resource (mongot; on
142
+ * PostgreSQL pgvector serves vector search inside the database, so it stays available).
143
+ *
144
+ * Moving between profiles migrates no data: a service the profile adds starts empty (an audit store with
145
+ * no history, a search index that mongot builds from the collections), and one it removes leaves its
146
+ * data where it was.
147
+ *
148
+ * Docker Compose environments only for now: a KUBERNETES environment declaring a non-`FULL` profile is
149
+ * refused, because its manifests would ignore it.
150
+ */
151
+ serviceProfile: z.enum(EnvironmentServiceProfile).optional(),
129
152
  /**
130
153
  * The store the PLATFORM's own data lives in (apps-manager + module-registry:
131
154
  * users, organizations, applications, sessions, API keys).
@@ -353,6 +376,16 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
353
376
  * {@link WildoEnvironmentProviderConfigurationsSchema}.
354
377
  */
355
378
  providerConfigurations: WildoEnvironmentProviderConfigurationsSchema.optional(),
379
+ /**
380
+ * Per-environment email values — today the shared RECEIVING domain, `email.inbound.sharedDomain`, which differs
381
+ * per deployment. See {@link WildoInfraEmailConfigSchema}.
382
+ */
383
+ email: WildoInfraEmailConfigSchema.optional(),
384
+ /**
385
+ * LOCAL-ONLY: the double that answers domain-ownership challenges for names nobody can publish (#2519). See
386
+ * {@link WildoOwnershipDnsStandInConfigSchema}.
387
+ */
388
+ ownershipDnsStandIn: WildoOwnershipDnsStandInConfigSchema.optional(),
356
389
  /**
357
390
  * Per-environment origins the documentation site is BUILT against.
358
391
  *
@@ -361,8 +394,9 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
361
394
  * per environment is what lets `wildo config sync` carry them, instead of an operator
362
395
  * remembering three env vars on a build command.
363
396
  *
364
- * Projected to `WILDO_DOCS_API_BASE_URL` / `WILDO_DOCS_APP_URL` /
365
- * `WILDO_DOCS_FRONTEND_SERVICE_NAME` by `env-vars-builder`.
397
+ * Passed as `WILDO_DOCS_API_BASE_URL` / `WILDO_DOCS_APP_URL` /
398
+ * `WILDO_DOCS_FRONTEND_SERVICE_NAME` to the documentation image's build and to the CI workflow, read from the
399
+ * loaded descriptor; no runtime environment carries them (#2310).
366
400
  * See {@link WildoDocumentationSiteConfigSchema}.
367
401
  */
368
402
  documentationSite: WildoDocumentationSiteConfigSchema.optional(),
@@ -398,8 +432,7 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
398
432
  *
399
433
  * 1. Platform default (per-`AppFrontendType` baseline) — `csp-defaults.ts`.
400
434
  * 2. App-static (per-frontend `csp?` block) — authored on each
401
- * service-definition (today: `wildo.tech-doc.config.ts.csp?` per
402
- * `saas-technical-doc.md` Step 7.5).
435
+ * service-definition (today: `wildo.tech-doc.config.ts.csp?`).
403
436
  * 3. **THIS FIELD** — env-specific overrides authored under
404
437
  * `wildo.infra.<env>.config.ts.csp?[serviceKey]`. The
405
438
  * `resolveCspPolicy({ envOverride, environmentId })` resolver
@@ -487,6 +520,12 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
487
520
  * and refused in a local environment, whose platform bucket is a constant shared by every application.
488
521
  */
489
522
  platformStorage: WildoPlatformStorageConfigSchema.optional(),
523
+ /**
524
+ * Where the PLATFORM keeps the keys it holds for applications (#2933): a self-hosted OpenBao the CLI renders, or the
525
+ * operator's own Vault. See {@link WildoPlatformKeyManagementConfigSchema}. Absent, apps-manager seals every key
526
+ * under its own key-encryption root and serves no Vault provider.
527
+ */
528
+ platformKeyManagement: WildoPlatformKeyManagementConfigSchema.optional(),
490
529
  devCompanion: InfraServiceAddressingSchema.optional(),
491
530
  /**
492
531
  * Present only on an environment RESOLVED from a hosted descriptor: this application runs on the
@@ -507,6 +546,39 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
507
546
  infraConfigPath: z.string().regex(ABSOLUTE_PATH_PATTERN, 'infrastructureHost.infraConfigPath must be absolute once resolved.'),
508
547
  }).optional(),
509
548
  };
549
+ /**
550
+ * #2303 — the database families an environment that OWNS its platform runs, each with the declarations that bring it
551
+ * in, derived from what the descriptor declares rather than asked: the platform's engine (authored, or inferred from
552
+ * the declared stores), the application's (`resolveApplicationDatabaseEngine`, absent means PostgreSQL), and every
553
+ * declared database store.
554
+ *
555
+ * The inferred platform engine needs no copy of the CLI's inference (`inferDatabaseChoiceFromInfraConfig`): it always
556
+ * names a DECLARED store when one is declared, so it can add no family the declared stores do not already add. Only
557
+ * when NO store is declared does it bring one in on its own, MongoDB, as an implicit self-hosted mongod.
558
+ */
559
+ function databaseFamiliesRunByEnvironment(config) {
560
+ const families = new Map();
561
+ const add = (engine, why) => {
562
+ families.set(engine, [...(families.get(engine) ?? []), why]);
563
+ };
564
+ const declaredStores = [
565
+ [BackingServiceKind.MONGODB, DatabaseEngine.MONGODB],
566
+ [BackingServiceKind.POSTGRESQL, DatabaseEngine.POSTGRESQL],
567
+ ];
568
+ let anyStoreDeclared = false;
569
+ for (const [kind, engine] of declaredStores) {
570
+ if (config.backingServices[kind] !== undefined) {
571
+ anyStoreDeclared = true;
572
+ add(engine, `backingServices.${kind}`);
573
+ }
574
+ }
575
+ if (config.database)
576
+ add(config.database.engine, 'database.engine');
577
+ else if (!anyStoreDeclared)
578
+ add(DatabaseEngine.MONGODB, 'the platform store inferred when no database store is declared');
579
+ add(resolveApplicationDatabaseEngine(config.applicationDatabase), config.applicationDatabase ? 'applicationDatabase.engine' : 'the application\'s default engine (applicationDatabase absent)');
580
+ return families;
581
+ }
510
582
  const WildoInfraEnvConfigInputSchema = z.object(WILDO_INFRA_ENV_CONFIG_SHAPE).strict().superRefine((config, ctx) => {
511
583
  const resolvedEnvironment = config.environment;
512
584
  const resolvedLocationType = config.locationType
@@ -615,6 +687,14 @@ const WildoInfraEnvConfigInputSchema = z.object(WILDO_INFRA_ENV_CONFIG_SHAPE).st
615
687
  message: 'applicationCreationVerification is local-only and must be authored in wildo.infra.local.config.ts.',
616
688
  });
617
689
  }
690
+ if (!isLocalEnvironmentId(resolvedEnvironment) && config.ownershipDnsStandIn !== undefined) {
691
+ ctx.addIssue({
692
+ code: 'custom',
693
+ path: ['ownershipDnsStandIn'],
694
+ message: 'ownershipDnsStandIn is local-only and must be authored in wildo.infra.local.config.ts: in every other environment a '
695
+ + 'domain-ownership proof is what public DNS says, and a backend outside development and test refuses to start with it set.',
696
+ });
697
+ }
618
698
  if (!isLocalEnvironmentId(resolvedEnvironment)
619
699
  && resolvedLocationType === WildoLocationType.REMOTE
620
700
  && config.runtime === WildoDeploymentRuntime.KUBERNETES) {
@@ -681,6 +761,42 @@ const WildoInfraEnvConfigInputSchema = z.object(WILDO_INFRA_ENV_CONFIG_SHAPE).st
681
761
  + 'application beside it and uses the fixed platform bucket. Author it only in wildo.infra.remote.config.ts.',
682
762
  });
683
763
  }
764
+ /*
765
+ * #2303 — a service profile and a declaration that contradict it. `backingServices.clamav` / `.immudb`
766
+ * with `source: SELF` asks the environment to RUN a service the profile says it does not run; neither
767
+ * can win silently, so the descriptor is refused here, while it is open. The compose generator refuses
768
+ * the same pair again (an invariant enforced at one site is enforced at none of the others).
769
+ */
770
+ if (config.serviceProfile !== undefined) {
771
+ // #2303 — both lanes render a profile now (the Kubernetes manifests since the second slice), so a KUBERNETES
772
+ // environment may declare one; its refusal was the stand-in for a lane that ignored the declaration.
773
+ const databaseFamilies = databaseFamiliesRunByEnvironment(config);
774
+ if (environmentServiceProfileRunsOneDatabaseFamily(config.serviceProfile) && config.infrastructureHost === undefined && databaseFamilies.size > 1) {
775
+ ctx.addIssue({
776
+ code: 'custom',
777
+ path: ['serviceProfile'],
778
+ message: `serviceProfile '${config.serviceProfile}' runs ONE database family, and this environment runs `
779
+ + `${[...databaseFamilies.entries()].map(([engine, why]) => `${engine} (${why.join(', ')})`).join(' and ')}. `
780
+ + 'Put the platform and the application on the same engine (`database.engine` and `applicationDatabase.engine`) '
781
+ + `and declare only that store in \`backingServices\`, or set serviceProfile to '${EnvironmentServiceProfile.FULL}'.`,
782
+ });
783
+ }
784
+ for (const [kind, service] of [
785
+ [BackingServiceKind.CLAMAV, EnvironmentServiceProfileOptionalService.ANTIVIRUS_SCANNER],
786
+ [BackingServiceKind.IMMUDB, EnvironmentServiceProfileOptionalService.IMMUTABLE_AUDIT_STORE],
787
+ ]) {
788
+ if (config.backingServices[kind]?.source === BackingServiceSource.SELF
789
+ && environmentServiceProfileOmits(config.serviceProfile, service)) {
790
+ ctx.addIssue({
791
+ code: 'custom',
792
+ path: ['backingServices', kind],
793
+ message: `${describeServiceOmittedByEnvironmentServiceProfile(config.serviceProfile, service)} `
794
+ + `\`backingServices.${kind}: { source: SELF }\` asks it to run one. Remove the declaration, or set `
795
+ + `serviceProfile to '${EnvironmentServiceProfile.FULL}'.`,
796
+ });
797
+ }
798
+ }
799
+ }
684
800
  if (config.cdn && resolvedLocationType !== WildoLocationType.REMOTE) {
685
801
  for (const serviceKey of Object.keys(config.cdn)) {
686
802
  ctx.addIssue({
@@ -698,7 +814,6 @@ export const WildoInfraEnvConfigSchema = WildoInfraEnvConfigInputSchema.transfor
698
814
  const locationType = config.locationType
699
815
  ?? (isLocalEnvironmentId(environment) ? WildoLocationType.LOCAL : WildoLocationType.REMOTE);
700
816
  return {
701
- version: config.version,
702
817
  environment,
703
818
  locationType,
704
819
  runtimeEnvironment: config.runtimeEnvironment,
@@ -708,6 +823,8 @@ export const WildoInfraEnvConfigSchema = WildoInfraEnvConfigInputSchema.transfor
708
823
  * reader sees one answer. The derivation is total over `WildoLocationType`.
709
824
  */
710
825
  localDataStorage: config.localDataStorage ?? resolveDefaultLocalDataStorage(locationType),
826
+ /** Resolved here, like `localDataStorage`, so every reader sees the settled answer (#2303). */
827
+ serviceProfile: config.serviceProfile ?? DEFAULT_ENVIRONMENT_SERVICE_PROFILE,
711
828
  /**
712
829
  * Projected EXPLICITLY, like every field here — this list IS the contract, and a field omitted
713
830
  * from it is silently dropped no matter what the input schema accepted. `undefined` when the
@@ -726,12 +843,15 @@ export const WildoInfraEnvConfigSchema = WildoInfraEnvConfigInputSchema.transfor
726
843
  observability: config.observability,
727
844
  providerSelection: config.providerSelection,
728
845
  providerConfigurations: config.providerConfigurations,
846
+ email: config.email,
847
+ ownershipDnsStandIn: config.ownershipDnsStandIn,
729
848
  applicationCreationVerification: config.applicationCreationVerification,
730
849
  serviceAuth: config.serviceAuth,
731
850
  csp: config.csp,
732
851
  cdn: config.cdn,
733
852
  systemsOfRecord: config.systemsOfRecord,
734
853
  platformStorage: config.platformStorage,
854
+ platformKeyManagement: config.platformKeyManagement,
735
855
  documentationSite: config.documentationSite,
736
856
  devCompanion: config.devCompanion,
737
857
  infrastructureHost: config.infrastructureHost,
@@ -783,7 +903,6 @@ export var InfraEnvFieldOwner;
783
903
  * schema accepts exactly the APPLICATION and PARTITIONED members.
784
904
  */
785
905
  export const INFRA_ENV_FIELD_OWNERSHIP = {
786
- version: InfraEnvFieldOwner.APPLICATION,
787
906
  environment: InfraEnvFieldOwner.APPLICATION,
788
907
  locationType: InfraEnvFieldOwner.HOST,
789
908
  runtimeEnvironment: InfraEnvFieldOwner.HOST,
@@ -797,6 +916,12 @@ export const INFRA_ENV_FIELD_OWNERSHIP = {
797
916
  * describing a file it does not own.
798
917
  */
799
918
  localDataStorage: InfraEnvFieldOwner.HOST,
919
+ /*
920
+ * HOST, for the same reason as `localDataStorage`: it decides which containers the SHARED platform runs.
921
+ * A hosted application cannot ask for an immudb its host does not run, and the profile reaches it from
922
+ * the host so its boot refuses a capability the shared platform does not back (#2303).
923
+ */
924
+ serviceProfile: InfraEnvFieldOwner.HOST,
800
925
  database: InfraEnvFieldOwner.HOST,
801
926
  applicationDatabase: InfraEnvFieldOwner.APPLICATION,
802
927
  publicDomain: InfraEnvFieldOwner.APPLICATION,
@@ -814,6 +939,18 @@ export const INFRA_ENV_FIELD_OWNERSHIP = {
814
939
  observability: InfraEnvFieldOwner.APPLICATION,
815
940
  providerSelection: InfraEnvFieldOwner.APPLICATION,
816
941
  providerConfigurations: InfraEnvFieldOwner.APPLICATION,
942
+ /*
943
+ * APPLICATION. The receiving domain is THIS application's address space in this environment: two applications on one
944
+ * platform receive on different domains, and a hosted application inheriting its host's would route its mail into
945
+ * another tenant's organizations.
946
+ */
947
+ email: InfraEnvFieldOwner.APPLICATION,
948
+ /*
949
+ * APPLICATION. The stand-in answers for the domains THIS application's tenants prove they own on a developer machine —
950
+ * the double standing in for their corporate IT. A hosted application inheriting its host's would verify its tenants'
951
+ * domains against another application's test double.
952
+ */
953
+ ownershipDnsStandIn: InfraEnvFieldOwner.APPLICATION,
817
954
  /*
818
955
  * APPLICATION. `systemsOfRecord` says where the instances THIS application declares in its saas config live in
819
956
  * this environment — an external system it reads from (an ERP), never part of the shared substrate its host
@@ -828,6 +965,11 @@ export const INFRA_ENV_FIELD_OWNERSHIP = {
828
965
  csp: InfraEnvFieldOwner.APPLICATION,
829
966
  cdn: InfraEnvFieldOwner.APPLICATION,
830
967
  platformStorage: InfraEnvFieldOwner.HOST,
968
+ /*
969
+ * HOST. One apps-manager holds one Vault for every application on the platform, and the host writes the compose file
970
+ * and manifests that run it; a hosted application authoring it would be describing a custodian it does not run.
971
+ */
972
+ platformKeyManagement: InfraEnvFieldOwner.HOST,
831
973
  devCompanion: InfraEnvFieldOwner.APPLICATION,
832
974
  infrastructureHost: InfraEnvFieldOwner.RESOLUTION,
833
975
  };
@@ -931,7 +1073,6 @@ export const WildoHostedInfraEnvConfigSchema = z.strictObject({
931
1073
  */
932
1074
  applicationRoot: z.string().min(1).refine((value) => !ABSOLUTE_PATH_PATTERN.test(value), 'infrastructureHost.applicationRoot must be relative to this application root (e.g. "../wonder-todos"): the descriptor is committed, and an absolute path only exists on one machine.'),
933
1075
  }, refuseHostOwnedKeys('infrastructureHost')),
934
- version: WILDO_INFRA_ENV_CONFIG_SHAPE.version,
935
1076
  environment: WILDO_INFRA_ENV_CONFIG_SHAPE.environment,
936
1077
  applicationDatabase: WILDO_INFRA_ENV_CONFIG_SHAPE.applicationDatabase,
937
1078
  publicDomain: WILDO_INFRA_ENV_CONFIG_SHAPE.publicDomain,
@@ -949,6 +1090,8 @@ export const WildoHostedInfraEnvConfigSchema = z.strictObject({
949
1090
  observability: WILDO_INFRA_ENV_CONFIG_SHAPE.observability,
950
1091
  providerSelection: WILDO_INFRA_ENV_CONFIG_SHAPE.providerSelection,
951
1092
  providerConfigurations: WILDO_INFRA_ENV_CONFIG_SHAPE.providerConfigurations,
1093
+ email: WILDO_INFRA_ENV_CONFIG_SHAPE.email,
1094
+ ownershipDnsStandIn: WILDO_INFRA_ENV_CONFIG_SHAPE.ownershipDnsStandIn,
952
1095
  systemsOfRecord: WILDO_INFRA_ENV_CONFIG_SHAPE.systemsOfRecord,
953
1096
  documentationSite: WILDO_INFRA_ENV_CONFIG_SHAPE.documentationSite,
954
1097
  applicationCreationVerification: WILDO_INFRA_ENV_CONFIG_SHAPE.applicationCreationVerification,
@@ -975,43 +1118,11 @@ export function isHostedInfraEnvConfig(config) {
975
1118
  const host = config.infrastructureHost;
976
1119
  return host !== undefined && host !== null && !('infraConfigPath' in host);
977
1120
  }
978
- /**
979
- * Scope `csp.<serviceKey>` warning suppression to the current async load path.
980
- *
981
- * The docs CSP generator loads authored infra config through `loadConfig()`,
982
- * which evaluates `defineInfraEnvConfig(...)` inside the same process. Using
983
- * an async-local context lets that loader declare which keys are actively
984
- * consumed without mutating `process.env` across concurrent config loads.
985
- *
986
- * `WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS` remains supported as a coarse global
987
- * fallback (tests / external callers), but in-process loaders SHOULD prefer
988
- * this helper so suppression cannot leak between unrelated async work.
989
- */
990
- export async function withConsumedInfraCspServiceKeys(serviceKeys, callback) {
991
- const normalizedKeys = new Set([...serviceKeys]
992
- .map((value) => value.trim())
993
- .filter((value) => value.length > 0));
994
- if (normalizedKeys.size === 0) {
995
- return await callback();
996
- }
997
- const parentKeys = consumedInfraCspServiceKeysContext.getStore();
998
- const mergedKeys = new Set(parentKeys ?? []);
999
- for (const serviceKey of normalizedKeys) {
1000
- mergedKeys.add(serviceKey);
1001
- }
1002
- return await consumedInfraCspServiceKeysContext.run(mergedKeys, callback);
1003
- }
1004
1121
  /**
1005
1122
  * Define an app-owned environment descriptor under `infrastructure/<env>`.
1006
1123
  *
1007
1124
  * This is the canonical authored env contract for the flattened targeted-app
1008
1125
  * layout.
1009
- *
1010
- * After successful parsing, emits Slice 3.5 `@unimplemented` warnings for
1011
- * authored fields that remain reserved or are not declared as consumed by
1012
- * the current loader — see `_unimplemented/unimplemented-field-warning.ts`
1013
- * for the design rationale (channel = stderr, dedupe = once-per-call,
1014
- * format = single-line with backlog ID).
1015
1126
  */
1016
1127
  export function defineInfraEnvConfig(config) {
1017
1128
  /*
@@ -1025,9 +1136,7 @@ export function defineInfraEnvConfig(config) {
1025
1136
  + 'An application running on another application\'s infrastructure is declared with defineHostedInfraEnvConfig({ '
1026
1137
  + 'infrastructureHost: { applicationRoot: \'../<host-app>\' }, … }).');
1027
1138
  }
1028
- const parsed = WildoInfraEnvConfigSchema.parse(config);
1029
- emitInfraUnimplementedRuntimeWarnings(parsed);
1030
- return parsed;
1139
+ return WildoInfraEnvConfigSchema.parse(config);
1031
1140
  }
1032
1141
  /**
1033
1142
  * Define an environment descriptor for an application that runs on ANOTHER application's infrastructure.
@@ -1042,64 +1151,6 @@ export function defineInfraEnvConfig(config) {
1042
1151
  * The result is NOT an environment yet: `loadInfraEnvConfig` resolves it against the host.
1043
1152
  */
1044
1153
  export function defineHostedInfraEnvConfig(config) {
1045
- const parsed = WildoHostedInfraEnvConfigSchema.parse(config);
1046
- emitInfraUnimplementedRuntimeWarnings(parsed);
1047
- return parsed;
1048
- }
1049
- /**
1050
- * Emit `@unimplemented` parse-time warnings for every authored
1051
- * `WildoInfraEnvConfig` field that remains reserved or is not declared as
1052
- * consumed by the current loader (Slice 3.5 contract — see
1053
- * `_unimplemented/unimplemented-field-warning.ts`).
1054
- *
1055
- * Surfaces today (2 field families):
1056
- *
1057
- * - `version` (!== undefined) → `D-5`
1058
- * - `csp.<serviceKey>` (each authored entry) → `B-2C` (auth-hardening
1059
- * Slice B Step 2 closeout — the schema reservation shipped, the
1060
- * superRefine guard against `viteDevLoosening: true` outside LOCAL
1061
- * is live, and `wildo dev sync-csp` declares the CSP-capable
1062
- * frontend service keys it consumes while loading authored infra
1063
- * config, so warnings remain reserved for genuinely unconsumed keys.)
1064
- *
1065
- * `logging.{level, formattedConsoleErrors}` is intentionally NOT in this
1066
- * list: Slice 3.5 wires both fields end-to-end (persistence,
1067
- * `env-vars-builder` → `LOG_LEVEL` / `LOG_FORMATTED_CONSOLE_ERRORS`,
1068
- * `LoggerService.loadConfiguration`), so they have a real runtime
1069
- * consumer and silence is the honest behavior.
1070
- *
1071
- * `domain` is intentionally NOT in this list either: Slice 3.5 deleted
1072
- * the field outright as a wrong-seam, and the post-Slice-3.5
1073
- * `external-public-domain-rename.md` follow-up renamed the canonical
1074
- * hostname seam to top-level `publicDomain` (replacing the misnamed
1075
- * `kubernetes.baseDomain` of Slice 3.5). Both `domain` and
1076
- * `kubernetes.baseDomain` are now strict-rejected by the schema —
1077
- * the canonical seam is `publicDomain` at the top level. See the
1078
- * strict-pin tests in `__tests__/define-infra-env-config.unimplemented.test.ts`.
1079
- *
1080
- * When the deferred backlog item lands, the matching `if` branch below
1081
- * MUST be removed in the same commit as the runtime wiring — leaving a
1082
- * stale warning is worse than silence.
1083
- */
1084
- function emitInfraUnimplementedRuntimeWarnings(config) {
1085
- const warn = createUnimplementedFieldWarner(UnimplementedFieldSource.INFRA_ENV_CONFIG);
1086
- const AUTH_HARDENING_PLAN_PATH = '.cursor/plans/auth-hardening.md';
1087
- const consumedCspServiceKeys = getConsumedInfraCspServiceKeys();
1088
- if (config.version !== undefined) {
1089
- warn('version', 'D-5');
1090
- }
1091
- if (config.csp !== undefined) {
1092
- // Walk every authored service key so a multi-service author
1093
- // (e.g. csp: { docs: {…}, app: {…} }) sees one warning per
1094
- // service — the dedupe key is the field path, so per-key
1095
- // emission is what matches the createUnimplementedFieldWarner
1096
- // contract.
1097
- for (const serviceKey of Object.keys(config.csp)) {
1098
- if (consumedCspServiceKeys.has(serviceKey)) {
1099
- continue;
1100
- }
1101
- warn(`csp.${serviceKey}`, 'B-2C', AUTH_HARDENING_PLAN_PATH);
1102
- }
1103
- }
1154
+ return WildoHostedInfraEnvConfigSchema.parse(config);
1104
1155
  }
1105
1156
  //# sourceMappingURL=define-infra-env-config.js.map