@wildo-ai/platform-config-lib 1.0.1 → 1.1.1
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/LICENSE +34 -0
- package/dist/esm/.builder.pid +9 -0
- package/dist/esm/_unimplemented/index.d.ts +3 -0
- package/dist/esm/_unimplemented/index.d.ts.map +1 -0
- package/dist/esm/_unimplemented/index.js +3 -0
- package/dist/esm/_unimplemented/index.js.map +1 -0
- package/dist/esm/_unimplemented/soft-warn.d.ts +124 -0
- package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -0
- package/dist/esm/_unimplemented/soft-warn.js +170 -0
- package/dist/esm/_unimplemented/soft-warn.js.map +1 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +137 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +1 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.js +153 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -0
- package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.js +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 +13 -0
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js +14 -0
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -0
- package/dist/esm/bootstrap/bootstrap-planner.d.ts +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +141 -37
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +104 -18
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +430 -421
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +383 -21
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +213 -8
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +230 -5
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +79 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.js +83 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -0
- package/dist/esm/bootstrap/runtime-network-policy.d.ts +63 -0
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-network-policy.js +104 -0
- package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -0
- package/dist/esm/bootstrap/runtime-network-topology.d.ts +78 -0
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-network-topology.js +134 -0
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -0
- package/dist/esm/bootstrap/runtime-platform-access.d.ts +67 -0
- package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-platform-access.js +57 -0
- package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +173 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.js +218 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts +112 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.js +141 -8
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts +3 -0
- package/dist/esm/config-authoring.entry.d.ts.map +1 -0
- package/dist/esm/config-authoring.entry.js +5 -0
- package/dist/esm/config-authoring.entry.js.map +1 -0
- package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
- package/dist/esm/credentials/credential-generator.service.js +1 -1
- package/dist/esm/credentials/credential-generator.service.js.map +1 -1
- package/dist/esm/index.d.ts +30 -15
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts +41 -0
- package/dist/esm/lockfile/canonical-json.d.ts.map +1 -0
- package/dist/esm/lockfile/canonical-json.js +56 -0
- package/dist/esm/lockfile/canonical-json.js.map +1 -0
- package/dist/esm/lockfile/lockfile-io.d.ts +231 -0
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -0
- package/dist/esm/lockfile/lockfile-io.js +303 -0
- package/dist/esm/lockfile/lockfile-io.js.map +1 -0
- package/dist/esm/lockfile/materialize-infra-section.d.ts +99 -0
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -0
- package/dist/esm/lockfile/materialize-infra-section.js +153 -0
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +522 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +116 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.d.ts +36 -10
- package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-framework-config.js +67 -3
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +570 -0
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -0
- package/dist/esm/project-config/define-infra-env-config.js +726 -0
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -0
- package/dist/esm/project-config/define-minion-config.d.ts +221 -23
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js +228 -11
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +427 -218
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +704 -75
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts +106 -10
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-worker-config.js +99 -9
- package/dist/esm/project-config/define-worker-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +28 -21
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +14 -7
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader.d.ts +120 -10
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +290 -38
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.d.ts +69 -0
- package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -0
- package/dist/esm/project-config/minion-local-provider-registration.js +72 -0
- package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.d.ts +12 -0
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.js +49 -0
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -0
- package/dist/esm/project-config/provider-companion-discovery.d.ts +24 -0
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -0
- package/dist/esm/project-config/provider-companion-discovery.js +244 -0
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -0
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +297 -0
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -0
- package/dist/esm/project-config/provider-runtime-artifacts.js +860 -0
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +18 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js +25 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts +10 -2
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.js +12 -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 +2 -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 +6 -1
- package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +102 -0
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/auth.schemas.js +100 -0
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +316 -39
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +359 -24
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts +14 -0
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -0
- package/dist/esm/project-config/shared/cdn.example.js +38 -0
- package/dist/esm/project-config/shared/cdn.example.js.map +1 -0
- package/dist/esm/project-config/shared/cdn.schemas.d.ts +182 -0
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/cdn.schemas.js +151 -0
- package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/csp-defaults.d.ts +92 -0
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -0
- package/dist/esm/project-config/shared/csp-defaults.js +195 -0
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -0
- package/dist/esm/project-config/shared/csp-emit.d.ts +106 -0
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -0
- package/dist/esm/project-config/shared/csp-emit.js +305 -0
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -0
- package/dist/esm/project-config/shared/csp.schemas.d.ts +266 -0
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/csp.schemas.js +281 -0
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/data-services.schemas.d.ts +45 -9
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.js +45 -9
- package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts +0 -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 +1 -2
- package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +134 -8
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +185 -2
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +779 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.js +210 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts +18 -0
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/infra-service.schemas.js +16 -0
- package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +83 -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 +99 -2
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts +51 -7
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js +59 -12
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts +31 -0
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -0
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js +32 -0
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +142 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.js +159 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts +100 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.js +130 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -0
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts +9 -14
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js +13 -9
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts +15 -0
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/schema-version.schemas.js +40 -0
- package/dist/esm/project-config/shared/schema-version.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +283 -8
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.js +325 -8
- package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts +54 -0
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -0
- package/dist/esm/registry/artifact-domain.schemas.js +40 -0
- package/dist/esm/registry/artifact-domain.schemas.js.map +1 -0
- package/dist/esm/registry/companion-api.schemas.d.ts +176 -0
- package/dist/esm/registry/companion-api.schemas.d.ts.map +1 -0
- package/dist/esm/registry/companion-api.schemas.js +165 -0
- package/dist/esm/registry/companion-api.schemas.js.map +1 -0
- package/dist/esm/registry/digest.schemas.d.ts +20 -0
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -0
- package/dist/esm/registry/digest.schemas.js +21 -0
- package/dist/esm/registry/digest.schemas.js.map +1 -0
- package/dist/esm/registry/index.d.ts +33 -0
- package/dist/esm/registry/index.d.ts.map +1 -0
- package/dist/esm/registry/index.js +33 -0
- package/dist/esm/registry/index.js.map +1 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +107 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.js +67 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -0
- package/dist/esm/registry/module-artifact.schemas.d.ts +94 -0
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -0
- package/dist/esm/registry/module-artifact.schemas.js +69 -0
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -0
- package/dist/esm/registry/module-manifest.schemas.d.ts +134 -0
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -0
- package/dist/esm/registry/module-manifest.schemas.js +155 -0
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -0
- package/dist/esm/registry/registry-config.schemas.d.ts +31 -0
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -0
- package/dist/esm/registry/registry-config.schemas.js +24 -0
- package/dist/esm/registry/registry-config.schemas.js.map +1 -0
- package/dist/esm/registry/registry-defaults.constants.d.ts +37 -0
- package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -0
- package/dist/esm/registry/registry-defaults.constants.js +37 -0
- package/dist/esm/registry/registry-defaults.constants.js.map +1 -0
- package/dist/esm/registry/registry-errors.d.ts +109 -0
- package/dist/esm/registry/registry-errors.d.ts.map +1 -0
- package/dist/esm/registry/registry-errors.js +185 -0
- package/dist/esm/registry/registry-errors.js.map +1 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts +39 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -0
- package/dist/esm/registry/registry-section-schemas.constants.js +22 -0
- package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -0
- package/dist/esm/release/framework-release.constants.d.ts +26 -1
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js +27 -2
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +5 -5
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +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 +11 -2
- package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +7 -7
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.js +17 -2
- package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts +12 -13
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.js +15 -3
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts +26 -0
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -0
- package/dist/esm/workspace-scope/application-subject-manifest.js +43 -0
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -0
- package/dist/esm/workspace-scope/index.d.ts +5 -2
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.js +4 -1
- package/dist/esm/workspace-scope/index.js.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts +20 -0
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -0
- package/dist/esm/workspace-scope/resolve-homes.js +62 -0
- package/dist/esm/workspace-scope/resolve-homes.js.map +1 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +211 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.js +113 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -0
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts +10 -5
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.js +22 -36
- package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +147 -58
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js +174 -78
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +31 -17
- package/dist/esm/credentials/credentials-provisioner.service.d.ts +0 -190
- package/dist/esm/credentials/credentials-provisioner.service.d.ts.map +0 -1
- package/dist/esm/credentials/credentials-provisioner.service.js +0 -278
- package/dist/esm/credentials/credentials-provisioner.service.js.map +0 -1
- package/dist/esm/infra-managers/infra-manager.models.d.ts +0 -146
- package/dist/esm/infra-managers/infra-manager.models.d.ts.map +0 -1
- package/dist/esm/infra-managers/infra-manager.models.js +0 -2
- package/dist/esm/infra-managers/infra-manager.models.js.map +0 -1
- package/dist/esm/infra-managers/mongo-atlas-manager.service.d.ts +0 -64
- package/dist/esm/infra-managers/mongo-atlas-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/mongo-atlas-manager.service.js +0 -307
- package/dist/esm/infra-managers/mongo-atlas-manager.service.js.map +0 -1
- package/dist/esm/infra-managers/postgresql-manager.service.d.ts +0 -115
- package/dist/esm/infra-managers/postgresql-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/postgresql-manager.service.js +0 -403
- package/dist/esm/infra-managers/postgresql-manager.service.js.map +0 -1
- package/dist/esm/infra-managers/rabbitmq-manager.service.d.ts +0 -64
- package/dist/esm/infra-managers/rabbitmq-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/rabbitmq-manager.service.js +0 -288
- package/dist/esm/infra-managers/rabbitmq-manager.service.js.map +0 -1
- package/dist/esm/infra-managers/redis-manager.service.d.ts +0 -78
- package/dist/esm/infra-managers/redis-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/redis-manager.service.js +0 -326
- package/dist/esm/infra-managers/redis-manager.service.js.map +0 -1
- package/dist/esm/project-config/define-infra-config.d.ts +0 -128
- package/dist/esm/project-config/define-infra-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-infra-config.js +0 -87
- package/dist/esm/project-config/define-infra-config.js.map +0 -1
- package/dist/esm/project-config/define-platform-config.d.ts +0 -65
- package/dist/esm/project-config/define-platform-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-platform-config.js +0 -22
- package/dist/esm/project-config/define-platform-config.js.map +0 -1
- package/dist/esm/project-config/define-platform-env-config.d.ts +0 -41
- package/dist/esm/project-config/define-platform-env-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-platform-env-config.js +0 -45
- package/dist/esm/project-config/define-platform-env-config.js.map +0 -1
- package/dist/esm/project-config/define-project-config.d.ts +0 -38
- package/dist/esm/project-config/define-project-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-project-config.js +0 -57
- package/dist/esm/project-config/define-project-config.js.map +0 -1
- package/dist/esm/project-config/define-sharing-policy.d.ts +0 -35
- package/dist/esm/project-config/define-sharing-policy.d.ts.map +0 -1
- package/dist/esm/project-config/define-sharing-policy.js +0 -30
- package/dist/esm/project-config/define-sharing-policy.js.map +0 -1
- package/dist/esm/project-config/sharing-policy-validation.d.ts +0 -40
- package/dist/esm/project-config/sharing-policy-validation.d.ts.map +0 -1
- package/dist/esm/project-config/sharing-policy-validation.js +0 -143
- package/dist/esm/project-config/sharing-policy-validation.js.map +0 -1
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.d.ts +0 -23
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.d.ts.map +0 -1
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.js +0 -13
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.js.map +0 -1
- package/src/bootstrap/application-backend-env.contracts.ts +0 -17
- package/src/bootstrap/bootstrap-planner.ts +0 -46
- package/src/bootstrap/bootstrap.contracts.ts +0 -251
- package/src/bootstrap/bootstrap.schemas.ts +0 -164
- package/src/bootstrap/platform-runtime-env.contracts.ts +0 -99
- package/src/bootstrap/runtime-topology.contracts.ts +0 -102
- package/src/credentials/credential-generator.service.ts +0 -39
- package/src/index.ts +0 -16
- package/src/project-config/__tests__/application-modules.utils.test.ts +0 -53
- package/src/project-config/__tests__/define-framework-config.test.ts +0 -43
- package/src/project-config/__tests__/define-saas-config.test.ts +0 -210
- package/src/project-config/__tests__/loader.test.ts +0 -100
- package/src/project-config/define-framework-config.ts +0 -44
- package/src/project-config/define-infra-config.ts +0 -168
- package/src/project-config/define-minion-config.ts +0 -27
- package/src/project-config/define-platform-config.ts +0 -28
- package/src/project-config/define-platform-env-config.ts +0 -59
- package/src/project-config/define-project-config.ts +0 -63
- package/src/project-config/define-saas-config.ts +0 -171
- package/src/project-config/define-sharing-policy.ts +0 -36
- package/src/project-config/define-worker-config.ts +0 -27
- package/src/project-config/index.ts +0 -23
- package/src/project-config/loader.ts +0 -220
- package/src/project-config/shared/application-modules.schemas.ts +0 -12
- package/src/project-config/shared/application-modules.utils.ts +0 -65
- package/src/project-config/shared/backing-services.schemas.ts +0 -59
- package/src/project-config/shared/data-services.schemas.ts +0 -58
- package/src/project-config/shared/env-example-defaults.ts +0 -50
- package/src/project-config/shared/environment.schemas.ts +0 -136
- package/src/project-config/shared/infrastructure-defaults.schemas.ts +0 -47
- package/src/project-config/shared/k8s-utils.ts +0 -56
- package/src/project-config/shared/platform-services.schemas.ts +0 -33
- package/src/project-config/shared/service-definitions.schemas.ts +0 -38
- package/src/project-config/sharing-policy-validation.ts +0 -159
- package/src/release/framework-release.constants.ts +0 -2
- package/src/schemas/__tests__/platform-config.schemas.test.ts +0 -90
- package/src/schemas/framework-info.schemas.ts +0 -13
- package/src/schemas/framework-secrets.schemas.ts +0 -19
- package/src/schemas/platform-application-config.schemas.ts +0 -25
- package/src/schemas/platform-application-secrets.schemas.ts +0 -78
- package/src/schemas/platform-config.schemas.ts +0 -45
- package/src/workspace-scope/index.ts +0 -2
- package/src/workspace-scope/workspace-scope-detector.ts +0 -98
- package/src/workspace-scope/workspace-scope.schemas.ts +0 -224
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type AppConfiguration_Shared_AppIdentity, type FrontendServicesConfig, RuntimeEnvironment } from '@wildo-ai/saas-models';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
3
|
+
import { type EngineCapabilityActivations, type MinionPlatformAccessCarried, type MinionResourceAccess, type ProviderConfigurations, type SaasConfigProvidersBlock } from '../project-config/define-saas-config';
|
|
4
|
+
import { AppFrontendType } from '../project-config/shared/service-definitions.schemas';
|
|
5
|
+
import { WildoAuthConfigSchema } from '../project-config/shared/auth.schemas';
|
|
6
|
+
import { DatabaseEngine } from '../project-config/shared/environment.schemas';
|
|
4
7
|
/**
|
|
5
8
|
* Shared bootstrap execution mode.
|
|
6
9
|
* The workflow semantics stay the same; only the executor differs.
|
|
@@ -29,7 +32,7 @@ export declare const AppBootstrapCredentialsSchema: z.ZodObject<{
|
|
|
29
32
|
PLATFORM_APPLICATION_PRIMARY_SECRET: z.ZodString;
|
|
30
33
|
PLATFORM_APPS_MANAGER_URL: z.ZodURL;
|
|
31
34
|
APPLICATION_ENV: z.ZodEnum<typeof RuntimeEnvironment>;
|
|
32
|
-
}, z.core.$strip
|
|
35
|
+
}, z.core.$strip>;
|
|
33
36
|
/**
|
|
34
37
|
* Shared response envelope returned by apps-manager when bootstrap credentials are requested.
|
|
35
38
|
* Both apps-manager and CLI should rely on this same contract.
|
|
@@ -45,420 +48,380 @@ export declare const AppBootstrapCredentialsResponseSchema: z.ZodObject<{
|
|
|
45
48
|
PLATFORM_APPLICATION_PRIMARY_SECRET: z.ZodString;
|
|
46
49
|
PLATFORM_APPS_MANAGER_URL: z.ZodURL;
|
|
47
50
|
APPLICATION_ENV: z.ZodEnum<typeof RuntimeEnvironment>;
|
|
48
|
-
}, z.core.$strip
|
|
49
|
-
}, z.core.$strip
|
|
50
|
-
export
|
|
51
|
-
app:
|
|
52
|
-
name:
|
|
53
|
-
slug:
|
|
54
|
-
displayName:
|
|
55
|
-
description
|
|
56
|
-
type:
|
|
57
|
-
}
|
|
58
|
-
frontendServices:
|
|
59
|
-
serviceName:
|
|
60
|
-
frontendType:
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}, z.core.$strip
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export interface AdminAppManagedDeclaration {
|
|
54
|
+
app: {
|
|
55
|
+
name: string;
|
|
56
|
+
slug: string;
|
|
57
|
+
displayName: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
type: 'saas';
|
|
60
|
+
};
|
|
61
|
+
frontendServices: Array<{
|
|
62
|
+
serviceName: string;
|
|
63
|
+
frontendType: AppFrontendType;
|
|
64
|
+
}>;
|
|
65
|
+
minions: Record<string, {
|
|
66
|
+
resourceAccess?: MinionResourceAccess;
|
|
67
|
+
/** R4/R5 — what this minion may read about ITSELF at the platform level. Absent ⇒ nothing. */
|
|
68
|
+
platformAccess?: MinionPlatformAccessCarried;
|
|
69
|
+
/** KD-12 — `'cron'` minions paired with a `schedule` produce MINION_TICK CronJob records. */
|
|
70
|
+
mode?: 'always-up' | 'cron';
|
|
71
|
+
schedule?: string;
|
|
72
|
+
}>;
|
|
73
|
+
workers: Record<string, {
|
|
74
|
+
name: string;
|
|
75
|
+
displayName: string;
|
|
76
|
+
description?: string;
|
|
77
|
+
runtime: {
|
|
78
|
+
type: string;
|
|
79
|
+
language: string;
|
|
80
|
+
};
|
|
81
|
+
http: {
|
|
82
|
+
port: number;
|
|
83
|
+
healthPath: string;
|
|
84
|
+
readyPath: string;
|
|
85
|
+
metricsPath?: string;
|
|
86
|
+
};
|
|
87
|
+
auth: 'wildo-jwt';
|
|
88
|
+
replicas: number;
|
|
89
|
+
resources?: {
|
|
90
|
+
cpu?: string;
|
|
91
|
+
memory?: string;
|
|
92
|
+
};
|
|
93
|
+
dataAccess?: {
|
|
94
|
+
database?: 'read-only' | 'read-write' | 'none';
|
|
95
|
+
cache?: boolean;
|
|
96
|
+
queue?: 'consumer' | 'producer' | 'both' | 'none';
|
|
97
|
+
};
|
|
98
|
+
}>;
|
|
99
|
+
engineCapabilities: EngineCapabilityActivations;
|
|
100
|
+
providers: SaasConfigProvidersBlock;
|
|
101
|
+
providerConfigurations: ProviderConfigurations;
|
|
102
|
+
}
|
|
103
|
+
declare const AdminAppManagedWorkersSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
displayName: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
runtime: z.ZodObject<{
|
|
108
|
+
type: z.ZodString;
|
|
109
|
+
language: z.ZodString;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
http: z.ZodObject<{
|
|
112
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
healthPath: z.ZodDefault<z.ZodString>;
|
|
114
|
+
readyPath: z.ZodDefault<z.ZodString>;
|
|
115
|
+
metricsPath: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
auth: z.ZodEnum<{
|
|
118
|
+
"wildo-jwt": "wildo-jwt";
|
|
119
|
+
}>;
|
|
120
|
+
replicas: z.ZodNumber;
|
|
121
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
123
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
dataAccess: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
database: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
"read-only": "read-only";
|
|
128
|
+
"read-write": "read-write";
|
|
129
|
+
none: "none";
|
|
130
|
+
}>>;
|
|
131
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
queue: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
none: "none";
|
|
134
|
+
consumer: "consumer";
|
|
135
|
+
producer: "producer";
|
|
136
|
+
both: "both";
|
|
137
|
+
}>>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
140
|
+
/**
|
|
141
|
+
* Admin-side projection of `wildo.saas.config.ts` carried from the CLI to
|
|
142
|
+
* apps-manager at app initialization / re-apply time.
|
|
143
|
+
*
|
|
144
|
+
* Cross-bucket trust asymmetry (Slice 3 closeout):
|
|
145
|
+
* Fields in this schema fall into TWO TRUST BUCKETS that the apps-manager
|
|
146
|
+
* treats differently:
|
|
147
|
+
*
|
|
148
|
+
* 1. AUTHORITATIVE bucket (always honored, write-through):
|
|
149
|
+
* - `app.name` / `app.slug` / `app.displayName` / `app.description`
|
|
150
|
+
* — `appIdentity` core (F-53 swap: `app.name` is the canonical
|
|
151
|
+
* identifier, `app.displayName` is the UI label only).
|
|
152
|
+
* - `frontendServices` — frontend service registry (consumed by
|
|
153
|
+
* `_merge_WildoApplicationConfig` to materialise endpoints).
|
|
154
|
+
* - `minions` — minion runtime inventory, currently carrying the
|
|
155
|
+
* per-minion `resourceAccess` authority whitelist used by
|
|
156
|
+
* `start-minion-application`.
|
|
157
|
+
* - `workers` — worker runtime inventory persisted by apps-manager so
|
|
158
|
+
* the control-plane can validate worker identity and serve the
|
|
159
|
+
* worker bootstrap contract without re-reading authored files.
|
|
160
|
+
* - `engineCapabilities`, `providers`, and `providerConfigurations`
|
|
161
|
+
* — the provider runtime graph and its non-secret settings.
|
|
162
|
+
*
|
|
163
|
+
* 2. POLICY bucket (governed by override semantics):
|
|
164
|
+
* - currently empty for provider registration. Capability activation
|
|
165
|
+
* is authored as `engineCapabilities`, while provider routing is
|
|
166
|
+
* materialized into `providers`.
|
|
167
|
+
*
|
|
168
|
+
* What is intentionally NOT here (out of bucket):
|
|
169
|
+
* - JWT TTLs (`accessTokenExpirationMinutes`/`refreshTokenExpirationDays`)
|
|
170
|
+
* travel via the SIBLING field `serviceAuth` on the request envelope
|
|
171
|
+
* (see `AdminAppInitializeRequestSchema.serviceAuth`), NOT here.
|
|
172
|
+
* This separation reflects that JWT TTLs are infra-environment policy
|
|
173
|
+
* sourced from `wildo.infra.<env>.config.ts`, while
|
|
174
|
+
* `managedDeclaration` projects the application-level
|
|
175
|
+
* `wildo.saas.config.ts`.
|
|
176
|
+
* - `dataServices.*` (Redis key prefix, S3 bucket prefix, etc.) — these
|
|
177
|
+
* flow through `PlatformEnvConfigJson` env wiring, not the admin
|
|
178
|
+
* declaration. The declaration carries application-level semantics
|
|
179
|
+
* only.
|
|
180
|
+
*
|
|
181
|
+
* If you ADD a field, decide explicitly which bucket it belongs to and
|
|
182
|
+
* document it in the merge service's JSDoc — silently widening the
|
|
183
|
+
* declaration without consumer-side handling is the documented failure
|
|
184
|
+
* mode this comment exists to prevent.
|
|
185
|
+
*/
|
|
186
|
+
export declare const AdminAppManagedDeclarationSchema: z.ZodType<AdminAppManagedDeclaration>;
|
|
187
|
+
/**
|
|
188
|
+
* WHEN an application's OWN database gets its bootstrap rows, relative to the schema those rows need.
|
|
189
|
+
*
|
|
190
|
+
* ## The circularity this vocabulary exists to break
|
|
191
|
+
*
|
|
192
|
+
* On MongoDB, seeding an application's database needed no schema — a collection springs into being on
|
|
193
|
+
* first write — so provisioning could create the database and its first rows in one uninterrupted
|
|
194
|
+
* step. PostgreSQL removed that luxury and exposed a genuine cycle that had always been latent:
|
|
195
|
+
*
|
|
196
|
+
* - apps-manager seeds the application's database during provisioning;
|
|
197
|
+
* - those rows need tables, which come from the application's OWN `migrations/` directory;
|
|
198
|
+
* - those migrations are applied by the application backend at boot
|
|
199
|
+
* (`applyStartupPostgresMigrations`, the production door);
|
|
200
|
+
* - and the backend cannot boot until it is seeded, because its execution-context creator requires
|
|
201
|
+
* exactly one APPLICATION row.
|
|
202
|
+
*
|
|
203
|
+
* Nothing inside that circle can break it. apps-manager cannot read the application's migration files
|
|
204
|
+
* — in production they ship inside the application's own image — and the backend cannot supply the
|
|
205
|
+
* seed, which is authored in `wildo.saas.config.ts`. Only the DEPLOY TOOLING holds both, which is why
|
|
206
|
+
* this is a two-phase contract rather than a retry, a tolerance, or a longer timeout.
|
|
207
|
+
*
|
|
208
|
+
* Observed 2026-08-23 on the first PostgreSQL install: provisioning aborted with
|
|
209
|
+
* `relation "applications" does not exist`, and `wildo local dev` failed. The same order holds on
|
|
210
|
+
* every lane, so per-application PostgreSQL provisioning had never completed anywhere.
|
|
211
|
+
*
|
|
212
|
+
* ## Why a request field rather than an inferred tolerance
|
|
213
|
+
*
|
|
214
|
+
* Making apps-manager silently skip seeding when the schema happens to be absent would be a
|
|
215
|
+
* fail-open: provisioning would report success having left the application unbootable, and the caller
|
|
216
|
+
* would have no way to tell a deferred seed from a completed one. The caller states its intent, and
|
|
217
|
+
* the response states what happened — see {@link AppDatabaseSeedingOutcome}.
|
|
218
|
+
*/
|
|
219
|
+
export declare enum AppDatabaseSeedingPhase {
|
|
220
|
+
/**
|
|
221
|
+
* Seed now. The default, and the ONLY behaviour any pre-2026-08-23 caller can produce, so every
|
|
222
|
+
* MongoDB lane and every older CLI is unchanged.
|
|
223
|
+
*/
|
|
224
|
+
REQUIRED = "REQUIRED",
|
|
225
|
+
/**
|
|
226
|
+
* Provision infrastructure and platform records, but do NOT seed the application's own database —
|
|
227
|
+
* the caller is about to create its schema and will then re-invoke with {@link REQUIRED}.
|
|
228
|
+
*/
|
|
229
|
+
DEFERRED = "DEFERRED"
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* What provisioning actually DID about the application's own bootstrap rows.
|
|
233
|
+
*
|
|
234
|
+
* Reported so a caller can never mistake a deferred seed for a completed one. The CLI treats
|
|
235
|
+
* {@link DEFERRED} as expected on its first phase and FATAL on its second — an application that is
|
|
236
|
+
* still unseeded after its migrations have been applied is a defect, not a state to tolerate.
|
|
237
|
+
*/
|
|
238
|
+
export declare enum AppDatabaseSeedingOutcome {
|
|
239
|
+
/** Bootstrap rows exist in the application's own database. */
|
|
240
|
+
SEEDED = "SEEDED",
|
|
241
|
+
/** Skipped because the caller asked for {@link AppDatabaseSeedingPhase.DEFERRED}. */
|
|
242
|
+
DEFERRED = "DEFERRED",
|
|
243
|
+
/**
|
|
244
|
+
* Skipped because the application has no resolved persistence target. Distinct from
|
|
245
|
+
* {@link DEFERRED}: nothing the caller does next will seed it — the target itself is missing.
|
|
246
|
+
*/
|
|
247
|
+
NO_PERSISTENCE_TARGET = "NO_PERSISTENCE_TARGET"
|
|
248
|
+
}
|
|
122
249
|
export declare const AppBootstrapFirstAdminSeedSchema: z.ZodObject<{
|
|
123
250
|
userTypes: z.ZodArray<z.ZodString>;
|
|
124
|
-
}, z.core.$strip
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
declare const AppBootstrapRotatedPublicKeyEntrySchema: z.ZodObject<{
|
|
253
|
+
kid: z.ZodString;
|
|
254
|
+
publicKey: z.ZodString;
|
|
255
|
+
notAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export interface AppBootstrapConfigMetadataResponse {
|
|
258
|
+
appSlug: string;
|
|
259
|
+
appIdentity?: AppConfiguration_Shared_AppIdentity;
|
|
260
|
+
frontendServices?: FrontendServicesConfig;
|
|
261
|
+
minions?: Record<string, {
|
|
262
|
+
resourceAccess?: MinionResourceAccess;
|
|
263
|
+
/** R4/R5 — what this minion may read about ITSELF at the platform level. Absent ⇒ nothing. */
|
|
264
|
+
platformAccess?: MinionPlatformAccessCarried;
|
|
265
|
+
/** KD-12 — `'cron'` minions paired with a `schedule` produce MINION_TICK CronJob records. */
|
|
266
|
+
mode?: 'always-up' | 'cron';
|
|
267
|
+
schedule?: string;
|
|
268
|
+
}>;
|
|
269
|
+
workers?: Record<string, {
|
|
270
|
+
name: string;
|
|
271
|
+
displayName: string;
|
|
272
|
+
description?: string;
|
|
273
|
+
runtime: {
|
|
274
|
+
type: string;
|
|
275
|
+
language: string;
|
|
276
|
+
};
|
|
277
|
+
http: {
|
|
278
|
+
port: number;
|
|
279
|
+
healthPath: string;
|
|
280
|
+
readyPath: string;
|
|
281
|
+
metricsPath?: string;
|
|
282
|
+
};
|
|
283
|
+
auth: 'wildo-jwt';
|
|
284
|
+
replicas: number;
|
|
285
|
+
resources?: {
|
|
286
|
+
cpu?: string;
|
|
287
|
+
memory?: string;
|
|
288
|
+
};
|
|
289
|
+
dataAccess?: {
|
|
290
|
+
database?: 'read-only' | 'read-write' | 'none';
|
|
291
|
+
cache?: boolean;
|
|
292
|
+
queue?: 'consumer' | 'producer' | 'both' | 'none';
|
|
293
|
+
};
|
|
294
|
+
}>;
|
|
295
|
+
engineCapabilities?: EngineCapabilityActivations;
|
|
296
|
+
providers?: SaasConfigProvidersBlock;
|
|
297
|
+
email?: {
|
|
298
|
+
isTransactionalWildoManaged: boolean;
|
|
299
|
+
isMarketingWildoManaged: boolean;
|
|
300
|
+
};
|
|
301
|
+
providerConfigurations: ProviderConfigurations;
|
|
302
|
+
jwt?: {
|
|
303
|
+
publicKey: Record<string, string>;
|
|
304
|
+
rotatedPublicKeys?: Record<string, Array<z.infer<typeof AppBootstrapRotatedPublicKeyEntrySchema>>>;
|
|
305
|
+
accessTokenExpirationMinutes: number;
|
|
306
|
+
refreshTokenExpirationDays: number;
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
export declare const AppBootstrapConfigMetadataResponseSchema: z.ZodType<AppBootstrapConfigMetadataResponse>;
|
|
310
|
+
export interface AppWorkerBootstrapResponse {
|
|
311
|
+
appSlug: string;
|
|
312
|
+
workerName: string;
|
|
313
|
+
worker: z.infer<typeof AdminAppManagedWorkersSchema>[string];
|
|
314
|
+
jwt: {
|
|
315
|
+
publicKey: string;
|
|
316
|
+
rotatedPublicKeys?: Array<z.infer<typeof AppBootstrapRotatedPublicKeyEntrySchema>>;
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
export declare const AppWorkerBootstrapResponseSchema: z.ZodType<AppWorkerBootstrapResponse>;
|
|
320
|
+
type WildoAuthConfig = z.infer<typeof WildoAuthConfigSchema>;
|
|
321
|
+
export interface AdminAppInitializeRequest {
|
|
322
|
+
name?: string;
|
|
323
|
+
appDatabaseName?: string;
|
|
324
|
+
override?: boolean;
|
|
325
|
+
userEmail: string;
|
|
326
|
+
userFirstName: string;
|
|
327
|
+
userLastName: string;
|
|
328
|
+
userPassword?: string;
|
|
329
|
+
managedDeclaration: AdminAppManagedDeclaration;
|
|
330
|
+
/**
|
|
331
|
+
* The application's own persistence engine — see the field's JSDoc on the schema below for why it
|
|
332
|
+
* exists at all.
|
|
333
|
+
*
|
|
334
|
+
* ⚠️ This interface and that schema are TWO declarations of ONE contract, joined by the
|
|
335
|
+
* `as z.ZodType<AdminAppInitializeRequest>` cast. The cast means a field added to only the schema
|
|
336
|
+
* type-checks perfectly while being invisible to every CONSUMER — which is exactly what happened on
|
|
337
|
+
* 2026-08-19: apps-manager's controller could not read `applicationDatabase` off a parsed request
|
|
338
|
+
* though the schema accepted it. Add to BOTH, always.
|
|
339
|
+
*/
|
|
340
|
+
applicationDatabase?: {
|
|
341
|
+
engine: DatabaseEngine;
|
|
342
|
+
databaseName?: string;
|
|
343
|
+
};
|
|
344
|
+
firstAdminSeed?: AppBootstrapFirstAdminSeed;
|
|
345
|
+
/**
|
|
346
|
+
* WHEN to seed this application's own database. Absent means
|
|
347
|
+
* {@link AppDatabaseSeedingPhase.REQUIRED} — see that enum for why the phase is stated rather
|
|
348
|
+
* than inferred.
|
|
349
|
+
*/
|
|
350
|
+
appDatabaseSeeding?: AppDatabaseSeedingPhase;
|
|
351
|
+
serviceAuth?: WildoAuthConfig;
|
|
352
|
+
}
|
|
206
353
|
/**
|
|
207
354
|
* Shared admin request payload for a single app initialization.
|
|
208
|
-
*
|
|
209
|
-
*
|
|
355
|
+
*
|
|
356
|
+
* This describes the control-plane contract, independently of whether the
|
|
357
|
+
* caller is the CLI or a future CI/CD executor.
|
|
358
|
+
*
|
|
359
|
+
* Required-by-contract fields:
|
|
360
|
+
* - `managedDeclaration` — the projection of `wildo.saas.config.ts` that
|
|
361
|
+
* seeds frontend services, capability policy, and external providers.
|
|
362
|
+
* Omitting it would silently half-bootstrap an app, so the admin HTTP
|
|
363
|
+
* boundary rejects requests without it.
|
|
364
|
+
* - `userEmail` / `userFirstName` / `userLastName` — admin identity for
|
|
365
|
+
* the seeded super-admin user. The previous implementation defaulted
|
|
366
|
+
* these to a developer's personal identity, silently bypassing the
|
|
367
|
+
* downstream `validateInitializationOptions` validation; that bypass
|
|
368
|
+
* is now closed at the contract boundary.
|
|
369
|
+
*
|
|
370
|
+
* Optional-by-design fields:
|
|
371
|
+
* - `userPassword` — the service auto-generates a secure password when
|
|
372
|
+
* omitted (intentional one-shot bootstrap affordance).
|
|
373
|
+
* - `name` / `appDatabaseName` / `override` / `firstAdminSeed` — caller
|
|
374
|
+
* overrides; sensible defaults exist downstream.
|
|
210
375
|
*/
|
|
211
|
-
export declare const AdminAppInitializeRequestSchema: z.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
|
-
inheritedEnvironmentVariables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
|
-
authMode: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_AuthMode>;
|
|
263
|
-
secretRef: z.ZodOptional<z.ZodString>;
|
|
264
|
-
secretEnvVarName: z.ZodOptional<z.ZodString>;
|
|
265
|
-
allowedApplicationEnvironments: z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").APPLICATION_ENVIRONMENT>>;
|
|
266
|
-
allowedPlatformEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
267
|
-
workspaceRootPath: z.ZodString;
|
|
268
|
-
workingDirectoryPolicy: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_WorkingDirectoryPolicy>>;
|
|
269
|
-
workingDirectoryRelativePath: z.ZodOptional<z.ZodString>;
|
|
270
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
271
|
-
outputParserMode: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_OutputParserMode>>;
|
|
272
|
-
}, z.core.$strip>>;
|
|
273
|
-
}, z.core.$strip, core.$ZodObjectExtra>, z.ZodObject<{
|
|
274
|
-
enabled: z.ZodBoolean;
|
|
275
|
-
authConfig: z.ZodOptional<z.ZodObject<{
|
|
276
|
-
authKind: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Auth_Kind>;
|
|
277
|
-
profileRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
secretRef: z.ZodString;
|
|
280
|
-
}, z.core.$strip>>;
|
|
281
|
-
rateLimitConfig: z.ZodOptional<z.ZodObject<{
|
|
282
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
283
|
-
minTime: z.ZodOptional<z.ZodNumber>;
|
|
284
|
-
reservoir: z.ZodOptional<z.ZodNumber>;
|
|
285
|
-
reservoirRefreshInterval: z.ZodOptional<z.ZodNumber>;
|
|
286
|
-
reservoirRefreshAmount: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
288
|
-
}, z.core.$strip>>;
|
|
289
|
-
}, z.core.$strip, core.$ZodObjectExtra>]>>>>>>;
|
|
290
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
291
|
-
firstAdminSeed: z.ZodOptional<z.ZodObject<{
|
|
292
|
-
userTypes: z.ZodArray<z.ZodString>;
|
|
293
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
294
|
-
}, z.core.$strip, core.$ZodObjectExtra>;
|
|
295
|
-
export declare const AdminAppInitializeTargetSchema: z.ZodObject<{
|
|
296
|
-
slug: z.ZodString;
|
|
297
|
-
name: z.ZodOptional<z.ZodString>;
|
|
298
|
-
appDatabaseName: z.ZodOptional<z.ZodString>;
|
|
299
|
-
managedDeclaration: z.ZodOptional<z.ZodObject<{
|
|
300
|
-
app: z.ZodObject<{
|
|
301
|
-
name: z.ZodString;
|
|
302
|
-
slug: z.ZodString;
|
|
303
|
-
displayName: z.ZodString;
|
|
304
|
-
description: z.ZodOptional<z.ZodString>;
|
|
305
|
-
type: z.ZodLiteral<"saas">;
|
|
306
|
-
}, z.core.$strip, core.$ZodObjectExtra>;
|
|
307
|
-
frontendServices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
308
|
-
serviceName: z.ZodString;
|
|
309
|
-
frontendType: z.ZodEnum<typeof AppFrontendType>;
|
|
310
|
-
}, z.core.$strip, core.$ZodObjectExtra>>>;
|
|
311
|
-
capabilities: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
312
|
-
enabled: z.ZodBoolean;
|
|
313
|
-
runtime: z.ZodDefault<z.ZodBoolean>;
|
|
314
|
-
tooling: z.ZodDefault<z.ZodBoolean>;
|
|
315
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
316
|
-
providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
317
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
-
servicesRestrictions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
319
|
-
}, z.core.$strip, core.$ZodObjectExtra>>>;
|
|
320
|
-
externalProvidersConfigurations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_ExchangeProtocol_Kind> & z.core.$partial, z.ZodUnion<readonly [z.ZodObject<{
|
|
321
|
-
enabled: z.ZodBoolean;
|
|
322
|
-
authConfig: z.ZodOptional<z.ZodObject<{
|
|
323
|
-
authKind: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Auth_Kind>;
|
|
324
|
-
profileRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
325
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
-
secretRef: z.ZodString;
|
|
327
|
-
}, z.core.$strip>>;
|
|
328
|
-
rateLimitConfig: z.ZodOptional<z.ZodObject<{
|
|
329
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
330
|
-
minTime: z.ZodOptional<z.ZodNumber>;
|
|
331
|
-
reservoir: z.ZodOptional<z.ZodNumber>;
|
|
332
|
-
reservoirRefreshInterval: z.ZodOptional<z.ZodNumber>;
|
|
333
|
-
reservoirRefreshAmount: z.ZodOptional<z.ZodNumber>;
|
|
334
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
335
|
-
}, z.core.$strip>>;
|
|
336
|
-
defaultExecutionProfileRef: z.ZodOptional<z.ZodString>;
|
|
337
|
-
executionProfiles: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
338
|
-
runnerHost: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_RunnerHost>>;
|
|
339
|
-
command: z.ZodString;
|
|
340
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
341
|
-
inheritedEnvironmentVariables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
342
|
-
authMode: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_AuthMode>;
|
|
343
|
-
secretRef: z.ZodOptional<z.ZodString>;
|
|
344
|
-
secretEnvVarName: z.ZodOptional<z.ZodString>;
|
|
345
|
-
allowedApplicationEnvironments: z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").APPLICATION_ENVIRONMENT>>;
|
|
346
|
-
allowedPlatformEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
347
|
-
workspaceRootPath: z.ZodString;
|
|
348
|
-
workingDirectoryPolicy: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_WorkingDirectoryPolicy>>;
|
|
349
|
-
workingDirectoryRelativePath: z.ZodOptional<z.ZodString>;
|
|
350
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
351
|
-
outputParserMode: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_OutputParserMode>>;
|
|
352
|
-
}, z.core.$strip>>;
|
|
353
|
-
}, z.core.$strip, core.$ZodObjectExtra>, z.ZodObject<{
|
|
354
|
-
enabled: z.ZodBoolean;
|
|
355
|
-
authConfig: z.ZodOptional<z.ZodObject<{
|
|
356
|
-
authKind: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Auth_Kind>;
|
|
357
|
-
profileRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
358
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
-
secretRef: z.ZodString;
|
|
360
|
-
}, z.core.$strip>>;
|
|
361
|
-
rateLimitConfig: z.ZodOptional<z.ZodObject<{
|
|
362
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
363
|
-
minTime: z.ZodOptional<z.ZodNumber>;
|
|
364
|
-
reservoir: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
reservoirRefreshInterval: z.ZodOptional<z.ZodNumber>;
|
|
366
|
-
reservoirRefreshAmount: z.ZodOptional<z.ZodNumber>;
|
|
367
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
368
|
-
}, z.core.$strip>>;
|
|
369
|
-
}, z.core.$strip, core.$ZodObjectExtra>]>>>>>>;
|
|
370
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
371
|
-
firstAdminSeed: z.ZodOptional<z.ZodObject<{
|
|
372
|
-
userTypes: z.ZodArray<z.ZodString>;
|
|
373
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
374
|
-
}, z.core.$strip, core.$ZodObjectExtra>;
|
|
375
|
-
export declare const AdminAppsInitializeBatchRequestSchema: z.ZodObject<{
|
|
376
|
-
override: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
-
userEmail: z.ZodOptional<z.ZodString>;
|
|
378
|
-
userFirstName: z.ZodOptional<z.ZodString>;
|
|
379
|
-
userLastName: z.ZodOptional<z.ZodString>;
|
|
380
|
-
userPassword: z.ZodOptional<z.ZodString>;
|
|
381
|
-
targets: z.ZodArray<z.ZodObject<{
|
|
382
|
-
slug: z.ZodString;
|
|
383
|
-
name: z.ZodOptional<z.ZodString>;
|
|
384
|
-
appDatabaseName: z.ZodOptional<z.ZodString>;
|
|
385
|
-
managedDeclaration: z.ZodOptional<z.ZodObject<{
|
|
386
|
-
app: z.ZodObject<{
|
|
387
|
-
name: z.ZodString;
|
|
388
|
-
slug: z.ZodString;
|
|
389
|
-
displayName: z.ZodString;
|
|
390
|
-
description: z.ZodOptional<z.ZodString>;
|
|
391
|
-
type: z.ZodLiteral<"saas">;
|
|
392
|
-
}, z.core.$strip, core.$ZodObjectExtra>;
|
|
393
|
-
frontendServices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
394
|
-
serviceName: z.ZodString;
|
|
395
|
-
frontendType: z.ZodEnum<typeof AppFrontendType>;
|
|
396
|
-
}, z.core.$strip, core.$ZodObjectExtra>>>;
|
|
397
|
-
capabilities: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
398
|
-
enabled: z.ZodBoolean;
|
|
399
|
-
runtime: z.ZodDefault<z.ZodBoolean>;
|
|
400
|
-
tooling: z.ZodDefault<z.ZodBoolean>;
|
|
401
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
402
|
-
providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
-
servicesRestrictions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
405
|
-
}, z.core.$strip, core.$ZodObjectExtra>>>;
|
|
406
|
-
externalProvidersConfigurations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_ExchangeProtocol_Kind> & z.core.$partial, z.ZodUnion<readonly [z.ZodObject<{
|
|
407
|
-
enabled: z.ZodBoolean;
|
|
408
|
-
authConfig: z.ZodOptional<z.ZodObject<{
|
|
409
|
-
authKind: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Auth_Kind>;
|
|
410
|
-
profileRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
411
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
412
|
-
secretRef: z.ZodString;
|
|
413
|
-
}, z.core.$strip>>;
|
|
414
|
-
rateLimitConfig: z.ZodOptional<z.ZodObject<{
|
|
415
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
416
|
-
minTime: z.ZodOptional<z.ZodNumber>;
|
|
417
|
-
reservoir: z.ZodOptional<z.ZodNumber>;
|
|
418
|
-
reservoirRefreshInterval: z.ZodOptional<z.ZodNumber>;
|
|
419
|
-
reservoirRefreshAmount: z.ZodOptional<z.ZodNumber>;
|
|
420
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
421
|
-
}, z.core.$strip>>;
|
|
422
|
-
defaultExecutionProfileRef: z.ZodOptional<z.ZodString>;
|
|
423
|
-
executionProfiles: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
424
|
-
runnerHost: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_RunnerHost>>;
|
|
425
|
-
command: z.ZodString;
|
|
426
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
427
|
-
inheritedEnvironmentVariables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
|
-
authMode: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_AuthMode>;
|
|
429
|
-
secretRef: z.ZodOptional<z.ZodString>;
|
|
430
|
-
secretEnvVarName: z.ZodOptional<z.ZodString>;
|
|
431
|
-
allowedApplicationEnvironments: z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").APPLICATION_ENVIRONMENT>>;
|
|
432
|
-
allowedPlatformEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
|
-
workspaceRootPath: z.ZodString;
|
|
434
|
-
workingDirectoryPolicy: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_WorkingDirectoryPolicy>>;
|
|
435
|
-
workingDirectoryRelativePath: z.ZodOptional<z.ZodString>;
|
|
436
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
437
|
-
outputParserMode: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").CLIRuntime_OutputParserMode>>;
|
|
438
|
-
}, z.core.$strip>>;
|
|
439
|
-
}, z.core.$strip, core.$ZodObjectExtra>, z.ZodObject<{
|
|
440
|
-
enabled: z.ZodBoolean;
|
|
441
|
-
authConfig: z.ZodOptional<z.ZodObject<{
|
|
442
|
-
authKind: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Auth_Kind>;
|
|
443
|
-
profileRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
444
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
-
secretRef: z.ZodString;
|
|
446
|
-
}, z.core.$strip>>;
|
|
447
|
-
rateLimitConfig: z.ZodOptional<z.ZodObject<{
|
|
448
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
449
|
-
minTime: z.ZodOptional<z.ZodNumber>;
|
|
450
|
-
reservoir: z.ZodOptional<z.ZodNumber>;
|
|
451
|
-
reservoirRefreshInterval: z.ZodOptional<z.ZodNumber>;
|
|
452
|
-
reservoirRefreshAmount: z.ZodOptional<z.ZodNumber>;
|
|
453
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
454
|
-
}, z.core.$strip>>;
|
|
455
|
-
}, z.core.$strip, core.$ZodObjectExtra>]>>>>>>;
|
|
456
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
457
|
-
firstAdminSeed: z.ZodOptional<z.ZodObject<{
|
|
458
|
-
userTypes: z.ZodArray<z.ZodString>;
|
|
459
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
460
|
-
}, z.core.$strip, core.$ZodObjectExtra>>;
|
|
461
|
-
}, z.core.$strip, core.$ZodObjectExtra>;
|
|
376
|
+
export declare const AdminAppInitializeRequestSchema: z.ZodType<AdminAppInitializeRequest>;
|
|
377
|
+
export interface AdminAppInitializeTarget {
|
|
378
|
+
slug: string;
|
|
379
|
+
name?: string;
|
|
380
|
+
appDatabaseName?: string;
|
|
381
|
+
managedDeclaration: AdminAppManagedDeclaration;
|
|
382
|
+
/**
|
|
383
|
+
* The application's own persistence engine — identical semantics to
|
|
384
|
+
* {@link AdminAppInitializeRequest.applicationDatabase}, per target.
|
|
385
|
+
*
|
|
386
|
+
* Added 2026-08-27. The batch envelope had no way to express it, so
|
|
387
|
+
* `POST /admin/apps/initialize` could only ever register applications as MongoDB — the single-app
|
|
388
|
+
* endpoint carried the selection and its batch sibling silently dropped it. One invariant, two
|
|
389
|
+
* call sites, applied at one (`.claude/rules/invariant-call-site-enumeration.md`).
|
|
390
|
+
*
|
|
391
|
+
* ⚠️ Interface AND schema, always — the `as z.ZodType<AdminAppInitializeTarget>` cast below makes
|
|
392
|
+
* a schema-only addition type-check while staying invisible to every consumer.
|
|
393
|
+
*/
|
|
394
|
+
applicationDatabase?: {
|
|
395
|
+
engine: DatabaseEngine;
|
|
396
|
+
databaseName?: string;
|
|
397
|
+
};
|
|
398
|
+
firstAdminSeed?: AppBootstrapFirstAdminSeed;
|
|
399
|
+
serviceAuth?: WildoAuthConfig;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Per-target payload inside a batch admin initialization request.
|
|
403
|
+
*
|
|
404
|
+
* `managedDeclaration` is required for the same contract reason as in
|
|
405
|
+
* `AdminAppInitializeRequestSchema`. Admin identity lives at the batch
|
|
406
|
+
* envelope level (one admin user across all targets), not per target.
|
|
407
|
+
*/
|
|
408
|
+
export declare const AdminAppInitializeTargetSchema: z.ZodType<AdminAppInitializeTarget>;
|
|
409
|
+
export interface AdminAppsInitializeBatchRequest {
|
|
410
|
+
override?: boolean;
|
|
411
|
+
userEmail: string;
|
|
412
|
+
userFirstName: string;
|
|
413
|
+
userLastName: string;
|
|
414
|
+
userPassword?: string;
|
|
415
|
+
targets: AdminAppInitializeTarget[];
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Batch admin initialization envelope. Admin identity is required at the
|
|
419
|
+
* envelope level (the seeded admin user is shared across all targets).
|
|
420
|
+
*/
|
|
421
|
+
export declare const AdminAppsInitializeBatchRequestSchema: z.ZodType<AdminAppsInitializeBatchRequest>;
|
|
422
|
+
export interface AdminAppReapplyDeclarationRequest {
|
|
423
|
+
managedDeclaration: AdminAppManagedDeclaration;
|
|
424
|
+
}
|
|
462
425
|
/**
|
|
463
426
|
* Shared success response for a single app initialization request.
|
|
464
427
|
*/
|
|
@@ -467,19 +430,65 @@ export declare const AdminAppInitializeResponseSchema: z.ZodObject<{
|
|
|
467
430
|
application: z.ZodObject<{
|
|
468
431
|
name: z.ZodString;
|
|
469
432
|
slug: z.ZodString;
|
|
470
|
-
}, z.core.$strip
|
|
433
|
+
}, z.core.$strip>;
|
|
471
434
|
credentials: z.ZodObject<{
|
|
472
|
-
email: z.
|
|
435
|
+
email: z.ZodEmail;
|
|
473
436
|
password: z.ZodString;
|
|
474
|
-
}, z.core.$strip
|
|
475
|
-
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
appDatabaseSeeding: z.ZodOptional<z.ZodEnum<typeof AppDatabaseSeedingOutcome>>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
/**
|
|
441
|
+
* Shared admin request payload for reapplying the `wildo.saas.config.ts`
|
|
442
|
+
* declaration projection (`AdminAppManagedDeclaration`) onto an
|
|
443
|
+
* already-initialized application.
|
|
444
|
+
*
|
|
445
|
+
* Contract semantics — what this endpoint owns:
|
|
446
|
+
* - Re-source the declaration-managed slices of `Wildo_Application_Config`
|
|
447
|
+
* from the new declaration: `appIdentity` display fields,
|
|
448
|
+
* `frontendServices` seed, `engineCapabilities`, `providers`, and
|
|
449
|
+
* `providerConfigurations`.
|
|
450
|
+
* - Return a `updatedFields` diff so the caller can surface what changed.
|
|
451
|
+
*
|
|
452
|
+
* Contract semantics — what this endpoint deliberately does NOT touch:
|
|
453
|
+
* - Credentials (DB users, JWT private keys, session secrets, admin
|
|
454
|
+
* passwords). Those live in `Wildo_Application_Secrets` and are owned
|
|
455
|
+
* by initialize / rotate flows.
|
|
456
|
+
* - Database / infrastructure provisioning. Those are owned by
|
|
457
|
+
* `/admin/apps/:appSlug/initialize` and the platform-init flow.
|
|
458
|
+
* - K8s endpoints. Those are owned by
|
|
459
|
+
* `/admin/apps/:appSlug/refresh` (config refresh) and the deploy flow.
|
|
460
|
+
* - First-admin seeding (`firstAdminSeed`). User/role seeding happens
|
|
461
|
+
* at init time only. Reapplying the declaration is a config-drift
|
|
462
|
+
* operation; silently changing seeded role grants would be a
|
|
463
|
+
* security regression. Callers wanting to change admin user types
|
|
464
|
+
* must use a dedicated admin-management endpoint (not this one).
|
|
465
|
+
*
|
|
466
|
+
* Stable action identifier: `apps.reapply-declaration` (see
|
|
467
|
+
* {@link APPS_REAPPLY_DECLARATION_ACTION_ID} in `bootstrap.contracts.ts`).
|
|
468
|
+
* The CI/CD admin rights workstream (Step 8) reuses this identifier in
|
|
469
|
+
* its permission grid so this endpoint can be granted independently
|
|
470
|
+
* from the broader `apps.initialize` action.
|
|
471
|
+
*/
|
|
472
|
+
export declare const AdminAppReapplyDeclarationRequestSchema: z.ZodType<AdminAppReapplyDeclarationRequest>;
|
|
473
|
+
/**
|
|
474
|
+
* Shared success response for a managed-declaration reapply request.
|
|
475
|
+
*
|
|
476
|
+
* `updatedFields` lists the dot-paths of the declaration-projection
|
|
477
|
+
* slices that actually changed (e.g. `appIdentity.displayName`,
|
|
478
|
+
* `frontendServices`, `engineCapabilities`, `providers`).
|
|
479
|
+
* An empty list means the stored config already matched the new
|
|
480
|
+
* declaration — the operation is idempotent.
|
|
481
|
+
*/
|
|
482
|
+
export declare const AdminAppReapplyDeclarationResponseSchema: z.ZodObject<{
|
|
483
|
+
success: z.ZodLiteral<true>;
|
|
484
|
+
appSlug: z.ZodString;
|
|
485
|
+
updatedFields: z.ZodArray<z.ZodString>;
|
|
486
|
+
appliedAt: z.ZodString;
|
|
487
|
+
}, z.core.$strip>;
|
|
476
488
|
export type AppBootstrapCredentials = z.infer<typeof AppBootstrapCredentialsSchema>;
|
|
477
489
|
export type AppBootstrapCredentialsResponse = z.infer<typeof AppBootstrapCredentialsResponseSchema>;
|
|
478
|
-
export type AdminAppManagedDeclaration = z.infer<typeof AdminAppManagedDeclarationSchema>;
|
|
479
490
|
export type AppBootstrapFirstAdminSeed = z.infer<typeof AppBootstrapFirstAdminSeedSchema>;
|
|
480
|
-
export type AppBootstrapConfigMetadataResponse = z.infer<typeof AppBootstrapConfigMetadataResponseSchema>;
|
|
481
|
-
export type AdminAppInitializeRequest = z.infer<typeof AdminAppInitializeRequestSchema>;
|
|
482
|
-
export type AdminAppInitializeTarget = z.infer<typeof AdminAppInitializeTargetSchema>;
|
|
483
|
-
export type AdminAppsInitializeBatchRequest = z.infer<typeof AdminAppsInitializeBatchRequestSchema>;
|
|
484
491
|
export type AdminAppInitializeResponse = z.infer<typeof AdminAppInitializeResponseSchema>;
|
|
492
|
+
export type AdminAppReapplyDeclarationResponse = z.infer<typeof AdminAppReapplyDeclarationResponseSchema>;
|
|
493
|
+
export {};
|
|
485
494
|
//# sourceMappingURL=bootstrap.schemas.d.ts.map
|