@wildo-ai/platform-config-lib 1.1.3 → 1.1.5

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.
Files changed (113) hide show
  1. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +23 -1
  2. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  3. package/dist/esm/bootstrap/bootstrap.contracts.js +24 -0
  4. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  5. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +150 -1
  6. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  7. package/dist/esm/bootstrap/bootstrap.schemas.js +124 -4
  8. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  9. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +16 -0
  10. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  11. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +28 -0
  12. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  13. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts +29 -0
  14. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
  15. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js +39 -0
  16. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
  17. package/dist/esm/index.d.ts +1 -0
  18. package/dist/esm/index.d.ts.map +1 -1
  19. package/dist/esm/index.js +1 -0
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/lockfile/build-parallelism.d.ts +40 -0
  22. package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -0
  23. package/dist/esm/lockfile/build-parallelism.js +64 -0
  24. package/dist/esm/lockfile/build-parallelism.js.map +1 -0
  25. package/dist/esm/lockfile/materialize-infra-section.d.ts +1 -1
  26. package/dist/esm/lockfile/materialize-infra-section.js +1 -1
  27. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  28. package/dist/esm/project-config/define-infra-env-config.d.ts +899 -15
  29. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  30. package/dist/esm/project-config/define-infra-env-config.js +397 -16
  31. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  32. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  33. package/dist/esm/project-config/define-minion-config.js +1 -2
  34. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  35. package/dist/esm/project-config/define-saas-config.d.ts +90 -25
  36. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  37. package/dist/esm/project-config/define-saas-config.js +165 -12
  38. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  39. package/dist/esm/project-config/hosted-infra-env-config.d.ts +59 -0
  40. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -0
  41. package/dist/esm/project-config/hosted-infra-env-config.js +187 -0
  42. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -0
  43. package/dist/esm/project-config/index.d.ts +3 -0
  44. package/dist/esm/project-config/index.d.ts.map +1 -1
  45. package/dist/esm/project-config/index.js +3 -0
  46. package/dist/esm/project-config/index.js.map +1 -1
  47. package/dist/esm/project-config/loader.d.ts +24 -0
  48. package/dist/esm/project-config/loader.d.ts.map +1 -1
  49. package/dist/esm/project-config/loader.js +114 -1
  50. package/dist/esm/project-config/loader.js.map +1 -1
  51. package/dist/esm/project-config/provider-companion-discovery.d.ts +46 -0
  52. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  53. package/dist/esm/project-config/provider-companion-discovery.js +155 -13
  54. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  55. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +72 -23
  56. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  57. package/dist/esm/project-config/provider-runtime-artifacts.js +190 -17
  58. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  59. package/dist/esm/project-config/shared/auth.schemas.d.ts +14 -35
  60. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  61. package/dist/esm/project-config/shared/auth.schemas.js +14 -35
  62. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
  63. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +37 -7
  64. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  65. package/dist/esm/project-config/shared/backing-services.schemas.js +37 -7
  66. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  67. package/dist/esm/project-config/shared/csp.schemas.d.ts +11 -12
  68. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  69. package/dist/esm/project-config/shared/csp.schemas.js +11 -12
  70. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  71. package/dist/esm/project-config/shared/environment.schemas.d.ts +152 -12
  72. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  73. package/dist/esm/project-config/shared/environment.schemas.js +186 -9
  74. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  75. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +13 -3
  76. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  77. package/dist/esm/project-config/shared/infra-providers.schemas.js +0 -3
  78. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  79. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +140 -34
  80. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  81. package/dist/esm/project-config/shared/minion-resource-access.validation.js +174 -37
  82. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  83. package/dist/esm/project-config/shared/platform-services.schemas.d.ts +50 -0
  84. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  85. package/dist/esm/project-config/shared/platform-services.schemas.js +57 -0
  86. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  87. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +35 -0
  88. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -0
  89. package/dist/esm/project-config/shared/platform-storage.schemas.js +37 -0
  90. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -0
  91. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +81 -0
  92. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -0
  93. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js +74 -0
  94. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -0
  95. package/dist/esm/registry/artifact-domain.schemas.d.ts +1 -1
  96. package/dist/esm/registry/module-manifest.schemas.d.ts +10 -16
  97. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  98. package/dist/esm/registry/module-manifest.schemas.js +14 -20
  99. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  100. package/dist/esm/schemas/framework-secrets.schemas.d.ts +12 -1
  101. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  102. package/dist/esm/schemas/framework-secrets.schemas.js +14 -1
  103. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  104. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +4 -3
  105. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  106. package/dist/esm/workspace-scope/workspace-homes.schemas.js +6 -5
  107. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  108. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +15 -6
  109. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  110. package/dist/esm/workspace-scope/workspace-scope.schemas.js +23 -9
  111. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  112. package/dist/tsconfig.build.tsbuildinfo +1 -1
  113. package/package.json +7 -7
