@tangle-network/agent-integrations 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tangle-catalog-runtime.js +5 -2
- package/dist/bin/tangle-catalog-runtime.js.map +1 -1
- package/dist/catalog.d.ts +4 -1
- package/dist/catalog.js +5 -2
- package/dist/chunk-ATYHZXLL.js +457 -0
- package/dist/chunk-ATYHZXLL.js.map +1 -0
- package/dist/{chunk-ALCIWTIR.js → chunk-ICSBYCE2.js} +27 -1
- package/dist/chunk-ICSBYCE2.js.map +1 -0
- package/dist/{chunk-GA4VTE3U.js → chunk-JU25UDN2.js} +5 -58
- package/dist/chunk-JU25UDN2.js.map +1 -0
- package/dist/chunk-P24T3MLM.js +106 -0
- package/dist/chunk-P24T3MLM.js.map +1 -0
- package/dist/chunk-SVQ4PHDZ.js +129 -0
- package/dist/chunk-SVQ4PHDZ.js.map +1 -0
- package/dist/connect/index.d.ts +112 -0
- package/dist/connect/index.js +14 -0
- package/dist/connect/index.js.map +1 -0
- package/dist/connectors/adapters/index.d.ts +593 -1
- package/dist/connectors/adapters/index.js +15 -1
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +19 -5
- package/dist/index.d.ts +5 -2
- package/dist/index.js +42 -6
- package/dist/middleware/index.d.ts +137 -0
- package/dist/middleware/index.js +14 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/registry.d.ts +28 -2
- package/dist/registry.js +5 -2
- package/dist/runtime.d.ts +4 -1
- package/dist/runtime.js +5 -2
- package/dist/specs.d.ts +4 -1
- package/dist/tangle-catalog-runtime.d.ts +4 -1
- package/dist/tangle-catalog-runtime.js +5 -2
- package/dist/tangle-id-CTU4kGId.d.ts +553 -0
- package/package.json +11 -1
- package/dist/chunk-ALCIWTIR.js.map +0 -1
- package/dist/chunk-GA4VTE3U.js.map +0 -1
- package/dist/index-D4D4CEKX.d.ts +0 -976
|
@@ -3,59 +3,10 @@ import {
|
|
|
3
3
|
verifySlackSignature,
|
|
4
4
|
verifyStripeSignature
|
|
5
5
|
} from "./chunk-2TW2QKGZ.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
super(message);
|
|
11
|
-
this.alternatives = alternatives;
|
|
12
|
-
this.currentState = currentState;
|
|
13
|
-
}
|
|
14
|
-
alternatives;
|
|
15
|
-
currentState;
|
|
16
|
-
name = "ResourceContention";
|
|
17
|
-
};
|
|
18
|
-
var CredentialsExpired = class extends Error {
|
|
19
|
-
constructor(message, dataSourceId) {
|
|
20
|
-
super(message);
|
|
21
|
-
this.dataSourceId = dataSourceId;
|
|
22
|
-
}
|
|
23
|
-
dataSourceId;
|
|
24
|
-
name = "CredentialsExpired";
|
|
25
|
-
};
|
|
26
|
-
function validateConnectorManifest(manifest) {
|
|
27
|
-
const issues = [];
|
|
28
|
-
if (!manifest.kind.trim()) issues.push({ path: "kind", message: "kind is required" });
|
|
29
|
-
if (!manifest.displayName.trim()) issues.push({ path: "displayName", message: "displayName is required" });
|
|
30
|
-
const seen = /* @__PURE__ */ new Set();
|
|
31
|
-
for (const [index, capability] of manifest.capabilities.entries()) {
|
|
32
|
-
const path = `capabilities[${index}]`;
|
|
33
|
-
if (!capability.name.trim()) issues.push({ path: `${path}.name`, message: "capability name is required" });
|
|
34
|
-
if (seen.has(capability.name)) issues.push({ path: `${path}.name`, message: `duplicate capability name: ${capability.name}` });
|
|
35
|
-
seen.add(capability.name);
|
|
36
|
-
if (capability.class === "mutation") {
|
|
37
|
-
if (!capability.cas) issues.push({ path: `${path}.cas`, message: "mutation capability must declare a CAS strategy" });
|
|
38
|
-
if (manifest.defaultConsistencyModel === "authoritative" && capability.cas === "none") {
|
|
39
|
-
issues.push({ path: `${path}.cas`, message: 'authoritative mutations cannot use cas="none"' });
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
if (manifest.rateLimit) {
|
|
44
|
-
if (!Number.isFinite(manifest.rateLimit.requests) || manifest.rateLimit.requests <= 0) {
|
|
45
|
-
issues.push({ path: "rateLimit.requests", message: "rateLimit.requests must be positive" });
|
|
46
|
-
}
|
|
47
|
-
if (!Number.isFinite(manifest.rateLimit.windowMs) || manifest.rateLimit.windowMs <= 0) {
|
|
48
|
-
issues.push({ path: "rateLimit.windowMs", message: "rateLimit.windowMs must be positive" });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return { ok: issues.length === 0, issues };
|
|
52
|
-
}
|
|
53
|
-
function assertValidConnectorManifest(manifest) {
|
|
54
|
-
const result = validateConnectorManifest(manifest);
|
|
55
|
-
if (!result.ok) {
|
|
56
|
-
throw new Error(`Invalid connector manifest ${manifest.kind || "<unknown>"}: ${result.issues.map((issue) => `${issue.path}: ${issue.message}`).join("; ")}`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
6
|
+
import {
|
|
7
|
+
CredentialsExpired,
|
|
8
|
+
ResourceContention
|
|
9
|
+
} from "./chunk-ATYHZXLL.js";
|
|
59
10
|
|
|
60
11
|
// src/connectors/oauth.ts
|
|
61
12
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -4279,10 +4230,6 @@ var salesforceConnector = declarativeRestConnector({
|
|
|
4279
4230
|
});
|
|
4280
4231
|
|
|
4281
4232
|
export {
|
|
4282
|
-
ResourceContention,
|
|
4283
|
-
CredentialsExpired,
|
|
4284
|
-
validateConnectorManifest,
|
|
4285
|
-
assertValidConnectorManifest,
|
|
4286
4233
|
InMemoryOAuthFlowStore,
|
|
4287
4234
|
startOAuthFlow,
|
|
4288
4235
|
consumePendingFlow,
|
|
@@ -4310,4 +4257,4 @@ export {
|
|
|
4310
4257
|
asanaConnector,
|
|
4311
4258
|
salesforceConnector
|
|
4312
4259
|
};
|
|
4313
|
-
//# sourceMappingURL=chunk-
|
|
4260
|
+
//# sourceMappingURL=chunk-JU25UDN2.js.map
|