@contractspec/integration.providers-impls 3.0.0 → 3.1.1

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 (121) hide show
  1. package/README.md +59 -9
  2. package/dist/impls/async-event-queue.js +2 -0
  3. package/dist/impls/composio-fallback-resolver.d.ts +34 -0
  4. package/dist/impls/composio-fallback-resolver.js +580 -0
  5. package/dist/impls/composio-mcp.d.ts +22 -0
  6. package/dist/impls/composio-mcp.js +164 -0
  7. package/dist/impls/composio-proxies.d.ts +60 -0
  8. package/dist/impls/composio-proxies.js +311 -0
  9. package/dist/impls/composio-sdk.d.ts +25 -0
  10. package/dist/impls/composio-sdk.js +78 -0
  11. package/dist/impls/composio-types.d.ts +43 -0
  12. package/dist/impls/composio-types.js +54 -0
  13. package/dist/impls/elevenlabs-voice.js +2 -0
  14. package/dist/impls/fal-voice.js +2 -0
  15. package/dist/impls/fathom-meeting-recorder.js +2 -0
  16. package/dist/impls/fathom-meeting-recorder.mapper.js +2 -0
  17. package/dist/impls/fathom-meeting-recorder.utils.js +2 -0
  18. package/dist/impls/fathom-meeting-recorder.webhooks.js +2 -0
  19. package/dist/impls/fireflies-meeting-recorder.js +2 -0
  20. package/dist/impls/fireflies-meeting-recorder.queries.js +2 -0
  21. package/dist/impls/fireflies-meeting-recorder.utils.js +2 -0
  22. package/dist/impls/gcs-storage.js +2 -0
  23. package/dist/impls/gmail-inbound.js +2 -0
  24. package/dist/impls/gmail-outbound.js +2 -0
  25. package/dist/impls/google-calendar.js +2 -0
  26. package/dist/impls/gradium-voice.js +2 -0
  27. package/dist/impls/granola-meeting-recorder.js +2 -0
  28. package/dist/impls/granola-meeting-recorder.mcp.js +2 -0
  29. package/dist/impls/health/base-health-provider.js +2 -0
  30. package/dist/impls/health/hybrid-health-providers.js +2 -0
  31. package/dist/impls/health/official-health-providers.js +2 -0
  32. package/dist/impls/health/provider-normalizers.js +2 -0
  33. package/dist/impls/health/providers.js +2 -0
  34. package/dist/impls/health-provider-factory.js +2 -0
  35. package/dist/impls/index.d.ts +5 -0
  36. package/dist/impls/index.js +657 -0
  37. package/dist/impls/jira.js +2 -0
  38. package/dist/impls/linear.js +2 -0
  39. package/dist/impls/messaging-github.js +2 -0
  40. package/dist/impls/messaging-slack.js +2 -0
  41. package/dist/impls/messaging-whatsapp-meta.js +2 -0
  42. package/dist/impls/messaging-whatsapp-twilio.js +2 -0
  43. package/dist/impls/mistral-conversational.js +2 -0
  44. package/dist/impls/mistral-conversational.session.js +2 -0
  45. package/dist/impls/mistral-embedding.js +2 -0
  46. package/dist/impls/mistral-llm.js +2 -0
  47. package/dist/impls/mistral-stt.js +2 -0
  48. package/dist/impls/notion.js +2 -0
  49. package/dist/impls/posthog-reader.js +2 -0
  50. package/dist/impls/posthog-utils.js +2 -0
  51. package/dist/impls/posthog.js +2 -0
  52. package/dist/impls/postmark-email.js +2 -0
  53. package/dist/impls/powens-client.js +2 -0
  54. package/dist/impls/powens-openbanking.js +2 -0
  55. package/dist/impls/provider-factory.d.ts +24 -0
  56. package/dist/impls/provider-factory.js +70 -0
  57. package/dist/impls/qdrant-vector.js +2 -0
  58. package/dist/impls/stripe-payments.js +2 -0
  59. package/dist/impls/supabase-psql.js +2 -0
  60. package/dist/impls/supabase-vector.js +2 -0
  61. package/dist/impls/tldv-meeting-recorder.js +2 -0
  62. package/dist/impls/twilio-sms.js +2 -0
  63. package/dist/index.js +657 -0
  64. package/dist/node/impls/async-event-queue.js +3 -0
  65. package/dist/node/impls/composio-fallback-resolver.js +580 -0
  66. package/dist/node/impls/composio-mcp.js +164 -0
  67. package/dist/node/impls/composio-proxies.js +311 -0
  68. package/dist/node/impls/composio-sdk.js +78 -0
  69. package/dist/node/impls/composio-types.js +54 -0
  70. package/dist/node/impls/elevenlabs-voice.js +3 -0
  71. package/dist/node/impls/fal-voice.js +3 -0
  72. package/dist/node/impls/fathom-meeting-recorder.js +3 -0
  73. package/dist/node/impls/fathom-meeting-recorder.mapper.js +3 -0
  74. package/dist/node/impls/fathom-meeting-recorder.utils.js +3 -0
  75. package/dist/node/impls/fathom-meeting-recorder.webhooks.js +3 -0
  76. package/dist/node/impls/fireflies-meeting-recorder.js +3 -0
  77. package/dist/node/impls/fireflies-meeting-recorder.queries.js +3 -0
  78. package/dist/node/impls/fireflies-meeting-recorder.utils.js +3 -0
  79. package/dist/node/impls/gcs-storage.js +3 -0
  80. package/dist/node/impls/gmail-inbound.js +3 -0
  81. package/dist/node/impls/gmail-outbound.js +3 -0
  82. package/dist/node/impls/google-calendar.js +3 -0
  83. package/dist/node/impls/gradium-voice.js +3 -0
  84. package/dist/node/impls/granola-meeting-recorder.js +3 -0
  85. package/dist/node/impls/granola-meeting-recorder.mcp.js +3 -0
  86. package/dist/node/impls/health/base-health-provider.js +3 -0
  87. package/dist/node/impls/health/hybrid-health-providers.js +3 -0
  88. package/dist/node/impls/health/official-health-providers.js +3 -0
  89. package/dist/node/impls/health/provider-normalizers.js +3 -0
  90. package/dist/node/impls/health/providers.js +3 -0
  91. package/dist/node/impls/health-provider-factory.js +3 -0
  92. package/dist/node/impls/index.js +658 -0
  93. package/dist/node/impls/jira.js +3 -0
  94. package/dist/node/impls/linear.js +3 -0
  95. package/dist/node/impls/messaging-github.js +3 -0
  96. package/dist/node/impls/messaging-slack.js +3 -0
  97. package/dist/node/impls/messaging-whatsapp-meta.js +3 -0
  98. package/dist/node/impls/messaging-whatsapp-twilio.js +3 -0
  99. package/dist/node/impls/mistral-conversational.js +3 -0
  100. package/dist/node/impls/mistral-conversational.session.js +3 -0
  101. package/dist/node/impls/mistral-embedding.js +3 -0
  102. package/dist/node/impls/mistral-llm.js +3 -0
  103. package/dist/node/impls/mistral-stt.js +3 -0
  104. package/dist/node/impls/notion.js +3 -0
  105. package/dist/node/impls/posthog-reader.js +3 -0
  106. package/dist/node/impls/posthog-utils.js +3 -0
  107. package/dist/node/impls/posthog.js +3 -0
  108. package/dist/node/impls/postmark-email.js +3 -0
  109. package/dist/node/impls/powens-client.js +3 -0
  110. package/dist/node/impls/powens-openbanking.js +3 -0
  111. package/dist/node/impls/provider-factory.js +71 -0
  112. package/dist/node/impls/qdrant-vector.js +3 -0
  113. package/dist/node/impls/stripe-payments.js +3 -0
  114. package/dist/node/impls/supabase-psql.js +3 -0
  115. package/dist/node/impls/supabase-vector.js +3 -0
  116. package/dist/node/impls/tldv-meeting-recorder.js +3 -0
  117. package/dist/node/impls/twilio-sms.js +3 -0
  118. package/dist/node/index.js +658 -0
  119. package/dist/node/secrets/provider.js +3 -0
  120. package/dist/secrets/provider.js +2 -0
  121. package/package.json +71 -10