@@ -1,6 +1,6 @@
1
1
  import { MinionPlatformAccessScope } from './shared/minion-platform-access.vocabulary';
2
2
  import { z } from 'zod';
3
- import { ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, type ApplicationAiUsePosture, type ApplicationClientStorageInventory, type ApplicationOperatingJurisdictions, type ApplicationOperatorComplianceIdentity, type ApplicationProviderComplianceChoices, type ApplicationRetentionSchedule, ProviderTier } from '@wildo-ai/saas-models';
3
+ import { ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, ApplicationRiskPostureSchema, EngineCapability, ReviewCadence, type ApplicationAiUsePosture, type ApplicationClientStorageInventory, type ApplicationOperatingJurisdictions, type ApplicationOperatorComplianceIdentity, type ApplicationProviderComplianceChoices, type ApplicationRetentionSchedule, type ApplicationRiskPosture, ProviderTier, ProviderBrowserOperationPoliciesSchema, OrganizationTypesConfigSchema, SystemsOfRecordConfigSchema, type OrganizationTypesConfig, type SystemsOfRecordConfig } 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';
@@ -170,8 +170,10 @@ export type SaasProviderScopeSelection = z.infer<typeof SaasProviderScopeSelecti
170
170
  export declare const SaasProviderSelectionPolicySchema: z.ZodObject<{
171
171
  primary: z.ZodString;
172
172
  /**
173
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
174
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
173
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
174
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
175
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
176
+ * These are NOT a failover list: nothing
175
177
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
176
178
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
177
179
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -204,8 +206,10 @@ declare const SaasProviderRuntimeScopeSchema: z.ZodObject<{
204
206
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
205
207
  primary: z.ZodString;
206
208
  /**
207
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
208
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
209
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
210
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
211
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
212
+ * These are NOT a failover list: nothing
209
213
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
210
214
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
211
215
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -289,8 +293,10 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
289
293
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
290
294
  primary: z.ZodString;
291
295
  /**
292
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
293
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
296
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
297
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
298
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
299
+ * These are NOT a failover list: nothing
294
300
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
295
301
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
296
302
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -323,8 +329,10 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
323
329
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
324
330
  primary: z.ZodString;
325
331
  /**
326
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
327
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
332
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
333
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
334
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
335
+ * These are NOT a failover list: nothing
328
336
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
329
337
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
330
338
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -357,8 +365,10 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
357
365
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
358
366
  primary: z.ZodString;
359
367
  /**
360
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
361
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
368
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
369
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
370
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
371
+ * These are NOT a failover list: nothing
362
372
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
363
373
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
364
374
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -391,8 +401,10 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
391
401
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
392
402
  primary: z.ZodString;
393
403
  /**
394
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
395
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
404
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
405
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
406
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
407
+ * These are NOT a failover list: nothing
396
408
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
397
409
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
398
410
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -425,8 +437,10 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
425
437
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
426
438
  primary: z.ZodString;
427
439
  /**
428
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
429
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
440
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
441
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
442
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
443
+ * These are NOT a failover list: nothing
430
444
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
431
445
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
432
446
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -463,8 +477,10 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
463
477
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
464
478
  primary: z.ZodString;
465
479
  /**
466
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
467
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
480
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
481
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
482
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
483
+ * These are NOT a failover list: nothing
468
484
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
469
485
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
470
486
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -497,8 +513,10 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
497
513
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
498
514
  primary: z.ZodString;
499
515
  /**
500
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
501
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
516
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
517
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
518
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
519
+ * These are NOT a failover list: nothing
502
520
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
503
521
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
504
522
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -531,8 +549,10 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
531
549
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
532
550
  primary: z.ZodString;
533
551
  /**
534
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
535
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
552
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
553
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
554
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
555
+ * These are NOT a failover list: nothing
536
556
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
537
557
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
538
558
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -565,8 +585,10 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
565
585
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
566
586
  primary: z.ZodString;
567
587
  /**
568
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
569
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
588
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
589
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
590
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
591
+ * These are NOT a failover list: nothing
570
592
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
571
593
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
572
594
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -599,8 +621,10 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
599
621
  selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
600
622
  primary: z.ZodString;
601
623
  /**
602
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
603
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
624
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
625
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
626
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
627
+ * These are NOT a failover list: nothing
604
628
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
605
629
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
606
630
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -628,6 +652,19 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
628
652
  delegation: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_DelegationMode>>;
629
653
  }, z.core.$strip>>;
630
654
  }, z.core.$strict>>>;
655
+ /**
656
+ * Which provider operations a signed-in person's browser may trigger, and on whose account (#367).
657
+ * The third of the application's decisions about providers, and the only one that opens a door: an
658
+ * operation absent here is not reachable from a browser at all. `providerRef` → `operationId` → policy;
659
+ * see `ProviderBrowserOperationPolicySchema` for the roles and connection rules.
660
+ */
661
+ browserOperations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
662
+ connections: z.ZodArray<z.ZodObject<{
663
+ ownerScope: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_OwnerScope>;
664
+ delegation: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_DelegationMode>>;
665
+ }, z.core.$strip>>;
666
+ allowedRoles: z.ZodOptional<z.ZodArray<z.ZodString>>;
667
+ }, z.core.$strict>>>>;
631
668
  }, z.core.$strict>>;
