@tangle-network/agent-integrations 0.26.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.
- package/dist/bin/tangle-catalog-runtime.js +6 -2
- package/dist/bin/tangle-catalog-runtime.js.map +1 -1
- package/dist/catalog.d.ts +5 -1
- package/dist/catalog.js +6 -2
- package/dist/chunk-ATYHZXLL.js +457 -0
- package/dist/chunk-ATYHZXLL.js.map +1 -0
- package/dist/chunk-H4XYLS7T.js +75 -0
- package/dist/chunk-H4XYLS7T.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/{chunk-ALCIWTIR.js → chunk-UWRYFPJW.js} +41 -83
- package/dist/chunk-UWRYFPJW.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/errors-Bg3_rxnQ.d.ts +32 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +47 -9
- 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 +29 -33
- package/dist/registry.js +6 -2
- package/dist/router-BncoovUh.d.ts +149 -0
- package/dist/runtime.d.ts +5 -1
- package/dist/runtime.js +6 -2
- package/dist/specs.d.ts +5 -1
- package/dist/stripe/index.d.ts +812 -0
- package/dist/stripe/index.js +866 -0
- package/dist/stripe/index.js.map +1 -0
- package/dist/tangle-catalog-runtime.d.ts +5 -1
- package/dist/tangle-catalog-runtime.js +6 -2
- package/dist/tangle-id-CTU4kGId.d.ts +553 -0
- package/dist/webhooks/index.d.ts +3 -148
- package/package.json +16 -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,
|
|
@@ -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,8 @@
|
|
|
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 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';
|
|
3
|
+
export { ConnectFlowOptions, FinishConnectInput, FinishConnectOutput, InMemoryConnectStateStore, StartConnectInput, StartConnectOutput, finishConnectFlow, revokeConnectFlow, startConnectFlow } from './connect/index.js';
|
|
4
|
+
export { ExpressLikeRequest, ExpressLikeResponse, HonoLikeContext, RequireTangleAuthOptions, TangleAuthContext, TangleAuthOutcome, TangleAuthReason, expressTangleAuthMiddleware, extractToken, honoTangleAuthMiddleware, requireTangleAuth } from './middleware/index.js';
|
|
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';
|
|
3
6
|
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';
|
|
7
|
+
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
8
|
import 'node:http';
|
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,
|
|
@@ -82,6 +81,7 @@ import {
|
|
|
82
81
|
explainMissingRequirements,
|
|
83
82
|
extractActivepiecesPublicPieceCount,
|
|
84
83
|
extractExternalCatalogPublicCount,
|
|
84
|
+
filterDiscoveryByWorkspaceScopes,
|
|
85
85
|
getActivepiecesOverride,
|
|
86
86
|
healthcheckRequest,
|
|
87
87
|
importGraphqlConnector,
|
|
@@ -97,7 +97,6 @@ import {
|
|
|
97
97
|
listTangleIntegrationContracts,
|
|
98
98
|
manifestToConnector,
|
|
99
99
|
normalizeGatewayCatalog,
|
|
100
|
-
normalizeIntegrationError,
|
|
101
100
|
normalizeIntegrationResult,
|
|
102
101
|
parseIntegrationBridgeEnvironment,
|
|
103
102
|
parseIntegrationToolName,
|
|
@@ -121,7 +120,6 @@ import {
|
|
|
121
120
|
signCapability,
|
|
122
121
|
signTangleCatalogRuntimeRequest,
|
|
123
122
|
startTangleCatalogRuntimeNodeServer,
|
|
124
|
-
statusForCode,
|
|
125
123
|
storedEventToTriggerEvent,
|
|
126
124
|
summarizeIntegrationRegistry,
|
|
127
125
|
tangleCatalogAuthValue,
|
|
@@ -132,7 +130,18 @@ import {
|
|
|
132
130
|
verifyActivepiecesRuntimeSignature,
|
|
133
131
|
verifyCapabilityToken,
|
|
134
132
|
verifyTangleCatalogRuntimeSignature
|
|
135
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-UWRYFPJW.js";
|
|
134
|
+
import {
|
|
135
|
+
expressTangleAuthMiddleware,
|
|
136
|
+
extractToken,
|
|
137
|
+
honoTangleAuthMiddleware,
|
|
138
|
+
requireTangleAuth
|
|
139
|
+
} from "./chunk-SVQ4PHDZ.js";
|
|
140
|
+
import {
|
|
141
|
+
IntegrationRuntimeError,
|
|
142
|
+
normalizeIntegrationError,
|
|
143
|
+
statusForCode
|
|
144
|
+
} from "./chunk-H4XYLS7T.js";
|
|
136
145
|
import {
|
|
137
146
|
INTEGRATION_FAMILIES,
|
|
138
147
|
assertValidIntegrationSpec,
|
|
@@ -156,13 +165,10 @@ import {
|
|
|
156
165
|
} from "./chunk-4JQ754PA.js";
|
|
157
166
|
import "./chunk-376UBTNB.js";
|
|
158
167
|
import {
|
|
159
|
-
CredentialsExpired,
|
|
160
168
|
InMemoryOAuthFlowStore,
|
|
161
|
-
ResourceContention,
|
|
162
169
|
_resetPendingFlowsForTests,
|
|
163
170
|
airtableConnector,
|
|
164
171
|
asanaConnector,
|
|
165
|
-
assertValidConnectorManifest,
|
|
166
172
|
consumePendingFlow,
|
|
167
173
|
declarativeRestConnector,
|
|
168
174
|
docuseal,
|
|
@@ -184,9 +190,8 @@ import {
|
|
|
184
190
|
stripePackConnector,
|
|
185
191
|
stripeWebhookReceiverConnector,
|
|
186
192
|
twilioSmsConnector,
|
|
187
|
-
validateConnectorManifest,
|
|
188
193
|
webhookConnector
|
|
189
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-JU25UDN2.js";
|
|
190
195
|
import {
|
|
191
196
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
192
197
|
firstHeader,
|
|
@@ -196,6 +201,24 @@ import {
|
|
|
196
201
|
verifyStripeSignature,
|
|
197
202
|
verifyTwilioSignature
|
|
198
203
|
} from "./chunk-2TW2QKGZ.js";
|
|
204
|
+
import {
|
|
205
|
+
InMemoryConnectStateStore,
|
|
206
|
+
finishConnectFlow,
|
|
207
|
+
revokeConnectFlow,
|
|
208
|
+
startConnectFlow
|
|
209
|
+
} from "./chunk-P24T3MLM.js";
|
|
210
|
+
import {
|
|
211
|
+
CredentialsExpired,
|
|
212
|
+
DEFAULT_TANGLE_PLATFORM_URL,
|
|
213
|
+
ResourceContention,
|
|
214
|
+
TANGLE_API_KEY_PREFIX,
|
|
215
|
+
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
216
|
+
TangleIdentityUnreachableError,
|
|
217
|
+
assertValidConnectorManifest,
|
|
218
|
+
createTangleIdentityClient,
|
|
219
|
+
tangleIdentity,
|
|
220
|
+
validateConnectorManifest
|
|
221
|
+
} from "./chunk-ATYHZXLL.js";
|
|
199
222
|
export {
|
|
200
223
|
ACTIVEPIECES_OVERRIDES,
|
|
201
224
|
ACTIVEPIECES_PUBLIC_CATALOG_URL,
|
|
@@ -205,8 +228,10 @@ export {
|
|
|
205
228
|
CredentialsExpired,
|
|
206
229
|
DEFAULT_INTEGRATION_BRIDGE_ENV,
|
|
207
230
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
231
|
+
DEFAULT_TANGLE_PLATFORM_URL,
|
|
208
232
|
DefaultIntegrationActionGuard,
|
|
209
233
|
INTEGRATION_FAMILIES,
|
|
234
|
+
InMemoryConnectStateStore,
|
|
210
235
|
InMemoryConnectionStore,
|
|
211
236
|
InMemoryIntegrationApprovalStore,
|
|
212
237
|
InMemoryIntegrationAuditStore,
|
|
@@ -226,9 +251,12 @@ export {
|
|
|
226
251
|
PROVIDER_PASSTHROUGH_ACTION,
|
|
227
252
|
ResourceContention,
|
|
228
253
|
StaticIntegrationPolicyEngine,
|
|
254
|
+
TANGLE_API_KEY_PREFIX,
|
|
229
255
|
TANGLE_CATALOG_RUNTIME_SIGNATURE_HEADER,
|
|
230
256
|
TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID,
|
|
231
257
|
TANGLE_INTEGRATIONS_CATALOG_SOURCE,
|
|
258
|
+
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
259
|
+
TangleIdentityUnreachableError,
|
|
232
260
|
TangleIntegrationsClient,
|
|
233
261
|
_resetPendingFlowsForTests,
|
|
234
262
|
adapterManifestsToConnectors,
|
|
@@ -286,6 +314,7 @@ export {
|
|
|
286
314
|
createTangleCatalogInstalledPackageExecutor,
|
|
287
315
|
createTangleCatalogRuntimeHandler,
|
|
288
316
|
createTangleCatalogRuntimeNodeRequestListener,
|
|
317
|
+
createTangleIdentityClient,
|
|
289
318
|
createTangleIntegrationsClient,
|
|
290
319
|
declarativeRestConnector,
|
|
291
320
|
decodeIntegrationBridgePayload,
|
|
@@ -295,8 +324,12 @@ export {
|
|
|
295
324
|
encodeIntegrationBridgePayload,
|
|
296
325
|
exchangeAuthorizationCode,
|
|
297
326
|
explainMissingRequirements,
|
|
327
|
+
expressTangleAuthMiddleware,
|
|
298
328
|
extractActivepiecesPublicPieceCount,
|
|
299
329
|
extractExternalCatalogPublicCount,
|
|
330
|
+
extractToken,
|
|
331
|
+
filterDiscoveryByWorkspaceScopes,
|
|
332
|
+
finishConnectFlow,
|
|
300
333
|
firstHeader,
|
|
301
334
|
getActivepiecesOverride,
|
|
302
335
|
getIntegrationFamily,
|
|
@@ -308,6 +341,7 @@ export {
|
|
|
308
341
|
googleDrive,
|
|
309
342
|
googleSheets,
|
|
310
343
|
healthcheckRequest,
|
|
344
|
+
honoTangleAuthMiddleware,
|
|
311
345
|
hubspot,
|
|
312
346
|
importGraphqlConnector,
|
|
313
347
|
importMcpConnector,
|
|
@@ -346,8 +380,10 @@ export {
|
|
|
346
380
|
renderConsoleSteps,
|
|
347
381
|
renderRunbookMarkdown,
|
|
348
382
|
renderTangleCatalogRuntimePnpmAddCommand,
|
|
383
|
+
requireTangleAuth,
|
|
349
384
|
resolveConnectionCredentials,
|
|
350
385
|
resolveIntegrationApproval,
|
|
386
|
+
revokeConnectFlow,
|
|
351
387
|
revokeConnection,
|
|
352
388
|
runIntegrationHealthcheck,
|
|
353
389
|
runIntegrationHealthchecks,
|
|
@@ -361,6 +397,7 @@ export {
|
|
|
361
397
|
slack,
|
|
362
398
|
slackEventsConnector,
|
|
363
399
|
specAuthToConnectorAuth,
|
|
400
|
+
startConnectFlow,
|
|
364
401
|
startOAuthFlow,
|
|
365
402
|
startTangleCatalogRuntimeNodeServer,
|
|
366
403
|
statusForCode,
|
|
@@ -369,6 +406,7 @@ export {
|
|
|
369
406
|
stripeWebhookReceiverConnector,
|
|
370
407
|
summarizeIntegrationRegistry,
|
|
371
408
|
tangleCatalogAuthValue,
|
|
409
|
+
tangleIdentity,
|
|
372
410
|
toMcpTools,
|
|
373
411
|
twilioSmsConnector,
|
|
374
412
|
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,9 @@
|
|
|
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 './errors-Bg3_rxnQ.js';
|
|
3
|
+
import './connect/index.js';
|
|
4
|
+
import './middleware/index.js';
|
|
2
5
|
import './connectors/index.js';
|
|
6
|
+
import './connectors/adapters/index.js';
|
|
3
7
|
import { Server, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
8
|
|
|
5
9
|
type IntegrationSupportTier = 'catalogOnly' | 'setupReady' | 'gatewayExecutable' | 'firstPartyExecutable' | 'sandboxExecutable';
|
|
@@ -648,37 +652,29 @@ interface WorkspaceCapabilityDiscovery {
|
|
|
648
652
|
* to the inputs — caller decides whether to back `connections` and
|
|
649
653
|
* `connectors` with persistent state or static fixtures. */
|
|
650
654
|
declare function discoverWorkspaceCapabilities(input: DiscoverWorkspaceCapabilitiesInput): Promise<WorkspaceCapabilityDiscovery>;
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
code: IntegrationErrorCode;
|
|
675
|
-
message: string;
|
|
676
|
-
status: number;
|
|
677
|
-
userAction?: IntegrationUserAction;
|
|
678
|
-
metadata?: Record<string, unknown>;
|
|
679
|
-
}
|
|
680
|
-
declare function normalizeIntegrationError(error: unknown): NormalizedIntegrationError;
|
|
681
|
-
declare function statusForCode(code: IntegrationErrorCode): number;
|
|
655
|
+
/**
|
|
656
|
+
* Filter a {@link WorkspaceCapabilityDiscovery} result by the calling
|
|
657
|
+
* user's effective id.tangle.tools workspace scopes. Pair with the
|
|
658
|
+
* `tangleIdentity()` adapter's `list_workspaces` / `switch_workspace`
|
|
659
|
+
* output to keep what the agent runtime sees aligned with what the
|
|
660
|
+
* workspace's plan actually permits.
|
|
661
|
+
*
|
|
662
|
+
* Semantics:
|
|
663
|
+
* - Every workspace scope is matched against every capability's
|
|
664
|
+
* `scopes` list. Wildcard scopes (`tangle:*`, `<connectorId>:*`) are
|
|
665
|
+
* respected — a workspace with `tangle:*` sees everything; a
|
|
666
|
+
* workspace with `gmail:*` sees every gmail capability regardless of
|
|
667
|
+
* the upstream OAuth scope.
|
|
668
|
+
* - When `workspaceScopes` is empty, returns the discovery as-is (no
|
|
669
|
+
* workspace gate). Pass an explicit `denyByDefault: true` to flip
|
|
670
|
+
* that to "empty workspace sees nothing" — matches the platform's
|
|
671
|
+
* fail-closed posture for production tenants.
|
|
672
|
+
*
|
|
673
|
+
* Pure with respect to the inputs — no side effects.
|
|
674
|
+
*/
|
|
675
|
+
declare function filterDiscoveryByWorkspaceScopes(discovery: WorkspaceCapabilityDiscovery, workspaceScopes: string[], opts?: {
|
|
676
|
+
denyByDefault?: boolean;
|
|
677
|
+
}): WorkspaceCapabilityDiscovery;
|
|
682
678
|
|
|
683
679
|
interface IntegrationWorkflowDefinition {
|
|
684
680
|
id: string;
|
|
@@ -2136,4 +2132,4 @@ declare function createHttpIntegrationProvider(options: HttpIntegrationProviderO
|
|
|
2136
2132
|
declare function signCapability(capability: IntegrationCapability, secret: string): string;
|
|
2137
2133
|
declare function verifyCapabilityToken(token: string, secret: string): IntegrationCapability;
|
|
2138
2134
|
|
|
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 };
|
|
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,11 +4,15 @@ import {
|
|
|
4
4
|
composeIntegrationRegistry,
|
|
5
5
|
inferIntegrationSupportTier,
|
|
6
6
|
summarizeIntegrationRegistry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWRYFPJW.js";
|
|
8
|
+
import "./chunk-SVQ4PHDZ.js";
|
|
9
|
+
import "./chunk-H4XYLS7T.js";
|
|
8
10
|
import "./chunk-4JQ754PA.js";
|
|
9
11
|
import "./chunk-376UBTNB.js";
|
|
10
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-JU25UDN2.js";
|
|
11
13
|
import "./chunk-2TW2QKGZ.js";
|
|
14
|
+
import "./chunk-P24T3MLM.js";
|
|
15
|
+
import "./chunk-ATYHZXLL.js";
|
|
12
16
|
export {
|
|
13
17
|
buildDefaultIntegrationRegistry,
|
|
14
18
|
canonicalConnectorId,
|