@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.
- package/dist/esm/_unimplemented/soft-warn.d.ts +24 -49
- package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
- package/dist/esm/_unimplemented/soft-warn.js +24 -49
- package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
- package/dist/esm/blueprint/anchored-region.d.ts +83 -0
- package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
- package/dist/esm/blueprint/anchored-region.js +263 -0
- package/dist/esm/blueprint/anchored-region.js.map +1 -0
- package/dist/esm/blueprint/blueprint.schemas.d.ts +600 -0
- package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
- package/dist/esm/blueprint/blueprint.schemas.js +638 -0
- package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
- package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +29 -4
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +29 -4
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +131 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +139 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
- package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
- package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
- package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
- package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
- package/dist/esm/credentials/credential-generator.service.js.map +1 -1
- package/dist/esm/index.d.ts +20 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +20 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
- package/dist/esm/key-management/approval-seal-verifier.d.ts +278 -0
- package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal-verifier.js +355 -0
- package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
- package/dist/esm/key-management/approval-seal.contracts.d.ts +128 -0
- package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal.contracts.js +135 -0
- package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
- package/dist/esm/key-management/data-key.contracts.d.ts +106 -0
- package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/data-key.contracts.js +54 -0
- package/dist/esm/key-management/data-key.contracts.js.map +1 -0
- package/dist/esm/key-management/es256-jws.d.ts +60 -0
- package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
- package/dist/esm/key-management/es256-jws.js +135 -0
- package/dist/esm/key-management/es256-jws.js.map +1 -0
- package/dist/esm/key-management/key-provider.spi.d.ts +158 -0
- package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
- package/dist/esm/key-management/key-provider.spi.js +38 -0
- package/dist/esm/key-management/key-provider.spi.js.map +1 -0
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts +83 -0
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
- package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
- package/dist/esm/key-management/keyring-status.contracts.d.ts +59 -0
- package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/keyring-status.contracts.js +45 -0
- package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
- package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
- package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
- package/dist/esm/key-management/pdf-incremental-update.js +730 -0
- package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
- package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
- package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
- package/dist/esm/key-management/pdf-truetype-font.js +152 -0
- package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
- package/dist/esm/key-management/qr-code.d.ts +38 -0
- package/dist/esm/key-management/qr-code.d.ts.map +1 -0
- package/dist/esm/key-management/qr-code.js +325 -0
- package/dist/esm/key-management/qr-code.js.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts +91 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.js +96 -0
- package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
- package/dist/esm/key-management/signing-log-export.contracts.d.ts +215 -0
- package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
- package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts +98 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/vault-custody.contracts.js +154 -0
- package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
- package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
- package/dist/esm/lockfile/build-parallelism.js.map +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
- package/dist/esm/lockfile/canonical-json.js +1 -1
- package/dist/esm/lockfile/canonical-json.js.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.js +2 -1
- package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
- package/dist/esm/lockfile/lockfile-io.d.ts +13 -17
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +29 -30
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +22 -20
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +13 -14
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +27 -249
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +28 -3
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
- package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js +22 -3
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
- package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
- package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
- package/dist/esm/project-config/application-served-public-documents.loader.js +86 -0
- package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
- package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
- package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
- package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
- package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
- package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
- package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
- package/dist/esm/project-config/config-module-resolution.js +33 -0
- package/dist/esm/project-config/config-module-resolution.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +344 -69
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +194 -143
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-minion-config.d.ts +26 -36
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js +64 -25
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +82 -348
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +262 -103
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts +10 -20
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-worker-config.js +10 -12
- package/dist/esm/project-config/define-worker-config.js.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.js +4 -1
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +5 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +5 -0
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
- package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
- package/dist/esm/project-config/loader-instances-zod.js +40 -0
- package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
- package/dist/esm/project-config/loader.d.ts +131 -14
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +226 -12
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
- package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
- package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
- package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
- package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
- package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
- package/dist/esm/project-config/npm-version-range.js +39 -16
- package/dist/esm/project-config/npm-version-range.js.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
- package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
- package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
- package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +16 -10
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +103 -49
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +216 -16
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts +36 -9
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.js +54 -11
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.js +77 -24
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -85
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +40 -13
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +101 -8
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +128 -9
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +2 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +4 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +24 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.js +25 -2
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +276 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.js +296 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
- package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
- package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
- package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.js +36 -20
- package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
- package/dist/esm/registry/digest.schemas.js.map +1 -1
- package/dist/esm/registry/index.d.ts +3 -3
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js +3 -3
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts +22 -2
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
- package/dist/esm/registry/local-checkout-source.js +66 -3
- package/dist/esm/registry/local-checkout-source.js.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +11 -98
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts +40 -17
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts +324 -74
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +377 -19
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts +2 -0
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-search.schemas.js +14 -1
- package/dist/esm/registry/module-search.schemas.js.map +1 -1
- package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-config.schemas.js.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
- package/dist/esm/registry/registry-errors.d.ts +103 -5
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js +213 -6
- package/dist/esm/registry/registry-errors.js.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
- package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
- package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
- package/dist/esm/registry/registry-url-resolution.js +157 -0
- package/dist/esm/registry/registry-url-resolution.js.map +1 -0
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +48 -0
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
- package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
- package/dist/esm/workspace-scope/index.js.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/dist/esm/_unimplemented/index.d.ts +0 -3
- package/dist/esm/_unimplemented/index.d.ts.map +0 -1
- package/dist/esm/_unimplemented/index.js +0 -3
- package/dist/esm/_unimplemented/index.js.map +0 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
- package/dist/esm/project-config/shared/cdn.example.js +0 -38
- package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
- package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
- package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type FrontendPublicConfigSecretValue, type FrontendProvidersBlock } from '@wildo-ai/saas-models';
|
|
2
|
+
import { type ApplicationDataResidency, type ApplicationProviderComplianceChoices, type FrontendPublicConfigSecretValue, type FrontendProvidersBlock } from '@wildo-ai/saas-models';
|
|
3
3
|
import { type SaasLockfileProvidersSection } from '../lockfile/wildo-saas-lock.shared.schemas';
|
|
4
|
-
import { type WildoSaasConfig } from './define-saas-config';
|
|
4
|
+
import { type SaasProvidersScopes, type WildoSaasConfig } from './define-saas-config';
|
|
5
5
|
import { type AdmittedProviderPackage, type DiscoveredProviderAugmentation, type DiscoveredProviderCompanionContribution } from './provider-companion-discovery';
|
|
6
6
|
export declare const PROVIDER_RUNTIME_ARTIFACT_AUTOGENERATED_WARNING = "AUTO-GENERATED FILE. DO NOT EDIT. Regenerate with `wildo config sync`.";
|
|
7
7
|
export declare const PROVIDER_RUNTIME_ARTIFACT_GENERATOR = "wildo provider-runtime-artifact";
|
|
@@ -56,8 +56,7 @@ export declare const PROVIDER_LOCK_SECTION_PATH: "sections.providers.runtimeScop
|
|
|
56
56
|
*
|
|
57
57
|
* This file is the **single delivery channel** non-Node workers (Rust /
|
|
58
58
|
* Java / etc.) receive for provider topology — there is no executable
|
|
59
|
-
* JS bundle in their case
|
|
60
|
-
* `.claude/plans/provider-migration-continuation.md`). Node workers
|
|
59
|
+
* JS bundle in their case. Node workers
|
|
61
60
|
* receive both this file and the per-package
|
|
62
61
|
* `wildo-provider-runtime.generated.ts` source module; reading either
|
|
63
62
|
* surface yields a consistent view because they share the same digest.
|
|
@@ -93,11 +92,6 @@ export declare const RuntimeProviderAugmentationArtifactSchema: z.ZodObject<{
|
|
|
93
92
|
packageVersion: z.ZodString;
|
|
94
93
|
runtimeImportPath: z.ZodString;
|
|
95
94
|
operationIds: z.ZodArray<z.ZodString>;
|
|
96
|
-
/**
|
|
97
|
-
* Every vendor scope the augmentation's operations declare (#1671) — recorded so the loader can refuse installed code
|
|
98
|
-
* that needs scopes sync never validated, and so a connection asks a person to consent only to what an opted-in
|
|
99
|
-
* package declared. Absent when it declares none.
|
|
100
|
-
*/
|
|
101
95
|
requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
96
|
basePackageName: z.ZodOptional<z.ZodString>;
|
|
103
97
|
basePackageVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -109,54 +103,25 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
109
103
|
generatedAt: z.ZodString;
|
|
110
104
|
sourceDigest: z.ZodString;
|
|
111
105
|
providerRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
112
|
-
/**
|
|
113
|
-
* `providerRef` -> the package specifier a host dynamic-imports to obtain that provider's backend
|
|
114
|
-
* module (#330).
|
|
115
|
-
*
|
|
116
|
-
* `providerRefs` says WHICH providers a process may expose; this says WHERE each one comes from,
|
|
117
|
-
* and it is what makes a provider shipped as its own npm package loadable at all. Derived from
|
|
118
|
-
* the discovered contribution whose `runtimeTargets` match the host — never authored.
|
|
119
|
-
*
|
|
120
|
-
* Optional, so an artifact written before this field existed still parses. Every ref such an
|
|
121
|
-
* artifact names is engine-shipped, and a host resolves those from the engine's own on-demand map
|
|
122
|
-
* without consulting this record, so an un-resynced application is unaffected.
|
|
123
|
-
*/
|
|
124
106
|
providerRuntimeImports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
|
-
/**
|
|
126
|
-
* Package specifiers that ship SYSTEM-OF-RECORD VENDOR FACETS, in discovery order (#1057).
|
|
127
|
-
*
|
|
128
|
-
* A list rather than a `vendor -> specifier` map, because a facet module contributes a RECORD of
|
|
129
|
-
* vendors rather than one module per vendor: a map would restate the record's own keys in a
|
|
130
|
-
* generated artifact read by a different process, free to disagree with it. The backend imports
|
|
131
|
-
* each specifier in order and takes the first that answers for the vendor.
|
|
132
|
-
*
|
|
133
|
-
* Discovered from the MANIFEST — a package declaring an `./systems-of-record` export — never from
|
|
134
|
-
* loading it. Sync has no business evaluating a vendor facet, and the manifest is the same door
|
|
135
|
-
* `./companion` is found through.
|
|
136
|
-
*/
|
|
137
107
|
systemOfRecordFacetModules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
|
-
/**
|
|
139
|
-
* `baseRef` -> the opted-in augmentations the host applies to that provider, sorted by package name (#1672).
|
|
140
|
-
*
|
|
141
|
-
* Only refs in this artifact's scope, and only packages the application names under
|
|
142
|
-
* `providers.augmentations` — an installed augmentation that is not opted in never appears here, and the
|
|
143
|
-
* loader applies nothing this map does not name. Absent when nothing is augmented, which keeps every
|
|
144
|
-
* artifact of an application without augmentations byte-identical to what it was.
|
|
145
|
-
*/
|
|
146
108
|
providerRuntimeAugmentations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
147
109
|
packageName: z.ZodString;
|
|
148
110
|
packageVersion: z.ZodString;
|
|
149
111
|
runtimeImportPath: z.ZodString;
|
|
150
112
|
operationIds: z.ZodArray<z.ZodString>;
|
|
151
|
-
/**
|
|
152
|
-
* Every vendor scope the augmentation's operations declare (#1671) — recorded so the loader can refuse installed code
|
|
153
|
-
* that needs scopes sync never validated, and so a connection asks a person to consent only to what an opted-in
|
|
154
|
-
* package declared. Absent when it declares none.
|
|
155
|
-
*/
|
|
156
113
|
requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
157
114
|
basePackageName: z.ZodOptional<z.ZodString>;
|
|
158
115
|
basePackageVersion: z.ZodOptional<z.ZodString>;
|
|
159
116
|
}, z.core.$strict>>>>;
|
|
117
|
+
providerProcessingRegions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
118
|
+
providerDataResidency: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
territories: z.ZodArray<z.ZodString>;
|
|
120
|
+
choices: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
121
|
+
deploymentModel: z.ZodEnum<typeof import("@wildo-ai/saas-models").ProviderDeploymentModel>;
|
|
122
|
+
processingRegion: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
}, z.core.$strict>>;
|
|
160
125
|
providerGraphDigest: z.ZodString;
|
|
161
126
|
lockfileSectionDigest: z.ZodString;
|
|
162
127
|
artifactKind: z.ZodEnum<{
|
|
@@ -185,6 +150,7 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
185
150
|
selection: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
186
151
|
primary: z.ZodString;
|
|
187
152
|
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
153
|
+
failover: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
154
|
}, z.core.$strict>>>;
|
|
189
155
|
}, z.core.$strict>>;
|
|
190
156
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -198,6 +164,7 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
198
164
|
selection: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
199
165
|
primary: z.ZodString;
|
|
200
166
|
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
167
|
+
failover: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
201
168
|
}, z.core.$strict>>>;
|
|
202
169
|
}, z.core.$strict>>>;
|
|
203
170
|
frontendProviderBootstraps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -236,10 +203,12 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
236
203
|
bucket: z.ZodEnum<typeof import("@wildo-ai/saas-models").ProviderFrontendCspOriginBucket>;
|
|
237
204
|
}, z.core.$strict>>>;
|
|
238
205
|
}, z.core.$strict>>;
|
|
239
|
-
sdk: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
sdk: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
240
207
|
packageName: z.ZodString;
|
|
241
208
|
versionRange: z.ZodOptional<z.ZodString>;
|
|
242
|
-
}, z.core.$strict
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
vendorHostedScriptUrl: z.ZodURL;
|
|
211
|
+
}, z.core.$strict>]>>;
|
|
243
212
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
213
|
src: z.ZodString;
|
|
245
214
|
integrity: z.ZodOptional<z.ZodString>;
|
|
@@ -258,6 +227,7 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
258
227
|
}, z.core.$strict>>;
|
|
259
228
|
}, z.core.$strict>>>;
|
|
260
229
|
publicConfigKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
+
requiredPublicConfigKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
231
|
fileStorage: z.ZodOptional<z.ZodEnum<{
|
|
262
232
|
readonly WILDO_MANAGED: "wildo_managed";
|
|
263
233
|
readonly LOCAL_DIRECTORY: "local_directory";
|
|
@@ -269,6 +239,22 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
269
239
|
determination: z.ZodOptional<z.ZodLiteral<import("@wildo-ai/saas-models").ProviderComplianceDetermination.ESTABLISHED>>;
|
|
270
240
|
deploymentModels: z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/saas-models").ProviderDeploymentModel>>;
|
|
271
241
|
processingRegions: z.ZodArray<z.ZodString>;
|
|
242
|
+
processingRegionReach: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
+
kind: z.ZodLiteral<import("@wildo-ai/saas-models").ProviderProcessingRegionReachKind.ENDPOINT>;
|
|
244
|
+
baseUrls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodURL>>;
|
|
245
|
+
applicationConnectionAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
246
|
+
requestSigningRegions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
kind: z.ZodLiteral<import("@wildo-ai/saas-models").ProviderProcessingRegionReachKind.REQUEST_PARAMETER>;
|
|
249
|
+
sdkProviderOptions: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
|
|
250
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
251
|
+
kind: z.ZodLiteral<import("@wildo-ai/saas-models").ProviderProcessingRegionReachKind.ACCOUNT_RESIDENCY>;
|
|
252
|
+
}, z.core.$strict>], "kind">>>;
|
|
253
|
+
processingRegionTerritories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
254
|
+
modelIdRouting: z.ZodOptional<z.ZodObject<{
|
|
255
|
+
routingPrefixes: z.ZodArray<z.ZodString>;
|
|
256
|
+
admittedByRegion: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
257
|
+
}, z.core.$strict>>;
|
|
272
258
|
vendorLegalEntityName: z.ZodOptional<z.ZodString>;
|
|
273
259
|
subprocessorListUrl: z.ZodOptional<z.ZodURL>;
|
|
274
260
|
dataProcessingAgreementUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -296,7 +282,7 @@ export interface MaterializedSaasProviderRuntimeArtifacts {
|
|
|
296
282
|
artifacts: Partial<Record<ProviderRuntimeArtifactKind, SaasRuntimeProvidersArtifact>>;
|
|
297
283
|
lockSection: SaasLockfileProvidersSection;
|
|
298
284
|
}
|
|
299
|
-
export declare function materializeSaasProviderRuntimeArtifacts(config: Pick<WildoSaasConfig, 'modules' | 'providers' | 'services'> & Partial<Pick<WildoSaasConfig, 'providerConfigurations'>>, options?: {
|
|
285
|
+
export declare function materializeSaasProviderRuntimeArtifacts(config: Pick<WildoSaasConfig, 'modules' | 'providers' | 'services'> & Partial<Pick<WildoSaasConfig, 'providerConfigurations' | 'providerComplianceChoices' | 'operatorComplianceIdentity'>>, options?: {
|
|
300
286
|
generatedAt?: string;
|
|
301
287
|
nodeWorkerKeys?: string[];
|
|
302
288
|
discoveredContributions?: DiscoveredProviderCompanionContribution[];
|
|
@@ -319,6 +305,61 @@ export declare function materializeSaasProviderRuntimeArtifacts(config: Pick<Wil
|
|
|
319
305
|
*/
|
|
320
306
|
admittedProviderPackages?: readonly AdmittedProviderPackage[];
|
|
321
307
|
}): MaterializedSaasProviderRuntimeArtifacts;
|
|
308
|
+
/**
|
|
309
|
+
* Refuses a frontend captcha that no backend verifies.
|
|
310
|
+
*
|
|
311
|
+
* A captcha provider has two halves: the browser part that obtains a token, and the backend part that checks it
|
|
312
|
+
* (`recaptcha`'s verifier). The backend demands a challenge on public submissions only when ITS scope declares the
|
|
313
|
+
* verifier (`submission-challenge.backend.service.ts`), so a captcha declared on a frontend service alone loads the
|
|
314
|
+
* vendor's script into every visitor's page and protects nothing: the backend accepts every submission unchecked.
|
|
315
|
+
* That is a control that looks like one and does nothing, which this repository treats as a defect rather than a
|
|
316
|
+
* warning, so the sync refuses it with the one-line remedy.
|
|
317
|
+
*
|
|
318
|
+
* Same ref, not just any captcha: a token from one vendor can only be checked by that vendor's verifier.
|
|
319
|
+
*/
|
|
320
|
+
export declare function assertFrontendCaptchaHasBackendVerifier(scopes: SaasProvidersScopes): void;
|
|
321
|
+
/**
|
|
322
|
+
* The processing region each provider that ENFORCES its region (by endpoint or by request parameter) is bound to (#3513), or
|
|
323
|
+
* a REFUSAL: a region such a provider cannot be reached in stops `wildo config sync` before any artifact is written, naming
|
|
324
|
+
* the regions it serves. The decision is
|
|
325
|
+
* `resolveProviderProcessingRegionSelection`, the one the backend provider loader applies, so sync and the runtime cannot
|
|
326
|
+
* disagree about what a region means.
|
|
327
|
+
*
|
|
328
|
+
* Read over every provider the application configures a choice for, before the per-host narrowing: a refused region is a
|
|
329
|
+
* configuration error wherever the provider runs. A provider with no discovered profile, an account-resident region, or a
|
|
330
|
+
* choice with no region contributes nothing, because no call selects anything there.
|
|
331
|
+
*/
|
|
332
|
+
export declare function materializeProviderProcessingRegions(input: {
|
|
333
|
+
readonly choices: ApplicationProviderComplianceChoices | undefined;
|
|
334
|
+
readonly contributions: readonly Pick<DiscoveredProviderCompanionContribution, 'ref' | 'complianceProfile' | 'frontendEntry'>[];
|
|
335
|
+
}): Record<string, string>;
|
|
336
|
+
/**
|
|
337
|
+
* Refuses a configuration whose declared data residency (`operatorComplianceIdentity.dataResidency`, #2294) a
|
|
338
|
+
* vendor-hosted provider would leave: its chosen region processes in a place outside the residency, or its profile does
|
|
339
|
+
* not state where that region processes. `wildo config sync` (run by every `wildo local dev` start) and `wildo lock
|
|
340
|
+
* check` call it before any artifact is written, so an application that pins its data to a territory cannot start with
|
|
341
|
+
* a provider processing elsewhere. Nothing is checked when no residency is declared: the residency is an opt-in
|
|
342
|
+
* commitment, and an application that made none has nothing to keep.
|
|
343
|
+
*
|
|
344
|
+
* The decision is `assessProviderProcessingAgainstDataResidency` (`@wildo-ai/saas-models`); the computed document fact
|
|
345
|
+
* states the same entries, so the refusal and the notice cannot disagree about where a provider processes.
|
|
346
|
+
*/
|
|
347
|
+
export declare function assertProviderProcessingInsideDataResidency(input: {
|
|
348
|
+
readonly residency: ApplicationDataResidency | undefined;
|
|
349
|
+
readonly choices: ApplicationProviderComplianceChoices | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* The providers a runtime serving the application's data declares ({@link dataServingProviderRefs}). Each must be shown
|
|
352
|
+
* inside, by a choice or by a profile that is only ever self-hosted: a declared provider no choice speaks for can be
|
|
353
|
+
* the one a call is routed to (selected, a `whenUnavailable` substitute, a `failover` provider), and nothing says where
|
|
354
|
+
* that call goes.
|
|
355
|
+
*/
|
|
356
|
+
readonly providerRefs?: readonly string[];
|
|
357
|
+
readonly contributions: readonly Pick<DiscoveredProviderCompanionContribution, 'ref' | 'complianceProfile' | 'frontendEntry'>[];
|
|
358
|
+
}): void;
|
|
359
|
+
/** Every provider ref a data-serving scope declares, sorted. See {@link SCOPE_SERVES_APPLICATION_DATA}. */
|
|
360
|
+
export declare function dataServingProviderRefs(scopes: SaasProvidersScopes): string[];
|
|
361
|
+
/** The region map restricted to the given refs, or `undefined` when none remain — the shape every per-host artifact carries. */
|
|
362
|
+
export declare function narrowProviderProcessingRegions(regions: Readonly<Record<string, string>> | undefined, providerRefs: readonly string[]): Record<string, string> | undefined;
|
|
322
363
|
export declare function selectScopedProviderRuntimeArtifact(artifact: SaasRuntimeProvidersArtifact, scopeKey: string): SaasRuntimeProvidersArtifact;
|
|
323
364
|
/**
|
|
324
365
|
* The augmentation map restricted to the given refs, or `undefined` when none remain — so a per-host projection
|
|
@@ -470,6 +511,19 @@ type SaasProviderScopeSelections = {
|
|
|
470
511
|
protocols: ReadonlyArray<string>;
|
|
471
512
|
}>;
|
|
472
513
|
};
|
|
514
|
+
/**
|
|
515
|
+
* Whether a frontend service serves a provider its scope names (#2805): a runtime uses exactly what its scope entry binds.
|
|
516
|
+
* So an entry binding nothing (no engine capability, no provider capability, no protocol, what `wildo registry add`
|
|
517
|
+
* writes) is not served, and a module with a browser SDK (it binds FRONTEND_SDK) is served only when its entry lists
|
|
518
|
+
* FRONTEND_SDK. A module that binds no protocol (an SDK-less one, such as `google-places`, whose lookups go through the
|
|
519
|
+
* backend) is served for the capabilities its entry binds. The backend's `isProviderEnabled` applies the same rule to
|
|
520
|
+
* every other protocol, and `frontend-bootstrap.backend.service.ts` applies this one when no generated bootstrap exists.
|
|
521
|
+
*/
|
|
522
|
+
export declare function frontendScopeEntryServes(entry: {
|
|
523
|
+
engineCapabilities?: readonly string[];
|
|
524
|
+
providerCapabilities?: readonly string[];
|
|
525
|
+
protocols?: readonly string[];
|
|
526
|
+
} | undefined, moduleProtocols: readonly string[]): boolean;
|
|
473
527
|
/**
|
|
474
528
|
* Refuses a set of materialized provider runtime artifacts when any frontend provider they would
|
|
475
529
|
* SERVE carries one of the environment's secret values (#1705).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-runtime-artifacts.d.ts","sourceRoot":"","sources":["../../../src/project-config/provider-runtime-artifacts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"provider-runtime-artifacts.d.ts","sourceRoot":"","sources":["../../../src/project-config/provider-runtime-artifacts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAmBL,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EAEzC,KAAK,+BAA+B,EAEpC,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,4BAA4B,EAElC,MAAM,4CAA4C,CAAC;AAMpD,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,uCAAuC,EAI7C,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,+CAA+C,2EACc,CAAC;AAE3E,eAAO,MAAM,mCAAmC,oCAAoC,CAAC;AAErF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wCAAwC;;;;;;CAM3C,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,+CAA+C;;;;;;CAMlD,CAAC;AAEX,MAAM,MAAM,2BAA2B,GAAG,MAAM,OAAO,wCAAwC,CAAC;AAEhG,eAAO,MAAM,+CAA+C,sDACP,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,EAAG,kCAA2C,CAAC;AAEtF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wCAAwC,yBAAyB,CAAC;AAe/E,QAAA,MAAM,oCAAoC;;;;;;;kBAUxC,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AA4B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,CAAC,GAC/D,OAAO,CAGT"}
|
|
@@ -2,11 +2,11 @@ import { createHash } from 'node:crypto';
|
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { resolve as resolvePath } from 'node:path';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { assertFrontendProvidersServeOnlyDeclaredKeys, assertNoSecretValueInFrontendProviders, FRONTEND_PROVIDER_PUBLIC_CONFIG_KEY, FrontendProviderPublicConfigError, FrontendProvidersBlockSchema, overlayFrontendProviderPublicConfig, resolveProviderConnectionRef, } from '@wildo-ai/saas-models';
|
|
5
|
+
import { assertFrontendProvidersServeOnlyDeclaredKeys, assertNoSecretValueInFrontendProviders, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, FRONTEND_PROVIDER_PUBLIC_CONFIG_KEY, FrontendProviderPublicConfigError, FrontendProvidersBlockSchema, overlayFrontendProviderPublicConfig, ProviderProcessingRegionSelectionStatus, resolveProviderConnectionRef, processingRegionSelectionBindsRuntime, resolveProviderProcessingRegionSelection, assessProviderProcessingAgainstDataResidency, dataResidencyRefusals, narrowRuntimeProviderDataResidency, RuntimeProviderDataResidencySchema, runtimeProviderDataResidencyFor, } from '@wildo-ai/saas-models';
|
|
6
6
|
import { SaasLockfileProvidersSectionSchema, } from '../lockfile/wildo-saas-lock.shared.schemas.js';
|
|
7
7
|
import { getDeclaredApplicationModuleIds, getServiceBoundApplicationModuleIds, } from './shared/application-modules.utils.js';
|
|
8
8
|
import { SaasProvidersScopesSchema, SaasProviderScopeSelectionSchema, } from './define-saas-config.js';
|
|
9
|
-
import { resolveProviderBasePackage, selectOptedInProviderAugmentations, describeProviderRefClaimedByMoreThanOneImportPath, readSystemOfRecordFacetModuleSpecifier, } from './provider-companion-discovery.js';
|
|
9
|
+
import { resolveProviderBasePackage, selectOptedInProviderAugmentations, describeProviderRefClaimedByMoreThanOneImportPath, providerComplianceProfilesFromContributions, readSystemOfRecordFacetModuleSpecifier, } from './provider-companion-discovery.js';
|
|
10
10
|
export const PROVIDER_RUNTIME_ARTIFACT_AUTOGENERATED_WARNING = 'AUTO-GENERATED FILE. DO NOT EDIT. Regenerate with `wildo config sync`.';
|
|
11
11
|
export const PROVIDER_RUNTIME_ARTIFACT_GENERATOR = 'wildo provider-runtime-artifact';
|
|
12
12
|
/**
|
|
@@ -59,8 +59,7 @@ export const PROVIDER_LOCK_SECTION_PATH = 'sections.providers.runtimeScopes';
|
|
|
59
59
|
*
|
|
60
60
|
* This file is the **single delivery channel** non-Node workers (Rust /
|
|
61
61
|
* Java / etc.) receive for provider topology — there is no executable
|
|
62
|
-
* JS bundle in their case
|
|
63
|
-
* `.claude/plans/provider-migration-continuation.md`). Node workers
|
|
62
|
+
* JS bundle in their case. Node workers
|
|
64
63
|
* receive both this file and the per-package
|
|
65
64
|
* `wildo-provider-runtime.generated.ts` source module; reading either
|
|
66
65
|
* surface yields a consistent view because they share the same digest.
|
|
@@ -77,6 +76,8 @@ const RuntimeProviderScopeArtifactSchema = z.strictObject({
|
|
|
77
76
|
selection: z.record(z.string(), z.strictObject({
|
|
78
77
|
primary: z.string().min(1),
|
|
79
78
|
whenUnavailable: z.array(z.string().min(1)).default([]),
|
|
79
|
+
/** Call-time failover (#2301), carried as authored: absent stays absent, so an artifact without it is byte-identical. */
|
|
80
|
+
failover: z.array(z.string().min(1)).optional(),
|
|
80
81
|
})).default({}),
|
|
81
82
|
});
|
|
82
83
|
const RuntimeProviderModulesArtifactSchema = z.strictObject({
|
|
@@ -177,6 +178,24 @@ export const SaasRuntimeProvidersArtifactSchema = z.strictObject({
|
|
|
177
178
|
* artifact of an application without augmentations byte-identical to what it was.
|
|
178
179
|
*/
|
|
179
180
|
providerRuntimeAugmentations: z.record(z.string().min(1), z.array(RuntimeProviderAugmentationArtifactSchema).min(1)).optional(),
|
|
181
|
+
/**
|
|
182
|
+
* `providerRef` -> the processing region the application chose (`providerComplianceChoices.<ref>.processingRegion`), for
|
|
183
|
+
* the providers in this artifact that ENFORCE their region, by endpoint or by request parameter (#3513). The host's
|
|
184
|
+
* provider loader binds each to its region (the region's host, or the parameter every request carries), so the region
|
|
185
|
+
* an application states is the one its calls go to.
|
|
186
|
+
*
|
|
187
|
+
* Only providers that enforce their region appear, so an application using none is byte-identical to before. Absent
|
|
188
|
+
* when none remain.
|
|
189
|
+
*/
|
|
190
|
+
providerProcessingRegions: z.record(z.string().min(1), z.string().min(1)).optional(),
|
|
191
|
+
/**
|
|
192
|
+
* The declared data residency and the choice of every provider in this artifact (#2294), for the hosts that load
|
|
193
|
+
* providers to serve the application's data (backend, minions, node workers). Their provider loader re-applies the
|
|
194
|
+
* residency to the modules it actually loaded, so a provider a call can be routed to at run time (selected, substituted,
|
|
195
|
+
* failed over to) has passed the same predicate sync refused on. Absent when no residency is declared, and on the
|
|
196
|
+
* companion and frontend-services artifacts, which no data-serving loader reads.
|
|
197
|
+
*/
|
|
198
|
+
providerDataResidency: RuntimeProviderDataResidencySchema.optional(),
|
|
180
199
|
providerGraphDigest: z.string().min(1),
|
|
181
200
|
lockfileSectionDigest: z.string().min(1),
|
|
182
201
|
artifactKind: z.enum([
|
|
@@ -197,6 +216,7 @@ export function materializeSaasProviderRuntimeArtifacts(
|
|
|
197
216
|
// config keep compiling; absent means "the application configured nothing", never a refusal.
|
|
198
217
|
config, options) {
|
|
199
218
|
const scopes = SaasProvidersScopesSchema.parse(config.providers.scopes);
|
|
219
|
+
assertFrontendCaptchaHasBackendVerifier(scopes);
|
|
200
220
|
const generatedAt = options?.generatedAt ?? new Date().toISOString();
|
|
201
221
|
const modules = materializeModules(config);
|
|
202
222
|
const frontendServiceTypes = Object.fromEntries(Object.entries(config.services ?? {})
|
|
@@ -241,8 +261,25 @@ config, options) {
|
|
|
241
261
|
scopes,
|
|
242
262
|
providerConfigurations: config.providerConfigurations ?? {},
|
|
243
263
|
});
|
|
264
|
+
// #2294: a declared data residency refuses, before any artifact is written, a provider whose chosen region processes
|
|
265
|
+
// outside it, whose places nothing states, or which a data-serving runtime declares with no choice saying where it
|
|
266
|
+
// processes. Over every configured choice and every data-serving scope, before the per-host narrowing.
|
|
267
|
+
assertProviderProcessingInsideDataResidency({
|
|
268
|
+
residency: config.operatorComplianceIdentity?.dataResidency,
|
|
269
|
+
choices: config.providerComplianceChoices,
|
|
270
|
+
providerRefs: dataServingProviderRefs(scopes),
|
|
271
|
+
contributions: discoveryContext.contributions,
|
|
272
|
+
});
|
|
244
273
|
const artifacts = materializeRuntimeArtifacts({
|
|
245
274
|
artifactMetadata,
|
|
275
|
+
processingRegions: materializeProviderProcessingRegions({
|
|
276
|
+
choices: config.providerComplianceChoices,
|
|
277
|
+
contributions: discoveryContext.contributions,
|
|
278
|
+
}),
|
|
279
|
+
dataResidency: {
|
|
280
|
+
residency: config.operatorComplianceIdentity?.dataResidency,
|
|
281
|
+
choices: config.providerComplianceChoices,
|
|
282
|
+
},
|
|
246
283
|
discoveryContext,
|
|
247
284
|
frontendServiceTypes,
|
|
248
285
|
frontendServiceNames,
|
|
@@ -254,6 +291,133 @@ config, options) {
|
|
|
254
291
|
});
|
|
255
292
|
return { artifacts, lockSection };
|
|
256
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Refuses a frontend captcha that no backend verifies.
|
|
296
|
+
*
|
|
297
|
+
* A captcha provider has two halves: the browser part that obtains a token, and the backend part that checks it
|
|
298
|
+
* (`recaptcha`'s verifier). The backend demands a challenge on public submissions only when ITS scope declares the
|
|
299
|
+
* verifier (`submission-challenge.backend.service.ts`), so a captcha declared on a frontend service alone loads the
|
|
300
|
+
* vendor's script into every visitor's page and protects nothing: the backend accepts every submission unchecked.
|
|
301
|
+
* That is a control that looks like one and does nothing, which this repository treats as a defect rather than a
|
|
302
|
+
* warning, so the sync refuses it with the one-line remedy.
|
|
303
|
+
*
|
|
304
|
+
* Same ref, not just any captcha: a token from one vendor can only be checked by that vendor's verifier.
|
|
305
|
+
*/
|
|
306
|
+
export function assertFrontendCaptchaHasBackendVerifier(scopes) {
|
|
307
|
+
const captcha = BUILTIN_PROVIDER_CAPABILITY.FRONTEND_CAPTCHA;
|
|
308
|
+
const verified = new Set(Object.entries(scopes.backend?.providers ?? {})
|
|
309
|
+
.filter(([, declaration]) => declaration.providerCapabilities.includes(captcha))
|
|
310
|
+
.map(([ref]) => ref));
|
|
311
|
+
const unverified = [];
|
|
312
|
+
for (const [serviceKey, scope] of Object.entries(scopes.frontendServices ?? {})) {
|
|
313
|
+
for (const [ref, declaration] of Object.entries(scope.providers)) {
|
|
314
|
+
if (declaration.providerCapabilities.includes(captcha) && !verified.has(ref)) {
|
|
315
|
+
unverified.push(`"${ref}" on frontend service "${serviceKey}"`);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if (unverified.length === 0)
|
|
320
|
+
return;
|
|
321
|
+
throw new Error(`A captcha is declared in the browser with no backend to verify it: ${unverified.join(', ')}. The backend demands a `
|
|
322
|
+
+ 'challenge on public submissions only when its own provider scope declares the same captcha provider, so as declared '
|
|
323
|
+
+ 'the vendor\'s script runs and every submission is accepted unchecked. Declare the same ref under '
|
|
324
|
+
+ `providers.scopes.backend.providers with providerCapabilities ['${captcha}'] (its secret key goes in the backend's `
|
|
325
|
+
+ 'secrets), or remove it from the frontend service.');
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* The processing region each provider that ENFORCES its region (by endpoint or by request parameter) is bound to (#3513), or
|
|
329
|
+
* a REFUSAL: a region such a provider cannot be reached in stops `wildo config sync` before any artifact is written, naming
|
|
330
|
+
* the regions it serves. The decision is
|
|
331
|
+
* `resolveProviderProcessingRegionSelection`, the one the backend provider loader applies, so sync and the runtime cannot
|
|
332
|
+
* disagree about what a region means.
|
|
333
|
+
*
|
|
334
|
+
* Read over every provider the application configures a choice for, before the per-host narrowing: a refused region is a
|
|
335
|
+
* configuration error wherever the provider runs. A provider with no discovered profile, an account-resident region, or a
|
|
336
|
+
* choice with no region contributes nothing, because no call selects anything there.
|
|
337
|
+
*/
|
|
338
|
+
export function materializeProviderProcessingRegions(input) {
|
|
339
|
+
const profiles = providerComplianceProfilesFromContributions(input.contributions);
|
|
340
|
+
const regions = {};
|
|
341
|
+
const refusals = [];
|
|
342
|
+
for (const [providerRef, choice] of Object.entries(input.choices ?? {}).sort(([left], [right]) => left.localeCompare(right))) {
|
|
343
|
+
const selection = resolveProviderProcessingRegionSelection({ providerRef, profile: profiles[providerRef], region: choice.processingRegion });
|
|
344
|
+
if (selection.status === ProviderProcessingRegionSelectionStatus.REFUSED)
|
|
345
|
+
refusals.push(selection.message);
|
|
346
|
+
else if (processingRegionSelectionBindsRuntime(selection))
|
|
347
|
+
regions[providerRef] = selection.region;
|
|
348
|
+
}
|
|
349
|
+
if (refusals.length > 0)
|
|
350
|
+
throw new Error(`Provider processing region refused: ${refusals.join(' ')}`);
|
|
351
|
+
return regions;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Refuses a configuration whose declared data residency (`operatorComplianceIdentity.dataResidency`, #2294) a
|
|
355
|
+
* vendor-hosted provider would leave: its chosen region processes in a place outside the residency, or its profile does
|
|
356
|
+
* not state where that region processes. `wildo config sync` (run by every `wildo local dev` start) and `wildo lock
|
|
357
|
+
* check` call it before any artifact is written, so an application that pins its data to a territory cannot start with
|
|
358
|
+
* a provider processing elsewhere. Nothing is checked when no residency is declared: the residency is an opt-in
|
|
359
|
+
* commitment, and an application that made none has nothing to keep.
|
|
360
|
+
*
|
|
361
|
+
* The decision is `assessProviderProcessingAgainstDataResidency` (`@wildo-ai/saas-models`); the computed document fact
|
|
362
|
+
* states the same entries, so the refusal and the notice cannot disagree about where a provider processes.
|
|
363
|
+
*/
|
|
364
|
+
export function assertProviderProcessingInsideDataResidency(input) {
|
|
365
|
+
if (input.residency === undefined)
|
|
366
|
+
return;
|
|
367
|
+
const refusals = dataResidencyRefusals(assessProviderProcessingAgainstDataResidency({
|
|
368
|
+
residency: input.residency,
|
|
369
|
+
choices: input.choices,
|
|
370
|
+
profilesByProviderRef: providerComplianceProfilesFromContributions(input.contributions),
|
|
371
|
+
...(input.providerRefs !== undefined ? { providerRefs: input.providerRefs } : {}),
|
|
372
|
+
}), input.residency);
|
|
373
|
+
if (refusals.length > 0)
|
|
374
|
+
throw new Error(`Data residency refused: ${refusals.join(' ')}`);
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Whether each provider scope serves the application's data, and so falls under a declared data residency (#2294).
|
|
378
|
+
* Total over the scope kinds, so a scope kind added tomorrow is a compile error here until someone decides.
|
|
379
|
+
*
|
|
380
|
+
* The companion is the one scope that does not: it is the development host, run on the developer's machine against the
|
|
381
|
+
* application's SOURCE (coding runs, label and document generation), never in front of the application's users or their
|
|
382
|
+
* records. A choice it shares with a data-serving runtime is still checked, through `providerComplianceChoices`.
|
|
383
|
+
*/
|
|
384
|
+
const SCOPE_SERVES_APPLICATION_DATA = {
|
|
385
|
+
backend: true,
|
|
386
|
+
companion: false,
|
|
387
|
+
frontendServices: true,
|
|
388
|
+
minions: true,
|
|
389
|
+
workers: true,
|
|
390
|
+
};
|
|
391
|
+
/** Every provider ref a data-serving scope declares, sorted. See {@link SCOPE_SERVES_APPLICATION_DATA}. */
|
|
392
|
+
export function dataServingProviderRefs(scopes) {
|
|
393
|
+
const refs = new Set();
|
|
394
|
+
for (const kind of Object.keys(SCOPE_SERVES_APPLICATION_DATA)) {
|
|
395
|
+
if (!SCOPE_SERVES_APPLICATION_DATA[kind])
|
|
396
|
+
continue;
|
|
397
|
+
for (const runtimeScope of runtimeScopesOfKind(scopes, kind)) {
|
|
398
|
+
for (const providerRef of Object.keys(runtimeScope.providers ?? {}))
|
|
399
|
+
refs.add(providerRef);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return [...refs].sort((left, right) => left.localeCompare(right));
|
|
403
|
+
}
|
|
404
|
+
/** The runtime scopes one scope kind declares: the scope itself for a single runtime, every keyed scope otherwise. */
|
|
405
|
+
function runtimeScopesOfKind(scopes, kind) {
|
|
406
|
+
switch (kind) {
|
|
407
|
+
case 'backend':
|
|
408
|
+
case 'companion':
|
|
409
|
+
return scopes[kind] === undefined ? [] : [scopes[kind]];
|
|
410
|
+
case 'frontendServices':
|
|
411
|
+
case 'minions':
|
|
412
|
+
case 'workers':
|
|
413
|
+
return Object.values(scopes[kind] ?? {});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
/** The region map restricted to the given refs, or `undefined` when none remain — the shape every per-host artifact carries. */
|
|
417
|
+
export function narrowProviderProcessingRegions(regions, providerRefs) {
|
|
418
|
+
const narrowed = Object.entries(regions ?? {}).filter(([providerRef]) => providerRefs.includes(providerRef));
|
|
419
|
+
return narrowed.length === 0 ? undefined : Object.fromEntries(narrowed);
|
|
420
|
+
}
|
|
257
421
|
export function selectScopedProviderRuntimeArtifact(artifact, scopeKey) {
|
|
258
422
|
if (!artifact.scopes) {
|
|
259
423
|
throw new Error(`Provider runtime artifact '${artifact.artifactKind}' does not contain keyed scopes.`);
|
|
@@ -288,6 +452,10 @@ export function selectScopedProviderRuntimeArtifact(artifact, scopeKey) {
|
|
|
288
452
|
.filter(([providerRef]) => projectedProviderRefs.includes(providerRef))),
|
|
289
453
|
// Narrowed for the same reason: a host applies augmentations only to the providers IT declares (#1672).
|
|
290
454
|
providerRuntimeAugmentations: narrowRuntimeAugmentations(artifact.providerRuntimeAugmentations, projectedProviderRefs),
|
|
455
|
+
// Narrowed for the same reason (#3513): a host binds only the providers it declares to their regions.
|
|
456
|
+
providerProcessingRegions: narrowProviderProcessingRegions(artifact.providerProcessingRegions, projectedProviderRefs),
|
|
457
|
+
// Narrowed for the same reason (#2294): a host re-applies the residency to the providers it declares.
|
|
458
|
+
providerDataResidency: narrowRuntimeProviderDataResidency(artifact.providerDataResidency, projectedProviderRefs),
|
|
291
459
|
frontendProviderBootstraps: artifact.frontendProviderBootstraps?.[scopeKey]
|
|
292
460
|
? { [scopeKey]: artifact.frontendProviderBootstraps[scopeKey] }
|
|
293
461
|
: undefined,
|
|
@@ -561,6 +729,8 @@ function materializeRuntimeArtifacts(input) {
|
|
|
561
729
|
generatedAt,
|
|
562
730
|
modules,
|
|
563
731
|
metadata: artifactMetadata.backend,
|
|
732
|
+
processingRegions: input.processingRegions,
|
|
733
|
+
dataResidency: input.dataResidency,
|
|
564
734
|
// Only the HTTP-facing backend map uses public names. Static artifacts below
|
|
565
735
|
// deliberately retain declaration keys for build-time scope selection.
|
|
566
736
|
frontendProviderBootstraps: backendBootstraps && Object.fromEntries(Object.entries(backendBootstraps).map(([serviceKey, block]) => [input.frontendServiceNames[serviceKey], block])),
|
|
@@ -571,6 +741,7 @@ function materializeRuntimeArtifacts(input) {
|
|
|
571
741
|
generatedAt,
|
|
572
742
|
modules,
|
|
573
743
|
metadata: artifactMetadata.companion,
|
|
744
|
+
processingRegions: input.processingRegions,
|
|
574
745
|
scope: materializeRuntimeScope(scopes.companion ?? { providers: {}, selection: {} }),
|
|
575
746
|
}),
|
|
576
747
|
frontendServices: scopes.frontendServices
|
|
@@ -579,6 +750,7 @@ function materializeRuntimeArtifacts(input) {
|
|
|
579
750
|
generatedAt,
|
|
580
751
|
modules,
|
|
581
752
|
metadata: artifactMetadata.frontendServices,
|
|
753
|
+
processingRegions: input.processingRegions,
|
|
582
754
|
frontendProviderBootstraps: materializeFrontendProviderBootstraps({
|
|
583
755
|
discoveredContributions: discoveryContext.contributions,
|
|
584
756
|
frontendServiceScopes: scopes.frontendServices,
|
|
@@ -594,6 +766,8 @@ function materializeRuntimeArtifacts(input) {
|
|
|
594
766
|
generatedAt,
|
|
595
767
|
modules,
|
|
596
768
|
metadata: artifactMetadata.minions,
|
|
769
|
+
processingRegions: input.processingRegions,
|
|
770
|
+
dataResidency: input.dataResidency,
|
|
597
771
|
scopes: mapRecord(scopes.minions, materializeRuntimeScope),
|
|
598
772
|
})
|
|
599
773
|
: undefined,
|
|
@@ -603,6 +777,8 @@ function materializeRuntimeArtifacts(input) {
|
|
|
603
777
|
generatedAt,
|
|
604
778
|
modules,
|
|
605
779
|
metadata: artifactMetadata.nodeWorkers,
|
|
780
|
+
processingRegions: input.processingRegions,
|
|
781
|
+
dataResidency: input.dataResidency,
|
|
606
782
|
scopes: mapRecord(nodeWorkerScopes, materializeRuntimeScope),
|
|
607
783
|
})
|
|
608
784
|
: undefined,
|
|
@@ -618,6 +794,10 @@ function materializeRuntimeArtifactFile(input) {
|
|
|
618
794
|
providerRuntimeImports: input.metadata.providerRuntimeImports,
|
|
619
795
|
systemOfRecordFacetModules: input.metadata.systemOfRecordFacetModules,
|
|
620
796
|
providerRuntimeAugmentations: input.metadata.providerRuntimeAugmentations,
|
|
797
|
+
providerProcessingRegions: narrowProviderProcessingRegions(input.processingRegions, input.metadata.providerRefs),
|
|
798
|
+
providerDataResidency: input.dataResidency === undefined
|
|
799
|
+
? undefined
|
|
800
|
+
: runtimeProviderDataResidencyFor({ ...input.dataResidency, providerRefs: input.metadata.providerRefs }),
|
|
621
801
|
providerGraphDigest: input.metadata.providerGraphDigest,
|
|
622
802
|
lockfileSectionDigest: input.metadata.lockfileSectionDigest,
|
|
623
803
|
artifactKind: input.artifactKind,
|
|
@@ -633,6 +813,23 @@ function materializeRuntimeScope(scope) {
|
|
|
633
813
|
selection: scope.selection ?? {},
|
|
634
814
|
});
|
|
635
815
|
}
|
|
816
|
+
/**
|
|
817
|
+
* Whether a frontend service serves a provider its scope names (#2805): a runtime uses exactly what its scope entry binds.
|
|
818
|
+
* So an entry binding nothing (no engine capability, no provider capability, no protocol, what `wildo registry add`
|
|
819
|
+
* writes) is not served, and a module with a browser SDK (it binds FRONTEND_SDK) is served only when its entry lists
|
|
820
|
+
* FRONTEND_SDK. A module that binds no protocol (an SDK-less one, such as `google-places`, whose lookups go through the
|
|
821
|
+
* backend) is served for the capabilities its entry binds. The backend's `isProviderEnabled` applies the same rule to
|
|
822
|
+
* every other protocol, and `frontend-bootstrap.backend.service.ts` applies this one when no generated bootstrap exists.
|
|
823
|
+
*/
|
|
824
|
+
export function frontendScopeEntryServes(entry, moduleProtocols) {
|
|
825
|
+
if (entry === undefined)
|
|
826
|
+
return false;
|
|
827
|
+
const bindsSomething = (entry.engineCapabilities?.length ?? 0) + (entry.providerCapabilities?.length ?? 0) + (entry.protocols?.length ?? 0) > 0;
|
|
828
|
+
if (!bindsSomething)
|
|
829
|
+
return false;
|
|
830
|
+
return !moduleProtocols.includes(BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK)
|
|
831
|
+
|| (entry.protocols ?? []).includes(BUILTIN_PROVIDER_PROTOCOL.FRONTEND_SDK);
|
|
832
|
+
}
|
|
636
833
|
function materializeFrontendProviderBootstraps(input) {
|
|
637
834
|
const { discoveredContributions, frontendServiceScopes, frontendServiceTypes, providerConfigurations } = input;
|
|
638
835
|
const entries = Object.entries(frontendServiceScopes).map(([serviceKey, scope]) => {
|
|
@@ -641,7 +838,7 @@ function materializeFrontendProviderBootstraps(input) {
|
|
|
641
838
|
throw new Error(`Cannot materialize frontend bootstrap for service "${serviceKey}": ` +
|
|
642
839
|
`service has no frontendType — only services with a frontendType may appear under providers.scopes.frontendServices.`);
|
|
643
840
|
}
|
|
644
|
-
const providers = Object.fromEntries(Object.keys(scope.providers).
|
|
841
|
+
const providers = Object.fromEntries(Object.keys(scope.providers).flatMap((providerRef) => {
|
|
645
842
|
const matchingContribution = discoveredContributions.filter((contribution) => contribution.ref === providerRef
|
|
646
843
|
&& contribution.runtimeTargets.some((target) => target.kind === 'frontendService' && target.serviceType === serviceType));
|
|
647
844
|
if (matchingContribution.length === 0) {
|
|
@@ -656,16 +853,19 @@ function materializeFrontendProviderBootstraps(input) {
|
|
|
656
853
|
throw new Error(`Cannot materialize frontend bootstrap for service "${serviceKey}": ` +
|
|
657
854
|
`provider "${providerRef}" is contributed more than once for the same runtime.`);
|
|
658
855
|
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
856
|
+
const moduleEntry = matchingContribution[0].frontendEntry;
|
|
857
|
+
if (!frontendScopeEntryServes(scope.providers[providerRef], moduleEntry.protocols))
|
|
858
|
+
return [];
|
|
859
|
+
return [[
|
|
663
860
|
providerRef,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
861
|
+
applyApplicationPublicConfig({
|
|
862
|
+
serviceKey,
|
|
863
|
+
providerRef,
|
|
864
|
+
entry: moduleEntry,
|
|
865
|
+
supplied: providerConfigurations[providerRef]?.[FRONTEND_PROVIDER_PUBLIC_CONFIG_KEY],
|
|
866
|
+
discoveredContributions,
|
|
867
|
+
}),
|
|
868
|
+
]];
|
|
669
869
|
}));
|
|
670
870
|
return [serviceKey, FrontendProvidersBlockSchema.parse({ providers })];
|
|
671
871
|
});
|
|
@@ -973,8 +1173,8 @@ function buildArtifactMetadata(input) {
|
|
|
973
1173
|
frontendServices: buildMultiScopeArtifactMetadata({
|
|
974
1174
|
runtimeKindLabel: 'frontend service',
|
|
975
1175
|
/*
|
|
976
|
-
* Per service only: one ref legitimately has a different browser module per frontend type (
|
|
977
|
-
* `…-
|
|
1176
|
+
* Per service only: one ref legitimately has a different browser module per frontend type (an installed
|
|
1177
|
+
* posthog is `…-frontend/app` for the SaaS app and `…-frontend/website` for the site), and no runtime loads this
|
|
978
1178
|
* artifact's merged import map — a browser receives its providers through its bootstrap entries.
|
|
979
1179
|
*/
|
|
980
1180
|
oneImportPathAcrossScopes: false,
|