@tangle-network/agent-integrations 0.27.0 → 0.28.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.
@@ -0,0 +1,32 @@
1
+ type IntegrationErrorCode = 'missing_connection' | 'missing_grant' | 'approval_required' | 'approval_denied' | 'connection_revoked' | 'connection_expired' | 'scope_missing' | 'action_denied' | 'action_not_found' | 'trigger_not_found' | 'provider_rate_limited' | 'provider_auth_failed' | 'provider_unavailable' | 'provider_error' | 'capability_expired' | 'capability_invalid' | 'manifest_invalid' | 'passthrough_disabled' | 'input_invalid' | 'unknown';
2
+ interface IntegrationUserAction {
3
+ type: 'connect' | 'reconnect' | 'approve' | 'retry' | 'contact_support' | 'change_request';
4
+ label: string;
5
+ connectorId?: string;
6
+ approvalId?: string;
7
+ }
8
+ declare class IntegrationRuntimeError extends Error {
9
+ readonly code: IntegrationErrorCode;
10
+ readonly status: number;
11
+ readonly userAction?: IntegrationUserAction;
12
+ readonly metadata?: Record<string, unknown>;
13
+ constructor(input: {
14
+ code: IntegrationErrorCode;
15
+ message: string;
16
+ status?: number;
17
+ userAction?: IntegrationUserAction;
18
+ metadata?: Record<string, unknown>;
19
+ });
20
+ }
21
+ interface NormalizedIntegrationError {
22
+ ok: false;
23
+ code: IntegrationErrorCode;
24
+ message: string;
25
+ status: number;
26
+ userAction?: IntegrationUserAction;
27
+ metadata?: Record<string, unknown>;
28
+ }
29
+ declare function normalizeIntegrationError(error: unknown): NormalizedIntegrationError;
30
+ declare function statusForCode(code: IntegrationErrorCode): number;
31
+
32
+ export { IntegrationRuntimeError as I, type NormalizedIntegrationError as N, type IntegrationUserAction as a, type IntegrationErrorCode as b, normalizeIntegrationError as n, statusForCode as s };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { aB as ACTIVEPIECES_OVERRIDES, aC as ACTIVEPIECES_PUBLIC_CATALOG_URL, aD as ACTIVEPIECES_RUNTIME_SIGNATURE_HEADER, aE as ActivepiecesCatalogAuthField, aF as ActivepiecesCatalogEntry, aG as ActivepiecesExecutorInvocation, aH as ActivepiecesExecutorProviderOptions, aI as ActivepiecesHttpExecutorOptions, aJ as ActivepiecesPieceOverride, aK as ActivepiecesRuntimeRequest, U as ApiKeyAuthSpec, aL as ApprovalBackedPolicyEngine, aM as ApprovalBackedPolicyOptions, aN as CANONICAL_INTEGRATION_ACTIONS, aO as CanonicalIntegrationActionId, aP as CanonicalLaunchConnectorOptions, aQ as CatalogExecutorInvocation, aR as CatalogExecutorProviderOptions, aS as CompleteAuthRequest, ComposeIntegrationRegistryOptions, aT as ConnectionCredentialResolverOptions, aU as ConnectorAdapterProviderOptions, aV as ConsentSummary, V as ConsoleStep, W as CredentialFieldSpec, X as CredentialValidationInput, Y as CredentialValidationResult, Z as CustomAuthSpec, aW as DEFAULT_INTEGRATION_BRIDGE_ENV, aX as DefaultIntegrationActionGuard, aY as DiscoverWorkspaceCapabilitiesInput, aZ as GatewayCatalogAction, a_ as GatewayCatalogEntry, a$ as GatewayCatalogProviderOptions, b0 as GatewayCatalogTrigger, b1 as GraphqlOperationSpec, _ as HealthcheckPlan, $ as HealthcheckSpec, a0 as HmacAuthSpec, b2 as HttpIntegrationProviderOptions, a1 as INTEGRATION_FAMILIES, b3 as ImportCatalogOptions, b4 as InMemoryConnectionStore, b5 as InMemoryIntegrationApprovalStore, b6 as InMemoryIntegrationAuditStore, b7 as InMemoryIntegrationEventStore, f as InMemoryIntegrationGrantStore, b8 as InMemoryIntegrationHealthcheckStore, b9 as InMemoryIntegrationIdempotencyStore, ba as InMemoryIntegrationSecretStore, bb as InMemoryIntegrationWorkflowStore, bc as InferIntegrationRequirementsOptions, bd as InstalledIntegrationWorkflow, be as IntegrationActionGuard, bf as IntegrationActionPack, bg as IntegrationActionRequest, bh as IntegrationActionResult, bi as IntegrationActionRisk, bj as IntegrationActor, bk as IntegrationApprovalFilter, bl as IntegrationApprovalRecord, bm as IntegrationApprovalRequest, bn as IntegrationApprovalResolution, bo as IntegrationApprovalStatus, bp as IntegrationApprovalStore, bq as IntegrationAuditEvent, br as IntegrationAuditEventType, bs as IntegrationAuditFilter, bt as IntegrationAuditSink, bu as IntegrationAuditStore, a2 as IntegrationAuthMode, a3 as IntegrationAuthSpec, bv as IntegrationBridgePayload, bw as IntegrationBridgeToolBinding, bx as IntegrationCapability, g as IntegrationCapabilityBinding, by as IntegrationCatalogFreshnessOptions, bz as IntegrationCatalogFreshnessResult, IntegrationCatalogSource, I as IntegrationCatalogView, bA as IntegrationConnection, bB as IntegrationConnectionStore, bC as IntegrationConnector, bD as IntegrationConnectorAction, bE as IntegrationConnectorCategory, bF as IntegrationConnectorTrigger, bG as IntegrationCoveragePriority, bH as IntegrationCoverageSpec, bI as IntegrationDataClass, bJ as IntegrationError, bK as IntegrationErrorCode, bL as IntegrationEventStore, a4 as IntegrationFamilyId, a5 as IntegrationFamilySpec, h as IntegrationGrant, j as IntegrationGrantStore, bM as IntegrationGuardContext, bN as IntegrationHealthcheckCheck, bO as IntegrationHealthcheckResult, bP as IntegrationHealthcheckStatus, bQ as IntegrationHealthcheckStore, bR as IntegrationHub, bS as IntegrationHubOptions, bT as IntegrationIdempotencyRecord, bU as IntegrationIdempotencyStore, bV as IntegrationInvocationEnvelope, bW as IntegrationInvocationEnvelopeValidationOptions, a6 as IntegrationLifecycleSpec, k as IntegrationManifest, l as IntegrationManifestResolution, a7 as IntegrationPlannerHints, bX as IntegrationPolicyDecision, bY as IntegrationPolicyEffect, bZ as IntegrationPolicyEngine, b_ as IntegrationPolicyRule, b$ as IntegrationProvider, c0 as IntegrationProviderKind, c1 as IntegrationRateLimitDecision, c2 as IntegrationRateLimiter, IntegrationRegistry, IntegrationRegistryConflict, IntegrationRegistryEntry, IntegrationRegistrySourceRef, IntegrationRegistrySummary, m as IntegrationRequirement, n as IntegrationRequirementMode, o as IntegrationRequirementResolution, q as IntegrationRequirementStatus, r as IntegrationRuntime, c3 as IntegrationRuntimeError, u as IntegrationRuntimeHub, v as IntegrationRuntimeOptions, w as IntegrationSandboxBundle, c4 as IntegrationSandboxHost, c5 as IntegrationSandboxHostHub, c6 as IntegrationSandboxHostOptions, c7 as IntegrationSecretStore, a8 as IntegrationSetupSpec, a9 as IntegrationSpec, aa as IntegrationSpecStatus, ab as IntegrationSpecValidationIssue, ac as IntegrationSpecValidationResult, IntegrationSupportTier, a as IntegrationToolDefinition, b as IntegrationToolSearchFilters, c as IntegrationToolSearchResult, c8 as IntegrationTriggerEvent, c9 as IntegrationTriggerSubscription, ca as IntegrationUserAction, cb as IntegrationWebhookReceiverResult, cc as IntegrationWorkflowDefinition, cd as IntegrationWorkflowRuntime, ce as IntegrationWorkflowRuntimeHub, cf as IntegrationWorkflowRuntimeOptions, cg as IntegrationWorkflowStore, ch as InvokeWithCapabilityRequest, ci as IssueCapabilityRequest, cj as IssuedIntegrationCapability, ck as ManifestValidationIssue, cl as ManifestValidationResult, cm as McpCatalog, cn as McpCatalogTool, M as McpToolDefinition, co as MissingRequirementExplanation, ad as NoneAuthSpec, cp as NormalizedIntegrationError, cq as NormalizedIntegrationResult, ae as NormalizedPermission, af as OAuth2AuthSpec, cr as OpenApiDocument, cs as OpenApiOperation, ct as PROVIDER_PASSTHROUGH_ACTION, ag as PermissionDescriptor, cu as PlatformIntegrationPolicyPresetOptions, ah as PostSetupCheck, cv as ProviderHttpRequestInput, cw as ProviderPassthroughPolicy, ai as Quirk, cx as RenderConsentOptions, aj as RenderSpecOptions, ak as RenderedConsoleStep, al as ScopeDescriptor, cy as SecretRef, cz as StartAuthRequest, cA as StartAuthResult, cB as StartedTangleCatalogRuntimeNodeServer, cC as StaticIntegrationPolicyEngine, cD as StaticIntegrationPolicyOptions, cE as StoredIntegrationEvent, T as TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER, cF as TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID, cG as TANGLE_INTEGRATIONS_CATALOG_SOURCE, y as TangleCatalogAuthResolverOptions, cH as TangleCatalogExecutorInvocation, cI as TangleCatalogExecutorProviderOptions, z as TangleCatalogHttpAuthResolverOptions, A as TangleCatalogHttpAuthResolverRequest, cJ as TangleCatalogHttpExecutorInvocation, cK as TangleCatalogHttpExecutorOptions, B as TangleCatalogInstalledPackageExecutorOptions, cL as TangleCatalogRuntimeActionRequest, C as TangleCatalogRuntimeHandlerOptions, D as TangleCatalogRuntimeHttpRequest, E as TangleCatalogRuntimeHttpResponse, F as TangleCatalogRuntimeInvocation, G as TangleCatalogRuntimeModuleAction, cM as TangleCatalogRuntimeNodeServerOptions, H as TangleCatalogRuntimePackageCoverageOptions, J as TangleCatalogRuntimePackageCoverageRow, cN as TangleCatalogRuntimePackageManifest, cO as TangleCatalogRuntimePackageManifestOptions, cP as TangleCatalogRuntimePiece, cQ as TangleCatalogRuntimeRequest, cR as TangleCatalogTriggerInvocation, cS as TangleIntegrationCatalogEntry, cT as TangleIntegrationCatalogFreshnessOptions, cU as TangleIntegrationCatalogFreshnessResult, cV as TangleIntegrationContract, cW as TangleIntegrationContractStatus, cX as TangleIntegrationImplementationKind, cY as TangleIntegrationInvokeInput, cZ as TangleIntegrationInvokeResult, c_ as TangleIntegrationsClient, c$ as TangleIntegrationsClientOptions, d0 as WorkspaceCapability, d1 as WorkspaceCapabilityDiscovery, d2 as WorkspaceToolSchema, d3 as WorkspaceTrigger, d4 as adapterManifestsToConnectors, d5 as assertValidIntegrationManifest, am as assertValidIntegrationSpec, d6 as auditIntegrationCatalogFreshness, K as auditTangleCatalogRuntimePackages, d7 as auditTangleIntegrationCatalogFreshness, d8 as buildActivepiecesConnectors, d9 as buildActivepiecesRuntimeRequest, da as buildApprovalRequest, db as buildCanonicalLaunchConnectors, buildDefaultIntegrationRegistry, an as buildHealthcheckPlan, dc as buildIntegrationBridgeEnvironment, dd as buildIntegrationBridgePayload, d as buildIntegrationCatalogView, de as buildIntegrationCoverageConnectors, df as buildIntegrationInvocationEnvelope, e as buildIntegrationToolCatalog, dg as buildTangleCatalogRuntimePackageManifest, dh as buildTangleCatalogRuntimeRequest, di as buildTangleIntegrationCatalogConnectors, dj as calendarExercisePlannerManifest, dk as canonicalActionConnectorId, canonicalConnectorId, composeIntegrationRegistry, ao as consoleStepsToText, dl as createActivepiecesExecutorProvider, dm as createActivepiecesHttpExecutor, dn as createApprovalBackedPolicyEngine, dp as createAuditingActionGuard, dq as createCatalogExecutorProvider, dr as createConnectionCredentialResolver, ds as createConnectorAdapterCatalogSource, dt as createConnectorAdapterProvider, du as createCredentialBackedAdapterProvider, dv as createDefaultIntegrationActionGuard, dw as createDefaultIntegrationPolicyEngine, dx as createGatewayCatalogProvider, dy as createHttpIntegrationProvider, dz as createIntegrationAuditEvent, x as createIntegrationRuntime, dA as createIntegrationWorkflowRuntime, dB as createMockIntegrationProvider, dC as createPlatformIntegrationPolicyPreset, L as createTangleCatalogCredentialAuthResolver, dD as createTangleCatalogExecutorProvider, N as createTangleCatalogHttpAuthResolver, dE as createTangleCatalogHttpExecutor, O as createTangleCatalogInstalledPackageExecutor, P as createTangleCatalogRuntimeHandler, dF as createTangleCatalogRuntimeNodeRequestListener, dG as createTangleIntegrationsClient, dH as decodeIntegrationBridgePayload, dI as discoverWorkspaceCapabilities, dJ as dispatchIntegrationInvocation, dK as encodeIntegrationBridgePayload, dL as explainMissingRequirements, dM as extractActivepiecesPublicPieceCount, dN as extractExternalCatalogPublicCount, dO as filterDiscoveryByWorkspaceScopes, dP as getActivepiecesOverride, ap as getIntegrationFamily, aq as getIntegrationSpec, dQ as healthcheckRequest, dR as importGraphqlConnector, dS as importMcpConnector, dT as importOpenApiConnector, dU as inferIntegrationManifestFromTools, inferIntegrationSupportTier, dV as integrationCoverageChecklistMarkdown, ar as integrationSpecToConnector, i as integrationToolName, dW as invocationRequestFromEnvelope, dX as listActivepiecesCatalogEntries, as as listExecutableIntegrationSpecs, dY as listIntegrationCoverageSpecs, at as listIntegrationSpecs, dZ as listTangleIntegrationCatalogEntries, d_ as listTangleIntegrationCatalogRuntimePackages, d$ as listTangleIntegrationContracts, e0 as manifestToConnector, e1 as normalizeGatewayCatalog, e2 as normalizeIntegrationError, e3 as normalizeIntegrationResult, e4 as parseIntegrationBridgeEnvironment, p as parseIntegrationToolName, e5 as receiveIntegrationWebhook, e6 as redactApprovalRequest, e7 as redactCapability, e8 as redactIntegrationBridgePayload, e9 as redactInvocationEnvelope, au as renderAgentToolDescription, ea as renderApprovalCopy, eb as renderConsentSummary, av as renderConsoleSteps, aw as renderRunbookMarkdown, ec as renderTangleCatalogRuntimePnpmAddCommand, ed as resolveConnectionCredentials, ee as resolveIntegrationApproval, ef as revokeConnection, eg as runIntegrationHealthcheck, eh as runIntegrationHealthchecks, ei as sanitizeAuditConnection, ej as sanitizeConnection, s as searchIntegrationTools, ek as signActivepiecesRuntimeRequest, el as signCapability, Q as signTangleCatalogRuntimeRequest, ax as specAuthToConnectorAuth, em as startTangleCatalogRuntimeNodeServer, en as statusForCode, eo as storedEventToTriggerEvent, summarizeIntegrationRegistry, R as tangleCatalogAuthValue, t as toMcpTools, ay as validateCredentialFormat, az as validateCredentialSet, ep as validateIntegrationInvocationEnvelope, eq as validateIntegrationManifest, aA as validateIntegrationSpec, er as validateProviderPassthroughRequest, es as verifyActivepiecesRuntimeSignature, et as verifyCapabilityToken, S as verifyTangleCatalogRuntimeSignature } from './registry.js';
1
+ export { aB as ACTIVEPIECES_OVERRIDES, aC as ACTIVEPIECES_PUBLIC_CATALOG_URL, aD as ACTIVEPIECES_RUNTIME_SIGNATURE_HEADER, aE as ActivepiecesCatalogAuthField, aF as ActivepiecesCatalogEntry, aG as ActivepiecesExecutorInvocation, aH as ActivepiecesExecutorProviderOptions, aI as ActivepiecesHttpExecutorOptions, aJ as ActivepiecesPieceOverride, aK as ActivepiecesRuntimeRequest, U as ApiKeyAuthSpec, aL as ApprovalBackedPolicyEngine, aM as ApprovalBackedPolicyOptions, aN as CANONICAL_INTEGRATION_ACTIONS, aO as CanonicalIntegrationActionId, aP as CanonicalLaunchConnectorOptions, aQ as CatalogExecutorInvocation, aR as CatalogExecutorProviderOptions, aS as CompleteAuthRequest, ComposeIntegrationRegistryOptions, aT as ConnectionCredentialResolverOptions, aU as ConnectorAdapterProviderOptions, aV as ConsentSummary, V as ConsoleStep, W as CredentialFieldSpec, X as CredentialValidationInput, Y as CredentialValidationResult, Z as CustomAuthSpec, aW as DEFAULT_INTEGRATION_BRIDGE_ENV, aX as DefaultIntegrationActionGuard, aY as DiscoverWorkspaceCapabilitiesInput, aZ as GatewayCatalogAction, a_ as GatewayCatalogEntry, a$ as GatewayCatalogProviderOptions, b0 as GatewayCatalogTrigger, b1 as GraphqlOperationSpec, _ as HealthcheckPlan, $ as HealthcheckSpec, a0 as HmacAuthSpec, b2 as HttpIntegrationProviderOptions, a1 as INTEGRATION_FAMILIES, b3 as ImportCatalogOptions, b4 as InMemoryConnectionStore, b5 as InMemoryIntegrationApprovalStore, b6 as InMemoryIntegrationAuditStore, b7 as InMemoryIntegrationEventStore, f as InMemoryIntegrationGrantStore, b8 as InMemoryIntegrationHealthcheckStore, b9 as InMemoryIntegrationIdempotencyStore, ba as InMemoryIntegrationSecretStore, bb as InMemoryIntegrationWorkflowStore, bc as InferIntegrationRequirementsOptions, bd as InstalledIntegrationWorkflow, be as IntegrationActionGuard, bf as IntegrationActionPack, bg as IntegrationActionRequest, bh as IntegrationActionResult, bi as IntegrationActionRisk, bj as IntegrationActor, bk as IntegrationApprovalFilter, bl as IntegrationApprovalRecord, bm as IntegrationApprovalRequest, bn as IntegrationApprovalResolution, bo as IntegrationApprovalStatus, bp as IntegrationApprovalStore, bq as IntegrationAuditEvent, br as IntegrationAuditEventType, bs as IntegrationAuditFilter, bt as IntegrationAuditSink, bu as IntegrationAuditStore, a2 as IntegrationAuthMode, a3 as IntegrationAuthSpec, bv as IntegrationBridgePayload, bw as IntegrationBridgeToolBinding, bx as IntegrationCapability, g as IntegrationCapabilityBinding, by as IntegrationCatalogFreshnessOptions, bz as IntegrationCatalogFreshnessResult, IntegrationCatalogSource, I as IntegrationCatalogView, bA as IntegrationConnection, bB as IntegrationConnectionStore, bC as IntegrationConnector, bD as IntegrationConnectorAction, bE as IntegrationConnectorCategory, bF as IntegrationConnectorTrigger, bG as IntegrationCoveragePriority, bH as IntegrationCoverageSpec, bI as IntegrationDataClass, bJ as IntegrationError, bK as IntegrationEventStore, a4 as IntegrationFamilyId, a5 as IntegrationFamilySpec, h as IntegrationGrant, j as IntegrationGrantStore, bL as IntegrationGuardContext, bM as IntegrationHealthcheckCheck, bN as IntegrationHealthcheckResult, bO as IntegrationHealthcheckStatus, bP as IntegrationHealthcheckStore, bQ as IntegrationHub, bR as IntegrationHubOptions, bS as IntegrationIdempotencyRecord, bT as IntegrationIdempotencyStore, bU as IntegrationInvocationEnvelope, bV as IntegrationInvocationEnvelopeValidationOptions, a6 as IntegrationLifecycleSpec, k as IntegrationManifest, l as IntegrationManifestResolution, a7 as IntegrationPlannerHints, bW as IntegrationPolicyDecision, bX as IntegrationPolicyEffect, bY as IntegrationPolicyEngine, bZ as IntegrationPolicyRule, b_ as IntegrationProvider, b$ as IntegrationProviderKind, c0 as IntegrationRateLimitDecision, c1 as IntegrationRateLimiter, IntegrationRegistry, IntegrationRegistryConflict, IntegrationRegistryEntry, IntegrationRegistrySourceRef, IntegrationRegistrySummary, m as IntegrationRequirement, n as IntegrationRequirementMode, o as IntegrationRequirementResolution, q as IntegrationRequirementStatus, r as IntegrationRuntime, u as IntegrationRuntimeHub, v as IntegrationRuntimeOptions, w as IntegrationSandboxBundle, c2 as IntegrationSandboxHost, c3 as IntegrationSandboxHostHub, c4 as IntegrationSandboxHostOptions, c5 as IntegrationSecretStore, a8 as IntegrationSetupSpec, a9 as IntegrationSpec, aa as IntegrationSpecStatus, ab as IntegrationSpecValidationIssue, ac as IntegrationSpecValidationResult, IntegrationSupportTier, a as IntegrationToolDefinition, b as IntegrationToolSearchFilters, c as IntegrationToolSearchResult, c6 as IntegrationTriggerEvent, c7 as IntegrationTriggerSubscription, c8 as IntegrationWebhookReceiverResult, c9 as IntegrationWorkflowDefinition, ca as IntegrationWorkflowRuntime, cb as IntegrationWorkflowRuntimeHub, cc as IntegrationWorkflowRuntimeOptions, cd as IntegrationWorkflowStore, ce as InvokeWithCapabilityRequest, cf as IssueCapabilityRequest, cg as IssuedIntegrationCapability, ch as ManifestValidationIssue, ci as ManifestValidationResult, cj as McpCatalog, ck as McpCatalogTool, M as McpToolDefinition, cl as MissingRequirementExplanation, ad as NoneAuthSpec, cm as NormalizedIntegrationResult, ae as NormalizedPermission, af as OAuth2AuthSpec, cn as OpenApiDocument, co as OpenApiOperation, cp as PROVIDER_PASSTHROUGH_ACTION, ag as PermissionDescriptor, cq as PlatformIntegrationPolicyPresetOptions, ah as PostSetupCheck, cr as ProviderHttpRequestInput, cs as ProviderPassthroughPolicy, ai as Quirk, ct as RenderConsentOptions, aj as RenderSpecOptions, ak as RenderedConsoleStep, al as ScopeDescriptor, cu as SecretRef, cv as StartAuthRequest, cw as StartAuthResult, cx as StartedTangleCatalogRuntimeNodeServer, cy as StaticIntegrationPolicyEngine, cz as StaticIntegrationPolicyOptions, cA as StoredIntegrationEvent, T as TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER, cB as TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID, cC as TANGLE_INTEGRATIONS_CATALOG_SOURCE, y as TangleCatalogAuthResolverOptions, cD as TangleCatalogExecutorInvocation, cE as TangleCatalogExecutorProviderOptions, z as TangleCatalogHttpAuthResolverOptions, A as TangleCatalogHttpAuthResolverRequest, cF as TangleCatalogHttpExecutorInvocation, cG as TangleCatalogHttpExecutorOptions, B as TangleCatalogInstalledPackageExecutorOptions, cH as TangleCatalogRuntimeActionRequest, C as TangleCatalogRuntimeHandlerOptions, D as TangleCatalogRuntimeHttpRequest, E as TangleCatalogRuntimeHttpResponse, F as TangleCatalogRuntimeInvocation, G as TangleCatalogRuntimeModuleAction, cI as TangleCatalogRuntimeNodeServerOptions, H as TangleCatalogRuntimePackageCoverageOptions, J as TangleCatalogRuntimePackageCoverageRow, cJ as TangleCatalogRuntimePackageManifest, cK as TangleCatalogRuntimePackageManifestOptions, cL as TangleCatalogRuntimePiece, cM as TangleCatalogRuntimeRequest, cN as TangleCatalogTriggerInvocation, cO as TangleIntegrationCatalogEntry, cP as TangleIntegrationCatalogFreshnessOptions, cQ as TangleIntegrationCatalogFreshnessResult, cR as TangleIntegrationContract, cS as TangleIntegrationContractStatus, cT as TangleIntegrationImplementationKind, cU as TangleIntegrationInvokeInput, cV as TangleIntegrationInvokeResult, cW as TangleIntegrationsClient, cX as TangleIntegrationsClientOptions, cY as WorkspaceCapability, cZ as WorkspaceCapabilityDiscovery, c_ as WorkspaceToolSchema, c$ as WorkspaceTrigger, d0 as adapterManifestsToConnectors, d1 as assertValidIntegrationManifest, am as assertValidIntegrationSpec, d2 as auditIntegrationCatalogFreshness, K as auditTangleCatalogRuntimePackages, d3 as auditTangleIntegrationCatalogFreshness, d4 as buildActivepiecesConnectors, d5 as buildActivepiecesRuntimeRequest, d6 as buildApprovalRequest, d7 as buildCanonicalLaunchConnectors, buildDefaultIntegrationRegistry, an as buildHealthcheckPlan, d8 as buildIntegrationBridgeEnvironment, d9 as buildIntegrationBridgePayload, d as buildIntegrationCatalogView, da as buildIntegrationCoverageConnectors, db as buildIntegrationInvocationEnvelope, e as buildIntegrationToolCatalog, dc as buildTangleCatalogRuntimePackageManifest, dd as buildTangleCatalogRuntimeRequest, de as buildTangleIntegrationCatalogConnectors, df as calendarExercisePlannerManifest, dg as canonicalActionConnectorId, canonicalConnectorId, composeIntegrationRegistry, ao as consoleStepsToText, dh as createActivepiecesExecutorProvider, di as createActivepiecesHttpExecutor, dj as createApprovalBackedPolicyEngine, dk as createAuditingActionGuard, dl as createCatalogExecutorProvider, dm as createConnectionCredentialResolver, dn as createConnectorAdapterCatalogSource, dp as createConnectorAdapterProvider, dq as createCredentialBackedAdapterProvider, dr as createDefaultIntegrationActionGuard, ds as createDefaultIntegrationPolicyEngine, dt as createGatewayCatalogProvider, du as createHttpIntegrationProvider, dv as createIntegrationAuditEvent, x as createIntegrationRuntime, dw as createIntegrationWorkflowRuntime, dx as createMockIntegrationProvider, dy as createPlatformIntegrationPolicyPreset, L as createTangleCatalogCredentialAuthResolver, dz as createTangleCatalogExecutorProvider, N as createTangleCatalogHttpAuthResolver, dA as createTangleCatalogHttpExecutor, O as createTangleCatalogInstalledPackageExecutor, P as createTangleCatalogRuntimeHandler, dB as createTangleCatalogRuntimeNodeRequestListener, dC as createTangleIntegrationsClient, dD as decodeIntegrationBridgePayload, dE as discoverWorkspaceCapabilities, dF as dispatchIntegrationInvocation, dG as encodeIntegrationBridgePayload, dH as explainMissingRequirements, dI as extractActivepiecesPublicPieceCount, dJ as extractExternalCatalogPublicCount, dK as filterDiscoveryByWorkspaceScopes, dL as getActivepiecesOverride, ap as getIntegrationFamily, aq as getIntegrationSpec, dM as healthcheckRequest, dN as importGraphqlConnector, dO as importMcpConnector, dP as importOpenApiConnector, dQ as inferIntegrationManifestFromTools, inferIntegrationSupportTier, dR as integrationCoverageChecklistMarkdown, ar as integrationSpecToConnector, i as integrationToolName, dS as invocationRequestFromEnvelope, dT as listActivepiecesCatalogEntries, as as listExecutableIntegrationSpecs, dU as listIntegrationCoverageSpecs, at as listIntegrationSpecs, dV as listTangleIntegrationCatalogEntries, dW as listTangleIntegrationCatalogRuntimePackages, dX as listTangleIntegrationContracts, dY as manifestToConnector, dZ as normalizeGatewayCatalog, d_ as normalizeIntegrationResult, d$ as parseIntegrationBridgeEnvironment, p as parseIntegrationToolName, e0 as receiveIntegrationWebhook, e1 as redactApprovalRequest, e2 as redactCapability, e3 as redactIntegrationBridgePayload, e4 as redactInvocationEnvelope, au as renderAgentToolDescription, e5 as renderApprovalCopy, e6 as renderConsentSummary, av as renderConsoleSteps, aw as renderRunbookMarkdown, e7 as renderTangleCatalogRuntimePnpmAddCommand, e8 as resolveConnectionCredentials, e9 as resolveIntegrationApproval, ea as revokeConnection, eb as runIntegrationHealthcheck, ec as runIntegrationHealthchecks, ed as sanitizeAuditConnection, ee as sanitizeConnection, s as searchIntegrationTools, ef as signActivepiecesRuntimeRequest, eg as signCapability, Q as signTangleCatalogRuntimeRequest, ax as specAuthToConnectorAuth, eh as startTangleCatalogRuntimeNodeServer, ei as storedEventToTriggerEvent, summarizeIntegrationRegistry, R as tangleCatalogAuthValue, t as toMcpTools, ay as validateCredentialFormat, az as validateCredentialSet, ej as validateIntegrationInvocationEnvelope, ek as validateIntegrationManifest, aA as validateIntegrationSpec, el as validateProviderPassthroughRequest, em as verifyActivepiecesRuntimeSignature, en as verifyCapabilityToken, S as verifyTangleCatalogRuntimeSignature } from './registry.js';
2
+ export { b as IntegrationErrorCode, I as IntegrationRuntimeError, a as IntegrationUserAction, N as NormalizedIntegrationError, n as normalizeIntegrationError, s as statusForCode } from './errors-Bg3_rxnQ.js';
2
3
  export { ConnectFlowOptions, FinishConnectInput, FinishConnectOutput, InMemoryConnectStateStore, StartConnectInput, StartConnectOutput, finishConnectFlow, revokeConnectFlow, startConnectFlow } from './connect/index.js';
