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

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 (231) hide show
  1. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +1 -1
  2. package/dist/esm/_unimplemented/unimplemented-field-warning.js +1 -1
  3. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -1
  4. package/dist/esm/blueprint/anchored-region.d.ts +83 -0
  5. package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
  6. package/dist/esm/blueprint/anchored-region.js +263 -0
  7. package/dist/esm/blueprint/anchored-region.js.map +1 -0
  8. package/dist/esm/blueprint/blueprint.schemas.d.ts +689 -0
  9. package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
  10. package/dist/esm/blueprint/blueprint.schemas.js +638 -0
  11. package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
  12. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  13. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  14. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
  15. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  16. package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
  17. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  18. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +21 -3
  19. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  20. package/dist/esm/bootstrap/bootstrap.schemas.js +14 -3
  21. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  22. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +121 -0
  23. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  24. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +129 -0
  25. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  26. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
  27. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  28. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  29. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  30. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
  31. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  32. package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
  33. package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
  34. package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
  35. package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
  36. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
  37. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
  38. package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
  39. package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
  40. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  41. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
  42. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
  43. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
  44. package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
  45. package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
  46. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  47. package/dist/esm/index.d.ts +15 -0
  48. package/dist/esm/index.d.ts.map +1 -1
  49. package/dist/esm/index.js +15 -0
  50. package/dist/esm/index.js.map +1 -1
  51. package/dist/esm/key-management/approval-seal-verifier.d.ts +216 -0
  52. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
  53. package/dist/esm/key-management/approval-seal-verifier.js +233 -0
  54. package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
  55. package/dist/esm/key-management/approval-seal.contracts.d.ts +131 -0
  56. package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
  57. package/dist/esm/key-management/approval-seal.contracts.js +115 -0
  58. package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
  59. package/dist/esm/key-management/data-key.contracts.d.ts +108 -0
  60. package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
  61. package/dist/esm/key-management/data-key.contracts.js +54 -0
  62. package/dist/esm/key-management/data-key.contracts.js.map +1 -0
  63. package/dist/esm/key-management/es256-jws.d.ts +60 -0
  64. package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
  65. package/dist/esm/key-management/es256-jws.js +135 -0
  66. package/dist/esm/key-management/es256-jws.js.map +1 -0
  67. package/dist/esm/key-management/key-provider.spi.d.ts +151 -0
  68. package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
  69. package/dist/esm/key-management/key-provider.spi.js +38 -0
  70. package/dist/esm/key-management/key-provider.spi.js.map +1 -0
  71. package/dist/esm/key-management/keyring-rotation.contracts.d.ts +93 -0
  72. package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
  73. package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
  74. package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
  75. package/dist/esm/key-management/keyring-status.contracts.d.ts +66 -0
  76. package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
  77. package/dist/esm/key-management/keyring-status.contracts.js +45 -0
  78. package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
  79. package/dist/esm/key-management/signature-request.contracts.d.ts +95 -0
  80. package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
  81. package/dist/esm/key-management/signature-request.contracts.js +96 -0
  82. package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
  83. package/dist/esm/key-management/signing-log-export.contracts.d.ts +216 -0
  84. package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
  85. package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
  86. package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
  87. package/dist/esm/key-management/vault-custody.contracts.d.ts +55 -0
  88. package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
  89. package/dist/esm/key-management/vault-custody.contracts.js +88 -0
  90. package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
  91. package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
  92. package/dist/esm/lockfile/lockfile-io.d.ts +7 -9
  93. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  94. package/dist/esm/lockfile/lockfile-io.js +23 -22
  95. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  96. package/dist/esm/lockfile/materialize-infra-section.d.ts +17 -14
  97. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  98. package/dist/esm/lockfile/materialize-infra-section.js +9 -9
  99. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  100. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +26 -2
  101. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  102. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +27 -2
  103. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  104. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
  105. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +9 -2
  106. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
  107. package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
  108. package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
  109. package/dist/esm/project-config/application-served-public-documents.loader.js +78 -0
  110. package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
  111. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  112. package/dist/esm/project-config/define-infra-env-config.d.ts +236 -15
  113. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  114. package/dist/esm/project-config/define-infra-env-config.js +104 -91
  115. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  116. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  117. package/dist/esm/project-config/define-saas-config.d.ts +133 -3
  118. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  119. package/dist/esm/project-config/define-saas-config.js +170 -19
  120. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  121. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  122. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
  123. package/dist/esm/project-config/hosted-infra-env-config.js +3 -0
  124. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
  125. package/dist/esm/project-config/index.d.ts +3 -0
  126. package/dist/esm/project-config/index.d.ts.map +1 -1
  127. package/dist/esm/project-config/index.js +3 -0
  128. package/dist/esm/project-config/index.js.map +1 -1
  129. package/dist/esm/project-config/loader.d.ts.map +1 -1
  130. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
  131. package/dist/esm/project-config/npm-version-range.js +39 -16
  132. package/dist/esm/project-config/npm-version-range.js.map +1 -1
  133. package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
  134. package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
  135. package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
  136. package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
  137. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
  138. package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
  139. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  140. package/dist/esm/project-config/provider-companion-discovery.js +13 -9
  141. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  142. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +32 -3
  143. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  144. package/dist/esm/project-config/provider-runtime-artifacts.js +67 -13
  145. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  146. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  147. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  148. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  149. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  150. package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
  151. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  152. package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
  153. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  154. package/dist/esm/project-config/shared/csp-defaults.d.ts +4 -5
  155. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  156. package/dist/esm/project-config/shared/csp-defaults.js +4 -5
  157. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
  158. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  159. package/dist/esm/project-config/shared/csp.schemas.d.ts +1 -2
  160. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  161. package/dist/esm/project-config/shared/csp.schemas.js +1 -2
  162. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  163. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  164. package/dist/esm/project-config/shared/environment.schemas.d.ts +6 -0
  165. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  166. package/dist/esm/project-config/shared/environment.schemas.js +8 -1
  167. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  168. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  169. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
  170. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +1 -0
  171. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  172. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +3 -0
  173. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  174. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +4 -0
  175. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  176. package/dist/esm/project-config/shared/minion-resource-access.validation.js +6 -2
  177. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  178. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +250 -0
  179. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
  180. package/dist/esm/project-config/shared/platform-key-management.schemas.js +194 -0
  181. package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
  182. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  183. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
  184. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
  185. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  186. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
  187. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  188. package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
  189. package/dist/esm/registry/index.d.ts +1 -0
  190. package/dist/esm/registry/index.d.ts.map +1 -1
  191. package/dist/esm/registry/index.js +1 -0
  192. package/dist/esm/registry/index.js.map +1 -1
  193. package/dist/esm/registry/local-checkout-source.d.ts +22 -2
  194. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
  195. package/dist/esm/registry/local-checkout-source.js +66 -3
  196. package/dist/esm/registry/local-checkout-source.js.map +1 -1
  197. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +10 -0
  198. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  199. package/dist/esm/registry/module-artifact.schemas.d.ts +23 -0
  200. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  201. package/dist/esm/registry/module-manifest.schemas.d.ts +336 -18
  202. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  203. package/dist/esm/registry/module-manifest.schemas.js +245 -19
  204. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  205. package/dist/esm/registry/module-search.schemas.d.ts +2 -0
  206. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
  207. package/dist/esm/registry/module-search.schemas.js +14 -1
  208. package/dist/esm/registry/module-search.schemas.js.map +1 -1
  209. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  210. package/dist/esm/registry/registry-errors.d.ts +22 -2
  211. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  212. package/dist/esm/registry/registry-errors.js +28 -2
  213. package/dist/esm/registry/registry-errors.js.map +1 -1
  214. package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
  215. package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
  216. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  217. package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
  218. package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
  219. package/dist/esm/registry/registry-url-resolution.js +157 -0
  220. package/dist/esm/registry/registry-url-resolution.js.map +1 -0
  221. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  222. package/dist/esm/schemas/framework-secrets.schemas.d.ts +55 -0
  223. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  224. package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
  225. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  226. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  227. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  228. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  229. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
  230. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  231. package/package.json +7 -7
