@tangle-network/agent-integrations 0.29.0 → 0.31.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.
Files changed (44) hide show
  1. package/dist/bin/tangle-catalog-runtime.js +7 -7
  2. package/dist/catalog.d.ts +2 -2
  3. package/dist/catalog.js +11 -7
  4. package/dist/{chunk-SVQ4PHDZ.js → chunk-CDY2ETYT.js} +2 -2
  5. package/dist/chunk-F4YILONK.js +96875 -0
  6. package/dist/chunk-F4YILONK.js.map +1 -0
  7. package/dist/{chunk-P24T3MLM.js → chunk-JCHD6L3B.js} +2 -2
  8. package/dist/{chunk-TUX6MJJ4.js → chunk-M2RFFAMB.js} +559 -411
  9. package/dist/chunk-M2RFFAMB.js.map +1 -0
  10. package/dist/{chunk-ATYHZXLL.js → chunk-Q5X3QNHR.js} +1 -1
  11. package/dist/chunk-Q5X3QNHR.js.map +1 -0
  12. package/dist/{chunk-YOKNZY2N.js → chunk-S2MVWQYL.js} +2 -2
  13. package/dist/{chunk-4JQ754PA.js → chunk-VVC7U7W7.js} +28 -1
  14. package/dist/{chunk-4JQ754PA.js.map → chunk-VVC7U7W7.js.map} +1 -1
  15. package/dist/connect/index.d.ts +1 -1
  16. package/dist/connect/index.js +2 -2
  17. package/dist/connectors/adapters/index.d.ts +3933 -3
  18. package/dist/connectors/adapters/index.js +940 -4
  19. package/dist/connectors/index.d.ts +2 -2
  20. package/dist/connectors/index.js +940 -4
  21. package/dist/consumer.d.ts +2 -2
  22. package/dist/consumer.js +2 -2
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +955 -9
  25. package/dist/middleware/index.d.ts +1 -1
  26. package/dist/middleware/index.js +2 -2
  27. package/dist/registry.d.ts +200 -47
  28. package/dist/registry.js +9 -7
  29. package/dist/runtime.d.ts +2 -2
  30. package/dist/runtime.js +7 -7
  31. package/dist/specs.d.ts +2 -2
  32. package/dist/specs.js +3 -1
  33. package/dist/tangle-catalog-runtime.d.ts +2 -2
  34. package/dist/tangle-catalog-runtime.js +7 -7
  35. package/dist/{tangle-id-CTU4kGId.d.ts → tangle-id-Dj0ipP4E.d.ts} +8 -1
  36. package/docs/integration-execution-audit.md +1 -1
  37. package/package.json +16 -12
  38. package/dist/chunk-ATYHZXLL.js.map +0 -1
  39. package/dist/chunk-JU25UDN2.js +0 -4260
  40. package/dist/chunk-JU25UDN2.js.map +0 -1
  41. package/dist/chunk-TUX6MJJ4.js.map +0 -1
  42. /package/dist/{chunk-SVQ4PHDZ.js.map → chunk-CDY2ETYT.js.map} +0 -0
  43. /package/dist/{chunk-P24T3MLM.js.map → chunk-JCHD6L3B.js.map} +0 -0
  44. /package/dist/{chunk-YOKNZY2N.js.map → chunk-S2MVWQYL.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { T as TangleIdentityOptions, b as TangleIdentityClient, c as TangleTokenVerifyFailure } from '../tangle-id-CTU4kGId.js';
1
+ import { T as TangleIdentityOptions, b as TangleIdentityClient, c as TangleTokenVerifyFailure } from '../tangle-id-Dj0ipP4E.js';
2
2
 
3
3
  /**
4
4
  * @stable Drop-in request middleware that verifies id.tangle.tools
@@ -3,8 +3,8 @@ import {
3
3
  extractToken,
4
4
  honoTangleAuthMiddleware,
5
5
  requireTangleAuth
6
- } from "../chunk-SVQ4PHDZ.js";
7
- import "../chunk-ATYHZXLL.js";
6
+ } from "../chunk-CDY2ETYT.js";
7
+ import "../chunk-Q5X3QNHR.js";
8
8
  export {
9
9
  expressTangleAuthMiddleware,
10
10
  extractToken,
@@ -1,4 +1,4 @@
1
- import { C as ConnectorAdapter, R as ResolvedDataSource, d as ConnectorCredentials } from './tangle-id-CTU4kGId.js';
1
+ import { C as ConnectorAdapter, R as ResolvedDataSource, d as ConnectorCredentials } from './tangle-id-Dj0ipP4E.js';
2
2
  import './errors-Bg3_rxnQ.js';
3
3
  import './connect/index.js';
4
4
  import './middleware/index.js';
@@ -59,11 +59,145 @@ declare function buildDefaultIntegrationRegistry(options?: {
59
59
  /** @deprecated Use includeTangleCatalog. */
60
60
  includeActivepieces?: boolean;
61
61
  }): IntegrationRegistry;
62
+ /** Per-entry executability classification. Pure metadata — never loads or
63
+ * runs a runtime module. The coverage report consumes this to separate
64
+ * "we can execute this today" from "catalog-only / setup-only". */
65
+ interface IntegrationCatalogExecutability {
66
+ canonicalId: string;
67
+ /** True when the entry resolves to a runnable action: a first-party /
68
+ * sandbox / gateway-executable support tier, or a tangle-catalog entry
69
+ * with a resolvable npm runtime package. */
70
+ executable: boolean;
71
+ supportTier: IntegrationSupportTier;
72
+ authKind: IntegrationConnector['auth'];
73
+ /** Resolvable npm runtime package name when one is registered for this
74
+ * connector in the vendored catalog; undefined for first-party adapters
75
+ * (which execute in-process) and catalog-only entries. */
76
+ runtimePackage?: string;
77
+ actionCount: number;
78
+ triggerCount: number;
79
+ }
80
+ /** Classify every entry in a composed registry by executability + auth kind
81
+ * WITHOUT executing anything. Defaults to {@link buildDefaultIntegrationRegistry}. */
82
+ declare function classifyIntegrationCatalogExecutability(registry?: IntegrationRegistry): IntegrationCatalogExecutability[];
62
83
  declare function composeIntegrationRegistry(sources: IntegrationCatalogSource[], options?: ComposeIntegrationRegistryOptions): IntegrationRegistry;
63
84
  declare function summarizeIntegrationRegistry(registry: IntegrationRegistry): IntegrationRegistrySummary;
64
85
  declare function canonicalConnectorId(id: string, aliases?: Record<string, string>): string;
65
86
  declare function inferIntegrationSupportTier(connector: IntegrationConnector): IntegrationSupportTier;
66
87
 