@@ -0,0 +1,54 @@
1
+ // @bun
2
+ var __require = import.meta.require;
3
+
4
+ // src/impls/composio-types.ts
5
+ var INTEGRATION_KEY_TO_TOOLKIT = {
6
+ payments: "stripe",
7
+ email: "gmail",
8
+ calendar: "googlecalendar",
9
+ sms: "twilio",
10
+ "messaging.slack": "slack",
11
+ "messaging.github": "github",
12
+ "messaging.discord": "discord",
13
+ "messaging.teams": "microsoft_teams",
14
+ "analytics.posthog": "posthog",
15
+ "project-management.linear": "linear",
16
+ "project-management.jira": "jira",
17
+ "project-management.notion": "notion",
18
+ "project-management.asana": "asana",
19
+ "project-management.trello": "trello",
20
+ "project-management.monday": "monday",
21
+ "storage.s3": "aws",
22
+ "storage.gcs": "google_cloud",
23
+ "storage.gdrive": "googledrive",
24
+ "storage.dropbox": "dropbox",
25
+ "storage.onedrive": "onedrive",
26
+ "crm.salesforce": "salesforce",
27
+ "crm.hubspot": "hubspot",
28
+ "crm.pipedrive": "pipedrive",
29
+ "database.supabase": "supabase",
30
+ "vectordb.supabase": "supabase",
31
+ "ai-llm": "openai"
32
+ };
33
+ var SESSION_TTL_MS = 30 * 60 * 1000;
34
+ function isSessionExpired(session) {
35
+ return Date.now() - session.createdAt > SESSION_TTL_MS;
36
+ }
37
+ function resolveToolkit(integrationKey) {
38
+ if (INTEGRATION_KEY_TO_TOOLKIT[integrationKey]) {
39
+ return INTEGRATION_KEY_TO_TOOLKIT[integrationKey];
40
+ }
41
+ for (const [prefix, toolkit] of Object.entries(INTEGRATION_KEY_TO_TOOLKIT)) {
42
+ if (integrationKey.startsWith(prefix)) {
43
+ return toolkit;
44
+ }
45
+ }
46
+ const parts = integrationKey.split(".");
47
+ const last = parts[parts.length - 1];
48
+ return parts.length > 1 && last ? last : integrationKey;
49
+ }
50
+ export {
51
+ resolveToolkit,
52
+ isSessionExpired,
53
+ INTEGRATION_KEY_TO_TOOLKIT
54
+ };
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/elevenlabs-voice.ts
3
5
  import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