3
4
  export { ExpressLikeRequest, ExpressLikeResponse, HonoLikeContext, RequireTangleAuthOptions, TangleAuthContext, TangleAuthOutcome, TangleAuthReason, expressTangleAuthMiddleware, extractToken, honoTangleAuthMiddleware, requireTangleAuth } from './middleware/index.js';
4
5
  export { A as AuthSpec, e as CASStrategy, f as Capability, g as CapabilityClass, h as CapabilityMutation, i as CapabilityMutationResult, j as CapabilityParameterSchema, k as CapabilityRead, l as CapabilityReadResult, C as ConnectorAdapter, d as ConnectorCredentials, m as ConnectorInvocation, n as ConnectorManifest, o as ConnectorManifestValidationIssue, p as ConnectorManifestValidationResult, q as ConsistencyModel, r as CredentialsExpired, D as DEFAULT_TANGLE_PLATFORM_URL, s as DataSourceMetadata, E as EventHandlerResult, I as InboundEvent, t as RateLimitSpec, R as ResolvedDataSource, u as ResourceContention, v as TANGLE_API_KEY_PREFIX, w as TANGLE_SERVICE_TOKEN_PREFIX, b as TangleIdentityClient, T as TangleIdentityOptions, x as TangleIdentityUnreachableError, c as TangleTokenVerifyFailure, y as TangleTokenVerifyResult, a as TangleUserSummary, z as TangleWorkspaceSummary, B as assertValidConnectorManifest, F as createTangleIdentityClient, G as tangleIdentity, H as validateConnectorManifest } from './tangle-id-CTU4kGId.js';
