@almadar/integrations 2.36.0 → 2.37.0

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.
@@ -1,5 +1,5 @@
1
- import { g as IntegrationParams, I as IntegrationCallContext, d as IntegrationFactory } from '../BaseIntegration-BYlbMFlf.js';
2
- import { o as IntegrationName, m as IntegrationActionName, n as IntegrationContracts, e as CredentialStore } from '../store-OiFX0Tkn.js';
1
+ import { g as IntegrationParams, I as IntegrationCallContext, d as IntegrationFactory } from '../BaseIntegration-CWdas-N_.js';
2
+ import { o as IntegrationName, m as IntegrationActionName, n as IntegrationContracts, e as CredentialStore } from '../store-RNvxZO-q.js';
3
3
  import '@almadar/core';
4
4
 
5
5
  /**
@@ -72,20 +72,6 @@ declare class RuntimeIntegrationManager {
72
72
  * the merged env.
73
73
  */
74
74
  private refreshFromStore;
75
- /**
76
- * Wrap `factory.execute` so an unknown/unconfigured service echoes its
77
- * params instead of throwing. This makes the manager safe to install as a
78
- * default `callService` handler (e.g. the playground sidecar) without every
79
- * service being configured. REAL execution errors (API failures, bad
80
- * params, schema violations) still propagate so the circuit's failure
81
- * events fire — only the two "not set up" errors (`Unknown integration`,
82
- * `Integration not configured`) are caught. Subsumes the broader wrapper
83
- * that previously lived inside `configureMockMode`.
84
- *
85
- * In production the fallback is OFF: a missing key must surface as the
86
- * circuit's failure event and a degraded health check, never a fake success.
87
- */
88
- private installNotConfiguredFallback;
89
75
  /**
90
76
  * Configure from environment variables.
91
77
  * In mock mode (USE_MOCK_DATA=true), all services return realistic mock data.
@@ -94,6 +80,12 @@ declare class RuntimeIntegrationManager {
94
80
  * per-tenant resolution); defaults to `process.env`.
95
81
  */
96
82
  configureFromEnv(envOverride?: Record<string, string | undefined>): void;
83
+ /**
84
+ * Every registered service the blocks above did not configure, configured
85
+ * from its declared credentials (`serviceCredentials`) once all its required
86
+ * ones are present: keyless services always, keyed ones only with their keys.
87
+ */
88
+ private configureFromDeclaredCredentials;
97
89
  /**
98
90
  * Configure mock mode: register MockIntegration for all known services
99
91
  * with auto-generated responses from the services registry.