@tangle-network/agent-integrations 0.40.1 → 0.42.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.
Files changed (45) hide show
  1. package/dist/catalog.d.ts +2 -2
  2. package/dist/catalog.js +6 -6
  3. package/dist/{chunk-IKCXDQVP.js → chunk-DQADH6DL.js} +2 -2
  4. package/dist/{chunk-OMLQCESJ.js → chunk-EQB46PIG.js} +7 -1
  5. package/dist/chunk-EQB46PIG.js.map +1 -0
  6. package/dist/{chunk-FAFQZJPZ.js → chunk-GA7RAMMB.js} +2 -2
  7. package/dist/{chunk-JXXPAUCX.js → chunk-JKYPEVMS.js} +51189 -46118
  8. package/dist/{chunk-JXXPAUCX.js.map → chunk-JKYPEVMS.js.map} +1 -1
  9. package/dist/{chunk-5QU3YCGR.js → chunk-NY4EII6I.js} +10 -2
  10. package/dist/chunk-NY4EII6I.js.map +1 -0
  11. package/dist/{chunk-TC5OMANJ.js → chunk-RFBI7NUC.js} +2 -2
  12. package/dist/connect/index.d.ts +2 -2
  13. package/dist/connect/index.js +2 -2
  14. package/dist/connectors/adapters/index.d.ts +290 -3
  15. package/dist/connectors/adapters/index.js +82 -2
  16. package/dist/connectors/index.d.ts +3 -3
  17. package/dist/connectors/index.js +82 -2
  18. package/dist/{consumer-Cxcpp_bi.d.ts → consumer-DQiAGxQ2.d.ts} +1 -1
  19. package/dist/consumer.d.ts +3 -3
  20. package/dist/consumer.js +2 -2
  21. package/dist/{core-types-DMDmeutI.d.ts → core-types-17jYpwtm.d.ts} +1 -1
  22. package/dist/coverage-catalog.d.ts +2 -2
  23. package/dist/{importers-BAVOQvUf.d.ts → importers-C_mQqIJP.d.ts} +1 -1
  24. package/dist/index.d.ts +9 -9
  25. package/dist/index.js +86 -6
  26. package/dist/mcp.d.ts +3 -3
  27. package/dist/mcp.js +6 -6
  28. package/dist/middleware/index.d.ts +2 -2
  29. package/dist/middleware/index.js +2 -2
  30. package/dist/registry.d.ts +2 -2
  31. package/dist/registry.js +6 -6
  32. package/dist/runtime.d.ts +2 -2
  33. package/dist/runtime.js +6 -6
  34. package/dist/specs.d.ts +2 -2
  35. package/dist/{tangle-id-BMScmNjp.d.ts → tangle-id-CpdEOacl.d.ts} +1 -1
  36. package/dist/{types-eAvAgnKr.d.ts → types-BLOYLnKZ.d.ts} +10 -3
  37. package/dist/webhooks/index.d.ts +11 -1
  38. package/dist/webhooks/index.js +31 -0
  39. package/dist/webhooks/index.js.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunk-5QU3YCGR.js.map +0 -1
  42. package/dist/chunk-OMLQCESJ.js.map +0 -1
  43. /package/dist/{chunk-IKCXDQVP.js.map → chunk-DQADH6DL.js.map} +0 -0
  44. /package/dist/{chunk-FAFQZJPZ.js.map → chunk-GA7RAMMB.js.map} +0 -0
  45. /package/dist/{chunk-TC5OMANJ.js.map → chunk-RFBI7NUC.js.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-IA5GCKM6.js";
9
9
  import {
10
10
  adapters_exports
11
- } from "./chunk-JXXPAUCX.js";
11
+ } from "./chunk-JKYPEVMS.js";
12
12
 
13
13
  // src/activepieces-catalog.ts
14
14
  import { readFileSync } from "fs";
@@ -255,6 +255,12 @@ function createConnectorAdapterProvider(options) {
255
255
  "config_missing"
256
256
  );
257
257
  }
258
+ if (!auth.authorizationUrl) {
259
+ throw new IntegrationError(
260
+ `Connector ${request.connectorId} uses the ${auth.grantType ?? "authorization_code"} grant and has no authorization URL to redirect to.`,
261
+ "auth_not_supported"
262
+ );
263
+ }
258
264
  const scopes = request.requestedScopes && request.requestedScopes.length > 0 ? request.requestedScopes : auth.scopes;
259
265
  const url = new URL(auth.authorizationUrl);
260
266
  url.searchParams.set("response_type", "code");
@@ -534,6 +540,8 @@ function mapCategory(category) {
534
540
  if (category === "spreadsheet") return "database";
535
541
  if (category === "doc") return "docs";
536
542
  if (category === "commerce") return "workflow";
543
+ if (category === "sales-intelligence") return "crm";
544
+ if (category === "market-intelligence" || category === "hr") return "other";
537
545
  return category === "other" ? "other" : category;
538
546
  }
539
547
  function inferDataClass(category) {
@@ -4304,4 +4312,4 @@ export {
4304
4312
  signCapability,
4305
4313
  verifyCapabilityToken
4306
4314
  };
4307
- //# sourceMappingURL=chunk-5QU3YCGR.js.map
4315
+ //# sourceMappingURL=chunk-NY4EII6I.js.map