632
669
  export type SaasConfigProvidersBlock = z.infer<typeof SaasConfigProvidersBlockSchema>;
633
670
  export type SaasConfigProvidersBlockInput = z.input<typeof SaasConfigProvidersBlockSchema>;
@@ -662,6 +699,9 @@ export type SaasProviderRuntimeScopeInputFromCatalog<TCatalog extends SaasProvid
662
699
  selection?: Partial<Record<EngineCapability, SaasProviderSelectionPolicyInput<keyof TCatalog & string>>>;
663
700
  };
664
701
  export type SaasConfigProvidersBlockInputFromCatalog<TCatalog extends SaasProviderCatalog> = {
702
+ connections?: z.input<typeof SaasProviderConnectionPoliciesSchema>;
703
+ /** Keyed by a catalogued provider ref; see `SaasConfigProvidersBlockSchema.browserOperations`. */
704
+ browserOperations?: Partial<Record<keyof TCatalog & string, z.input<typeof ProviderBrowserOperationPoliciesSchema>[string]>>;
665
705
  scopes: {
666
706
  backend?: SaasProviderRuntimeScopeInputFromCatalog<TCatalog>;
667
707
  companion?: SaasProviderRuntimeScopeInputFromCatalog<TCatalog>;
@@ -688,10 +728,16 @@ export interface WildoSaasConfig {
688
728
  engineCapabilities: EngineCapabilityActivations;
689
729
  providerConfigurations: ProviderConfigurations;
690
730
  providers: SaasConfigProvidersBlock;
731
+ /** See `WildoSaasConfigSchema.organizationTypes`. Required, at least one. */
732
+ organizationTypes: OrganizationTypesConfig;
733
+ /** See `WildoSaasConfigSchema.systemsOfRecord`. */
734
+ systemsOfRecord?: SystemsOfRecordConfig;
691
735
  bootstrap?: AppBootstrap;
692
736
  dataServices: z.infer<typeof AppDataServicesSchema>;
693
737
  /** See `WildoSaasConfigSchema.dataRetention`. Optional and partial: an undeclared class is undecided, never "forever". */
694
738
  dataRetention?: ApplicationRetentionSchedule;
739
+ /** See `WildoSaasConfigSchema.assuranceReviewCadence`. Absent means no committed review schedule, never a default. */
740
+ assuranceReviewCadence?: ReviewCadence;
695
741
  /** See `WildoSaasConfigSchema.aiUsePosture`. An enabled AI capability with no entry is reported, never assumed harmless. */
696
742
  aiUsePosture?: ApplicationAiUsePosture;
697
743
  /** See `WildoSaasConfigSchema.clientStorage`. Keyed by frontend surface; an absent surface is uninventoried, an empty array is "sets nothing". */
@@ -724,6 +770,19 @@ export interface WildoSaasConfig {
724
770
  * third party.
725
771
  */
726
772
  providerComplianceChoices?: ApplicationProviderComplianceChoices;
773
+ /**
774
+ * What the operator DECIDED to do about each derived risk signal (#300 Layer 2).
775
+ *
776
+ * The same possibilities/choice split as `providerComplianceChoices` above, one layer over: the
777
+ * engine derives what is risky, and this is what the operator chose about it. PARTIAL by design —
778
+ * a signal with no entry is reported as undeclared rather than refused, because a compliance
779
+ * workflow may never stand in front of the mechanism, and because silence is not acceptance.
780
+ *
781
+ * A posture of `AVOIDED` is the one a measurement can CONTRADICT, which is the whole reason this
782
+ * is typed configuration rather than prose: declare that an exposure is not taken while the
783
+ * derivation finds it present, and the two statements cannot both be true.
784
+ */
785
+ riskPosture?: ApplicationRiskPosture;
727
786
  moduleRegistries?: RegistryConfig;
728
787
  }
729
788
  export interface WildoSaasConfigInput {
@@ -747,8 +806,12 @@ export interface WildoSaasConfigInput {
747
806
  engineCapabilities?: z.input<typeof EngineCapabilityActivationsSchema>;
748
807
  providerConfigurations?: z.input<typeof ProviderConfigurationsSchema>;
749
808
  providers?: z.input<typeof SaasConfigProvidersBlockSchema>;
809
+ /** See `WildoSaasConfigSchema.organizationTypes`. Required, at least one. */
810
+ organizationTypes: z.input<typeof OrganizationTypesConfigSchema>;
750
811
  bootstrap?: AppBootstrapInput;
751
812
  dataServices: z.input<typeof AppDataServicesSchema>;
813
+ /** See `WildoSaasConfigSchema.systemsOfRecord`. */
814
+ systemsOfRecord?: z.input<typeof SystemsOfRecordConfigSchema>;
752
815
  /** See `WildoSaasConfigSchema.dataRetention`. */
753
816
  dataRetention?: z.input<typeof ApplicationRetentionScheduleSchema>;
754
817
  /** See `WildoSaasConfigSchema.aiUsePosture`. */
@@ -758,6 +821,8 @@ export interface WildoSaasConfigInput {
758
821
  operatingJurisdictions?: z.input<typeof ApplicationOperatingJurisdictionsSchema>;
759
822
  operatorComplianceIdentity?: z.input<typeof ApplicationOperatorComplianceIdentitySchema>;
760
823
  providerComplianceChoices?: z.input<typeof ApplicationProviderComplianceChoicesSchema>;
824
+ /** See `WildoSaasConfigSchema.riskPosture`. */
825
+ riskPosture?: z.input<typeof ApplicationRiskPostureSchema>;
761
826
  moduleRegistries?: z.input<typeof RegistryConfigSchema>;
762
827
  }
763
828
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"define-saas-config.d.ts","sourceRoot":"","sources":["../../../../src/project-config/define-saas-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAEL,6BAA6B,EAC7B,uCAAuC,EACvC,uCAAuC,EACvC,2CAA2C,EAC3C,0CAA0C,EAC1C,kCAAkC,EAClC,gBAAgB,EAIhB,KAAK,uBAAuB,EAE5B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C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shared/minion-platform-access.vocab
2
2
  import { z } from 'zod';
3
3
  import { ExternalProvider_ConnectionShapeSchema } from '@wildo-ai/external-connectors-models';
4
4
  import { findMinionResourceAccessViolations } from './shared/minion-resource-access.validation.js';
5
- import { AppFrontendType, ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, EngineCapability, EngineCapabilityResolutionMode, getEngineCapabilityResolutionMode, PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY, ProviderTier, } from '@wildo-ai/saas-models';
5
+ import { AppFrontendType, ApplicationAiUsePostureSchema, ApplicationClientStorageInventorySchema, ApplicationOperatingJurisdictionsSchema, ApplicationOperatorComplianceIdentitySchema, ApplicationProviderComplianceChoicesSchema, ApplicationRetentionScheduleSchema, ApplicationRiskPostureSchema, EngineCapability, EngineCapabilityResolutionMode, getEngineCapabilityResolutionMode, PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY, ReviewCadence, ProviderTier, ProviderBrowserOperationPoliciesSchema, OrganizationTypesConfigSchema, SystemsOfRecordConfigSchema, OrganizationTypeDerivationOutcome, deriveFirstAdministratorOrganizationType, resolveApplicationOwnerOrganizationType, } from '@wildo-ai/saas-models';
6
6
  import { BUILTIN_PROVIDER_CAPABILITY, BUILTIN_PROVIDER_PROTOCOL, } from '@wildo-ai/saas-models/public-runtime';
7
7
  import { buildMinionServiceName, buildWorkerServiceName, normalizeServiceKeyToDnsName } from '@wildo-ai/platform-core-shared';
8
8
  // Phase 0 of the provider-registration refactor — see
@@ -227,8 +227,10 @@ export const SaasProviderScopeSelectionSchema = z.strictObject({
227
227
  export const SaasProviderSelectionPolicySchema = z.strictObject({
228
228
  primary: z.string().min(1),
229
229
  /**
230
- * Ordered substitutes used when a preceding ref is NOT AVAILABLE at resolution time —
231
- * undeclared in this scope, disabled, or unconfigured. They are NOT a failover list: nothing
230
+ * Ordered substitutes considered after the primary among providers eligible in the runtime scope.
231
+ * Remaining eligible providers follow the policy refs. Resolution does not validate credentials
232
+ * or vendor health, and an ineligible primary does not empty a nonempty eligible set.
233
+ * These are NOT a failover list: nothing
232
234
  * retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
233
235
  * 2026-09-08, because that name promised the behaviour the framework deliberately does not
234
236
  * have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
@@ -298,7 +300,14 @@ export const SaasConfigProvidersBlockSchema = z.strictObject({
298
300
  * connect one — as opposed to `providerConfigurations`, which is an opaque per-provider runtime bag.
299
301
  */
300
302
  connections: SaasProviderConnectionPoliciesSchema,
301
- }).default(() => ({ scopes: {}, connections: {} }));
303
+ /**
304
+ * Which provider operations a signed-in person's browser may trigger, and on whose account (#367).
305
+ * The third of the application's decisions about providers, and the only one that opens a door: an
306
+ * operation absent here is not reachable from a browser at all. `providerRef` → `operationId` → policy;
307
+ * see `ProviderBrowserOperationPolicySchema` for the roles and connection rules.
308
+ */
309
+ browserOperations: ProviderBrowserOperationPoliciesSchema,
310
+ }).default(() => ({ scopes: {}, connections: {}, browserOperations: {} }));
302
311
  export function defineSaaSProviders(providers) {
303
312
  return SaasConfigProvidersBlockSchema.parse(providers);
304
313
  }
@@ -351,19 +360,21 @@ export const WildoSaasConfigSchema = z.strictObject({
351
360
  /**
352
361
  * Long-running "minion" actor hosts (scheduled or always-up).
353
362
  *
354
- * Each entry can declare a `resourceAccess` read/write whitelist. The
355
- * current configuration parser accepts the declaration, but a minion runtime
356
- * does not consume or enforce it yet. Do not rely on this field as an access
357
- * control until the installed runtime exposes that capability.
363
+ * Each entry declares the `resourceAccess` read/write allowlists consumed by
364
+ * the minion runtime's scoped services-registry proxy. Missing lists deny
365
+ * resource calls; unknown declared resource names fail startup. This is
366
+ * runtime containment, separate from the operation's own authorization and
367
+ * the minion's provider and platform-access scopes.
358
368
  */
359
369
  minions: z.record(z.string(), MinionBucketEntrySchema).optional(),
360
370
  /**
361
371
  * HTTP-only "worker" subprocesses (compute-heavy, often Rust/Go).
362
372
  *
363
- * The current configuration parser accepts these declarations, but a worker
364
- * runtime is not available yet. Workers have no `resourceAccess` field
365
- * because they do not receive database access by default; a resource
366
- * whitelist would therefore be misleading.
373
+ * Node workers use `defineWorkerInit` from `@wildo-ai/saas-workers-node-lib`;
374
+ * other languages implement the same HTTP and token-verification contract.
375
+ * Workers have no `resourceAccess` field: they are not backend queue consumers
376
+ * and do not receive application repository access. Pass the data required
377
+ * by their request contract instead of treating them as minions.
367
378
  */
368
379
  workers: z.record(z.string(), AppRefSchema).optional(),
369
380
  engineCapabilities: EngineCapabilityActivationsSchema,
@@ -381,8 +392,40 @@ export const WildoSaasConfigSchema = z.strictObject({
381
392
  * registry facet.
382
393
  */
383
394
  providers: SaasConfigProvidersBlockSchema,
395
+ /**
396
+ * The application's organization types — required, and at least one (#1032, decided 2026-09-14).
397
+ *
398
+ * Authored HERE rather than in `backend-api/src/saas-config.backend.ts`, where it used to live,
399
+ * because the platform needs it and cannot read backend-authored configuration: apps-manager seeds
400
+ * the organization of the application's first administrator, and that organization must carry one
401
+ * of these types. It reaches the platform inside the declaration, like `providers` and
402
+ * `engineCapabilities`, and the backend refuses to author it.
403
+ *
404
+ * Every organization carries a type, and a member of an organization whose type names no entry here
405
+ * cannot sign in — which is why this is not optional.
406
+ */
407
+ organizationTypes: OrganizationTypesConfigSchema,
384
408
  bootstrap: AppBootstrapSchema.optional(),
385
409
  dataServices: AppDataServicesSchema,
410
+ /**
411
+ * The systems of record this application reads its own business rows out of — Odoo, an S/4HANA
412
+ * OData service, a Dynamics deployment — each a NAMED INSTANCE that resources bind by name.
413
+ *
414
+ * Declared HERE, beside `dataServices`, because it answers the same question from the other side:
415
+ * `dataServices` says which stores this application OWNS, and this says which stores it READS and
416
+ * does not own. Both are application-wide operator decisions rather than per-resource authoring.
417
+ *
418
+ * Declaring the block is what ENABLES the external-data lane (#1055 D3); there is no capability
419
+ * flag, because the lane has no meaning without an instance to point at. Each instance's ADDRESS
420
+ * and SECRETS live in the environment (`wildo.infra.<location>.config.ts` and `secrets.json`) under
421
+ * names DERIVED from the instance name — `WILDO_SOR_<NAME>__<SLOT>` — never authored, so renaming an
422
+ * instance renames its variables and `wildo config sync` reports the ones that went missing.
423
+ *
424
+ * Not `providers`, deliberately (#1055 D10). A provider is selected through the capability plane and
425
+ * may carry a person's lent credential; a system of record is a deployment the application reads with
426
+ * its OWN service identity, and nothing serves both.
427
+ */
428
+ systemsOfRecord: SystemsOfRecordConfigSchema.optional(),
386
429
  /**
387
430
  * How long this application keeps each class of data, and why.
388
431
  *
@@ -401,6 +444,30 @@ export const WildoSaasConfigSchema = z.strictObject({
401
444
  * environment still has none of (issue #8) — one declaration answers both instead of two that drift.
402
445
  */
403
446
  dataRetention: ApplicationRetentionScheduleSchema.optional(),
447
+ /**
448
+ * How often this application re-reviews its compliance programme.
449
+ *
450
+ * A COMMITMENT, and that is why it is declared rather than asked. `top_down.compliance-conception`
451
+ * used to elicit a next-review DATE in free text — "answer as an ISO date, after today's" — which is
452
+ * three things wrong at once: a date goes stale the moment it passes, it has to be re-answered on
453
+ * every run, and it is a proxy for the thing actually being promised. The promise is the CADENCE;
454
+ * the date is an output (`deriveNextReviewOn`), computed from the instant the programme was drafted.
455
+ * The general form: a date is a PROXY for "an input may have changed", and where every input is
456
+ * enumerable the trigger is computable and the date is an output, never a question.
457
+ *
458
+ * Optional, and an absent cadence is NOT a default. A programme produced without one is still
459
+ * produced: no obligation carries a next-review date, and the programme states in a stamped limitation
460
+ * that no schedule is committed. Committing to one is a workflow, and a workflow MARKS rather than
461
+ * standing in front of the mechanism. Declaring it here is still the better place than any form: the
462
+ * answer is committed, diffable, and reused by every later run.
463
+ *
464
+ * `AS_NEEDED` is a legitimate value for the vocabulary and schedules nothing, so it produces the same
465
+ * marked programme as no declaration — never a silently chosen far-future date.
466
+ *
467
+ * The vocabulary is `ReviewCadence`, shared with market/roadmap/brand authoring rather than
468
+ * re-declared — one closed vocabulary, one runtime source (CLAUDE.md).
469
+ */
470
+ assuranceReviewCadence: z.enum(ReviewCadence).optional(),
404
471
  /**
405
472
  * Whether each AI capability this application enables DECIDES something about a person, and who
406
473
  * reviews it if so.
@@ -431,6 +498,7 @@ export const WildoSaasConfigSchema = z.strictObject({
431
498
  operatingJurisdictions: ApplicationOperatingJurisdictionsSchema.optional(),
432
499
  operatorComplianceIdentity: ApplicationOperatorComplianceIdentitySchema.optional(),
433
500
  providerComplianceChoices: ApplicationProviderComplianceChoicesSchema.optional(),
501
+ riskPosture: ApplicationRiskPostureSchema.optional(),
434
502
  /**
435
503
  * Module registries the app pulls modules from. Each entry pairs a
436
504
  * stable id (used by lockfile entries + the `--registry <id>` CLI
@@ -458,6 +526,91 @@ export const WildoSaasConfigSchema = z.strictObject({
458
526
  // below guarantees that "the TECH_DOC service folder" and "the
459
527
  // STATIC_WEBSITE service folder" are unambiguous.
460
528
  }).superRefine((config, ctx) => {
529
+ /*
530
+ * The first administrator's organization type must be DERIVABLE, and this is the earliest place to
531
+ * say so. apps-manager derives it at initialization with the same function; refusing here turns a
532
+ * failure midway through provisioning into an authoring error at the moment the file is loaded.
533
+ */
534
+ const firstAdministratorUserTypes = config.bootstrap?.firstAdmin?.userTypes;
535
+ if (firstAdministratorUserTypes !== undefined) {
536
+ const derivation = deriveFirstAdministratorOrganizationType(config.organizationTypes, firstAdministratorUserTypes);
537
+ if (derivation.outcome === OrganizationTypeDerivationOutcome.NONE) {
538
+ ctx.addIssue({
539
+ code: 'custom',
540
+ path: ['bootstrap', 'firstAdmin', 'userTypes'],
541
+ message: `No organization type covers the first administrator's user types (${firstAdministratorUserTypes.join(', ')}). `
542
+ + 'The platform seeds the first administrator into an organization of the type whose `userTypes` include all of '
543
+ + 'them; declare one in `organizationTypes`.',
544
+ });
545
+ }
546
+ else if (derivation.outcome === OrganizationTypeDerivationOutcome.AMBIGUOUS) {
547
+ ctx.addIssue({
548
+ code: 'custom',
549
+ path: ['bootstrap', 'firstAdmin', 'userTypes'],
550
+ message: `Several organization types cover the first administrator's user types (${derivation.candidates.join(', ')}), `
551
+ + 'so the type of the organization the platform seeds for them cannot be derived. Narrow the `userTypes` of all '
552
+ + 'but one of them.',
553
+ });
554
+ }
555
+ /*
556
+ * A declared OWNER type must be able to take the bootstrap organization (#1054).
557
+ *
558
+ * The organization the platform seeds for the first administrator IS the organization that owns
559
+ * the application, so a marked type whose `userTypes` do not cover the administrator's is a
560
+ * declaration that cannot be satisfied. Without this the failure is SILENT rather than loud: the
561
+ * derivation above finds no marked type among the fitting ones, falls through to the unmarked
562
+ * candidates, and seeds the administrator into a customer-shaped tenant — leaving an application
563
+ * that declares an owner type and has no owner organization, with no door that could type one
564
+ * afterwards (`Organization.type` is creation-time identity).
565
+ *
566
+ * Checked here rather than in `OrganizationTypesConfigSchema`, because it is a statement about
567
+ * TWO top-level blocks — `organizationTypes` and `bootstrap` — and the types schema can only see
568
+ * its own.
569
+ */
570
+ const ownerTypeDerivation = resolveApplicationOwnerOrganizationType(config.organizationTypes);
571
+ if (ownerTypeDerivation.outcome === OrganizationTypeDerivationOutcome.DERIVED) {
572
+ const ownerTypeUserTypes = config.organizationTypes?.[ownerTypeDerivation.organizationType]?.userTypes ?? [];
573
+ const uncoveredUserTypes = firstAdministratorUserTypes.filter((userType) => !ownerTypeUserTypes.includes(userType));
574
+ if (uncoveredUserTypes.length > 0) {
575
+ ctx.addIssue({
576
+ code: 'custom',
577
+ path: ['organizationTypes', ownerTypeDerivation.organizationType, 'userTypes'],
578
+ message: `Organization type '${ownerTypeDerivation.organizationType}' declares \`ownsApplication\` but its \`userTypes\` `
579
+ + `do not include ${uncoveredUserTypes.map((userType) => `'${userType}'`).join(', ')}, which the first administrator holds `
580
+ + `(bootstrap.firstAdmin.userTypes: ${firstAdministratorUserTypes.join(', ')}). The organization seeded for the first `
581
+ + 'administrator is the organization that owns the application, so the owner type must grant everything that '
582
+ + 'administrator is. Add the missing user types to it, or move the marker to the type that already covers them.',
583
+ });
584
+ }
585
+ }
586
+ }
587
+ /*
588
+ * A declared system of record needs an organization to belong to (#1055, resting on #1054).
589
+ *
590
+ * Rows read out of a system of record are stamped with the OWNER organization's id, which is what
591
+ * lets the per-row tenant gate pass with no exemption. An application that declares an instance and
592
+ * no `ownsApplication` type has nothing to stamp with, so every read of every bound resource would
593
+ * refuse at request time with `owner_organization_absent` — a runtime failure whose cause is an
594
+ * authoring omission three layers up.
595
+ *
596
+ * Refused here rather than at boot because this is exactly the kind of contradiction one file can
597
+ * see: both blocks are in scope, and turning it into an authoring error means nobody can commit it.
598
+ * The DERIVATION being ambiguous (two marked types) is refused by `OrganizationTypesConfigSchema`
599
+ * itself, so only the NONE outcome is left to answer here.
600
+ */
601
+ if (config.systemsOfRecord !== undefined && Object.keys(config.systemsOfRecord).length > 0) {
602
+ const ownerTypeForSystemsOfRecord = resolveApplicationOwnerOrganizationType(config.organizationTypes);
603
+ if (ownerTypeForSystemsOfRecord.outcome === OrganizationTypeDerivationOutcome.NONE) {
604
+ ctx.addIssue({
605
+ code: 'custom',
606
+ path: ['systemsOfRecord'],
607
+ message: `This application declares ${Object.keys(config.systemsOfRecord).map((name) => `'${name}'`).join(', ')} as a system of record, `
608
+ + 'but no organization type declares `ownsApplication`. Rows read out of a system of record are stamped with the owning '
609
+ + "organization's id — that stamp is what makes them belong to a tenant at all — so without one every read would refuse. "
610
+ + 'Mark the organization type whose organization operates this application.',
611
+ });
612
+ }
613
+ }
461
614
  const availableServiceKeys = new Set(Object.keys(config.services));
462
615
  const frontendServiceKeys = new Set(Object.entries(config.services)
463
616
  .filter(([, definition]) => definition.frontendType !== undefined)