88
+ interface ConnectorAdapterProviderOptions {
89
+ id?: string;
90
+ kind?: IntegrationProviderKind;
91
+ adapters: ConnectorAdapter[];
92
+ resolveDataSource: (connection: IntegrationConnection) => Promise<ResolvedDataSource> | ResolvedDataSource;
93
+ /** Invoked when an adapter rotates credentials during executeRead /
94
+ * executeMutation (e.g. an OAuth access token refreshed on expiry). The
95
+ * host re-encrypts + persists the rotated envelope so the next expiry
96
+ * does not force a reconnect. Carries the connection so the host can
97
+ * resolve the secretRef. */
98
+ onCredentialsRotated?: (event: {
99
+ connection: IntegrationConnection;
100
+ credentials: ConnectorCredentials;
101
+ }) => Promise<void> | void;
102
+ now?: () => Date;
103
+ }
104
+ declare function createConnectorAdapterProvider(options: ConnectorAdapterProviderOptions): IntegrationProvider;
105
+ declare function adapterManifestsToConnectors(adapters: ConnectorAdapter[], providerId?: string): IntegrationConnector[];
106
+ declare function createConnectorAdapterCatalogSource(options: {
107
+ id?: string;
108
+ providerId?: string;
109
+ adapters: ConnectorAdapter[];
110
+ precedence?: number;
111
+ }): IntegrationCatalogSource;
112
+ declare function manifestToConnector(providerId: string, adapter: ConnectorAdapter): IntegrationConnector;
113
+
114
+ interface IntegrationSecretStore {
115
+ get(ref: SecretRef): Promise<ConnectorCredentials | undefined> | ConnectorCredentials | undefined;
116
+ put(ref: SecretRef, credentials: ConnectorCredentials): Promise<void> | void;
117
+ delete?(ref: SecretRef): Promise<void> | void;
118
+ }
119
+ /** Single-use record stashed at OAuth-start and consumed once at callback to
120
+ * guard against CSRF / replay. The hub injects its own durable
121
+ * implementation (KV/Redis/D1) so the callback can land on any worker. */
122
+ interface IntegrationOAuthState {
123
+ /** Opaque value round-tripped through the provider redirect. */
124
+ state: string;
125
+ /** Provider the auth flow targets. */
126
+ providerId: string;
127
+ /** Connector the user is connecting. */
128
+ connectorId: string;
129
+ /** Owner initiating the flow. */
130
+ owner: IntegrationActor;
131
+ /** Scopes requested at start; verified against the granted scopes on callback. */
132
+ requestedScopes: string[];
133
+ /** Redirect URI used at start; MUST match exactly on callback exchange. */
134
+ redirectUri: string;
135
+ /** PKCE code_verifier, when the connector uses PKCE. */
136
+ codeVerifier?: string;
137
+ /** Absolute expiry (UTC ms since epoch). consume() MUST treat an expired
138
+ * record as a miss. */
139
+ expiresAt: number;
140
+ /** Arbitrary non-secret context the host pinned at start-time. */
141
+ metadata?: Record<string, unknown>;
142
+ }
143
+ /** Outcome of consuming an OAuth state record. Callers MUST inspect `ok`
144
+ * before using `state`; a miss (`unknown`/`expired`) is the CSRF/replay
145
+ * guard firing, not an exception. */
146
+ type IntegrationOAuthStateOutcome = {
147
+ ok: true;
148
+ state: IntegrationOAuthState;
149
+ } | {
150
+ ok: false;
151
+ reason: 'unknown' | 'expired';
152
+ };
153
+ /** Host-injectable store for single-use OAuth-start records. The default is
154
+ * in-memory for local/dev and tests; multi-tenant hubs inject a durable
155
+ * encrypted store so callbacks survive worker hops. consume() MUST be
156
+ * single-use: a second consume of the same state returns `{ ok: false }`. */
157
+ interface IntegrationOAuthStateStore {
158
+ put(state: IntegrationOAuthState): Promise<void> | void;
159
+ consume(state: string): Promise<IntegrationOAuthStateOutcome> | IntegrationOAuthStateOutcome;
160
+ sweep?(now: number): Promise<void> | void;
161
+ }
162
+ interface ConnectionCredentialResolverOptions {
163
+ secrets: IntegrationSecretStore;
164
+ connections?: IntegrationConnectionStore;
165
+ adapters?: ConnectorAdapter[];
166
+ now?: () => Date;
167
+ markConnectionError?: (connection: IntegrationConnection, error: Error) => Promise<void> | void;
168
+ }
169
+ declare class InMemoryIntegrationSecretStore implements IntegrationSecretStore {
170
+ private readonly secrets;
171
+ get(ref: SecretRef): ConnectorCredentials | undefined;
172
+ put(ref: SecretRef, credentials: ConnectorCredentials): void;
173
+ delete(ref: SecretRef): void;
174
+ }
175
+ /** Test/dev double for {@link IntegrationOAuthStateStore}. Production hubs
176
+ * inject a durable implementation; this one keeps records in a Map and
177
+ * enforces the single-use + expiry contract. */
178
+ declare class InMemoryIntegrationOAuthStateStore implements IntegrationOAuthStateStore {
179
+ private readonly states;
180
+ put(state: IntegrationOAuthState): void;
181
+ consume(state: string): IntegrationOAuthStateOutcome;
182
+ sweep(now: number): void;
183
+ }
184
+ declare function createConnectionCredentialResolver(options: ConnectionCredentialResolverOptions): (connection: IntegrationConnection) => Promise<ResolvedDataSource>;
185
+ declare function resolveConnectionCredentials(input: IntegrationConnection, options: ConnectionCredentialResolverOptions): Promise<ConnectorCredentials>;
186
+ type CredentialBackedAdapterProviderOptions = Omit<ConnectorAdapterProviderOptions, 'resolveDataSource' | 'onCredentialsRotated'> & ConnectionCredentialResolverOptions & {
187
+ /** Fired after the provider re-persists rotated credentials to the
188
+ * secret + connection stores. Receives the hub-shaped event including
189
+ * the resolved secretRef so the host can drive external re-encryption
190
+ * or telemetry. */
191
+ onCredentialsRotated?: (event: IntegrationCredentialsRotatedEvent) => Promise<void> | void;
192
+ };
193
+ declare function createCredentialBackedAdapterProvider(options: CredentialBackedAdapterProviderOptions): IntegrationProvider;
194
+ declare function revokeConnection(input: {
195
+ connection: IntegrationConnection;
196
+ connections?: IntegrationConnectionStore;
197
+ secrets?: IntegrationSecretStore;
198
+ now?: () => Date;
199
+ }): Promise<IntegrationConnection>;
200
+
67
201
  type IntegrationAuditEventType = 'connection.created' | 'connection.updated' | 'connection.revoked' | 'grant.created' | 'grant.revoked' | 'capability.issued' | 'action.invoked' | 'action.failed' | 'trigger.subscribed' | 'trigger.received' | 'workflow.installed' | 'approval.requested' | 'approval.resolved' | 'healthcheck.completed';
