@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.
- package/README.md +59 -9
- package/dist/impls/async-event-queue.js +2 -0
- package/dist/impls/composio-fallback-resolver.d.ts +34 -0
- package/dist/impls/composio-fallback-resolver.js +580 -0
- package/dist/impls/composio-mcp.d.ts +22 -0
- package/dist/impls/composio-mcp.js +164 -0
- package/dist/impls/composio-proxies.d.ts +60 -0
- package/dist/impls/composio-proxies.js +311 -0
- package/dist/impls/composio-sdk.d.ts +25 -0
- package/dist/impls/composio-sdk.js +78 -0
- package/dist/impls/composio-types.d.ts +43 -0
- package/dist/impls/composio-types.js +54 -0
- package/dist/impls/elevenlabs-voice.js +2 -0
- package/dist/impls/fal-voice.js +2 -0
- package/dist/impls/fathom-meeting-recorder.js +2 -0
- package/dist/impls/fathom-meeting-recorder.mapper.js +2 -0
- package/dist/impls/fathom-meeting-recorder.utils.js +2 -0
- package/dist/impls/fathom-meeting-recorder.webhooks.js +2 -0
- package/dist/impls/fireflies-meeting-recorder.js +2 -0
- package/dist/impls/fireflies-meeting-recorder.queries.js +2 -0
- package/dist/impls/fireflies-meeting-recorder.utils.js +2 -0
- package/dist/impls/gcs-storage.js +2 -0
- package/dist/impls/gmail-inbound.js +2 -0
- package/dist/impls/gmail-outbound.js +2 -0
- package/dist/impls/google-calendar.js +2 -0
- package/dist/impls/gradium-voice.js +2 -0
- package/dist/impls/granola-meeting-recorder.js +2 -0
- package/dist/impls/granola-meeting-recorder.mcp.js +2 -0
- package/dist/impls/health/base-health-provider.js +2 -0
- package/dist/impls/health/hybrid-health-providers.js +2 -0
- package/dist/impls/health/official-health-providers.js +2 -0
- package/dist/impls/health/provider-normalizers.js +2 -0
- package/dist/impls/health/providers.js +2 -0
- package/dist/impls/health-provider-factory.js +2 -0
- package/dist/impls/index.d.ts +5 -0
- package/dist/impls/index.js +657 -0
- package/dist/impls/jira.js +2 -0
- package/dist/impls/linear.js +2 -0
- package/dist/impls/messaging-github.js +2 -0
- package/dist/impls/messaging-slack.js +2 -0
- package/dist/impls/messaging-whatsapp-meta.js +2 -0
- package/dist/impls/messaging-whatsapp-twilio.js +2 -0
- package/dist/impls/mistral-conversational.js +2 -0
- package/dist/impls/mistral-conversational.session.js +2 -0
- package/dist/impls/mistral-embedding.js +2 -0
- package/dist/impls/mistral-llm.js +2 -0
- package/dist/impls/mistral-stt.js +2 -0
- package/dist/impls/notion.js +2 -0
- package/dist/impls/posthog-reader.js +2 -0
- package/dist/impls/posthog-utils.js +2 -0
- package/dist/impls/posthog.js +2 -0
- package/dist/impls/postmark-email.js +2 -0
- package/dist/impls/powens-client.js +2 -0
- package/dist/impls/powens-openbanking.js +2 -0
- package/dist/impls/provider-factory.d.ts +24 -0
- package/dist/impls/provider-factory.js +70 -0
- package/dist/impls/qdrant-vector.js +2 -0
- package/dist/impls/stripe-payments.js +2 -0
- package/dist/impls/supabase-psql.js +2 -0
- package/dist/impls/supabase-vector.js +2 -0
- package/dist/impls/tldv-meeting-recorder.js +2 -0
- package/dist/impls/twilio-sms.js +2 -0
- package/dist/index.js +657 -0
- package/dist/node/impls/async-event-queue.js +3 -0
- package/dist/node/impls/composio-fallback-resolver.js +580 -0
- package/dist/node/impls/composio-mcp.js +164 -0
- package/dist/node/impls/composio-proxies.js +311 -0
- package/dist/node/impls/composio-sdk.js +78 -0
- package/dist/node/impls/composio-types.js +54 -0
- package/dist/node/impls/elevenlabs-voice.js +3 -0
- package/dist/node/impls/fal-voice.js +3 -0
- package/dist/node/impls/fathom-meeting-recorder.js +3 -0
- package/dist/node/impls/fathom-meeting-recorder.mapper.js +3 -0
- package/dist/node/impls/fathom-meeting-recorder.utils.js +3 -0
- package/dist/node/impls/fathom-meeting-recorder.webhooks.js +3 -0
- package/dist/node/impls/fireflies-meeting-recorder.js +3 -0
- package/dist/node/impls/fireflies-meeting-recorder.queries.js +3 -0
- package/dist/node/impls/fireflies-meeting-recorder.utils.js +3 -0
- package/dist/node/impls/gcs-storage.js +3 -0
- package/dist/node/impls/gmail-inbound.js +3 -0
- package/dist/node/impls/gmail-outbound.js +3 -0
- package/dist/node/impls/google-calendar.js +3 -0
- package/dist/node/impls/gradium-voice.js +3 -0
- package/dist/node/impls/granola-meeting-recorder.js +3 -0
- package/dist/node/impls/granola-meeting-recorder.mcp.js +3 -0
- package/dist/node/impls/health/base-health-provider.js +3 -0
- package/dist/node/impls/health/hybrid-health-providers.js +3 -0
- package/dist/node/impls/health/official-health-providers.js +3 -0
- package/dist/node/impls/health/provider-normalizers.js +3 -0
- package/dist/node/impls/health/providers.js +3 -0
- package/dist/node/impls/health-provider-factory.js +3 -0
- package/dist/node/impls/index.js +658 -0
- package/dist/node/impls/jira.js +3 -0
- package/dist/node/impls/linear.js +3 -0
- package/dist/node/impls/messaging-github.js +3 -0
- package/dist/node/impls/messaging-slack.js +3 -0
- package/dist/node/impls/messaging-whatsapp-meta.js +3 -0
- package/dist/node/impls/messaging-whatsapp-twilio.js +3 -0
- package/dist/node/impls/mistral-conversational.js +3 -0
- package/dist/node/impls/mistral-conversational.session.js +3 -0
- package/dist/node/impls/mistral-embedding.js +3 -0
- package/dist/node/impls/mistral-llm.js +3 -0
- package/dist/node/impls/mistral-stt.js +3 -0
- package/dist/node/impls/notion.js +3 -0
- package/dist/node/impls/posthog-reader.js +3 -0
- package/dist/node/impls/posthog-utils.js +3 -0
- package/dist/node/impls/posthog.js +3 -0
- package/dist/node/impls/postmark-email.js +3 -0
- package/dist/node/impls/powens-client.js +3 -0
- package/dist/node/impls/powens-openbanking.js +3 -0
- package/dist/node/impls/provider-factory.js +71 -0
- package/dist/node/impls/qdrant-vector.js +3 -0
- package/dist/node/impls/stripe-payments.js +3 -0
- package/dist/node/impls/supabase-psql.js +3 -0
- package/dist/node/impls/supabase-vector.js +3 -0
- package/dist/node/impls/tldv-meeting-recorder.js +3 -0
- package/dist/node/impls/twilio-sms.js +3 -0
- package/dist/node/index.js +658 -0
- package/dist/node/secrets/provider.js +3 -0
- package/dist/secrets/provider.js +2 -0
- 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
|
+
};
|
package/dist/impls/fal-voice.js
CHANGED
package/dist/impls/index.d.ts
CHANGED
|
@@ -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';
|