package/dist/index.js CHANGED
@@ -18,7 +18,6 @@ import {
18
18
  IntegrationError,
19
19
  IntegrationHub,
20
20
  IntegrationRuntime,
21
- IntegrationRuntimeError,
22
21
  IntegrationSandboxHost,
23
22
  IntegrationWorkflowRuntime,
24
23
  PROVIDER_PASSTHROUGH_ACTION,
@@ -98,7 +97,6 @@ import {
98
97
  listTangleIntegrationContracts,
99
98
  manifestToConnector,
100
99
  normalizeGatewayCatalog,
101
- normalizeIntegrationError,
102
100
  normalizeIntegrationResult,
103
101
  parseIntegrationBridgeEnvironment,
104
102
  parseIntegrationToolName,
@@ -122,7 +120,6 @@ import {
122
120
  signCapability,
123
121
  signTangleCatalogRuntimeRequest,
124
122
  startTangleCatalogRuntimeNodeServer,
125
- statusForCode,
126
123
  storedEventToTriggerEvent,
127
124
  summarizeIntegrationRegistry,
128
125
  tangleCatalogAuthValue,
@@ -133,13 +130,18 @@ import {
133
130
  verifyActivepiecesRuntimeSignature,
134
131
  verifyCapabilityToken,
135
132
  verifyTangleCatalogRuntimeSignature
136
- } from "./chunk-ICSBYCE2.js";
133
+ } from "./chunk-UWRYFPJW.js";
137
134
  import {
138
135
  expressTangleAuthMiddleware,
139
136
  extractToken,
140
137
  honoTangleAuthMiddleware,
141
138
  requireTangleAuth
142
139
  } from "./chunk-SVQ4PHDZ.js";
140
+ import {
141
+ IntegrationRuntimeError,
142
+ normalizeIntegrationError,
143
+ statusForCode
144
+ } from "./chunk-H4XYLS7T.js";
143
145
  import {
144
146
  INTEGRATION_FAMILIES,
145
147
  assertValidIntegrationSpec,
@@ -1,4 +1,5 @@
1
1
  import { C as ConnectorAdapter, R as ResolvedDataSource, d as ConnectorCredentials } from './tangle-id-CTU4kGId.js';
2
+ import './errors-Bg3_rxnQ.js';
2
3
  import './connect/index.js';
3
4
  import './middleware/index.js';
4
5
  import './connectors/index.js';
@@ -675,37 +676,6 @@ declare function filterDiscoveryByWorkspaceScopes(discovery: WorkspaceCapability
675
676
  denyByDefault?: boolean;
676
677
  }): WorkspaceCapabilityDiscovery;
677
678
 
678
- type IntegrationErrorCode = 'missing_connection' | 'missing_grant' | 'approval_required' | 'approval_denied' | 'connection_revoked' | 'connection_expired' | 'scope_missing' | 'action_denied' | 'action_not_found' | 'trigger_not_found' | 'provider_rate_limited' | 'provider_auth_failed' | 'provider_unavailable' | 'provider_error' | 'capability_expired' | 'capability_invalid' | 'manifest_invalid' | 'passthrough_disabled' | 'input_invalid' | 'unknown';
679
- interface IntegrationUserAction {
680
- type: 'connect' | 'reconnect' | 'approve' | 'retry' | 'contact_support' | 'change_request';
681
- label: string;
682
- connectorId?: string;
683
- approvalId?: string;
684
- }
685
- declare class IntegrationRuntimeError extends Error {
686
- readonly code: IntegrationErrorCode;
687
- readonly status: number;
688
- readonly userAction?: IntegrationUserAction;
689
- readonly metadata?: Record<string, unknown>;
690
- constructor(input: {
691
- code: IntegrationErrorCode;
692
- message: string;
693
- status?: number;
694
- userAction?: IntegrationUserAction;
695
- metadata?: Record<string, unknown>;
696
- });
697
- }
698
- interface NormalizedIntegrationError {
699
- ok: false;
700
- code: IntegrationErrorCode;
701
- message: string;
702
- status: number;
703
- userAction?: IntegrationUserAction;
704
- metadata?: Record<string, unknown>;
705
- }
706
- declare function normalizeIntegrationError(error: unknown): NormalizedIntegrationError;
707
- declare function statusForCode(code: IntegrationErrorCode): number;
708
-
709
679
  interface IntegrationWorkflowDefinition {
710
680
  id: string;
711
681
  title?: string;
@@ -2162,4 +2132,4 @@ declare function createHttpIntegrationProvider(options: HttpIntegrationProviderO
2162
2132
  declare function signCapability(capability: IntegrationCapability, secret: string): string;
2163
2133
  declare function verifyCapabilityToken(token: string, secret: string): IntegrationCapability;
2164
2134
 
2165
- export { type HealthcheckSpec as $, type TangleCatalogHttpAuthResolverRequest as A, type TangleCatalogInstalledPackageExecutorOptions as B, type TangleCatalogRuntimeHandlerOptions as C, type ComposeIntegrationRegistryOptions, type TangleCatalogRuntimeHttpRequest as D, type TangleCatalogRuntimeHttpResponse as E, type TangleCatalogRuntimeInvocation as F, type TangleCatalogRuntimeModuleAction as G, type TangleCatalogRuntimePackageCoverageOptions as H, type IntegrationCatalogView as I, type IntegrationCatalogSource, type IntegrationRegistry, type IntegrationRegistryConflict, type IntegrationRegistryEntry, type IntegrationRegistrySourceRef, type IntegrationRegistrySummary, type IntegrationSupportTier, type TangleCatalogRuntimePackageCoverageRow as J, auditTangleCatalogRuntimePackages as K, createTangleCatalogCredentialAuthResolver as L, type McpToolDefinition as M, createTangleCatalogHttpAuthResolver as N, createTangleCatalogInstalledPackageExecutor as O, createTangleCatalogRuntimeHandler as P, signTangleCatalogRuntimeRequest as Q, tangleCatalogAuthValue as R, verifyTangleCatalogRuntimeSignature as S, TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER as T, type ApiKeyAuthSpec as U, type ConsoleStep as V, type CredentialFieldSpec as W, type CredentialValidationInput as X, type CredentialValidationResult as Y, type CustomAuthSpec as Z, type HealthcheckPlan as _, type IntegrationToolDefinition as a, type GatewayCatalogProviderOptions as a$, type HmacAuthSpec as a0, INTEGRATION_FAMILIES as a1, type IntegrationAuthMode as a2, type IntegrationAuthSpec as a3, type IntegrationFamilyId as a4, type IntegrationFamilySpec as a5, type IntegrationLifecycleSpec as a6, type IntegrationPlannerHints as a7, type IntegrationSetupSpec as a8, type IntegrationSpec as a9, validateIntegrationSpec as aA, ACTIVEPIECES_OVERRIDES as aB, ACTIVEPIECES_PUBLIC_CATALOG_URL as aC, ACTIVEPIECES_RUNTIME_SIGNATURE_HEADER as aD, type ActivepiecesCatalogAuthField as aE, type ActivepiecesCatalogEntry as aF, type ActivepiecesExecutorInvocation as aG, type ActivepiecesExecutorProviderOptions as aH, type ActivepiecesHttpExecutorOptions as aI, type ActivepiecesPieceOverride as aJ, type ActivepiecesRuntimeRequest as aK, ApprovalBackedPolicyEngine as aL, type ApprovalBackedPolicyOptions as aM, CANONICAL_INTEGRATION_ACTIONS as aN, type CanonicalIntegrationActionId as aO, type CanonicalLaunchConnectorOptions as aP, type CatalogExecutorInvocation as aQ, type CatalogExecutorProviderOptions as aR, type CompleteAuthRequest as aS, type ConnectionCredentialResolverOptions as aT, type ConnectorAdapterProviderOptions as aU, type ConsentSummary as aV, DEFAULT_INTEGRATION_BRIDGE_ENV as aW, DefaultIntegrationActionGuard as aX, type DiscoverWorkspaceCapabilitiesInput as aY, type GatewayCatalogAction as aZ, type GatewayCatalogEntry as a_, type IntegrationSpecStatus as aa, type IntegrationSpecValidationIssue as ab, type IntegrationSpecValidationResult as ac, type NoneAuthSpec as ad, type NormalizedPermission as ae, type OAuth2AuthSpec as af, type PermissionDescriptor as ag, type PostSetupCheck as ah, type Quirk as ai, type RenderSpecOptions as aj, type RenderedConsoleStep as ak, type ScopeDescriptor as al, assertValidIntegrationSpec as am, buildHealthcheckPlan as an, consoleStepsToText as ao, getIntegrationFamily as ap, getIntegrationSpec as aq, integrationSpecToConnector as ar, listExecutableIntegrationSpecs as as, listIntegrationSpecs as at, renderAgentToolDescription as au, renderConsoleSteps as av, renderRunbookMarkdown as aw, specAuthToConnectorAuth as ax, validateCredentialFormat as ay, validateCredentialSet as az, type IntegrationToolSearchFilters as b, type IntegrationProvider as b$, type GatewayCatalogTrigger as b0, type GraphqlOperationSpec as b1, type HttpIntegrationProviderOptions as b2, type ImportCatalogOptions as b3, InMemoryConnectionStore as b4, InMemoryIntegrationApprovalStore as b5, InMemoryIntegrationAuditStore as b6, InMemoryIntegrationEventStore as b7, InMemoryIntegrationHealthcheckStore as b8, InMemoryIntegrationIdempotencyStore as b9, type IntegrationConnection as bA, type IntegrationConnectionStore as bB, type IntegrationConnector as bC, type IntegrationConnectorAction as bD, type IntegrationConnectorCategory as bE, type IntegrationConnectorTrigger as bF, type IntegrationCoveragePriority as bG, type IntegrationCoverageSpec as bH, type IntegrationDataClass as bI, IntegrationError as bJ, type IntegrationErrorCode as bK, type IntegrationEventStore as bL, type IntegrationGuardContext as bM, type IntegrationHealthcheckCheck as bN, type IntegrationHealthcheckResult as bO, type IntegrationHealthcheckStatus as bP, type IntegrationHealthcheckStore as bQ, IntegrationHub as bR, type IntegrationHubOptions as bS, type IntegrationIdempotencyRecord as bT, type IntegrationIdempotencyStore as bU, type IntegrationInvocationEnvelope as bV, type IntegrationInvocationEnvelopeValidationOptions as bW, type IntegrationPolicyDecision as bX, type IntegrationPolicyEffect as bY, type IntegrationPolicyEngine as bZ, type IntegrationPolicyRule as b_, InMemoryIntegrationSecretStore as ba, InMemoryIntegrationWorkflowStore as bb, type InferIntegrationRequirementsOptions as bc, type InstalledIntegrationWorkflow as bd, type IntegrationActionGuard as be, type IntegrationActionPack as bf, type IntegrationActionRequest as bg, type IntegrationActionResult as bh, type IntegrationActionRisk as bi, type IntegrationActor as bj, type IntegrationApprovalFilter as bk, type IntegrationApprovalRecord as bl, type IntegrationApprovalRequest as bm, type IntegrationApprovalResolution as bn, type IntegrationApprovalStatus as bo, type IntegrationApprovalStore as bp, type IntegrationAuditEvent as bq, type IntegrationAuditEventType as br, type IntegrationAuditFilter as bs, type IntegrationAuditSink as bt, type IntegrationAuditStore as bu, buildDefaultIntegrationRegistry, type IntegrationBridgePayload as bv, type IntegrationBridgeToolBinding as bw, type IntegrationCapability as bx, type IntegrationCatalogFreshnessOptions as by, type IntegrationCatalogFreshnessResult as bz, type IntegrationToolSearchResult as c, type TangleIntegrationsClientOptions as c$, type IntegrationProviderKind as c0, type IntegrationRateLimitDecision as c1, type IntegrationRateLimiter as c2, IntegrationRuntimeError as c3, IntegrationSandboxHost as c4, type IntegrationSandboxHostHub as c5, type IntegrationSandboxHostOptions as c6, type IntegrationSecretStore as c7, type IntegrationTriggerEvent as c8, type IntegrationTriggerSubscription as c9, type StartAuthResult as cA, type StartedTangleCatalogRuntimeNodeServer as cB, StaticIntegrationPolicyEngine as cC, type StaticIntegrationPolicyOptions as cD, type StoredIntegrationEvent as cE, TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID as cF, TANGLE_INTEGRATIONS_CATALOG_SOURCE as cG, type TangleCatalogExecutorInvocation as cH, type TangleCatalogExecutorProviderOptions as cI, type TangleCatalogHttpExecutorInvocation as cJ, type TangleCatalogHttpExecutorOptions as cK, type TangleCatalogRuntimeActionRequest as cL, type TangleCatalogRuntimeNodeServerOptions as cM, type TangleCatalogRuntimePackageManifest as cN, type TangleCatalogRuntimePackageManifestOptions as cO, type TangleCatalogRuntimePiece as cP, type TangleCatalogRuntimeRequest as cQ, type TangleCatalogTriggerInvocation as cR, type TangleIntegrationCatalogEntry as cS, type TangleIntegrationCatalogFreshnessOptions as cT, type TangleIntegrationCatalogFreshnessResult as cU, type TangleIntegrationContract as cV, type TangleIntegrationContractStatus as cW, type TangleIntegrationImplementationKind as cX, type TangleIntegrationInvokeInput as cY, type TangleIntegrationInvokeResult as cZ, TangleIntegrationsClient as c_, type IntegrationUserAction as ca, canonicalConnectorId, type IntegrationWebhookReceiverResult as cb, type IntegrationWorkflowDefinition as cc, IntegrationWorkflowRuntime as cd, type IntegrationWorkflowRuntimeHub as ce, type IntegrationWorkflowRuntimeOptions as cf, type IntegrationWorkflowStore as cg, type InvokeWithCapabilityRequest as ch, type IssueCapabilityRequest as ci, type IssuedIntegrationCapability as cj, type ManifestValidationIssue as ck, type ManifestValidationResult as cl, type McpCatalog as cm, type McpCatalogTool as cn, type MissingRequirementExplanation as co, composeIntegrationRegistry, type NormalizedIntegrationError as cp, type NormalizedIntegrationResult as cq, type OpenApiDocument as cr, type OpenApiOperation as cs, PROVIDER_PASSTHROUGH_ACTION as ct, type PlatformIntegrationPolicyPresetOptions as cu, type ProviderHttpRequestInput as cv, type ProviderPassthroughPolicy as cw, type RenderConsentOptions as cx, type SecretRef as cy, type StartAuthRequest as cz, buildIntegrationCatalogView as d, listTangleIntegrationContracts as d$, type WorkspaceCapability as d0, type WorkspaceCapabilityDiscovery as d1, type WorkspaceToolSchema as d2, type WorkspaceTrigger as d3, adapterManifestsToConnectors as d4, assertValidIntegrationManifest as d5, auditIntegrationCatalogFreshness as d6, auditTangleIntegrationCatalogFreshness as d7, buildActivepiecesConnectors as d8, buildActivepiecesRuntimeRequest as d9, createIntegrationWorkflowRuntime as dA, createMockIntegrationProvider as dB, createPlatformIntegrationPolicyPreset as dC, createTangleCatalogExecutorProvider as dD, createTangleCatalogHttpExecutor as dE, createTangleCatalogRuntimeNodeRequestListener as dF, createTangleIntegrationsClient as dG, decodeIntegrationBridgePayload as dH, discoverWorkspaceCapabilities as dI, dispatchIntegrationInvocation as dJ, encodeIntegrationBridgePayload as dK, explainMissingRequirements as dL, extractActivepiecesPublicPieceCount as dM, extractExternalCatalogPublicCount as dN, filterDiscoveryByWorkspaceScopes as dO, getActivepiecesOverride as dP, healthcheckRequest as dQ, importGraphqlConnector as dR, importMcpConnector as dS, importOpenApiConnector as dT, inferIntegrationManifestFromTools as dU, integrationCoverageChecklistMarkdown as dV, invocationRequestFromEnvelope as dW, listActivepiecesCatalogEntries as dX, listIntegrationCoverageSpecs as dY, listTangleIntegrationCatalogEntries as dZ, listTangleIntegrationCatalogRuntimePackages as d_, buildApprovalRequest as da, buildCanonicalLaunchConnectors as db, buildIntegrationBridgeEnvironment as dc, buildIntegrationBridgePayload as dd, buildIntegrationCoverageConnectors as de, buildIntegrationInvocationEnvelope as df, buildTangleCatalogRuntimePackageManifest as dg, buildTangleCatalogRuntimeRequest as dh, buildTangleIntegrationCatalogConnectors as di, calendarExercisePlannerManifest as dj, canonicalActionConnectorId as dk, createActivepiecesExecutorProvider as dl, createActivepiecesHttpExecutor as dm, createApprovalBackedPolicyEngine as dn, createAuditingActionGuard as dp, createCatalogExecutorProvider as dq, createConnectionCredentialResolver as dr, createConnectorAdapterCatalogSource as ds, createConnectorAdapterProvider as dt, createCredentialBackedAdapterProvider as du, createDefaultIntegrationActionGuard as dv, createDefaultIntegrationPolicyEngine as dw, createGatewayCatalogProvider as dx, createHttpIntegrationProvider as dy, createIntegrationAuditEvent as dz, buildIntegrationToolCatalog as e, manifestToConnector as e0, normalizeGatewayCatalog as e1, normalizeIntegrationError as e2, normalizeIntegrationResult as e3, parseIntegrationBridgeEnvironment as e4, receiveIntegrationWebhook as e5, redactApprovalRequest as e6, redactCapability as e7, redactIntegrationBridgePayload as e8, redactInvocationEnvelope as e9, renderApprovalCopy as ea, renderConsentSummary as eb, renderTangleCatalogRuntimePnpmAddCommand as ec, resolveConnectionCredentials as ed, resolveIntegrationApproval as ee, revokeConnection as ef, runIntegrationHealthcheck as eg, runIntegrationHealthchecks as eh, sanitizeAuditConnection as ei, sanitizeConnection as ej, signActivepiecesRuntimeRequest as ek, signCapability as el, startTangleCatalogRuntimeNodeServer as em, statusForCode as en, storedEventToTriggerEvent as eo, validateIntegrationInvocationEnvelope as ep, validateIntegrationManifest as eq, validateProviderPassthroughRequest as er, verifyActivepiecesRuntimeSignature as es, verifyCapabilityToken as et, 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 TangleCatalogAuthResolverOptions as y, type TangleCatalogHttpAuthResolverOptions as z };
2135
+ export { type HealthcheckSpec as $, type TangleCatalogHttpAuthResolverRequest as A, type TangleCatalogInstalledPackageExecutorOptions as B, type TangleCatalogRuntimeHandlerOptions as C, type ComposeIntegrationRegistryOptions, type TangleCatalogRuntimeHttpRequest as D, type TangleCatalogRuntimeHttpResponse as E, type TangleCatalogRuntimeInvocation as F, type TangleCatalogRuntimeModuleAction as G, type TangleCatalogRuntimePackageCoverageOptions as H, type IntegrationCatalogView as I, type IntegrationCatalogSource, type IntegrationRegistry, type IntegrationRegistryConflict, type IntegrationRegistryEntry, type IntegrationRegistrySourceRef, type IntegrationRegistrySummary, type IntegrationSupportTier, type TangleCatalogRuntimePackageCoverageRow as J, auditTangleCatalogRuntimePackages as K, createTangleCatalogCredentialAuthResolver as L, type McpToolDefinition as M, createTangleCatalogHttpAuthResolver as N, createTangleCatalogInstalledPackageExecutor as O, createTangleCatalogRuntimeHandler as P, signTangleCatalogRuntimeRequest as Q, tangleCatalogAuthValue as R, verifyTangleCatalogRuntimeSignature as S, TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER as T, type ApiKeyAuthSpec as U, type ConsoleStep as V, type CredentialFieldSpec as W, type CredentialValidationInput as X, type CredentialValidationResult as Y, type CustomAuthSpec as Z, type HealthcheckPlan as _, type IntegrationToolDefinition as a, type GatewayCatalogProviderOptions as a$, type HmacAuthSpec as a0, INTEGRATION_FAMILIES as a1, type IntegrationAuthMode as a2, type IntegrationAuthSpec as a3, type IntegrationFamilyId as a4, type IntegrationFamilySpec as a5, type IntegrationLifecycleSpec as a6, type IntegrationPlannerHints as a7, type IntegrationSetupSpec as a8, type IntegrationSpec as a9, validateIntegrationSpec as aA, ACTIVEPIECES_OVERRIDES as aB, ACTIVEPIECES_PUBLIC_CATALOG_URL as aC, ACTIVEPIECES_RUNTIME_SIGNATURE_HEADER as aD, type ActivepiecesCatalogAuthField as aE, type ActivepiecesCatalogEntry as aF, type ActivepiecesExecutorInvocation as aG, type ActivepiecesExecutorProviderOptions as aH, type ActivepiecesHttpExecutorOptions as aI, type ActivepiecesPieceOverride as aJ, type ActivepiecesRuntimeRequest as aK, ApprovalBackedPolicyEngine as aL, type ApprovalBackedPolicyOptions as aM, CANONICAL_INTEGRATION_ACTIONS as aN, type CanonicalIntegrationActionId as aO, type CanonicalLaunchConnectorOptions as aP, type CatalogExecutorInvocation as aQ, type CatalogExecutorProviderOptions as aR, type CompleteAuthRequest as aS, type ConnectionCredentialResolverOptions as aT, type ConnectorAdapterProviderOptions as aU, type ConsentSummary as aV, DEFAULT_INTEGRATION_BRIDGE_ENV as aW, DefaultIntegrationActionGuard as aX, type DiscoverWorkspaceCapabilitiesInput as aY, type GatewayCatalogAction as aZ, type GatewayCatalogEntry as a_, type IntegrationSpecStatus as aa, type IntegrationSpecValidationIssue as ab, type IntegrationSpecValidationResult as ac, type NoneAuthSpec as ad, type NormalizedPermission as ae, type OAuth2AuthSpec as af, type PermissionDescriptor as ag, type PostSetupCheck as ah, type Quirk as ai, type RenderSpecOptions as aj, type RenderedConsoleStep as ak, type ScopeDescriptor as al, assertValidIntegrationSpec as am, buildHealthcheckPlan as an, consoleStepsToText as ao, getIntegrationFamily as ap, getIntegrationSpec as aq, integrationSpecToConnector as ar, listExecutableIntegrationSpecs as as, listIntegrationSpecs as at, renderAgentToolDescription as au, renderConsoleSteps as av, renderRunbookMarkdown as aw, specAuthToConnectorAuth as ax, validateCredentialFormat as ay, validateCredentialSet as az, type IntegrationToolSearchFilters as b, type IntegrationProviderKind as b$, type GatewayCatalogTrigger as b0, type GraphqlOperationSpec as b1, type HttpIntegrationProviderOptions as b2, type ImportCatalogOptions as b3, InMemoryConnectionStore as b4, InMemoryIntegrationApprovalStore as b5, InMemoryIntegrationAuditStore as b6, InMemoryIntegrationEventStore as b7, InMemoryIntegrationHealthcheckStore as b8, InMemoryIntegrationIdempotencyStore as b9, type IntegrationConnection as bA, type IntegrationConnectionStore as bB, type IntegrationConnector as bC, type IntegrationConnectorAction as bD, type IntegrationConnectorCategory as bE, type IntegrationConnectorTrigger as bF, type IntegrationCoveragePriority as bG, type IntegrationCoverageSpec as bH, type IntegrationDataClass as bI, IntegrationError as bJ, type IntegrationEventStore as bK, type IntegrationGuardContext as bL, type IntegrationHealthcheckCheck as bM, type IntegrationHealthcheckResult as bN, type IntegrationHealthcheckStatus as bO, type IntegrationHealthcheckStore as bP, IntegrationHub as bQ, type IntegrationHubOptions as bR, type IntegrationIdempotencyRecord as bS, type IntegrationIdempotencyStore as bT, type IntegrationInvocationEnvelope as bU, type IntegrationInvocationEnvelopeValidationOptions as bV, type IntegrationPolicyDecision as bW, type IntegrationPolicyEffect as bX, type IntegrationPolicyEngine as bY, type IntegrationPolicyRule as bZ, type IntegrationProvider as b_, InMemoryIntegrationSecretStore as ba, InMemoryIntegrationWorkflowStore as bb, type InferIntegrationRequirementsOptions as bc, type InstalledIntegrationWorkflow as bd, type IntegrationActionGuard as be, type IntegrationActionPack as bf, type IntegrationActionRequest as bg, type IntegrationActionResult as bh, type IntegrationActionRisk as bi, type IntegrationActor as bj, type IntegrationApprovalFilter as bk, type IntegrationApprovalRecord as bl, type IntegrationApprovalRequest as bm, type IntegrationApprovalResolution as bn, type IntegrationApprovalStatus as bo, type IntegrationApprovalStore as bp, type IntegrationAuditEvent as bq, type IntegrationAuditEventType as br, type IntegrationAuditFilter as bs, type IntegrationAuditSink as bt, type IntegrationAuditStore as bu, buildDefaultIntegrationRegistry, type IntegrationBridgePayload as bv, type IntegrationBridgeToolBinding as bw, type IntegrationCapability as bx, type IntegrationCatalogFreshnessOptions as by, type IntegrationCatalogFreshnessResult as bz, type IntegrationToolSearchResult as c, type WorkspaceTrigger as c$, type IntegrationRateLimitDecision as c0, type IntegrationRateLimiter as c1, IntegrationSandboxHost as c2, type IntegrationSandboxHostHub as c3, type IntegrationSandboxHostOptions as c4, type IntegrationSecretStore as c5, type IntegrationTriggerEvent as c6, type IntegrationTriggerSubscription as c7, type IntegrationWebhookReceiverResult as c8, type IntegrationWorkflowDefinition as c9, type StoredIntegrationEvent as cA, TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID as cB, TANGLE_INTEGRATIONS_CATALOG_SOURCE as cC, type TangleCatalogExecutorInvocation as cD, type TangleCatalogExecutorProviderOptions as cE, type TangleCatalogHttpExecutorInvocation as cF, type TangleCatalogHttpExecutorOptions as cG, type TangleCatalogRuntimeActionRequest as cH, type TangleCatalogRuntimeNodeServerOptions as cI, type TangleCatalogRuntimePackageManifest as cJ, type TangleCatalogRuntimePackageManifestOptions as cK, type TangleCatalogRuntimePiece as cL, type TangleCatalogRuntimeRequest as cM, type TangleCatalogTriggerInvocation as cN, type TangleIntegrationCatalogEntry as cO, type TangleIntegrationCatalogFreshnessOptions as cP, type TangleIntegrationCatalogFreshnessResult as cQ, type TangleIntegrationContract as cR, type TangleIntegrationContractStatus as cS, type TangleIntegrationImplementationKind as cT, type TangleIntegrationInvokeInput as cU, type TangleIntegrationInvokeResult as cV, TangleIntegrationsClient as cW, type TangleIntegrationsClientOptions as cX, type WorkspaceCapability as cY, type WorkspaceCapabilityDiscovery as cZ, type WorkspaceToolSchema as c_, IntegrationWorkflowRuntime as ca, canonicalConnectorId, type IntegrationWorkflowRuntimeHub as cb, type IntegrationWorkflowRuntimeOptions as cc, type IntegrationWorkflowStore as cd, type InvokeWithCapabilityRequest as ce, type IssueCapabilityRequest as cf, type IssuedIntegrationCapability as cg, type ManifestValidationIssue as ch, type ManifestValidationResult as ci, type McpCatalog as cj, type McpCatalogTool as ck, type MissingRequirementExplanation as cl, type NormalizedIntegrationResult as cm, type OpenApiDocument as cn, type OpenApiOperation as co, composeIntegrationRegistry, PROVIDER_PASSTHROUGH_ACTION as cp, type PlatformIntegrationPolicyPresetOptions as cq, type ProviderHttpRequestInput as cr, type ProviderPassthroughPolicy as cs, type RenderConsentOptions as ct, type SecretRef as cu, type StartAuthRequest as cv, type StartAuthResult as cw, type StartedTangleCatalogRuntimeNodeServer as cx, StaticIntegrationPolicyEngine as cy, type StaticIntegrationPolicyOptions as cz, buildIntegrationCatalogView as d, parseIntegrationBridgeEnvironment as d$, adapterManifestsToConnectors as d0, assertValidIntegrationManifest as d1, auditIntegrationCatalogFreshness as d2, auditTangleIntegrationCatalogFreshness as d3, buildActivepiecesConnectors as d4, buildActivepiecesRuntimeRequest as d5, buildApprovalRequest as d6, buildCanonicalLaunchConnectors as d7, buildIntegrationBridgeEnvironment as d8, buildIntegrationBridgePayload as d9, createTangleCatalogHttpExecutor as dA, createTangleCatalogRuntimeNodeRequestListener as dB, createTangleIntegrationsClient as dC, decodeIntegrationBridgePayload as dD, discoverWorkspaceCapabilities as dE, dispatchIntegrationInvocation as dF, encodeIntegrationBridgePayload as dG, explainMissingRequirements as dH, extractActivepiecesPublicPieceCount as dI, extractExternalCatalogPublicCount as dJ, filterDiscoveryByWorkspaceScopes as dK, getActivepiecesOverride as dL, healthcheckRequest as dM, importGraphqlConnector as dN, importMcpConnector as dO, importOpenApiConnector as dP, inferIntegrationManifestFromTools as dQ, integrationCoverageChecklistMarkdown as dR, invocationRequestFromEnvelope as dS, listActivepiecesCatalogEntries as dT, listIntegrationCoverageSpecs as dU, listTangleIntegrationCatalogEntries as dV, listTangleIntegrationCatalogRuntimePackages as dW, listTangleIntegrationContracts as dX, manifestToConnector as dY, normalizeGatewayCatalog as dZ, normalizeIntegrationResult as d_, buildIntegrationCoverageConnectors as da, buildIntegrationInvocationEnvelope as db, buildTangleCatalogRuntimePackageManifest as dc, buildTangleCatalogRuntimeRequest as dd, buildTangleIntegrationCatalogConnectors as de, calendarExercisePlannerManifest as df, canonicalActionConnectorId as dg, createActivepiecesExecutorProvider as dh, createActivepiecesHttpExecutor as di, createApprovalBackedPolicyEngine as dj, createAuditingActionGuard as dk, createCatalogExecutorProvider as dl, createConnectionCredentialResolver as dm, createConnectorAdapterCatalogSource as dn, createConnectorAdapterProvider as dp, createCredentialBackedAdapterProvider as dq, createDefaultIntegrationActionGuard as dr, createDefaultIntegrationPolicyEngine as ds, createGatewayCatalogProvider as dt, createHttpIntegrationProvider as du, createIntegrationAuditEvent as dv, createIntegrationWorkflowRuntime as dw, createMockIntegrationProvider as dx, createPlatformIntegrationPolicyPreset as dy, createTangleCatalogExecutorProvider as dz, buildIntegrationToolCatalog as e, receiveIntegrationWebhook as e0, redactApprovalRequest as e1, redactCapability as e2, redactIntegrationBridgePayload as e3, redactInvocationEnvelope as e4, renderApprovalCopy as e5, renderConsentSummary as e6, renderTangleCatalogRuntimePnpmAddCommand as e7, resolveConnectionCredentials as e8, resolveIntegrationApproval as e9, revokeConnection as ea, runIntegrationHealthcheck as eb, runIntegrationHealthchecks as ec, sanitizeAuditConnection as ed, sanitizeConnection as ee, signActivepiecesRuntimeRequest as ef, signCapability as eg, startTangleCatalogRuntimeNodeServer as eh, storedEventToTriggerEvent as ei, validateIntegrationInvocationEnvelope as ej, validateIntegrationManifest as ek, validateProviderPassthroughRequest as el, verifyActivepiecesRuntimeSignature as em, verifyCapabilityToken as en, 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 TangleCatalogAuthResolverOptions as y, type TangleCatalogHttpAuthResolverOptions as z };
package/dist/registry.js CHANGED
@@ -4,8 +4,9 @@ import {
4
4
  composeIntegrationRegistry,
5
5
  inferIntegrationSupportTier,
6
6
  summarizeIntegrationRegistry
7
- } from "./chunk-ICSBYCE2.js";
7
+ } from "./chunk-UWRYFPJW.js";
8
8
  import "./chunk-SVQ4PHDZ.js";
9
+ import "./chunk-H4XYLS7T.js";
9
10
  import "./chunk-4JQ754PA.js";
10
11
  import "./chunk-376UBTNB.js";
11
12
  import "./chunk-JU25UDN2.js";
@@ -0,0 +1,149 @@
1
+ /**
2
+ * @stable Provider-agnostic inbound webhook router.
3
+ *
4
+ * Consumer hooks a single HTTP handler at `/webhook/:provider/:event`
5
+ * (or whatever pathing they prefer) and forwards the request through
6
+ * `WebhookRouter.handle()`. The router:
7
+ *
8
+ * 1. Resolves the registered provider entry.
9
+ * 2. Calls the provider's `verifySignature(rawBody, headers, secrets)`.
10
+ * Failure → 401 fast, no downstream work.
11
+ * 3. Calls the provider's `parse(rawBody, headers)` to extract zero or
12
+ * more normalized events.
13
+ * 4. Enqueues each event for async processing via the consumer-supplied
14
+ * `deliver(event)` callback (best-effort fire-and-forget — the
15
+ * router does NOT block the HTTP response on the consumer's work).
16
+ * 5. Returns 200 fast with `{received: events.length}`.
17
+ *
18
+ * Replay protection: providers that sign timestamps (Stripe, Slack)
19
+ * already reject stale signatures inside `verifySignature`. For providers
20
+ * that don't (DocuSeal, GDrive push), the router exposes a pluggable
21
+ * `idempotency` hook: if `idempotency.seen(providerEventId)` returns
22
+ * true, the router 200s without invoking `deliver()`. Consumers wire
23
+ * this to a durable kv (D1 / Redis / Postgres unique-index).
24
+ *
25
+ * Why a router and not a per-provider express app: the runtime contract
26
+ * a product cares about is "an inbound event came in, here's the
27
+ * normalized envelope". Verification, parsing, and idempotency-dedup
28
+ * are mechanical and provider-specific — the router owns them. The
29
+ * consumer's `deliver()` is the only place product logic runs.
30
+ *
31
+ * Stability: `@stable` — additions to `WebhookEnvelope` must be
32
+ * additive; the router's HTTP contract (paths, status codes) is frozen
33
+ * at 200 (ok), 400 (bad request), 401 (bad signature), 404 (unknown
34
+ * provider), 405 (provider has no inbound surface).
35
+ */
36
+ interface WebhookHeaders {
37
+ [name: string]: string | string[] | undefined;
38
+ }
39
+ /** Normalized inbound event the router emits after parsing. */
40
+ interface WebhookEnvelope<TPayload = unknown> {
41
+ /** Provider id (matches the `:provider` path segment). */
42
+ provider: string;
43
+ /** Optional event class — e.g., 'customer.subscription.deleted'. The
44
+ * provider's parser decides. Used for routing inside `deliver()`. */
45
+ eventType: string;
46
+ /** Provider-emitted event id, when present. Used for the idempotency
47
+ * short-circuit. */
48
+ providerEventId?: string;
49
+ /** Wall-clock receive time. */
50
+ receivedAt: number;
51
+ /** Provider payload, normalized to the provider's documented event
52
+ * shape. The router does NOT reshape this — `parse()` is the contract. */
53
+ payload: TPayload;
54
+ /** Headers passed through for downstream handlers that want them
55
+ * (e.g., to extract custom routing metadata). Always lowercased keys. */
56
+ headers: Record<string, string>;
57
+ }
58
+ type SignatureVerification = {
59
+ valid: true;
60
+ } | {
61
+ valid: false;
62
+ reason: string;
63
+ };
64
+ /** Per-provider plug-in. Stateless — the router calls `verifySignature`
65
+ * then `parse` on every request. The provider's HTTP-shape concerns
66
+ * (e.g., raw body required) are documented per provider. */
67
+ interface WebhookProvider {
68
+ /** Stable provider id (`stripe`, `docuseal`, `gdrive`, ...). */
69
+ id: string;
70
+ /** Verify the inbound signature. Receives the EXACT raw body string —
71
+ * consumers MUST preserve raw bytes through their HTTP server (do not
72
+ * parse JSON before forwarding here). */
73
+ verifySignature(input: {
74
+ rawBody: string;
75
+ headers: WebhookHeaders;
76
+ secret: string;
77
+ }): SignatureVerification;
78
+ /** Parse the validated raw body into zero or more normalized events.
79
+ * A single push payload may carry multiple events (e.g., Slack bulk
80
+ * delivery). Return [] to ack the push as a no-op. */
81
+ parse(input: {
82
+ rawBody: string;
83
+ headers: WebhookHeaders;
84
+ now?: number;
85
+ }): WebhookEnvelope[] | Promise<WebhookEnvelope[]>;
86
+ }
87
+ interface WebhookIdempotencyStore {
88
+ /** Returns true if this providerEventId has been processed already.
89
+ * Implementations should be O(1) (Redis SETNX, D1 UNIQUE constraint). */
90
+ seen(providerEventId: string): Promise<boolean> | boolean;
91
+ /** Marks a providerEventId as processed. Called AFTER `deliver()` has
92
+ * been invoked. */
93
+ remember(providerEventId: string, ttlMs: number): Promise<void> | void;
94
+ }
95
+ interface WebhookRouterOptions {
96
+ /** Provider registry. Pass any number of providers; routing is by id. */
97
+ providers: WebhookProvider[];
98
+ /** Async callback invoked with every accepted event. Fire-and-forget
99
+ * from the router's perspective — the HTTP response is sent before
100
+ * this resolves. Throws are caught and reported via `onError`. */
101
+ deliver(event: WebhookEnvelope): Promise<void> | void;
102
+ /** Resolve the signing secret for a provider id at request time. The
103
+ * router never holds secrets — the consumer's vault resolves them. */
104
+ resolveSecret(providerId: string, headers: WebhookHeaders): Promise<string | null> | string | null;
105
+ /** Optional idempotency-dedup hook. Required for providers that don't
106
+ * sign timestamps in their signature scheme (DocuSeal, Drive push). */
107
+ idempotency?: WebhookIdempotencyStore;
108
+ /** TTL on idempotency entries. Default 7 days — long enough that a
109
+ * provider's normal retry-window can't re-deliver. */
110
+ idempotencyTtlMs?: number;
111
+ /** Surface delivery errors. Default: console.error. */
112
+ onError?(err: unknown, context: {
113
+ provider: string;
114
+ eventType?: string;
115
+ providerEventId?: string;
116
+ }): void;
117
+ /** Override `now()` for tests. */
118
+ now?(): number;
119
+ }
120
+ interface WebhookRouterRequest {
121
+ providerId: string;
122
+ rawBody: string;
123
+ headers: WebhookHeaders;
124
+ }
125
+ interface WebhookRouterResponse {
126
+ status: number;
127
+ body: unknown;
128
+ headers?: Record<string, string>;
129
+ }
130
+ /**
131
+ * Router instance. Stateless aside from the provider registry — safe to
132
+ * share across requests; build once per process.
133
+ */
134
+ declare class WebhookRouter {
135
+ private readonly providers;
136
+ private readonly deliver;
137
+ private readonly resolveSecret;
138
+ private readonly idempotency?;
139
+ private readonly idempotencyTtlMs;
140
+ private readonly onError;
141
+ private readonly nowFn;
142
+ constructor(opts: WebhookRouterOptions);
143
+ /** Process one inbound webhook request. Pure with respect to side-
144
+ * effects on the router instance — safe to call concurrently. */
145
+ handle(request: WebhookRouterRequest): Promise<WebhookRouterResponse>;
146
+ private deliverEach;
147
+ }
148
+
149
+ export { type SignatureVerification as S, type WebhookProvider as W, type WebhookEnvelope as a, type WebhookHeaders as b, type WebhookIdempotencyStore as c, WebhookRouter as d, type WebhookRouterOptions as e, type WebhookRouterRequest as f, type WebhookRouterResponse as g };
package/dist/runtime.d.ts CHANGED
@@ -1,5 +1,6 @@
1
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
2
  import './tangle-id-CTU4kGId.js';
3
+ import './errors-Bg3_rxnQ.js';
3
4
  import './connect/index.js';
4
5
  import './middleware/index.js';
5
6
  import './connectors/index.js';
package/dist/runtime.js CHANGED
@@ -2,8 +2,9 @@ import {
2
2
  InMemoryIntegrationGrantStore,
3
3
  IntegrationRuntime,
4
4
  createIntegrationRuntime
5
- } from "./chunk-ICSBYCE2.js";
5
+ } from "./chunk-UWRYFPJW.js";
6
6
  import "./chunk-SVQ4PHDZ.js";
7
+ import "./chunk-H4XYLS7T.js";
7
8
  import "./chunk-4JQ754PA.js";
8
9
  import "./chunk-376UBTNB.js";
9
10
  import "./chunk-JU25UDN2.js";
package/dist/specs.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { U as ApiKeyAuthSpec, V as ConsoleStep, W as CredentialFieldSpec, X as CredentialValidationInput, Y as CredentialValidationResult, Z as CustomAuthSpec, _ as HealthcheckPlan, $ as HealthcheckSpec, a0 as HmacAuthSpec, a1 as INTEGRATION_FAMILIES, a2 as IntegrationAuthMode, a3 as IntegrationAuthSpec, a4 as IntegrationFamilyId, a5 as IntegrationFamilySpec, a6 as IntegrationLifecycleSpec, a7 as IntegrationPlannerHints, a8 as IntegrationSetupSpec, a9 as IntegrationSpec, aa as IntegrationSpecStatus, ab as IntegrationSpecValidationIssue, ac as IntegrationSpecValidationResult, ad as NoneAuthSpec, ae as NormalizedPermission, af as OAuth2AuthSpec, ag as PermissionDescriptor, ah as PostSetupCheck, ai as Quirk, aj as RenderSpecOptions, ak as RenderedConsoleStep, al as ScopeDescriptor, am as assertValidIntegrationSpec, an as buildHealthcheckPlan, ao as consoleStepsToText, ap as getIntegrationFamily, aq as getIntegrationSpec, ar as integrationSpecToConnector, as as listExecutableIntegrationSpecs, at as listIntegrationSpecs, au as renderAgentToolDescription, av as renderConsoleSteps, aw as renderRunbookMarkdown, ax as specAuthToConnectorAuth, ay as validateCredentialFormat, az as validateCredentialSet, aA as validateIntegrationSpec } from './registry.js';
2
2
  import './tangle-id-CTU4kGId.js';
3
+ import './errors-Bg3_rxnQ.js';
3
4
  import './connect/index.js';
4
5
  import './middleware/index.js';
5
6
  import './connectors/index.js';