integrate-sdk 0.6.6 → 0.6.8

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 (39) hide show
  1. package/dist/adapters/svelte-kit.js +1 -1
  2. package/dist/index.js +68 -33
  3. package/dist/server.js +67 -11
  4. package/dist/src/adapters/node.d.ts +1 -1
  5. package/dist/src/adapters/solid-start.d.ts +1 -1
  6. package/dist/src/adapters/svelte-kit.d.ts +2 -2
  7. package/dist/src/adapters/svelte-kit.d.ts.map +1 -1
  8. package/dist/src/adapters/tanstack-start.d.ts +2 -2
  9. package/dist/src/integrations/anthropic.d.ts +208 -0
  10. package/dist/src/integrations/anthropic.d.ts.map +1 -0
  11. package/dist/src/integrations/cloudflare.d.ts +158 -0
  12. package/dist/src/integrations/cloudflare.d.ts.map +1 -0
  13. package/dist/src/integrations/google.d.ts +159 -0
  14. package/dist/src/integrations/google.d.ts.map +1 -0
  15. package/dist/src/integrations/index.d.ts +79 -0
  16. package/dist/src/integrations/index.d.ts.map +1 -0
  17. package/dist/src/integrations/langchain.d.ts +139 -0
  18. package/dist/src/integrations/langchain.d.ts.map +1 -0
  19. package/dist/src/integrations/llamaindex.d.ts +125 -0
  20. package/dist/src/integrations/llamaindex.d.ts.map +1 -0
  21. package/dist/src/integrations/mastra.d.ts +138 -0
  22. package/dist/src/integrations/mastra.d.ts.map +1 -0
  23. package/dist/src/integrations/openai-agents.d.ts +117 -0
  24. package/dist/src/integrations/openai-agents.d.ts.map +1 -0
  25. package/dist/src/integrations/openai.d.ts +158 -0
  26. package/dist/src/integrations/openai.d.ts.map +1 -0
  27. package/dist/src/integrations/utils.d.ts +56 -0
  28. package/dist/src/integrations/utils.d.ts.map +1 -0
  29. package/dist/src/integrations/vercel-ai.d.ts +2 -16
  30. package/dist/src/integrations/vercel-ai.d.ts.map +1 -1
  31. package/dist/src/plugins/generic.d.ts.map +1 -1
  32. package/dist/src/plugins/github.d.ts.map +1 -1
  33. package/dist/src/plugins/gmail.d.ts.map +1 -1
  34. package/dist/src/server.d.ts +7 -0
  35. package/dist/src/server.d.ts.map +1 -1
  36. package/dist/src/utils/env.d.ts +18 -0
  37. package/dist/src/utils/env.d.ts.map +1 -0
  38. package/integrations.ts +9 -0
  39. package/package.json +77 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integrate-sdk",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "Type-safe 3rd party integration SDK for the Integrate MCP server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,6 +31,42 @@
31
31
  "types": "./dist/react.d.ts",
32
32
  "import": "./dist/react.js"
33
33
  },
34
+ "./integrations": {
35
+ "types": "./dist/integrations.d.ts",
36
+ "import": "./dist/integrations.js"
37
+ },
38
+ "./integrations/openai": {
39
+ "types": "./dist/integrations/openai.d.ts",
40
+ "import": "./dist/integrations/openai.js"
41
+ },
42
+ "./integrations/openai-agents": {
43
+ "types": "./dist/integrations/openai-agents.d.ts",
44
+ "import": "./dist/integrations/openai-agents.js"
45
+ },
46
+ "./integrations/anthropic": {
47
+ "types": "./dist/integrations/anthropic.d.ts",
48
+ "import": "./dist/integrations/anthropic.js"
49
+ },
50
+ "./integrations/google": {
51
+ "types": "./dist/integrations/google.d.ts",
52
+ "import": "./dist/integrations/google.js"
53
+ },
54
+ "./integrations/cloudflare": {
55
+ "types": "./dist/integrations/cloudflare.d.ts",
56
+ "import": "./dist/integrations/cloudflare.js"
57
+ },
58
+ "./integrations/langchain": {
59
+ "types": "./dist/integrations/langchain.d.ts",
60
+ "import": "./dist/integrations/langchain.js"
61
+ },
62
+ "./integrations/llamaindex": {
63
+ "types": "./dist/integrations/llamaindex.d.ts",
64
+ "import": "./dist/integrations/llamaindex.js"
65
+ },
66
+ "./integrations/mastra": {
67
+ "types": "./dist/integrations/mastra.d.ts",
68
+ "import": "./dist/integrations/mastra.js"
69
+ },
34
70
  "./adapters/nextjs": {
35
71
  "types": "./dist/adapters/nextjs.d.ts",
36
72
  "import": "./dist/adapters/nextjs.js"
@@ -57,7 +93,8 @@
57
93
  "index.ts",
58
94
  "server.ts",
59
95
  "oauth.ts",
60
- "react.ts"
96
+ "react.ts",
97
+ "integrations.ts"
61
98
  ],
62
99
  "scripts": {
63
100
  "prep": "bun run type-check && bun run build",
@@ -94,14 +131,50 @@
94
131
  },
95
132
  "peerDependencies": {
96
133
  "typescript": ">=5.0.0",
97
- "react": ">=19.0.0"
134
+ "react": ">=19.0.0",
135
+ "ai": ">=4.0.0",
136
+ "openai": ">=4.0.0",
137
+ "@openai/agents": ">=0.1.0",
138
+ "@anthropic-ai/sdk": ">=0.20.0",
139
+ "@google/generative-ai": ">=0.1.0",
140
+ "@cloudflare/workers-types": ">=4.0.0",
141
+ "@langchain/core": ">=0.1.0",
142
+ "llamaindex": ">=0.1.0",
143
+ "@mastra/core": ">=0.1.0"
98
144
  },
99
145
  "peerDependenciesMeta": {
100
146
  "react": {
101
147
  "optional": true
148
+ },
149
+ "ai": {
150
+ "optional": true
151
+ },
152
+ "openai": {
153
+ "optional": true
154
+ },
155
+ "@openai/agents": {
156
+ "optional": true
157
+ },
158
+ "@anthropic-ai/sdk": {
159
+ "optional": true
160
+ },
161
+ "@google/generative-ai": {
162
+ "optional": true
163
+ },
164
+ "@cloudflare/workers-types": {
165
+ "optional": true
166
+ },
167
+ "@langchain/core": {
168
+ "optional": true
169
+ },
170
+ "llamaindex": {
171
+ "optional": true
172
+ },
173
+ "@mastra/core": {
174
+ "optional": true
102
175
  }
103
176
  },
104
177
  "simple-git-hooks": {
105
178
  "pre-commit": "./scripts/check-version.sh"
106
179
  }
107
- }
180
+ }