@@ -2,6 +2,44 @@ import { RuntimeEnvironment } from '@wildo-ai/saas-models';
2
2
  import { z } from 'zod';
3
3
  import { BackingServiceSource } from './shared/backing-services.schemas';
4
4
  import { DatabaseEngine, WildoDeploymentRuntime, WildoLocationType, WildoLocalDataStorage, WildoImageTagStrategy } from './shared/environment.schemas';
5
+ /**
6
+ * Per-environment email values, laid over `email` in the backend configuration (`saas-config.backend.ts`) for THIS
7
+ * environment only.
8
+ *
9
+ * `inbound.sharedDomain` is the shared receiving domain: every organization is reachable at `{slug}@{sharedDomain}`,
10
+ * and the domain's MX points at the receiving provider. It is a property of a DEPLOYMENT, not of the application: a
11
+ * local stack receives through a developer's own provider account (Resend assigns each account an `<id>.resend.app`
12
+ * domain), staging and production through their own domains, and one constant in the backend configuration made every
13
+ * environment claim the same domain — or, kept generic, made local receiving impossible to exercise. Validated by the
14
+ * same schema the backend configuration uses (`InboundEmailConfigSchema.shape.sharedDomain`), so the two cannot
15
+ * disagree about what a domain is.
16
+ *
17
+ * Projected to `WILDO_INBOUND_EMAIL_SHARED_DOMAIN` by `env-vars-builder`; the backend's inbound services read it
18
+ * through `resolveInboundEmailConfig`, where it wins over the authored value. Absent, the authored value applies.
19
+ */
20
+ export declare const WildoInfraEmailConfigSchema: z.ZodObject<{
21
+ inbound: z.ZodOptional<z.ZodObject<{
22
+ sharedDomain: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strict>>;
24
+ }, z.core.$strict>;
25
+ export type WildoInfraEmailConfig = z.output<typeof WildoInfraEmailConfigSchema>;
26
+ /**
27
+ * Where THIS local environment's ownership-DNS stand-in answers (#2519): the development/test double that answers a
28
+ * domain-ownership challenge for a name nobody can publish — a corporate domain such as `wonder-group.test`, whose
29
+ * "IT department" on a developer machine is a test double (`client-org-mock`) rather than a DNS zone.
30
+ *
31
+ * A domain-ownership proof is what PUBLIC DNS says, everywhere else. So this is LOCAL-ONLY — refused by this schema in
32
+ * any other environment — and the backend honours it only where its declared runtime environment is development or
33
+ * test, and REFUSES TO START with it set anywhere else (`assertOwnershipDnsStandInAdmitted` in the backend). The
34
+ * stand-in answers `GET {baseUrl}/__wildo/dns/txt?name=<name>` with `{ "records": ["…"] }`.
35
+ *
36
+ * Projected to `WILDO_OWNERSHIP_DNS_STAND_IN_URL` (`PlatformOwnershipDnsEnvKey`) by `env-vars-builder`, for the
37
+ * application backend that serves the domain-ownership doors. Absent, every ownership challenge asks public DNS.
38
+ */
39
+ export declare const WildoOwnershipDnsStandInConfigSchema: z.ZodObject<{
40
+ baseUrl: z.ZodURL;
41
+ }, z.core.$strict>;
42
+ export type WildoOwnershipDnsStandInConfig = z.output<typeof WildoOwnershipDnsStandInConfigSchema>;
5
43
  /**
6
44
  * The shape of a STANDALONE environment descriptor — one that owns its infrastructure.
7
45
  *
@@ -358,6 +396,22 @@ declare const WILDO_INFRA_ENV_CONFIG_SHAPE: {
358
396
  * {@link WildoEnvironmentProviderConfigurationsSchema}.
359
397
  */
360
398
  providerConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
399
+ /**
400
+ * Per-environment email values — today the shared RECEIVING domain, `email.inbound.sharedDomain`, which differs
401
+ * per deployment. See {@link WildoInfraEmailConfigSchema}.
402
+ */
403
+ email: z.ZodOptional<z.ZodObject<{
404
+ inbound: z.ZodOptional<z.ZodObject<{
405
+ sharedDomain: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strict>>;
407
+ }, z.core.$strict>>;
408
+ /**
409
+ * LOCAL-ONLY: the double that answers domain-ownership challenges for names nobody can publish (#2519). See
410
+ * {@link WildoOwnershipDnsStandInConfigSchema}.
411
+ */
412
+ ownershipDnsStandIn: z.ZodOptional<z.ZodObject<{
413
+ baseUrl: z.ZodURL;
414
+ }, z.core.$strict>>;
361
415
  /**
362
416
  * Per-environment origins the documentation site is BUILT against.
363
417
  *
@@ -520,6 +574,47 @@ declare const WILDO_INFRA_ENV_CONFIG_SHAPE: {
520
574
  platformStorage: z.ZodOptional<z.ZodObject<{
521
575
  bucket: z.ZodString;
522
576
  }, z.core.$strict>>;
577
+ /**
578
+ * Where the PLATFORM keeps the keys it holds for applications (#2933): a self-hosted OpenBao the CLI renders, or the
579
+ * operator's own Vault. See {@link WildoPlatformKeyManagementConfigSchema}. Absent, apps-manager seals every key
580
+ * under its own key-encryption root and serves no Vault provider.
581
+ */
582
+ platformKeyManagement: z.ZodOptional<z.ZodObject<{
583
+ vault: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
584
+ source: z.ZodLiteral<BackingServiceSource.SELF>;
585
+ }, z.core.$strict>, z.ZodObject<{
586
+ source: z.ZodLiteral<BackingServiceSource.MANAGED>;
587
+ address: z.ZodURL;
588
+ namespace: z.ZodOptional<z.ZodString>;
589
+ transitMount: z.ZodOptional<z.ZodString>;
590
+ kvMount: z.ZodOptional<z.ZodString>;
591
+ keyNamePrefix: z.ZodOptional<z.ZodString>;
592
+ }, z.core.$strict>], "source">>;
593
+ awsKms: z.ZodOptional<z.ZodObject<{
594
+ region: z.ZodString;
595
+ signerRoleArn: z.ZodString;
596
+ operatorRoleArn: z.ZodString;
597
+ endpoint: z.ZodOptional<z.ZodURL>;
598
+ }, z.core.$strict>>;
599
+ googleCloudKms: z.ZodOptional<z.ZodObject<{
600
+ keyRing: z.ZodString;
601
+ signerServiceAccount: z.ZodEmail;
602
+ operatorServiceAccount: z.ZodEmail;
603
+ protectionLevel: z.ZodDefault<z.ZodEnum<typeof import(".").PlatformGoogleKmsKeyProtection>>;
604
+ }, z.core.$strict>>;
605
+ azureKeyVault: z.ZodOptional<z.ZodObject<{
606
+ vaultUrl: z.ZodURL;
607
+ signerClientId: z.ZodUUID;
608
+ operatorClientId: z.ZodUUID;
609
+ hsm: z.ZodDefault<z.ZodBoolean>;
610
+ logAnalyticsWorkspaceId: z.ZodOptional<z.ZodUUID>;
611
+ }, z.core.$strict>>;
612
+ pkcs11: z.ZodOptional<z.ZodObject<{
613
+ modulePath: z.ZodString;
614
+ tokenLabel: z.ZodString;
615
+ hardwareTokenModels: z.ZodDefault<z.ZodArray<z.ZodString>>;
616
+ }, z.core.$strict>>;
617
+ }, z.core.$strict>>;
523
618
  devCompanion: z.ZodOptional<z.ZodObject<{
524
619
  host: z.ZodOptional<z.ZodString>;
525
620
  port: z.ZodOptional<z.ZodNumber>;
@@ -665,6 +760,14 @@ export declare const WildoInfraEnvConfigSchema: z.ZodPipe<z.ZodObject<{
665
760
  whenUnavailable: z.ZodOptional<z.ZodArray<z.ZodString>>;
666
761
  }, z.core.$strict>>>;
667
762
  providerConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
763
+ email: z.ZodOptional<z.ZodObject<{
764
+ inbound: z.ZodOptional<z.ZodObject<{
765
+ sharedDomain: z.ZodOptional<z.ZodString>;
766
+ }, z.core.$strict>>;
767
+ }, z.core.$strict>>;
768
+ ownershipDnsStandIn: z.ZodOptional<z.ZodObject<{
769
+ baseUrl: z.ZodURL;
770
+ }, z.core.$strict>>;
668
771
  documentationSite: z.ZodOptional<z.ZodObject<{
669
772
  apiBaseUrl: z.ZodOptional<z.ZodString>;
670
773
  appUrl: z.ZodOptional<z.ZodString>;
@@ -704,6 +807,42 @@ export declare const WildoInfraEnvConfigSchema: z.ZodPipe<z.ZodObject<{
704
807
  platformStorage: z.ZodOptional<z.ZodObject<{
705
808
  bucket: z.ZodString;
706
809
  }, z.core.$strict>>;
810
+ platformKeyManagement: z.ZodOptional<z.ZodObject<{
811
+ vault: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
812
+ source: z.ZodLiteral<BackingServiceSource.SELF>;
813
+ }, z.core.$strict>, z.ZodObject<{
814
+ source: z.ZodLiteral<BackingServiceSource.MANAGED>;
815
+ address: z.ZodURL;
816
+ namespace: z.ZodOptional<z.ZodString>;
817
+ transitMount: z.ZodOptional<z.ZodString>;
818
+ kvMount: z.ZodOptional<z.ZodString>;
819
+ keyNamePrefix: z.ZodOptional<z.ZodString>;
820
+ }, z.core.$strict>], "source">>;
821
+ awsKms: z.ZodOptional<z.ZodObject<{
822
+ region: z.ZodString;
823
+ signerRoleArn: z.ZodString;
824
+ operatorRoleArn: z.ZodString;
825
+ endpoint: z.ZodOptional<z.ZodURL>;
826
+ }, z.core.$strict>>;
827
+ googleCloudKms: z.ZodOptional<z.ZodObject<{
828
+ keyRing: z.ZodString;
829
+ signerServiceAccount: z.ZodEmail;
830
+ operatorServiceAccount: z.ZodEmail;
831
+ protectionLevel: z.ZodDefault<z.ZodEnum<typeof import(".").PlatformGoogleKmsKeyProtection>>;
832
+ }, z.core.$strict>>;
833
+ azureKeyVault: z.ZodOptional<z.ZodObject<{
834
+ vaultUrl: z.ZodURL;
835
+ signerClientId: z.ZodUUID;
836
+ operatorClientId: z.ZodUUID;
837
+ hsm: z.ZodDefault<z.ZodBoolean>;
838
+ logAnalyticsWorkspaceId: z.ZodOptional<z.ZodUUID>;
839
+ }, z.core.$strict>>;
840
+ pkcs11: z.ZodOptional<z.ZodObject<{
841
+ modulePath: z.ZodString;
842
+ tokenLabel: z.ZodString;
843
+ hardwareTokenModels: z.ZodDefault<z.ZodArray<z.ZodString>>;
844
+ }, z.core.$strict>>;
845
+ }, z.core.$strict>>;
707
846
  devCompanion: z.ZodOptional<z.ZodObject<{
708
847
  host: z.ZodOptional<z.ZodString>;
709
848
  port: z.ZodOptional<z.ZodNumber>;
@@ -833,6 +972,14 @@ export declare const WildoInfraEnvConfigSchema: z.ZodPipe<z.ZodObject<{
833
972
  whenUnavailable?: string[];
834
973
  }>>;
835
974
  providerConfigurations: Record<string, Record<string, Record<string, unknown>>>;
975
+ email: {
976
+ inbound?: {
977
+ sharedDomain?: string;
978
+ };
979
+ };
980
+ ownershipDnsStandIn: {
981
+ baseUrl: string;
982
+ };
836
983
  applicationCreationVerification: {
837
984
  evidenceDirectory: string;
838
985
  silent: boolean;
@@ -882,6 +1029,42 @@ export declare const WildoInfraEnvConfigSchema: z.ZodPipe<z.ZodObject<{
882
1029
  platformStorage: {
883
1030
  bucket: string;
884
1031
  };
1032
+ platformKeyManagement: {
1033
+ vault?: {
1034
+ source: BackingServiceSource.SELF;
1035
+ } | {
1036
+ source: BackingServiceSource.MANAGED;
1037
+ address: string;
1038
+ namespace?: string;
1039
+ transitMount?: string;
1040
+ kvMount?: string;
1041
+ keyNamePrefix?: string;
1042
+ };
1043
+ awsKms?: {
1044
+ region: string;
1045
+ signerRoleArn: string;
1046
+ operatorRoleArn: string;
1047
+ endpoint?: string;
1048
+ };
1049
+ googleCloudKms?: {
1050
+ keyRing: string;
1051
+ signerServiceAccount: string;
1052
+ operatorServiceAccount: string;
1053
+ protectionLevel: import(".").PlatformGoogleKmsKeyProtection;
1054
+ };
1055
+ azureKeyVault?: {
1056
+ vaultUrl: string;
1057
+ signerClientId: string;
1058
+ operatorClientId: string;
1059
+ hsm: boolean;
1060
+ logAnalyticsWorkspaceId?: string;
1061
+ };
1062
+ pkcs11?: {
1063
+ modulePath: string;
1064
+ tokenLabel: string;
1065
+ hardwareTokenModels: string[];
1066
+ };
1067
+ };
885
1068
  documentationSite: {
886
1069
  apiBaseUrl?: string;
887
1070
  appUrl?: string;
@@ -1006,6 +1189,14 @@ export declare const WildoInfraEnvConfigSchema: z.ZodPipe<z.ZodObject<{
1006
1189
  whenUnavailable?: string[];
1007
1190
  }>>;
1008
1191
  providerConfigurations?: Record<string, Record<string, Record<string, unknown>>>;
1192
+ email?: {
1193
+ inbound?: {
1194
+ sharedDomain?: string;
1195
+ };
1196
+ };
1197
+ ownershipDnsStandIn?: {
1198
+ baseUrl: string;
1199
+ };
1009
1200
  documentationSite?: {
1010
1201
  apiBaseUrl?: string;
1011
1202
  appUrl?: string;
@@ -1060,6 +1251,42 @@ export declare const WildoInfraEnvConfigSchema: z.ZodPipe<z.ZodObject<{
1060
1251
  platformStorage?: {
1061
1252
  bucket: string;
1062
1253
  };
1254
+ platformKeyManagement?: {
1255
+ vault?: {
1256
+ source: BackingServiceSource.SELF;
1257
+ } | {
1258
+ source: BackingServiceSource.MANAGED;
1259
+ address: string;
1260
+ namespace?: string;
1261
+ transitMount?: string;
1262
+ kvMount?: string;
1263
+ keyNamePrefix?: string;
1264
+ };
1265
+ awsKms?: {
1266
+ region: string;
1267
+ signerRoleArn: string;
1268
+ operatorRoleArn: string;
1269
+ endpoint?: string;
1270
+ };
1271
+ googleCloudKms?: {
1272
+ keyRing: string;
1273
+ signerServiceAccount: string;
1274
+ operatorServiceAccount: string;
1275
+ protectionLevel: import(".").PlatformGoogleKmsKeyProtection;
1276
+ };
1277
+ azureKeyVault?: {
1278
+ vaultUrl: string;
1279
+ signerClientId: string;
1280
+ operatorClientId: string;
1281
+ hsm: boolean;
1282
+ logAnalyticsWorkspaceId?: string;
1283
+ };
1284
+ pkcs11?: {
1285
+ modulePath: string;
1286
+ tokenLabel: string;
1287
+ hardwareTokenModels: string[];
1288
+ };
1289
+ };
1063
1290
  devCompanion?: {
1064
1291
  host?: string;
1065
1292
  port?: number;
@@ -1283,6 +1510,14 @@ export declare const WildoHostedInfraEnvConfigSchema: z.ZodObject<{
1283
1510
  whenUnavailable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1284
1511
  }, z.core.$strict>>>;
1285
1512
  providerConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1513
+ email: z.ZodOptional<z.ZodObject<{
1514
+ inbound: z.ZodOptional<z.ZodObject<{
1515
+ sharedDomain: z.ZodOptional<z.ZodString>;
1516
+ }, z.core.$strict>>;
1517
+ }, z.core.$strict>>;
1518
+ ownershipDnsStandIn: z.ZodOptional<z.ZodObject<{
1519
+ baseUrl: z.ZodURL;
1520
+ }, z.core.$strict>>;
1286
1521
  systemsOfRecord: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1287
1522
  enabled: z.ZodLiteral<false>;
1288
1523
  }, z.core.$strict>, z.ZodObject<{
@@ -1348,19 +1583,6 @@ export type WildoAuthoredInfraEnvConfig = WildoInfraEnvConfig | WildoHostedInfra
1348
1583
  * never on what a schema happens to require.
1349
1584
  */
1350
1585
  export declare function isHostedInfraEnvConfig(config: WildoAuthoredInfraEnvConfig): config is WildoHostedInfraEnvConfig;
1351
- /**
1352
- * Scope `csp.<serviceKey>` warning suppression to the current async load path.
1353
- *
1354
- * The docs CSP generator loads authored infra config through `loadConfig()`,
1355
- * which evaluates `defineInfraEnvConfig(...)` inside the same process. Using
1356
- * an async-local context lets that loader declare which keys are actively
1357
- * consumed without mutating `process.env` across concurrent config loads.
1358
- *
1359
- * `WILDO_CONSUMED_INFRA_CSP_SERVICE_KEYS` remains supported as a coarse global
1360
- * fallback (tests / external callers), but in-process loaders SHOULD prefer
1361
- * this helper so suppression cannot leak between unrelated async work.
1362
- */
1363
- export declare function withConsumedInfraCspServiceKeys<T>(serviceKeys: Iterable<string>, callback: () => Promise<T> | T): Promise<T>;
1364
1586
  /**
1365
1587
  * Define an app-owned environment descriptor under `infrastructure/<env>`.
1366
1588
  *
@@ -1368,8 +1590,7 @@ export declare function withConsumedInfraCspServiceKeys<T>(serviceKeys: Iterable
1368
1590
  * layout.
1369
1591
  *
1370
1592
  * After successful parsing, emits Slice 3.5 `@unimplemented` warnings for
1371
- * authored fields that remain reserved or are not declared as consumed by
1372
- * the current loader — see `_unimplemented/unimplemented-field-warning.ts`
1593
+ * authored fields that remain reserved — see `_unimplemented/unimplemented-field-warning.ts`
1373
1594
  * for the design rationale (channel = stderr, dedupe = once-per-call,
1374
1595
  * format = single-line with backlog ID).
1375
1596
  */
@@ -1 +1 @@
1
- {"version":3,"file":"define-infra-env-config.d.ts","sourceRoot":"","sources":["../../../src/project-config/define-infra-env-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAA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AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,2BAA2B,GAAG,MAAM,IAAI,yBAAyB,CAG/G;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,wBAAwB,GAAG,mBAAmB,CAiB1F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,8BAA8B,GAAG,yBAAyB,CAI5G"}
@@ -1,5 +1,4 @@
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
3
  import { UnimplementedFieldSource, createUnimplementedFieldWarner, } from '../_unimplemented/unimplemented-field-warning.js';
5
4
  import { WildoAuthConfigSchema } from './shared/auth.schemas.js';
@@ -8,6 +7,7 @@ import { BackingServiceKind, BackingServiceSource, BackingServicesEnvConfigSchem
8
7
  import { WildoCdnConfigSchema } from './shared/cdn.schemas.js';
9
8
  import { WildoSystemsOfRecordEnvConfigSchema } from './shared/systems-of-record-env.schemas.js';
10
9
  import { WildoPlatformStorageConfigSchema } from './shared/platform-storage.schemas.js';
10
+ import { WildoPlatformKeyManagementConfigSchema } from './shared/platform-key-management.schemas.js';
11
11
  import { EnvCspOverrideSchema } from './shared/csp.schemas.js';
12
12
  import { WildoSchemaVersionSchema } from './shared/schema-version.schemas.js';
13
13
  import { InfraServiceAddressingSchema, } from './shared/infra-service.schemas.js';
@@ -65,24 +65,44 @@ const SERVICE_HOST_LABEL = /^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)(?:\.[a-z0-9](?:
65
65
  const ServiceHostValueSchema = z.string()
66
66
  .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
67
  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
- }
68
+ /**
69
+ * Per-environment email values, laid over `email` in the backend configuration (`saas-config.backend.ts`) for THIS
70
+ * environment only.
71
+ *
72
+ * `inbound.sharedDomain` is the shared receiving domain: every organization is reachable at `{slug}@{sharedDomain}`,
73
+ * and the domain's MX points at the receiving provider. It is a property of a DEPLOYMENT, not of the application: a
74
+ * local stack receives through a developer's own provider account (Resend assigns each account an `<id>.resend.app`
75
+ * domain), staging and production through their own domains, and one constant in the backend configuration made every
76
+ * environment claim the same domain — or, kept generic, made local receiving impossible to exercise. Validated by the
77
+ * same schema the backend configuration uses (`InboundEmailConfigSchema.shape.sharedDomain`), so the two cannot
78
+ * disagree about what a domain is.
79
+ *
80
+ * Projected to `WILDO_INBOUND_EMAIL_SHARED_DOMAIN` by `env-vars-builder`; the backend's inbound services read it
81
+ * through `resolveInboundEmailConfig`, where it wins over the authored value. Absent, the authored value applies.
82
+ */
83
+ export const WildoInfraEmailConfigSchema = z.strictObject({
84
+ inbound: z.strictObject({
85
+ sharedDomain: InboundEmailConfigSchema.shape.sharedDomain,
86
+ }).optional(),
87
+ });
88
+ /**
89
+ * Where THIS local environment's ownership-DNS stand-in answers (#2519): the development/test double that answers a
90
+ * domain-ownership challenge for a name nobody can publish — a corporate domain such as `wonder-group.test`, whose
91
+ * "IT department" on a developer machine is a test double (`client-org-mock`) rather than a DNS zone.
92
+ *
93
+ * A domain-ownership proof is what PUBLIC DNS says, everywhere else. So this is LOCAL-ONLY — refused by this schema in
94
+ * any other environment — and the backend honours it only where its declared runtime environment is development or
95
+ * test, and REFUSES TO START with it set anywhere else (`assertOwnershipDnsStandInAdmitted` in the backend). The
96
+ * stand-in answers `GET {baseUrl}/__wildo/dns/txt?name=<name>` with `{ "records": ["…"] }`.
97
+ *
98
+ * Projected to `WILDO_OWNERSHIP_DNS_STAND_IN_URL` (`PlatformOwnershipDnsEnvKey`) by `env-vars-builder`, for the
99
+ * application backend that serves the domain-ownership doors. Absent, every ownership challenge asks public DNS.
100
+ */
101
+ export const WildoOwnershipDnsStandInConfigSchema = z.strictObject({
102
+ // http(s) only: a bare `z.url()` admits `localhost:18319` as a URL whose SCHEME is `localhost:`, which the backend
103
+ // would then fail to fetch at the first verification instead of here.
104
+ baseUrl: z.url({ protocol: /^https?$/ }).describe("The stand-in's base URL, e.g. `http://localhost:18319`. Its DNS path is appended to it."),
105
+ });
86
106
  /**
87
107
  * The shape of a STANDALONE environment descriptor — one that owns its infrastructure.
88
108
  *
@@ -353,6 +373,16 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
353
373
  * {@link WildoEnvironmentProviderConfigurationsSchema}.
354
374
  */
355
375
  providerConfigurations: WildoEnvironmentProviderConfigurationsSchema.optional(),
376
+ /**
377
+ * Per-environment email values — today the shared RECEIVING domain, `email.inbound.sharedDomain`, which differs
378
+ * per deployment. See {@link WildoInfraEmailConfigSchema}.
379
+ */
380
+ email: WildoInfraEmailConfigSchema.optional(),
381
+ /**
382
+ * LOCAL-ONLY: the double that answers domain-ownership challenges for names nobody can publish (#2519). See
383
+ * {@link WildoOwnershipDnsStandInConfigSchema}.
384
+ */
385
+ ownershipDnsStandIn: WildoOwnershipDnsStandInConfigSchema.optional(),
356
386
  /**
357
387
  * Per-environment origins the documentation site is BUILT against.
358
388
  *
@@ -487,6 +517,12 @@ const WILDO_INFRA_ENV_CONFIG_SHAPE = {
487
517
  * and refused in a local environment, whose platform bucket is a constant shared by every application.
488
518
  */
489
519
  platformStorage: WildoPlatformStorageConfigSchema.optional(),
520
+ /**
521
+ * Where the PLATFORM keeps the keys it holds for applications (#2933): a self-hosted OpenBao the CLI renders, or the
522
+ * operator's own Vault. See {@link WildoPlatformKeyManagementConfigSchema}. Absent, apps-manager seals every key
523
+ * under its own key-encryption root and serves no Vault provider.
524
+ */
525
+ platformKeyManagement: WildoPlatformKeyManagementConfigSchema.optional(),
490
526
  devCompanion: InfraServiceAddressingSchema.optional(),
491
527
  /**
492
528
  * Present only on an environment RESOLVED from a hosted descriptor: this application runs on the
@@ -615,6 +651,14 @@ const WildoInfraEnvConfigInputSchema = z.object(WILDO_INFRA_ENV_CONFIG_SHAPE).st
615
651
  message: 'applicationCreationVerification is local-only and must be authored in wildo.infra.local.config.ts.',
616
652
  });
617
653
  }
654
+ if (!isLocalEnvironmentId(resolvedEnvironment) && config.ownershipDnsStandIn !== undefined) {
655
+ ctx.addIssue({
656
+ code: 'custom',
657
+ path: ['ownershipDnsStandIn'],
658
+ message: 'ownershipDnsStandIn is local-only and must be authored in wildo.infra.local.config.ts: in every other environment a '
659
+ + 'domain-ownership proof is what public DNS says, and a backend outside development and test refuses to start with it set.',
660
+ });
661
+ }
618
662
  if (!isLocalEnvironmentId(resolvedEnvironment)
619
663
  && resolvedLocationType === WildoLocationType.REMOTE
620
664
  && config.runtime === WildoDeploymentRuntime.KUBERNETES) {
@@ -726,12 +770,15 @@ export const WildoInfraEnvConfigSchema = WildoInfraEnvConfigInputSchema.transfor
726
770
  observability: config.observability,
727
771
  providerSelection: config.providerSelection,
728
772
  providerConfigurations: config.providerConfigurations,
773
+ email: config.email,
774
+ ownershipDnsStandIn: config.ownershipDnsStandIn,
729
775
  applicationCreationVerification: config.applicationCreationVerification,
730
776
  serviceAuth: config.serviceAuth,
731
777
  csp: config.csp,
732
778
  cdn: config.cdn,
733
779
  systemsOfRecord: config.systemsOfRecord,
734
780
  platformStorage: config.platformStorage,
781
+ platformKeyManagement: config.platformKeyManagement,
735
782
  documentationSite: config.documentationSite,
736
783
  devCompanion: config.devCompanion,
737
784
  infrastructureHost: config.infrastructureHost,
@@ -814,6 +861,18 @@ export const INFRA_ENV_FIELD_OWNERSHIP = {
814
861
  observability: InfraEnvFieldOwner.APPLICATION,
815
862
  providerSelection: InfraEnvFieldOwner.APPLICATION,
816
863
  providerConfigurations: InfraEnvFieldOwner.APPLICATION,
864
+ /*
865
+ * APPLICATION. The receiving domain is THIS application's address space in this environment: two applications on one
866
+ * platform receive on different domains, and a hosted application inheriting its host's would route its mail into
867
+ * another tenant's organizations.
868
+ */
869
+ email: InfraEnvFieldOwner.APPLICATION,
870
+ /*
871
+ * APPLICATION. The stand-in answers for the domains THIS application's tenants prove they own on a developer machine —
872
+ * the double standing in for their corporate IT. A hosted application inheriting its host's would verify its tenants'
873
+ * domains against another application's test double.
874
+ */
875
+ ownershipDnsStandIn: InfraEnvFieldOwner.APPLICATION,
817
876
  /*
818
877
  * APPLICATION. `systemsOfRecord` says where the instances THIS application declares in its saas config live in
819
878
  * this environment — an external system it reads from (an ERP), never part of the shared substrate its host
@@ -828,6 +887,11 @@ export const INFRA_ENV_FIELD_OWNERSHIP = {
828
887
  csp: InfraEnvFieldOwner.APPLICATION,
829
888
  cdn: InfraEnvFieldOwner.APPLICATION,
830
889
  platformStorage: InfraEnvFieldOwner.HOST,
890
+ /*
891
+ * HOST. One apps-manager holds one Vault for every application on the platform, and the host writes the compose file
892
+ * and manifests that run it; a hosted application authoring it would be describing a custodian it does not run.
893
+ */
894
+ platformKeyManagement: InfraEnvFieldOwner.HOST,
831
895
  devCompanion: InfraEnvFieldOwner.APPLICATION,
832
896
  infrastructureHost: InfraEnvFieldOwner.RESOLUTION,
833
897
  };
@@ -949,6 +1013,8 @@ export const WildoHostedInfraEnvConfigSchema = z.strictObject({
949
1013
  observability: WILDO_INFRA_ENV_CONFIG_SHAPE.observability,
950
1014
  providerSelection: WILDO_INFRA_ENV_CONFIG_SHAPE.providerSelection,
951
1015
  providerConfigurations: WILDO_INFRA_ENV_CONFIG_SHAPE.providerConfigurations,
1016
+ email: WILDO_INFRA_ENV_CONFIG_SHAPE.email,
1017
+ ownershipDnsStandIn: WILDO_INFRA_ENV_CONFIG_SHAPE.ownershipDnsStandIn,
952
1018
  systemsOfRecord: WILDO_INFRA_ENV_CONFIG_SHAPE.systemsOfRecord,
953
1019
  documentationSite: WILDO_INFRA_ENV_CONFIG_SHAPE.documentationSite,
954
1020
  applicationCreationVerification: WILDO_INFRA_ENV_CONFIG_SHAPE.applicationCreationVerification,
@@ -975,32 +1041,6 @@ export function isHostedInfraEnvConfig(config) {
975
1041
  const host = config.infrastructureHost;
976
1042
  return host !== undefined && host !== null && !('infraConfigPath' in host);
977
1043
  }
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
1044
  /**
1005
1045
  * Define an app-owned environment descriptor under `infrastructure/<env>`.
1006
1046
  *
@@ -1008,8 +1048,7 @@ export async function withConsumedInfraCspServiceKeys(serviceKeys, callback) {
1008
1048
  * layout.
1009
1049
  *
1010
1050
  * 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`
1051
+ * authored fields that remain reserved — see `_unimplemented/unimplemented-field-warning.ts`
1013
1052
  * for the design rationale (channel = stderr, dedupe = once-per-call,
1014
1053
  * format = single-line with backlog ID).
1015
1054
  */
@@ -1047,59 +1086,33 @@ export function defineHostedInfraEnvConfig(config) {
1047
1086
  return parsed;
1048
1087
  }
1049
1088
  /**
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`).
1089
+ * Emit `@unimplemented` parse-time warnings for every authored `WildoInfraEnvConfig` field that remains
1090
+ * reserved (Slice 3.5 contract — see `_unimplemented/unimplemented-field-warning.ts`).
1054
1091
  *
1055
- * Surfaces today (2 field families):
1092
+ * One field today: `version` (!== undefined) → `D-5`.
1056
1093
  *
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.)
1094
+ * `csp.<serviceKey>` is NOT in this list (#2047). It has a runtime consumer, `wildo dev sync-csp`, which merges each
1095
+ * entry into its service's generated policy and refuses a key that names no frontend service. The warning used to stay
1096
+ * on and be SUPPRESSED by the one loader that consumed it, so every other command loading the same file (`wildo docs
1097
+ * publish`, for one) printed "no runtime consumer" for every authored key. Whether a field is consumed is a property of
1098
+ * the schema, not of which command ran first.
1064
1099
  *
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.
1100
+ * `logging.{level, formattedConsoleErrors}` is intentionally NOT in this list: Slice 3.5 wires both fields end-to-end
1101
+ * (persistence, `env-vars-builder` → `LOG_LEVEL` / `LOG_FORMATTED_CONSOLE_ERRORS`, `LoggerService.loadConfiguration`),
1102
+ * so they have a real runtime consumer and silence is the honest behavior.
1070
1103
  *
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`.
1104
+ * `domain` is intentionally NOT in this list either: Slice 3.5 deleted the field outright as a wrong-seam, and the
1105
+ * `external-public-domain-rename.md` follow-up renamed the canonical hostname seam to top-level `publicDomain`
1106
+ * (replacing the misnamed `kubernetes.baseDomain`). Both `domain` and `kubernetes.baseDomain` are strict-rejected by
1107
+ * the schema — see the strict-pin tests in `__tests__/define-infra-env-config.unimplemented.test.ts`.
1079
1108
  *
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.
1109
+ * When the deferred backlog item lands, the matching `if` branch below MUST be removed in the same commit as the
1110
+ * runtime wiring — leaving a stale warning is worse than silence.
1083
1111
  */
1084
1112
  function emitInfraUnimplementedRuntimeWarnings(config) {
1085
1113
  const warn = createUnimplementedFieldWarner(UnimplementedFieldSource.INFRA_ENV_CONFIG);
1086
- const AUTH_HARDENING_PLAN_PATH = '.cursor/plans/auth-hardening.md';
1087
- const consumedCspServiceKeys = getConsumedInfraCspServiceKeys();
1088
1114
  if (config.version !== undefined) {
1089
1115
  warn('version', 'D-5');
1090
1116
  }
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
- }
1104
1117
  }
1105
1118
  //# sourceMappingURL=define-infra-env-config.js.map