@tangle-network/agent-integrations 0.43.0 → 0.45.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/catalog.d.ts +2 -2
- package/dist/catalog.js +6 -6
- package/dist/{chunk-6OOMR4SL.js → chunk-E6BBOBYT.js} +25 -3
- package/dist/chunk-E6BBOBYT.js.map +1 -0
- package/dist/{chunk-DQADH6DL.js → chunk-LA76XB7M.js} +2 -2
- package/dist/{chunk-RFBI7NUC.js → chunk-S2BUASSV.js} +2 -2
- package/dist/{chunk-EQB46PIG.js → chunk-UWF33ESC.js} +38 -2
- package/dist/chunk-UWF33ESC.js.map +1 -0
- package/dist/{chunk-GA7RAMMB.js → chunk-VLVSP7SP.js} +2 -2
- package/dist/{chunk-HRPCFEGL.js → chunk-WTMOFI3U.js} +398 -214
- package/dist/{chunk-HRPCFEGL.js.map → chunk-WTMOFI3U.js.map} +1 -1
- package/dist/connect/index.d.ts +2 -2
- package/dist/connect/index.js +2 -2
- package/dist/connectors/adapters/index.d.ts +73 -11
- package/dist/connectors/adapters/index.js +12 -2
- package/dist/connectors/index.d.ts +3 -3
- package/dist/connectors/index.js +16 -2
- package/dist/{consumer-DQiAGxQ2.d.ts → consumer-CTMB1xcc.d.ts} +1 -1
- package/dist/consumer.d.ts +3 -3
- package/dist/consumer.js +2 -2
- package/dist/{core-types-17jYpwtm.d.ts → core-types-BZLzY8Oa.d.ts} +1 -1
- package/dist/coverage-catalog.d.ts +2 -2
- package/dist/{importers-C_mQqIJP.d.ts → importers-6Beu0SQ9.d.ts} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +20 -6
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +6 -6
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +2 -2
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +6 -6
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +6 -6
- package/dist/specs.d.ts +2 -2
- package/dist/{tangle-id-CpdEOacl.d.ts → tangle-id-_uZ3ywCF.d.ts} +1 -1
- package/dist/{types-BLOYLnKZ.d.ts → types-rBPdMcpb.d.ts} +72 -5
- package/package.json +1 -1
- package/dist/chunk-6OOMR4SL.js.map +0 -1
- package/dist/chunk-EQB46PIG.js.map +0 -1
- /package/dist/{chunk-DQADH6DL.js.map → chunk-LA76XB7M.js.map} +0 -0
- /package/dist/{chunk-RFBI7NUC.js.map → chunk-S2BUASSV.js.map} +0 -0
- /package/dist/{chunk-GA7RAMMB.js.map → chunk-VLVSP7SP.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -119,19 +119,19 @@ import {
|
|
|
119
119
|
validateIntegrationManifest,
|
|
120
120
|
validateProviderPassthroughRequest,
|
|
121
121
|
verifyCapabilityToken
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-E6BBOBYT.js";
|
|
123
123
|
import {
|
|
124
124
|
InMemoryConnectStateStore,
|
|
125
125
|
finishConnectFlow,
|
|
126
126
|
revokeConnectFlow,
|
|
127
127
|
startConnectFlow
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-S2BUASSV.js";
|
|
129
129
|
import {
|
|
130
130
|
expressTangleAuthMiddleware,
|
|
131
131
|
extractToken,
|
|
132
132
|
honoTangleAuthMiddleware,
|
|
133
133
|
requireTangleAuth
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-LA76XB7M.js";
|
|
135
135
|
import {
|
|
136
136
|
IntegrationRuntimeError,
|
|
137
137
|
normalizeIntegrationError,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
IntegrationHubClient,
|
|
142
142
|
IntegrationHubRequestError,
|
|
143
143
|
createIntegrationHubClient
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-VLVSP7SP.js";
|
|
145
145
|
import {
|
|
146
146
|
INTEGRATION_FAMILIES,
|
|
147
147
|
assertValidIntegrationSpec,
|
|
@@ -258,6 +258,8 @@ import {
|
|
|
258
258
|
chatwootConnector,
|
|
259
259
|
checkoutConnector,
|
|
260
260
|
circleConnector,
|
|
261
|
+
classifyGoogleError,
|
|
262
|
+
classifyGoogleReason,
|
|
261
263
|
clayConnector,
|
|
262
264
|
clearoutConnector,
|
|
263
265
|
clicdataConnector,
|
|
@@ -362,12 +364,14 @@ import {
|
|
|
362
364
|
gmail,
|
|
363
365
|
gongConnector,
|
|
364
366
|
googleAnalyticsConnector,
|
|
367
|
+
googleApiError,
|
|
365
368
|
googleBigqueryConnector,
|
|
366
369
|
googleCalendar,
|
|
367
370
|
googleCloudStorageConnector,
|
|
368
371
|
googleContactsConnector,
|
|
369
372
|
googleDocs,
|
|
370
373
|
googleDrive,
|
|
374
|
+
googleErrorReason,
|
|
371
375
|
googleForms,
|
|
372
376
|
googleGeminiConnector,
|
|
373
377
|
googleMeetConnector,
|
|
@@ -377,6 +381,7 @@ import {
|
|
|
377
381
|
googleSheets,
|
|
378
382
|
googleSlidesConnector,
|
|
379
383
|
googleTasksConnector,
|
|
384
|
+
googleTestFailureReason,
|
|
380
385
|
googleVertexaiConnector,
|
|
381
386
|
googlechatConnector,
|
|
382
387
|
gorgiasConnector,
|
|
@@ -709,7 +714,7 @@ import {
|
|
|
709
714
|
zohoDeskConnector,
|
|
710
715
|
zoominfoConnector,
|
|
711
716
|
zuoraConnector
|
|
712
|
-
} from "./chunk-
|
|
717
|
+
} from "./chunk-WTMOFI3U.js";
|
|
713
718
|
import {
|
|
714
719
|
DEFAULT_SIGNATURE_TOLERANCE_SECONDS,
|
|
715
720
|
firstHeader,
|
|
@@ -722,6 +727,8 @@ import {
|
|
|
722
727
|
import {
|
|
723
728
|
CredentialsExpired,
|
|
724
729
|
DEFAULT_TANGLE_PLATFORM_URL,
|
|
730
|
+
ProviderConfigError,
|
|
731
|
+
ProviderRateLimited,
|
|
725
732
|
ResourceContention,
|
|
726
733
|
TANGLE_API_KEY_PREFIX,
|
|
727
734
|
TANGLE_SERVICE_TOKEN_PREFIX,
|
|
@@ -730,7 +737,7 @@ import {
|
|
|
730
737
|
createTangleIdentityClient,
|
|
731
738
|
tangleIdentity,
|
|
732
739
|
validateConnectorManifest
|
|
733
|
-
} from "./chunk-
|
|
740
|
+
} from "./chunk-UWF33ESC.js";
|
|
734
741
|
import "./chunk-PZ5AY32C.js";
|
|
735
742
|
export {
|
|
736
743
|
ACTIVEPIECES_OVERRIDES,
|
|
@@ -764,6 +771,8 @@ export {
|
|
|
764
771
|
IntegrationSandboxHost,
|
|
765
772
|
IntegrationWorkflowRuntime,
|
|
766
773
|
PROVIDER_PASSTHROUGH_ACTION,
|
|
774
|
+
ProviderConfigError,
|
|
775
|
+
ProviderRateLimited,
|
|
767
776
|
ResourceContention,
|
|
768
777
|
StaticIntegrationPolicyEngine,
|
|
769
778
|
TANGLE_API_KEY_PREFIX,
|
|
@@ -884,6 +893,8 @@ export {
|
|
|
884
893
|
chatwootConnector,
|
|
885
894
|
checkoutConnector,
|
|
886
895
|
circleConnector,
|
|
896
|
+
classifyGoogleError,
|
|
897
|
+
classifyGoogleReason,
|
|
887
898
|
classifyIntegrationCatalogExecutability,
|
|
888
899
|
clayConnector,
|
|
889
900
|
clearoutConnector,
|
|
@@ -1030,12 +1041,14 @@ export {
|
|
|
1030
1041
|
gmail,
|
|
1031
1042
|
gongConnector,
|
|
1032
1043
|
googleAnalyticsConnector,
|
|
1044
|
+
googleApiError,
|
|
1033
1045
|
googleBigqueryConnector,
|
|
1034
1046
|
googleCalendar,
|
|
1035
1047
|
googleCloudStorageConnector,
|
|
1036
1048
|
googleContactsConnector,
|
|
1037
1049
|
googleDocs,
|
|
1038
1050
|
googleDrive,
|
|
1051
|
+
googleErrorReason,
|
|
1039
1052
|
googleForms,
|
|
1040
1053
|
googleGeminiConnector,
|
|
1041
1054
|
googleMeetConnector,
|
|
@@ -1045,6 +1058,7 @@ export {
|
|
|
1045
1058
|
googleSheets,
|
|
1046
1059
|
googleSlidesConnector,
|
|
1047
1060
|
googleTasksConnector,
|
|
1061
|
+
googleTestFailureReason,
|
|
1048
1062
|
googleVertexaiConnector,
|
|
1049
1063
|
googlechatConnector,
|
|
1050
1064
|
gorgiasConnector,
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as IntegrationConnectorCategory, g as IntegrationDataClass, f as IntegrationActionRisk, j as IntegrationProvider, b as IntegrationConnector } from './core-types-
|
|
2
|
-
import { M as McpCatalogTool } from './importers-
|
|
3
|
-
import './types-
|
|
1
|
+
import { d as IntegrationConnectorCategory, g as IntegrationDataClass, f as IntegrationActionRisk, j as IntegrationProvider, b as IntegrationConnector } from './core-types-BZLzY8Oa.js';
|
|
2
|
+
import { M as McpCatalogTool } from './importers-6Beu0SQ9.js';
|
|
3
|
+
import './types-rBPdMcpb.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Live MCP connector — attach a remote MCP (Model Context Protocol) server
|
package/dist/mcp.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
IntegrationError,
|
|
3
3
|
createCatalogExecutorProvider,
|
|
4
4
|
importMcpConnector
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-E6BBOBYT.js";
|
|
6
|
+
import "./chunk-S2BUASSV.js";
|
|
7
|
+
import "./chunk-LA76XB7M.js";
|
|
8
8
|
import "./chunk-H4XYLS7T.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VLVSP7SP.js";
|
|
10
10
|
import "./chunk-IA5GCKM6.js";
|
|
11
11
|
import "./chunk-7P2LN4VT.js";
|
|
12
12
|
import "./chunk-376UBTNB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WTMOFI3U.js";
|
|
14
14
|
import "./chunk-2TW2QKGZ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-UWF33ESC.js";
|
|
16
16
|
import "./chunk-PZ5AY32C.js";
|
|
17
17
|
|
|
18
18
|
// src/mcp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TangleIdentityOptions, b as TangleIdentityClient, c as TangleTokenVerifyFailure } from '../tangle-id-
|
|
2
|
-
import '../types-
|
|
1
|
+
import { T as TangleIdentityOptions, b as TangleIdentityClient, c as TangleTokenVerifyFailure } from '../tangle-id-_uZ3ywCF.js';
|
|
2
|
+
import '../types-rBPdMcpb.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @stable Drop-in request middleware that verifies id.tangle.tools
|
package/dist/middleware/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
extractToken,
|
|
4
4
|
honoTangleAuthMiddleware,
|
|
5
5
|
requireTangleAuth
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-LA76XB7M.js";
|
|
7
|
+
import "../chunk-UWF33ESC.js";
|
|
8
8
|
import "../chunk-PZ5AY32C.js";
|
|
9
9
|
export {
|
|
10
10
|
expressTangleAuthMiddleware,
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as IntegrationConnector, h as IntegrationCatalogSource } from './core-types-
|
|
2
|
-
import './types-
|
|
1
|
+
import { b as IntegrationConnector, h as IntegrationCatalogSource } from './core-types-BZLzY8Oa.js';
|
|
2
|
+
import './types-rBPdMcpb.js';
|
|
3
3
|
|
|
4
4
|
type IntegrationSupportTier = 'catalogOnly' | 'setupReady' | 'gatewayExecutable' | 'firstPartyExecutable' | 'sandboxExecutable';
|
|
5
5
|
interface IntegrationRegistrySourceRef {
|
package/dist/registry.js
CHANGED
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
composeIntegrationRegistry,
|
|
6
6
|
inferIntegrationSupportTier,
|
|
7
7
|
summarizeIntegrationRegistry
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-E6BBOBYT.js";
|
|
9
|
+
import "./chunk-S2BUASSV.js";
|
|
10
|
+
import "./chunk-LA76XB7M.js";
|
|
11
11
|
import "./chunk-H4XYLS7T.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VLVSP7SP.js";
|
|
13
13
|
import "./chunk-IA5GCKM6.js";
|
|
14
14
|
import "./chunk-7P2LN4VT.js";
|
|
15
15
|
import "./chunk-376UBTNB.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WTMOFI3U.js";
|
|
17
17
|
import "./chunk-2TW2QKGZ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UWF33ESC.js";
|
|
19
19
|
import "./chunk-PZ5AY32C.js";
|
|
20
20
|
export {
|
|
21
21
|
buildDefaultIntegrationRegistry,
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IntegrationToolDefinition } from './catalog.js';
|
|
2
2
|
import { IntegrationRegistryEntry, IntegrationRegistry } from './registry.js';
|
|
3
|
-
import { I as IntegrationActor, a as IssuedIntegrationCapability, b as IntegrationConnector, c as IntegrationConnection } from './core-types-
|
|
4
|
-
import './types-
|
|
3
|
+
import { I as IntegrationActor, a as IssuedIntegrationCapability, b as IntegrationConnector, c as IntegrationConnection } from './core-types-BZLzY8Oa.js';
|
|
4
|
+
import './types-rBPdMcpb.js';
|
|
5
5
|
|
|
6
6
|
type IntegrationRequirementMode = 'read' | 'write' | 'trigger';
|
|
7
7
|
type IntegrationRequirementStatus = 'ready' | 'missing_connection' | 'not_executable' | 'unknown_connector';
|
package/dist/runtime.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
InMemoryIntegrationGrantStore,
|
|
3
3
|
IntegrationRuntime,
|
|
4
4
|
createIntegrationRuntime
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-E6BBOBYT.js";
|
|
6
|
+
import "./chunk-S2BUASSV.js";
|
|
7
|
+
import "./chunk-LA76XB7M.js";
|
|
8
8
|
import "./chunk-H4XYLS7T.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VLVSP7SP.js";
|
|
10
10
|
import "./chunk-IA5GCKM6.js";
|
|
11
11
|
import "./chunk-7P2LN4VT.js";
|
|
12
12
|
import "./chunk-376UBTNB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WTMOFI3U.js";
|
|
14
14
|
import "./chunk-2TW2QKGZ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-UWF33ESC.js";
|
|
16
16
|
import "./chunk-PZ5AY32C.js";
|
|
17
17
|
export {
|
|
18
18
|
InMemoryIntegrationGrantStore,
|
package/dist/specs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as IntegrationActionRisk, g as IntegrationDataClass, d as IntegrationConnectorCategory, e as IntegrationConnectorAction, G as IntegrationConnectorTrigger, b as IntegrationConnector } from './core-types-
|
|
2
|
-
import './types-
|
|
1
|
+
import { f as IntegrationActionRisk, g as IntegrationDataClass, d as IntegrationConnectorCategory, e as IntegrationConnectorAction, G as IntegrationConnectorTrigger, b as IntegrationConnector } from './core-types-BZLzY8Oa.js';
|
|
2
|
+
import './types-rBPdMcpb.js';
|
|
3
3
|
|
|
4
4
|
type IntegrationAuthMode = 'oauth2' | 'api_key' | 'hmac' | 'none' | 'custom';
|
|
5
5
|
type IntegrationSpecStatus = 'catalog' | 'executable' | 'deprecated';
|
|
@@ -331,6 +331,14 @@ interface RateLimitSpec {
|
|
|
331
331
|
* matches how upstreams meter (per-app), so almost always pick true. */
|
|
332
332
|
scope?: 'oauth-client' | 'data-source';
|
|
333
333
|
}
|
|
334
|
+
/** Source mapping for `OAuth2AuthSpec.tokenMetadata`. A bare string names the
|
|
335
|
+
* token-response field to capture (capture-if-present). The object form marks
|
|
336
|
+
* the field `required` so a missing/empty value fails the token exchange loud
|
|
337
|
+
* rather than silently capturing nothing. */
|
|
338
|
+
type TokenMetadataSource = string | {
|
|
339
|
+
field: string;
|
|
340
|
+
required?: boolean;
|
|
341
|
+
};
|
|
334
342
|
type OAuth2AuthSpec = {
|
|
335
343
|
kind: 'oauth2';
|
|
336
344
|
/** OAuth2 grant type. Defaults to `'authorization_code'` (the interactive
|
|
@@ -362,6 +370,18 @@ type OAuth2AuthSpec = {
|
|
|
362
370
|
* Defaults to true. Set false for providers that reject a per-request
|
|
363
371
|
* scope and pin scopes app-side (e.g. HelloSign/Dropbox Sign). */
|
|
364
372
|
sendScopeParam?: boolean;
|
|
373
|
+
/** Declarative capture of provider-specific fields from the OAuth token
|
|
374
|
+
* response into the connection's `metadata`, keyed by the connection-metadata
|
|
375
|
+
* key to write → the token-response field to read. The counterpart to
|
|
376
|
+
* `baseUrl.metadataKey`: providers like Gong return a per-customer host
|
|
377
|
+
* (`api_base_url_for_customer`) at token exchange that every later call must
|
|
378
|
+
* target, but the standard token parser keeps only the canonical OAuth
|
|
379
|
+
* fields and drops the rest. Declaring the mapping here makes `completeAuth`
|
|
380
|
+
* persist the value into `metadata` so `baseUrl` resolution finds it. Mark a
|
|
381
|
+
* field `required` to fail the exchange loud when it is absent (surfacing the
|
|
382
|
+
* break at connect, not first call). Optional and backward-compatible —
|
|
383
|
+
* connectors that omit it are unaffected. */
|
|
384
|
+
tokenMetadata?: Record<string, TokenMetadataSource>;
|
|
365
385
|
};
|
|
366
386
|
type ApiKeyAuthSpec = {
|
|
367
387
|
kind: 'api-key';
|
|
@@ -388,13 +408,60 @@ declare class ResourceContention extends Error {
|
|
|
388
408
|
readonly name = "ResourceContention";
|
|
389
409
|
constructor(message: string, alternatives?: unknown[], currentState?: unknown | undefined);
|
|
390
410
|
}
|
|
391
|
-
/**
|
|
392
|
-
*
|
|
393
|
-
*
|
|
411
|
+
/** Structured HTTP failure detail attached to the typed provider errors below.
|
|
412
|
+
* The platform classifier reads `status`/`reason` off the thrown instance to
|
|
413
|
+
* route a 403 by WHY it failed (credential vs config/permission vs quota)
|
|
414
|
+
* instead of regexing a flattened message. */
|
|
415
|
+
interface ProviderHttpErrorInit {
|
|
416
|
+
/** Upstream HTTP status (e.g. 401, 403, 429). */
|
|
417
|
+
status: number;
|
|
418
|
+
/** Provider-specific machine reason (e.g. Google's `accessNotConfigured`,
|
|
419
|
+
* `dailyLimitExceeded`, `invalid_grant`) — the actionable signal. */
|
|
420
|
+
reason?: string;
|
|
421
|
+
/** Parsed upstream error body, kept for diagnostics/audit. */
|
|
422
|
+
body?: unknown;
|
|
423
|
+
}
|
|
424
|
+
/** Thrown when the connector finds the user's grant has been revoked or the
|
|
425
|
+
* access token is no longer valid AND refresh failed — reconnecting fixes it.
|
|
426
|
+
* Surfaces to the UI as "Reconnect required". Carries optional structured
|
|
427
|
+
* `{status, reason, body}` so the platform can confirm a 401/403 really is a
|
|
428
|
+
* credential reason before flipping the connection to reconnect_required. */
|
|
394
429
|
declare class CredentialsExpired extends Error {
|
|
395
430
|
readonly dataSourceId: string;
|
|
396
431
|
readonly name = "CredentialsExpired";
|
|
397
|
-
|
|
432
|
+
readonly status?: number;
|
|
433
|
+
readonly reason?: string;
|
|
434
|
+
readonly body?: unknown;
|
|
435
|
+
constructor(message: string, dataSourceId: string, init?: ProviderHttpErrorInit);
|
|
436
|
+
}
|
|
437
|
+
/** Thrown when the provider rejects the call for a configuration or permission
|
|
438
|
+
* reason that reconnecting the credential CANNOT fix — the API isn't enabled
|
|
439
|
+
* for the project (`accessNotConfigured`), a required scope is missing
|
|
440
|
+
* (`insufficientPermissions`), or the resource is forbidden
|
|
441
|
+
* (`PERMISSION_DENIED`). Distinct from CredentialsExpired so the platform
|
|
442
|
+
* surfaces "fix the project/scope" instead of sending the user into an
|
|
443
|
+
* unresolvable reconnect loop. */
|
|
444
|
+
declare class ProviderConfigError extends Error {
|
|
445
|
+
readonly dataSourceId: string;
|
|
446
|
+
readonly name = "ProviderConfigError";
|
|
447
|
+
readonly status: number;
|
|
448
|
+
readonly reason?: string;
|
|
449
|
+
readonly body?: unknown;
|
|
450
|
+
constructor(message: string, dataSourceId: string, init: ProviderHttpErrorInit);
|
|
451
|
+
}
|
|
452
|
+
/** Thrown when the provider throttles the call (quota / rate limit). Gmail and
|
|
453
|
+
* Calendar surface daily/per-user limits as HTTP 403 with a quota `reason`
|
|
454
|
+
* (`rateLimitExceeded`/`dailyLimitExceeded`/`userRateLimitExceeded`), NOT 429
|
|
455
|
+
* — so it is classified by reason, not status, and must never read as a
|
|
456
|
+
* credential failure. The message includes "rate limit" so a platform that
|
|
457
|
+
* only inspects the message still routes it to rate-limited. */
|
|
458
|
+
declare class ProviderRateLimited extends Error {
|
|
459
|
+
readonly dataSourceId: string;
|
|
460
|
+
readonly name = "ProviderRateLimited";
|
|
461
|
+
readonly status: number;
|
|
462
|
+
readonly reason?: string;
|
|
463
|
+
readonly body?: unknown;
|
|
464
|
+
constructor(message: string, dataSourceId: string, init: ProviderHttpErrorInit);
|
|
398
465
|
}
|
|
399
466
|
interface ConnectorManifestValidationIssue {
|
|
400
467
|
path: string;
|
|
@@ -411,4 +478,4 @@ interface ConnectorManifestValidationResult {
|
|
|
411
478
|
declare function validateConnectorManifest(manifest: ConnectorManifest): ConnectorManifestValidationResult;
|
|
412
479
|
declare function assertValidConnectorManifest(manifest: ConnectorManifest): void;
|
|
413
480
|
|
|
414
|
-
export { type AuthSpec as A, type ConnectorAdapter as C, type DataSourceMetadata as D, type EventHandlerResult as E, type InboundEvent as I, type ResolvedDataSource as R, type ConnectorCredentials as a, type CASStrategy as b, type Capability as c, type CapabilityClass as d, type CapabilityMutation as e, type CapabilityMutationResult as f, type CapabilityParameterSchema as g, type CapabilityRead as h, type CapabilityReadResult as i, type ConnectorInvocation as j, type ConnectorManifest as k, type ConnectorManifestValidationIssue as l, type ConnectorManifestValidationResult as m, type ConsistencyModel as n, CredentialsExpired as o, type
|
|
481
|
+
export { type AuthSpec as A, type ConnectorAdapter as C, type DataSourceMetadata as D, type EventHandlerResult as E, type InboundEvent as I, ProviderConfigError as P, type ResolvedDataSource as R, type TokenMetadataSource as T, type ConnectorCredentials as a, type CASStrategy as b, type Capability as c, type CapabilityClass as d, type CapabilityMutation as e, type CapabilityMutationResult as f, type CapabilityParameterSchema as g, type CapabilityRead as h, type CapabilityReadResult as i, type ConnectorInvocation as j, type ConnectorManifest as k, type ConnectorManifestValidationIssue as l, type ConnectorManifestValidationResult as m, type ConsistencyModel as n, CredentialsExpired as o, type ProviderHttpErrorInit as p, ProviderRateLimited as q, type RateLimitSpec as r, ResourceContention as s, assertValidConnectorManifest as t, validateConnectorManifest as v };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Vendor-neutral integration contracts and runtime helpers for sandbox and agent apps.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-integrations#readme",
|
|
6
6
|
"repository": {
|