integrate-sdk 0.8.42 → 0.8.44-dev.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/adapters/auto-routes.d.ts.map +1 -1
- package/dist/adapters/auto-routes.js +309 -143
- package/dist/adapters/base-handler.d.ts.map +1 -1
- package/dist/adapters/index.js +305 -141
- package/dist/adapters/nextjs-oauth-redirect.d.ts.map +1 -1
- package/dist/adapters/nextjs-oauth-redirect.js +47 -2
- package/dist/adapters/nextjs.d.ts.map +1 -1
- package/dist/adapters/nextjs.js +304 -141
- package/dist/adapters/node.js +304 -141
- package/dist/adapters/svelte-kit.js +304 -141
- package/dist/adapters/tanstack-start.js +304 -141
- package/dist/index.d.ts +19 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +319 -183
- package/dist/oauth.js +309 -143
- package/dist/react.js +59 -14
- package/dist/server.js +308 -141
- package/dist/src/adapters/auto-routes.d.ts.map +1 -1
- package/dist/src/adapters/base-handler.d.ts.map +1 -1
- package/dist/src/adapters/nextjs-oauth-redirect.d.ts.map +1 -1
- package/dist/src/adapters/nextjs.d.ts.map +1 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/config/types.d.ts +15 -0
- package/dist/src/config/types.d.ts.map +1 -1
- package/dist/src/integrations/airtable.d.ts.map +1 -1
- package/dist/src/integrations/calcom.d.ts.map +1 -1
- package/dist/src/integrations/cursor.d.ts.map +1 -1
- package/dist/src/integrations/figma.d.ts.map +1 -1
- package/dist/src/integrations/gcal.d.ts.map +1 -1
- package/dist/src/integrations/github.d.ts.map +1 -1
- package/dist/src/integrations/gmail.d.ts.map +1 -1
- package/dist/src/integrations/gworkspace.d.ts.map +1 -1
- package/dist/src/integrations/hubspot.d.ts.map +1 -1
- package/dist/src/integrations/intercom.d.ts.map +1 -1
- package/dist/src/integrations/linear.d.ts.map +1 -1
- package/dist/src/integrations/notion.d.ts.map +1 -1
- package/dist/src/integrations/onedrive.d.ts.map +1 -1
- package/dist/src/integrations/outlook.d.ts.map +1 -1
- package/dist/src/integrations/polar.d.ts.map +1 -1
- package/dist/src/integrations/ramp.d.ts.map +1 -1
- package/dist/src/integrations/server-client.d.ts +15 -1
- package/dist/src/integrations/server-client.d.ts.map +1 -1
- package/dist/src/integrations/slack.d.ts.map +1 -1
- package/dist/src/integrations/stripe.d.ts.map +1 -1
- package/dist/src/integrations/todoist.d.ts.map +1 -1
- package/dist/src/integrations/vercel.d.ts.map +1 -1
- package/dist/src/integrations/whatsapp.d.ts.map +1 -1
- package/dist/src/integrations/youtube.d.ts.map +1 -1
- package/dist/src/integrations/zendesk.d.ts.map +1 -1
- package/dist/src/oauth/email-fetcher.d.ts.map +1 -1
- package/dist/src/oauth/manager.d.ts.map +1 -1
- package/dist/src/oauth/window-manager.d.ts.map +1 -1
- package/dist/src/react/hooks.d.ts.map +1 -1
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/transport/http-session.d.ts.map +1 -1
- package/dist/src/transport/http-stream.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts +37 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/index.ts +20 -72
- package/package.json +2 -2
- package/dist/adapters/base-handler.js +0 -561
- package/dist/ai/cloudflare.d.ts +0 -158
- package/dist/ai/cloudflare.d.ts.map +0 -1
- package/dist/ai/cloudflare.js +0 -4249
- package/dist/ai/langchain.d.ts +0 -139
- package/dist/ai/langchain.d.ts.map +0 -1
- package/dist/ai/langchain.js +0 -4237
- package/dist/ai/llamaindex.d.ts +0 -125
- package/dist/ai/llamaindex.d.ts.map +0 -1
- package/dist/ai/llamaindex.js +0 -4236
- package/dist/ai/mastra.d.ts +0 -138
- package/dist/ai/mastra.d.ts.map +0 -1
- package/dist/ai/mastra.js +0 -4240
- package/dist/src/ai/cloudflare.d.ts +0 -158
- package/dist/src/ai/cloudflare.d.ts.map +0 -1
- package/dist/src/ai/langchain.d.ts +0 -139
- package/dist/src/ai/langchain.d.ts.map +0 -1
- package/dist/src/ai/llamaindex.d.ts +0 -125
- package/dist/src/ai/llamaindex.d.ts.map +0 -1
- package/dist/src/ai/mastra.d.ts +0 -138
- package/dist/src/ai/mastra.d.ts.map +0 -1
- package/dist/src/integrations/vercel-ai.d.ts +0 -127
- package/dist/src/integrations/vercel-ai.d.ts.map +0 -1
- package/dist/src/plugins/generic.d.ts +0 -99
- package/dist/src/plugins/generic.d.ts.map +0 -1
- package/dist/src/plugins/github-client.d.ts +0 -320
- package/dist/src/plugins/github-client.d.ts.map +0 -1
- package/dist/src/plugins/github.d.ts +0 -89
- package/dist/src/plugins/github.d.ts.map +0 -1
- package/dist/src/plugins/gmail-client.d.ts +0 -106
- package/dist/src/plugins/gmail-client.d.ts.map +0 -1
- package/dist/src/plugins/gmail.d.ts +0 -87
- package/dist/src/plugins/gmail.d.ts.map +0 -1
- package/dist/src/plugins/server-client.d.ts +0 -18
- package/dist/src/plugins/server-client.d.ts.map +0 -1
- package/dist/src/plugins/types.d.ts +0 -70
- package/dist/src/plugins/types.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,63 +5,42 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* //
|
|
9
|
-
* import { client } from 'integrate-sdk';
|
|
10
|
-
*
|
|
11
|
-
* await client.github.listOwnRepos({});
|
|
12
|
-
*
|
|
13
|
-
* // Or create a custom client with different API configuration
|
|
8
|
+
* // Create a client with explicitly configured integrations
|
|
14
9
|
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
15
10
|
*
|
|
16
11
|
* // Example 1: Different API path (same origin)
|
|
17
|
-
* const
|
|
12
|
+
* const client = createMCPClient({
|
|
18
13
|
* apiRouteBase: '/custom/api/path', // Calls /custom/api/path/mcp
|
|
19
14
|
* integrations: [githubIntegration()],
|
|
20
15
|
* });
|
|
21
16
|
*
|
|
22
|
-
*
|
|
23
|
-
* const crossOriginClient = createMCPClient({
|
|
24
|
-
* apiBaseUrl: 'https://api.example.com', // API on different domain
|
|
25
|
-
* apiRouteBase: '/api/integrate', // Calls https://api.example.com/api/integrate/mcp
|
|
26
|
-
* integrations: [githubIntegration()],
|
|
27
|
-
* });
|
|
17
|
+
* await client.github.listOwnRepos({});
|
|
28
18
|
* ```
|
|
29
|
-
*/
|
|
30
|
-
export * from './src/index.js';
|
|
31
|
-
/**
|
|
32
|
-
* Default MCP Client with all integrations pre-configured
|
|
33
|
-
*
|
|
34
|
-
* This is a singleton client instance that includes GitHub and Gmail integrations.
|
|
35
|
-
* You can use it directly without having to configure integrations.
|
|
36
|
-
*
|
|
37
|
-
* Default configuration:
|
|
38
|
-
* - Calls API routes at: {window.location.origin}/api/integrate/mcp
|
|
39
|
-
* - OAuth routes at: {window.location.origin}/api/integrate/oauth/*
|
|
40
|
-
* - Automatically detects if server uses database storage and skips localStorage accordingly
|
|
41
|
-
*
|
|
42
|
-
* For custom configuration (different apiBaseUrl, apiRouteBase, etc.),
|
|
43
|
-
* use `createMCPClient()` instead.
|
|
44
19
|
*
|
|
45
20
|
* @example
|
|
46
21
|
* ```typescript
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* // Use GitHub integration
|
|
50
|
-
* const repos = await client.github.listOwnRepos({});
|
|
22
|
+
* // Example 2: Different API domain (cross-origin)
|
|
23
|
+
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
51
24
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
25
|
+
* const client = createMCPClient({
|
|
26
|
+
* apiBaseUrl: 'https://api.example.com', // API on different domain
|
|
27
|
+
* apiRouteBase: '/api/integrate', // Calls https://api.example.com/api/integrate/mcp
|
|
28
|
+
* integrations: [githubIntegration()],
|
|
29
|
+
* });
|
|
54
30
|
* ```
|
|
55
31
|
*
|
|
56
32
|
* @example
|
|
57
33
|
* ```typescript
|
|
58
|
-
* //
|
|
59
|
-
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
60
|
-
*
|
|
61
|
-
* const
|
|
62
|
-
* integrations: [
|
|
34
|
+
* // Example 3: Multiple integrations
|
|
35
|
+
* import { createMCPClient, githubIntegration, gmailIntegration } from 'integrate-sdk';
|
|
36
|
+
*
|
|
37
|
+
* const client = createMCPClient({
|
|
38
|
+
* integrations: [
|
|
39
|
+
* githubIntegration(),
|
|
40
|
+
* gmailIntegration(),
|
|
41
|
+
* ],
|
|
63
42
|
* });
|
|
64
43
|
* ```
|
|
65
44
|
*/
|
|
66
|
-
export
|
|
45
|
+
export * from './src/index.js';
|
|
67
46
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,gBAAgB,CAAC"}
|