@tangle-network/agent-integrations 0.26.0 → 0.27.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.
- package/dist/bin/tangle-catalog-runtime.js +5 -2
- package/dist/bin/tangle-catalog-runtime.js.map +1 -1
- package/dist/catalog.d.ts +4 -1
- package/dist/catalog.js +5 -2
- package/dist/chunk-ATYHZXLL.js +457 -0
- package/dist/chunk-ATYHZXLL.js.map +1 -0
- package/dist/{chunk-ALCIWTIR.js → chunk-ICSBYCE2.js} +27 -1
- package/dist/chunk-ICSBYCE2.js.map +1 -0
- package/dist/{chunk-GA4VTE3U.js → chunk-JU25UDN2.js} +5 -58
- package/dist/chunk-JU25UDN2.js.map +1 -0
- package/dist/chunk-P24T3MLM.js +106 -0
- package/dist/chunk-P24T3MLM.js.map +1 -0
- package/dist/chunk-SVQ4PHDZ.js +129 -0
- package/dist/chunk-SVQ4PHDZ.js.map +1 -0
- package/dist/connect/index.d.ts +112 -0
- package/dist/connect/index.js +14 -0
- package/dist/connect/index.js.map +1 -0
- package/dist/connectors/adapters/index.d.ts +593 -1
- package/dist/connectors/adapters/index.js +15 -1
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +19 -5
- package/dist/index.d.ts +5 -2
- package/dist/index.js +42 -6
- package/dist/middleware/index.d.ts +137 -0
- package/dist/middleware/index.js +14 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/registry.d.ts +28 -2
- package/dist/registry.js +5 -2
- package/dist/runtime.d.ts +4 -1
- package/dist/runtime.js +5 -2
- package/dist/specs.d.ts +4 -1
- package/dist/tangle-catalog-runtime.d.ts +4 -1
- package/dist/tangle-catalog-runtime.js +5 -2
- package/dist/tangle-id-CTU4kGId.d.ts +553 -0
- package/package.json +11 -1
- package/dist/chunk-ALCIWTIR.js.map +0 -1
- package/dist/chunk-GA4VTE3U.js.map +0 -1
- package/dist/index-D4D4CEKX.d.ts +0 -976
package/dist/connectors/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import "../chunk-376UBTNB.js";
|
|
2
2
|
import {
|
|
3
|
-
CredentialsExpired,
|
|
4
3
|
InMemoryOAuthFlowStore,
|
|
5
|
-
ResourceContention,
|
|
6
4
|
_resetPendingFlowsForTests,
|
|
7
5
|
airtableConnector,
|
|
8
6
|
asanaConnector,
|
|
9
|
-
assertValidConnectorManifest,
|
|
10
7
|
consumePendingFlow,
|
|
11
8
|
declarativeRestConnector,
|
|
12
9
|
docuseal,
|
|
@@ -28,9 +25,8 @@ import {
|
|
|
28
25
|
stripePackConnector,
|
|
29
26
|
stripeWebhookReceiverConnector,
|
|
30
27
|
twilioSmsConnector,
|
|
31
|
-
validateConnectorManifest,
|
|
32
28
|
webhookConnector
|
|
33
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-JU25UDN2.js";
|
|
34
30
|
import {
|
|
35
31
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
36
32
|
firstHeader,
|
|
@@ -40,16 +36,33 @@ import {
|
|
|
40
36
|
verifyStripeSignature,
|
|
41
37
|
verifyTwilioSignature
|
|
42
38
|
} from "../chunk-2TW2QKGZ.js";
|
|
39
|
+
import {
|
|
40
|
+
CredentialsExpired,
|
|
41
|
+
DEFAULT_TANGLE_PLATFORM_URL,
|
|
42
|
+
ResourceContention,
|
|
43
|
+
TANGLE_API_KEY_PREFIX,
|
|
44
|
+
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
45
|
+
TangleIdentityUnreachableError,
|
|
46
|
+
assertValidConnectorManifest,
|
|
47
|
+
createTangleIdentityClient,
|
|
48
|
+
tangleIdentity,
|
|
49
|
+
validateConnectorManifest
|
|
50
|
+
} from "../chunk-ATYHZXLL.js";
|
|
43
51
|
export {
|
|
44
52
|
CredentialsExpired,
|
|
45
53
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
54
|
+
DEFAULT_TANGLE_PLATFORM_URL,
|
|
46
55
|
InMemoryOAuthFlowStore,
|
|
47
56
|
ResourceContention,
|
|
57
|
+
TANGLE_API_KEY_PREFIX,
|
|
58
|
+
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
59
|
+
TangleIdentityUnreachableError,
|
|
48
60
|
_resetPendingFlowsForTests,
|
|
49
61
|
airtableConnector,
|
|
50
62
|
asanaConnector,
|
|
51
63
|
assertValidConnectorManifest,
|
|
52
64
|
consumePendingFlow,
|
|
65
|
+
createTangleIdentityClient,
|
|
53
66
|
declarativeRestConnector,
|
|
54
67
|
docuseal,
|
|
55
68
|
exchangeAuthorizationCode,
|
|
@@ -71,6 +84,7 @@ export {
|
|
|
71
84
|
startOAuthFlow,
|
|
72
85
|
stripePackConnector,
|
|
73
86
|
stripeWebhookReceiverConnector,
|
|
87
|
+
tangleIdentity,
|
|
74
88
|
twilioSmsConnector,
|
|
75
89
|
validateConnectorManifest,
|
|
76
90
|
verifyHmacSignature,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
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 getActivepiecesOverride, ap as getIntegrationFamily, aq as getIntegrationSpec, dP as healthcheckRequest, dQ as importGraphqlConnector, dR as importMcpConnector, dS as importOpenApiConnector, dT as inferIntegrationManifestFromTools, inferIntegrationSupportTier, dU as integrationCoverageChecklistMarkdown, ar as integrationSpecToConnector, i as integrationToolName, dV as invocationRequestFromEnvelope, dW as listActivepiecesCatalogEntries, as as listExecutableIntegrationSpecs, dX as listIntegrationCoverageSpecs, at as listIntegrationSpecs, dY as listTangleIntegrationCatalogEntries, dZ as listTangleIntegrationCatalogRuntimePackages, d_ as listTangleIntegrationContracts, d$ as manifestToConnector, e0 as normalizeGatewayCatalog, e1 as normalizeIntegrationError, e2 as normalizeIntegrationResult, e3 as parseIntegrationBridgeEnvironment, p as parseIntegrationToolName, e4 as receiveIntegrationWebhook, e5 as redactApprovalRequest, e6 as redactCapability, e7 as redactIntegrationBridgePayload, e8 as redactInvocationEnvelope, au as renderAgentToolDescription, e9 as renderApprovalCopy, ea as renderConsentSummary, av as renderConsoleSteps, aw as renderRunbookMarkdown, eb as renderTangleCatalogRuntimePnpmAddCommand, ec as resolveConnectionCredentials, ed as resolveIntegrationApproval, ee as revokeConnection, ef as runIntegrationHealthcheck, eg as runIntegrationHealthchecks, eh as sanitizeAuditConnection, ei as sanitizeConnection, s as searchIntegrationTools, ej as signActivepiecesRuntimeRequest, ek as signCapability, Q as signTangleCatalogRuntimeRequest, ax as specAuthToConnectorAuth, el as startTangleCatalogRuntimeNodeServer, em as statusForCode, en as storedEventToTriggerEvent, summarizeIntegrationRegistry, R as tangleCatalogAuthValue, t as toMcpTools, ay as validateCredentialFormat, az as validateCredentialSet, eo as validateIntegrationInvocationEnvelope, ep as validateIntegrationManifest, aA as validateIntegrationSpec, eq as validateProviderPassthroughRequest, er as verifyActivepiecesRuntimeSignature, es as verifyCapabilityToken, S as verifyTangleCatalogRuntimeSignature } from './registry.js';
|
|
2
|
-
export {
|
|
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';
|
|
2
|
+
export { ConnectFlowOptions, FinishConnectInput, FinishConnectOutput, InMemoryConnectStateStore, StartConnectInput, StartConnectOutput, finishConnectFlow, revokeConnectFlow, startConnectFlow } from './connect/index.js';
|
|
3
|
+
export { ExpressLikeRequest, ExpressLikeResponse, HonoLikeContext, RequireTangleAuthOptions, TangleAuthContext, TangleAuthOutcome, TangleAuthReason, expressTangleAuthMiddleware, extractToken, honoTangleAuthMiddleware, requireTangleAuth } from './middleware/index.js';
|
|
4
|
+
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';
|
|
3
5
|
export { DEFAULT_SIGNATURE_TOLERANCE_SECONDS, ExchangeCodeInput, GenericHmacVerifyOptions, InMemoryOAuthFlowStore, OAuthFlowStore, OAuthTokens, ParsedStripeSignatureHeader, PendingOAuthFlow, RefreshInput, SlackVerifyOptions, StartOAuthInput, StartOAuthOutput, StripeVerifyOptions, TwilioVerifyOptions, _resetPendingFlowsForTests, consumePendingFlow, exchangeAuthorizationCode, firstHeader, parseStripeSignatureHeader, refreshAccessToken, startOAuthFlow, verifyHmacSignature, verifySlackSignature, verifyStripeSignature, verifyTwilioSignature } from './connectors/index.js';
|
|
6
|
+
export { DocuSealOptions, GmailOptions, GoogleCalendarOptions, GoogleDriveOptions, GoogleSheetsOptions, HubSpotOptions, MicrosoftCalendarOptions, NotionDatabaseOptions, RestConnectorSpec, RestCredentialPlacement, RestOperationSpec, RestRequestSpec, SlackOptions, airtableConnector, asanaConnector, declarativeRestConnector, docuseal, githubConnector, gitlabConnector, gmail, googleCalendar, googleDrive, googleSheets, hubspot, microsoftCalendar, notionDatabase, salesforceConnector, slack, slackEventsConnector, stripePackConnector, stripeWebhookReceiverConnector, twilioSmsConnector, webhookConnector } from './connectors/adapters/index.js';
|
|
4
7
|
import 'node:http';
|
package/dist/index.js
CHANGED
|
@@ -82,6 +82,7 @@ import {
|
|
|
82
82
|
explainMissingRequirements,
|
|
83
83
|
extractActivepiecesPublicPieceCount,
|
|
84
84
|
extractExternalCatalogPublicCount,
|
|
85
|
+
filterDiscoveryByWorkspaceScopes,
|
|
85
86
|
getActivepiecesOverride,
|
|
86
87
|
healthcheckRequest,
|
|
87
88
|
importGraphqlConnector,
|
|
@@ -132,7 +133,13 @@ import {
|
|
|
132
133
|
verifyActivepiecesRuntimeSignature,
|
|
133
134
|
verifyCapabilityToken,
|
|
134
135
|
verifyTangleCatalogRuntimeSignature
|
|
135
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-ICSBYCE2.js";
|
|
137
|
+
import {
|
|
138
|
+
expressTangleAuthMiddleware,
|
|
139
|
+
extractToken,
|
|
140
|
+
honoTangleAuthMiddleware,
|
|
141
|
+
requireTangleAuth
|
|
142
|
+
} from "./chunk-SVQ4PHDZ.js";
|
|
136
143
|
import {
|
|
137
144
|
INTEGRATION_FAMILIES,
|
|
138
145
|
assertValidIntegrationSpec,
|
|
@@ -156,13 +163,10 @@ import {
|
|
|
156
163
|
} from "./chunk-4JQ754PA.js";
|
|
157
164
|
import "./chunk-376UBTNB.js";
|
|
158
165
|
import {
|
|
159
|
-
CredentialsExpired,
|
|
160
166
|
InMemoryOAuthFlowStore,
|
|
161
|
-
ResourceContention,
|
|
162
167
|
_resetPendingFlowsForTests,
|
|
163
168
|
airtableConnector,
|
|
164
169
|
asanaConnector,
|
|
165
|
-
assertValidConnectorManifest,
|
|
166
170
|
consumePendingFlow,
|
|
167
171
|
declarativeRestConnector,
|
|
168
172
|
docuseal,
|
|
@@ -184,9 +188,8 @@ import {
|
|
|
184
188
|
stripePackConnector,
|
|
185
189
|
stripeWebhookReceiverConnector,
|
|
186
190
|
twilioSmsConnector,
|
|
187
|
-
validateConnectorManifest,
|
|
188
191
|
webhookConnector
|
|
189
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-JU25UDN2.js";
|
|
190
193
|
import {
|
|
191
194
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
192
195
|
firstHeader,
|
|
@@ -196,6 +199,24 @@ import {
|
|
|
196
199
|
verifyStripeSignature,
|
|
197
200
|
verifyTwilioSignature
|
|
198
201
|
} from "./chunk-2TW2QKGZ.js";
|
|
202
|
+
import {
|
|
203
|
+
InMemoryConnectStateStore,
|
|
204
|
+
finishConnectFlow,
|
|
205
|
+
revokeConnectFlow,
|
|
206
|
+
startConnectFlow
|
|
207
|
+
} from "./chunk-P24T3MLM.js";
|
|
208
|
+
import {
|
|
209
|
+
CredentialsExpired,
|
|
210
|
+
DEFAULT_TANGLE_PLATFORM_URL,
|
|
211
|
+
ResourceContention,
|
|
212
|
+
TANGLE_API_KEY_PREFIX,
|
|
213
|
+
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
214
|
+
TangleIdentityUnreachableError,
|
|
215
|
+
assertValidConnectorManifest,
|
|
216
|
+
createTangleIdentityClient,
|
|
217
|
+
tangleIdentity,
|
|
218
|
+
validateConnectorManifest
|
|
219
|
+
} from "./chunk-ATYHZXLL.js";
|
|
199
220
|
export {
|
|
200
221
|
ACTIVEPIECES_OVERRIDES,
|
|
201
222
|
ACTIVEPIECES_PUBLIC_CATALOG_URL,
|
|
@@ -205,8 +226,10 @@ export {
|
|
|
205
226
|
CredentialsExpired,
|
|
206
227
|
DEFAULT_INTEGRATION_BRIDGE_ENV,
|
|
207
228
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
229
|
+
DEFAULT_TANGLE_PLATFORM_URL,
|
|
208
230
|
DefaultIntegrationActionGuard,
|
|
209
231
|
INTEGRATION_FAMILIES,
|
|
232
|
+
InMemoryConnectStateStore,
|
|
210
233
|
InMemoryConnectionStore,
|
|
211
234
|
InMemoryIntegrationApprovalStore,
|
|
212
235
|
InMemoryIntegrationAuditStore,
|
|
@@ -226,9 +249,12 @@ export {
|
|
|
226
249
|
PROVIDER_PASSTHROUGH_ACTION,
|
|
227
250
|
ResourceContention,
|
|
228
251
|
StaticIntegrationPolicyEngine,
|
|
252
|
+
TANGLE_API_KEY_PREFIX,
|
|
229
253
|
TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER,
|
|
230
254
|
TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID,
|
|
231
255
|
TANGLE_INTEGRATIONS_CATALOG_SOURCE,
|
|
256
|
+
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
257
|
+
TangleIdentityUnreachableError,
|
|
232
258
|
TangleIntegrationsClient,
|
|
233
259
|
_resetPendingFlowsForTests,
|
|
234
260
|
adapterManifestsToConnectors,
|
|
@@ -286,6 +312,7 @@ export {
|
|
|
286
312
|
createTangleCatalogInstalledPackageExecutor,
|
|
287
313
|
createTangleCatalogRuntimeHandler,
|
|
288
314
|
createTangleCatalogRuntimeNodeRequestListener,
|
|
315
|
+
createTangleIdentityClient,
|
|
289
316
|
createTangleIntegrationsClient,
|
|
290
317
|
declarativeRestConnector,
|
|
291
318
|
decodeIntegrationBridgePayload,
|
|
@@ -295,8 +322,12 @@ export {
|
|
|
295
322
|
encodeIntegrationBridgePayload,
|
|
296
323
|
exchangeAuthorizationCode,
|
|
297
324
|
explainMissingRequirements,
|
|
325
|
+
expressTangleAuthMiddleware,
|
|
298
326
|
extractActivepiecesPublicPieceCount,
|
|
299
327
|
extractExternalCatalogPublicCount,
|
|
328
|
+
extractToken,
|
|
329
|
+
filterDiscoveryByWorkspaceScopes,
|
|
330
|
+
finishConnectFlow,
|
|
300
331
|
firstHeader,
|
|
301
332
|
getActivepiecesOverride,
|
|
302
333
|
getIntegrationFamily,
|
|
@@ -308,6 +339,7 @@ export {
|
|
|
308
339
|
googleDrive,
|
|
309
340
|
googleSheets,
|
|
310
341
|
healthcheckRequest,
|
|
342
|
+
honoTangleAuthMiddleware,
|
|
311
343
|
hubspot,
|
|
312
344
|
importGraphqlConnector,
|
|
313
345
|
importMcpConnector,
|
|
@@ -346,8 +378,10 @@ export {
|
|
|
346
378
|
renderConsoleSteps,
|
|
347
379
|
renderRunbookMarkdown,
|
|
348
380
|
renderTangleCatalogRuntimePnpmAddCommand,
|
|
381
|
+
requireTangleAuth,
|
|
349
382
|
resolveConnectionCredentials,
|
|
350
383
|
resolveIntegrationApproval,
|
|
384
|
+
revokeConnectFlow,
|
|
351
385
|
revokeConnection,
|
|
352
386
|
runIntegrationHealthcheck,
|
|
353
387
|
runIntegrationHealthchecks,
|
|
@@ -361,6 +395,7 @@ export {
|
|
|
361
395
|
slack,
|
|
362
396
|
slackEventsConnector,
|
|
363
397
|
specAuthToConnectorAuth,
|
|
398
|
+
startConnectFlow,
|
|
364
399
|
startOAuthFlow,
|
|
365
400
|
startTangleCatalogRuntimeNodeServer,
|
|
366
401
|
statusForCode,
|
|
@@ -369,6 +404,7 @@ export {
|
|
|
369
404
|
stripeWebhookReceiverConnector,
|
|
370
405
|
summarizeIntegrationRegistry,
|
|
371
406
|
tangleCatalogAuthValue,
|
|
407
|
+
tangleIdentity,
|
|
372
408
|
toMcpTools,
|
|
373
409
|
twilioSmsConnector,
|
|
374
410
|
validateConnectorManifest,
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { T as TangleIdentityOptions, b as TangleIdentityClient, c as TangleTokenVerifyFailure } from '../tangle-id-CTU4kGId.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @stable Drop-in request middleware that verifies id.tangle.tools
|
|
5
|
+
* credentials and attaches `{ userId, workspaceId, scopes, kind }` to the
|
|
6
|
+
* request.
|
|
7
|
+
*
|
|
8
|
+
* The middleware is framework-agnostic. Instead of binding to express /
|
|
9
|
+
* hono / itty-router specifically (each has its own request typings and
|
|
10
|
+
* lifecycle), the helper accepts either a `Request` (web standard) or a
|
|
11
|
+
* `{ headers }`-shaped object and returns a typed result the caller wires
|
|
12
|
+
* into its own context. Concrete adapters for hono / express / fetch live
|
|
13
|
+
* one call below in the same module so a product can pick the shape it
|
|
14
|
+
* uses without dragging in framework types from the rest.
|
|
15
|
+
*
|
|
16
|
+
* Why this matters: legal-agent runs on Bun + Hono. tax-agent runs on
|
|
17
|
+
* CF Workers + itty-router. gtm-agent runs on Node + Express. Wiring an
|
|
18
|
+
* identical "is this caller authed" check across all three is what
|
|
19
|
+
* unblocks shipping product apps in parallel.
|
|
20
|
+
*
|
|
21
|
+
* Token sources (checked in order):
|
|
22
|
+
*
|
|
23
|
+
* 1. `Authorization: Bearer <token>` — handles both sk-tan-* API keys
|
|
24
|
+
* and Better Auth-issued session bearers.
|
|
25
|
+
* 2. `Cookie: better-auth.session_token=<jwt>` — the canonical browser
|
|
26
|
+
* flow. We forward the cookie value as a Bearer to the platform's
|
|
27
|
+
* `/api/auth/get-session` endpoint.
|
|
28
|
+
*
|
|
29
|
+
* On success the middleware returns:
|
|
30
|
+
*
|
|
31
|
+
* { ok: true, auth: { userId, workspaceId, scopes, kind, expiresAt? } }
|
|
32
|
+
*
|
|
33
|
+
* On failure:
|
|
34
|
+
*
|
|
35
|
+
* { ok: false, status: 401|403, reason: '<stable-code>' }
|
|
36
|
+
*
|
|
37
|
+
* The caller decides whether to short-circuit the request (production) or
|
|
38
|
+
* downgrade to anonymous (read-only public endpoints). The middleware
|
|
39
|
+
* NEVER throws on bad-token; only true platform unreachability bubbles up
|
|
40
|
+
* as a `TangleIdentityUnreachableError`.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/** Auth context the middleware attaches to the request on success. */
|
|
44
|
+
interface TangleAuthContext {
|
|
45
|
+
userId: string;
|
|
46
|
+
workspaceId: string;
|
|
47
|
+
scopes: string[];
|
|
48
|
+
kind: 'api_key' | 'session';
|
|
49
|
+
/** Wall-clock ms epoch when the credential expires, when known. */
|
|
50
|
+
expiresAt?: number;
|
|
51
|
+
/** Stable credential id (key id for API keys, session id for sessions). */
|
|
52
|
+
credentialId?: string;
|
|
53
|
+
/** Owner-shape on the platform side. */
|
|
54
|
+
ownerType: 'user' | 'team';
|
|
55
|
+
/** Product the credential is scoped to, when known. */
|
|
56
|
+
product?: string;
|
|
57
|
+
}
|
|
58
|
+
type TangleAuthOutcome = {
|
|
59
|
+
ok: true;
|
|
60
|
+
auth: TangleAuthContext;
|
|
61
|
+
} | {
|
|
62
|
+
ok: false;
|
|
63
|
+
status: 401 | 403 | 503;
|
|
64
|
+
reason: TangleAuthReason;
|
|
65
|
+
};
|
|
66
|
+
/** Stable failure reasons surfaced to the caller. */
|
|
67
|
+
type TangleAuthReason = 'missing_credential' | 'malformed_credential' | 'service_token_refused' | TangleTokenVerifyFailure | 'platform_unreachable';
|
|
68
|
+
interface RequireTangleAuthOptions extends TangleIdentityOptions {
|
|
69
|
+
/** Pre-built client. When supplied, all `TangleIdentityOptions` fields
|
|
70
|
+
* are ignored. Tests pass a stub here; production code typically
|
|
71
|
+
* constructs the client once at boot and passes it in. */
|
|
72
|
+
client?: TangleIdentityClient;
|
|
73
|
+
/** Override the cookie name where the session bearer lives. Defaults
|
|
74
|
+
* to `better-auth.session_token` — matches the platform's Better Auth
|
|
75
|
+
* configuration. */
|
|
76
|
+
sessionCookieName?: string;
|
|
77
|
+
/** If true, missing-credential returns `ok: false, status: 401`
|
|
78
|
+
* (default). If false, the middleware returns `ok: true` with a
|
|
79
|
+
* synthetic anonymous context — useful for public endpoints that want
|
|
80
|
+
* to opportunistically hydrate identity. */
|
|
81
|
+
requireCredential?: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Verify the credential on `request` against id.tangle.tools and resolve
|
|
85
|
+
* to a typed {@link TangleAuthContext}. Request type is the web-standard
|
|
86
|
+
* `Request` shape — works in Bun, Workers, Deno, Node 20+, Hono context's
|
|
87
|
+
* `c.req.raw`, and Express adapters that surface `req` via `webRequest()`.
|
|
88
|
+
*/
|
|
89
|
+
declare function requireTangleAuth(request: Pick<Request, 'headers'>, opts?: RequireTangleAuthOptions): Promise<TangleAuthOutcome>;
|
|
90
|
+
/**
|
|
91
|
+
* Extract the bearer credential from a request. Public so callers that
|
|
92
|
+
* want to reuse the same token-discovery logic outside the middleware
|
|
93
|
+
* (e.g. to attribute audit log entries) don't have to re-implement it.
|
|
94
|
+
*
|
|
95
|
+
* Order: Authorization header first (canonical), session cookie second.
|
|
96
|
+
* Service tokens (`svc_*`) are explicitly dropped — the platform's
|
|
97
|
+
* middleware refuses to map them to a user, so accepting them here
|
|
98
|
+
* would invite the exact "service-as-user" privilege escalation the
|
|
99
|
+
* platform's `resolveServiceIdentity` already guards against.
|
|
100
|
+
*/
|
|
101
|
+
declare function extractToken(request: Pick<Request, 'headers'>, sessionCookieName?: string): string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Hono-flavored convenience wrapper. Returns a hono middleware factory
|
|
104
|
+
* that calls {@link requireTangleAuth} and stashes the result on the
|
|
105
|
+
* Hono context under `c.set('tangleAuth', auth)`. On failure short-
|
|
106
|
+
* circuits with the canonical {success:false} envelope the platform uses.
|
|
107
|
+
*
|
|
108
|
+
* Kept typed against a structural `Context`-like shape so this module
|
|
109
|
+
* does NOT take a hono peerDep. Consumers pass `c` directly.
|
|
110
|
+
*/
|
|
111
|
+
declare function honoTangleAuthMiddleware(opts?: RequireTangleAuthOptions): (c: HonoLikeContext, next: () => Promise<void>) => Promise<Response | void>;
|
|
112
|
+
/** Minimal Hono Context-shaped surface. Avoids the hono peerDep. */
|
|
113
|
+
interface HonoLikeContext {
|
|
114
|
+
req: {
|
|
115
|
+
raw: Request;
|
|
116
|
+
};
|
|
117
|
+
set(key: 'tangleAuth', value: TangleAuthContext): void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Express-flavored convenience wrapper. Same outcome shape as the Hono
|
|
121
|
+
* helper, expressed via the Node `req` / `res` / `next` triple. Consumers
|
|
122
|
+
* pass the triple as positional args. Returns a function compatible with
|
|
123
|
+
* any express-like `app.use(fn)`.
|
|
124
|
+
*/
|
|
125
|
+
declare function expressTangleAuthMiddleware(opts?: RequireTangleAuthOptions): (req: ExpressLikeRequest, res: ExpressLikeResponse, next: (err?: unknown) => void) => Promise<void>;
|
|
126
|
+
/** Minimal Express-shaped surfaces. Avoids the express peerDep. */
|
|
127
|
+
interface ExpressLikeRequest {
|
|
128
|
+
headers: Record<string, string | string[] | undefined>;
|
|
129
|
+
tangleAuth?: TangleAuthContext;
|
|
130
|
+
}
|
|
131
|
+
interface ExpressLikeResponse {
|
|
132
|
+
status(code: number): unknown;
|
|
133
|
+
setHeader?(name: string, value: string): unknown;
|
|
134
|
+
end(body: string): unknown;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { type ExpressLikeRequest, type ExpressLikeResponse, type HonoLikeContext, type RequireTangleAuthOptions, type TangleAuthContext, type TangleAuthOutcome, type TangleAuthReason, expressTangleAuthMiddleware, extractToken, honoTangleAuthMiddleware, requireTangleAuth };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
expressTangleAuthMiddleware,
|
|
3
|
+
extractToken,
|
|
4
|
+
honoTangleAuthMiddleware,
|
|
5
|
+
requireTangleAuth
|
|
6
|
+
} from "../chunk-SVQ4PHDZ.js";
|
|
7
|
+
import "../chunk-ATYHZXLL.js";
|
|
8
|
+
export {
|
|
9
|
+
expressTangleAuthMiddleware,
|
|
10
|
+
extractToken,
|
|
11
|
+
honoTangleAuthMiddleware,
|
|
12
|
+
requireTangleAuth
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { C as ConnectorAdapter, R as ResolvedDataSource,
|
|
1
|
+
import { C as ConnectorAdapter, R as ResolvedDataSource, d as ConnectorCredentials } from './tangle-id-CTU4kGId.js';
|
|
2
|
+
import './connect/index.js';
|
|
3
|
+
import './middleware/index.js';
|
|
2
4
|
import './connectors/index.js';
|
|
5
|
+
import './connectors/adapters/index.js';
|
|
3
6
|
import { Server, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
7
|
|
|
5
8
|
type IntegrationSupportTier = 'catalogOnly' | 'setupReady' | 'gatewayExecutable' | 'firstPartyExecutable' | 'sandboxExecutable';
|
|
@@ -648,6 +651,29 @@ interface WorkspaceCapabilityDiscovery {
|
|
|
648
651
|
* to the inputs — caller decides whether to back `connections` and
|
|
649
652
|
* `connectors` with persistent state or static fixtures. */
|
|
650
653
|
declare function discoverWorkspaceCapabilities(input: DiscoverWorkspaceCapabilitiesInput): Promise<WorkspaceCapabilityDiscovery>;
|
|
654
|
+
/**
|
|
655
|
+
* Filter a {@link WorkspaceCapabilityDiscovery} result by the calling
|
|
656
|
+
* user's effective id.tangle.tools workspace scopes. Pair with the
|
|
657
|
+
* `tangleIdentity()` adapter's `list_workspaces` / `switch_workspace`
|
|
658
|
+
* output to keep what the agent runtime sees aligned with what the
|
|
659
|
+
* workspace's plan actually permits.
|
|
660
|
+
*
|
|
661
|
+
* Semantics:
|
|
662
|
+
* - Every workspace scope is matched against every capability's
|
|
663
|
+
* `scopes` list. Wildcard scopes (`tangle:*`, `<connectorId>:*`) are
|
|
664
|
+
* respected — a workspace with `tangle:*` sees everything; a
|
|
665
|
+
* workspace with `gmail:*` sees every gmail capability regardless of
|
|
666
|
+
* the upstream OAuth scope.
|
|
667
|
+
* - When `workspaceScopes` is empty, returns the discovery as-is (no
|
|
668
|
+
* workspace gate). Pass an explicit `denyByDefault: true` to flip
|
|
669
|
+
* that to "empty workspace sees nothing" — matches the platform's
|
|
670
|
+
* fail-closed posture for production tenants.
|
|
671
|
+
*
|
|
672
|
+
* Pure with respect to the inputs — no side effects.
|
|
673
|
+
*/
|
|
674
|
+
declare function filterDiscoveryByWorkspaceScopes(discovery: WorkspaceCapabilityDiscovery, workspaceScopes: string[], opts?: {
|
|
675
|
+
denyByDefault?: boolean;
|
|
676
|
+
}): WorkspaceCapabilityDiscovery;
|
|
651
677
|
|
|
652
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';
|
|
653
679
|
interface IntegrationUserAction {
|
|
@@ -2136,4 +2162,4 @@ declare function createHttpIntegrationProvider(options: HttpIntegrationProviderO
|
|
|
2136
2162
|
declare function signCapability(capability: IntegrationCapability, secret: string): string;
|
|
2137
2163
|
declare function verifyCapabilityToken(token: string, secret: string): IntegrationCapability;
|
|
2138
2164
|
|
|
2139
|
-
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, manifestToConnector 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, getActivepiecesOverride as dO, healthcheckRequest as dP, importGraphqlConnector as dQ, importMcpConnector as dR, importOpenApiConnector as dS, inferIntegrationManifestFromTools as dT, integrationCoverageChecklistMarkdown as dU, invocationRequestFromEnvelope as dV, listActivepiecesCatalogEntries as dW, listIntegrationCoverageSpecs as dX, listTangleIntegrationCatalogEntries as dY, listTangleIntegrationCatalogRuntimePackages as dZ, listTangleIntegrationContracts 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, normalizeGatewayCatalog as e0, normalizeIntegrationError as e1, normalizeIntegrationResult as e2, parseIntegrationBridgeEnvironment as e3, receiveIntegrationWebhook as e4, redactApprovalRequest as e5, redactCapability as e6, redactIntegrationBridgePayload as e7, redactInvocationEnvelope as e8, renderApprovalCopy as e9, renderConsentSummary as ea, renderTangleCatalogRuntimePnpmAddCommand as eb, resolveConnectionCredentials as ec, resolveIntegrationApproval as ed, revokeConnection as ee, runIntegrationHealthcheck as ef, runIntegrationHealthchecks as eg, sanitizeAuditConnection as eh, sanitizeConnection as ei, signActivepiecesRuntimeRequest as ej, signCapability as ek, startTangleCatalogRuntimeNodeServer as el, statusForCode as em, storedEventToTriggerEvent as en, validateIntegrationInvocationEnvelope as eo, validateIntegrationManifest as ep, validateProviderPassthroughRequest as eq, verifyActivepiecesRuntimeSignature as er, verifyCapabilityToken as es, 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 };
|
|
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 };
|
package/dist/registry.js
CHANGED
|
@@ -4,11 +4,14 @@ import {
|
|
|
4
4
|
composeIntegrationRegistry,
|
|
5
5
|
inferIntegrationSupportTier,
|
|
6
6
|
summarizeIntegrationRegistry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ICSBYCE2.js";
|
|
8
|
+
import "./chunk-SVQ4PHDZ.js";
|
|
8
9
|
import "./chunk-4JQ754PA.js";
|
|
9
10
|
import "./chunk-376UBTNB.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-JU25UDN2.js";
|
|
11
12
|
import "./chunk-2TW2QKGZ.js";
|
|
13
|
+
import "./chunk-P24T3MLM.js";
|
|
14
|
+
import "./chunk-ATYHZXLL.js";
|
|
12
15
|
export {
|
|
13
16
|
buildDefaultIntegrationRegistry,
|
|
14
17
|
canonicalConnectorId,
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
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
|
-
import './
|
|
2
|
+
import './tangle-id-CTU4kGId.js';
|
|
3
|
+
import './connect/index.js';
|
|
4
|
+
import './middleware/index.js';
|
|
3
5
|
import './connectors/index.js';
|
|
6
|
+
import './connectors/adapters/index.js';
|
|
4
7
|
import 'node:http';
|
package/dist/runtime.js
CHANGED
|
@@ -2,11 +2,14 @@ import {
|
|
|
2
2
|
InMemoryIntegrationGrantStore,
|
|
3
3
|
IntegrationRuntime,
|
|
4
4
|
createIntegrationRuntime
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ICSBYCE2.js";
|
|
6
|
+
import "./chunk-SVQ4PHDZ.js";
|
|
6
7
|
import "./chunk-4JQ754PA.js";
|
|
7
8
|
import "./chunk-376UBTNB.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-JU25UDN2.js";
|
|
9
10
|
import "./chunk-2TW2QKGZ.js";
|
|
11
|
+
import "./chunk-P24T3MLM.js";
|
|
12
|
+
import "./chunk-ATYHZXLL.js";
|
|
10
13
|
export {
|
|
11
14
|
InMemoryIntegrationGrantStore,
|
|
12
15
|
IntegrationRuntime,
|
package/dist/specs.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
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
|
-
import './
|
|
2
|
+
import './tangle-id-CTU4kGId.js';
|
|
3
|
+
import './connect/index.js';
|
|
4
|
+
import './middleware/index.js';
|
|
3
5
|
import './connectors/index.js';
|
|
6
|
+
import './connectors/adapters/index.js';
|
|
4
7
|
import 'node:http';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { T as TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER, y as TangleCatalogAuthResolverOptions, z as TangleCatalogHttpAuthResolverOptions, A as TangleCatalogHttpAuthResolverRequest, B as TangleCatalogInstalledPackageExecutorOptions, C as TangleCatalogRuntimeHandlerOptions, D as TangleCatalogRuntimeHttpRequest, E as TangleCatalogRuntimeHttpResponse, F as TangleCatalogRuntimeInvocation, G as TangleCatalogRuntimeModuleAction, H as TangleCatalogRuntimePackageCoverageOptions, J as TangleCatalogRuntimePackageCoverageRow, K as auditTangleCatalogRuntimePackages, L as createTangleCatalogCredentialAuthResolver, N as createTangleCatalogHttpAuthResolver, O as createTangleCatalogInstalledPackageExecutor, P as createTangleCatalogRuntimeHandler, Q as signTangleCatalogRuntimeRequest, R as tangleCatalogAuthValue, S as verifyTangleCatalogRuntimeSignature } from './registry.js';
|
|
2
|
-
import './
|
|
2
|
+
import './tangle-id-CTU4kGId.js';
|
|
3
|
+
import './connect/index.js';
|
|
4
|
+
import './middleware/index.js';
|
|
3
5
|
import './connectors/index.js';
|
|
6
|
+
import './connectors/adapters/index.js';
|
|
4
7
|
import 'node:http';
|
|
@@ -8,11 +8,14 @@ import {
|
|
|
8
8
|
signTangleCatalogRuntimeRequest,
|
|
9
9
|
tangleCatalogAuthValue,
|
|
10
10
|
verifyTangleCatalogRuntimeSignature
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ICSBYCE2.js";
|
|
12
|
+
import "./chunk-SVQ4PHDZ.js";
|
|
12
13
|
import "./chunk-4JQ754PA.js";
|
|
13
14
|
import "./chunk-376UBTNB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JU25UDN2.js";
|
|
15
16
|
import "./chunk-2TW2QKGZ.js";
|
|
17
|
+
import "./chunk-P24T3MLM.js";
|
|
18
|
+
import "./chunk-ATYHZXLL.js";
|
|
16
19
|
export {
|
|
17
20
|
TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER,
|
|
18
21
|
auditTangleCatalogRuntimePackages,
|