@wildo-ai/platform-config-lib 1.1.4 → 1.1.6
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/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +24 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +25 -0
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +117 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +63 -4
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +24 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +24 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts +37 -0
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -0
- package/dist/esm/bootstrap/platform-store-preconnect.js +43 -0
- package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.js +8 -4
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts +36 -3
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.js +36 -13
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts +29 -0
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js +39 -0
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lockfile/build-parallelism.d.ts +40 -0
- package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -0
- package/dist/esm/lockfile/build-parallelism.js +64 -0
- package/dist/esm/lockfile/build-parallelism.js.map +1 -0
- package/dist/esm/lockfile/lockfile-io.d.ts +7 -1
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +17 -3
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +28 -7
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +24 -11
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +455 -6
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +27 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts +13 -0
- package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -0
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js +56 -0
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +886 -29
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +395 -16
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js +1 -2
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +142 -25
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +229 -26
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.d.ts +59 -0
- package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -0
- package/dist/esm/project-config/hosted-infra-env-config.js +187 -0
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -0
- package/dist/esm/project-config/index.d.ts +6 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +6 -0
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader.d.ts +35 -0
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +148 -8
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/npm-version-range.d.ts +23 -0
- package/dist/esm/project-config/npm-version-range.d.ts.map +1 -0
- package/dist/esm/project-config/npm-version-range.js +175 -0
- package/dist/esm/project-config/npm-version-range.js.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts +288 -30
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +795 -46
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +192 -20
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +381 -42
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +14 -35
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.js +14 -35
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.d.ts +157 -0
- package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -0
- package/dist/esm/project-config/shared/backing-service-servability.js +256 -0
- package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -0
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +66 -66
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +75 -67
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.js +41 -2
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts +11 -12
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +11 -12
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +152 -12
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +186 -9
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +185 -10
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js +40 -3
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +77 -47
- 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 +114 -52
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts +50 -0
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js +57 -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 +35 -0
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/platform-storage.schemas.js +37 -0
- package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +81 -0
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js +74 -0
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -0
- package/dist/esm/project-config/static-asset-import-noop.d.ts +26 -0
- package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -0
- package/dist/esm/project-config/static-asset-import-noop.js +49 -0
- package/dist/esm/project-config/static-asset-import-noop.js.map +1 -0
- package/dist/esm/registry/artifact-domain.schemas.d.ts +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/companion-api.schemas.d.ts +0 -176
- package/dist/esm/registry/companion-api.schemas.d.ts.map +0 -1
- package/dist/esm/registry/companion-api.schemas.js.map +0 -1
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/index.d.ts +3 -1
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js +3 -1
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts +31 -0
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -0
- package/dist/esm/registry/local-checkout-source.js +45 -0
- package/dist/esm/registry/local-checkout-source.js.map +1 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +174 -14
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.js +120 -11
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts +79 -0
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.js +36 -0
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts +403 -23
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +502 -60
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts +80 -0
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -0
- package/dist/esm/registry/module-search.schemas.js +112 -0
- package/dist/esm/registry/module-search.schemas.js.map +1 -0
- package/dist/esm/registry/registry-config.schemas.d.ts +16 -0
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-config.schemas.js +8 -0
- package/dist/esm/registry/registry-config.schemas.js.map +1 -1
- package/dist/esm/registry/registry-errors.d.ts +126 -2
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js +183 -14
- package/dist/esm/registry/registry-errors.js.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.d.ts +80 -0
- package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -0
- package/dist/esm/registry/registry-keys.schemas.js +68 -0
- package/dist/esm/registry/registry-keys.schemas.js.map +1 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts +25 -3
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +12 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +14 -1
- package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +17 -14
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js +8 -7
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +15 -6
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js +23 -9
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/package.json +7 -7
- package/dist/esm/registry/companion-api.schemas.js +0 -165
- package/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -2,7 +2,7 @@ import { MinionPlatformAccessScope } from './shared/minion-platform-access.vocab
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { ExternalProvider_ConnectionShapeSchema } from '@wildo-ai/external-connectors-models';
|
|
4
4
|
import { findMinionResourceAccessViolations } from './shared/minion-resource-access.validation.js';
|
|
5
|
-
import { AppFrontendType, ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, EngineCapabilityResolutionMode, getEngineCapabilityResolutionMode, PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY, ProviderTier, } from '@wildo-ai/saas-models';
|
|
5
|
+
import { AppFrontendType, ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, ApplicationRiskPostureSchema, EngineCapability, EngineCapabilityResolutionMode, getEngineCapabilityResolutionMode, PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY, ReviewCadence, ProviderTier, ProviderBrowserOperationPoliciesSchema, ProviderAugmentationOptInsSchema, ProviderSharedConnectionsSchema, ProviderPackageAllowListSchema, OrganizationTypesConfigSchema, SystemsOfRecordConfigSchema, OrganizationTypeDerivationOutcome, deriveFirstAdministratorOrganizationType, resolveApplicationOwnerOrganizationType, } from '@wildo-ai/saas-models';
|
|
6
6
|
import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, } from '@wildo-ai/saas-models/public-runtime';
|
|
7
7
|
import { buildMinionServiceName, buildWorkerServiceName, normalizeServiceKeyToDnsName } from '@wildo-ai/platform-core-shared';
|
|
8
8
|
// Phase 0 of the provider-registration refactor — see
|
|
@@ -227,8 +227,10 @@ export const SaasProviderScopeSelectionSchema = z.strictObject({
|
|
|
227
227
|
export const SaasProviderSelectionPolicySchema = z.strictObject({
|
|
228
228
|
primary: z.string().min(1),
|
|
229
229
|
/**
|
|
230
|
-
* Ordered substitutes
|
|
231
|
-
*
|
|
230
|
+
* Ordered substitutes considered after the primary among providers eligible in the runtime scope.
|
|
231
|
+
* Remaining eligible providers follow the policy refs. Resolution does not validate credentials
|
|
232
|
+
* or vendor health, and an ineligible primary does not empty a nonempty eligible set.
|
|
233
|
+
* These are NOT a failover list: nothing
|
|
232
234
|
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
233
235
|
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
234
236
|
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
@@ -298,7 +300,68 @@ export const SaasConfigProvidersBlockSchema = z.strictObject({
|
|
|
298
300
|
* connect one — as opposed to `providerConfigurations`, which is an opaque per-provider runtime bag.
|
|
299
301
|
*/
|
|
300
302
|
connections: SaasProviderConnectionPoliciesSchema,
|
|
301
|
-
|
|
303
|
+
/**
|
|
304
|
+
* Which provider operations a signed-in person's browser may trigger, and on whose account (#367).
|
|
305
|
+
* The third of the application's decisions about providers, and the only one that opens a door: an
|
|
306
|
+
* operation absent here is not reachable from a browser at all. `providerRef` → `operationId` → policy;
|
|
307
|
+
* see `ProviderBrowserOperationPolicySchema` for the roles and connection rules.
|
|
308
|
+
*/
|
|
309
|
+
browserOperations: ProviderBrowserOperationPoliciesSchema,
|
|
310
|
+
/**
|
|
311
|
+
* Which packages may ADD OPERATIONS to a provider they do not own (#1672), `baseRef` → package names. The
|
|
312
|
+
* fourth of the application's decisions about providers, and a trust decision: an augmentation's operations
|
|
313
|
+
* spend the base provider's grant. Absent means none — installing an augmenting package adds nothing. See
|
|
314
|
+
* `ProviderAugmentationOptInsSchema`.
|
|
315
|
+
*
|
|
316
|
+
* assurance-control: WILDO.IDENTITY.DELEGATED_AUTHORIZATION — third-party code is admitted to a shared grant
|
|
317
|
+
* only by the application's explicit, reviewable declaration.
|
|
318
|
+
*/
|
|
319
|
+
augmentations: ProviderAugmentationOptInsSchema.optional(),
|
|
320
|
+
/**
|
|
321
|
+
* Which refs spend ONE vendor grant (#1725), `baseRef` → `{ refs, sharedWithSignIn? }`. The fifth of the
|
|
322
|
+
* application's decisions about providers: the base ref owns the connection's OAuth client and audiences, and
|
|
323
|
+
* every listed ref reads and writes the one stored grant. Absent means every ref is its own connection. Not to
|
|
324
|
+
* be confused with `connections` above, which is a per-ref admissibility policy. See
|
|
325
|
+
* `ProviderSharedConnectionsSchema`.
|
|
326
|
+
*
|
|
327
|
+
* assurance-control: WILDO.IDENTITY.DELEGATED_AUTHORIZATION — which refs may spend one delegated grant is the
|
|
328
|
+
* application's explicit declaration, checked by `wildo config sync` and again when the registry boots.
|
|
329
|
+
*/
|
|
330
|
+
sharedConnections: ProviderSharedConnectionsSchema.optional(),
|
|
331
|
+
/**
|
|
332
|
+
* Provider packages from OUTSIDE the names discovery walks by itself (#1676): a third party's
|
|
333
|
+
* `@acme/wildo-provider-teams`. The sixth of the application's decisions about providers, and a trust decision:
|
|
334
|
+
* a listed package's companion entry is executed by `wildo config sync`. Listing admits it to discovery and
|
|
335
|
+
* activates nothing. Absent means none. See `ProviderPackageAllowListSchema`.
|
|
336
|
+
*
|
|
337
|
+
* assurance-control: WILDO.SECURITY.FAIL_CLOSED — third-party code enters provider discovery only by the
|
|
338
|
+
* application's explicit, reviewable listing, and every admission is printed and recorded in the provider lock.
|
|
339
|
+
*/
|
|
340
|
+
packages: ProviderPackageAllowListSchema.optional(),
|
|
341
|
+
}).superRefine((block, ctx) => {
|
|
342
|
+
// A base or a member no runtime scope declares cannot be reached, so the declaration would describe a grant
|
|
343
|
+
// nothing spends — refused here, at the one place both halves are visible. Which scope must hold the BASE
|
|
344
|
+
// beside each member is `wildo config sync`'s check, because it needs the discovered runtime targets.
|
|
345
|
+
const scoped = new Set([
|
|
346
|
+
...Object.keys(block.scopes.backend?.providers ?? {}),
|
|
347
|
+
...Object.keys(block.scopes.companion?.providers ?? {}),
|
|
348
|
+
...Object.values(block.scopes.frontendServices ?? {}).flatMap((scope) => Object.keys(scope.providers ?? {})),
|
|
349
|
+
...Object.values(block.scopes.minions ?? {}).flatMap((scope) => Object.keys(scope.providers ?? {})),
|
|
350
|
+
...Object.values(block.scopes.workers ?? {}).flatMap((scope) => Object.keys(scope.providers ?? {})),
|
|
351
|
+
]);
|
|
352
|
+
for (const [baseRef, connection] of Object.entries(block.sharedConnections ?? {})) {
|
|
353
|
+
for (const ref of [baseRef, ...connection.refs]) {
|
|
354
|
+
if (!scoped.has(ref)) {
|
|
355
|
+
ctx.addIssue({
|
|
356
|
+
code: 'custom',
|
|
357
|
+
path: ['sharedConnections', baseRef],
|
|
358
|
+
message: `providers.sharedConnections."${baseRef}" names "${ref}", which no providers.scopes entry declares. `
|
|
359
|
+
+ 'Scope every ref of a shared connection, its base included.',
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}).default(() => ({ scopes: {}, connections: {}, browserOperations: {} }));
|
|
302
365
|
export function defineSaaSProviders(providers) {
|
|
303
366
|
return SaasConfigProvidersBlockSchema.parse(providers);
|
|
304
367
|
}
|
|
@@ -351,19 +414,21 @@ export const WildoSaasConfigSchema = z.strictObject({
|
|
|
351
414
|
/**
|
|
352
415
|
* Long-running "minion" actor hosts (scheduled or always-up).
|
|
353
416
|
*
|
|
354
|
-
* Each entry
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
417
|
+
* Each entry declares the `resourceAccess` read/write allowlists consumed by
|
|
418
|
+
* the minion runtime's scoped services-registry proxy. Missing lists deny
|
|
419
|
+
* resource calls; unknown declared resource names fail startup. This is
|
|
420
|
+
* runtime containment, separate from the operation's own authorization and
|
|
421
|
+
* the minion's provider and platform-access scopes.
|
|
358
422
|
*/
|
|
359
423
|
minions: z.record(z.string(), MinionBucketEntrySchema).optional(),
|
|
360
424
|
/**
|
|
361
425
|
* HTTP-only "worker" subprocesses (compute-heavy, often Rust/Go).
|
|
362
426
|
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
427
|
+
* Node workers use `defineWorkerInit` from `@wildo-ai/saas-workers-node-lib`;
|
|
428
|
+
* other languages implement the same HTTP and token-verification contract.
|
|
429
|
+
* Workers have no `resourceAccess` field: they are not backend queue consumers
|
|
430
|
+
* and do not receive application repository access. Pass the data required
|
|
431
|
+
* by their request contract instead of treating them as minions.
|
|
367
432
|
*/
|
|
368
433
|
workers: z.record(z.string(), AppRefSchema).optional(),
|
|
369
434
|
engineCapabilities: EngineCapabilityActivationsSchema,
|
|
@@ -381,8 +446,40 @@ export const WildoSaasConfigSchema = z.strictObject({
|
|
|
381
446
|
* registry facet.
|
|
382
447
|
*/
|
|
383
448
|
providers: SaasConfigProvidersBlockSchema,
|
|
449
|
+
/**
|
|
450
|
+
* The application's organization types — required, and at least one (#1032, decided 2026-09-14).
|
|
451
|
+
*
|
|
452
|
+
* Authored HERE rather than in `backend-api/src/saas-config.backend.ts`, where it used to live,
|
|
453
|
+
* because the platform needs it and cannot read backend-authored configuration: apps-manager seeds
|
|
454
|
+
* the organization of the application's first administrator, and that organization must carry one
|
|
455
|
+
* of these types. It reaches the platform inside the declaration, like `providers` and
|
|
456
|
+
* `engineCapabilities`, and the backend refuses to author it.
|
|
457
|
+
*
|
|
458
|
+
* Every organization carries a type, and a member of an organization whose type names no entry here
|
|
459
|
+
* cannot sign in — which is why this is not optional.
|
|
460
|
+
*/
|
|
461
|
+
organizationTypes: OrganizationTypesConfigSchema,
|
|
384
462
|
bootstrap: AppBootstrapSchema.optional(),
|
|
385
463
|
dataServices: AppDataServicesSchema,
|
|
464
|
+
/**
|
|
465
|
+
* The systems of record this application reads its own business rows out of — Odoo, an S/4HANA
|
|
466
|
+
* OData service, a Dynamics deployment — each a NAMED INSTANCE that resources bind by name.
|
|
467
|
+
*
|
|
468
|
+
* Declared HERE, beside `dataServices`, because it answers the same question from the other side:
|
|
469
|
+
* `dataServices` says which stores this application OWNS, and this says which stores it READS and
|
|
470
|
+
* does not own. Both are application-wide operator decisions rather than per-resource authoring.
|
|
471
|
+
*
|
|
472
|
+
* Declaring the block is what ENABLES the external-data lane (#1055 D3); there is no capability
|
|
473
|
+
* flag, because the lane has no meaning without an instance to point at. Each instance's ADDRESS
|
|
474
|
+
* and SECRETS live in the environment (`wildo.infra.<location>.config.ts` and `secrets.json`) under
|
|
475
|
+
* names DERIVED from the instance name — `WILDO_SOR_<NAME>__<SLOT>` — never authored, so renaming an
|
|
476
|
+
* instance renames its variables and `wildo config sync` reports the ones that went missing.
|
|
477
|
+
*
|
|
478
|
+
* Not `providers`, deliberately (#1055 D10). A provider is selected through the capability plane and
|
|
479
|
+
* may carry a person's lent credential; a system of record is a deployment the application reads with
|
|
480
|
+
* its OWN service identity, and nothing serves both.
|
|
481
|
+
*/
|
|
482
|
+
systemsOfRecord: SystemsOfRecordConfigSchema.optional(),
|
|
386
483
|
/**
|
|
387
484
|
* How long this application keeps each class of data, and why.
|
|
388
485
|
*
|
|
@@ -401,6 +498,30 @@ export const WildoSaasConfigSchema = z.strictObject({
|
|
|
401
498
|
* environment still has none of (issue #8) — one declaration answers both instead of two that drift.
|
|
402
499
|
*/
|
|
403
500
|
dataRetention: ApplicationRetentionScheduleSchema.optional(),
|
|
501
|
+
/**
|
|
502
|
+
* How often this application re-reviews its compliance programme.
|
|
503
|
+
*
|
|
504
|
+
* A COMMITMENT, and that is why it is declared rather than asked. `top_down.compliance-conception`
|
|
505
|
+
* used to elicit a next-review DATE in free text — "answer as an ISO date, after today's" — which is
|
|
506
|
+
* three things wrong at once: a date goes stale the moment it passes, it has to be re-answered on
|
|
507
|
+
* every run, and it is a proxy for the thing actually being promised. The promise is the CADENCE;
|
|
508
|
+
* the date is an output (`deriveNextReviewOn`), computed from the instant the programme was drafted.
|
|
509
|
+
* The general form: a date is a PROXY for "an input may have changed", and where every input is
|
|
510
|
+
* enumerable the trigger is computable and the date is an output, never a question.
|
|
511
|
+
*
|
|
512
|
+
* Optional, and an absent cadence is NOT a default. A programme produced without one is still
|
|
513
|
+
* produced: no obligation carries a next-review date, and the programme states in a stamped limitation
|
|
514
|
+
* that no schedule is committed. Committing to one is a workflow, and a workflow MARKS rather than
|
|
515
|
+
* standing in front of the mechanism. Declaring it here is still the better place than any form: the
|
|
516
|
+
* answer is committed, diffable, and reused by every later run.
|
|
517
|
+
*
|
|
518
|
+
* `AS_NEEDED` is a legitimate value for the vocabulary and schedules nothing, so it produces the same
|
|
519
|
+
* marked programme as no declaration — never a silently chosen far-future date.
|
|
520
|
+
*
|
|
521
|
+
* The vocabulary is `ReviewCadence`, shared with market/roadmap/brand authoring rather than
|
|
522
|
+
* re-declared — one closed vocabulary, one runtime source (CLAUDE.md).
|
|
523
|
+
*/
|
|
524
|
+
assuranceReviewCadence: z.enum(ReviewCadence).optional(),
|
|
404
525
|
/**
|
|
405
526
|
* Whether each AI capability this application enables DECIDES something about a person, and who
|
|
406
527
|
* reviews it if so.
|
|
@@ -431,6 +552,7 @@ export const WildoSaasConfigSchema = z.strictObject({
|
|
|
431
552
|
operatingJurisdictions: ApplicationOperatingJurisdictionsSchema.optional(),
|
|
432
553
|
operatorComplianceIdentity: ApplicationOperatorComplianceIdentitySchema.optional(),
|
|
433
554
|
providerComplianceChoices: ApplicationProviderComplianceChoicesSchema.optional(),
|
|
555
|
+
riskPosture: ApplicationRiskPostureSchema.optional(),
|
|
434
556
|
/**
|
|
435
557
|
* Module registries the app pulls modules from. Each entry pairs a
|
|
436
558
|
* stable id (used by lockfile entries + the `--registry <id>` CLI
|
|
@@ -458,6 +580,91 @@ export const WildoSaasConfigSchema = z.strictObject({
|
|
|
458
580
|
// below guarantees that "the TECH_DOC service folder" and "the
|
|
459
581
|
// STATIC_WEBSITE service folder" are unambiguous.
|
|
460
582
|
}).superRefine((config, ctx) => {
|
|
583
|
+
/*
|
|
584
|
+
* The first administrator's organization type must be DERIVABLE, and this is the earliest place to
|
|
585
|
+
* say so. apps-manager derives it at initialization with the same function; refusing here turns a
|
|
586
|
+
* failure midway through provisioning into an authoring error at the moment the file is loaded.
|
|
587
|
+
*/
|
|
588
|
+
const firstAdministratorUserTypes = config.bootstrap?.firstAdmin?.userTypes;
|
|
589
|
+
if (firstAdministratorUserTypes !== undefined) {
|
|
590
|
+
const derivation = deriveFirstAdministratorOrganizationType(config.organizationTypes, firstAdministratorUserTypes);
|
|
591
|
+
if (derivation.outcome === OrganizationTypeDerivationOutcome.NONE) {
|
|
592
|
+
ctx.addIssue({
|
|
593
|
+
code: 'custom',
|
|
594
|
+
path: ['bootstrap', 'firstAdmin', 'userTypes'],
|
|
595
|
+
message: `No organization type covers the first administrator's user types (${firstAdministratorUserTypes.join(', ')}). `
|
|
596
|
+
+ 'The platform seeds the first administrator into an organization of the type whose `userTypes` include all of '
|
|
597
|
+
+ 'them; declare one in `organizationTypes`.',
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
else if (derivation.outcome === OrganizationTypeDerivationOutcome.AMBIGUOUS) {
|
|
601
|
+
ctx.addIssue({
|
|
602
|
+
code: 'custom',
|
|
603
|
+
path: ['bootstrap', 'firstAdmin', 'userTypes'],
|
|
604
|
+
message: `Several organization types cover the first administrator's user types (${derivation.candidates.join(', ')}), `
|
|
605
|
+
+ 'so the type of the organization the platform seeds for them cannot be derived. Narrow the `userTypes` of all '
|
|
606
|
+
+ 'but one of them.',
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
/*
|
|
610
|
+
* A declared OWNER type must be able to take the bootstrap organization (#1054).
|
|
611
|
+
*
|
|
612
|
+
* The organization the platform seeds for the first administrator IS the organization that owns
|
|
613
|
+
* the application, so a marked type whose `userTypes` do not cover the administrator's is a
|
|
614
|
+
* declaration that cannot be satisfied. Without this the failure is SILENT rather than loud: the
|
|
615
|
+
* derivation above finds no marked type among the fitting ones, falls through to the unmarked
|
|
616
|
+
* candidates, and seeds the administrator into a customer-shaped tenant — leaving an application
|
|
617
|
+
* that declares an owner type and has no owner organization, with no door that could type one
|
|
618
|
+
* afterwards (`Organization.type` is creation-time identity).
|
|
619
|
+
*
|
|
620
|
+
* Checked here rather than in `OrganizationTypesConfigSchema`, because it is a statement about
|
|
621
|
+
* TWO top-level blocks — `organizationTypes` and `bootstrap` — and the types schema can only see
|
|
622
|
+
* its own.
|
|
623
|
+
*/
|
|
624
|
+
const ownerTypeDerivation = resolveApplicationOwnerOrganizationType(config.organizationTypes);
|
|
625
|
+
if (ownerTypeDerivation.outcome === OrganizationTypeDerivationOutcome.DERIVED) {
|
|
626
|
+
const ownerTypeUserTypes = config.organizationTypes?.[ownerTypeDerivation.organizationType]?.userTypes ?? [];
|
|
627
|
+
const uncoveredUserTypes = firstAdministratorUserTypes.filter((userType) => !ownerTypeUserTypes.includes(userType));
|
|
628
|
+
if (uncoveredUserTypes.length > 0) {
|
|
629
|
+
ctx.addIssue({
|
|
630
|
+
code: 'custom',
|
|
631
|
+
path: ['organizationTypes', ownerTypeDerivation.organizationType, 'userTypes'],
|
|
632
|
+
message: `Organization type '${ownerTypeDerivation.organizationType}' declares \`ownsApplication\` but its \`userTypes\` `
|
|
633
|
+
+ `do not include ${uncoveredUserTypes.map((userType) => `'${userType}'`).join(', ')}, which the first administrator holds `
|
|
634
|
+
+ `(bootstrap.firstAdmin.userTypes: ${firstAdministratorUserTypes.join(', ')}). The organization seeded for the first `
|
|
635
|
+
+ 'administrator is the organization that owns the application, so the owner type must grant everything that '
|
|
636
|
+
+ 'administrator is. Add the missing user types to it, or move the marker to the type that already covers them.',
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
/*
|
|
642
|
+
* A declared system of record needs an organization to belong to (#1055, resting on #1054).
|
|
643
|
+
*
|
|
644
|
+
* Rows read out of a system of record are stamped with the OWNER organization's id, which is what
|
|
645
|
+
* lets the per-row tenant gate pass with no exemption. An application that declares an instance and
|
|
646
|
+
* no `ownsApplication` type has nothing to stamp with, so every read of every bound resource would
|
|
647
|
+
* refuse at request time with `owner_organization_absent` — a runtime failure whose cause is an
|
|
648
|
+
* authoring omission three layers up.
|
|
649
|
+
*
|
|
650
|
+
* Refused here rather than at boot because this is exactly the kind of contradiction one file can
|
|
651
|
+
* see: both blocks are in scope, and turning it into an authoring error means nobody can commit it.
|
|
652
|
+
* The DERIVATION being ambiguous (two marked types) is refused by `OrganizationTypesConfigSchema`
|
|
653
|
+
* itself, so only the NONE outcome is left to answer here.
|
|
654
|
+
*/
|
|
655
|
+
if (config.systemsOfRecord !== undefined && Object.keys(config.systemsOfRecord).length > 0) {
|
|
656
|
+
const ownerTypeForSystemsOfRecord = resolveApplicationOwnerOrganizationType(config.organizationTypes);
|
|
657
|
+
if (ownerTypeForSystemsOfRecord.outcome === OrganizationTypeDerivationOutcome.NONE) {
|
|
658
|
+
ctx.addIssue({
|
|
659
|
+
code: 'custom',
|
|
660
|
+
path: ['systemsOfRecord'],
|
|
661
|
+
message: `This application declares ${Object.keys(config.systemsOfRecord).map((name) => `'${name}'`).join(', ')} as a system of record, `
|
|
662
|
+
+ 'but no organization type declares `ownsApplication`. Rows read out of a system of record are stamped with the owning '
|
|
663
|
+
+ "organization's id — that stamp is what makes them belong to a tenant at all — so without one every read would refuse. "
|
|
664
|
+
+ 'Mark the organization type whose organization operates this application.',
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
}
|
|
461
668
|
const availableServiceKeys = new Set(Object.keys(config.services));
|
|
462
669
|
const frontendServiceKeys = new Set(Object.entries(config.services)
|
|
463
670
|
.filter(([, definition]) => definition.frontendType !== undefined)
|
|
@@ -802,10 +1009,8 @@ function emitUnimplementedRuntimeWarnings(config) {
|
|
|
802
1009
|
// ordering contract; the `emitSoftWarn` utility caps repeats
|
|
803
1010
|
// process-wide so the dev watcher's per-save re-parses do not spam.
|
|
804
1011
|
//
|
|
805
|
-
//
|
|
806
|
-
//
|
|
807
|
-
// `start-minion-application` per IC-2 — Phase 1 only validates
|
|
808
|
-
// STRUCTURAL shape):
|
|
1012
|
+
// Two advisory shapes (the per-resource membership check against the parsed catalog runs in Phase 2
|
|
1013
|
+
// from `start-minion-application` per IC-2 — Phase 1 only validates STRUCTURAL shape):
|
|
809
1014
|
//
|
|
810
1015
|
// 1. `resourceAccess.missing` — entry omits the block entirely
|
|
811
1016
|
// (fail-closed default; advisory
|
|
@@ -816,10 +1021,14 @@ function emitUnimplementedRuntimeWarnings(config) {
|
|
|
816
1021
|
// to omission, but flagged so the
|
|
817
1022
|
// author knows the minion will be
|
|
818
1023
|
// blocked at every repository call).
|
|
819
|
-
//
|
|
820
|
-
//
|
|
821
|
-
//
|
|
822
|
-
//
|
|
1024
|
+
//
|
|
1025
|
+
// An ASYMMETRIC whitelist (`write: []` beside a non-empty `read`, or the reverse) is NOT advised on,
|
|
1026
|
+
// and it used to be (`resourceAccess.read-only` / `.write-only`). Both fields are required, so an empty
|
|
1027
|
+
// side is always AUTHORED — it is the declaration of intent, not a typo — and the advisory told the
|
|
1028
|
+
// author to "keep as-is" while printing on every `wildo` command with no way to acknowledge it (#1637:
|
|
1029
|
+
// Wonder Todos' read-only scraper put it at the top of every command's output). A side left empty by
|
|
1030
|
+
// mistake is refused at the first call that needs it, by `ResourceAccessForbiddenError`, which names the
|
|
1031
|
+
// minion, the resource and the access mode.
|
|
823
1032
|
for (const [minionKey, entry] of Object.entries(config.minions ?? {})) {
|
|
824
1033
|
const scope = `minions.${minionKey}`;
|
|
825
1034
|
if (!entry.resourceAccess) {
|
|
@@ -830,12 +1039,6 @@ function emitUnimplementedRuntimeWarnings(config) {
|
|
|
830
1039
|
if (read.length === 0 && write.length === 0) {
|
|
831
1040
|
emitSoftWarn(scope, 'resourceAccess.empty', 'resourceAccess block is present but both `read` and `write` are empty arrays — equivalent to omitting the block. Author at least one resource name to grant access.');
|
|
832
1041
|
}
|
|
833
|
-
else if (read.length === 0) {
|
|
834
|
-
emitSoftWarn(scope, 'resourceAccess.write-only', 'resourceAccess.read is empty while resourceAccess.write is non-empty — every write will succeed but no repository read will. If this is intentional (write-only sink) keep as-is; otherwise add the resources you intend to read.');
|
|
835
|
-
}
|
|
836
|
-
else if (write.length === 0) {
|
|
837
|
-
emitSoftWarn(scope, 'resourceAccess.read-only', 'resourceAccess.write is empty while resourceAccess.read is non-empty — the minion will only be able to read. If this is intentional (read-only scraper) keep as-is; otherwise add the resources you intend to write.');
|
|
838
|
-
}
|
|
839
1042
|
}
|
|
840
1043
|
// M1 (audit-logging Phase 1+2 hardening) — coherence advisory: an ENABLED
|
|
841
1044
|
// capability whose resolution mode is FAN_OUT (e.g. COMPLIANCE_AUDIT_TRAIL)
|