@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-signing-key-rotation.contracts.js","sourceRoot":"","sources":["../../../src/key-management/application-signing-key-rotation.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sC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IAC7G,kBAAkB,EAAE,8BAA8B;IAClD,+DAA+D;IAC/D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CAClD,CAAC,CAAC;AAGH,sEAAsE;AACtE,MAAM,CAAC,MAAM,2CAA2C,GAAG,CAAC,CAAC,YAAY,CAAC;IACxE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,oCAAoC,CAAC;IACrD,MAAM,EAAE,kCAAkC;CAC3C,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { APPLICATION_JWKS_CACHE_MAX_AGE_SECONDS, APPLICATION_SIGNING_KEY_PURPOSES, APPLICATION_SIGNING_KEY_REFRESH_INTERVAL_SECONDS } from '@wildo-ai/saas-models';\n\n/**\n * # Rotating an application's signing keys by hand (#2895)\n *\n * An application's four signing keys (`APPLICATION_SIGNING_KEY_PURPOSES`: auth tokens, webhooks, platform requests,\n * worker requests) are held in its secrets, not in the platform keyring, so `wildo keys rotate` refuses them. This is\n * their door, behind apps-manager's admin secret: `wildo keys rotate-signing-keys`.\n *\n * - A rotation replaces all four pairs at once. Each replaced public key is RETIRED, not dropped: it keeps verifying what\n * it signed until the longest token it can have signed expires (`notAfter`), so sessions, webhook signatures and\n * in-flight requests survive it.\n * - The request names the keys it expects to replace ({@link ApplicationSigningKeyRotationRequest.expectedKeyIds}, read\n * from {@link buildAdminApplicationSigningKeysPath} first). That is the compare-and-set that makes the door safe to\n * retry: a retry of a rotation that already happened finds its expected keys retired and answers\n * {@link ApplicationSigningKeyRotationOutcome.ALREADY_ROTATED} without rotating again, and a request built on keys\n * someone else has since replaced is refused (409) rather than applied on top.\n * - The operator states why ({@link ApplicationSigningKeyRotationRequest.justification}); the shared admin secret names\n * nobody, so the reason is what the audit row carries.\n *\n * ## Two ways to rotate\n *\n * - **Planned, through the key layer** (#2895): {@link buildAdminApplicationSigningKeyStagePath} mints a NEXT pair per\n * purpose and PUBLISHES its public half (in the application's JWKS for a published purpose, to every verifier\n * otherwise) while it signs nothing; {@link buildAdminApplicationSigningKeyPromotePath} later makes it the signing key\n * and retires the one it replaces. The promotion is refused until the NEXT keys have been published for\n * {@link APPLICATION_SIGNING_KEY_PUBLICATION_LEAD_SECONDS}: by then a relying party that cached the JWKS just before they\n * appeared has fetched it again, so no token signed with them meets a verifier that does not hold them. This is the\n * only step that asks for a fresh view: signing itself never waits for apps-manager.\n * - **Immediate** ({@link buildAdminApplicationSigningKeyRotationPath}): new keys at once, for a key that may have leaked.\n * Verifiers then learn the new key from its unfamiliar `kid` (each refetches, bounded), rather than ahead of time.\n *\n * Either way the backend adopts the new private keys at its next signing-key refresh (at most five minutes, never\n * blocking a signature), and the replaced keys stay retired, verifying, until what they signed expires.\n *\n * spec-cite: OpenID Connect Core 1.0 §10.1.1 — \"The JWK Set document at the jwks_uri SHOULD retain recently\n * decommissioned signing keys for a reasonable period of time\"; publishing the next key ahead is the practice of OIDC\n * providers (Auth0's discovery document \"will always include both the current key and the next key\").\n */\n\n/**\n * How long a staged NEXT key must have been published before it may be promoted (#2895): the backend's key refresh\n * (when its JWKS starts publishing the key) plus the JWKS cache lifetime relying parties are told they may keep, plus a\n * margin. Derived from both, so changing either moves the lead with it. 70 minutes today.\n */\nexport const APPLICATION_SIGNING_KEY_PUBLICATION_LEAD_SECONDS: number = APPLICATION_SIGNING_KEY_REFRESH_INTERVAL_SECONDS + APPLICATION_JWKS_CACHE_MAX_AGE_SECONDS + 5 * 60;\n\n\n/** What a rotation request did. */\nexport enum ApplicationSigningKeyRotationOutcome {\n /** The keys named in the request were signing, and were replaced and retired. */\n ROTATED = 'rotated',\n /**\n * The keys named in the request were already replaced: each is retired. Nothing was written. This is what a retry of a\n * rotation that succeeded (but whose answer was lost) receives.\n */\n ALREADY_ROTATED = 'already_rotated',\n /** A NEXT key was minted and published for every purpose; nothing signs with it yet. */\n STAGED = 'staged',\n /** NEXT keys were already staged: nothing was written. A retry of a staging whose answer was lost receives this. */\n ALREADY_STAGED = 'already_staged',\n /** The NEXT keys named in the request now sign, and the keys they replaced are retired. */\n PROMOTED = 'promoted',\n /** The NEXT keys named in the request already sign, and nothing is staged: nothing was written. */\n ALREADY_PROMOTED = 'already_promoted',\n}\n\n/** The admin path of an application's signing-key status. */\nexport function buildAdminApplicationSigningKeysPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/signing-keys`;\n}\n\n/** The admin path that mints and publishes an application's NEXT signing keys (#2895). */\nexport function buildAdminApplicationSigningKeyStagePath(appSlug: string): string {\n return `${buildAdminApplicationSigningKeysPath(appSlug)}/stage`;\n}\n\n/** The admin path that promotes an application's staged NEXT signing keys (#2895). */\nexport function buildAdminApplicationSigningKeyPromotePath(appSlug: string): string {\n return `${buildAdminApplicationSigningKeysPath(appSlug)}/promote`;\n}\n\n/** The admin path of an application's signing-key rotation. */\nexport function buildAdminApplicationSigningKeyRotationPath(appSlug: string): string {\n return `${buildAdminApplicationSigningKeysPath(appSlug)}/rotate`;\n}\n\n/**\n * The `kid` (RFC 7638 thumbprint) of each purpose's key, or `null` for a purpose with no usable key. Total over\n * `APPLICATION_SIGNING_KEY_PURPOSES`, so a purpose added there is a missing member here rather than a key nobody names.\n */\nexport const ApplicationSigningKeyIdsSchema = z.strictObject(\n Object.fromEntries(APPLICATION_SIGNING_KEY_PURPOSES.map((purpose) => [purpose, z.string().min(1).nullable()])) as Record<\n (typeof APPLICATION_SIGNING_KEY_PURPOSES)[number],\n z.ZodNullable<z.ZodString>\n >,\n);\nexport type ApplicationSigningKeyIds = z.infer<typeof ApplicationSigningKeyIdsSchema>;\n\n/** One purpose's keys as apps-manager holds them. */\nexport const ApplicationSigningKeyPurposeStatusSchema = z.strictObject({\n purpose: z.enum(APPLICATION_SIGNING_KEY_PURPOSES),\n /**\n * The key that SIGNS: the `kid` of the stored private key's public half. This is also the current key apps-manager\n * serves to verifiers, which derive it from the private key. `null` when no usable private key is stored.\n */\n signingKid: z.string().nullable(),\n /**\n * The current public key recorded in the stored configuration. It equals {@link signingKid} except after a rotation\n * that published its new keys and failed before storing the private keys; a retry of that rotation completes it.\n */\n publishedKid: z.string().nullable(),\n /** The retired keys still verifying, each until its `notAfter` (ISO 8601; `null` = no end recorded). */\n retired: z.array(z.strictObject({ kid: z.string(), notAfter: z.iso.datetime({ offset: true }).nullable() })),\n /**\n * The staged NEXT key (#2895), `null` when none is staged: its `kid`, when it was published, and from when it may be\n * promoted (`publishedAt` + {@link APPLICATION_SIGNING_KEY_PUBLICATION_LEAD_SECONDS}).\n */\n next: z.strictObject({\n kid: z.string(),\n publishedAt: z.iso.datetime({ offset: true }),\n promotableAt: z.iso.datetime({ offset: true }),\n }).nullable(),\n});\nexport type ApplicationSigningKeyPurposeStatus = z.infer<typeof ApplicationSigningKeyPurposeStatusSchema>;\n\n/** The answer of `GET /admin/apps/:appSlug/signing-keys`: no key material, only `kid`s and dates. */\nexport const ApplicationSigningKeysStatusSchema = z.strictObject({\n appSlug: z.string().min(1),\n purposes: z.array(ApplicationSigningKeyPurposeStatusSchema),\n});\nexport type ApplicationSigningKeysStatus = z.infer<typeof ApplicationSigningKeysStatusSchema>;\n\n/** The `kid` of each purpose's signing key in a status: what a rotation request names as the keys it replaces. */\nexport function signingKeyIdsOf(status: ApplicationSigningKeysStatus): ApplicationSigningKeyIds {\n return ApplicationSigningKeyIdsSchema.parse(\n Object.fromEntries(APPLICATION_SIGNING_KEY_PURPOSES.map((purpose) => [purpose, status.purposes.find((entry) => entry.purpose === purpose)?.signingKid ?? null])),\n );\n}\n\nexport const ApplicationSigningKeyRotationRequestSchema = z.strictObject({\n /** The signing keys the operator read and means to replace (see the module doc: the compare-and-set). */\n expectedKeyIds: ApplicationSigningKeyIdsSchema,\n /** Why, in the operator's words. Recorded on the audit row, where the shared admin secret names nobody. */\n justification: z.string().trim().min(1).max(1000),\n});\nexport type ApplicationSigningKeyRotationRequest = z.input<typeof ApplicationSigningKeyRotationRequestSchema>;\n\n/** The `kid` of each purpose's staged NEXT key in a status: what a promotion request names. */\nexport function nextSigningKeyIdsOf(status: ApplicationSigningKeysStatus): ApplicationSigningKeyIds {\n return ApplicationSigningKeyIdsSchema.parse(\n Object.fromEntries(APPLICATION_SIGNING_KEY_PURPOSES.map((purpose) => [purpose, status.purposes.find((entry) => entry.purpose === purpose)?.next?.kid ?? null])),\n );\n}\n\nexport const ApplicationSigningKeyStageRequestSchema = z.strictObject({\n /** Why, in the operator's words. Recorded on the audit row. */\n justification: z.string().trim().min(1).max(1000),\n});\nexport type ApplicationSigningKeyStageRequest = z.input<typeof ApplicationSigningKeyStageRequestSchema>;\n\nexport const ApplicationSigningKeyPromoteRequestSchema = z.strictObject({\n /** The staged NEXT keys the operator read and means to promote: the same compare-and-set as a rotation's. */\n expectedNextKeyIds: ApplicationSigningKeyIdsSchema,\n /** Why, in the operator's words. Recorded on the audit row. */\n justification: z.string().trim().min(1).max(1000),\n});\nexport type ApplicationSigningKeyPromoteRequest = z.input<typeof ApplicationSigningKeyPromoteRequestSchema>;\n\n/** The answer of a rotation: what it did, and the keys afterwards. */\nexport const ApplicationSigningKeyRotationResponseSchema = z.strictObject({\n outcome: z.enum(ApplicationSigningKeyRotationOutcome),\n status: ApplicationSigningKeysStatusSchema,\n});\nexport type ApplicationSigningKeyRotationResponse = z.infer<typeof ApplicationSigningKeyRotationResponseSchema>;\n"]}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { ApprovalSealManifestationWord } from '@wildo-ai/saas-models';
|
|
2
|
+
/**
|
|
3
|
+
* # The manifested copy of an approved deliverable (#2907)
|
|
4
|
+
*
|
|
5
|
+
* A deliverable a person approved is frozen before anyone approves it (#2904), so it cannot carry its own approval. The
|
|
6
|
+
* manifested copy is a SEPARATE file: the frozen original, byte for byte, followed by one incremental-update section that
|
|
7
|
+
* adds a last page stating who approved it, when, and what the approval meant, and attaches the approval seal's JWS. The
|
|
8
|
+
* pattern is the signature manifestation of 21 CFR §11.50 (printed name, date and time, meaning), borrowed: no Part 11
|
|
9
|
+
* compliance is claimed.
|
|
10
|
+
*
|
|
11
|
+
* spec-cite: 21 CFR §11.50(a) (https://www.ecfr.gov/current/title-21/chapter-I/subchapter-A/part-11/subpart-C/section-11.50) — the three elements, paraphrased.
|
|
12
|
+
*
|
|
13
|
+
* ## Why the copy can be checked from the seal
|
|
14
|
+
*
|
|
15
|
+
* Everything appended is a PURE function of its inputs: the original's bytes, the seal's JWS, the approver's printed
|
|
16
|
+
* name, the page's words, the embedded font and the verification address. The copy carries every input but the
|
|
17
|
+
* original's bytes (its prefix) and the JWS (attached, and given to the verifier): the words, the name and the address in
|
|
18
|
+
* an attached `manifestation.json`, the font as its embedded font program. So a verifier splits the copy at its marker
|
|
19
|
+
* ({@link APPROVAL_SEAL_MANIFESTED_COPY_MARKER}, the LAST occurrence), takes those inputs back, rebuilds the copy and
|
|
20
|
+
* compares byte for byte: one changed byte anywhere in the appended section and the copy is not this seal's.
|
|
21
|
+
*
|
|
22
|
+
* What the rebuild cannot vouch for, and who does: the WORDS are the producing application's, so the host's record of the
|
|
23
|
+
* copy's SHA-256 (in a verification bundle) binds them; the FONT is pinned by its SHA-256
|
|
24
|
+
* ({@link APPROVAL_SEAL_MANIFESTATION_FONT_SHA256S}), so a font drawing other glyphs for the same codes is refused; the
|
|
25
|
+
* NAME is checked against the seal's approver disclosure when it is given; the ORIGINAL against the seal's commitment to
|
|
26
|
+
* the approved file.
|
|
27
|
+
*
|
|
28
|
+
* ## Words, names and the font
|
|
29
|
+
*
|
|
30
|
+
* The words are the application's (`backend_documents.approval_manifestation.*`, and the meaning and outcome vocabularies),
|
|
31
|
+
* in one language. Text is set in Liberation Sans Regular (SIL Open Font License 1.1, which permits embedding it in
|
|
32
|
+
* documents), embedded WHOLE as a CID font with Identity-H encoding and a ToUnicode map, so a reader extracts the text it
|
|
33
|
+
* shows. Embedding the whole font rather than a subset is deliberate: a subset differs with the text, so only the whole
|
|
34
|
+
* font can be pinned by one digest. A name or a word with a character the font has no glyph for refuses the copy; it is
|
|
35
|
+
* never printed approximately. The font covers Latin, Greek and Cyrillic.
|
|
36
|
+
*
|
|
37
|
+
* ## The attachments (ISO 32000-1 §7.11.4, §12.5.6.15; ISO 32000-2 §14.13)
|
|
38
|
+
*
|
|
39
|
+
* The JWS is attached twice over one file specification: by a file attachment annotation on the page, and at document
|
|
40
|
+
* level in the catalog's `EmbeddedFiles` name tree and its `AF` array (PDF 2.0 associated files, `AFRelationship`
|
|
41
|
+
* Supplement), where viewers list a document's attachments. `manifestation.json` is attached at document level only.
|
|
42
|
+
*
|
|
43
|
+
* spec-cite: ISO 32000-1:2008 §7.7.2 (document catalog), §7.7.4 (name dictionary, EmbeddedFiles), §7.9.6 (name trees),
|
|
44
|
+
* §7.11.3–§7.11.4 (file specifications, embedded file streams), §9.7.4 (CIDFontType2), §9.7.5.2 (Identity-H), §9.10.3
|
|
45
|
+
* (ToUnicode CMaps), §12.5.6.15 (file attachment annotations); ISO 32000-2:2020 §14.13 (associated files). Cited by section.
|
|
46
|
+
*/
|
|
47
|
+
/** Opens the appended section: the copy is split at its LAST occurrence. Never produced by anything this module writes. */
|
|
48
|
+
export declare const APPROVAL_SEAL_MANIFESTED_COPY_MARKER = "\n%wildo-manifested-copy:2\n";
|
|
49
|
+
/** The layout version recorded in `manifestation.json`. */
|
|
50
|
+
export declare const APPROVAL_SEAL_MANIFESTATION_VERSION = 2;
|
|
51
|
+
/** The attached JWS's file name. */
|
|
52
|
+
export declare const APPROVAL_SEAL_MANIFESTED_COPY_ATTACHMENT_NAME = "approval-seal.jws";
|
|
53
|
+
/** The attached record of the copy's inputs. */
|
|
54
|
+
export declare const APPROVAL_SEAL_MANIFESTATION_CONTEXT_NAME = "manifestation.json";
|
|
55
|
+
/**
|
|
56
|
+
* The fonts a copy may embed, by the SHA-256 of the font program: Liberation Sans Regular 2.x (SIL Open Font License 1.1),
|
|
57
|
+
* the file `pdfjs-dist` ships as `standard_fonts/LiberationSans-Regular.ttf`. A font is added here, never replaced, so a
|
|
58
|
+
* copy made with an earlier font still verifies.
|
|
59
|
+
*/
|
|
60
|
+
export declare const APPROVAL_SEAL_MANIFESTATION_FONT_SHA256S: ReadonlySet<string>;
|
|
61
|
+
/** Why no manifested copy can be made of a deliverable. */
|
|
62
|
+
export declare enum ApprovalSealManifestedCopyRefusal {
|
|
63
|
+
/** The deliverable is not a PDF. */
|
|
64
|
+
NOT_A_PDF = "not_a_pdf",
|
|
65
|
+
/** The PDF is encrypted. */
|
|
66
|
+
ENCRYPTED = "encrypted",
|
|
67
|
+
/** The PDF uses a structure the appender does not follow. */
|
|
68
|
+
UNSUPPORTED_STRUCTURE = "unsupported_structure",
|
|
69
|
+
/** The JWS is not an approval seal's: no claims to print. */
|
|
70
|
+
NOT_A_SEAL = "not_a_seal",
|
|
71
|
+
/** The seal records no printed name for its approver. */
|
|
72
|
+
NO_PRINTED_NAME = "no_printed_name",
|
|
73
|
+
/** A character of the name or of a word has no glyph in the font: it is never printed approximately. */
|
|
74
|
+
TEXT_NOT_PRINTABLE = "text_not_printable",
|
|
75
|
+
/** The font is not one of the pinned ones, or not a TrueType font this writer reads. */
|
|
76
|
+
FONT_NOT_PINNED = "font_not_pinned",
|
|
77
|
+
/** A word is missing, empty, or drops a parameter it must print. */
|
|
78
|
+
WORDING_INCOMPLETE = "wording_incomplete",
|
|
79
|
+
/** The verification address with the JWS is too long for a QR code. */
|
|
80
|
+
VERIFICATION_LINK_TOO_LONG = "verification_link_too_long"
|
|
81
|
+
}
|
|
82
|
+
export declare class ApprovalSealManifestedCopyRefusedError extends Error {
|
|
83
|
+
readonly refusal: ApprovalSealManifestedCopyRefusal;
|
|
84
|
+
constructor(refusal: ApprovalSealManifestedCopyRefusal, message: string);
|
|
85
|
+
}
|
|
86
|
+
/** The page's words, as the application's label tree gives them, in one language. */
|
|
87
|
+
export interface ApprovalSealManifestationWording {
|
|
88
|
+
/** The language the words are in (the application's primary one). */
|
|
89
|
+
readonly locale: string;
|
|
90
|
+
/** Every word, as a template with its declared `{param}` placeholders. */
|
|
91
|
+
readonly words: Readonly<Record<ApprovalSealManifestationWord, string>>;
|
|
92
|
+
/** The word of the seal's meaning (`system_enums.ApprovalSealMeaning.<value>`). */
|
|
93
|
+
readonly meaningWord: string;
|
|
94
|
+
/** The word of the seal's outcome (`system_enums.HumanDecision_Outcome.<value>`). */
|
|
95
|
+
readonly outcomeWord: string;
|
|
96
|
+
}
|
|
97
|
+
/** What a manifested copy is built from. Nothing else reaches its bytes. */
|
|
98
|
+
export interface ApprovalSealManifestationInput {
|
|
99
|
+
/** The approved deliverable's bytes, as the seal attests them. */
|
|
100
|
+
readonly original: Uint8Array;
|
|
101
|
+
/** The seal's compact JWS: attached, and the source of every printed claim. */
|
|
102
|
+
readonly jws: string;
|
|
103
|
+
/** The approver's printed name, from their disclosure (`value.name`). */
|
|
104
|
+
readonly approverName: string;
|
|
105
|
+
readonly wording: ApprovalSealManifestationWording;
|
|
106
|
+
/** A TrueType font program whose SHA-256 is pinned ({@link APPROVAL_SEAL_MANIFESTATION_FONT_SHA256S}). */
|
|
107
|
+
readonly font: Uint8Array;
|
|
108
|
+
/**
|
|
109
|
+
* The application's public verification route, absolute; the page prints a QR code linking to it with the JWS
|
|
110
|
+
* ({@link approvalSealVerificationLinkOf}). Absent, the page has no code.
|
|
111
|
+
*/
|
|
112
|
+
readonly verificationUrl?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The link a copy's QR code carries: the public verification route with the JWS as its `jws` parameter. A JWS names no
|
|
116
|
+
* person and no row, so the link carries no personal data and no database id; the route verifies from it alone.
|
|
117
|
+
*/
|
|
118
|
+
export declare function approvalSealVerificationLinkOf(verificationUrl: string, jws: string): string;
|
|
119
|
+
/**
|
|
120
|
+
* Build the manifested copy. Pure: the same inputs give the same bytes, which is what {@link checkApprovalSealManifestedCopy}
|
|
121
|
+
* relies on. Throws {@link ApprovalSealManifestedCopyRefusedError} when no copy can be made.
|
|
122
|
+
*/
|
|
123
|
+
export declare function buildApprovalSealManifestedCopy(input: ApprovalSealManifestationInput): Buffer;
|
|
124
|
+
/** A copy split at its manifestation marker: the original's bytes. Undefined when the bytes carry no marker. */
|
|
125
|
+
export declare function originalOfApprovalSealManifestedCopy(copy: Uint8Array): Buffer | undefined;
|
|
126
|
+
/** What a copy states about itself, read from its attachments: what the rebuild uses besides the seal. */
|
|
127
|
+
export interface ApprovalSealManifestedCopyStatement {
|
|
128
|
+
readonly locale: string;
|
|
129
|
+
readonly approverName: string;
|
|
130
|
+
readonly verificationUrl?: string;
|
|
131
|
+
/** The SHA-256 of the embedded font program. */
|
|
132
|
+
readonly fontSha256: string;
|
|
133
|
+
}
|
|
134
|
+
/** What checking a manifested copy against a seal found. */
|
|
135
|
+
export type ApprovalSealManifestedCopyCheck =
|
|
136
|
+
/** The copy is exactly the original followed by this seal's manifestation, made from what it states. */
|
|
137
|
+
{
|
|
138
|
+
readonly matches: true;
|
|
139
|
+
readonly original: Buffer;
|
|
140
|
+
readonly statement: ApprovalSealManifestedCopyStatement;
|
|
141
|
+
}
|
|
142
|
+
/** It is not: no marker, unreadable inputs, an unpinned font, another name than expected, or one differing byte. */
|
|
143
|
+
| {
|
|
144
|
+
readonly matches: false;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Check a copy against the seal it claims: take its inputs back from it (the words, the name, the address, the font),
|
|
148
|
+
* rebuild it from its own prefix and the JWS, and compare byte for byte. `approverName`, when the seal's approver
|
|
149
|
+
* disclosure is given, must be the name the copy prints. Says nothing about whether the prefix is the approved file:
|
|
150
|
+
* the caller opens it against the seal's commitment.
|
|
151
|
+
*/
|
|
152
|
+
export declare function checkApprovalSealManifestedCopy(copy: Uint8Array, seal: {
|
|
153
|
+
readonly jws: string;
|
|
154
|
+
readonly approverName?: string;
|
|
155
|
+
}): ApprovalSealManifestedCopyCheck;
|
|
156
|
+
//# sourceMappingURL=approval-seal-manifested-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-seal-manifested-copy.d.ts","sourceRoot":"","sources":["../../../src/key-management/approval-seal-manifested-copy.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,6BAA6B,EAA0B,MAAM,uBAAuB,CAAC;AAgBjI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,2HAA2H;AAC3H,eAAO,MAAM,oCAAoC,iCAAiC,CAAC;AAEnF,2DAA2D;AAC3D,eAAO,MAAM,mCAAmC,IAAI,CAAC;AAErD,oCAAoC;AACpC,eAAO,MAAM,6CAA6C,sBAAsB,CAAC;AAEjF,gDAAgD;AAChD,eAAO,MAAM,wCAAwC,uBAAuB,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,EAAE,WAAW,CAAC,MAAM,CAEvE,CAAC;AAEH,2DAA2D;AAC3D,oBAAY,iCAAiC;IAC3C,oCAAoC;IACpC,SAAS,cAAc;IACvB,4BAA4B;IAC5B,SAAS,cAAc;IACvB,6DAA6D;IAC7D,qBAAqB,0BAA0B;IAC/C,6DAA6D;IAC7D,UAAU,eAAe;IACzB,yDAAyD;IACzD,eAAe,oBAAoB;IACnC,wGAAwG;IACxG,kBAAkB,uBAAuB;IACzC,wFAAwF;IACxF,eAAe,oBAAoB;IACnC,oEAAoE;IACpE,kBAAkB,uBAAuB;IACzC,uEAAuE;IACvE,0BAA0B,+BAA+B;CAC1D;AAED,qBAAa,sCAAuC,SAAQ,KAAK;IACnD,QAAQ,CAAC,OAAO,EAAE,iCAAiC;gBAA1C,OAAO,EAAE,iCAAiC,EAAE,OAAO,EAAE,MAAM;CAIjF;AAED,qFAAqF;AACrF,MAAM,WAAW,gCAAgC;IAC/C,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,6BAA6B,EAAE,MAAM,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