@wildo-ai/platform-config-lib 1.1.2 → 1.1.3
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 +49 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +36 -2
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +2 -3
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +2 -3
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts +0 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.js +0 -2
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts +1 -2
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/config-authoring.entry.js +35 -2
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +0 -20
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +0 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +3 -39
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +2 -2
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +366 -14
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +121 -11
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts +74 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +203 -6
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +41 -15
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +75 -6
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +7 -43
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +13 -30
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts +36 -5
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.js +65 -5
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts +46 -10
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +45 -10
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +8 -6
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +7 -5
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +18 -3
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js +34 -2
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +0 -2
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +0 -2
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts +70 -10
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js +75 -11
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts +15 -15
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js +15 -15
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts +30 -0
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js +31 -0
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +14 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js +2 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- 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 } 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, ProviderTier } 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';
|
|
@@ -149,11 +149,34 @@ export declare const SaasProviderScopeSelectionSchema: z.ZodObject<{
|
|
|
149
149
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
150
150
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
151
151
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
152
|
+
/**
|
|
153
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
154
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
155
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
156
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
157
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
158
|
+
* expectation and the module. Like every other field of this selection it is
|
|
159
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
160
|
+
*/
|
|
161
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
162
|
+
/**
|
|
163
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
164
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
165
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
166
|
+
*/
|
|
167
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
152
168
|
}, z.core.$strict>;
|
|
153
169
|
export type SaasProviderScopeSelection = z.infer<typeof SaasProviderScopeSelectionSchema>;
|
|
154
170
|
export declare const SaasProviderSelectionPolicySchema: z.ZodObject<{
|
|
155
171
|
primary: z.ZodString;
|
|
156
|
-
|
|
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
|
|
175
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
176
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
177
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
178
|
+
*/
|
|
179
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
157
180
|
}, z.core.$strict>;
|
|
158
181
|
export type SaasProviderSelectionPolicy = z.infer<typeof SaasProviderSelectionPolicySchema>;
|
|
159
182
|
declare const SaasProviderRuntimeScopeSchema: z.ZodObject<{
|
|
@@ -161,23 +184,118 @@ declare const SaasProviderRuntimeScopeSchema: z.ZodObject<{
|
|
|
161
184
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
162
185
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
163
186
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
|
+
/**
|
|
188
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
189
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
190
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
191
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
192
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
193
|
+
* expectation and the module. Like every other field of this selection it is
|
|
194
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
195
|
+
*/
|
|
196
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
197
|
+
/**
|
|
198
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
199
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
200
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
201
|
+
*/
|
|
202
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
164
203
|
}, z.core.$strict>>>;
|
|
165
204
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
166
205
|
primary: z.ZodString;
|
|
167
|
-
|
|
206
|
+
/**
|
|
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
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
210
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
211
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
212
|
+
*/
|
|
213
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
168
214
|
}, z.core.$strict>>>;
|
|
169
215
|
}, z.core.$strict>;
|
|
170
216
|
export type SaasProviderRuntimeScope = z.infer<typeof SaasProviderRuntimeScopeSchema>;
|
|
217
|
+
/**
|
|
218
|
+
* WHICH of a provider's admissible connections THIS application permits.
|
|
219
|
+
*
|
|
220
|
+
* The two layers this sits between are the point, and they answer different questions. A provider's
|
|
221
|
+
* catalogue record says what the VENDOR can support — Slack can be installed per workspace, so an
|
|
222
|
+
* organization-owned connection is possible. This says what the APPLICATION offers — a product may
|
|
223
|
+
* decide Slack is a shared team integration and never a personal one, even though the vendor allows
|
|
224
|
+
* both. Collapsing them would make a vendor opening a capability look identical to a product
|
|
225
|
+
* deciding to use it.
|
|
226
|
+
*
|
|
227
|
+
* NARROWING ONLY. An entry here can subtract from what the provider admits and can never add to it:
|
|
228
|
+
* naming a connection the catalogue does not record grants nothing, because the vendor's own support
|
|
229
|
+
* is not something an application can declare into existence. The registry intersects the two, and
|
|
230
|
+
* a policy that intersects to nothing leaves the provider connectable by nobody — which is a
|
|
231
|
+
* legitimate way to switch a provider's connect surface off without removing the provider.
|
|
232
|
+
*
|
|
233
|
+
* Absent means "everything the provider admits", not "nothing". A product that has never thought
|
|
234
|
+
* about this gets the catalogue's answer, which is the conservative one already.
|
|
235
|
+
*/
|
|
236
|
+
export declare const SaasProviderConnectionPolicySchema: z.ZodObject<{
|
|
237
|
+
/**
|
|
238
|
+
* The permitted subset, as owner-scope × delegation pairs.
|
|
239
|
+
*
|
|
240
|
+
* Authored with the SAME vocabulary the catalogue and the runtime use, rather than a local copy:
|
|
241
|
+
* a connection shape means one thing across the provider record, this policy, the connect leg and
|
|
242
|
+
* the resolver, and three of those four would not notice a fourth spelling until a connection
|
|
243
|
+
* silently failed to resolve.
|
|
244
|
+
*/
|
|
245
|
+
admissible: z.ZodArray<z.ZodObject<{
|
|
246
|
+
ownerScope: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_OwnerScope>;
|
|
247
|
+
delegation: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_DelegationMode>>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
export type SaasProviderConnectionPolicy = z.infer<typeof SaasProviderConnectionPolicySchema>;
|
|
251
|
+
export declare const SaasProviderConnectionPoliciesSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
252
|
+
/**
|
|
253
|
+
* The permitted subset, as owner-scope × delegation pairs.
|
|
254
|
+
*
|
|
255
|
+
* Authored with the SAME vocabulary the catalogue and the runtime use, rather than a local copy:
|
|
256
|
+
* a connection shape means one thing across the provider record, this policy, the connect leg and
|
|
257
|
+
* the resolver, and three of those four would not notice a fourth spelling until a connection
|
|
258
|
+
* silently failed to resolve.
|
|
259
|
+
*/
|
|
260
|
+
admissible: z.ZodArray<z.ZodObject<{
|
|
261
|
+
ownerScope: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_OwnerScope>;
|
|
262
|
+
delegation: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_DelegationMode>>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
}, z.core.$strict>>>;
|
|
265
|
+
export type SaasProviderConnectionPolicies = z.infer<typeof SaasProviderConnectionPoliciesSchema>;
|
|
171
266
|
export declare const SaasProvidersScopesSchema: z.ZodObject<{
|
|
172
267
|
backend: z.ZodOptional<z.ZodObject<{
|
|
173
268
|
providers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
174
269
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
175
270
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
176
271
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
272
|
+
/**
|
|
273
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
274
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
275
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
276
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
277
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
278
|
+
* expectation and the module. Like every other field of this selection it is
|
|
279
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
280
|
+
*/
|
|
281
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
282
|
+
/**
|
|
283
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
284
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
285
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
286
|
+
*/
|
|
287
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
177
288
|
}, z.core.$strict>>>;
|
|
178
289
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
179
290
|
primary: z.ZodString;
|
|
180
|
-
|
|
291
|
+
/**
|
|
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
|
|
294
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
295
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
296
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
297
|
+
*/
|
|
298
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
181
299
|
}, z.core.$strict>>>;
|
|
182
300
|
}, z.core.$strict>>;
|
|
183
301
|
companion: z.ZodOptional<z.ZodObject<{
|
|
@@ -185,10 +303,33 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
|
|
|
185
303
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
186
304
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
305
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
306
|
+
/**
|
|
307
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
308
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
309
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
310
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
311
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
312
|
+
* expectation and the module. Like every other field of this selection it is
|
|
313
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
314
|
+
*/
|
|
315
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
316
|
+
/**
|
|
317
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
318
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
319
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
320
|
+
*/
|
|
321
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
188
322
|
}, z.core.$strict>>>;
|
|
189
323
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
190
324
|
primary: z.ZodString;
|
|
191
|
-
|
|
325
|
+
/**
|
|
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
|
|
328
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
329
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
330
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
331
|
+
*/
|
|
332
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
192
333
|
}, z.core.$strict>>>;
|
|
193
334
|
}, z.core.$strict>>;
|
|
194
335
|
frontendServices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -196,10 +337,33 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
|
|
|
196
337
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
197
338
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
198
339
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
340
|
+
/**
|
|
341
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
342
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
343
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
344
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
345
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
346
|
+
* expectation and the module. Like every other field of this selection it is
|
|
347
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
348
|
+
*/
|
|
349
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
350
|
+
/**
|
|
351
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
352
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
353
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
354
|
+
*/
|
|
355
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
199
356
|
}, z.core.$strict>>>;
|
|
200
357
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
201
358
|
primary: z.ZodString;
|
|
202
|
-
|
|
359
|
+
/**
|
|
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
|
|
362
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
363
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
364
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
365
|
+
*/
|
|
366
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
203
367
|
}, z.core.$strict>>>;
|
|
204
368
|
}, z.core.$strict>>>;
|
|
205
369
|
minions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -207,10 +371,33 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
|
|
|
207
371
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
208
372
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
209
373
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
374
|
+
/**
|
|
375
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
376
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
377
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
378
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
379
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
380
|
+
* expectation and the module. Like every other field of this selection it is
|
|
381
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
382
|
+
*/
|
|
383
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
384
|
+
/**
|
|
385
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
386
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
387
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
388
|
+
*/
|
|
389
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
210
390
|
}, z.core.$strict>>>;
|
|
211
391
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
212
392
|
primary: z.ZodString;
|
|
213
|
-
|
|
393
|
+
/**
|
|
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
|
|
396
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
397
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
398
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
399
|
+
*/
|
|
400
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
214
401
|
}, z.core.$strict>>>;
|
|
215
402
|
}, z.core.$strict>>>;
|
|
216
403
|
workers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -218,10 +405,33 @@ export declare const SaasProvidersScopesSchema: z.ZodObject<{
|
|
|
218
405
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
219
406
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
220
407
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
408
|
+
/**
|
|
409
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
410
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
411
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
412
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
413
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
414
|
+
* expectation and the module. Like every other field of this selection it is
|
|
415
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
416
|
+
*/
|
|
417
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
418
|
+
/**
|
|
419
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
420
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
421
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
422
|
+
*/
|
|
423
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
221
424
|
}, z.core.$strict>>>;
|
|
222
425
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
223
426
|
primary: z.ZodString;
|
|
224
|
-
|
|
427
|
+
/**
|
|
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
|
|
430
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
431
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
432
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
433
|
+
*/
|
|
434
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
225
435
|
}, z.core.$strict>>>;
|
|
226
436
|
}, z.core.$strict>>>;
|
|
227
437
|
}, z.core.$strict>;
|
|
@@ -233,10 +443,33 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
|
|
|
233
443
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
234
444
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
235
445
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
446
|
+
/**
|
|
447
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
448
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
449
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
450
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
451
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
452
|
+
* expectation and the module. Like every other field of this selection it is
|
|
453
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
454
|
+
*/
|
|
455
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
456
|
+
/**
|
|
457
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
458
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
459
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
460
|
+
*/
|
|
461
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
236
462
|
}, z.core.$strict>>>;
|
|
237
463
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
238
464
|
primary: z.ZodString;
|
|
239
|
-
|
|
465
|
+
/**
|
|
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
|
|
468
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
469
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
470
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
471
|
+
*/
|
|
472
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
240
473
|
}, z.core.$strict>>>;
|
|
241
474
|
}, z.core.$strict>>;
|
|
242
475
|
companion: z.ZodOptional<z.ZodObject<{
|
|
@@ -244,10 +477,33 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
|
|
|
244
477
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
245
478
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
246
479
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
480
|
+
/**
|
|
481
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
482
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
483
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
484
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
485
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
486
|
+
* expectation and the module. Like every other field of this selection it is
|
|
487
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
488
|
+
*/
|
|
489
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
490
|
+
/**
|
|
491
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
492
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
493
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
494
|
+
*/
|
|
495
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
247
496
|
}, z.core.$strict>>>;
|
|
248
497
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
249
498
|
primary: z.ZodString;
|
|
250
|
-
|
|
499
|
+
/**
|
|
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
|
|
502
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
503
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
504
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
505
|
+
*/
|
|
506
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
251
507
|
}, z.core.$strict>>>;
|
|
252
508
|
}, z.core.$strict>>;
|
|
253
509
|
frontendServices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -255,10 +511,33 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
|
|
|
255
511
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
256
512
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
257
513
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
514
|
+
/**
|
|
515
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
516
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
517
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
518
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
519
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
520
|
+
* expectation and the module. Like every other field of this selection it is
|
|
521
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
522
|
+
*/
|
|
523
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
524
|
+
/**
|
|
525
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
526
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
527
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
528
|
+
*/
|
|
529
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
258
530
|
}, z.core.$strict>>>;
|
|
259
531
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
260
532
|
primary: z.ZodString;
|
|
261
|
-
|
|
533
|
+
/**
|
|
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
|
|
536
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
537
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
538
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
539
|
+
*/
|
|
540
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
262
541
|
}, z.core.$strict>>>;
|
|
263
542
|
}, z.core.$strict>>>;
|
|
264
543
|
minions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -266,10 +545,33 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
|
|
|
266
545
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
267
546
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
268
547
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
548
|
+
/**
|
|
549
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
550
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
551
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
552
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
553
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
554
|
+
* expectation and the module. Like every other field of this selection it is
|
|
555
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
556
|
+
*/
|
|
557
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
558
|
+
/**
|
|
559
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
560
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
561
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
562
|
+
*/
|
|
563
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
269
564
|
}, z.core.$strict>>>;
|
|
270
565
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
271
566
|
primary: z.ZodString;
|
|
272
|
-
|
|
567
|
+
/**
|
|
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
|
|
570
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
571
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
572
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
573
|
+
*/
|
|
574
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
273
575
|
}, z.core.$strict>>>;
|
|
274
576
|
}, z.core.$strict>>>;
|
|
275
577
|
workers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -277,13 +579,55 @@ export declare const SaasConfigProvidersBlockSchema: z.ZodDefault<z.ZodObject<{
|
|
|
277
579
|
engineCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof EngineCapability>>>;
|
|
278
580
|
providerCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
279
581
|
protocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
582
|
+
/**
|
|
583
|
+
* The tier the application EXPECTS this provider to hold (#328). A provider's
|
|
584
|
+
* tier is declared on its module metadata, not here; this is the application
|
|
585
|
+
* stating what it depends on, so that tooling can refuse a CATALOGUE provider
|
|
586
|
+
* quietly filling a slot the application treats as core, and so that the
|
|
587
|
+
* discovery walk (`wildo config sync`) can report a mismatch between the
|
|
588
|
+
* expectation and the module. Like every other field of this selection it is
|
|
589
|
+
* catalog-typed when `defineSaaSProviders<Catalog>` is used.
|
|
590
|
+
*/
|
|
591
|
+
tier: z.ZodOptional<z.ZodEnum<typeof ProviderTier>>;
|
|
592
|
+
/**
|
|
593
|
+
* The vendor grouping the application expects (#328) — the sub-cut case:
|
|
594
|
+
* `microsoft-graph-mail` and `microsoft-teams` both declare `vendor: 'microsoft'`,
|
|
595
|
+
* which is the handle a shared OAuth client or secret is later bound by.
|
|
596
|
+
*/
|
|
597
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
280
598
|
}, z.core.$strict>>>;
|
|
281
599
|
selection: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof EngineCapability> & z.core.$partial, z.ZodObject<{
|
|
282
600
|
primary: z.ZodString;
|
|
283
|
-
|
|
601
|
+
/**
|
|
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
|
|
604
|
+
* retries a second provider when a call to the first one FAILS. Renamed from `fallbacks`
|
|
605
|
+
* 2026-09-08, because that name promised the behaviour the framework deliberately does not
|
|
606
|
+
* have (see `EngineCapabilityResolutionMode.SELECT_ONE`).
|
|
607
|
+
*/
|
|
608
|
+
whenUnavailable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
284
609
|
}, z.core.$strict>>>;
|
|
285
610
|
}, z.core.$strict>>>;
|
|
286
611
|
}, z.core.$strict>;
|
|
612
|
+
/**
|
|
613
|
+
* Per-provider connection policy. Sits beside `scopes` because both are the APPLICATION's decisions
|
|
614
|
+
* about providers — one says which runtimes may reach a provider, the other which owners may
|
|
615
|
+
* connect one — as opposed to `providerConfigurations`, which is an opaque per-provider runtime bag.
|
|
616
|
+
*/
|
|
617
|
+
connections: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
618
|
+
/**
|
|
619
|
+
* The permitted subset, as owner-scope × delegation pairs.
|
|
620
|
+
*
|
|
621
|
+
* Authored with the SAME vocabulary the catalogue and the runtime use, rather than a local copy:
|
|
622
|
+
* a connection shape means one thing across the provider record, this policy, the connect leg and
|
|
623
|
+
* the resolver, and three of those four would not notice a fourth spelling until a connection
|
|
624
|
+
* silently failed to resolve.
|
|
625
|
+
*/
|
|
626
|
+
admissible: z.ZodArray<z.ZodObject<{
|
|
627
|
+
ownerScope: z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_OwnerScope>;
|
|
628
|
+
delegation: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/external-connectors-models").ExternalProvider_Connection_DelegationMode>>;
|
|
629
|
+
}, z.core.$strip>>;
|
|
630
|
+
}, z.core.$strict>>>;
|
|
287
631
|
}, z.core.$strict>>;
|
|
288
632
|
export type SaasConfigProvidersBlock = z.infer<typeof SaasConfigProvidersBlockSchema>;
|
|
289
633
|
export type SaasConfigProvidersBlockInput = z.input<typeof SaasConfigProvidersBlockSchema>;
|
|
@@ -291,17 +635,25 @@ export interface SaasProviderCatalogEntry {
|
|
|
291
635
|
engineCapabilities?: readonly string[];
|
|
292
636
|
providerCapabilities?: readonly string[];
|
|
293
637
|
protocols?: readonly string[];
|
|
638
|
+
/** The tier the catalog records for the provider (#328). */
|
|
639
|
+
tier?: ProviderTier;
|
|
640
|
+
/** The vendor grouping the catalog records for the provider (#328). */
|
|
641
|
+
vendor?: string;
|
|
294
642
|
}
|
|
295
643
|
export type SaasProviderCatalog = Record<string, SaasProviderCatalogEntry>;
|
|
296
644
|
type CatalogFieldValue<TCatalog extends SaasProviderCatalog, TRef extends keyof TCatalog & string, TField extends keyof SaasProviderCatalogEntry> = TCatalog[TRef][TField] extends readonly (infer TValue)[] ? Extract<TValue, string> : never;
|
|
297
645
|
export interface SaasProviderSelectionPolicyInput<TProviderRef extends string = string> {
|
|
298
646
|
primary: TProviderRef;
|
|
299
|
-
|
|
647
|
+
/** Ordered substitutes for an UNAVAILABLE preceding ref. Not failover — see the schema. */
|
|
648
|
+
whenUnavailable?: TProviderRef[];
|
|
300
649
|
}
|
|
301
650
|
export type SaasProviderScopeSelectionInputFromCatalog<TCatalog extends SaasProviderCatalog, TRef extends keyof TCatalog & string> = {
|
|
302
651
|
engineCapabilities?: Array<CatalogFieldValue<TCatalog, TRef, 'engineCapabilities'>>;
|
|
303
652
|
providerCapabilities?: Array<CatalogFieldValue<TCatalog, TRef, 'providerCapabilities'>>;
|
|
304
653
|
protocols?: Array<CatalogFieldValue<TCatalog, TRef, 'protocols'>>;
|
|
654
|
+
/** Must equal the catalog's tier for the ref when the catalog records one. */
|
|
655
|
+
tier?: TCatalog[TRef]['tier'];
|
|
656
|
+
vendor?: TCatalog[TRef]['vendor'];
|
|
305
657
|
};
|
|
306
658
|
export type SaasProviderRuntimeScopeInputFromCatalog<TCatalog extends SaasProviderCatalog> = {
|
|
307
659
|
providers?: Partial<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-saas-config.d.ts","sourceRoot":"","sources":["../../../../src/project-config/define-saas-config.ts"],"names":[],"mappings":"
|
|
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,kCAAk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