@tangle-network/agent-integrations 0.15.0 → 0.16.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/README.md +27 -0
- package/dist/index.d.ts +218 -52
- package/dist/index.js +759 -156
- package/dist/index.js.map +1 -1
- package/docs/repo-structure.md +47 -0
- package/examples/calendar-exercise-app.ts +78 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,9 @@ agent-facing tool contract.
|
|
|
47
47
|
automation, sync jobs, webhooks, and product workflows.
|
|
48
48
|
- Approval persistence, audit events, healthchecks, credential resolution,
|
|
49
49
|
webhook ingestion, idempotency guards, and sandbox/CLI bridge payloads.
|
|
50
|
+
- Generated-app client helpers, manifest inference/validation, consent copy,
|
|
51
|
+
platform policy presets, canonical launch action schemas, and controlled
|
|
52
|
+
provider-native passthrough validation.
|
|
50
53
|
- A generated `IntegrationSpec` registry used for setup docs, admin UI steps,
|
|
51
54
|
normalized permissions, healthcheck plans, and tool descriptions.
|
|
52
55
|
|
|
@@ -94,6 +97,12 @@ pnpm add @tangle-network/agent-integrations
|
|
|
94
97
|
| `runIntegrationHealthchecks` | Checks connection status, registry executability, scope shape, and optional live provider tests. |
|
|
95
98
|
| `receiveIntegrationWebhook` | Verifies inbound webhooks, dedupes provider events, and dispatches normalized trigger events. |
|
|
96
99
|
| `buildIntegrationBridgeEnvironment` | Encodes scoped sandbox capabilities for sandbox processes or executor-style CLIs. |
|
|
100
|
+
| `createTangleIntegrationsClient` | Tiny generated-app/sandbox client for platform `/v1/integrations/invoke`. |
|
|
101
|
+
| `inferIntegrationManifestFromTools` / `validateIntegrationManifest` | Deterministic manifest helpers for Builder and platform APIs. |
|
|
102
|
+
| `renderConsentSummary` / `renderApprovalCopy` | User-facing consent and approval copy from manifests/actions. |
|
|
103
|
+
| `createPlatformIntegrationPolicyPreset` | Secure defaults: reads allowed after grant, writes need approval, destructive denied, passthrough disabled. |
|
|
104
|
+
| `buildCanonicalLaunchConnectors` | Product-ready launch action schemas for Calendar, Gmail, Drive, GitHub, and Slack. |
|
|
105
|
+
| `validateProviderPassthroughRequest` | Policy-gated provider-native HTTP escape hatch validation. |
|
|
97
106
|
| `buildIntegrationToolCatalog` | Converts connector actions into agent/tool definitions. |
|
|
98
107
|
| `searchIntegrationTools` | Intent search over normalized integration tools. |
|
|
99
108
|
| `buildDefaultIntegrationRegistry` | Composes setup specs and vendored catalog metadata into one deduplicated connector registry. |
|
|
@@ -153,6 +162,20 @@ definitions. They never receive OAuth refresh tokens, API keys, or raw secrets.
|
|
|
153
162
|
For sandbox processes, pass the bundle through `buildIntegrationBridgeEnvironment()`;
|
|
154
163
|
the payload contains short-lived capability tokens and tool names only.
|
|
155
164
|
|
|
165
|
+
Generated app code should use the tiny client instead of raw provider tokens:
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
const integrations = createTangleIntegrationsClient({
|
|
169
|
+
endpoint: 'https://id.tangle.tools',
|
|
170
|
+
env: process.env,
|
|
171
|
+
})
|
|
172
|
+
|
|
173
|
+
await integrations.invoke({
|
|
174
|
+
tool: 'google-calendar.events.list',
|
|
175
|
+
input: { calendarId: 'primary', timeMin, timeMax },
|
|
176
|
+
})
|
|
177
|
+
```
|
|
178
|
+
|
|
156
179
|
The same manifest/grant model works for non-agent workflows:
|
|
157
180
|
|
|
158
181
|
```ts
|
|
@@ -215,6 +238,8 @@ Runnable examples live in [`examples/`](./examples):
|
|
|
215
238
|
first-party adapter provider wiring.
|
|
216
239
|
- [`examples/declarative-rest.ts`](./examples/declarative-rest.ts) - compact
|
|
217
240
|
REST connector spec.
|
|
241
|
+
- [`examples/calendar-exercise-app.ts`](./examples/calendar-exercise-app.ts) -
|
|
242
|
+
generated-app golden path: manifest, consent copy, bridge env, and invoke.
|
|
218
243
|
|
|
219
244
|
The README stays short; examples are separate so they can be copied and expanded
|
|
220
245
|
without obscuring the package contract.
|
|
@@ -232,6 +257,8 @@ without obscuring the package contract.
|
|
|
232
257
|
- Invocation envelopes validate action/tool consistency, idempotency keys,
|
|
233
258
|
metadata shape, known tools, and input size.
|
|
234
259
|
- Webhook ingestion supports signature verification and provider-event dedupe.
|
|
260
|
+
- Provider-native passthrough is disabled by default and must be explicitly
|
|
261
|
+
policy-enabled with method/path/body limits.
|
|
235
262
|
- Action invocation checks ownership, connection status, scopes, allowed actions,
|
|
236
263
|
and expiration.
|
|
237
264
|
- `IntegrationActionGuard` can enforce idempotency, approval, audit logging,
|
package/dist/index.d.ts
CHANGED
|
@@ -162,6 +162,30 @@ declare function resolveIntegrationApproval(input: {
|
|
|
162
162
|
now?: () => Date;
|
|
163
163
|
}): Promise<IntegrationApprovalRecord>;
|
|
164
164
|
|
|
165
|
+
declare const CANONICAL_INTEGRATION_ACTIONS: {
|
|
166
|
+
readonly googleCalendarEventsList: "google-calendar.events.list";
|
|
167
|
+
readonly googleCalendarEventsCreate: "google-calendar.events.create";
|
|
168
|
+
readonly gmailMessagesSearch: "gmail.messages.search";
|
|
169
|
+
readonly gmailMessagesSend: "gmail.messages.send";
|
|
170
|
+
readonly googleDriveFilesSearch: "google-drive.files.search";
|
|
171
|
+
readonly googleDriveFilesRead: "google-drive.files.read";
|
|
172
|
+
readonly githubRepositoriesGet: "github.repositories.get";
|
|
173
|
+
readonly githubIssuesSearch: "github.issues.search";
|
|
174
|
+
readonly githubIssuesCreate: "github.issues.create";
|
|
175
|
+
readonly githubPullRequestsComment: "github.pull-requests.comment";
|
|
176
|
+
readonly slackChannelsList: "slack.channels.list";
|
|
177
|
+
readonly slackMessagesSearch: "slack.messages.search";
|
|
178
|
+
readonly slackMessagesPost: "slack.messages.post";
|
|
179
|
+
readonly providerHttpRequest: "provider.http.request";
|
|
180
|
+
};
|
|
181
|
+
type CanonicalIntegrationActionId = typeof CANONICAL_INTEGRATION_ACTIONS[keyof typeof CANONICAL_INTEGRATION_ACTIONS];
|
|
182
|
+
interface CanonicalLaunchConnectorOptions {
|
|
183
|
+
providerId?: string;
|
|
184
|
+
includeProviderPassthrough?: boolean;
|
|
185
|
+
}
|
|
186
|
+
declare function buildCanonicalLaunchConnectors(options?: CanonicalLaunchConnectorOptions): IntegrationConnector[];
|
|
187
|
+
declare function canonicalActionConnectorId(actionId: string): string | undefined;
|
|
188
|
+
|
|
165
189
|
interface IntegrationToolDefinition {
|
|
166
190
|
name: string;
|
|
167
191
|
title: string;
|
|
@@ -361,6 +385,61 @@ declare function parseIntegrationBridgeEnvironment(env: Record<string, string |
|
|
|
361
385
|
}): IntegrationBridgePayload;
|
|
362
386
|
declare function redactIntegrationBridgePayload(payload: IntegrationBridgePayload): IntegrationBridgePayload;
|
|
363
387
|
|
|
388
|
+
interface TangleIntegrationsClientOptions {
|
|
389
|
+
endpoint: string;
|
|
390
|
+
bridge?: IntegrationBridgePayload;
|
|
391
|
+
env?: Record<string, string | undefined>;
|
|
392
|
+
envVar?: string;
|
|
393
|
+
fetchImpl?: typeof fetch;
|
|
394
|
+
getCapabilityToken?: (tool: IntegrationBridgeToolBinding) => string | Promise<string>;
|
|
395
|
+
}
|
|
396
|
+
interface TangleIntegrationInvokeInput<TInput = unknown> {
|
|
397
|
+
tool: string;
|
|
398
|
+
input?: TInput;
|
|
399
|
+
idempotencyKey?: string;
|
|
400
|
+
dryRun?: boolean;
|
|
401
|
+
metadata?: Record<string, unknown>;
|
|
402
|
+
}
|
|
403
|
+
interface TangleIntegrationInvokeResult<TOutput = unknown> {
|
|
404
|
+
status: 'ok' | 'approval_required' | 'failed';
|
|
405
|
+
action: string;
|
|
406
|
+
output?: TOutput;
|
|
407
|
+
approval?: unknown;
|
|
408
|
+
error?: string;
|
|
409
|
+
metadata?: Record<string, unknown>;
|
|
410
|
+
}
|
|
411
|
+
declare class TangleIntegrationsClient {
|
|
412
|
+
private readonly endpoint;
|
|
413
|
+
private readonly bridge;
|
|
414
|
+
private readonly fetchImpl;
|
|
415
|
+
private readonly getCapabilityToken;
|
|
416
|
+
constructor(options: TangleIntegrationsClientOptions);
|
|
417
|
+
tools(): IntegrationBridgeToolBinding[];
|
|
418
|
+
findTool(toolOrAction: string): IntegrationBridgeToolBinding;
|
|
419
|
+
invoke<TOutput = unknown, TInput = unknown>(input: TangleIntegrationInvokeInput<TInput>): Promise<TangleIntegrationInvokeResult<TOutput>>;
|
|
420
|
+
}
|
|
421
|
+
declare function createTangleIntegrationsClient(options: TangleIntegrationsClientOptions): TangleIntegrationsClient;
|
|
422
|
+
|
|
423
|
+
interface ConsentSummary {
|
|
424
|
+
title: string;
|
|
425
|
+
body: string;
|
|
426
|
+
bullets: string[];
|
|
427
|
+
primaryAction: string;
|
|
428
|
+
risk: 'read' | 'write' | 'destructive';
|
|
429
|
+
connectorIds: string[];
|
|
430
|
+
}
|
|
431
|
+
interface RenderConsentOptions {
|
|
432
|
+
appName?: string;
|
|
433
|
+
connectors?: IntegrationConnector[];
|
|
434
|
+
}
|
|
435
|
+
declare function renderConsentSummary(manifestOrResolution: IntegrationManifest | IntegrationManifestResolution, options?: RenderConsentOptions): ConsentSummary;
|
|
436
|
+
declare function renderApprovalCopy(input: {
|
|
437
|
+
appName: string;
|
|
438
|
+
connectorTitle: string;
|
|
439
|
+
action: IntegrationConnectorAction;
|
|
440
|
+
approvalId?: string;
|
|
441
|
+
}): ConsentSummary;
|
|
442
|
+
|
|
364
443
|
/**
|
|
365
444
|
* Connector primitives — the contract a concrete first-party integration
|
|
366
445
|
* (Google Calendar, HubSpot, Stripe, ...) implements. Lower level than the
|
|
@@ -782,6 +861,37 @@ declare function revokeConnection(input: {
|
|
|
782
861
|
now?: () => Date;
|
|
783
862
|
}): Promise<IntegrationConnection>;
|
|
784
863
|
|
|
864
|
+
type IntegrationErrorCode = 'missing_connection' | 'missing_grant' | 'approval_required' | 'approval_denied' | 'connection_revoked' | 'connection_expired' | 'scope_missing' | 'action_denied' | 'action_not_found' | 'provider_rate_limited' | 'provider_auth_failed' | 'provider_unavailable' | 'provider_error' | 'capability_expired' | 'capability_invalid' | 'manifest_invalid' | 'passthrough_disabled' | 'input_invalid' | 'unknown';
|
|
865
|
+
interface IntegrationUserAction {
|
|
866
|
+
type: 'connect' | 'reconnect' | 'approve' | 'retry' | 'contact_support' | 'change_request';
|
|
867
|
+
label: string;
|
|
868
|
+
connectorId?: string;
|
|
869
|
+
approvalId?: string;
|
|
870
|
+
}
|
|
871
|
+
declare class IntegrationRuntimeError extends Error {
|
|
872
|
+
readonly code: IntegrationErrorCode;
|
|
873
|
+
readonly status: number;
|
|
874
|
+
readonly userAction?: IntegrationUserAction;
|
|
875
|
+
readonly metadata?: Record<string, unknown>;
|
|
876
|
+
constructor(input: {
|
|
877
|
+
code: IntegrationErrorCode;
|
|
878
|
+
message: string;
|
|
879
|
+
status?: number;
|
|
880
|
+
userAction?: IntegrationUserAction;
|
|
881
|
+
metadata?: Record<string, unknown>;
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
interface NormalizedIntegrationError {
|
|
885
|
+
ok: false;
|
|
886
|
+
code: IntegrationErrorCode;
|
|
887
|
+
message: string;
|
|
888
|
+
status: number;
|
|
889
|
+
userAction?: IntegrationUserAction;
|
|
890
|
+
metadata?: Record<string, unknown>;
|
|
891
|
+
}
|
|
892
|
+
declare function normalizeIntegrationError(error: unknown): NormalizedIntegrationError;
|
|
893
|
+
declare function statusForCode(code: IntegrationErrorCode): number;
|
|
894
|
+
|
|
785
895
|
interface IntegrationWorkflowDefinition {
|
|
786
896
|
id: string;
|
|
787
897
|
title?: string;
|
|
@@ -976,6 +1086,113 @@ declare function runIntegrationHealthchecks(input: {
|
|
|
976
1086
|
}): Promise<IntegrationHealthcheckResult[]>;
|
|
977
1087
|
declare function healthcheckRequest(action?: string): IntegrationActionRequest;
|
|
978
1088
|
|
|
1089
|
+
interface ManifestValidationIssue {
|
|
1090
|
+
path: string;
|
|
1091
|
+
message: string;
|
|
1092
|
+
}
|
|
1093
|
+
interface ManifestValidationResult {
|
|
1094
|
+
ok: boolean;
|
|
1095
|
+
issues: ManifestValidationIssue[];
|
|
1096
|
+
}
|
|
1097
|
+
interface InferIntegrationRequirementsOptions {
|
|
1098
|
+
manifestId: string;
|
|
1099
|
+
title?: string;
|
|
1100
|
+
tools: Array<string | {
|
|
1101
|
+
action: string;
|
|
1102
|
+
reason?: string;
|
|
1103
|
+
mode?: IntegrationRequirementMode;
|
|
1104
|
+
connectorId?: string;
|
|
1105
|
+
scopes?: string[];
|
|
1106
|
+
}>;
|
|
1107
|
+
metadata?: Record<string, unknown>;
|
|
1108
|
+
}
|
|
1109
|
+
interface MissingRequirementExplanation {
|
|
1110
|
+
requirementId: string;
|
|
1111
|
+
connectorId: string;
|
|
1112
|
+
status: string;
|
|
1113
|
+
message: string;
|
|
1114
|
+
userAction: 'connect' | 'enable' | 'ignore_optional';
|
|
1115
|
+
}
|
|
1116
|
+
declare function validateIntegrationManifest(manifest: IntegrationManifest): ManifestValidationResult;
|
|
1117
|
+
declare function assertValidIntegrationManifest(manifest: IntegrationManifest): void;
|
|
1118
|
+
declare function inferIntegrationManifestFromTools(options: InferIntegrationRequirementsOptions): IntegrationManifest;
|
|
1119
|
+
declare function explainMissingRequirements(resolution: IntegrationManifestResolution): MissingRequirementExplanation[];
|
|
1120
|
+
declare function calendarExercisePlannerManifest(id?: string): IntegrationManifest;
|
|
1121
|
+
|
|
1122
|
+
interface ProviderHttpRequestInput {
|
|
1123
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
1124
|
+
path: string;
|
|
1125
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
1126
|
+
headers?: Record<string, string>;
|
|
1127
|
+
body?: unknown;
|
|
1128
|
+
}
|
|
1129
|
+
interface ProviderPassthroughPolicy {
|
|
1130
|
+
enabled: boolean;
|
|
1131
|
+
allowedMethods?: ProviderHttpRequestInput['method'][];
|
|
1132
|
+
allowedPathPrefixes?: string[];
|
|
1133
|
+
maxBodyBytes?: number;
|
|
1134
|
+
}
|
|
1135
|
+
declare const PROVIDER_PASSTHROUGH_ACTION: "provider.http.request";
|
|
1136
|
+
declare function validateProviderPassthroughRequest(input: ProviderHttpRequestInput, policy: ProviderPassthroughPolicy): void;
|
|
1137
|
+
|
|
1138
|
+
type IntegrationPolicyEffect = 'allow' | 'require_approval' | 'deny';
|
|
1139
|
+
interface IntegrationPolicyRule {
|
|
1140
|
+
id: string;
|
|
1141
|
+
effect: IntegrationPolicyEffect;
|
|
1142
|
+
reason: string;
|
|
1143
|
+
providerId?: string;
|
|
1144
|
+
connectorId?: string;
|
|
1145
|
+
action?: string;
|
|
1146
|
+
maxRisk?: IntegrationActionRisk;
|
|
1147
|
+
risk?: IntegrationActionRisk;
|
|
1148
|
+
dataClass?: IntegrationDataClass;
|
|
1149
|
+
}
|
|
1150
|
+
interface StaticIntegrationPolicyOptions {
|
|
1151
|
+
rules?: IntegrationPolicyRule[];
|
|
1152
|
+
defaultReadEffect?: IntegrationPolicyEffect;
|
|
1153
|
+
defaultWriteEffect?: IntegrationPolicyEffect;
|
|
1154
|
+
defaultDestructiveEffect?: IntegrationPolicyEffect;
|
|
1155
|
+
now?: () => Date;
|
|
1156
|
+
}
|
|
1157
|
+
interface IntegrationApprovalResolution {
|
|
1158
|
+
approvalId: string;
|
|
1159
|
+
approved: boolean;
|
|
1160
|
+
resolvedBy: string;
|
|
1161
|
+
resolvedAt: string;
|
|
1162
|
+
reason?: string;
|
|
1163
|
+
metadata?: Record<string, unknown>;
|
|
1164
|
+
}
|
|
1165
|
+
declare class StaticIntegrationPolicyEngine implements IntegrationPolicyEngine {
|
|
1166
|
+
private readonly rules;
|
|
1167
|
+
private readonly defaultReadEffect;
|
|
1168
|
+
private readonly defaultWriteEffect;
|
|
1169
|
+
private readonly defaultDestructiveEffect;
|
|
1170
|
+
private readonly now;
|
|
1171
|
+
constructor(options?: StaticIntegrationPolicyOptions);
|
|
1172
|
+
decide(ctx: IntegrationGuardContext & {
|
|
1173
|
+
subject: {
|
|
1174
|
+
type: string;
|
|
1175
|
+
id: string;
|
|
1176
|
+
};
|
|
1177
|
+
}): IntegrationPolicyDecision;
|
|
1178
|
+
private defaultEffect;
|
|
1179
|
+
}
|
|
1180
|
+
declare function createDefaultIntegrationPolicyEngine(options?: Omit<StaticIntegrationPolicyOptions, 'rules'>): StaticIntegrationPolicyEngine;
|
|
1181
|
+
declare function buildApprovalRequest(ctx: IntegrationGuardContext & {
|
|
1182
|
+
subject: {
|
|
1183
|
+
type: string;
|
|
1184
|
+
id: string;
|
|
1185
|
+
};
|
|
1186
|
+
}, reason: string, requestedAt: Date): IntegrationApprovalRequest;
|
|
1187
|
+
declare function redactApprovalRequest(request: IntegrationApprovalRequest): IntegrationApprovalRequest;
|
|
1188
|
+
|
|
1189
|
+
interface PlatformIntegrationPolicyPresetOptions extends Omit<StaticIntegrationPolicyOptions, 'defaultReadEffect' | 'defaultWriteEffect' | 'defaultDestructiveEffect'> {
|
|
1190
|
+
allowWritesWithoutApproval?: boolean;
|
|
1191
|
+
allowDestructiveActions?: boolean;
|
|
1192
|
+
allowProviderPassthrough?: boolean;
|
|
1193
|
+
}
|
|
1194
|
+
declare function createPlatformIntegrationPolicyPreset(options?: PlatformIntegrationPolicyPresetOptions): StaticIntegrationPolicyEngine;
|
|
1195
|
+
|
|
979
1196
|
/**
|
|
980
1197
|
* Generic OAuth2 helper used by every oauth-shaped connector (Google
|
|
981
1198
|
* Calendar, Sheets, Drive, HubSpot, Salesforce, Zoom, ...).
|
|
@@ -1572,57 +1789,6 @@ declare const asanaConnector: ConnectorAdapter;
|
|
|
1572
1789
|
|
|
1573
1790
|
declare const salesforceConnector: ConnectorAdapter;
|
|
1574
1791
|
|
|
1575
|
-
type IntegrationPolicyEffect = 'allow' | 'require_approval' | 'deny';
|
|
1576
|
-
interface IntegrationPolicyRule {
|
|
1577
|
-
id: string;
|
|
1578
|
-
effect: IntegrationPolicyEffect;
|
|
1579
|
-
reason: string;
|
|
1580
|
-
providerId?: string;
|
|
1581
|
-
connectorId?: string;
|
|
1582
|
-
action?: string;
|
|
1583
|
-
maxRisk?: IntegrationActionRisk;
|
|
1584
|
-
risk?: IntegrationActionRisk;
|
|
1585
|
-
dataClass?: IntegrationDataClass;
|
|
1586
|
-
}
|
|
1587
|
-
interface StaticIntegrationPolicyOptions {
|
|
1588
|
-
rules?: IntegrationPolicyRule[];
|
|
1589
|
-
defaultReadEffect?: IntegrationPolicyEffect;
|
|
1590
|
-
defaultWriteEffect?: IntegrationPolicyEffect;
|
|
1591
|
-
defaultDestructiveEffect?: IntegrationPolicyEffect;
|
|
1592
|
-
now?: () => Date;
|
|
1593
|
-
}
|
|
1594
|
-
interface IntegrationApprovalResolution {
|
|
1595
|
-
approvalId: string;
|
|
1596
|
-
approved: boolean;
|
|
1597
|
-
resolvedBy: string;
|
|
1598
|
-
resolvedAt: string;
|
|
1599
|
-
reason?: string;
|
|
1600
|
-
metadata?: Record<string, unknown>;
|
|
1601
|
-
}
|
|
1602
|
-
declare class StaticIntegrationPolicyEngine implements IntegrationPolicyEngine {
|
|
1603
|
-
private readonly rules;
|
|
1604
|
-
private readonly defaultReadEffect;
|
|
1605
|
-
private readonly defaultWriteEffect;
|
|
1606
|
-
private readonly defaultDestructiveEffect;
|
|
1607
|
-
private readonly now;
|
|
1608
|
-
constructor(options?: StaticIntegrationPolicyOptions);
|
|
1609
|
-
decide(ctx: IntegrationGuardContext & {
|
|
1610
|
-
subject: {
|
|
1611
|
-
type: string;
|
|
1612
|
-
id: string;
|
|
1613
|
-
};
|
|
1614
|
-
}): IntegrationPolicyDecision;
|
|
1615
|
-
private defaultEffect;
|
|
1616
|
-
}
|
|
1617
|
-
declare function createDefaultIntegrationPolicyEngine(options?: Omit<StaticIntegrationPolicyOptions, 'rules'>): StaticIntegrationPolicyEngine;
|
|
1618
|
-
declare function buildApprovalRequest(ctx: IntegrationGuardContext & {
|
|
1619
|
-
subject: {
|
|
1620
|
-
type: string;
|
|
1621
|
-
id: string;
|
|
1622
|
-
};
|
|
1623
|
-
}, reason: string, requestedAt: Date): IntegrationApprovalRequest;
|
|
1624
|
-
declare function redactApprovalRequest(request: IntegrationApprovalRequest): IntegrationApprovalRequest;
|
|
1625
|
-
|
|
1626
1792
|
interface IntegrationInvocationEnvelope {
|
|
1627
1793
|
kind: 'integration.invocation';
|
|
1628
1794
|
capabilityToken: string;
|
|
@@ -2330,4 +2496,4 @@ declare function createHttpIntegrationProvider(options: HttpIntegrationProviderO
|
|
|
2330
2496
|
declare function signCapability(capability: IntegrationCapability, secret: string): string;
|
|
2331
2497
|
declare function verifyCapabilityToken(token: string, secret: string): IntegrationCapability;
|
|
2332
2498
|
|
|
2333
|
-
export { ACTIVEPIECES_OVERRIDES, type ActivepiecesCatalogEntry, type ActivepiecesPieceOverride, type ApiKeyAuthSpec, ApprovalBackedPolicyEngine, type ApprovalBackedPolicyOptions, type AuthSpec, type CASStrategy, type Capability, type CapabilityClass, type CapabilityMutation, type CapabilityMutationResult, type CapabilityParameterSchema, type CapabilityRead, type CapabilityReadResult, type CompleteAuthRequest, type ComposeIntegrationRegistryOptions, type ConnectionCredentialResolverOptions, type ConnectorAdapter, type ConnectorAdapterProviderOptions, type ConnectorCredentials, type ConnectorInvocation, type ConnectorManifest, type ConnectorManifestValidationIssue, type ConnectorManifestValidationResult, type ConsistencyModel, type ConsoleStep, type CredentialFieldSpec, type CredentialValidationInput, type CredentialValidationResult, CredentialsExpired, type CustomAuthSpec, DEFAULT_INTEGRATION_BRIDGE_ENV, DEFAULT_SIGNATURE_TOLERANCE_SECONDS, type DataSourceMetadata, DefaultIntegrationActionGuard, type EventHandlerResult, type ExchangeCodeInput, type GatewayCatalogAction, type GatewayCatalogEntry, type GatewayCatalogProviderOptions, type GatewayCatalogTrigger, type GenericHmacVerifyOptions, type GoogleCalendarOptions, type GoogleSheetsOptions, type GraphqlOperationSpec, type HealthcheckPlan, type HealthcheckSpec, type HmacAuthSpec, type HttpIntegrationProviderOptions, type HubSpotOptions, INTEGRATION_FAMILIES, type ImportCatalogOptions, InMemoryConnectionStore, InMemoryIntegrationApprovalStore, InMemoryIntegrationAuditStore, InMemoryIntegrationEventStore, InMemoryIntegrationGrantStore, InMemoryIntegrationHealthcheckStore, InMemoryIntegrationIdempotencyStore, InMemoryIntegrationSecretStore, InMemoryIntegrationWorkflowStore, InMemoryOAuthFlowStore, type InboundEvent, type InstalledIntegrationWorkflow, type IntegrationActionGuard, type IntegrationActionPack, type IntegrationActionRequest, type IntegrationActionResult, type IntegrationActionRisk, type IntegrationActor, type IntegrationApprovalFilter, type IntegrationApprovalRecord, type IntegrationApprovalRequest, type IntegrationApprovalResolution, type IntegrationApprovalStatus, type IntegrationApprovalStore, type IntegrationAuditEvent, type IntegrationAuditEventType, type IntegrationAuditFilter, type IntegrationAuditSink, type IntegrationAuditStore, type IntegrationAuthMode, type IntegrationAuthSpec, type IntegrationBridgePayload, type IntegrationBridgeToolBinding, type IntegrationCapability, type IntegrationCapabilityBinding, type IntegrationCatalogSource, type IntegrationConnection, type IntegrationConnectionStore, type IntegrationConnector, type IntegrationConnectorAction, type IntegrationConnectorCategory, type IntegrationConnectorTrigger, type IntegrationCoveragePriority, type IntegrationCoverageSpec, type IntegrationDataClass, IntegrationError, type IntegrationEventStore, type IntegrationFamilyId, type IntegrationFamilySpec, type IntegrationGrant, type IntegrationGrantStore, type IntegrationGuardContext, type IntegrationHealthcheckCheck, type IntegrationHealthcheckResult, type IntegrationHealthcheckStatus, type IntegrationHealthcheckStore, IntegrationHub, type IntegrationHubOptions, type IntegrationIdempotencyRecord, type IntegrationIdempotencyStore, type IntegrationInvocationEnvelope, type IntegrationInvocationEnvelopeValidationOptions, type IntegrationLifecycleSpec, type IntegrationManifest, type IntegrationManifestResolution, type IntegrationPlannerHints, type IntegrationPolicyDecision, type IntegrationPolicyEffect, type IntegrationPolicyEngine, type IntegrationPolicyRule, type IntegrationProvider, type IntegrationProviderKind, type IntegrationRateLimitDecision, type IntegrationRateLimiter, type IntegrationRegistry, type IntegrationRegistryConflict, type IntegrationRegistryEntry, type IntegrationRegistrySourceRef, type IntegrationRegistrySummary, type IntegrationRequirement, type IntegrationRequirementMode, type IntegrationRequirementResolution, type IntegrationRequirementStatus, IntegrationRuntime, type IntegrationRuntimeHub, type IntegrationRuntimeOptions, type IntegrationSandboxBundle, IntegrationSandboxHost, type IntegrationSandboxHostHub, type IntegrationSandboxHostOptions, type IntegrationSecretStore, type IntegrationSetupSpec, type IntegrationSpec, type IntegrationSpecStatus, type IntegrationSpecValidationIssue, type IntegrationSpecValidationResult, type IntegrationSupportTier, type IntegrationToolDefinition, type IntegrationToolSearchFilters, type IntegrationToolSearchResult, type IntegrationTriggerEvent, type IntegrationTriggerSubscription, type IntegrationWebhookReceiverResult, type IntegrationWorkflowDefinition, IntegrationWorkflowRuntime, type IntegrationWorkflowRuntimeHub, type IntegrationWorkflowRuntimeOptions, type IntegrationWorkflowStore, type InvokeWithCapabilityRequest, type IssueCapabilityRequest, type IssuedIntegrationCapability, type McpCatalog, type McpCatalogTool, type McpToolDefinition, type MicrosoftCalendarOptions, type NoneAuthSpec, type NormalizedIntegrationResult, type NormalizedPermission, type NotionDatabaseOptions, type OAuth2AuthSpec, type OAuthFlowStore, type OAuthTokens, type OpenApiDocument, type OpenApiOperation, type ParsedStripeSignatureHeader, type PendingOAuthFlow, type PermissionDescriptor, type PostSetupCheck, type Quirk, type RateLimitSpec, type RefreshInput, type RenderSpecOptions, type RenderedConsoleStep, type ResolvedDataSource, ResourceContention, type RestConnectorSpec, type RestCredentialPlacement, type RestOperationSpec, type RestRequestSpec, type ScopeDescriptor, type SecretRef, type SlackOptions, type SlackVerifyOptions, type StartAuthRequest, type StartAuthResult, type StartOAuthInput, type StartOAuthOutput, StaticIntegrationPolicyEngine, type StaticIntegrationPolicyOptions, type StoredIntegrationEvent, type StripeVerifyOptions, type TwilioVerifyOptions, _resetPendingFlowsForTests, airtableConnector, asanaConnector, assertValidConnectorManifest, assertValidIntegrationSpec, buildActivepiecesConnectors, buildApprovalRequest, buildDefaultIntegrationRegistry, buildHealthcheckPlan, buildIntegrationBridgeEnvironment, buildIntegrationBridgePayload, buildIntegrationCoverageConnectors, buildIntegrationInvocationEnvelope, buildIntegrationToolCatalog, canonicalConnectorId, composeIntegrationRegistry, consoleStepsToText, consumePendingFlow, createApprovalBackedPolicyEngine, createAuditingActionGuard, createConnectionCredentialResolver, createConnectorAdapterProvider, createCredentialBackedAdapterProvider, createDefaultIntegrationActionGuard, createDefaultIntegrationPolicyEngine, createGatewayCatalogProvider, createHttpIntegrationProvider, createIntegrationAuditEvent, createIntegrationRuntime, createIntegrationWorkflowRuntime, createMockIntegrationProvider, declarativeRestConnector, decodeIntegrationBridgePayload, dispatchIntegrationInvocation, encodeIntegrationBridgePayload, exchangeAuthorizationCode, firstHeader, getActivepiecesOverride, getIntegrationFamily, getIntegrationSpec, githubConnector, gitlabConnector, googleCalendar, googleSheets, healthcheckRequest, hubspot, importGraphqlConnector, importMcpConnector, importOpenApiConnector, inferIntegrationSupportTier, integrationCoverageChecklistMarkdown, integrationSpecToConnector, integrationToolName, invocationRequestFromEnvelope, listActivepiecesCatalogEntries, listExecutableIntegrationSpecs, listIntegrationCoverageSpecs, listIntegrationSpecs, manifestToConnector, microsoftCalendar, normalizeGatewayCatalog, normalizeIntegrationResult, notionDatabase, parseIntegrationBridgeEnvironment, parseIntegrationToolName, parseStripeSignatureHeader, receiveIntegrationWebhook, redactApprovalRequest, redactCapability, redactIntegrationBridgePayload, redactInvocationEnvelope, refreshAccessToken, renderAgentToolDescription, renderConsoleSteps, renderRunbookMarkdown, resolveConnectionCredentials, resolveIntegrationApproval, revokeConnection, runIntegrationHealthcheck, runIntegrationHealthchecks, salesforceConnector, sanitizeAuditConnection, sanitizeConnection, searchIntegrationTools, signCapability, slack, slackEventsConnector, specAuthToConnectorAuth, startOAuthFlow, storedEventToTriggerEvent, stripePackConnector, stripeWebhookReceiverConnector, summarizeIntegrationRegistry, toMcpTools, twilioSmsConnector, validateConnectorManifest, validateCredentialFormat, validateCredentialSet, validateIntegrationInvocationEnvelope, validateIntegrationSpec, verifyCapabilityToken, verifyHmacSignature, verifySlackSignature, verifyStripeSignature, verifyTwilioSignature, webhookConnector };
|
|
2499
|
+
export { ACTIVEPIECES_OVERRIDES, type ActivepiecesCatalogEntry, type ActivepiecesPieceOverride, type ApiKeyAuthSpec, ApprovalBackedPolicyEngine, type ApprovalBackedPolicyOptions, type AuthSpec, CANONICAL_INTEGRATION_ACTIONS, type CASStrategy, type CanonicalIntegrationActionId, type CanonicalLaunchConnectorOptions, type Capability, type CapabilityClass, type CapabilityMutation, type CapabilityMutationResult, type CapabilityParameterSchema, type CapabilityRead, type CapabilityReadResult, type CompleteAuthRequest, type ComposeIntegrationRegistryOptions, type ConnectionCredentialResolverOptions, type ConnectorAdapter, type ConnectorAdapterProviderOptions, type ConnectorCredentials, type ConnectorInvocation, type ConnectorManifest, type ConnectorManifestValidationIssue, type ConnectorManifestValidationResult, type ConsentSummary, type ConsistencyModel, type ConsoleStep, type CredentialFieldSpec, type CredentialValidationInput, type CredentialValidationResult, CredentialsExpired, type CustomAuthSpec, DEFAULT_INTEGRATION_BRIDGE_ENV, DEFAULT_SIGNATURE_TOLERANCE_SECONDS, type DataSourceMetadata, DefaultIntegrationActionGuard, type EventHandlerResult, type ExchangeCodeInput, type GatewayCatalogAction, type GatewayCatalogEntry, type GatewayCatalogProviderOptions, type GatewayCatalogTrigger, type GenericHmacVerifyOptions, type GoogleCalendarOptions, type GoogleSheetsOptions, type GraphqlOperationSpec, type HealthcheckPlan, type HealthcheckSpec, type HmacAuthSpec, type HttpIntegrationProviderOptions, type HubSpotOptions, INTEGRATION_FAMILIES, type ImportCatalogOptions, InMemoryConnectionStore, InMemoryIntegrationApprovalStore, InMemoryIntegrationAuditStore, InMemoryIntegrationEventStore, InMemoryIntegrationGrantStore, InMemoryIntegrationHealthcheckStore, InMemoryIntegrationIdempotencyStore, InMemoryIntegrationSecretStore, InMemoryIntegrationWorkflowStore, InMemoryOAuthFlowStore, type InboundEvent, type InferIntegrationRequirementsOptions, type InstalledIntegrationWorkflow, type IntegrationActionGuard, type IntegrationActionPack, type IntegrationActionRequest, type IntegrationActionResult, type IntegrationActionRisk, type IntegrationActor, type IntegrationApprovalFilter, type IntegrationApprovalRecord, type IntegrationApprovalRequest, type IntegrationApprovalResolution, type IntegrationApprovalStatus, type IntegrationApprovalStore, type IntegrationAuditEvent, type IntegrationAuditEventType, type IntegrationAuditFilter, type IntegrationAuditSink, type IntegrationAuditStore, type IntegrationAuthMode, type IntegrationAuthSpec, type IntegrationBridgePayload, type IntegrationBridgeToolBinding, type IntegrationCapability, type IntegrationCapabilityBinding, type IntegrationCatalogSource, type IntegrationConnection, type IntegrationConnectionStore, type IntegrationConnector, type IntegrationConnectorAction, type IntegrationConnectorCategory, type IntegrationConnectorTrigger, type IntegrationCoveragePriority, type IntegrationCoverageSpec, type IntegrationDataClass, IntegrationError, type IntegrationErrorCode, type IntegrationEventStore, type IntegrationFamilyId, type IntegrationFamilySpec, type IntegrationGrant, type IntegrationGrantStore, type IntegrationGuardContext, type IntegrationHealthcheckCheck, type IntegrationHealthcheckResult, type IntegrationHealthcheckStatus, type IntegrationHealthcheckStore, IntegrationHub, type IntegrationHubOptions, type IntegrationIdempotencyRecord, type IntegrationIdempotencyStore, type IntegrationInvocationEnvelope, type IntegrationInvocationEnvelopeValidationOptions, type IntegrationLifecycleSpec, type IntegrationManifest, type IntegrationManifestResolution, type IntegrationPlannerHints, type IntegrationPolicyDecision, type IntegrationPolicyEffect, type IntegrationPolicyEngine, type IntegrationPolicyRule, type IntegrationProvider, type IntegrationProviderKind, type IntegrationRateLimitDecision, type IntegrationRateLimiter, type IntegrationRegistry, type IntegrationRegistryConflict, type IntegrationRegistryEntry, type IntegrationRegistrySourceRef, type IntegrationRegistrySummary, type IntegrationRequirement, type IntegrationRequirementMode, type IntegrationRequirementResolution, type IntegrationRequirementStatus, IntegrationRuntime, IntegrationRuntimeError, type IntegrationRuntimeHub, type IntegrationRuntimeOptions, type IntegrationSandboxBundle, IntegrationSandboxHost, type IntegrationSandboxHostHub, type IntegrationSandboxHostOptions, type IntegrationSecretStore, type IntegrationSetupSpec, type IntegrationSpec, type IntegrationSpecStatus, type IntegrationSpecValidationIssue, type IntegrationSpecValidationResult, type IntegrationSupportTier, type IntegrationToolDefinition, type IntegrationToolSearchFilters, type IntegrationToolSearchResult, type IntegrationTriggerEvent, type IntegrationTriggerSubscription, type IntegrationUserAction, type IntegrationWebhookReceiverResult, type IntegrationWorkflowDefinition, IntegrationWorkflowRuntime, type IntegrationWorkflowRuntimeHub, type IntegrationWorkflowRuntimeOptions, type IntegrationWorkflowStore, type InvokeWithCapabilityRequest, type IssueCapabilityRequest, type IssuedIntegrationCapability, type ManifestValidationIssue, type ManifestValidationResult, type McpCatalog, type McpCatalogTool, type McpToolDefinition, type MicrosoftCalendarOptions, type MissingRequirementExplanation, type NoneAuthSpec, type NormalizedIntegrationError, type NormalizedIntegrationResult, type NormalizedPermission, type NotionDatabaseOptions, type OAuth2AuthSpec, type OAuthFlowStore, type OAuthTokens, type OpenApiDocument, type OpenApiOperation, PROVIDER_PASSTHROUGH_ACTION, type ParsedStripeSignatureHeader, type PendingOAuthFlow, type PermissionDescriptor, type PlatformIntegrationPolicyPresetOptions, type PostSetupCheck, type ProviderHttpRequestInput, type ProviderPassthroughPolicy, type Quirk, type RateLimitSpec, type RefreshInput, type RenderConsentOptions, type RenderSpecOptions, type RenderedConsoleStep, type ResolvedDataSource, ResourceContention, type RestConnectorSpec, type RestCredentialPlacement, type RestOperationSpec, type RestRequestSpec, type ScopeDescriptor, type SecretRef, type SlackOptions, type SlackVerifyOptions, type StartAuthRequest, type StartAuthResult, type StartOAuthInput, type StartOAuthOutput, StaticIntegrationPolicyEngine, type StaticIntegrationPolicyOptions, type StoredIntegrationEvent, type StripeVerifyOptions, type TangleIntegrationInvokeInput, type TangleIntegrationInvokeResult, TangleIntegrationsClient, type TangleIntegrationsClientOptions, type TwilioVerifyOptions, _resetPendingFlowsForTests, airtableConnector, asanaConnector, assertValidConnectorManifest, assertValidIntegrationManifest, assertValidIntegrationSpec, buildActivepiecesConnectors, buildApprovalRequest, buildCanonicalLaunchConnectors, buildDefaultIntegrationRegistry, buildHealthcheckPlan, buildIntegrationBridgeEnvironment, buildIntegrationBridgePayload, buildIntegrationCoverageConnectors, buildIntegrationInvocationEnvelope, buildIntegrationToolCatalog, calendarExercisePlannerManifest, canonicalActionConnectorId, canonicalConnectorId, composeIntegrationRegistry, consoleStepsToText, consumePendingFlow, createApprovalBackedPolicyEngine, createAuditingActionGuard, createConnectionCredentialResolver, createConnectorAdapterProvider, createCredentialBackedAdapterProvider, createDefaultIntegrationActionGuard, createDefaultIntegrationPolicyEngine, createGatewayCatalogProvider, createHttpIntegrationProvider, createIntegrationAuditEvent, createIntegrationRuntime, createIntegrationWorkflowRuntime, createMockIntegrationProvider, createPlatformIntegrationPolicyPreset, createTangleIntegrationsClient, declarativeRestConnector, decodeIntegrationBridgePayload, dispatchIntegrationInvocation, encodeIntegrationBridgePayload, exchangeAuthorizationCode, explainMissingRequirements, firstHeader, getActivepiecesOverride, getIntegrationFamily, getIntegrationSpec, githubConnector, gitlabConnector, googleCalendar, googleSheets, healthcheckRequest, hubspot, importGraphqlConnector, importMcpConnector, importOpenApiConnector, inferIntegrationManifestFromTools, inferIntegrationSupportTier, integrationCoverageChecklistMarkdown, integrationSpecToConnector, integrationToolName, invocationRequestFromEnvelope, listActivepiecesCatalogEntries, listExecutableIntegrationSpecs, listIntegrationCoverageSpecs, listIntegrationSpecs, manifestToConnector, microsoftCalendar, normalizeGatewayCatalog, normalizeIntegrationError, normalizeIntegrationResult, notionDatabase, parseIntegrationBridgeEnvironment, parseIntegrationToolName, parseStripeSignatureHeader, receiveIntegrationWebhook, redactApprovalRequest, redactCapability, redactIntegrationBridgePayload, redactInvocationEnvelope, refreshAccessToken, renderAgentToolDescription, renderApprovalCopy, renderConsentSummary, renderConsoleSteps, renderRunbookMarkdown, resolveConnectionCredentials, resolveIntegrationApproval, revokeConnection, runIntegrationHealthcheck, runIntegrationHealthchecks, salesforceConnector, sanitizeAuditConnection, sanitizeConnection, searchIntegrationTools, signCapability, slack, slackEventsConnector, specAuthToConnectorAuth, startOAuthFlow, statusForCode, storedEventToTriggerEvent, stripePackConnector, stripeWebhookReceiverConnector, summarizeIntegrationRegistry, toMcpTools, twilioSmsConnector, validateConnectorManifest, validateCredentialFormat, validateCredentialSet, validateIntegrationInvocationEnvelope, validateIntegrationManifest, validateIntegrationSpec, validateProviderPassthroughRequest, verifyCapabilityToken, verifyHmacSignature, verifySlackSignature, verifyStripeSignature, verifyTwilioSignature, webhookConnector };
|