4
6
  var FORMAT_MAP = {
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fal-voice.ts
3
5
  import { createFalClient } from "@fal-ai/client";
4
6
  var DEFAULT_MODEL_ID = "fal-ai/chatterbox/text-to-speech";
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fathom-meeting-recorder.utils.ts
3
5
  function extractItems(page) {
4
6
  if (Array.isArray(page.items))
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fathom-meeting-recorder.utils.ts
3
5
  function extractItems(page) {
4
6
  if (Array.isArray(page.items))
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fathom-meeting-recorder.utils.ts
3
5
  function extractItems(page) {
4
6
  if (Array.isArray(page.items))
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fathom-meeting-recorder.webhooks.ts
3
5
  import { TriggeredFor } from "fathom-typescript/sdk/models/operations";
4
6
  function normalizeWebhookHeaders(headers) {
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fireflies-meeting-recorder.queries.ts
3
5
  var TRANSCRIPTS_QUERY = `
4
6
  query Transcripts(
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fireflies-meeting-recorder.queries.ts
3
5
  var TRANSCRIPTS_QUERY = `
4
6
  query Transcripts(
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/fireflies-meeting-recorder.utils.ts
3
5
  import { Buffer } from "buffer";
4
6
  import { timingSafeEqual } from "crypto";
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/gcs-storage.ts
3
5
  import { Storage } from "@google-cloud/storage";
4
6
 
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/gmail-inbound.ts
3
5
  import { google } from "googleapis";
4
6
 
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/gmail-outbound.ts
3
5
  import { google } from "googleapis";
4
6
 
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/google-calendar.ts
3
5
  import { google } from "googleapis";
4
6
 
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/gradium-voice.ts
3
5
  import { Gradium } from "@confiture-ai/gradium-sdk-js";
4
6
  var FORMAT_MAP = {
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/granola-meeting-recorder.mcp.ts
3
5
  var UNKNOWN_EMAIL = "unknown@granola.local";
4
6
  var EPOCH = "1970-01-01T00:00:00.000Z";
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/granola-meeting-recorder.mcp.ts
3
5
  var UNKNOWN_EMAIL = "unknown@granola.local";
4
6
  var EPOCH = "1970-01-01T00:00:00.000Z";
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/health/provider-normalizers.ts
3
5
  var DEFAULT_LIST_KEYS = [
4
6
  "items",
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/health/provider-normalizers.ts
3
5
  var DEFAULT_LIST_KEYS = [
4
6
  "items",
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/health/provider-normalizers.ts
3
5
  var DEFAULT_LIST_KEYS = [
4
6
  "items",
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/health/provider-normalizers.ts
3
5
  var DEFAULT_LIST_KEYS = [
4
6
  "items",
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/health/provider-normalizers.ts
3
5
  var DEFAULT_LIST_KEYS = [
4
6
  "items",
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // src/impls/health/provider-normalizers.ts
3
5
  var DEFAULT_LIST_KEYS = [
4
6
  "items",
@@ -33,3 +33,8 @@ export * from './fathom-meeting-recorder';
33
33
  export * from './health-provider-factory';
34
34
  export * from './health/providers';
35
35
  export * from './provider-factory';
36
+ export * from './composio-types';
37
+ export * from './composio-mcp';
38
+ export * from './composio-sdk';
39
+ export * from './composio-fallback-resolver';
40
+ export * from './composio-proxies';