@wildo-ai/platform-config-lib 1.1.0 → 1.1.2
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/bootstrap.schemas.d.ts +18 -0
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +15 -0
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts +52 -0
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js +5 -0
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/project-config/define-framework-config.d.ts +4 -4
- package/dist/esm/project-config/define-saas-config.d.ts +13 -1
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +2 -1
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/release/framework-release.constants.d.ts +24 -19
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js +24 -19
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/esm/.builder.pid +0 -9
|
@@ -421,6 +421,19 @@ export interface AdminAppsInitializeBatchRequest {
|
|
|
421
421
|
export declare const AdminAppsInitializeBatchRequestSchema: z.ZodType<AdminAppsInitializeBatchRequest>;
|
|
422
422
|
export interface AdminAppReapplyDeclarationRequest {
|
|
423
423
|
managedDeclaration: AdminAppManagedDeclaration;
|
|
424
|
+
/**
|
|
425
|
+
* Report what a reapply WOULD change and write nothing (issue #97).
|
|
426
|
+
*
|
|
427
|
+
* This is the comparison primitive behind every "is the stored config still what the
|
|
428
|
+
* application declares?" question — the init postcondition and the `wildo local doctor`
|
|
429
|
+
* drift check both ask it this way rather than each re-implementing an authored-vs-stored
|
|
430
|
+
* differ. One comparison, one place it can be wrong.
|
|
431
|
+
*
|
|
432
|
+
* Optional and defaulting to a real reapply, so an existing caller keeps its behaviour: a flag
|
|
433
|
+
* that silently turned writes into no-ops would be a far worse failure than the invisibility it
|
|
434
|
+
* exists to cure.
|
|
435
|
+
*/
|
|
436
|
+
dryRun?: boolean;
|
|
424
437
|
}
|
|
425
438
|
/**
|
|
426
439
|
* Shared success response for a single app initialization request.
|
|
@@ -478,12 +491,17 @@ export declare const AdminAppReapplyDeclarationRequestSchema: z.ZodType<AdminApp
|
|
|
478
491
|
* `frontendServices`, `engineCapabilities`, `providers`).
|
|
479
492
|
* An empty list means the stored config already matched the new
|
|
480
493
|
* declaration — the operation is idempotent.
|
|
494
|
+
*
|
|
495
|
+
* When `dryRun` is `true` the same list describes what WOULD change; nothing
|
|
496
|
+
* was written. An empty `updatedFields` under `dryRun` is therefore a positive
|
|
497
|
+
* coherence proof: the stored config matches the declaration right now.
|
|
481
498
|
*/
|
|
482
499
|
export declare const AdminAppReapplyDeclarationResponseSchema: z.ZodObject<{
|
|
483
500
|
success: z.ZodLiteral<true>;
|
|
484
501
|
appSlug: z.ZodString;
|
|
485
502
|
updatedFields: z.ZodArray<z.ZodString>;
|
|
486
503
|
appliedAt: z.ZodString;
|
|
504
|
+
dryRun: z.ZodBoolean;
|
|
487
505
|
}, z.core.$strip>;
|
|
488
506
|
export type AppBootstrapCredentials = z.infer<typeof AppBootstrapCredentialsSchema>;
|
|
489
507
|
export type AppBootstrapCredentialsResponse = z.infer<typeof AppBootstrapCredentialsResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.schemas.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap.schemas.ts"],"names":[],"mappings":"AA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,MAAM,uCAAuC,EAG9C,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEnD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wCAAwC;;;;;;iBAenD,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -473,6 +473,7 @@ export const AdminAppInitializeResponseSchema = z.object({
|
|
|
473
473
|
*/
|
|
474
474
|
export const AdminAppReapplyDeclarationRequestSchema = z.strictObject({
|
|
475
475
|
managedDeclaration: AdminAppManagedDeclarationSchema,
|
|
476
|
+
dryRun: z.boolean().optional(),
|
|
476
477
|
});
|
|
477
478
|
/**
|
|
478
479
|
* Shared success response for a managed-declaration reapply request.
|
|
@@ -482,11 +483,25 @@ export const AdminAppReapplyDeclarationRequestSchema = z.strictObject({
|
|
|
482
483
|
* `frontendServices`, `engineCapabilities`, `providers`).
|
|
483
484
|
* An empty list means the stored config already matched the new
|
|
484
485
|
* declaration — the operation is idempotent.
|
|
486
|
+
*
|
|
487
|
+
* When `dryRun` is `true` the same list describes what WOULD change; nothing
|
|
488
|
+
* was written. An empty `updatedFields` under `dryRun` is therefore a positive
|
|
489
|
+
* coherence proof: the stored config matches the declaration right now.
|
|
485
490
|
*/
|
|
486
491
|
export const AdminAppReapplyDeclarationResponseSchema = z.object({
|
|
487
492
|
success: z.literal(true),
|
|
488
493
|
appSlug: z.string().min(1),
|
|
489
494
|
updatedFields: z.array(z.string()),
|
|
490
495
|
appliedAt: z.string().datetime(),
|
|
496
|
+
/**
|
|
497
|
+
* Whether this response describes a PREVIEW or an APPLIED change.
|
|
498
|
+
*
|
|
499
|
+
* REQUIRED rather than optional, and echoed from the request rather than assumed by the
|
|
500
|
+
* caller: `updatedFields` reads identically in both modes, so `['providerConfigurations']`
|
|
501
|
+
* means two opposite things depending on this flag. A caller that cannot tell them apart may
|
|
502
|
+
* report "reapplied" for a run that changed nothing on the server. Issue #97 is what a
|
|
503
|
+
* silently implicit answer to "did this actually take?" costs.
|
|
504
|
+
*/
|
|
505
|
+
dryRun: z.boolean(),
|
|
491
506
|
});
|
|
492
507
|
//# sourceMappingURL=bootstrap.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.schemas.js","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0CAA0C,EAE1C,4BAA4B,EAE5B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,GAM/B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E;;;GAGG;AACH,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,0CAAiB,CAAA;AACnB,CAAC,EAHW,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E,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACxB,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;QAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC5B,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,YAAY,CAAC;IACpE,kBAAkB,EAAE,gCAAgC;CACrD,CAAiD,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC","sourcesContent":["import {\n AppConfiguration_Shared_AppIdentity_Schema,\n type AppConfiguration_Shared_AppIdentity,\n FrontendServicesConfigSchema,\n type FrontendServicesConfig,\n RuntimeEnvironment,\n} from '@wildo-ai/saas-models';\nimport { z } from 'zod';\nimport {\n EngineCapabilityActivationsSchema,\n MinionPlatformAccessCarriedSchema,\n MinionResourceAccessSchema,\n ProviderConfigurationsSchema,\n SaasConfigProvidersBlockSchema,\n type EngineCapabilityActivations,\n type MinionPlatformAccessCarried,\n type MinionResourceAccess,\n type ProviderConfigurations,\n type SaasConfigProvidersBlock,\n} from '../project-config/define-saas-config';\nimport {\n AppFrontendType,\n DataAccessSchema,\n ResourceLimitsSchema,\n WorkerRuntimeSchema,\n} from '../project-config/shared/service-definitions.schemas';\nimport {\n WorkerAuthSchema,\n WorkerHttpSchema,\n} from '../project-config/define-worker-config';\nimport { WildoAuthConfigSchema } from '../project-config/shared/auth.schemas';\nimport { DatabaseEngine } from '../project-config/shared/environment.schemas';\n\n/**\n * Shared bootstrap execution mode.\n * The workflow semantics stay the same; only the executor differs.\n */\nexport enum BootstrapExecutorKind {\n LOCAL = 'local',\n REMOTE = 'remote',\n}\n\n/**\n * Shared bootstrap step identifiers.\n * These represent semantic workflow stages, not package-specific implementation details.\n */\nexport enum BootstrapStepId {\n INITIALIZE_PLATFORM = 'initialize-platform',\n ENSURE_APPLICATION = 'ensure-application',\n FETCH_BOOTSTRAP_CREDENTIALS = 'fetch-bootstrap-credentials',\n GENERATE_RUNTIME_ARTIFACTS = 'generate-runtime-artifacts',\n START_LOCAL_RUNTIME = 'start-local-runtime',\n}\n\n/**\n * Minimum bootstrap credentials required for an application backend to authenticate\n * with apps-manager and fetch its full runtime configuration.\n */\nexport const AppBootstrapCredentialsSchema = z.object({\n APPLICATION_ID: z.string().min(1),\n PLATFORM_APPLICATION_PRIMARY_SECRET: z.string().min(1),\n PLATFORM_APPS_MANAGER_URL: z.url(),\n APPLICATION_ENV: z.enum(RuntimeEnvironment),\n});\n\n/**\n * Shared response envelope returned by apps-manager when bootstrap credentials are requested.\n * Both apps-manager and CLI should rely on this same contract.\n * `environment` / `APPLICATION_ENV` describe runtime semantics for the\n * bootstrapped application process, not the project-level remote environment id.\n */\nexport const AppBootstrapCredentialsResponseSchema = z.object({\n success: z.literal(true),\n appSlug: z.string().min(1),\n environment: z.enum(RuntimeEnvironment),\n credentials: AppBootstrapCredentialsSchema,\n});\n\nexport interface AdminAppManagedDeclaration {\n app: {\n name: string;\n slug: string;\n displayName: string;\n description?: string;\n type: 'saas';\n };\n frontendServices: Array<{\n serviceName: string;\n frontendType: AppFrontendType;\n }>;\n minions: Record<string, {\n resourceAccess?: MinionResourceAccess;\n /** R4/R5 — what this minion may read about ITSELF at the platform level. Absent ⇒ nothing. */\n platformAccess?: MinionPlatformAccessCarried;\n /** KD-12 — `'cron'` minions paired with a `schedule` produce MINION_TICK CronJob records. */\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }>;\n workers: Record<string, {\n name: string;\n displayName: string;\n description?: string;\n runtime: {\n type: string;\n language: string;\n };\n http: {\n port: number;\n healthPath: string;\n readyPath: string;\n metricsPath?: string;\n };\n auth: 'wildo-jwt';\n replicas: number;\n resources?: {\n cpu?: string;\n memory?: string;\n };\n dataAccess?: {\n database?: 'read-only' | 'read-write' | 'none';\n cache?: boolean;\n queue?: 'consumer' | 'producer' | 'both' | 'none';\n };\n }>;\n engineCapabilities: EngineCapabilityActivations;\n providers: SaasConfigProvidersBlock;\n providerConfigurations: ProviderConfigurations;\n}\n\nconst AdminAppManagedMinionsSchema = z.record(\n z.string().min(1),\n z.object({\n resourceAccess: MinionResourceAccessSchema.optional(),\n /**\n * R4/R5 platform-access axis. Independent of `resourceAccess` (D12) — a\n * minion may hold either, both, or neither. apps-manager reads this to\n * decide whether to mint a principal-scoped attestation at all, and\n * `buildOwnCronRecordFilter` reads it to decide whether the minion has any\n * subject to query WITH, so a field dropped here confers nothing no matter\n * what the author wrote.\n */\n platformAccess: MinionPlatformAccessCarriedSchema.optional(),\n /**\n * KD-12 cron-tick path. When `mode === 'cron'` and `schedule` is\n * provided, the backend-api's `cron-job-sync.backend.service.ts`\n * registers a `MINION_TICK` CronJob record on\n * `platform-crontabs-batches-manager` so the per-minion queue\n * (`wildo.queue.{appId}.minion-tick.{minionName}`) actually fires\n * on schedule.\n */\n mode: z.enum(['always-up', 'cron']).optional(),\n schedule: z.string().min(1).optional(),\n }),\n).default({});\n\nconst AdminAppManagedWorkersSchema = z.record(\n z.string().min(1),\n z.object({\n name: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().optional(),\n runtime: WorkerRuntimeSchema,\n http: WorkerHttpSchema,\n auth: WorkerAuthSchema,\n replicas: z.number().int().positive(),\n resources: ResourceLimitsSchema.optional(),\n dataAccess: DataAccessSchema.optional(),\n }),\n).default({});\n\n/**\n * Admin-side projection of `wildo.saas.config.ts` carried from the CLI to\n * apps-manager at app initialization / re-apply time.\n *\n * Cross-bucket trust asymmetry (Slice 3 closeout):\n * Fields in this schema fall into TWO TRUST BUCKETS that the apps-manager\n * treats differently:\n *\n * 1. AUTHORITATIVE bucket (always honored, write-through):\n * - `app.name` / `app.slug` / `app.displayName` / `app.description`\n * — `appIdentity` core (F-53 swap: `app.name` is the canonical\n * identifier, `app.displayName` is the UI label only).\n * - `frontendServices` — frontend service registry (consumed by\n * `_merge_WildoApplicationConfig` to materialise endpoints).\n * - `minions` — minion runtime inventory, currently carrying the\n * per-minion `resourceAccess` authority whitelist used by\n * `start-minion-application`.\n * - `workers` — worker runtime inventory persisted by apps-manager so\n * the control-plane can validate worker identity and serve the\n * worker bootstrap contract without re-reading authored files.\n * - `engineCapabilities`, `providers`, and `providerConfigurations`\n * — the provider runtime graph and its non-secret settings.\n *\n * 2. POLICY bucket (governed by override semantics):\n * - currently empty for provider registration. Capability activation\n * is authored as `engineCapabilities`, while provider routing is\n * materialized into `providers`.\n *\n * What is intentionally NOT here (out of bucket):\n * - JWT TTLs (`accessTokenExpirationMinutes`/`refreshTokenExpirationDays`)\n * travel via the SIBLING field `serviceAuth` on the request envelope\n * (see `AdminAppInitializeRequestSchema.serviceAuth`), NOT here.\n * This separation reflects that JWT TTLs are infra-environment policy\n * sourced from `wildo.infra.<env>.config.ts`, while\n * `managedDeclaration` projects the application-level\n * `wildo.saas.config.ts`.\n * - `dataServices.*` (Redis key prefix, S3 bucket prefix, etc.) — these\n * flow through `PlatformEnvConfigJson` env wiring, not the admin\n * declaration. The declaration carries application-level semantics\n * only.\n *\n * If you ADD a field, decide explicitly which bucket it belongs to and\n * document it in the merge service's JSDoc — silently widening the\n * declaration without consumer-side handling is the documented failure\n * mode this comment exists to prevent.\n */\nexport const AdminAppManagedDeclarationSchema = z.object({\n app: z.object({\n name: z.string().min(1),\n slug: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().optional(),\n type: z.literal('saas'),\n }),\n frontendServices: z.array(z.object({\n serviceName: z.string().min(1),\n frontendType: z.enum(AppFrontendType),\n })).default([]),\n minions: AdminAppManagedMinionsSchema,\n workers: AdminAppManagedWorkersSchema,\n engineCapabilities: EngineCapabilityActivationsSchema,\n providers: SaasConfigProvidersBlockSchema,\n providerConfigurations: ProviderConfigurationsSchema,\n}) as z.ZodType<AdminAppManagedDeclaration>;\n\n/**\n * WHEN an application's OWN database gets its bootstrap rows, relative to the schema those rows need.\n *\n * ## The circularity this vocabulary exists to break\n *\n * On MongoDB, seeding an application's database needed no schema — a collection springs into being on\n * first write — so provisioning could create the database and its first rows in one uninterrupted\n * step. PostgreSQL removed that luxury and exposed a genuine cycle that had always been latent:\n *\n * - apps-manager seeds the application's database during provisioning;\n * - those rows need tables, which come from the application's OWN `migrations/` directory;\n * - those migrations are applied by the application backend at boot\n * (`applyStartupPostgresMigrations`, the production door);\n * - and the backend cannot boot until it is seeded, because its execution-context creator requires\n * exactly one APPLICATION row.\n *\n * Nothing inside that circle can break it. apps-manager cannot read the application's migration files\n * — in production they ship inside the application's own image — and the backend cannot supply the\n * seed, which is authored in `wildo.saas.config.ts`. Only the DEPLOY TOOLING holds both, which is why\n * this is a two-phase contract rather than a retry, a tolerance, or a longer timeout.\n *\n * Observed 2026-08-23 on the first PostgreSQL install: provisioning aborted with\n * `relation \"applications\" does not exist`, and `wildo local dev` failed. The same order holds on\n * every lane, so per-application PostgreSQL provisioning had never completed anywhere.\n *\n * ## Why a request field rather than an inferred tolerance\n *\n * Making apps-manager silently skip seeding when the schema happens to be absent would be a\n * fail-open: provisioning would report success having left the application unbootable, and the caller\n * would have no way to tell a deferred seed from a completed one. The caller states its intent, and\n * the response states what happened — see {@link AppDatabaseSeedingOutcome}.\n */\nexport enum AppDatabaseSeedingPhase {\n /**\n * Seed now. The default, and the ONLY behaviour any pre-2026-08-23 caller can produce, so every\n * MongoDB lane and every older CLI is unchanged.\n */\n REQUIRED = 'REQUIRED',\n /**\n * Provision infrastructure and platform records, but do NOT seed the application's own database —\n * the caller is about to create its schema and will then re-invoke with {@link REQUIRED}.\n */\n DEFERRED = 'DEFERRED',\n}\n\n/**\n * What provisioning actually DID about the application's own bootstrap rows.\n *\n * Reported so a caller can never mistake a deferred seed for a completed one. The CLI treats\n * {@link DEFERRED} as expected on its first phase and FATAL on its second — an application that is\n * still unseeded after its migrations have been applied is a defect, not a state to tolerate.\n */\nexport enum AppDatabaseSeedingOutcome {\n /** Bootstrap rows exist in the application's own database. */\n SEEDED = 'SEEDED',\n /** Skipped because the caller asked for {@link AppDatabaseSeedingPhase.DEFERRED}. */\n DEFERRED = 'DEFERRED',\n /**\n * Skipped because the application has no resolved persistence target. Distinct from\n * {@link DEFERRED}: nothing the caller does next will seed it — the target itself is missing.\n */\n NO_PERSISTENCE_TARGET = 'NO_PERSISTENCE_TARGET',\n}\n\nexport const AppBootstrapFirstAdminSeedSchema = z.object({\n userTypes: z.array(z.string().min(1)).min(1),\n});\n\nconst AppBootstrapRotatedPublicKeyEntrySchema = z.object({\n kid: z.string().min(1),\n publicKey: z.string().min(1),\n /** Last observation/token instant this retired key may authenticate. */\n notAfter: z.coerce.date().optional(),\n});\n\nexport interface AppBootstrapConfigMetadataResponse {\n appSlug: string;\n appIdentity?: AppConfiguration_Shared_AppIdentity;\n frontendServices?: FrontendServicesConfig;\n minions?: Record<string, {\n resourceAccess?: MinionResourceAccess;\n /** R4/R5 — what this minion may read about ITSELF at the platform level. Absent ⇒ nothing. */\n platformAccess?: MinionPlatformAccessCarried;\n /** KD-12 — `'cron'` minions paired with a `schedule` produce MINION_TICK CronJob records. */\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }>;\n workers?: Record<string, {\n name: string;\n displayName: string;\n description?: string;\n runtime: {\n type: string;\n language: string;\n };\n http: {\n port: number;\n healthPath: string;\n readyPath: string;\n metricsPath?: string;\n };\n auth: 'wildo-jwt';\n replicas: number;\n resources?: {\n cpu?: string;\n memory?: string;\n };\n dataAccess?: {\n database?: 'read-only' | 'read-write' | 'none';\n cache?: boolean;\n queue?: 'consumer' | 'producer' | 'both' | 'none';\n };\n }>;\n engineCapabilities?: EngineCapabilityActivations;\n providers?: SaasConfigProvidersBlock;\n email?: {\n isTransactionalWildoManaged: boolean;\n isMarketingWildoManaged: boolean;\n };\n providerConfigurations: ProviderConfigurations;\n jwt?: {\n publicKey: Record<string, string>;\n rotatedPublicKeys?: Record<string, Array<z.infer<typeof AppBootstrapRotatedPublicKeyEntrySchema>>>;\n accessTokenExpirationMinutes: number;\n refreshTokenExpirationDays: number;\n };\n}\n\nexport const AppBootstrapConfigMetadataResponseSchema = z.object({\n appSlug: z.string().min(1),\n appIdentity: AppConfiguration_Shared_AppIdentity_Schema.optional(),\n frontendServices: FrontendServicesConfigSchema.optional(),\n minions: AdminAppManagedMinionsSchema.optional(),\n workers: AdminAppManagedWorkersSchema.optional(),\n engineCapabilities: EngineCapabilityActivationsSchema.optional(),\n providers: SaasConfigProvidersBlockSchema.optional(),\n email: z.object({\n isTransactionalWildoManaged: z.boolean(),\n isMarketingWildoManaged: z.boolean(),\n }).optional(),\n providerConfigurations: ProviderConfigurationsSchema,\n jwt: z.object({\n publicKey: z.record(z.string(), z.string()),\n rotatedPublicKeys: z.record(\n z.string(),\n z.array(AppBootstrapRotatedPublicKeyEntrySchema),\n ).optional(),\n /**\n * Operator-authored JWT TTLs (Slice 3.3 hardening, F-24 / closeout).\n *\n * Sourced from `Wildo_Application_Config.jwt.{accessTokenExpirationMinutes,\n * refreshTokenExpirationDays}` (which itself was seeded from\n * `serviceAuth` in `wildo.infra.<env>.config.ts` at apps-manager init\n * time, falling back to `WildoAuthConfigSchema` defaults of 15 min /\n * 30 days when omitted \\u2014 access-token default tightened from 60\n * \\u2192 15 in Auth-hardening Slice A Step 5 on 2026-04-13; see the\n * file-level JSDoc on `auth.schemas.ts` for the threat-model rationale).\n * The application backend MUST consume these values at sign time\n * (`AuthTokenIssuerBackendService.issueAccessToken`,\n * `JwtBackendService.createRefreshToken`) instead of falling back to\n * developer-authored constants in `saas-config.backend.ts`.\n *\n * REQUIRED on the response (Slice 3 closeout): `_getDefault_WildoApplicationConfig`\n * always seeds these via `WildoAuthConfigSchema.parse(serviceAuth ?? {})`\n * (15 min / 30 days defaults), so any persisted\n * `Wildo_Application_Config.jwt` block has both fields populated.\n * Marking them required here lets the consumer\n * (`app-configuration-loader.backend.service.ts`) drop the\n * `accessTokenExpirationMinutes !== undefined ? ... : {}` defensive\n * spread and treat them as guaranteed values.\n */\n accessTokenExpirationMinutes: z.number().int().positive(),\n refreshTokenExpirationDays: z.number().int().positive(),\n }).optional(),\n}) as z.ZodType<AppBootstrapConfigMetadataResponse>;\n\nexport interface AppWorkerBootstrapResponse {\n appSlug: string;\n workerName: string;\n worker: z.infer<typeof AdminAppManagedWorkersSchema>[string];\n jwt: {\n publicKey: string;\n rotatedPublicKeys?: Array<z.infer<typeof AppBootstrapRotatedPublicKeyEntrySchema>>;\n };\n}\n\nexport const AppWorkerBootstrapResponseSchema = z.object({\n appSlug: z.string().min(1),\n workerName: z.string().min(1),\n worker: z.object({\n name: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().optional(),\n runtime: WorkerRuntimeSchema,\n http: WorkerHttpSchema,\n auth: WorkerAuthSchema,\n replicas: z.number().int().positive(),\n resources: ResourceLimitsSchema.optional(),\n dataAccess: DataAccessSchema.optional(),\n }),\n jwt: z.object({\n publicKey: z.string().min(1),\n rotatedPublicKeys: z.array(AppBootstrapRotatedPublicKeyEntrySchema).optional(),\n }),\n}) as z.ZodType<AppWorkerBootstrapResponse>;\n\ntype WildoAuthConfig = z.infer<typeof WildoAuthConfigSchema>;\n\nexport interface AdminAppInitializeRequest {\n name?: string;\n appDatabaseName?: string;\n override?: boolean;\n userEmail: string;\n userFirstName: string;\n userLastName: string;\n userPassword?: string;\n managedDeclaration: AdminAppManagedDeclaration;\n /**\n * The application's own persistence engine — see the field's JSDoc on the schema below for why it\n * exists at all.\n *\n * ⚠️ This interface and that schema are TWO declarations of ONE contract, joined by the\n * `as z.ZodType<AdminAppInitializeRequest>` cast. The cast means a field added to only the schema\n * type-checks perfectly while being invisible to every CONSUMER — which is exactly what happened on\n * 2026-08-19: apps-manager's controller could not read `applicationDatabase` off a parsed request\n * though the schema accepted it. Add to BOTH, always.\n */\n applicationDatabase?: { engine: DatabaseEngine; databaseName?: string };\n firstAdminSeed?: AppBootstrapFirstAdminSeed;\n /**\n * WHEN to seed this application's own database. Absent means\n * {@link AppDatabaseSeedingPhase.REQUIRED} — see that enum for why the phase is stated rather\n * than inferred.\n */\n appDatabaseSeeding?: AppDatabaseSeedingPhase;\n serviceAuth?: WildoAuthConfig;\n}\n\n/**\n * Shared admin request payload for a single app initialization.\n *\n * This describes the control-plane contract, independently of whether the\n * caller is the CLI or a future CI/CD executor.\n *\n * Required-by-contract fields:\n * - `managedDeclaration` — the projection of `wildo.saas.config.ts` that\n * seeds frontend services, capability policy, and external providers.\n * Omitting it would silently half-bootstrap an app, so the admin HTTP\n * boundary rejects requests without it.\n * - `userEmail` / `userFirstName` / `userLastName` — admin identity for\n * the seeded super-admin user. The previous implementation defaulted\n * these to a developer's personal identity, silently bypassing the\n * downstream `validateInitializationOptions` validation; that bypass\n * is now closed at the contract boundary.\n *\n * Optional-by-design fields:\n * - `userPassword` — the service auto-generates a secure password when\n * omitted (intentional one-shot bootstrap affordance).\n * - `name` / `appDatabaseName` / `override` / `firstAdminSeed` — caller\n * overrides; sensible defaults exist downstream.\n */\nexport const AdminAppInitializeRequestSchema = z.object({\n name: z.string().min(1).optional(),\n appDatabaseName: z.string().min(1).optional(),\n override: z.boolean().optional(),\n userEmail: z.email(),\n userFirstName: z.string().min(1),\n userLastName: z.string().min(1),\n userPassword: z.string().min(1).optional(),\n managedDeclaration: AdminAppManagedDeclarationSchema,\n /**\n * Which store this application's own resources persist to — mirrored from the authored\n * `applicationDatabase` in `wildo.infra.<env>.config.ts`, and carried under the SAME name so the\n * value is traceable end to end by one word.\n *\n * ## Why this field had to be added\n *\n * apps-manager already held the entire per-application PostgreSQL path: `mintAppCredentials`\n * provisioning the database, role and password, plus the `defaultAdapter` and `resourceIdFormat`\n * branches of the stored application config. All three were gated on\n * `WildoApplicationInitOptions.usePostgreSQL`, and on 2026-08-19 a repo-wide search found that flag\n * had FOUR mentions in the whole codebase — one declaration and three reads, in a single file.\n * **Nothing ever set it.**\n *\n * So the capability had no door. `backingServices.postgresql` had been authored for some time and\n * no application role ever appeared in `pg_roles`, because the declaration had no path to the\n * provisioner. This field is that path.\n *\n * OPTIONAL, and absence means MongoDB — matching\n * `ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER`'s own default, so an older CLI that does\n * not send it keeps exactly the behaviour every existing application already has.\n */\n applicationDatabase: z.object({\n engine: z.enum(DatabaseEngine),\n /**\n * The AUTHORED database name, from `backingServices.postgresql.database`.\n *\n * Sent because two sources were naming this database and disagreeing: the provisioner derives\n * `wildo_<sanitized-slug>` while `env-vars-builder` emits the authored name as\n * `POSTGRESQL_DATABASE`. On 2026-08-19 that produced `wildo_wonder_todos` (owned by the app role)\n * beside `wonder-todos-db` (what the backend was told to connect to) — both empty, so the\n * application would have opened a database it did not own while its grants landed elsewhere.\n *\n * The authored value wins: it is the git-borne declaration, it is what the env already carries,\n * and the provisioner has always accepted an override — the caller simply never passed one.\n */\n databaseName: z.string().min(1).optional(),\n }).optional(),\n firstAdminSeed: AppBootstrapFirstAdminSeedSchema.optional(),\n /**\n * WHEN to seed this application's own database — see {@link AppDatabaseSeedingPhase}.\n *\n * OPTIONAL, and absence means `REQUIRED`, so a CLI that predates the two-phase contract keeps\n * exactly the single-phase behaviour every MongoDB application already has.\n */\n appDatabaseSeeding: z.enum(AppDatabaseSeedingPhase).optional(),\n /**\n * Authored `serviceAuth` projection from `wildo.infra.<env>.config.ts`,\n * threaded by the CLI so apps-manager can seed\n * `Wildo_Application_Config.jwt.{accessTokenExpirationMinutes,\n * refreshTokenExpirationDays}` from the operator's policy instead of a\n * hardcoded constant. When omitted (older CLI, or infra file that does\n * not author `serviceAuth`), apps-manager applies the\n * `WildoAuthConfigSchema` defaults (15 min / 30 days as of Auth-hardening\n * Slice A Step 5 on 2026-04-13; pre-Slice-A the access-token default\n * was 60 min) at init time via `WildoAuthConfigSchema.parse({})`.\n */\n serviceAuth: WildoAuthConfigSchema.optional(),\n}) as z.ZodType<AdminAppInitializeRequest>;\n\nexport interface AdminAppInitializeTarget {\n slug: string;\n name?: string;\n appDatabaseName?: string;\n managedDeclaration: AdminAppManagedDeclaration;\n /**\n * The application's own persistence engine — identical semantics to\n * {@link AdminAppInitializeRequest.applicationDatabase}, per target.\n *\n * Added 2026-08-27. The batch envelope had no way to express it, so\n * `POST /admin/apps/initialize` could only ever register applications as MongoDB — the single-app\n * endpoint carried the selection and its batch sibling silently dropped it. One invariant, two\n * call sites, applied at one (`.claude/rules/invariant-call-site-enumeration.md`).\n *\n * ⚠️ Interface AND schema, always — the `as z.ZodType<AdminAppInitializeTarget>` cast below makes\n * a schema-only addition type-check while staying invisible to every consumer.\n */\n applicationDatabase?: { engine: DatabaseEngine; databaseName?: string };\n firstAdminSeed?: AppBootstrapFirstAdminSeed;\n serviceAuth?: WildoAuthConfig;\n}\n\n/**\n * Per-target payload inside a batch admin initialization request.\n *\n * `managedDeclaration` is required for the same contract reason as in\n * `AdminAppInitializeRequestSchema`. Admin identity lives at the batch\n * envelope level (one admin user across all targets), not per target.\n */\nexport const AdminAppInitializeTargetSchema = z.object({\n slug: z.string().min(1),\n name: z.string().min(1).optional(),\n appDatabaseName: z.string().min(1).optional(),\n managedDeclaration: AdminAppManagedDeclarationSchema,\n /**\n * Per-target application persistence selection. Same shape and same meaning as\n * {@link AdminAppInitializeRequestSchema}'s field of this name — read that one for why the\n * selection must be authored rather than inferred from which backing services are declared.\n */\n applicationDatabase: z.object({\n engine: z.enum(DatabaseEngine),\n databaseName: z.string().min(1).optional(),\n }).optional(),\n firstAdminSeed: AppBootstrapFirstAdminSeedSchema.optional(),\n /**\n * Per-target `serviceAuth` projection. Today every target in a batch\n * shares the same infra-authored `serviceAuth` (one infra file per env),\n * but the field is per-target rather than batch-level so a future\n * targeted override (e.g. preview-app with a longer access TTL) can land\n * without breaking the contract. See\n * {@link AdminAppInitializeRequestSchema.serviceAuth} for full semantics.\n */\n serviceAuth: WildoAuthConfigSchema.optional(),\n}) as z.ZodType<AdminAppInitializeTarget>;\n\nexport interface AdminAppsInitializeBatchRequest {\n override?: boolean;\n userEmail: string;\n userFirstName: string;\n userLastName: string;\n userPassword?: string;\n targets: AdminAppInitializeTarget[];\n}\n\n/**\n * Batch admin initialization envelope. Admin identity is required at the\n * envelope level (the seeded admin user is shared across all targets).\n */\nexport const AdminAppsInitializeBatchRequestSchema = z.object({\n override: z.boolean().optional(),\n userEmail: z.email(),\n userFirstName: z.string().min(1),\n userLastName: z.string().min(1),\n userPassword: z.string().min(1).optional(),\n targets: z.array(AdminAppInitializeTargetSchema).min(1),\n}) as z.ZodType<AdminAppsInitializeBatchRequest>;\n\nexport interface AdminAppReapplyDeclarationRequest {\n managedDeclaration: AdminAppManagedDeclaration;\n}\n\n/**\n * Shared success response for a single app initialization request.\n */\nexport const AdminAppInitializeResponseSchema = z.object({\n success: z.literal(true),\n application: z.object({\n name: z.string().min(1),\n slug: z.string().min(1),\n }),\n credentials: z.object({\n email: z.email(),\n password: z.string().min(1),\n }),\n /**\n * What provisioning did about the application's own bootstrap rows — see\n * {@link AppDatabaseSeedingOutcome}.\n *\n * OPTIONAL so a CLI can still parse a response from an apps-manager that predates the two-phase\n * contract. A caller that DEPENDS on the two-phase flow must treat absence as \"unknown\" and say\n * so, never as `SEEDED`.\n */\n appDatabaseSeeding: z.enum(AppDatabaseSeedingOutcome).optional(),\n});\n\n/**\n * Shared admin request payload for reapplying the `wildo.saas.config.ts`\n * declaration projection (`AdminAppManagedDeclaration`) onto an\n * already-initialized application.\n *\n * Contract semantics — what this endpoint owns:\n * - Re-source the declaration-managed slices of `Wildo_Application_Config`\n * from the new declaration: `appIdentity` display fields,\n * `frontendServices` seed, `engineCapabilities`, `providers`, and\n * `providerConfigurations`.\n * - Return a `updatedFields` diff so the caller can surface what changed.\n *\n * Contract semantics — what this endpoint deliberately does NOT touch:\n * - Credentials (DB users, JWT private keys, session secrets, admin\n * passwords). Those live in `Wildo_Application_Secrets` and are owned\n * by initialize / rotate flows.\n * - Database / infrastructure provisioning. Those are owned by\n * `/admin/apps/:appSlug/initialize` and the platform-init flow.\n * - K8s endpoints. Those are owned by\n * `/admin/apps/:appSlug/refresh` (config refresh) and the deploy flow.\n * - First-admin seeding (`firstAdminSeed`). User/role seeding happens\n * at init time only. Reapplying the declaration is a config-drift\n * operation; silently changing seeded role grants would be a\n * security regression. Callers wanting to change admin user types\n * must use a dedicated admin-management endpoint (not this one).\n *\n * Stable action identifier: `apps.reapply-declaration` (see\n * {@link APPS_REAPPLY_DECLARATION_ACTION_ID} in `bootstrap.contracts.ts`).\n * The CI/CD admin rights workstream (Step 8) reuses this identifier in\n * its permission grid so this endpoint can be granted independently\n * from the broader `apps.initialize` action.\n */\nexport const AdminAppReapplyDeclarationRequestSchema = z.strictObject({\n managedDeclaration: AdminAppManagedDeclarationSchema,\n}) as z.ZodType<AdminAppReapplyDeclarationRequest>;\n\n/**\n * Shared success response for a managed-declaration reapply request.\n *\n * `updatedFields` lists the dot-paths of the declaration-projection\n * slices that actually changed (e.g. `appIdentity.displayName`,\n * `frontendServices`, `engineCapabilities`, `providers`).\n * An empty list means the stored config already matched the new\n * declaration — the operation is idempotent.\n */\nexport const AdminAppReapplyDeclarationResponseSchema = z.object({\n success: z.literal(true),\n appSlug: z.string().min(1),\n updatedFields: z.array(z.string()),\n appliedAt: z.string().datetime(),\n});\n\nexport type AppBootstrapCredentials = z.infer<typeof AppBootstrapCredentialsSchema>;\nexport type AppBootstrapCredentialsResponse = z.infer<typeof AppBootstrapCredentialsResponseSchema>;\nexport type AppBootstrapFirstAdminSeed = z.infer<typeof AppBootstrapFirstAdminSeedSchema>;\nexport type AdminAppInitializeResponse = z.infer<typeof AdminAppInitializeResponseSchema>;\nexport type AdminAppReapplyDeclarationResponse = z.infer<typeof AdminAppReapplyDeclarationResponseSchema>;\n"]}
|
|
1
|
+
{"version":3,"file":"bootstrap.schemas.js","sourceRoot":"","sources":["../../../../src/bootstrap/bootstrap.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0CAA0C,EAE1C,4BAA4B,EAE5B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,GAM/B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E;;;GAGG;AACH,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,0CAAiB,CAAA;AACnB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,8DAA2C,CAAA;IAC3C,4DAAyC,CAAA;IACzC,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AAC;IACF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;QAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC5B,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,YAAY,CAAC;IACpE,kBAAkB,EAAE,gCAAgC;IACpD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAiD,CAAC;AAEnD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC;;;;;;;;OAQG;IACH,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC","sourcesContent":["import {\n AppConfiguration_Shared_AppIdentity_Schema,\n type AppConfiguration_Shared_AppIdentity,\n FrontendServicesConfigSchema,\n type FrontendServicesConfig,\n RuntimeEnvironment,\n} from '@wildo-ai/saas-models';\nimport { z } from 'zod';\nimport {\n EngineCapabilityActivationsSchema,\n MinionPlatformAccessCarriedSchema,\n MinionResourceAccessSchema,\n ProviderConfigurationsSchema,\n SaasConfigProvidersBlockSchema,\n type EngineCapabilityActivations,\n type MinionPlatformAccessCarried,\n type MinionResourceAccess,\n type ProviderConfigurations,\n type SaasConfigProvidersBlock,\n} from '../project-config/define-saas-config';\nimport {\n AppFrontendType,\n DataAccessSchema,\n ResourceLimitsSchema,\n WorkerRuntimeSchema,\n} from '../project-config/shared/service-definitions.schemas';\nimport {\n WorkerAuthSchema,\n WorkerHttpSchema,\n} from '../project-config/define-worker-config';\nimport { WildoAuthConfigSchema } from '../project-config/shared/auth.schemas';\nimport { DatabaseEngine } from '../project-config/shared/environment.schemas';\n\n/**\n * Shared bootstrap execution mode.\n * The workflow semantics stay the same; only the executor differs.\n */\nexport enum BootstrapExecutorKind {\n LOCAL = 'local',\n REMOTE = 'remote',\n}\n\n/**\n * Shared bootstrap step identifiers.\n * These represent semantic workflow stages, not package-specific implementation details.\n */\nexport enum BootstrapStepId {\n INITIALIZE_PLATFORM = 'initialize-platform',\n ENSURE_APPLICATION = 'ensure-application',\n FETCH_BOOTSTRAP_CREDENTIALS = 'fetch-bootstrap-credentials',\n GENERATE_RUNTIME_ARTIFACTS = 'generate-runtime-artifacts',\n START_LOCAL_RUNTIME = 'start-local-runtime',\n}\n\n/**\n * Minimum bootstrap credentials required for an application backend to authenticate\n * with apps-manager and fetch its full runtime configuration.\n */\nexport const AppBootstrapCredentialsSchema = z.object({\n APPLICATION_ID: z.string().min(1),\n PLATFORM_APPLICATION_PRIMARY_SECRET: z.string().min(1),\n PLATFORM_APPS_MANAGER_URL: z.url(),\n APPLICATION_ENV: z.enum(RuntimeEnvironment),\n});\n\n/**\n * Shared response envelope returned by apps-manager when bootstrap credentials are requested.\n * Both apps-manager and CLI should rely on this same contract.\n * `environment` / `APPLICATION_ENV` describe runtime semantics for the\n * bootstrapped application process, not the project-level remote environment id.\n */\nexport const AppBootstrapCredentialsResponseSchema = z.object({\n success: z.literal(true),\n appSlug: z.string().min(1),\n environment: z.enum(RuntimeEnvironment),\n credentials: AppBootstrapCredentialsSchema,\n});\n\nexport interface AdminAppManagedDeclaration {\n app: {\n name: string;\n slug: string;\n displayName: string;\n description?: string;\n type: 'saas';\n };\n frontendServices: Array<{\n serviceName: string;\n frontendType: AppFrontendType;\n }>;\n minions: Record<string, {\n resourceAccess?: MinionResourceAccess;\n /** R4/R5 — what this minion may read about ITSELF at the platform level. Absent ⇒ nothing. */\n platformAccess?: MinionPlatformAccessCarried;\n /** KD-12 — `'cron'` minions paired with a `schedule` produce MINION_TICK CronJob records. */\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }>;\n workers: Record<string, {\n name: string;\n displayName: string;\n description?: string;\n runtime: {\n type: string;\n language: string;\n };\n http: {\n port: number;\n healthPath: string;\n readyPath: string;\n metricsPath?: string;\n };\n auth: 'wildo-jwt';\n replicas: number;\n resources?: {\n cpu?: string;\n memory?: string;\n };\n dataAccess?: {\n database?: 'read-only' | 'read-write' | 'none';\n cache?: boolean;\n queue?: 'consumer' | 'producer' | 'both' | 'none';\n };\n }>;\n engineCapabilities: EngineCapabilityActivations;\n providers: SaasConfigProvidersBlock;\n providerConfigurations: ProviderConfigurations;\n}\n\nconst AdminAppManagedMinionsSchema = z.record(\n z.string().min(1),\n z.object({\n resourceAccess: MinionResourceAccessSchema.optional(),\n /**\n * R4/R5 platform-access axis. Independent of `resourceAccess` (D12) — a\n * minion may hold either, both, or neither. apps-manager reads this to\n * decide whether to mint a principal-scoped attestation at all, and\n * `buildOwnCronRecordFilter` reads it to decide whether the minion has any\n * subject to query WITH, so a field dropped here confers nothing no matter\n * what the author wrote.\n */\n platformAccess: MinionPlatformAccessCarriedSchema.optional(),\n /**\n * KD-12 cron-tick path. When `mode === 'cron'` and `schedule` is\n * provided, the backend-api's `cron-job-sync.backend.service.ts`\n * registers a `MINION_TICK` CronJob record on\n * `platform-crontabs-batches-manager` so the per-minion queue\n * (`wildo.queue.{appId}.minion-tick.{minionName}`) actually fires\n * on schedule.\n */\n mode: z.enum(['always-up', 'cron']).optional(),\n schedule: z.string().min(1).optional(),\n }),\n).default({});\n\nconst AdminAppManagedWorkersSchema = z.record(\n z.string().min(1),\n z.object({\n name: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().optional(),\n runtime: WorkerRuntimeSchema,\n http: WorkerHttpSchema,\n auth: WorkerAuthSchema,\n replicas: z.number().int().positive(),\n resources: ResourceLimitsSchema.optional(),\n dataAccess: DataAccessSchema.optional(),\n }),\n).default({});\n\n/**\n * Admin-side projection of `wildo.saas.config.ts` carried from the CLI to\n * apps-manager at app initialization / re-apply time.\n *\n * Cross-bucket trust asymmetry (Slice 3 closeout):\n * Fields in this schema fall into TWO TRUST BUCKETS that the apps-manager\n * treats differently:\n *\n * 1. AUTHORITATIVE bucket (always honored, write-through):\n * - `app.name` / `app.slug` / `app.displayName` / `app.description`\n * — `appIdentity` core (F-53 swap: `app.name` is the canonical\n * identifier, `app.displayName` is the UI label only).\n * - `frontendServices` — frontend service registry (consumed by\n * `_merge_WildoApplicationConfig` to materialise endpoints).\n * - `minions` — minion runtime inventory, currently carrying the\n * per-minion `resourceAccess` authority whitelist used by\n * `start-minion-application`.\n * - `workers` — worker runtime inventory persisted by apps-manager so\n * the control-plane can validate worker identity and serve the\n * worker bootstrap contract without re-reading authored files.\n * - `engineCapabilities`, `providers`, and `providerConfigurations`\n * — the provider runtime graph and its non-secret settings.\n *\n * 2. POLICY bucket (governed by override semantics):\n * - currently empty for provider registration. Capability activation\n * is authored as `engineCapabilities`, while provider routing is\n * materialized into `providers`.\n *\n * What is intentionally NOT here (out of bucket):\n * - JWT TTLs (`accessTokenExpirationMinutes`/`refreshTokenExpirationDays`)\n * travel via the SIBLING field `serviceAuth` on the request envelope\n * (see `AdminAppInitializeRequestSchema.serviceAuth`), NOT here.\n * This separation reflects that JWT TTLs are infra-environment policy\n * sourced from `wildo.infra.<env>.config.ts`, while\n * `managedDeclaration` projects the application-level\n * `wildo.saas.config.ts`.\n * - `dataServices.*` (Redis key prefix, S3 bucket prefix, etc.) — these\n * flow through `PlatformEnvConfigJson` env wiring, not the admin\n * declaration. The declaration carries application-level semantics\n * only.\n *\n * If you ADD a field, decide explicitly which bucket it belongs to and\n * document it in the merge service's JSDoc — silently widening the\n * declaration without consumer-side handling is the documented failure\n * mode this comment exists to prevent.\n */\nexport const AdminAppManagedDeclarationSchema = z.object({\n app: z.object({\n name: z.string().min(1),\n slug: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().optional(),\n type: z.literal('saas'),\n }),\n frontendServices: z.array(z.object({\n serviceName: z.string().min(1),\n frontendType: z.enum(AppFrontendType),\n })).default([]),\n minions: AdminAppManagedMinionsSchema,\n workers: AdminAppManagedWorkersSchema,\n engineCapabilities: EngineCapabilityActivationsSchema,\n providers: SaasConfigProvidersBlockSchema,\n providerConfigurations: ProviderConfigurationsSchema,\n}) as z.ZodType<AdminAppManagedDeclaration>;\n\n/**\n * WHEN an application's OWN database gets its bootstrap rows, relative to the schema those rows need.\n *\n * ## The circularity this vocabulary exists to break\n *\n * On MongoDB, seeding an application's database needed no schema — a collection springs into being on\n * first write — so provisioning could create the database and its first rows in one uninterrupted\n * step. PostgreSQL removed that luxury and exposed a genuine cycle that had always been latent:\n *\n * - apps-manager seeds the application's database during provisioning;\n * - those rows need tables, which come from the application's OWN `migrations/` directory;\n * - those migrations are applied by the application backend at boot\n * (`applyStartupPostgresMigrations`, the production door);\n * - and the backend cannot boot until it is seeded, because its execution-context creator requires\n * exactly one APPLICATION row.\n *\n * Nothing inside that circle can break it. apps-manager cannot read the application's migration files\n * — in production they ship inside the application's own image — and the backend cannot supply the\n * seed, which is authored in `wildo.saas.config.ts`. Only the DEPLOY TOOLING holds both, which is why\n * this is a two-phase contract rather than a retry, a tolerance, or a longer timeout.\n *\n * Observed 2026-08-23 on the first PostgreSQL install: provisioning aborted with\n * `relation \"applications\" does not exist`, and `wildo local dev` failed. The same order holds on\n * every lane, so per-application PostgreSQL provisioning had never completed anywhere.\n *\n * ## Why a request field rather than an inferred tolerance\n *\n * Making apps-manager silently skip seeding when the schema happens to be absent would be a\n * fail-open: provisioning would report success having left the application unbootable, and the caller\n * would have no way to tell a deferred seed from a completed one. The caller states its intent, and\n * the response states what happened — see {@link AppDatabaseSeedingOutcome}.\n */\nexport enum AppDatabaseSeedingPhase {\n /**\n * Seed now. The default, and the ONLY behaviour any pre-2026-08-23 caller can produce, so every\n * MongoDB lane and every older CLI is unchanged.\n */\n REQUIRED = 'REQUIRED',\n /**\n * Provision infrastructure and platform records, but do NOT seed the application's own database —\n * the caller is about to create its schema and will then re-invoke with {@link REQUIRED}.\n */\n DEFERRED = 'DEFERRED',\n}\n\n/**\n * What provisioning actually DID about the application's own bootstrap rows.\n *\n * Reported so a caller can never mistake a deferred seed for a completed one. The CLI treats\n * {@link DEFERRED} as expected on its first phase and FATAL on its second — an application that is\n * still unseeded after its migrations have been applied is a defect, not a state to tolerate.\n */\nexport enum AppDatabaseSeedingOutcome {\n /** Bootstrap rows exist in the application's own database. */\n SEEDED = 'SEEDED',\n /** Skipped because the caller asked for {@link AppDatabaseSeedingPhase.DEFERRED}. */\n DEFERRED = 'DEFERRED',\n /**\n * Skipped because the application has no resolved persistence target. Distinct from\n * {@link DEFERRED}: nothing the caller does next will seed it — the target itself is missing.\n */\n NO_PERSISTENCE_TARGET = 'NO_PERSISTENCE_TARGET',\n}\n\nexport const AppBootstrapFirstAdminSeedSchema = z.object({\n userTypes: z.array(z.string().min(1)).min(1),\n});\n\nconst AppBootstrapRotatedPublicKeyEntrySchema = z.object({\n kid: z.string().min(1),\n publicKey: z.string().min(1),\n /** Last observation/token instant this retired key may authenticate. */\n notAfter: z.coerce.date().optional(),\n});\n\nexport interface AppBootstrapConfigMetadataResponse {\n appSlug: string;\n appIdentity?: AppConfiguration_Shared_AppIdentity;\n frontendServices?: FrontendServicesConfig;\n minions?: Record<string, {\n resourceAccess?: MinionResourceAccess;\n /** R4/R5 — what this minion may read about ITSELF at the platform level. Absent ⇒ nothing. */\n platformAccess?: MinionPlatformAccessCarried;\n /** KD-12 — `'cron'` minions paired with a `schedule` produce MINION_TICK CronJob records. */\n mode?: 'always-up' | 'cron';\n schedule?: string;\n }>;\n workers?: Record<string, {\n name: string;\n displayName: string;\n description?: string;\n runtime: {\n type: string;\n language: string;\n };\n http: {\n port: number;\n healthPath: string;\n readyPath: string;\n metricsPath?: string;\n };\n auth: 'wildo-jwt';\n replicas: number;\n resources?: {\n cpu?: string;\n memory?: string;\n };\n dataAccess?: {\n database?: 'read-only' | 'read-write' | 'none';\n cache?: boolean;\n queue?: 'consumer' | 'producer' | 'both' | 'none';\n };\n }>;\n engineCapabilities?: EngineCapabilityActivations;\n providers?: SaasConfigProvidersBlock;\n email?: {\n isTransactionalWildoManaged: boolean;\n isMarketingWildoManaged: boolean;\n };\n providerConfigurations: ProviderConfigurations;\n jwt?: {\n publicKey: Record<string, string>;\n rotatedPublicKeys?: Record<string, Array<z.infer<typeof AppBootstrapRotatedPublicKeyEntrySchema>>>;\n accessTokenExpirationMinutes: number;\n refreshTokenExpirationDays: number;\n };\n}\n\nexport const AppBootstrapConfigMetadataResponseSchema = z.object({\n appSlug: z.string().min(1),\n appIdentity: AppConfiguration_Shared_AppIdentity_Schema.optional(),\n frontendServices: FrontendServicesConfigSchema.optional(),\n minions: AdminAppManagedMinionsSchema.optional(),\n workers: AdminAppManagedWorkersSchema.optional(),\n engineCapabilities: EngineCapabilityActivationsSchema.optional(),\n providers: SaasConfigProvidersBlockSchema.optional(),\n email: z.object({\n isTransactionalWildoManaged: z.boolean(),\n isMarketingWildoManaged: z.boolean(),\n }).optional(),\n providerConfigurations: ProviderConfigurationsSchema,\n jwt: z.object({\n publicKey: z.record(z.string(), z.string()),\n rotatedPublicKeys: z.record(\n z.string(),\n z.array(AppBootstrapRotatedPublicKeyEntrySchema),\n ).optional(),\n /**\n * Operator-authored JWT TTLs (Slice 3.3 hardening, F-24 / closeout).\n *\n * Sourced from `Wildo_Application_Config.jwt.{accessTokenExpirationMinutes,\n * refreshTokenExpirationDays}` (which itself was seeded from\n * `serviceAuth` in `wildo.infra.<env>.config.ts` at apps-manager init\n * time, falling back to `WildoAuthConfigSchema` defaults of 15 min /\n * 30 days when omitted \\u2014 access-token default tightened from 60\n * \\u2192 15 in Auth-hardening Slice A Step 5 on 2026-04-13; see the\n * file-level JSDoc on `auth.schemas.ts` for the threat-model rationale).\n * The application backend MUST consume these values at sign time\n * (`AuthTokenIssuerBackendService.issueAccessToken`,\n * `JwtBackendService.createRefreshToken`) instead of falling back to\n * developer-authored constants in `saas-config.backend.ts`.\n *\n * REQUIRED on the response (Slice 3 closeout): `_getDefault_WildoApplicationConfig`\n * always seeds these via `WildoAuthConfigSchema.parse(serviceAuth ?? {})`\n * (15 min / 30 days defaults), so any persisted\n * `Wildo_Application_Config.jwt` block has both fields populated.\n * Marking them required here lets the consumer\n * (`app-configuration-loader.backend.service.ts`) drop the\n * `accessTokenExpirationMinutes !== undefined ? ... : {}` defensive\n * spread and treat them as guaranteed values.\n */\n accessTokenExpirationMinutes: z.number().int().positive(),\n refreshTokenExpirationDays: z.number().int().positive(),\n }).optional(),\n}) as z.ZodType<AppBootstrapConfigMetadataResponse>;\n\nexport interface AppWorkerBootstrapResponse {\n appSlug: string;\n workerName: string;\n worker: z.infer<typeof AdminAppManagedWorkersSchema>[string];\n jwt: {\n publicKey: string;\n rotatedPublicKeys?: Array<z.infer<typeof AppBootstrapRotatedPublicKeyEntrySchema>>;\n };\n}\n\nexport const AppWorkerBootstrapResponseSchema = z.object({\n appSlug: z.string().min(1),\n workerName: z.string().min(1),\n worker: z.object({\n name: z.string().min(1),\n displayName: z.string().min(1),\n description: z.string().optional(),\n runtime: WorkerRuntimeSchema,\n http: WorkerHttpSchema,\n auth: WorkerAuthSchema,\n replicas: z.number().int().positive(),\n resources: ResourceLimitsSchema.optional(),\n dataAccess: DataAccessSchema.optional(),\n }),\n jwt: z.object({\n publicKey: z.string().min(1),\n rotatedPublicKeys: z.array(AppBootstrapRotatedPublicKeyEntrySchema).optional(),\n }),\n}) as z.ZodType<AppWorkerBootstrapResponse>;\n\ntype WildoAuthConfig = z.infer<typeof WildoAuthConfigSchema>;\n\nexport interface AdminAppInitializeRequest {\n name?: string;\n appDatabaseName?: string;\n override?: boolean;\n userEmail: string;\n userFirstName: string;\n userLastName: string;\n userPassword?: string;\n managedDeclaration: AdminAppManagedDeclaration;\n /**\n * The application's own persistence engine — see the field's JSDoc on the schema below for why it\n * exists at all.\n *\n * ⚠️ This interface and that schema are TWO declarations of ONE contract, joined by the\n * `as z.ZodType<AdminAppInitializeRequest>` cast. The cast means a field added to only the schema\n * type-checks perfectly while being invisible to every CONSUMER — which is exactly what happened on\n * 2026-08-19: apps-manager's controller could not read `applicationDatabase` off a parsed request\n * though the schema accepted it. Add to BOTH, always.\n */\n applicationDatabase?: { engine: DatabaseEngine; databaseName?: string };\n firstAdminSeed?: AppBootstrapFirstAdminSeed;\n /**\n * WHEN to seed this application's own database. Absent means\n * {@link AppDatabaseSeedingPhase.REQUIRED} — see that enum for why the phase is stated rather\n * than inferred.\n */\n appDatabaseSeeding?: AppDatabaseSeedingPhase;\n serviceAuth?: WildoAuthConfig;\n}\n\n/**\n * Shared admin request payload for a single app initialization.\n *\n * This describes the control-plane contract, independently of whether the\n * caller is the CLI or a future CI/CD executor.\n *\n * Required-by-contract fields:\n * - `managedDeclaration` — the projection of `wildo.saas.config.ts` that\n * seeds frontend services, capability policy, and external providers.\n * Omitting it would silently half-bootstrap an app, so the admin HTTP\n * boundary rejects requests without it.\n * - `userEmail` / `userFirstName` / `userLastName` — admin identity for\n * the seeded super-admin user. The previous implementation defaulted\n * these to a developer's personal identity, silently bypassing the\n * downstream `validateInitializationOptions` validation; that bypass\n * is now closed at the contract boundary.\n *\n * Optional-by-design fields:\n * - `userPassword` — the service auto-generates a secure password when\n * omitted (intentional one-shot bootstrap affordance).\n * - `name` / `appDatabaseName` / `override` / `firstAdminSeed` — caller\n * overrides; sensible defaults exist downstream.\n */\nexport const AdminAppInitializeRequestSchema = z.object({\n name: z.string().min(1).optional(),\n appDatabaseName: z.string().min(1).optional(),\n override: z.boolean().optional(),\n userEmail: z.email(),\n userFirstName: z.string().min(1),\n userLastName: z.string().min(1),\n userPassword: z.string().min(1).optional(),\n managedDeclaration: AdminAppManagedDeclarationSchema,\n /**\n * Which store this application's own resources persist to — mirrored from the authored\n * `applicationDatabase` in `wildo.infra.<env>.config.ts`, and carried under the SAME name so the\n * value is traceable end to end by one word.\n *\n * ## Why this field had to be added\n *\n * apps-manager already held the entire per-application PostgreSQL path: `mintAppCredentials`\n * provisioning the database, role and password, plus the `defaultAdapter` and `resourceIdFormat`\n * branches of the stored application config. All three were gated on\n * `WildoApplicationInitOptions.usePostgreSQL`, and on 2026-08-19 a repo-wide search found that flag\n * had FOUR mentions in the whole codebase — one declaration and three reads, in a single file.\n * **Nothing ever set it.**\n *\n * So the capability had no door. `backingServices.postgresql` had been authored for some time and\n * no application role ever appeared in `pg_roles`, because the declaration had no path to the\n * provisioner. This field is that path.\n *\n * OPTIONAL, and absence means MongoDB — matching\n * `ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER`'s own default, so an older CLI that does\n * not send it keeps exactly the behaviour every existing application already has.\n */\n applicationDatabase: z.object({\n engine: z.enum(DatabaseEngine),\n /**\n * The AUTHORED database name, from `backingServices.postgresql.database`.\n *\n * Sent because two sources were naming this database and disagreeing: the provisioner derives\n * `wildo_<sanitized-slug>` while `env-vars-builder` emits the authored name as\n * `POSTGRESQL_DATABASE`. On 2026-08-19 that produced `wildo_wonder_todos` (owned by the app role)\n * beside `wonder-todos-db` (what the backend was told to connect to) — both empty, so the\n * application would have opened a database it did not own while its grants landed elsewhere.\n *\n * The authored value wins: it is the git-borne declaration, it is what the env already carries,\n * and the provisioner has always accepted an override — the caller simply never passed one.\n */\n databaseName: z.string().min(1).optional(),\n }).optional(),\n firstAdminSeed: AppBootstrapFirstAdminSeedSchema.optional(),\n /**\n * WHEN to seed this application's own database — see {@link AppDatabaseSeedingPhase}.\n *\n * OPTIONAL, and absence means `REQUIRED`, so a CLI that predates the two-phase contract keeps\n * exactly the single-phase behaviour every MongoDB application already has.\n */\n appDatabaseSeeding: z.enum(AppDatabaseSeedingPhase).optional(),\n /**\n * Authored `serviceAuth` projection from `wildo.infra.<env>.config.ts`,\n * threaded by the CLI so apps-manager can seed\n * `Wildo_Application_Config.jwt.{accessTokenExpirationMinutes,\n * refreshTokenExpirationDays}` from the operator's policy instead of a\n * hardcoded constant. When omitted (older CLI, or infra file that does\n * not author `serviceAuth`), apps-manager applies the\n * `WildoAuthConfigSchema` defaults (15 min / 30 days as of Auth-hardening\n * Slice A Step 5 on 2026-04-13; pre-Slice-A the access-token default\n * was 60 min) at init time via `WildoAuthConfigSchema.parse({})`.\n */\n serviceAuth: WildoAuthConfigSchema.optional(),\n}) as z.ZodType<AdminAppInitializeRequest>;\n\nexport interface AdminAppInitializeTarget {\n slug: string;\n name?: string;\n appDatabaseName?: string;\n managedDeclaration: AdminAppManagedDeclaration;\n /**\n * The application's own persistence engine — identical semantics to\n * {@link AdminAppInitializeRequest.applicationDatabase}, per target.\n *\n * Added 2026-08-27. The batch envelope had no way to express it, so\n * `POST /admin/apps/initialize` could only ever register applications as MongoDB — the single-app\n * endpoint carried the selection and its batch sibling silently dropped it. One invariant, two\n * call sites, applied at one (`.claude/rules/invariant-call-site-enumeration.md`).\n *\n * ⚠️ Interface AND schema, always — the `as z.ZodType<AdminAppInitializeTarget>` cast below makes\n * a schema-only addition type-check while staying invisible to every consumer.\n */\n applicationDatabase?: { engine: DatabaseEngine; databaseName?: string };\n firstAdminSeed?: AppBootstrapFirstAdminSeed;\n serviceAuth?: WildoAuthConfig;\n}\n\n/**\n * Per-target payload inside a batch admin initialization request.\n *\n * `managedDeclaration` is required for the same contract reason as in\n * `AdminAppInitializeRequestSchema`. Admin identity lives at the batch\n * envelope level (one admin user across all targets), not per target.\n */\nexport const AdminAppInitializeTargetSchema = z.object({\n slug: z.string().min(1),\n name: z.string().min(1).optional(),\n appDatabaseName: z.string().min(1).optional(),\n managedDeclaration: AdminAppManagedDeclarationSchema,\n /**\n * Per-target application persistence selection. Same shape and same meaning as\n * {@link AdminAppInitializeRequestSchema}'s field of this name — read that one for why the\n * selection must be authored rather than inferred from which backing services are declared.\n */\n applicationDatabase: z.object({\n engine: z.enum(DatabaseEngine),\n databaseName: z.string().min(1).optional(),\n }).optional(),\n firstAdminSeed: AppBootstrapFirstAdminSeedSchema.optional(),\n /**\n * Per-target `serviceAuth` projection. Today every target in a batch\n * shares the same infra-authored `serviceAuth` (one infra file per env),\n * but the field is per-target rather than batch-level so a future\n * targeted override (e.g. preview-app with a longer access TTL) can land\n * without breaking the contract. See\n * {@link AdminAppInitializeRequestSchema.serviceAuth} for full semantics.\n */\n serviceAuth: WildoAuthConfigSchema.optional(),\n}) as z.ZodType<AdminAppInitializeTarget>;\n\nexport interface AdminAppsInitializeBatchRequest {\n override?: boolean;\n userEmail: string;\n userFirstName: string;\n userLastName: string;\n userPassword?: string;\n targets: AdminAppInitializeTarget[];\n}\n\n/**\n * Batch admin initialization envelope. Admin identity is required at the\n * envelope level (the seeded admin user is shared across all targets).\n */\nexport const AdminAppsInitializeBatchRequestSchema = z.object({\n override: z.boolean().optional(),\n userEmail: z.email(),\n userFirstName: z.string().min(1),\n userLastName: z.string().min(1),\n userPassword: z.string().min(1).optional(),\n targets: z.array(AdminAppInitializeTargetSchema).min(1),\n}) as z.ZodType<AdminAppsInitializeBatchRequest>;\n\nexport interface AdminAppReapplyDeclarationRequest {\n managedDeclaration: AdminAppManagedDeclaration;\n /**\n * Report what a reapply WOULD change and write nothing (issue #97).\n *\n * This is the comparison primitive behind every \"is the stored config still what the\n * application declares?\" question — the init postcondition and the `wildo local doctor`\n * drift check both ask it this way rather than each re-implementing an authored-vs-stored\n * differ. One comparison, one place it can be wrong.\n *\n * Optional and defaulting to a real reapply, so an existing caller keeps its behaviour: a flag\n * that silently turned writes into no-ops would be a far worse failure than the invisibility it\n * exists to cure.\n */\n dryRun?: boolean;\n}\n\n/**\n * Shared success response for a single app initialization request.\n */\nexport const AdminAppInitializeResponseSchema = z.object({\n success: z.literal(true),\n application: z.object({\n name: z.string().min(1),\n slug: z.string().min(1),\n }),\n credentials: z.object({\n email: z.email(),\n password: z.string().min(1),\n }),\n /**\n * What provisioning did about the application's own bootstrap rows — see\n * {@link AppDatabaseSeedingOutcome}.\n *\n * OPTIONAL so a CLI can still parse a response from an apps-manager that predates the two-phase\n * contract. A caller that DEPENDS on the two-phase flow must treat absence as \"unknown\" and say\n * so, never as `SEEDED`.\n */\n appDatabaseSeeding: z.enum(AppDatabaseSeedingOutcome).optional(),\n});\n\n/**\n * Shared admin request payload for reapplying the `wildo.saas.config.ts`\n * declaration projection (`AdminAppManagedDeclaration`) onto an\n * already-initialized application.\n *\n * Contract semantics — what this endpoint owns:\n * - Re-source the declaration-managed slices of `Wildo_Application_Config`\n * from the new declaration: `appIdentity` display fields,\n * `frontendServices` seed, `engineCapabilities`, `providers`, and\n * `providerConfigurations`.\n * - Return a `updatedFields` diff so the caller can surface what changed.\n *\n * Contract semantics — what this endpoint deliberately does NOT touch:\n * - Credentials (DB users, JWT private keys, session secrets, admin\n * passwords). Those live in `Wildo_Application_Secrets` and are owned\n * by initialize / rotate flows.\n * - Database / infrastructure provisioning. Those are owned by\n * `/admin/apps/:appSlug/initialize` and the platform-init flow.\n * - K8s endpoints. Those are owned by\n * `/admin/apps/:appSlug/refresh` (config refresh) and the deploy flow.\n * - First-admin seeding (`firstAdminSeed`). User/role seeding happens\n * at init time only. Reapplying the declaration is a config-drift\n * operation; silently changing seeded role grants would be a\n * security regression. Callers wanting to change admin user types\n * must use a dedicated admin-management endpoint (not this one).\n *\n * Stable action identifier: `apps.reapply-declaration` (see\n * {@link APPS_REAPPLY_DECLARATION_ACTION_ID} in `bootstrap.contracts.ts`).\n * The CI/CD admin rights workstream (Step 8) reuses this identifier in\n * its permission grid so this endpoint can be granted independently\n * from the broader `apps.initialize` action.\n */\nexport const AdminAppReapplyDeclarationRequestSchema = z.strictObject({\n managedDeclaration: AdminAppManagedDeclarationSchema,\n dryRun: z.boolean().optional(),\n}) as z.ZodType<AdminAppReapplyDeclarationRequest>;\n\n/**\n * Shared success response for a managed-declaration reapply request.\n *\n * `updatedFields` lists the dot-paths of the declaration-projection\n * slices that actually changed (e.g. `appIdentity.displayName`,\n * `frontendServices`, `engineCapabilities`, `providers`).\n * An empty list means the stored config already matched the new\n * declaration — the operation is idempotent.\n *\n * When `dryRun` is `true` the same list describes what WOULD change; nothing\n * was written. An empty `updatedFields` under `dryRun` is therefore a positive\n * coherence proof: the stored config matches the declaration right now.\n */\nexport const AdminAppReapplyDeclarationResponseSchema = z.object({\n success: z.literal(true),\n appSlug: z.string().min(1),\n updatedFields: z.array(z.string()),\n appliedAt: z.string().datetime(),\n /**\n * Whether this response describes a PREVIEW or an APPLIED change.\n *\n * REQUIRED rather than optional, and echoed from the request rather than assumed by the\n * caller: `updatedFields` reads identically in both modes, so `['providerConfigurations']`\n * means two opposite things depending on this flag. A caller that cannot tell them apart may\n * report \"reapplied\" for a run that changed nothing on the server. Issue #97 is what a\n * silently implicit answer to \"did this actually take?\" costs.\n */\n dryRun: z.boolean(),\n});\n\nexport type AppBootstrapCredentials = z.infer<typeof AppBootstrapCredentialsSchema>;\nexport type AppBootstrapCredentialsResponse = z.infer<typeof AppBootstrapCredentialsResponseSchema>;\nexport type AppBootstrapFirstAdminSeed = z.infer<typeof AppBootstrapFirstAdminSeedSchema>;\nexport type AdminAppInitializeResponse = z.infer<typeof AdminAppInitializeResponseSchema>;\nexport type AdminAppReapplyDeclarationResponse = z.infer<typeof AdminAppReapplyDeclarationResponseSchema>;\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ONE identity of the organization that owns Wildo's own applications.
|
|
3
|
+
*
|
|
4
|
+
* ## Why this constant exists
|
|
5
|
+
*
|
|
6
|
+
* This identity used to be hardcoded FOUR times, in two files, as TWO DIFFERENT VALUES — and the
|
|
7
|
+
* result was a platform carrying two organizations, neither of them a customer:
|
|
8
|
+
*
|
|
9
|
+
* | declared in | value |
|
|
10
|
+
* |---|---|
|
|
11
|
+
* | `init-mode-startup.apps-manager.service.ts` (twice) | `wildo-platform` / `Wildo Platform` |
|
|
12
|
+
* | `maintenance/services/app-initialization.service.ts` (twice) | `wildo` / `Wildo` |
|
|
13
|
+
*
|
|
14
|
+
* The two paths provision different things, so ownership split along them. Measured on the dogfood
|
|
15
|
+
* platform (2026-09-01): `wildo-ai-application` — the bootstrap row — was owned by `wildo-platform`,
|
|
16
|
+
* while `wonder-crm`, `wonder-todos` and `secrets-proof` were owned by `wildo`. Worse, OPERATOR
|
|
17
|
+
* REACH followed the same split: the admin seeded by INIT was `ORG_ADMIN` of BOTH organizations,
|
|
18
|
+
* while an admin seeded later by the maintenance path was a member of `wildo` ONLY. Nothing declared
|
|
19
|
+
* that they should differ; it was decided by which code path happened to run.
|
|
20
|
+
*
|
|
21
|
+
* The bootstrap organization is also `ACTIVE` and authority-conferring, so everything that
|
|
22
|
+
* ENUMERATES tenants — an organization switcher, the owner-floor boot report, a cross-tenant audit,
|
|
23
|
+
* a subject-erasure sweep — counted a bootstrap artifact as a real tenant.
|
|
24
|
+
*
|
|
25
|
+
* ## Why ONE organization rather than two declared ones
|
|
26
|
+
*
|
|
27
|
+
* The second organization was never a design. `seedBootstrapApplicationRecord` needs *an* owner for
|
|
28
|
+
* the minimal APPLICATION row it seeds to break a chicken-and-egg (an APPLICATION-primary-scoped
|
|
29
|
+
* execution context resolves its `applicationId` by READING that row). It needs an owner; it never
|
|
30
|
+
* needed a DIFFERENT one. Wildo owning all Wildo applications — including its own — is the coherent
|
|
31
|
+
* reading, and it is what the duplication suggests was intended before the two literals drifted.
|
|
32
|
+
*
|
|
33
|
+
* If a future decision genuinely wants the platform's own application in a separate tenant, that is
|
|
34
|
+
* a SECOND named constant here plus an explicit statement of which consumers must tell them apart —
|
|
35
|
+
* not a second literal at a call site.
|
|
36
|
+
*
|
|
37
|
+
* ## What this does NOT do
|
|
38
|
+
*
|
|
39
|
+
* It does not retrofit an existing platform. Both bootstrap seeding arms look a row up by business
|
|
40
|
+
* key and insert ONLY when absent, and the registration path prefers an existing application's
|
|
41
|
+
* recorded `ownerOrganizationId` over the seeded id — so an installation that already carries two
|
|
42
|
+
* organizations keeps both, with its existing linkage untouched. Only a FRESH platform gets one.
|
|
43
|
+
* Merging the two on an existing installation is a migration with its own decision.
|
|
44
|
+
*/
|
|
45
|
+
export interface WildoOwnerOrganizationIdentity {
|
|
46
|
+
/** Business key. Both provisioning paths upsert the organization by THIS field. */
|
|
47
|
+
readonly slug: string;
|
|
48
|
+
/** Display name written on first seed. */
|
|
49
|
+
readonly name: string;
|
|
50
|
+
}
|
|
51
|
+
export declare const WILDO_OWNER_ORGANIZATION: WildoOwnerOrganizationIdentity;
|
|
52
|
+
//# sourceMappingURL=wildo-owner-organization.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wildo-owner-organization.contracts.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/wildo-owner-organization.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,WAAW,8BAA8B;IAC7C,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,wBAAwB,EAAE,8BAGtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wildo-owner-organization.contracts.js","sourceRoot":"","sources":["../../../../src/bootstrap/wildo-owner-organization.contracts.ts"],"names":[],"mappings":"AAmDA,MAAM,CAAC,MAAM,wBAAwB,GAAmC;IACtE,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;CACd,CAAC","sourcesContent":["/**\n * The ONE identity of the organization that owns Wildo's own applications.\n *\n * ## Why this constant exists\n *\n * This identity used to be hardcoded FOUR times, in two files, as TWO DIFFERENT VALUES — and the\n * result was a platform carrying two organizations, neither of them a customer:\n *\n * | declared in | value |\n * |---|---|\n * | `init-mode-startup.apps-manager.service.ts` (twice) | `wildo-platform` / `Wildo Platform` |\n * | `maintenance/services/app-initialization.service.ts` (twice) | `wildo` / `Wildo` |\n *\n * The two paths provision different things, so ownership split along them. Measured on the dogfood\n * platform (2026-09-01): `wildo-ai-application` — the bootstrap row — was owned by `wildo-platform`,\n * while `wonder-crm`, `wonder-todos` and `secrets-proof` were owned by `wildo`. Worse, OPERATOR\n * REACH followed the same split: the admin seeded by INIT was `ORG_ADMIN` of BOTH organizations,\n * while an admin seeded later by the maintenance path was a member of `wildo` ONLY. Nothing declared\n * that they should differ; it was decided by which code path happened to run.\n *\n * The bootstrap organization is also `ACTIVE` and authority-conferring, so everything that\n * ENUMERATES tenants — an organization switcher, the owner-floor boot report, a cross-tenant audit,\n * a subject-erasure sweep — counted a bootstrap artifact as a real tenant.\n *\n * ## Why ONE organization rather than two declared ones\n *\n * The second organization was never a design. `seedBootstrapApplicationRecord` needs *an* owner for\n * the minimal APPLICATION row it seeds to break a chicken-and-egg (an APPLICATION-primary-scoped\n * execution context resolves its `applicationId` by READING that row). It needs an owner; it never\n * needed a DIFFERENT one. Wildo owning all Wildo applications — including its own — is the coherent\n * reading, and it is what the duplication suggests was intended before the two literals drifted.\n *\n * If a future decision genuinely wants the platform's own application in a separate tenant, that is\n * a SECOND named constant here plus an explicit statement of which consumers must tell them apart —\n * not a second literal at a call site.\n *\n * ## What this does NOT do\n *\n * It does not retrofit an existing platform. Both bootstrap seeding arms look a row up by business\n * key and insert ONLY when absent, and the registration path prefers an existing application's\n * recorded `ownerOrganizationId` over the seeded id — so an installation that already carries two\n * organizations keeps both, with its existing linkage untouched. Only a FRESH platform gets one.\n * Merging the two on an existing installation is a migration with its own decision.\n */\nexport interface WildoOwnerOrganizationIdentity {\n /** Business key. Both provisioning paths upsert the organization by THIS field. */\n readonly slug: string;\n /** Display name written on first seed. */\n readonly name: string;\n}\n\nexport const WILDO_OWNER_ORGANIZATION: WildoOwnerOrganizationIdentity = {\n slug: 'wildo',\n name: 'Wildo',\n};\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './bootstrap/bootstrap.schemas';
|
|
|
11
11
|
export * from './bootstrap/bootstrap.contracts';
|
|
12
12
|
export * from './bootstrap/bootstrap-planner';
|
|
13
13
|
export * from './bootstrap/application-backend-env.contracts';
|
|
14
|
+
export * from './bootstrap/wildo-owner-organization.contracts';
|
|
14
15
|
export * from './bootstrap/application-creation-verification-env.contracts';
|
|
15
16
|
export * from './bootstrap/platform-runtime-env.contracts';
|
|
16
17
|
export * from './bootstrap/runtime-topology.contracts';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAE3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAE3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './bootstrap/bootstrap.schemas.js';
|
|
|
11
11
|
export * from './bootstrap/bootstrap.contracts.js';
|
|
12
12
|
export * from './bootstrap/bootstrap-planner.js';
|
|
13
13
|
export * from './bootstrap/application-backend-env.contracts.js';
|
|
14
|
+
export * from './bootstrap/wildo-owner-organization.contracts.js';
|
|
14
15
|
export * from './bootstrap/application-creation-verification-env.contracts.js';
|
|
15
16
|
export * from './bootstrap/platform-runtime-env.contracts.js';
|
|
16
17
|
export * from './bootstrap/runtime-topology.contracts.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAE3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './project-config';\nexport * from './workspace-scope';\nexport * from './credentials/credential-generator.service';\n\nexport * from './schemas/platform-application-config.schemas';\nexport * from './schemas/platform-application-secrets.schemas';\nexport * from './schemas/platform-config.schemas';\nexport * from './schemas/framework-info.schemas';\nexport * from './schemas/framework-secrets.schemas';\nexport * from './release/framework-release.constants';\nexport * from './bootstrap/bootstrap.schemas';\nexport * from './bootstrap/bootstrap.contracts';\nexport * from './bootstrap/bootstrap-planner';\nexport * from './bootstrap/application-backend-env.contracts';\nexport * from './bootstrap/application-creation-verification-env.contracts';\nexport * from './bootstrap/platform-runtime-env.contracts';\nexport * from './bootstrap/runtime-topology.contracts';\nexport * from './bootstrap/runtime-principal.contracts';\nexport * from './bootstrap/runtime-backing-service-access';\nexport * from './bootstrap/runtime-network-topology';\nexport * from './bootstrap/runtime-network-policy';\nexport * from './bootstrap/runtime-platform-access';\nexport * from './project-config/minion-local-provider-registration';\nexport * from './project-config/shared/minion-resource-access.validation';\nexport * from './project-config/shared/object-storage-session-policy';\nexport * from './lockfile/wildo-saas-lock.shared.schemas';\nexport * from './lockfile/lockfile-io';\nexport * from './lockfile/materialize-infra-section';\nexport * from './lockfile/canonical-json';\nexport * from './registry';\nexport * from './_unimplemented';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAE3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './project-config';\nexport * from './workspace-scope';\nexport * from './credentials/credential-generator.service';\n\nexport * from './schemas/platform-application-config.schemas';\nexport * from './schemas/platform-application-secrets.schemas';\nexport * from './schemas/platform-config.schemas';\nexport * from './schemas/framework-info.schemas';\nexport * from './schemas/framework-secrets.schemas';\nexport * from './release/framework-release.constants';\nexport * from './bootstrap/bootstrap.schemas';\nexport * from './bootstrap/bootstrap.contracts';\nexport * from './bootstrap/bootstrap-planner';\nexport * from './bootstrap/application-backend-env.contracts';\nexport * from './bootstrap/wildo-owner-organization.contracts';\nexport * from './bootstrap/application-creation-verification-env.contracts';\nexport * from './bootstrap/platform-runtime-env.contracts';\nexport * from './bootstrap/runtime-topology.contracts';\nexport * from './bootstrap/runtime-principal.contracts';\nexport * from './bootstrap/runtime-backing-service-access';\nexport * from './bootstrap/runtime-network-topology';\nexport * from './bootstrap/runtime-network-policy';\nexport * from './bootstrap/runtime-platform-access';\nexport * from './project-config/minion-local-provider-registration';\nexport * from './project-config/shared/minion-resource-access.validation';\nexport * from './project-config/shared/object-storage-session-policy';\nexport * from './lockfile/wildo-saas-lock.shared.schemas';\nexport * from './lockfile/lockfile-io';\nexport * from './lockfile/materialize-infra-section';\nexport * from './lockfile/canonical-json';\nexport * from './registry';\nexport * from './_unimplemented';\n"]}
|
|
@@ -20,8 +20,8 @@ export declare const WildoFrameworkReleaseNpmConfigSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type WildoFrameworkReleaseNpmConfig = z.infer<typeof WildoFrameworkReleaseNpmConfigSchema>;
|
|
22
22
|
export declare const WildoFrameworkReleaseDockerConfigSchema: z.ZodObject<{
|
|
23
|
-
registryHost: z.ZodLiteral<"
|
|
24
|
-
namespace: z.ZodLiteral<"
|
|
23
|
+
registryHost: z.ZodLiteral<"docker.io">;
|
|
24
|
+
namespace: z.ZodLiteral<"wildoai">;
|
|
25
25
|
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
26
26
|
imageName: z.ZodString;
|
|
27
27
|
role: z.ZodEnum<typeof WildoFrameworkDockerImageRole>;
|
|
@@ -40,8 +40,8 @@ export declare const WildoFrameworkConfigSchema: z.ZodObject<{
|
|
|
40
40
|
packages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
docker: z.ZodObject<{
|
|
43
|
-
registryHost: z.ZodLiteral<"
|
|
44
|
-
namespace: z.ZodLiteral<"
|
|
43
|
+
registryHost: z.ZodLiteral<"docker.io">;
|
|
44
|
+
namespace: z.ZodLiteral<"wildoai">;
|
|
45
45
|
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
46
46
|
imageName: z.ZodString;
|
|
47
47
|
role: z.ZodEnum<typeof WildoFrameworkDockerImageRole>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MinionPlatformAccessScope } from './shared/minion-platform-access.vocabulary';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, type ApplicationAiUsePosture, type ApplicationClientStorageInventory, type ApplicationOperatorComplianceIdentity, type ApplicationProviderComplianceChoices, type ApplicationRetentionSchedule } from '@wildo-ai/saas-models';
|
|
3
|
+
import { ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, type ApplicationAiUsePosture, type ApplicationClientStorageInventory, type ApplicationOperatingJurisdictions, type ApplicationOperatorComplianceIdentity, type ApplicationProviderComplianceChoices, type ApplicationRetentionSchedule } from '@wildo-ai/saas-models';
|
|
4
4
|
import { RegistryConfigSchema, type RegistryConfig } from '../registry/registry-config.schemas';
|
|
5
5
|
import { AppDataServicesSchema } from './shared/data-services.schemas';
|
|
6
6
|
import { ApplicationModulesSchema } from './shared/application-modules.schemas';
|
|
@@ -351,6 +351,17 @@ export interface WildoSaasConfig {
|
|
|
351
351
|
* notice cannot name who is publishing it — and because a landing REPLACES the document, an
|
|
352
352
|
* operator who answered by editing it lost the answer on the next regeneration.
|
|
353
353
|
*/
|
|
354
|
+
/**
|
|
355
|
+
* WHERE this application operates (issue #229).
|
|
356
|
+
*
|
|
357
|
+
* A SIBLING of `operatorComplianceIdentity`, not a field inside it: where you sell is known long
|
|
358
|
+
* before why you may process, and nesting it would make a jurisdiction unrecordable until the
|
|
359
|
+
* lawful bases were settled.
|
|
360
|
+
*
|
|
361
|
+
* Absent means nobody has answered — never "nowhere". A declared jurisdiction that no registered
|
|
362
|
+
* assurance source reaches is reported as a known unknown rather than passed over.
|
|
363
|
+
*/
|
|
364
|
+
operatingJurisdictions?: ApplicationOperatingJurisdictions;
|
|
354
365
|
operatorComplianceIdentity?: ApplicationOperatorComplianceIdentity;
|
|
355
366
|
/**
|
|
356
367
|
* Per configured provider, who runs it and where it processes (issue #130).
|
|
@@ -392,6 +403,7 @@ export interface WildoSaasConfigInput {
|
|
|
392
403
|
aiUsePosture?: z.input<typeof ApplicationAiUsePostureSchema>;
|
|
393
404
|
/** See `WildoSaasConfigSchema.clientStorage`. */
|
|
394
405
|
clientStorage?: z.input<typeof ApplicationClientStorageInventorySchema>;
|
|
406
|
+
operatingJurisdictions?: z.input<typeof ApplicationOperatingJurisdictionsSchema>;
|
|
395
407
|
operatorComplianceIdentity?: z.input<typeof ApplicationOperatorComplianceIdentitySchema>;
|
|
396
408
|
providerComplianceChoices?: z.input<typeof ApplicationProviderComplianceChoicesSchema>;
|
|
397
409
|
moduleRegistries?: z.input<typeof RegistryConfigSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-saas-config.d.ts","sourceRoot":"","sources":["../../../../src/project-config/define-saas-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,6BAA6B,EAC7B,uCAAuC,EACvC,2CAA2C,EAC3C,0CAA0C,EAC1C,kCAAkC,EAClC,gBAAgB,EAGhB,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAe/B,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EACL,0BAA0B,EAC1B,YAAY,EACZ,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B;;;kBAgBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;GAUG;A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;;;;;GAQG;AACH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"define-saas-config.d.ts","sourceRoot":"","sources":["../../../../src/project-config/define-saas-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,6BAA6B,EAC7B,uCAAuC,EACvC,uCAAuC,EACvC,2CAA2C,EAC3C,0CAA0C,EAC1C,kCAAkC,EAClC,gBAAgB,EAGhB,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAe/B,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EACL,0BAA0B,EAC1B,YAAY,EACZ,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B;;;kBAgBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B;;kBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,M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AO,MAAM,qBAAqB,EAuXjB,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC;AAClE,kDAAkD;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,GAAG,eAAe,CAI9E"}
|
|
@@ -2,7 +2,7 @@ import { ExternalProvider_ExchangeProtocol_Kind } from '@wildo-ai/external-conne
|
|
|
2
2
|
import { MinionPlatformAccessScope } from './shared/minion-platform-access.vocabulary.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { findMinionResourceAccessViolations } from './shared/minion-resource-access.validation.js';
|
|
5
|
-
import { AppFrontendType, ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, EngineCapabilityResolutionMode, getEngineCapabilityResolutionMode, } from '@wildo-ai/saas-models';
|
|
5
|
+
import { AppFrontendType, ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, EngineCapabilityResolutionMode, getEngineCapabilityResolutionMode, } 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
|
|
@@ -356,6 +356,7 @@ export const WildoSaasConfigSchema = z.strictObject({
|
|
|
356
356
|
* empty ARRAY is the different, positive answer — this surface sets nothing of its own.
|
|
357
357
|
*/
|
|
358
358
|
clientStorage: ApplicationClientStorageInventorySchema.optional(),
|
|
359
|
+
operatingJurisdictions: ApplicationOperatingJurisdictionsSchema.optional(),
|
|
359
360
|
operatorComplianceIdentity: ApplicationOperatorComplianceIdentitySchema.optional(),
|
|
360
361
|
providerComplianceChoices: ApplicationProviderComplianceChoicesSchema.optional(),
|
|
361
362
|
/**
|