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,414 @@
1
+ /**
2
+ * Intercom Integration Client Types
3
+ * Fully typed interface for Intercom integration methods
4
+ */
5
+ import type { MCPToolCallResponse } from "../protocol/messages.js";
6
+ /**
7
+ * Intercom Contact
8
+ */
9
+ export interface IntercomContact {
10
+ type: "contact";
11
+ id: string;
12
+ workspace_id: string;
13
+ external_id?: string;
14
+ role: "user" | "lead";
15
+ email?: string;
16
+ phone?: string;
17
+ name?: string;
18
+ avatar?: string;
19
+ owner_id?: number;
20
+ social_profiles?: {
21
+ type: string;
22
+ name: string;
23
+ username?: string;
24
+ url?: string;
25
+ }[];
26
+ has_hard_bounced: boolean;
27
+ marked_email_as_spam: boolean;
28
+ unsubscribed_from_emails: boolean;
29
+ created_at: number;
30
+ updated_at: number;
31
+ signed_up_at?: number;
32
+ last_seen_at?: number;
33
+ last_replied_at?: number;
34
+ last_contacted_at?: number;
35
+ last_email_opened_at?: number;
36
+ last_email_clicked_at?: number;
37
+ language_override?: string;
38
+ browser?: string;
39
+ browser_version?: string;
40
+ browser_language?: string;
41
+ os?: string;
42
+ location?: {
43
+ type: string;
44
+ country?: string;
45
+ region?: string;
46
+ city?: string;
47
+ };
48
+ android_app_name?: string;
49
+ android_app_version?: string;
50
+ android_device?: string;
51
+ android_os_version?: string;
52
+ android_sdk_version?: string;
53
+ android_last_seen_at?: number;
54
+ ios_app_name?: string;
55
+ ios_app_version?: string;
56
+ ios_device?: string;
57
+ ios_os_version?: string;
58
+ ios_sdk_version?: string;
59
+ ios_last_seen_at?: number;
60
+ custom_attributes?: Record<string, any>;
61
+ tags?: {
62
+ type: string;
63
+ data: Array<{
64
+ type: string;
65
+ id: string;
66
+ url: string;
67
+ }>;
68
+ };
69
+ notes?: {
70
+ type: string;
71
+ data: Array<{
72
+ type: string;
73
+ id: string;
74
+ url: string;
75
+ }>;
76
+ };
77
+ companies?: {
78
+ type: string;
79
+ data: Array<{
80
+ type: string;
81
+ id: string;
82
+ url: string;
83
+ }>;
84
+ };
85
+ }
86
+ /**
87
+ * Intercom Conversation
88
+ */
89
+ export interface IntercomConversation {
90
+ type: "conversation";
91
+ id: string;
92
+ created_at: number;
93
+ updated_at: number;
94
+ waiting_since?: number;
95
+ snoozed_until?: number;
96
+ source: {
97
+ type: string;
98
+ id: string;
99
+ delivered_as: string;
100
+ subject?: string;
101
+ body?: string;
102
+ author: {
103
+ type: string;
104
+ id: string;
105
+ name?: string;
106
+ email?: string;
107
+ };
108
+ attachments?: any[];
109
+ url?: string;
110
+ };
111
+ contacts?: {
112
+ type: string;
113
+ contacts: Array<{
114
+ type: string;
115
+ id: string;
116
+ }>;
117
+ };
118
+ teammates?: {
119
+ type: string;
120
+ teammates: Array<{
121
+ type: string;
122
+ id: string;
123
+ }>;
124
+ };
125
+ admin_assignee_id?: number;
126
+ team_assignee_id?: number;
127
+ title?: string;
128
+ state: "open" | "closed" | "snoozed";
129
+ read: boolean;
130
+ tags?: {
131
+ type: string;
132
+ tags: Array<{
133
+ type: string;
134
+ id: string;
135
+ name: string;
136
+ }>;
137
+ };
138
+ priority: "priority" | "not_priority";
139
+ sla_applied?: {
140
+ type: string;
141
+ sla_name: string;
142
+ sla_status: string;
143
+ };
144
+ conversation_rating?: {
145
+ rating?: number;
146
+ remark?: string;
147
+ created_at?: number;
148
+ contact?: {
149
+ type: string;
150
+ id: string;
151
+ };
152
+ teammate?: {
153
+ type: string;
154
+ id: string;
155
+ };
156
+ };
157
+ statistics?: {
158
+ type: string;
159
+ time_to_assignment?: number;
160
+ time_to_admin_reply?: number;
161
+ time_to_first_close?: number;
162
+ time_to_last_close?: number;
163
+ median_time_to_reply?: number;
164
+ first_contact_reply_at?: number;
165
+ first_assignment_at?: number;
166
+ first_admin_reply_at?: number;
167
+ first_close_at?: number;
168
+ last_assignment_at?: number;
169
+ last_assignment_admin_reply_at?: number;
170
+ last_contact_reply_at?: number;
171
+ last_admin_reply_at?: number;
172
+ last_close_at?: number;
173
+ last_closed_by_id?: string;
174
+ count_reopens?: number;
175
+ count_assignments?: number;
176
+ count_conversation_parts?: number;
177
+ };
178
+ conversation_parts?: {
179
+ type: string;
180
+ conversation_parts: Array<{
181
+ type: string;
182
+ id: string;
183
+ part_type: string;
184
+ body?: string;
185
+ created_at: number;
186
+ updated_at: number;
187
+ notified_at?: number;
188
+ author: {
189
+ type: string;
190
+ id: string;
191
+ name?: string;
192
+ email?: string;
193
+ };
194
+ attachments?: any[];
195
+ }>;
196
+ total_count: number;
197
+ };
198
+ }
199
+ /**
200
+ * Intercom Company
201
+ */
202
+ export interface IntercomCompany {
203
+ type: "company";
204
+ id: string;
205
+ name: string;
206
+ company_id?: string;
207
+ plan?: string;
208
+ created_at: number;
209
+ updated_at: number;
210
+ monthly_spend?: number;
211
+ session_count?: number;
212
+ user_count?: number;
213
+ size?: number;
214
+ website?: string;
215
+ industry?: string;
216
+ custom_attributes?: Record<string, any>;
217
+ tags?: {
218
+ type: string;
219
+ data: Array<{
220
+ type: string;
221
+ id: string;
222
+ url: string;
223
+ }>;
224
+ };
225
+ }
226
+ /**
227
+ * Intercom Integration Client Interface
228
+ * Provides type-safe methods for all Intercom operations
229
+ */
230
+ export interface IntercomIntegrationClient {
231
+ /**
232
+ * List contacts
233
+ *
234
+ * @example
235
+ * ```typescript
236
+ * const contacts = await client.intercom.listContacts({
237
+ * per_page: 50
238
+ * });
239
+ * ```
240
+ */
241
+ listContacts(params?: {
242
+ /** Number of results per page */
243
+ per_page?: number;
244
+ /** Pagination cursor */
245
+ starting_after?: string;
246
+ }): Promise<MCPToolCallResponse>;
247
+ /**
248
+ * Get contact details
249
+ *
250
+ * @example
251
+ * ```typescript
252
+ * const contact = await client.intercom.getContact({
253
+ * contact_id: "123456"
254
+ * });
255
+ * ```
256
+ */
257
+ getContact(params: {
258
+ /** Contact ID */
259
+ contact_id: string;
260
+ }): Promise<MCPToolCallResponse>;
261
+ /**
262
+ * Create a new contact
263
+ *
264
+ * @example
265
+ * ```typescript
266
+ * const contact = await client.intercom.createContact({
267
+ * email: "user@example.com",
268
+ * name: "John Doe",
269
+ * role: "user"
270
+ * });
271
+ * ```
272
+ */
273
+ createContact(params: {
274
+ /** Contact role */
275
+ role?: "user" | "lead";
276
+ /** External ID */
277
+ external_id?: string;
278
+ /** Email address */
279
+ email?: string;
280
+ /** Phone number */
281
+ phone?: string;
282
+ /** Name */
283
+ name?: string;
284
+ /** Avatar URL */
285
+ avatar?: string;
286
+ /** Signed up timestamp */
287
+ signed_up_at?: number;
288
+ /** Last seen timestamp */
289
+ last_seen_at?: number;
290
+ /** Owner ID */
291
+ owner_id?: number;
292
+ /** Unsubscribe from emails */
293
+ unsubscribed_from_emails?: boolean;
294
+ /** Custom attributes */
295
+ custom_attributes?: Record<string, any>;
296
+ }): Promise<MCPToolCallResponse>;
297
+ /**
298
+ * List conversations
299
+ *
300
+ * @example
301
+ * ```typescript
302
+ * const conversations = await client.intercom.listConversations({
303
+ * per_page: 20
304
+ * });
305
+ * ```
306
+ */
307
+ listConversations(params?: {
308
+ /** Number of results per page */
309
+ per_page?: number;
310
+ /** Pagination cursor */
311
+ starting_after?: string;
312
+ }): Promise<MCPToolCallResponse>;
313
+ /**
314
+ * Get conversation details
315
+ *
316
+ * @example
317
+ * ```typescript
318
+ * const conversation = await client.intercom.getConversation({
319
+ * conversation_id: "123456"
320
+ * });
321
+ * ```
322
+ */
323
+ getConversation(params: {
324
+ /** Conversation ID */
325
+ conversation_id: string;
326
+ }): Promise<MCPToolCallResponse>;
327
+ /**
328
+ * Reply to a conversation
329
+ *
330
+ * @example
331
+ * ```typescript
332
+ * await client.intercom.replyConversation({
333
+ * conversation_id: "123456",
334
+ * message_type: "comment",
335
+ * body: "Thanks for reaching out!"
336
+ * });
337
+ * ```
338
+ */
339
+ replyConversation(params: {
340
+ /** Conversation ID */
341
+ conversation_id: string;
342
+ /** Message type */
343
+ message_type: "comment" | "note";
344
+ /** Reply body */
345
+ body: string;
346
+ /** Admin ID (for assignment) */
347
+ admin_id?: string;
348
+ /** Attachment URLs */
349
+ attachment_urls?: string[];
350
+ }): Promise<MCPToolCallResponse>;
351
+ /**
352
+ * List companies
353
+ *
354
+ * @example
355
+ * ```typescript
356
+ * const companies = await client.intercom.listCompanies({
357
+ * per_page: 50
358
+ * });
359
+ * ```
360
+ */
361
+ listCompanies(params?: {
362
+ /** Number of results per page */
363
+ per_page?: number;
364
+ /** Pagination cursor */
365
+ starting_after?: string;
366
+ }): Promise<MCPToolCallResponse>;
367
+ /**
368
+ * Get company details
369
+ *
370
+ * @example
371
+ * ```typescript
372
+ * const company = await client.intercom.getCompany({
373
+ * company_id: "123456"
374
+ * });
375
+ * ```
376
+ */
377
+ getCompany(params: {
378
+ /** Company ID */
379
+ company_id: string;
380
+ }): Promise<MCPToolCallResponse>;
381
+ /**
382
+ * Search for contacts
383
+ *
384
+ * @example
385
+ * ```typescript
386
+ * const results = await client.intercom.searchContacts({
387
+ * query: {
388
+ * field: "email",
389
+ * operator: "=",
390
+ * value: "user@example.com"
391
+ * }
392
+ * });
393
+ * ```
394
+ */
395
+ searchContacts(params: {
396
+ /** Search query */
397
+ query: {
398
+ /** Field to search */
399
+ field: string;
400
+ /** Operator */
401
+ operator: "=" | "!=" | "IN" | "NIN" | ">" | "<" | "~";
402
+ /** Value */
403
+ value: string | number | boolean | string[];
404
+ };
405
+ /** Pagination */
406
+ pagination?: {
407
+ /** Number of results per page */
408
+ per_page?: number;
409
+ /** Starting after cursor */
410
+ starting_after?: string;
411
+ };
412
+ }): Promise<MCPToolCallResponse>;
413
+ }
414
+ //# sourceMappingURL=intercom-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intercom-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/intercom-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EA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AC,CAAC;CAClC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Intercom Integration
3
+ * Enables Intercom tools with OAuth configuration
4
+ */
5
+ import type { MCPIntegration } from "./types.js";
6
+ /**
7
+ * Intercom integration configuration
8
+ *
9
+ * SERVER-SIDE: Automatically reads INTERCOM_CLIENT_ID and INTERCOM_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 IntercomIntegrationConfig {
14
+ /** Intercom OAuth client ID (defaults to INTERCOM_CLIENT_ID env var) */
15
+ clientId?: string;
16
+ /** Intercom OAuth client secret (defaults to INTERCOM_CLIENT_SECRET env var) */
17
+ clientSecret?: string;
18
+ /** OAuth scopes (Intercom uses app-level permissions, typically empty) */
19
+ scopes?: string[];
20
+ /** OAuth redirect URI */
21
+ redirectUri?: string;
22
+ }
23
+ /**
24
+ * Default Intercom tools that this integration enables
25
+ * These should match the tool names exposed by your MCP server
26
+ */
27
+ declare const INTERCOM_TOOLS: readonly ["intercom_list_contacts", "intercom_get_contact", "intercom_create_contact", "intercom_list_conversations", "intercom_get_conversation", "intercom_reply_conversation", "intercom_list_companies", "intercom_get_company", "intercom_search_contacts"];
28
+ export declare function intercomIntegration(config?: IntercomIntegrationConfig): MCPIntegration<"intercom">;
29
+ /**
30
+ * Export tool names for type inference
31
+ */
32
+ export type IntercomTools = typeof INTERCOM_TOOLS[number];
33
+ /**
34
+ * Export Intercom client types
35
+ */
36
+ export type { IntercomIntegrationClient } from "./intercom-client.js";
37
+ //# sourceMappingURL=intercom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intercom.d.ts","sourceRoot":"","sources":["../../../src/integrations/intercom.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,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,kQAUV,CAAC;AAGX,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,yBAA8B,GAAG,cAAc,CAAC,UAAU,CAAC,CAyBtG;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AAE1D;;GAEG;AACH,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}