68
202
  interface IntegrationAuditEvent {
69
203
  id: string;
@@ -248,6 +382,17 @@ declare function parseIntegrationToolName(name: string): {
248
382
  actionId: string;
249
383
  };
250
384
  declare function buildIntegrationToolCatalog(connectors: IntegrationConnector[]): IntegrationToolDefinition[];
385
+ /** Flatten a single (connector, action) pair into the tool descriptor the
386
+ * catalog exposes. The inverse of {@link parseIntegrationToolName} +
387
+ * {@link integrationToolName}: every tool name round-trips back to exactly
388
+ * this shape via {@link describeIntegrationTool}. */
389
+ declare function flattenIntegrationToolDefinition(connector: IntegrationConnector, action: IntegrationConnectorAction): IntegrationToolDefinition;
390
+ /** Resolve a single tool's full descriptor from an opaque
391
+ * `int_<provider>_<connector>_<action>` name against a composed registry.
392
+ * Returns undefined when the name is malformed, the connector is unknown,
393
+ * or the action is not defined by that connector. Powers `/tools/describe`
394
+ * without callers re-implementing parse → byId → action → flatten. */
395
+ declare function describeIntegrationTool(registry: IntegrationRegistry, toolName: string): IntegrationToolDefinition | undefined;
251
396
  declare function buildIntegrationCatalogView(input: {
252
397
  discoveryRegistry: IntegrationRegistry;
253
398
  executableRegistry?: IntegrationRegistry;
@@ -710,51 +855,6 @@ declare function renderApprovalCopy(input: {
710
855
  approvalId?: string;
711
856
  }): ConsentSummary;
712
857
 
713
- interface ConnectorAdapterProviderOptions {
714
- id?: string;
715
- kind?: IntegrationProviderKind;
716
- adapters: ConnectorAdapter[];
717
- resolveDataSource: (connection: IntegrationConnection) => Promise<ResolvedDataSource> | ResolvedDataSource;
718
- now?: () => Date;
719
- }
720
- declare function createConnectorAdapterProvider(options: ConnectorAdapterProviderOptions): IntegrationProvider;
721
- declare function adapterManifestsToConnectors(adapters: ConnectorAdapter[], providerId?: string): IntegrationConnector[];
722
- declare function createConnectorAdapterCatalogSource(options: {
723
- id?: string;
724
- providerId?: string;
725
- adapters: ConnectorAdapter[];
726
- precedence?: number;
727
- }): IntegrationCatalogSource;
728
- declare function manifestToConnector(providerId: string, adapter: ConnectorAdapter): IntegrationConnector;
729
-
730
- interface IntegrationSecretStore {
731
- get(ref: SecretRef): Promise<ConnectorCredentials | undefined> | ConnectorCredentials | undefined;
732
- put(ref: SecretRef, credentials: ConnectorCredentials): Promise<void> | void;
733
- delete?(ref: SecretRef): Promise<void> | void;
734
- }
735
- interface ConnectionCredentialResolverOptions {
736
- secrets: IntegrationSecretStore;
737
- connections?: IntegrationConnectionStore;
738
- adapters?: ConnectorAdapter[];
739
- now?: () => Date;
740
- markConnectionError?: (connection: IntegrationConnection, error: Error) => Promise<void> | void;
741
- }
742
- declare class InMemoryIntegrationSecretStore implements IntegrationSecretStore {
743
- private readonly secrets;
744
- get(ref: SecretRef): ConnectorCredentials | undefined;
745
- put(ref: SecretRef, credentials: ConnectorCredentials): void;
746
- delete(ref: SecretRef): void;
747
- }
748
- declare function createConnectionCredentialResolver(options: ConnectionCredentialResolverOptions): (connection: IntegrationConnection) => Promise<ResolvedDataSource>;
749
- declare function resolveConnectionCredentials(input: IntegrationConnection, options: ConnectionCredentialResolverOptions): Promise<ConnectorCredentials>;
750
- declare function createCredentialBackedAdapterProvider(options: Omit<ConnectorAdapterProviderOptions, 'resolveDataSource'> & ConnectionCredentialResolverOptions): IntegrationProvider;
751
- declare function revokeConnection(input: {
752
- connection: IntegrationConnection;
753
- connections?: IntegrationConnectionStore;
754
- secrets?: IntegrationSecretStore;
755
- now?: () => Date;
756
- }): Promise<IntegrationConnection>;
757
-
758
858
  /**
759
859
  * Workspace capability discovery — answers "what can this workspace do?"
760
860
  * with a typed list of MCP-shape tool descriptors that the agent runtime
@@ -2014,6 +2114,27 @@ declare function getIntegrationFamily(id: IntegrationFamilyId): IntegrationFamil
2014
2114
 
2015
2115
  declare function listIntegrationSpecs(): IntegrationSpec[];
2016
2116
  declare function getIntegrationSpec(kind: string): IntegrationSpec | undefined;
2117
+ /** Auth-driving descriptor the hub uses to start a connect flow per provider
2118
+ * instead of hard-coding scopes/auth kind. Derived from the spec catalog
2119
+ * ({@link getIntegrationSpec}); undefined when the kind is not in the
2120
+ * catalog. */
2121
+ interface ConnectorAuthSpec {
2122
+ kind: string;
2123
+ authKind: 'oauth2' | 'api_key' | 'none' | 'custom';
2124
+ /** Provider scopes to request in the authorization grant. Empty for
2125
+ * api_key / none / custom. */
2126
+ requestedScopes: string[];
2127
+ /** OAuth-only: authorization + token endpoints and PKCE posture. Present
2128
+ * only when authKind === 'oauth2'. */
2129
+ authorizationUrl?: string;
2130
+ tokenUrl?: string;
2131
+ pkce?: 'required' | 'supported' | 'unsupported';
2132
+ redirectUriTemplate?: string;
2133
+ clientIdEnv?: string;
2134
+ clientSecretEnv?: string;
2135
+ extraAuthParams?: Record<string, string>;
2136
+ }
2137
+ declare function resolveConnectorAuthSpec(kind: string): ConnectorAuthSpec | undefined;
2017
2138
  declare function listExecutableIntegrationSpecs(): IntegrationSpec[];
2018
2139
  declare function integrationSpecToConnector(spec: IntegrationSpec, providerId?: string): IntegrationConnector;
2019
2140
 
@@ -2268,8 +2389,34 @@ interface IntegrationHubOptions {
2268
2389
  * provider invocation. Use it to pause writes, deny destructive actions,
2269
2390
  * or apply tenant-specific allow rules. */
2270
2391
  policy?: IntegrationPolicyEngine;
2392
+ /** Host-injectable secret store. Multi-tenant hubs inject a durable
2393
+ * encrypted store; defaults to {@link InMemoryIntegrationSecretStore} for
2394
+ * local/dev and tests. The interface is the contract — the lib never
2395
+ * ships a D1/KV/encryption impl. */
2396
+ secretStore?: IntegrationSecretStore;
2397
+ /** Host-injectable single-use OAuth-state store guarding the start →
2398
+ * callback CSRF boundary. Defaults to
2399
+ * {@link InMemoryIntegrationOAuthStateStore}. */
2400
+ oauthStateStore?: IntegrationOAuthStateStore;
2401
+ /** TTL applied to OAuth-state records the hub stashes at startAuth.
2402
+ * Defaults to 10 minutes. */
2403
+ oauthStateTtlMs?: number;
2404
+ /** Fired whenever a provider surfaces rotated credentials during an
2405
+ * invoke (e.g. an OAuth access token refreshed on expiry). The host
2406
+ * re-encrypts + persists the rotated envelope so the next expiry does
2407
+ * not force a reconnect. The hub also writes the rotated credentials to
2408
+ * {@link secretStore} when the connection carries a secretRef. */
2409
+ credentialsRotated?: (event: IntegrationCredentialsRotatedEvent) => Promise<void> | void;
2271
2410
  now?: () => Date;
2272
2411
  }
2412
+ /** Emitted when a provider rotates credentials mid-invoke. The host
2413
+ * re-persists `credentials` against `secretRef` (when present) so the
2414
+ * refreshed token survives the call. */
2415
+ interface IntegrationCredentialsRotatedEvent {
2416
+ connection: IntegrationConnection;
2417
+ secretRef?: SecretRef;
2418
+ credentials: ConnectorCredentials;
2419
+ }
2273
2420
  interface HttpIntegrationProviderOptions {
2274
2421
  id: string;
2275
2422
  kind?: IntegrationProviderKind;
@@ -2298,6 +2445,12 @@ declare class IntegrationHub {
2298
2445
  private readonly capabilitySecret;
2299
2446
  private readonly guard;
2300
2447
  private readonly policy;
2448
+ /** Host-injected (or in-memory default) secret store. The hub re-persists
2449
+ * rotated credentials here when a connection carries a secretRef. */
2450
+ readonly secretStore: IntegrationSecretStore;
2451
+ private readonly oauthStateStore;
2452
+ private readonly oauthStateTtlMs;
2453
+ private readonly credentialsRotated;
2301
2454
  private readonly now;
2302
2455
  constructor(options: IntegrationHubOptions);
2303
2456
  listConnectors(): Promise<IntegrationConnector[]>;
@@ -2326,4 +2479,4 @@ declare function createHttpIntegrationProvider(options: HttpIntegrationProviderO
2326
2479
  declare function signCapability(capability: IntegrationCapability, secret: string): string;
2327
2480
  declare function verifyCapabilityToken(token: string, secret: string): IntegrationCapability;
2328
2481
 
2329
- export { createTangleCatalogInstalledPackageExecutor as $, type CreateGrantsInput as A, type IntegrationHubAuth as B, type CapabilityBundleResult as C, type ComposeIntegrationRegistryOptions, IntegrationHubClient as D, type IntegrationHubClientOptions as E, IntegrationHubRequestError as F, type MintCapabilityBundleInput as G, createIntegrationHubClient as H, type IntegrationCatalogView as I, type IntegrationCatalogSource, type IntegrationRegistry, type IntegrationRegistryConflict, type IntegrationRegistryEntry, type IntegrationRegistrySourceRef, type IntegrationRegistrySummary, type IntegrationSupportTier, type TangleCatalogAuthResolverOptions as J, type TangleCatalogHttpAuthResolverOptions as K, type ListGrantsInput as L, type McpToolDefinition as M, type TangleCatalogHttpAuthResolverRequest as N, type TangleCatalogInstalledPackageExecutorOptions as O, type TangleCatalogRuntimeHandlerOptions as P, type TangleCatalogRuntimeHttpRequest as Q, type ResolveManifestInput as R, type TangleCatalogRuntimeHttpResponse as S, TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER as T, type TangleCatalogRuntimeInvocation as U, type TangleCatalogRuntimeModuleAction as V, type TangleCatalogRuntimePackageCoverageOptions as W, type TangleCatalogRuntimePackageCoverageRow as X, auditTangleCatalogRuntimePackages as Y, createTangleCatalogCredentialAuthResolver as Z, createTangleCatalogHttpAuthResolver as _, type IntegrationToolDefinition as a, type CanonicalLaunchConnectorOptions as a$, createTangleCatalogRuntimeHandler as a0, signTangleCatalogRuntimeRequest as a1, tangleCatalogAuthValue as a2, verifyTangleCatalogRuntimeSignature as a3, type ApiKeyAuthSpec as a4, type ConsoleStep as a5, type CredentialFieldSpec as a6, type CredentialValidationInput as a7, type CredentialValidationResult as a8, type CustomAuthSpec as a9, consoleStepsToText as aA, getIntegrationFamily as aB, getIntegrationSpec as aC, integrationSpecToConnector as aD, listExecutableIntegrationSpecs as aE, listIntegrationSpecs as aF, renderAgentToolDescription as aG, renderConsoleSteps as aH, renderRunbookMarkdown as aI, specAuthToConnectorAuth as aJ, validateCredentialFormat as aK, validateCredentialSet as aL, validateIntegrationSpec as aM, ACTIVEPIECES_OVERRIDES as aN, ACTIVEPIECES_PUBLIC_CATALOG_URL as aO, ACTIVEPIECES_RUNTIME_SIGNATURE_HEADER as aP, type ActivepiecesCatalogAuthField as aQ, type ActivepiecesCatalogEntry as aR, type ActivepiecesExecutorInvocation as aS, type ActivepiecesExecutorProviderOptions as aT, type ActivepiecesHttpExecutorOptions as aU, type ActivepiecesPieceOverride as aV, type ActivepiecesRuntimeRequest as aW, ApprovalBackedPolicyEngine as aX, type ApprovalBackedPolicyOptions as aY, CANONICAL_INTEGRATION_ACTIONS as aZ, type CanonicalIntegrationActionId as a_, type HealthcheckPlan as aa, type HealthcheckSpec as ab, type HmacAuthSpec as ac, INTEGRATION_FAMILIES as ad, type IntegrationAuthMode as ae, type IntegrationAuthSpec as af, type IntegrationFamilyId as ag, type IntegrationFamilySpec as ah, type IntegrationLifecycleSpec as ai, type IntegrationPlannerHints as aj, type IntegrationSetupSpec as ak, type IntegrationSpec as al, type IntegrationSpecStatus as am, type IntegrationSpecValidationIssue as an, type IntegrationSpecValidationResult as ao, type NoneAuthSpec as ap, type NormalizedPermission as aq, type OAuth2AuthSpec as ar, type PermissionDescriptor as as, type PostSetupCheck as at, type Quirk as au, type RenderSpecOptions as av, type RenderedConsoleStep as aw, type ScopeDescriptor as ax, assertValidIntegrationSpec as ay, buildHealthcheckPlan as az, type IntegrationToolSearchFilters as b, type IntegrationHealthcheckStore as b$, type CatalogExecutorInvocation as b0, type CatalogExecutorProviderOptions as b1, type CompleteAuthRequest as b2, type ConnectionCredentialResolverOptions as b3, type ConnectorAdapterProviderOptions as b4, type ConsentSummary as b5, DEFAULT_INTEGRATION_BRIDGE_ENV as b6, DefaultIntegrationActionGuard as b7, type DiscoverWorkspaceCapabilitiesInput as b8, type GatewayCatalogAction as b9, type IntegrationApprovalStatus as bA, type IntegrationApprovalStore as bB, type IntegrationAuditEvent as bC, type IntegrationAuditEventType as bD, type IntegrationAuditFilter as bE, type IntegrationAuditSink as bF, type IntegrationAuditStore as bG, type IntegrationBridgePayload as bH, type IntegrationBridgeToolBinding as bI, type IntegrationCapability as bJ, type IntegrationCatalogFreshnessOptions as bK, type IntegrationCatalogFreshnessResult as bL, type IntegrationConnection as bM, type IntegrationConnectionStore as bN, type IntegrationConnector as bO, type IntegrationConnectorAction as bP, type IntegrationConnectorCategory as bQ, type IntegrationConnectorTrigger as bR, type IntegrationCoveragePriority as bS, type IntegrationCoverageSpec as bT, type IntegrationDataClass as bU, IntegrationError as bV, type IntegrationEventStore as bW, type IntegrationGuardContext as bX, type IntegrationHealthcheckCheck as bY, type IntegrationHealthcheckResult as bZ, type IntegrationHealthcheckStatus as b_, type GatewayCatalogEntry as ba, type GatewayCatalogProviderOptions as bb, type GatewayCatalogTrigger as bc, type GraphqlOperationSpec as bd, type HttpIntegrationProviderOptions as be, type ImportCatalogOptions as bf, InMemoryConnectionStore as bg, InMemoryIntegrationApprovalStore as bh, InMemoryIntegrationAuditStore as bi, InMemoryIntegrationEventStore as bj, InMemoryIntegrationHealthcheckStore as bk, InMemoryIntegrationIdempotencyStore as bl, InMemoryIntegrationSecretStore as bm, InMemoryIntegrationWorkflowStore as bn, type InferIntegrationRequirementsOptions as bo, type InstalledIntegrationWorkflow as bp, type IntegrationActionGuard as bq, type IntegrationActionPack as br, type IntegrationActionRequest as bs, type IntegrationActionResult as bt, type IntegrationActionRisk as bu, buildDefaultIntegrationRegistry, type IntegrationActor as bv, type IntegrationApprovalFilter as bw, type IntegrationApprovalRecord as bx, type IntegrationApprovalRequest as by, type IntegrationApprovalResolution as bz, type IntegrationToolSearchResult as c, type TangleIntegrationCatalogFreshnessOptions as c$, IntegrationHub as c0, type IntegrationHubOptions as c1, type IntegrationIdempotencyRecord as c2, type IntegrationIdempotencyStore as c3, type IntegrationInvocationEnvelope as c4, type IntegrationInvocationEnvelopeValidationOptions as c5, type IntegrationPolicyDecision as c6, type IntegrationPolicyEffect as c7, type IntegrationPolicyEngine as c8, type IntegrationPolicyRule as c9, type OpenApiOperation as cA, PROVIDER_PASSTHROUGH_ACTION as cB, type PlatformIntegrationPolicyPresetOptions as cC, type ProviderHttpRequestInput as cD, type ProviderPassthroughPolicy as cE, type RenderConsentOptions as cF, type SecretRef as cG, type StartAuthRequest as cH, type StartAuthResult as cI, type StartedTangleCatalogRuntimeNodeServer as cJ, StaticIntegrationPolicyEngine as cK, type StaticIntegrationPolicyOptions as cL, type StoredIntegrationEvent as cM, TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID as cN, TANGLE_INTEGRATIONS_CATALOG_SOURCE as cO, type TangleCatalogExecutorInvocation as cP, type TangleCatalogExecutorProviderOptions as cQ, type TangleCatalogHttpExecutorInvocation as cR, type TangleCatalogHttpExecutorOptions as cS, type TangleCatalogRuntimeActionRequest as cT, type TangleCatalogRuntimeNodeServerOptions as cU, type TangleCatalogRuntimePackageManifest as cV, type TangleCatalogRuntimePackageManifestOptions as cW, type TangleCatalogRuntimePiece as cX, type TangleCatalogRuntimeRequest as cY, type TangleCatalogTriggerInvocation as cZ, type TangleIntegrationCatalogEntry as c_, type IntegrationProvider as ca, canonicalConnectorId, type IntegrationProviderKind as cb, type IntegrationRateLimitDecision as cc, type IntegrationRateLimiter as cd, IntegrationSandboxHost as ce, type IntegrationSandboxHostHub as cf, type IntegrationSandboxHostOptions as cg, type IntegrationSecretStore as ch, type IntegrationTriggerEvent as ci, type IntegrationTriggerSubscription as cj, type IntegrationWebhookReceiverResult as ck, type IntegrationWorkflowDefinition as cl, IntegrationWorkflowRuntime as cm, type IntegrationWorkflowRuntimeHub as cn, type IntegrationWorkflowRuntimeOptions as co, composeIntegrationRegistry, type IntegrationWorkflowStore as cp, type InvokeWithCapabilityRequest as cq, type IssueCapabilityRequest as cr, type IssuedIntegrationCapability as cs, type ManifestValidationIssue as ct, type ManifestValidationResult as cu, type McpCatalog as cv, type McpCatalogTool as cw, type MissingRequirementExplanation as cx, type NormalizedIntegrationResult as cy, type OpenApiDocument as cz, buildIntegrationCatalogView as d, importOpenApiConnector as d$, type TangleIntegrationCatalogFreshnessResult as d0, type TangleIntegrationContract as d1, type TangleIntegrationContractStatus as d2, type TangleIntegrationImplementationKind as d3, type TangleIntegrationInvokeInput as d4, type TangleIntegrationInvokeResult as d5, TangleIntegrationsClient as d6, type TangleIntegrationsClientOptions as d7, type WorkspaceCapability as d8, type WorkspaceCapabilityDiscovery as d9, createConnectorAdapterCatalogSource as dA, createConnectorAdapterProvider as dB, createCredentialBackedAdapterProvider as dC, createDefaultIntegrationActionGuard as dD, createDefaultIntegrationPolicyEngine as dE, createGatewayCatalogProvider as dF, createHttpIntegrationProvider as dG, createIntegrationAuditEvent as dH, createIntegrationWorkflowRuntime as dI, createMockIntegrationProvider as dJ, createPlatformIntegrationPolicyPreset as dK, createTangleCatalogExecutorProvider as dL, createTangleCatalogHttpExecutor as dM, createTangleCatalogRuntimeNodeRequestListener as dN, createTangleIntegrationsClient as dO, decodeIntegrationBridgePayload as dP, discoverWorkspaceCapabilities as dQ, dispatchIntegrationInvocation as dR, encodeIntegrationBridgePayload as dS, explainMissingRequirements as dT, extractActivepiecesPublicPieceCount as dU, extractExternalCatalogPublicCount as dV, filterDiscoveryByWorkspaceScopes as dW, getActivepiecesOverride as dX, healthcheckRequest as dY, importGraphqlConnector as dZ, importMcpConnector as d_, type WorkspaceToolSchema as da, type WorkspaceTrigger as db, adapterManifestsToConnectors as dc, assertValidIntegrationManifest as dd, auditIntegrationCatalogFreshness as de, auditTangleIntegrationCatalogFreshness as df, buildActivepiecesConnectors as dg, buildActivepiecesRuntimeRequest as dh, buildApprovalRequest as di, buildCanonicalLaunchConnectors as dj, buildIntegrationBridgeEnvironment as dk, buildIntegrationBridgePayload as dl, buildIntegrationCoverageConnectors as dm, buildIntegrationInvocationEnvelope as dn, buildTangleCatalogRuntimePackageManifest as dp, buildTangleCatalogRuntimeRequest as dq, buildTangleIntegrationCatalogConnectors as dr, calendarExercisePlannerManifest as ds, canonicalActionConnectorId as dt, createActivepiecesExecutorProvider as du, createActivepiecesHttpExecutor as dv, createApprovalBackedPolicyEngine as dw, createAuditingActionGuard as dx, createCatalogExecutorProvider as dy, createConnectionCredentialResolver as dz, buildIntegrationToolCatalog as e, inferIntegrationManifestFromTools as e0, integrationCoverageChecklistMarkdown as e1, invocationRequestFromEnvelope as e2, listActivepiecesCatalogEntries as e3, listIntegrationCoverageSpecs as e4, listTangleIntegrationCatalogEntries as e5, listTangleIntegrationCatalogRuntimePackages as e6, listTangleIntegrationContracts as e7, manifestToConnector as e8, normalizeGatewayCatalog as e9, normalizeIntegrationResult as ea, parseIntegrationBridgeEnvironment as eb, receiveIntegrationWebhook as ec, redactApprovalRequest as ed, redactCapability as ee, redactIntegrationBridgePayload as ef, redactInvocationEnvelope as eg, renderApprovalCopy as eh, renderConsentSummary as ei, renderTangleCatalogRuntimePnpmAddCommand as ej, resolveConnectionCredentials as ek, resolveIntegrationApproval as el, revokeConnection as em, runIntegrationHealthcheck as en, runIntegrationHealthchecks as eo, sanitizeAuditConnection as ep, sanitizeConnection as eq, signActivepiecesRuntimeRequest as er, signCapability as es, startTangleCatalogRuntimeNodeServer as et, storedEventToTriggerEvent as eu, validateIntegrationInvocationEnvelope as ev, validateIntegrationManifest as ew, validateProviderPassthroughRequest as ex, verifyActivepiecesRuntimeSignature as ey, verifyCapabilityToken as ez, InMemoryIntegrationGrantStore as f, type IntegrationCapabilityBinding as g, type IntegrationGrant as h, integrationToolName as i, inferIntegrationSupportTier, type IntegrationGrantStore as j, type IntegrationManifest as k, type IntegrationManifestResolution as l, type IntegrationRequirement as m, type IntegrationRequirementMode as n, type IntegrationRequirementResolution as o, parseIntegrationToolName as p, type IntegrationRequirementStatus as q, IntegrationRuntime as r, searchIntegrationTools as s, summarizeIntegrationRegistry, toMcpTools as t, type IntegrationRuntimeHub as u, type IntegrationRuntimeOptions as v, type IntegrationSandboxBundle as w, createIntegrationRuntime as x, type CheckConnectorInput as y, type CheckConnectorResult as z };
2482
+ export { createTangleCatalogCredentialAuthResolver as $, type CheckConnectorInput as A, type CheckConnectorResult as B, type CapabilityBundleResult as C, type ComposeIntegrationRegistryOptions, type CreateGrantsInput as D, type IntegrationHubAuth as E, IntegrationHubClient as F, type IntegrationHubClientOptions as G, IntegrationHubRequestError as H, type IntegrationCatalogView as I, type IntegrationCatalogExecutability, type IntegrationCatalogSource, type IntegrationRegistry, type IntegrationRegistryConflict, type IntegrationRegistryEntry, type IntegrationRegistrySourceRef, type IntegrationRegistrySummary, type IntegrationSupportTier, type MintCapabilityBundleInput as J, createIntegrationHubClient as K, type ListGrantsInput as L, type McpToolDefinition as M, type TangleCatalogAuthResolverOptions as N, type TangleCatalogHttpAuthResolverOptions as O, type TangleCatalogHttpAuthResolverRequest as P, type TangleCatalogInstalledPackageExecutorOptions as Q, type ResolveManifestInput as R, type TangleCatalogRuntimeHandlerOptions as S, TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER as T, type TangleCatalogRuntimeHttpRequest as U, type TangleCatalogRuntimeHttpResponse as V, type TangleCatalogRuntimeInvocation as W, type TangleCatalogRuntimeModuleAction as X, type TangleCatalogRuntimePackageCoverageOptions as Y, type TangleCatalogRuntimePackageCoverageRow as Z, auditTangleCatalogRuntimePackages as _, type IntegrationToolDefinition as a, ApprovalBackedPolicyEngine as a$, createTangleCatalogHttpAuthResolver as a0, createTangleCatalogInstalledPackageExecutor as a1, createTangleCatalogRuntimeHandler as a2, signTangleCatalogRuntimeRequest as a3, tangleCatalogAuthValue as a4, verifyTangleCatalogRuntimeSignature as a5, type ApiKeyAuthSpec as a6, type ConnectorAuthSpec as a7, type ConsoleStep as a8, type CredentialFieldSpec as a9, type ScopeDescriptor as aA, assertValidIntegrationSpec as aB, buildHealthcheckPlan as aC, consoleStepsToText as aD, getIntegrationFamily as aE, getIntegrationSpec as aF, integrationSpecToConnector as aG, listExecutableIntegrationSpecs as aH, listIntegrationSpecs as aI, renderAgentToolDescription as aJ, renderConsoleSteps as aK, renderRunbookMarkdown as aL, resolveConnectorAuthSpec as aM, specAuthToConnectorAuth as aN, validateCredentialFormat as aO, validateCredentialSet as aP, validateIntegrationSpec as aQ, ACTIVEPIECES_OVERRIDES as aR, ACTIVEPIECES_PUBLIC_CATALOG_URL as aS, ACTIVEPIECES_RUNTIME_SIGNATURE_HEADER as aT, type ActivepiecesCatalogAuthField as aU, type ActivepiecesCatalogEntry as aV, type ActivepiecesExecutorInvocation as aW, type ActivepiecesExecutorProviderOptions as aX, type ActivepiecesHttpExecutorOptions as aY, type ActivepiecesPieceOverride as aZ, type ActivepiecesRuntimeRequest as a_, type CredentialValidationInput as aa, type CredentialValidationResult as ab, type CustomAuthSpec as ac, type HealthcheckPlan as ad, type HealthcheckSpec as ae, type HmacAuthSpec as af, INTEGRATION_FAMILIES as ag, type IntegrationAuthMode as ah, type IntegrationAuthSpec as ai, type IntegrationFamilyId as aj, type IntegrationFamilySpec as ak, type IntegrationLifecycleSpec as al, type IntegrationPlannerHints as am, type IntegrationSetupSpec as an, type IntegrationSpec as ao, type IntegrationSpecStatus as ap, type IntegrationSpecValidationIssue as aq, type IntegrationSpecValidationResult as ar, type NoneAuthSpec as as, type NormalizedPermission as at, type OAuth2AuthSpec as au, type PermissionDescriptor as av, type PostSetupCheck as aw, type Quirk as ax, type RenderSpecOptions as ay, type RenderedConsoleStep as az, type IntegrationToolSearchFilters as b, type IntegrationDataClass as b$, type ApprovalBackedPolicyOptions as b0, CANONICAL_INTEGRATION_ACTIONS as b1, type CanonicalIntegrationActionId as b2, type CanonicalLaunchConnectorOptions as b3, type CatalogExecutorInvocation as b4, type CatalogExecutorProviderOptions as b5, type CompleteAuthRequest as b6, type ConnectionCredentialResolverOptions as b7, type ConnectorAdapterProviderOptions as b8, type ConsentSummary as b9, type IntegrationActionRisk as bA, type IntegrationActor as bB, type IntegrationApprovalFilter as bC, type IntegrationApprovalRecord as bD, type IntegrationApprovalRequest as bE, type IntegrationApprovalResolution as bF, type IntegrationApprovalStatus as bG, type IntegrationApprovalStore as bH, type IntegrationAuditEvent as bI, type IntegrationAuditEventType as bJ, type IntegrationAuditFilter as bK, type IntegrationAuditSink as bL, type IntegrationAuditStore as bM, type IntegrationBridgePayload as bN, type IntegrationBridgeToolBinding as bO, type IntegrationCapability as bP, type IntegrationCatalogFreshnessOptions as bQ, type IntegrationCatalogFreshnessResult as bR, type IntegrationConnection as bS, type IntegrationConnectionStore as bT, type IntegrationConnector as bU, type IntegrationConnectorAction as bV, type IntegrationConnectorCategory as bW, type IntegrationConnectorTrigger as bX, type IntegrationCoveragePriority as bY, type IntegrationCoverageSpec as bZ, type IntegrationCredentialsRotatedEvent as b_, type CredentialBackedAdapterProviderOptions as ba, DEFAULT_INTEGRATION_BRIDGE_ENV as bb, DefaultIntegrationActionGuard as bc, type DiscoverWorkspaceCapabilitiesInput as bd, type GatewayCatalogAction as be, type GatewayCatalogEntry as bf, type GatewayCatalogProviderOptions as bg, type GatewayCatalogTrigger as bh, type GraphqlOperationSpec as bi, type HttpIntegrationProviderOptions as bj, type ImportCatalogOptions as bk, InMemoryConnectionStore as bl, InMemoryIntegrationApprovalStore as bm, InMemoryIntegrationAuditStore as bn, InMemoryIntegrationEventStore as bo, InMemoryIntegrationHealthcheckStore as bp, InMemoryIntegrationIdempotencyStore as bq, InMemoryIntegrationOAuthStateStore as br, InMemoryIntegrationSecretStore as bs, InMemoryIntegrationWorkflowStore as bt, type InferIntegrationRequirementsOptions as bu, buildDefaultIntegrationRegistry, type InstalledIntegrationWorkflow as bv, type IntegrationActionGuard as bw, type IntegrationActionPack as bx, type IntegrationActionRequest as by, type IntegrationActionResult as bz, type IntegrationToolSearchResult as c, type TangleCatalogHttpExecutorInvocation as c$, IntegrationError as c0, type IntegrationEventStore as c1, type IntegrationGuardContext as c2, type IntegrationHealthcheckCheck as c3, type IntegrationHealthcheckResult as c4, type IntegrationHealthcheckStatus as c5, type IntegrationHealthcheckStore as c6, IntegrationHub as c7, type IntegrationHubOptions as c8, type IntegrationIdempotencyRecord as c9, type InvokeWithCapabilityRequest as cA, type IssueCapabilityRequest as cB, type IssuedIntegrationCapability as cC, type ManifestValidationIssue as cD, type ManifestValidationResult as cE, type McpCatalog as cF, type McpCatalogTool as cG, type MissingRequirementExplanation as cH, type NormalizedIntegrationResult as cI, type OpenApiDocument as cJ, type OpenApiOperation as cK, PROVIDER_PASSTHROUGH_ACTION as cL, type PlatformIntegrationPolicyPresetOptions as cM, type ProviderHttpRequestInput as cN, type ProviderPassthroughPolicy as cO, type RenderConsentOptions as cP, type SecretRef as cQ, type StartAuthRequest as cR, type StartAuthResult as cS, type StartedTangleCatalogRuntimeNodeServer as cT, StaticIntegrationPolicyEngine as cU, type StaticIntegrationPolicyOptions as cV, type StoredIntegrationEvent as cW, TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID as cX, TANGLE_INTEGRATIONS_CATALOG_SOURCE as cY, type TangleCatalogExecutorInvocation as cZ, type TangleCatalogExecutorProviderOptions as c_, type IntegrationIdempotencyStore as ca, canonicalConnectorId, type IntegrationInvocationEnvelope as cb, type IntegrationInvocationEnvelopeValidationOptions as cc, type IntegrationOAuthState as cd, type IntegrationOAuthStateOutcome as ce, type IntegrationOAuthStateStore as cf, type IntegrationPolicyDecision as cg, type IntegrationPolicyEffect as ch, type IntegrationPolicyEngine as ci, type IntegrationPolicyRule as cj, type IntegrationProvider as ck, type IntegrationProviderKind as cl, classifyIntegrationCatalogExecutability, type IntegrationRateLimitDecision as cm, type IntegrationRateLimiter as cn, IntegrationSandboxHost as co, composeIntegrationRegistry, type IntegrationSandboxHostHub as cp, type IntegrationSandboxHostOptions as cq, type IntegrationSecretStore as cr, type IntegrationTriggerEvent as cs, type IntegrationTriggerSubscription as ct, type IntegrationWebhookReceiverResult as cu, type IntegrationWorkflowDefinition as cv, IntegrationWorkflowRuntime as cw, type IntegrationWorkflowRuntimeHub as cx, type IntegrationWorkflowRuntimeOptions as cy, type IntegrationWorkflowStore as cz, buildIntegrationCatalogView as d, dispatchIntegrationInvocation as d$, type TangleCatalogHttpExecutorOptions as d0, type TangleCatalogRuntimeActionRequest as d1, type TangleCatalogRuntimeNodeServerOptions as d2, type TangleCatalogRuntimePackageManifest as d3, type TangleCatalogRuntimePackageManifestOptions as d4, type TangleCatalogRuntimePiece as d5, type TangleCatalogRuntimeRequest as d6, type TangleCatalogTriggerInvocation as d7, type TangleIntegrationCatalogEntry as d8, type TangleIntegrationCatalogFreshnessOptions as d9, buildTangleCatalogRuntimeRequest as dA, buildTangleIntegrationCatalogConnectors as dB, calendarExercisePlannerManifest as dC, canonicalActionConnectorId as dD, createActivepiecesExecutorProvider as dE, createActivepiecesHttpExecutor as dF, createApprovalBackedPolicyEngine as dG, createAuditingActionGuard as dH, createCatalogExecutorProvider as dI, createConnectionCredentialResolver as dJ, createConnectorAdapterCatalogSource as dK, createConnectorAdapterProvider as dL, createCredentialBackedAdapterProvider as dM, createDefaultIntegrationActionGuard as dN, createDefaultIntegrationPolicyEngine as dO, createGatewayCatalogProvider as dP, createHttpIntegrationProvider as dQ, createIntegrationAuditEvent as dR, createIntegrationWorkflowRuntime as dS, createMockIntegrationProvider as dT, createPlatformIntegrationPolicyPreset as dU, createTangleCatalogExecutorProvider as dV, createTangleCatalogHttpExecutor as dW, createTangleCatalogRuntimeNodeRequestListener as dX, createTangleIntegrationsClient as dY, decodeIntegrationBridgePayload as dZ, discoverWorkspaceCapabilities as d_, type TangleIntegrationCatalogFreshnessResult as da, type TangleIntegrationContract as db, type TangleIntegrationContractStatus as dc, type TangleIntegrationImplementationKind as dd, type TangleIntegrationInvokeInput as de, type TangleIntegrationInvokeResult as df, TangleIntegrationsClient as dg, type TangleIntegrationsClientOptions as dh, type WorkspaceCapability as di, type WorkspaceCapabilityDiscovery as dj, type WorkspaceToolSchema as dk, type WorkspaceTrigger as dl, adapterManifestsToConnectors as dm, assertValidIntegrationManifest as dn, auditIntegrationCatalogFreshness as dp, auditTangleIntegrationCatalogFreshness as dq, buildActivepiecesConnectors as dr, buildActivepiecesRuntimeRequest as ds, buildApprovalRequest as dt, buildCanonicalLaunchConnectors as du, buildIntegrationBridgeEnvironment as dv, buildIntegrationBridgePayload as dw, buildIntegrationCoverageConnectors as dx, buildIntegrationInvocationEnvelope as dy, buildTangleCatalogRuntimePackageManifest as dz, buildIntegrationToolCatalog as e, encodeIntegrationBridgePayload as e0, explainMissingRequirements as e1, extractActivepiecesPublicPieceCount as e2, extractExternalCatalogPublicCount as e3, filterDiscoveryByWorkspaceScopes as e4, getActivepiecesOverride as e5, healthcheckRequest as e6, importGraphqlConnector as e7, importMcpConnector as e8, importOpenApiConnector as e9, sanitizeConnection as eA, signActivepiecesRuntimeRequest as eB, signCapability as eC, startTangleCatalogRuntimeNodeServer as eD, storedEventToTriggerEvent as eE, validateIntegrationInvocationEnvelope as eF, validateIntegrationManifest as eG, validateProviderPassthroughRequest as eH, verifyActivepiecesRuntimeSignature as eI, verifyCapabilityToken as eJ, inferIntegrationManifestFromTools as ea, integrationCoverageChecklistMarkdown as eb, invocationRequestFromEnvelope as ec, listActivepiecesCatalogEntries as ed, listIntegrationCoverageSpecs as ee, listTangleIntegrationCatalogEntries as ef, listTangleIntegrationCatalogRuntimePackages as eg, listTangleIntegrationContracts as eh, manifestToConnector as ei, normalizeGatewayCatalog as ej, normalizeIntegrationResult as ek, parseIntegrationBridgeEnvironment as el, receiveIntegrationWebhook as em, redactApprovalRequest as en, redactCapability as eo, redactIntegrationBridgePayload as ep, redactInvocationEnvelope as eq, renderApprovalCopy as er, renderConsentSummary as es, renderTangleCatalogRuntimePnpmAddCommand as et, resolveConnectionCredentials as eu, resolveIntegrationApproval as ev, revokeConnection as ew, runIntegrationHealthcheck as ex, runIntegrationHealthchecks as ey, sanitizeAuditConnection as ez, describeIntegrationTool as f, flattenIntegrationToolDefinition as g, InMemoryIntegrationGrantStore as h, integrationToolName as i, inferIntegrationSupportTier, type IntegrationCapabilityBinding as j, type IntegrationGrant as k, type IntegrationGrantStore as l, type IntegrationManifest as m, type IntegrationManifestResolution as n, type IntegrationRequirement as o, parseIntegrationToolName as p, type IntegrationRequirementMode as q, type IntegrationRequirementResolution as r, searchIntegrationTools as s, summarizeIntegrationRegistry, toMcpTools as t, type IntegrationRequirementStatus as u, IntegrationRuntime as v, type IntegrationRuntimeHub as w, type IntegrationRuntimeOptions as x, type IntegrationSandboxBundle as y, createIntegrationRuntime as z };
package/dist/registry.js CHANGED
@@ -1,22 +1,24 @@
1
1
  import {
2
2
  buildDefaultIntegrationRegistry,
3
3
  canonicalConnectorId,
4
+ classifyIntegrationCatalogExecutability,
4
5
  composeIntegrationRegistry,
5
6
  inferIntegrationSupportTier,
6
7
  summarizeIntegrationRegistry
7
- } from "./chunk-TUX6MJJ4.js";
8
- import "./chunk-P24T3MLM.js";
9
- import "./chunk-SVQ4PHDZ.js";
8
+ } from "./chunk-M2RFFAMB.js";
9
+ import "./chunk-JCHD6L3B.js";
10
+ import "./chunk-CDY2ETYT.js";
10
11
  import "./chunk-H4XYLS7T.js";
11
- import "./chunk-YOKNZY2N.js";
12
- import "./chunk-4JQ754PA.js";
12
+ import "./chunk-S2MVWQYL.js";
13
+ import "./chunk-VVC7U7W7.js";
13
14
  import "./chunk-376UBTNB.js";
14
- import "./chunk-JU25UDN2.js";
15
+ import "./chunk-F4YILONK.js";
15
16
  import "./chunk-2TW2QKGZ.js";
16
- import "./chunk-ATYHZXLL.js";
17
+ import "./chunk-Q5X3QNHR.js";
17
18
  export {
18
19
  buildDefaultIntegrationRegistry,
19
20
  canonicalConnectorId,
21
+ classifyIntegrationCatalogExecutability,
20
22
  composeIntegrationRegistry,
21
23
  inferIntegrationSupportTier,
22
24
  summarizeIntegrationRegistry
package/dist/runtime.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { f as InMemoryIntegrationGrantStore, g as IntegrationCapabilityBinding, h as IntegrationGrant, j as IntegrationGrantStore, k as IntegrationManifest, l as IntegrationManifestResolution, m as IntegrationRequirement, n as IntegrationRequirementMode, o as IntegrationRequirementResolution, q as IntegrationRequirementStatus, r as IntegrationRuntime, u as IntegrationRuntimeHub, v as IntegrationRuntimeOptions, w as IntegrationSandboxBundle, x as createIntegrationRuntime } from './registry.js';
2
- import './tangle-id-CTU4kGId.js';
1
+ export { h as InMemoryIntegrationGrantStore, j as IntegrationCapabilityBinding, k as IntegrationGrant, l as IntegrationGrantStore, m as IntegrationManifest, n as IntegrationManifestResolution, o as IntegrationRequirement, q as IntegrationRequirementMode, r as IntegrationRequirementResolution, u as IntegrationRequirementStatus, v as IntegrationRuntime, w as IntegrationRuntimeHub, x as IntegrationRuntimeOptions, y as IntegrationSandboxBundle, z as createIntegrationRuntime } from './registry.js';
2
+ import './tangle-id-Dj0ipP4E.js';
3
3
  import './errors-Bg3_rxnQ.js';
4
4
  import './connect/index.js';
5
5
  import './middleware/index.js';
package/dist/runtime.js CHANGED
@@ -2,16 +2,16 @@ import {
2
2
  InMemoryIntegrationGrantStore,
3
3
  IntegrationRuntime,
4
4
  createIntegrationRuntime
5
- } from "./chunk-TUX6MJJ4.js";
6
- import "./chunk-P24T3MLM.js";
7
- import "./chunk-SVQ4PHDZ.js";
5
+ } from "./chunk-M2RFFAMB.js";
6
+ import "./chunk-JCHD6L3B.js";
7
+ import "./chunk-CDY2ETYT.js";
8
8
  import "./chunk-H4XYLS7T.js";
9
- import "./chunk-YOKNZY2N.js";
10
- import "./chunk-4JQ754PA.js";
9
+ import "./chunk-S2MVWQYL.js";
10
+ import "./chunk-VVC7U7W7.js";
11
11
  import "./chunk-376UBTNB.js";
12
- import "./chunk-JU25UDN2.js";
12
+ import "./chunk-F4YILONK.js";
13
13
  import "./chunk-2TW2QKGZ.js";
14
- import "./chunk-ATYHZXLL.js";
14
+ import "./chunk-Q5X3QNHR.js";
15
15
  export {
16
16
  InMemoryIntegrationGrantStore,
17
17
  IntegrationRuntime,
package/dist/specs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { a4 as ApiKeyAuthSpec, a5 as ConsoleStep, a6 as CredentialFieldSpec, a7 as CredentialValidationInput, a8 as CredentialValidationResult, a9 as CustomAuthSpec, aa as HealthcheckPlan, ab as HealthcheckSpec, ac as HmacAuthSpec, ad as INTEGRATION_FAMILIES, ae as IntegrationAuthMode, af as IntegrationAuthSpec, ag as IntegrationFamilyId, ah as IntegrationFamilySpec, ai as IntegrationLifecycleSpec, aj as IntegrationPlannerHints, ak as IntegrationSetupSpec, al as IntegrationSpec, am as IntegrationSpecStatus, an as IntegrationSpecValidationIssue, ao as IntegrationSpecValidationResult, ap as NoneAuthSpec, aq as NormalizedPermission, ar as OAuth2AuthSpec, as as PermissionDescriptor, at as PostSetupCheck, au as Quirk, av as RenderSpecOptions, aw as RenderedConsoleStep, ax as ScopeDescriptor, ay as assertValidIntegrationSpec, az as buildHealthcheckPlan, aA as consoleStepsToText, aB as getIntegrationFamily, aC as getIntegrationSpec, aD as integrationSpecToConnector, aE as listExecutableIntegrationSpecs, aF as listIntegrationSpecs, aG as renderAgentToolDescription, aH as renderConsoleSteps, aI as renderRunbookMarkdown, aJ as specAuthToConnectorAuth, aK as validateCredentialFormat, aL as validateCredentialSet, aM as validateIntegrationSpec } from './registry.js';
2
- import './tangle-id-CTU4kGId.js';
1
+ export { a6 as ApiKeyAuthSpec, a7 as ConnectorAuthSpec, a8 as ConsoleStep, a9 as CredentialFieldSpec, aa as CredentialValidationInput, ab as CredentialValidationResult, ac as CustomAuthSpec, ad as HealthcheckPlan, ae as HealthcheckSpec, af as HmacAuthSpec, ag as INTEGRATION_FAMILIES, ah as IntegrationAuthMode, ai as IntegrationAuthSpec, aj as IntegrationFamilyId, ak as IntegrationFamilySpec, al as IntegrationLifecycleSpec, am as IntegrationPlannerHints, an as IntegrationSetupSpec, ao as IntegrationSpec, ap as IntegrationSpecStatus, aq as IntegrationSpecValidationIssue, ar as IntegrationSpecValidationResult, as as NoneAuthSpec, at as NormalizedPermission, au as OAuth2AuthSpec, av as PermissionDescriptor, aw as PostSetupCheck, ax as Quirk, ay as RenderSpecOptions, az as RenderedConsoleStep, aA as ScopeDescriptor, aB as assertValidIntegrationSpec, aC as buildHealthcheckPlan, aD as consoleStepsToText, aE as getIntegrationFamily, aF as getIntegrationSpec, aG as integrationSpecToConnector, aH as listExecutableIntegrationSpecs, aI as listIntegrationSpecs, aJ as renderAgentToolDescription, aK as renderConsoleSteps, aL as renderRunbookMarkdown, aM as resolveConnectorAuthSpec, aN as specAuthToConnectorAuth, aO as validateCredentialFormat, aP as validateCredentialSet, aQ as validateIntegrationSpec } from './registry.js';
2
+ import './tangle-id-Dj0ipP4E.js';
3
3
  import './errors-Bg3_rxnQ.js';
4
4
  import './connect/index.js';
5
5
  import './middleware/index.js';
package/dist/specs.js CHANGED
@@ -11,11 +11,12 @@ import {
11
11
  renderAgentToolDescription,
12
12
  renderConsoleSteps,
13
13
  renderRunbookMarkdown,
14
+ resolveConnectorAuthSpec,
14
15
  specAuthToConnectorAuth,
15
16
  validateCredentialFormat,
16
17
  validateCredentialSet,
17
18
  validateIntegrationSpec
18
- } from "./chunk-4JQ754PA.js";
19
+ } from "./chunk-VVC7U7W7.js";
19
20
  export {
20
21
  INTEGRATION_FAMILIES,
21
22
  assertValidIntegrationSpec,
@@ -29,6 +30,7 @@ export {
29
30
  renderAgentToolDescription,
30
31
  renderConsoleSteps,
31
32
  renderRunbookMarkdown,
33
+ resolveConnectorAuthSpec,
32
34
  specAuthToConnectorAuth,
33
35
  validateCredentialFormat,
34
36
  validateCredentialSet,
@@ -1,5 +1,5 @@
1
- export { T as TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER, J as TangleCatalogAuthResolverOptions, K as TangleCatalogHttpAuthResolverOptions, N as TangleCatalogHttpAuthResolverRequest, O as TangleCatalogInstalledPackageExecutorOptions, P as TangleCatalogRuntimeHandlerOptions, Q as TangleCatalogRuntimeHttpRequest, S as TangleCatalogRuntimeHttpResponse, U as TangleCatalogRuntimeInvocation, V as TangleCatalogRuntimeModuleAction, W as TangleCatalogRuntimePackageCoverageOptions, X as TangleCatalogRuntimePackageCoverageRow, Y as auditTangleCatalogRuntimePackages, Z as createTangleCatalogCredentialAuthResolver, _ as createTangleCatalogHttpAuthResolver, $ as createTangleCatalogInstalledPackageExecutor, a0 as createTangleCatalogRuntimeHandler, a1 as signTangleCatalogRuntimeRequest, a2 as tangleCatalogAuthValue, a3 as verifyTangleCatalogRuntimeSignature } from './registry.js';
2
- import './tangle-id-CTU4kGId.js';
1
+ export { T as TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER, N as TangleCatalogAuthResolverOptions, O as TangleCatalogHttpAuthResolverOptions, P as TangleCatalogHttpAuthResolverRequest, Q as TangleCatalogInstalledPackageExecutorOptions, S as TangleCatalogRuntimeHandlerOptions, U as TangleCatalogRuntimeHttpRequest, V as TangleCatalogRuntimeHttpResponse, W as TangleCatalogRuntimeInvocation, X as TangleCatalogRuntimeModuleAction, Y as TangleCatalogRuntimePackageCoverageOptions, Z as TangleCatalogRuntimePackageCoverageRow, _ as auditTangleCatalogRuntimePackages, $ as createTangleCatalogCredentialAuthResolver, a0 as createTangleCatalogHttpAuthResolver, a1 as createTangleCatalogInstalledPackageExecutor, a2 as createTangleCatalogRuntimeHandler, a3 as signTangleCatalogRuntimeRequest, a4 as tangleCatalogAuthValue, a5 as verifyTangleCatalogRuntimeSignature } from './registry.js';
2
+ import './tangle-id-Dj0ipP4E.js';
3
3
  import './errors-Bg3_rxnQ.js';
4
4
  import './connect/index.js';
5
5
  import './middleware/index.js';
@@ -8,16 +8,16 @@ import {
8
8
  signTangleCatalogRuntimeRequest,
9
9
  tangleCatalogAuthValue,
10
10
  verifyTangleCatalogRuntimeSignature
11
- } from "./chunk-TUX6MJJ4.js";
12
- import "./chunk-P24T3MLM.js";
13
- import "./chunk-SVQ4PHDZ.js";
11
+ } from "./chunk-M2RFFAMB.js";
12
+ import "./chunk-JCHD6L3B.js";
13
+ import "./chunk-CDY2ETYT.js";
14
14
  import "./chunk-H4XYLS7T.js";
15
- import "./chunk-YOKNZY2N.js";
16
- import "./chunk-4JQ754PA.js";
15
+ import "./chunk-S2MVWQYL.js";
16
+ import "./chunk-VVC7U7W7.js";
17
17
  import "./chunk-376UBTNB.js";
18
- import "./chunk-JU25UDN2.js";
18
+ import "./chunk-F4YILONK.js";
19
19
  import "./chunk-2TW2QKGZ.js";
20
- import "./chunk-ATYHZXLL.js";
20
+ import "./chunk-Q5X3QNHR.js";
21
21
  export {
22
22
  TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER,
23
23
  auditTangleCatalogRuntimePackages,
@@ -192,6 +192,13 @@ interface ConnectorInvocation {
192
192
  expectedEtag?: string;
193
193
  /** Product/session id (if any) for forensic logging. */
194
194
  callSessionId?: string;
195
+ /** Fired by the adapter when it rotates the credentials mid-call (e.g. an
196
+ * OAuth access token refreshed on expiry). The host re-encrypts +
197
+ * persists the rotated envelope so the next expiry does not force a
198
+ * reconnect. Adapters MUST invoke this with the FULL rotated envelope,
199
+ * not a partial — the previous refresh token is preserved by the caller's
200
+ * refresh logic, not inferred here. */
201
+ onCredentialsRotated?: (credentials: ConnectorCredentials) => void;
195
202
  }
196
203
  /** A single inbound event extracted from a push payload. The webhook
197
204
  * receiver persists one `InboundEvent` row per entry the connector returns. */
@@ -302,7 +309,7 @@ interface ConnectorManifest {
302
309
  * `cache` because they refresh it nightly). */
303
310
  defaultConsistencyModel: ConsistencyModel;
304
311
  /** Connector category for UI grouping. */
305
- category: 'calendar' | 'spreadsheet' | 'crm' | 'doc' | 'webhook' | 'storage' | 'comms' | 'commerce' | 'other';
312
+ category: 'calendar' | 'spreadsheet' | 'crm' | 'doc' | 'webhook' | 'storage' | 'comms' | 'commerce' | 'database' | 'other';
306
313
  /** Optional icon URL or named icon. */
307
314
  icon?: string;
308
315
  /** Optional per-kind rate-limit budget. The SDK enforces it inside
@@ -35,7 +35,7 @@ This audit separates product contracts from implementation backends:
35
35
  | Package-runtime backends | 659 |
36
36
  | Runtime manifest dependencies | 670 |
37
37
  | Tangle catalog connectors exposable behind runtime | 669 |
38
- | Tangle catalog actions exposable behind runtime | 3970 |
38
+ | Tangle catalog actions exposable behind runtime | 3790 |
39
39
 
40
40
  Full machine-readable matrix: [integration-execution-matrix.json](./integration-execution-matrix.json).
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-integrations",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "Vendor-neutral integration contracts and runtime helpers for sandbox and agent apps.",
5
5
  "homepage": "https://github.com/tangle-network/agent-integrations#readme",
6
6
  "repository": {
@@ -93,16 +93,13 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "scripts": {
97
- "build": "tsup",
98
- "dev": "tsup --watch",
99
- "audit:execution": "pnpm build >/dev/null && node scripts/audit-integration-execution.mjs",
100
- "prepare": "tsup",
101
- "test": "vitest run",
102
- "test:watch": "vitest",
103
- "typecheck": "tsc --noEmit"
104
- },
105
96
  "devDependencies": {
97
+ "@activepieces/piece-gmail": "0.12.3",
98
+ "@activepieces/piece-hackernews": "0.4.3",
99
+ "@activepieces/piece-json": "0.1.6",
100
+ "@activepieces/piece-notion": "0.6.1",
101
+ "@activepieces/piece-slack": "0.17.0",
102
+ "@activepieces/piece-stripe": "0.6.7",
106
103
  "@types/node": "^25.6.0",
107
104
  "tsup": "^8.0.0",
108
105
  "typescript": "^5.7.0",
@@ -112,5 +109,12 @@
112
109
  "node": ">=20"
113
110
  },
114
111
  "license": "MIT",
115
- "packageManager": "pnpm@10.28.0"
116
- }
112
+ "scripts": {
113
+ "build": "tsup",
114
+ "dev": "tsup --watch",
115
+ "audit:execution": "pnpm build >/dev/null && node scripts/audit-integration-execution.mjs",
116
+ "test": "vitest run",
117
+ "test:watch": "vitest",
118
+ "typecheck": "tsc --noEmit"
119
+ }
120
+ }