integrate-sdk 0.8.30-dev.0 → 0.8.31-dev.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 (60) hide show
  1. package/dist/adapters/auto-routes.js +466 -0
  2. package/dist/adapters/index.js +466 -0
  3. package/dist/adapters/nextjs.js +466 -0
  4. package/dist/adapters/node.js +466 -0
  5. package/dist/adapters/svelte-kit.js +466 -0
  6. package/dist/adapters/tanstack-start.js +466 -0
  7. package/dist/index.js +488 -0
  8. package/dist/oauth.js +466 -0
  9. package/dist/server.js +477 -0
  10. package/dist/src/client.d.ts +12 -1
  11. package/dist/src/client.d.ts.map +1 -1
  12. package/dist/src/index.d.ts +22 -0
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/integrations/calcom-client.d.ts +355 -0
  15. package/dist/src/integrations/calcom-client.d.ts.map +1 -0
  16. package/dist/src/integrations/calcom.d.ts +39 -0
  17. package/dist/src/integrations/calcom.d.ts.map +1 -0
  18. package/dist/src/integrations/cursor-client.d.ts +259 -0
  19. package/dist/src/integrations/cursor-client.d.ts.map +1 -0
  20. package/dist/src/integrations/cursor.d.ts +30 -0
  21. package/dist/src/integrations/cursor.d.ts.map +1 -0
  22. package/dist/src/integrations/figma-client.d.ts +327 -0
  23. package/dist/src/integrations/figma-client.d.ts.map +1 -0
  24. package/dist/src/integrations/figma.d.ts +37 -0
  25. package/dist/src/integrations/figma.d.ts.map +1 -0
  26. package/dist/src/integrations/gworkspace-client.d.ts +392 -0
  27. package/dist/src/integrations/gworkspace-client.d.ts.map +1 -0
  28. package/dist/src/integrations/gworkspace.d.ts +37 -0
  29. package/dist/src/integrations/gworkspace.d.ts.map +1 -0
  30. package/dist/src/integrations/hubspot-client.d.ts +367 -0
  31. package/dist/src/integrations/hubspot-client.d.ts.map +1 -0
  32. package/dist/src/integrations/hubspot.d.ts +37 -0
  33. package/dist/src/integrations/hubspot.d.ts.map +1 -0
  34. package/dist/src/integrations/intercom-client.d.ts +414 -0
  35. package/dist/src/integrations/intercom-client.d.ts.map +1 -0
  36. package/dist/src/integrations/intercom.d.ts +37 -0
  37. package/dist/src/integrations/intercom.d.ts.map +1 -0
  38. package/dist/src/integrations/onedrive-client.d.ts +338 -0
  39. package/dist/src/integrations/onedrive-client.d.ts.map +1 -0
  40. package/dist/src/integrations/onedrive.d.ts +37 -0
  41. package/dist/src/integrations/onedrive.d.ts.map +1 -0
  42. package/dist/src/integrations/polar-client.d.ts +297 -0
  43. package/dist/src/integrations/polar-client.d.ts.map +1 -0
  44. package/dist/src/integrations/polar.d.ts +39 -0
  45. package/dist/src/integrations/polar.d.ts.map +1 -0
  46. package/dist/src/integrations/ramp-client.d.ts +341 -0
  47. package/dist/src/integrations/ramp-client.d.ts.map +1 -0
  48. package/dist/src/integrations/ramp.d.ts +39 -0
  49. package/dist/src/integrations/ramp.d.ts.map +1 -0
  50. package/dist/src/integrations/whatsapp-client.d.ts +320 -0
  51. package/dist/src/integrations/whatsapp-client.d.ts.map +1 -0
  52. package/dist/src/integrations/whatsapp.d.ts +39 -0
  53. package/dist/src/integrations/whatsapp.d.ts.map +1 -0
  54. package/dist/src/integrations/youtube-client.d.ts +459 -0
  55. package/dist/src/integrations/youtube-client.d.ts.map +1 -0
  56. package/dist/src/integrations/youtube.d.ts +37 -0
  57. package/dist/src/integrations/youtube.d.ts.map +1 -0
  58. package/dist/src/server.d.ts +11 -0
  59. package/dist/src/server.d.ts.map +1 -1
  60. package/package.json +1 -1
