@wildo-ai/platform-config-lib 1.1.11 → 1.1.13
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.map +1 -1
- package/dist/esm/blueprint/anchored-region.js.map +1 -1
- package/dist/esm/blueprint/blueprint.schemas.d.ts +0 -89
- package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -1
- package/dist/esm/blueprint/blueprint.schemas.js.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +8 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +15 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +10 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +10 -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.d.ts.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.map +1 -1
- package/dist/esm/bootstrap/runtime-response-integrity.js +3 -3
- package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -1
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.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.map +1 -1
- package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- 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 +5 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -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 +114 -40
- package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -1
- package/dist/esm/key-management/approval-seal-verifier.js +143 -12
- package/dist/esm/key-management/approval-seal-verifier.js.map +1 -1
- package/dist/esm/key-management/approval-seal.contracts.d.ts +12 -15
- package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/approval-seal.contracts.js +20 -0
- package/dist/esm/key-management/approval-seal.contracts.js.map +1 -1
- package/dist/esm/key-management/data-key.contracts.d.ts +0 -2
- package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/data-key.contracts.js.map +1 -1
- package/dist/esm/key-management/es256-jws.d.ts.map +1 -1
- package/dist/esm/key-management/es256-jws.js.map +1 -1
- package/dist/esm/key-management/key-provider.spi.d.ts +8 -1
- package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -1
- package/dist/esm/key-management/key-provider.spi.js.map +1 -1
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts +2 -12
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/keyring-rotation.contracts.js +3 -3
- package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -1
- package/dist/esm/key-management/keyring-status.contracts.d.ts +0 -7
- package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/keyring-status.contracts.js.map +1 -1
- 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 +0 -4
- package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/signature-request.contracts.js.map +1 -1
- package/dist/esm/key-management/signing-log-export.contracts.d.ts +0 -1
- package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -1
- package/dist/esm/key-management/vault-custody.contracts.d.ts +43 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/vault-custody.contracts.js +66 -0
- package/dist/esm/key-management/vault-custody.contracts.js.map +1 -1
- 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 +6 -8
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +6 -8
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +5 -6
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +4 -5
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +1 -247
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +1 -1
- 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 +15 -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.map +1 -1
- package/dist/esm/project-config/application-served-public-documents.loader.js +16 -8
- package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +146 -55
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +124 -71
- 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 +41 -437
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +102 -94
- 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 +2 -1
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +2 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +2 -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.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.d.ts +7 -7
- package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.js +7 -7
- package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +3 -1
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +71 -46
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +150 -4
- 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.d.ts.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.d.ts.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.d.ts.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 +34 -6
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.js +52 -8
- 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 -84
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +40 -12
- 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 +95 -8
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +122 -10
- 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.d.ts.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 +1 -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 +1 -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 +20 -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 +21 -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 +67 -38
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-key-management.schemas.js +113 -5
- package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/esm/registry/digest.schemas.js.map +1 -1
- package/dist/esm/registry/index.d.ts +2 -3
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js +2 -3
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
- package/dist/esm/registry/local-checkout-source.js.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +1 -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 +17 -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 +151 -219
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +145 -13
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -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 +81 -3
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js +185 -4
- package/dist/esm/registry/registry-errors.js.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/registry/registry-url-resolution.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +0 -7
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- 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.d.ts.map +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.d.ts.map +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.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
- package/dist/esm/workspace-scope/index.d.ts.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,5 +1,5 @@
|
|
|
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
4
|
import { type SaasProvidersScopes, type WildoSaasConfig } from './define-saas-config';
|
|
5
5
|
import { type AdmittedProviderPackage, type DiscoveredProviderAugmentation, type DiscoveredProviderCompanionContribution } from './provider-companion-discovery';
|
|
@@ -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<{
|
|
@@ -272,6 +239,22 @@ export declare const SaasRuntimeProvidersArtifactSchema: z.ZodObject<{
|
|
|
272
239
|
determination: z.ZodOptional<z.ZodLiteral<import("@wildo-ai/saas-models").ProviderComplianceDetermination.ESTABLISHED>>;
|
|
273
240
|
deploymentModels: z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/saas-models").ProviderDeploymentModel>>;
|
|
274
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>>;
|
|
275
258
|
vendorLegalEntityName: z.ZodOptional<z.ZodString>;
|
|
276
259
|
subprocessorListUrl: z.ZodOptional<z.ZodURL>;
|
|
277
260
|
dataProcessingAgreementUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -299,7 +282,7 @@ export interface MaterializedSaasProviderRuntimeArtifacts {
|
|
|
299
282
|
artifacts: Partial<Record<ProviderRuntimeArtifactKind, SaasRuntimeProvidersArtifact>>;
|
|
300
283
|
lockSection: SaasLockfileProvidersSection;
|
|
301
284
|
}
|
|
302
|
-
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?: {
|
|
303
286
|
generatedAt?: string;
|
|
304
287
|
nodeWorkerKeys?: string[];
|
|
305
288
|
discoveredContributions?: DiscoveredProviderCompanionContribution[];
|
|
@@ -335,6 +318,48 @@ export declare function materializeSaasProviderRuntimeArtifacts(config: Pick<Wil
|
|
|
335
318
|
* Same ref, not just any captcha: a token from one vendor can only be checked by that vendor's verifier.
|
|
336
319
|
*/
|
|
337
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;
|
|
338
363
|
export declare function selectScopedProviderRuntimeArtifact(artifact: SaasRuntimeProvidersArtifact, scopeKey: string): SaasRuntimeProvidersArtifact;
|
|
339
364
|
/**
|
|
340
365
|
* The augmentation map restricted to the given refs, or `undefined` when none remain — so a per-host projection
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-runtime-artifacts.d.ts","sourceRoot":"","sources":["
|
|
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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C,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB,GAAG,IAAI,CA8BP;AAED,KAAK,2BAA2B,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QACxB,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC1C,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KAClC,CAAC,CAAC;CACJ,CAAC;AAkJF;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE;IAAE,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,SAAS,EACtI,eAAe,EAAE,SAAS,MAAM,EAAE,GACjC,OAAO,CAMT;AAuHD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kDAAkD,CAAC,KAAK,EAAE;IACxE,QAAQ,CAAC,SAAS,EAAE,wCAAwC,CAAC,WAAW,CAAC,CAAC;IAC1E,QAAQ,CAAC,OAAO,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAC7D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,GAAG,IAAI,CAUP;AAED,6HAA6H;AAC7H,wBAAgB,2CAA2C,CACzD,SAAS,EAAE,wCAAwC,CAAC,WAAW,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, BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, 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([
|
|
@@ -242,8 +261,25 @@ config, options) {
|
|
|
242
261
|
scopes,
|
|
243
262
|
providerConfigurations: config.providerConfigurations ?? {},
|
|
244
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
|
+
});
|
|
245
273
|
const artifacts = materializeRuntimeArtifacts({
|
|
246
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
|
+
},
|
|
247
283
|
discoveryContext,
|
|
248
284
|
frontendServiceTypes,
|
|
249
285
|
frontendServiceNames,
|
|
@@ -288,6 +324,100 @@ export function assertFrontendCaptchaHasBackendVerifier(scopes) {
|
|
|
288
324
|
+ `providers.scopes.backend.providers with providerCapabilities ['${captcha}'] (its secret key goes in the backend's `
|
|
289
325
|
+ 'secrets), or remove it from the frontend service.');
|
|
290
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
|
+
}
|
|
291
421
|
export function selectScopedProviderRuntimeArtifact(artifact, scopeKey) {
|
|
292
422
|
if (!artifact.scopes) {
|
|
293
423
|
throw new Error(`Provider runtime artifact '${artifact.artifactKind}' does not contain keyed scopes.`);
|
|
@@ -322,6 +452,10 @@ export function selectScopedProviderRuntimeArtifact(artifact, scopeKey) {
|
|
|
322
452
|
.filter(([providerRef]) => projectedProviderRefs.includes(providerRef))),
|
|
323
453
|
// Narrowed for the same reason: a host applies augmentations only to the providers IT declares (#1672).
|
|
324
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),
|
|
325
459
|
frontendProviderBootstraps: artifact.frontendProviderBootstraps?.[scopeKey]
|
|
326
460
|
? { [scopeKey]: artifact.frontendProviderBootstraps[scopeKey] }
|
|
327
461
|
: undefined,
|
|
@@ -595,6 +729,8 @@ function materializeRuntimeArtifacts(input) {
|
|
|
595
729
|
generatedAt,
|
|
596
730
|
modules,
|
|
597
731
|
metadata: artifactMetadata.backend,
|
|
732
|
+
processingRegions: input.processingRegions,
|
|
733
|
+
dataResidency: input.dataResidency,
|
|
598
734
|
// Only the HTTP-facing backend map uses public names. Static artifacts below
|
|
599
735
|
// deliberately retain declaration keys for build-time scope selection.
|
|
600
736
|
frontendProviderBootstraps: backendBootstraps && Object.fromEntries(Object.entries(backendBootstraps).map(([serviceKey, block]) => [input.frontendServiceNames[serviceKey], block])),
|
|
@@ -605,6 +741,7 @@ function materializeRuntimeArtifacts(input) {
|
|
|
605
741
|
generatedAt,
|
|
606
742
|
modules,
|
|
607
743
|
metadata: artifactMetadata.companion,
|
|
744
|
+
processingRegions: input.processingRegions,
|
|
608
745
|
scope: materializeRuntimeScope(scopes.companion ?? { providers: {}, selection: {} }),
|
|
609
746
|
}),
|
|
610
747
|
frontendServices: scopes.frontendServices
|
|
@@ -613,6 +750,7 @@ function materializeRuntimeArtifacts(input) {
|
|
|
613
750
|
generatedAt,
|
|
614
751
|
modules,
|
|
615
752
|
metadata: artifactMetadata.frontendServices,
|
|
753
|
+
processingRegions: input.processingRegions,
|
|
616
754
|
frontendProviderBootstraps: materializeFrontendProviderBootstraps({
|
|
617
755
|
discoveredContributions: discoveryContext.contributions,
|
|
618
756
|
frontendServiceScopes: scopes.frontendServices,
|
|
@@ -628,6 +766,8 @@ function materializeRuntimeArtifacts(input) {
|
|
|
628
766
|
generatedAt,
|
|
629
767
|
modules,
|
|
630
768
|
metadata: artifactMetadata.minions,
|
|
769
|
+
processingRegions: input.processingRegions,
|
|
770
|
+
dataResidency: input.dataResidency,
|
|
631
771
|
scopes: mapRecord(scopes.minions, materializeRuntimeScope),
|
|
632
772
|
})
|
|
633
773
|
: undefined,
|
|
@@ -637,6 +777,8 @@ function materializeRuntimeArtifacts(input) {
|
|
|
637
777
|
generatedAt,
|
|
638
778
|
modules,
|
|
639
779
|
metadata: artifactMetadata.nodeWorkers,
|
|
780
|
+
processingRegions: input.processingRegions,
|
|
781
|
+
dataResidency: input.dataResidency,
|
|
640
782
|
scopes: mapRecord(nodeWorkerScopes, materializeRuntimeScope),
|
|
641
783
|
})
|
|
642
784
|
: undefined,
|
|
@@ -652,6 +794,10 @@ function materializeRuntimeArtifactFile(input) {
|
|
|
652
794
|
providerRuntimeImports: input.metadata.providerRuntimeImports,
|
|
653
795
|
systemOfRecordFacetModules: input.metadata.systemOfRecordFacetModules,
|
|
654
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 }),
|
|
655
801
|
providerGraphDigest: input.metadata.providerGraphDigest,
|
|
656
802
|
lockfileSectionDigest: input.metadata.lockfileSectionDigest,
|
|
657
803
|
artifactKind: input.artifactKind,
|