@@ -0,0 +1,320 @@
1
+ /**
2
+ * WhatsApp Business Integration Client Types
3
+ * Fully typed interface for WhatsApp Business integration methods
4
+ */
5
+ import type { MCPToolCallResponse } from "../protocol/messages.js";
6
+ /**
7
+ * WhatsApp Message
8
+ */
9
+ export interface WhatsAppMessage {
10
+ id: string;
11
+ from: string;
12
+ to: string;
13
+ timestamp: string;
14
+ type: "text" | "image" | "video" | "audio" | "document" | "template";
15
+ text?: {
16
+ body: string;
17
+ };
18
+ image?: {
19
+ id: string;
20
+ mime_type: string;
21
+ sha256: string;
22
+ };
23
+ video?: {
24
+ id: string;
25
+ mime_type: string;
26
+ sha256: string;
27
+ };
28
+ audio?: {
29
+ id: string;
30
+ mime_type: string;
31
+ sha256: string;
32
+ };
33
+ document?: {
34
+ id: string;
35
+ mime_type: string;
36
+ sha256: string;
37
+ filename: string;
38
+ };
39
+ status?: "sent" | "delivered" | "read" | "failed";
40
+ }
41
+ /**
42
+ * WhatsApp Message Template
43
+ */
44
+ export interface WhatsAppTemplate {
45
+ id: string;
46
+ name: string;
47
+ language: string;
48
+ status: "approved" | "pending" | "rejected";
49
+ category: "marketing" | "utility" | "authentication";
50
+ components: Array<{
51
+ type: "header" | "body" | "footer" | "button";
52
+ text?: string;
53
+ format?: string;
54
+ example?: {
55
+ header_text?: string[];
56
+ body_text?: string[][];
57
+ };
58
+ }>;
59
+ }
60
+ /**
61
+ * WhatsApp Phone Number
62
+ */
63
+ export interface WhatsAppPhoneNumber {
64
+ id: string;
65
+ display_phone_number: string;
66
+ verified_name: string;
67
+ code_verification_status: string;
68
+ quality_rating: "green" | "yellow" | "red";
69
+ platform_type: string;
70
+ throughput: {
71
+ level: string;
72
+ };
73
+ }
74
+ /**
75
+ * WhatsApp Business Profile
76
+ */
77
+ export interface WhatsAppBusinessProfile {
78
+ about?: string;
79
+ address?: string;
80
+ description?: string;
81
+ email?: string;
82
+ messaging_product: string;
83
+ profile_picture_url?: string;
84
+ websites?: string[];
85
+ vertical?: string;
86
+ }
87
+ /**
88
+ * WhatsApp Message Status
89
+ */
90
+ export interface WhatsAppMessageStatus {
91
+ id: string;
92
+ status: "sent" | "delivered" | "read" | "failed";
93
+ timestamp: string;
94
+ recipient_id: string;
95
+ errors?: Array<{
96
+ code: number;
97
+ title: string;
98
+ message: string;
99
+ error_data?: {
100
+ details: string;
101
+ };
102
+ }>;
103
+ }
104
+ /**
105
+ * WhatsApp Integration Client Interface
106
+ * Provides type-safe methods for all WhatsApp Business operations
107
+ */
108
+ export interface WhatsAppIntegrationClient {
109
+ /**
110
+ * Send a text message
111
+ *
112
+ * @example
113
+ * ```typescript
114
+ * const result = await client.whatsapp.sendMessage({
115
+ * to: "+1234567890",
116
+ * type: "text",
117
+ * text: { body: "Hello, World!" }
118
+ * });
119
+ * ```
120
+ */
121
+ sendMessage(params: {
122
+ /** Recipient phone number (E.164 format) */
123
+ to: string;
124
+ /** Message type */
125
+ type: "text";
126
+ /** Text message content */
127
+ text: {
128
+ /** Message body text */
129
+ body: string;
130
+ /** Preview URL (optional) */
131
+ preview_url?: boolean;
132
+ };
133
+ }): Promise<MCPToolCallResponse>;
134
+ /**
135
+ * Send a template message
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * const result = await client.whatsapp.sendTemplate({
140
+ * to: "+1234567890",
141
+ * template: {
142
+ * name: "welcome_message",
143
+ * language: { code: "en_US" },
144
+ * components: [
145
+ * {
146
+ * type: "body",
147
+ * parameters: [{ type: "text", text: "John" }]
148
+ * }
149
+ * ]
150
+ * }
151
+ * });
152
+ * ```
153
+ */
154
+ sendTemplate(params: {
155
+ /** Recipient phone number (E.164 format) */
156
+ to: string;
157
+ /** Template configuration */
158
+ template: {
159
+ /** Template name */
160
+ name: string;
161
+ /** Template language */
162
+ language: {
163
+ /** Language code */
164
+ code: string;
165
+ };
166
+ /** Template components with parameters */
167
+ components?: Array<{
168
+ type: "header" | "body" | "button";
169
+ parameters?: Array<{
170
+ type: "text" | "currency" | "date_time" | "image" | "document" | "video";
171
+ text?: string;
172
+ currency?: {
173
+ fallback_value: string;
174
+ code: string;
175
+ amount_1000: number;
176
+ };
177
+ date_time?: {
178
+ fallback_value: string;
179
+ };
180
+ image?: {
181
+ link: string;
182
+ };
183
+ document?: {
184
+ link: string;
185
+ filename?: string;
186
+ };
187
+ video?: {
188
+ link: string;
189
+ };
190
+ }>;
191
+ sub_type?: string;
192
+ index?: number;
193
+ }>;
194
+ };
195
+ }): Promise<MCPToolCallResponse>;
196
+ /**
197
+ * Send media (image/video/document/audio)
198
+ *
199
+ * @example
200
+ * ```typescript
201
+ * const result = await client.whatsapp.sendMedia({
202
+ * to: "+1234567890",
203
+ * type: "image",
204
+ * image: {
205
+ * link: "https://example.com/image.jpg",
206
+ * caption: "Check this out!"
207
+ * }
208
+ * });
209
+ * ```
210
+ */
211
+ sendMedia(params: {
212
+ /** Recipient phone number (E.164 format) */
213
+ to: string;
214
+ /** Media type */
215
+ type: "image" | "video" | "document" | "audio";
216
+ /** Image media (when type is "image") */
217
+ image?: {
218
+ /** Media URL or ID */
219
+ link?: string;
220
+ id?: string;
221
+ /** Image caption */
222
+ caption?: string;
223
+ };
224
+ /** Video media (when type is "video") */
225
+ video?: {
226
+ /** Media URL or ID */
227
+ link?: string;
228
+ id?: string;
229
+ /** Video caption */
230
+ caption?: string;
231
+ };
232
+ /** Document media (when type is "document") */
233
+ document?: {
234
+ /** Media URL or ID */
235
+ link?: string;
236
+ id?: string;
237
+ /** Document caption */
238
+ caption?: string;
239
+ /** Document filename */
240
+ filename?: string;
241
+ };
242
+ /** Audio media (when type is "audio") */
243
+ audio?: {
244
+ /** Media URL or ID */
245
+ link?: string;
246
+ id?: string;
247
+ };
248
+ }): Promise<MCPToolCallResponse>;
249
+ /**
250
+ * List message templates
251
+ *
252
+ * @example
253
+ * ```typescript
254
+ * const templates = await client.whatsapp.listTemplates({
255
+ * limit: 50
256
+ * });
257
+ * ```
258
+ */
259
+ listTemplates(params?: {
260
+ /** Maximum number of templates to return */
261
+ limit?: number;
262
+ /** Pagination cursor */
263
+ after?: string;
264
+ /** Pagination cursor */
265
+ before?: string;
266
+ }): Promise<MCPToolCallResponse>;
267
+ /**
268
+ * Get registered phone numbers
269
+ *
270
+ * @example
271
+ * ```typescript
272
+ * const phoneNumbers = await client.whatsapp.getPhoneNumbers();
273
+ * ```
274
+ */
275
+ getPhoneNumbers(params?: {
276
+ /** Maximum number of phone numbers to return */
277
+ limit?: number;
278
+ }): Promise<MCPToolCallResponse>;
279
+ /**
280
+ * Get message delivery status
281
+ *
282
+ * @example
283
+ * ```typescript
284
+ * const status = await client.whatsapp.getMessageStatus({
285
+ * message_id: "wamid.xxxxx"
286
+ * });
287
+ * ```
288
+ */
289
+ getMessageStatus(params: {
290
+ /** WhatsApp message ID */
291
+ message_id: string;
292
+ }): Promise<MCPToolCallResponse>;
293
+ /**
294
+ * Mark message as read
295
+ *
296
+ * @example
297
+ * ```typescript
298
+ * await client.whatsapp.markRead({
299
+ * message_id: "wamid.xxxxx"
300
+ * });
301
+ * ```
302
+ */
303
+ markRead(params: {
304
+ /** WhatsApp message ID to mark as read */
305
+ message_id: string;
306
+ }): Promise<MCPToolCallResponse>;
307
+ /**
308
+ * Get business profile
309
+ *
310
+ * @example
311
+ * ```typescript
312
+ * const profile = await client.whatsapp.getProfile();
313
+ * ```
314
+ */
315
+ getProfile(params?: {
316
+ /** Fields to retrieve */
317
+ fields?: string[];
318
+ }): Promise<MCPToolCallResponse>;
319
+ }
320
+ //# sourceMappingURL=whatsapp-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/whatsapp-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IACrE,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,CAAC,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KA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AChD,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,MAAM,EAAE;QACvB,0BAA0B;QAC1B,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE;QACf,0CAA0C;QAC1C,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE;QAClB,yBAAyB;QACzB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * WhatsApp Business Integration
3
+ * Enables WhatsApp Business tools with OAuth configuration
4
+ */
5
+ import type { MCPIntegration } from "./types.js";
6
+ /**
7
+ * WhatsApp Business integration configuration
8
+ *
9
+ * SERVER-SIDE: Automatically reads WHATSAPP_CLIENT_ID and WHATSAPP_CLIENT_SECRET from environment.
10
+ * You can override by providing explicit clientId and clientSecret values.
11
+ * CLIENT-SIDE: Omit clientId and clientSecret when using createMCPClient()
12
+ */
13
+ export interface WhatsAppIntegrationConfig {
14
+ /** WhatsApp OAuth client ID (defaults to WHATSAPP_CLIENT_ID env var) */
15
+ clientId?: string;
16
+ /** WhatsApp OAuth client secret (defaults to WHATSAPP_CLIENT_SECRET env var) */
17
+ clientSecret?: string;
18
+ /** Additional OAuth scopes (default: ['business_management', 'whatsapp_business_messaging', 'whatsapp_business_management']) */
19
+ scopes?: string[];
20
+ /** OAuth redirect URI */
21
+ redirectUri?: string;
22
+ /** WhatsApp Business Account ID */
23
+ businessAccountId?: string;
24
+ }
25
+ /**
26
+ * Default WhatsApp Business tools that this integration enables
27
+ * These should match the tool names exposed by your MCP server
28
+ */
29
+ declare const WHATSAPP_TOOLS: readonly ["whatsapp_send_message", "whatsapp_send_template", "whatsapp_send_media", "whatsapp_list_templates", "whatsapp_get_phone_numbers", "whatsapp_get_message_status", "whatsapp_mark_read", "whatsapp_get_profile"];
30
+ export declare function whatsappIntegration(config?: WhatsAppIntegrationConfig): MCPIntegration<"whatsapp">;
31
+ /**
32
+ * Export tool names for type inference
33
+ */
34
+ export type WhatsAppTools = typeof WHATSAPP_TOOLS[number];
35
+ /**
36
+ * Export WhatsApp client types
37
+ */
38
+ export type { WhatsAppIntegrationClient } from "./whatsapp-client.js";
39
+ //# sourceMappingURL=whatsapp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../../../src/integrations/whatsapp.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAG9D;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gIAAgI;IAChI,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,2NASV,CAAC;AAGX,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,yBAA8B,GAAG,cAAc,CAAC,UAAU,CAAC,CA0BtG;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AAE1D;;GAEG;AACH,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}