integrate-sdk 0.8.30-dev.0 → 0.8.31-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.
Files changed (56) hide show
  1. package/dist/adapters/auto-routes.js +435 -0
  2. package/dist/adapters/index.js +435 -0
  3. package/dist/adapters/nextjs.js +435 -0
  4. package/dist/adapters/node.js +435 -0
  5. package/dist/adapters/svelte-kit.js +435 -0
  6. package/dist/adapters/tanstack-start.js +435 -0
  7. package/dist/index.js +455 -0
  8. package/dist/oauth.js +435 -0
  9. package/dist/server.js +445 -0
  10. package/dist/src/client.d.ts +11 -1
  11. package/dist/src/client.d.ts.map +1 -1
  12. package/dist/src/index.d.ts +20 -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/figma-client.d.ts +327 -0
  19. package/dist/src/integrations/figma-client.d.ts.map +1 -0
  20. package/dist/src/integrations/figma.d.ts +37 -0
  21. package/dist/src/integrations/figma.d.ts.map +1 -0
  22. package/dist/src/integrations/gworkspace-client.d.ts +392 -0
  23. package/dist/src/integrations/gworkspace-client.d.ts.map +1 -0
  24. package/dist/src/integrations/gworkspace.d.ts +37 -0
  25. package/dist/src/integrations/gworkspace.d.ts.map +1 -0
  26. package/dist/src/integrations/hubspot-client.d.ts +367 -0
  27. package/dist/src/integrations/hubspot-client.d.ts.map +1 -0
  28. package/dist/src/integrations/hubspot.d.ts +37 -0
  29. package/dist/src/integrations/hubspot.d.ts.map +1 -0
  30. package/dist/src/integrations/intercom-client.d.ts +414 -0
  31. package/dist/src/integrations/intercom-client.d.ts.map +1 -0
  32. package/dist/src/integrations/intercom.d.ts +37 -0
  33. package/dist/src/integrations/intercom.d.ts.map +1 -0
  34. package/dist/src/integrations/onedrive-client.d.ts +338 -0
  35. package/dist/src/integrations/onedrive-client.d.ts.map +1 -0
  36. package/dist/src/integrations/onedrive.d.ts +37 -0
  37. package/dist/src/integrations/onedrive.d.ts.map +1 -0
  38. package/dist/src/integrations/polar-client.d.ts +297 -0
  39. package/dist/src/integrations/polar-client.d.ts.map +1 -0
  40. package/dist/src/integrations/polar.d.ts +39 -0
  41. package/dist/src/integrations/polar.d.ts.map +1 -0
  42. package/dist/src/integrations/ramp-client.d.ts +341 -0
  43. package/dist/src/integrations/ramp-client.d.ts.map +1 -0
  44. package/dist/src/integrations/ramp.d.ts +39 -0
  45. package/dist/src/integrations/ramp.d.ts.map +1 -0
  46. package/dist/src/integrations/whatsapp-client.d.ts +320 -0
  47. package/dist/src/integrations/whatsapp-client.d.ts.map +1 -0
  48. package/dist/src/integrations/whatsapp.d.ts +39 -0
  49. package/dist/src/integrations/whatsapp.d.ts.map +1 -0
  50. package/dist/src/integrations/youtube-client.d.ts +459 -0
  51. package/dist/src/integrations/youtube-client.d.ts.map +1 -0
  52. package/dist/src/integrations/youtube.d.ts +37 -0
  53. package/dist/src/integrations/youtube.d.ts.map +1 -0
  54. package/dist/src/server.d.ts +10 -0
  55. package/dist/src/server.d.ts.map +1 -1
  56. package/package.json +1 -1
@@ -0,0 +1,338 @@
1
+ /**
2
+ * OneDrive Integration Client Types
3
+ * Fully typed interface for OneDrive integration methods
4
+ */
5
+ import type { MCPToolCallResponse } from "../protocol/messages.js";
6
+ /**
7
+ * OneDrive Drive Item
8
+ */
9
+ export interface OneDriveDriveItem {
10
+ id: string;
11
+ name: string;
12
+ createdDateTime: string;
13
+ lastModifiedDateTime: string;
14
+ size?: number;
15
+ webUrl: string;
16
+ createdBy?: {
17
+ user?: {
18
+ displayName: string;
19
+ email?: string;
20
+ };
21
+ };
22
+ lastModifiedBy?: {
23
+ user?: {
24
+ displayName: string;
25
+ email?: string;
26
+ };
27
+ };
28
+ parentReference?: {
29
+ driveId: string;
30
+ driveType: string;
31
+ id: string;
32
+ path: string;
33
+ };
34
+ file?: {
35
+ mimeType: string;
36
+ hashes?: {
37
+ quickXorHash?: string;
38
+ sha1Hash?: string;
39
+ };
40
+ };
41
+ folder?: {
42
+ childCount: number;
43
+ };
44
+ fileSystemInfo?: {
45
+ createdDateTime: string;
46
+ lastModifiedDateTime: string;
47
+ };
48
+ }
49
+ /**
50
+ * OneDrive Permission
51
+ */
52
+ export interface OneDrivePermission {
53
+ id: string;
54
+ roles: string[];
55
+ link?: {
56
+ type: "view" | "edit" | "embed";
57
+ scope: "anonymous" | "organization";
58
+ webUrl: string;
59
+ };
60
+ grantedTo?: {
61
+ user?: {
62
+ displayName: string;
63
+ email?: string;
64
+ id: string;
65
+ };
66
+ };
67
+ grantedToIdentities?: Array<{
68
+ user?: {
69
+ displayName: string;
70
+ email?: string;
71
+ id: string;
72
+ };
73
+ }>;
74
+ shareId?: string;
75
+ }
76
+ /**
77
+ * OneDrive Word Document Content
78
+ */
79
+ export interface OneDriveWordContent {
80
+ content: string;
81
+ contentType: "text" | "html";
82
+ }
83
+ /**
84
+ * OneDrive Excel Worksheet
85
+ */
86
+ export interface OneDriveExcelWorksheet {
87
+ id: string;
88
+ name: string;
89
+ position: number;
90
+ visibility: "visible" | "hidden" | "veryHidden";
91
+ }
92
+ /**
93
+ * OneDrive Excel Range
94
+ */
95
+ export interface OneDriveExcelRange {
96
+ address: string;
97
+ addressLocal: string;
98
+ cellCount: number;
99
+ columnCount: number;
100
+ rowCount: number;
101
+ columnIndex: number;
102
+ rowIndex: number;
103
+ text?: string[][];
104
+ values?: any[][];
105
+ formulas?: string[][];
106
+ numberFormat?: string[][];
107
+ }
108
+ /**
109
+ * OneDrive PowerPoint Slide
110
+ */
111
+ export interface OneDrivePowerPointSlide {
112
+ id: string;
113
+ slideIndex: number;
114
+ }
115
+ /**
116
+ * OneDrive Integration Client Interface
117
+ * Provides type-safe methods for all OneDrive operations
118
+ */
119
+ export interface OneDriveIntegrationClient {
120
+ /**
121
+ * List files in a folder
122
+ *
123
+ * @example
124
+ * ```typescript
125
+ * const files = await client.onedrive.listFiles({
126
+ * folder_id: "root",
127
+ * order_by: "lastModifiedDateTime desc"
128
+ * });
129
+ * ```
130
+ */
131
+ listFiles(params?: {
132
+ /** Folder ID (default: "root") */
133
+ folder_id?: string;
134
+ /** Filter query */
135
+ filter?: string;
136
+ /** Order by field */
137
+ order_by?: string;
138
+ /** Number of items to return */
139
+ top?: number;
140
+ /** Number of items to skip */
141
+ skip?: number;
142
+ }): Promise<MCPToolCallResponse>;
143
+ /**
144
+ * Get file metadata
145
+ *
146
+ * @example
147
+ * ```typescript
148
+ * const file = await client.onedrive.getFile({
149
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
150
+ * });
151
+ * ```
152
+ */
153
+ getFile(params: {
154
+ /** File ID */
155
+ file_id: string;
156
+ }): Promise<MCPToolCallResponse>;
157
+ /**
158
+ * Download file content
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * const content = await client.onedrive.downloadFile({
163
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
164
+ * });
165
+ * ```
166
+ */
167
+ downloadFile(params: {
168
+ /** File ID */
169
+ file_id: string;
170
+ }): Promise<MCPToolCallResponse>;
171
+ /**
172
+ * Upload a file
173
+ *
174
+ * @example
175
+ * ```typescript
176
+ * const file = await client.onedrive.uploadFile({
177
+ * folder_id: "root",
178
+ * file_name: "document.txt",
179
+ * content: "Hello, World!",
180
+ * conflict_behavior: "rename"
181
+ * });
182
+ * ```
183
+ */
184
+ uploadFile(params: {
185
+ /** Parent folder ID (default: "root") */
186
+ folder_id?: string;
187
+ /** File name */
188
+ file_name: string;
189
+ /** File content (base64 encoded for binary files) */
190
+ content: string;
191
+ /** Conflict behavior */
192
+ conflict_behavior?: "rename" | "replace" | "fail";
193
+ }): Promise<MCPToolCallResponse>;
194
+ /**
195
+ * Delete a file
196
+ *
197
+ * @example
198
+ * ```typescript
199
+ * await client.onedrive.deleteFile({
200
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
201
+ * });
202
+ * ```
203
+ */
204
+ deleteFile(params: {
205
+ /** File ID */
206
+ file_id: string;
207
+ }): Promise<MCPToolCallResponse>;
208
+ /**
209
+ * Search for files
210
+ *
211
+ * @example
212
+ * ```typescript
213
+ * const results = await client.onedrive.searchFiles({
214
+ * query: "presentation",
215
+ * top: 20
216
+ * });
217
+ * ```
218
+ */
219
+ searchFiles(params: {
220
+ /** Search query */
221
+ query: string;
222
+ /** Number of items to return */
223
+ top?: number;
224
+ }): Promise<MCPToolCallResponse>;
225
+ /**
226
+ * Create a sharing link
227
+ *
228
+ * @example
229
+ * ```typescript
230
+ * const permission = await client.onedrive.shareFile({
231
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
232
+ * type: "view",
233
+ * scope: "anonymous"
234
+ * });
235
+ * ```
236
+ */
237
+ shareFile(params: {
238
+ /** File ID */
239
+ file_id: string;
240
+ /** Link type */
241
+ type: "view" | "edit" | "embed";
242
+ /** Link scope */
243
+ scope: "anonymous" | "organization";
244
+ /** Expiration date (ISO 8601) */
245
+ expiration_date_time?: string;
246
+ /** Password protection */
247
+ password?: string;
248
+ }): Promise<MCPToolCallResponse>;
249
+ /**
250
+ * Get Word document content
251
+ *
252
+ * @example
253
+ * ```typescript
254
+ * const content = await client.onedrive.wordGetContent({
255
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
256
+ * format: "text"
257
+ * });
258
+ * ```
259
+ */
260
+ wordGetContent(params: {
261
+ /** Word document file ID */
262
+ file_id: string;
263
+ /** Content format */
264
+ format?: "text" | "html";
265
+ }): Promise<MCPToolCallResponse>;
266
+ /**
267
+ * Get Excel worksheets
268
+ *
269
+ * @example
270
+ * ```typescript
271
+ * const worksheets = await client.onedrive.excelGetWorksheets({
272
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
273
+ * });
274
+ * ```
275
+ */
276
+ excelGetWorksheets(params: {
277
+ /** Excel file ID */
278
+ file_id: string;
279
+ }): Promise<MCPToolCallResponse>;
280
+ /**
281
+ * Get Excel range data
282
+ *
283
+ * @example
284
+ * ```typescript
285
+ * const range = await client.onedrive.excelGetRange({
286
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
287
+ * worksheet_name: "Sheet1",
288
+ * range_address: "A1:B10"
289
+ * });
290
+ * ```
291
+ */
292
+ excelGetRange(params: {
293
+ /** Excel file ID */
294
+ file_id: string;
295
+ /** Worksheet name or ID */
296
+ worksheet_name: string;
297
+ /** Range address (e.g., "A1:B10") */
298
+ range_address: string;
299
+ }): Promise<MCPToolCallResponse>;
300
+ /**
301
+ * Update Excel range data
302
+ *
303
+ * @example
304
+ * ```typescript
305
+ * await client.onedrive.excelUpdateRange({
306
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
307
+ * worksheet_name: "Sheet1",
308
+ * range_address: "A1:B2",
309
+ * values: [["Name", "Age"], ["John", 30]]
310
+ * });
311
+ * ```
312
+ */
313
+ excelUpdateRange(params: {
314
+ /** Excel file ID */
315
+ file_id: string;
316
+ /** Worksheet name or ID */
317
+ worksheet_name: string;
318
+ /** Range address (e.g., "A1:B10") */
319
+ range_address: string;
320
+ /** Values to set */
321
+ values: any[][];
322
+ }): Promise<MCPToolCallResponse>;
323
+ /**
324
+ * Get PowerPoint slides
325
+ *
326
+ * @example
327
+ * ```typescript
328
+ * const slides = await client.onedrive.powerpointGetSlides({
329
+ * file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
330
+ * });
331
+ * ```
332
+ */
333
+ powerpointGetSlides(params: {
334
+ /** PowerPoint file ID */
335
+ file_id: string;
336
+ }): Promise<MCPToolCallResponse>;
337
+ }
338
+ //# sourceMappingURL=onedrive-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onedrive-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/onedrive-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAA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ACvB,qCAAqC;QACrC,aAAa,EAAE,MAAM,CAAC;QACtB,oBAAoB;QACpB,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;KACjB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,mBAAmB,CAAC,MAAM,EAAE;QAC1B,yBAAyB;QACzB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * OneDrive Integration
3
+ * Enables OneDrive tools with OAuth configuration
4
+ */
5
+ import type { MCPIntegration } from "./types.js";
6
+ /**
7
+ * OneDrive integration configuration
8
+ *
9
+ * SERVER-SIDE: Automatically reads ONEDRIVE_CLIENT_ID and ONEDRIVE_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 OneDriveIntegrationConfig {
14
+ /** OneDrive OAuth client ID (defaults to ONEDRIVE_CLIENT_ID env var) */
15
+ clientId?: string;
16
+ /** OneDrive OAuth client secret (defaults to ONEDRIVE_CLIENT_SECRET env var) */
17
+ clientSecret?: string;
18
+ /** Additional OAuth scopes (default: ['Files.Read', 'Files.ReadWrite', 'offline_access']) */
19
+ scopes?: string[];
20
+ /** OAuth redirect URI */
21
+ redirectUri?: string;
22
+ }
23
+ /**
24
+ * Default OneDrive tools that this integration enables
25
+ * These should match the tool names exposed by your MCP server
26
+ */
27
+ declare const ONEDRIVE_TOOLS: readonly ["onedrive_list_files", "onedrive_get_file", "onedrive_download_file", "onedrive_upload_file", "onedrive_delete_file", "onedrive_search_files", "onedrive_share_file", "onedrive_word_get_content", "onedrive_excel_get_worksheets", "onedrive_excel_get_range", "onedrive_excel_update_range", "onedrive_powerpoint_get_slides"];
28
+ export declare function onedriveIntegration(config?: OneDriveIntegrationConfig): MCPIntegration<"onedrive">;
29
+ /**
30
+ * Export tool names for type inference
31
+ */
32
+ export type OneDriveTools = typeof ONEDRIVE_TOOLS[number];
33
+ /**
34
+ * Export OneDrive client types
35
+ */
36
+ export type { OneDriveIntegrationClient } from "./onedrive-client.js";
37
+ //# sourceMappingURL=onedrive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onedrive.d.ts","sourceRoot":"","sources":["../../../src/integrations/onedrive.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,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,4UAaV,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"}
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Polar Integration Client Types
3
+ * Fully typed interface for Polar integration methods
4
+ */
5
+ import type { MCPToolCallResponse } from "../protocol/messages.js";
6
+ /**
7
+ * Polar Product
8
+ */
9
+ export interface PolarProduct {
10
+ id: string;
11
+ name: string;
12
+ description?: string;
13
+ is_recurring: boolean;
14
+ is_archived: boolean;
15
+ organization_id: string;
16
+ prices: Array<{
17
+ id: string;
18
+ created_at: string;
19
+ modified_at?: string;
20
+ amount_type: "fixed" | "custom";
21
+ price_amount?: number;
22
+ price_currency?: string;
23
+ recurring_interval?: "month" | "year";
24
+ }>;
25
+ benefits: Array<{
26
+ id: string;
27
+ type: string;
28
+ description: string;
29
+ }>;
30
+ medias: Array<{
31
+ id: string;
32
+ organization_id: string;
33
+ name: string;
34
+ path: string;
35
+ mime_type: string;
36
+ size: number;
37
+ public_url: string;
38
+ }>;
39
+ created_at: string;
40
+ modified_at?: string;
41
+ }
42
+ /**
43
+ * Polar Subscription
44
+ */
45
+ export interface PolarSubscription {
46
+ id: string;
47
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
48
+ current_period_start: string;
49
+ current_period_end?: string;
50
+ cancel_at_period_end: boolean;
51
+ started_at?: string;
52
+ ended_at?: string;
53
+ customer_id: string;
54
+ product_id: string;
55
+ price_id: string;
56
+ created_at: string;
57
+ modified_at?: string;
58
+ user_id: string;
59
+ product: {
60
+ id: string;
61
+ name: string;
62
+ };
63
+ price: {
64
+ id: string;
65
+ price_amount?: number;
66
+ price_currency?: string;
67
+ recurring_interval?: "month" | "year";
68
+ };
69
+ }
70
+ /**
71
+ * Polar Customer
72
+ */
73
+ export interface PolarCustomer {
74
+ id: string;
75
+ email: string;
76
+ email_verified: boolean;
77
+ name?: string;
78
+ billing_address?: {
79
+ country: string;
80
+ };
81
+ tax_id?: string;
82
+ organization_id?: string;
83
+ created_at: string;
84
+ modified_at?: string;
85
+ }
86
+ /**
87
+ * Polar Order
88
+ */
89
+ export interface PolarOrder {
90
+ id: string;
91
+ amount: number;
92
+ tax_amount: number;
93
+ currency: string;
94
+ billing_reason: string;
95
+ customer_id: string;
96
+ product_id: string;
97
+ product_price_id: string;
98
+ subscription_id?: string;
99
+ created_at: string;
100
+ user_id: string;
101
+ product: {
102
+ id: string;
103
+ name: string;
104
+ };
105
+ product_price: {
106
+ id: string;
107
+ price_amount?: number;
108
+ price_currency?: string;
109
+ };
110
+ }
111
+ /**
112
+ * Polar Benefit
113
+ */
114
+ export interface PolarBenefit {
115
+ id: string;
116
+ type: "custom" | "articles" | "discord" | "github_repository" | "downloadables" | "license_keys";
117
+ description: string;
118
+ selectable: boolean;
119
+ deletable: boolean;
120
+ organization_id: string;
121
+ properties: Record<string, any>;
122
+ created_at: string;
123
+ modified_at?: string;
124
+ }
125
+ /**
126
+ * Polar Integration Client Interface
127
+ * Provides type-safe methods for all Polar operations
128
+ */
129
+ export interface PolarIntegrationClient {
130
+ /**
131
+ * List products
132
+ *
133
+ * @example
134
+ * ```typescript
135
+ * const products = await client.polar.listProducts({
136
+ * organization_id: "org_123",
137
+ * limit: 10
138
+ * });
139
+ * ```
140
+ */
141
+ listProducts(params?: {
142
+ /** Organization ID */
143
+ organization_id?: string;
144
+ /** Include archived products */
145
+ is_archived?: boolean;
146
+ /** Number of products to return */
147
+ limit?: number;
148
+ /** Pagination cursor */
149
+ page?: number;
150
+ }): Promise<MCPToolCallResponse>;
151
+ /**
152
+ * Get product details
153
+ *
154
+ * @example
155
+ * ```typescript
156
+ * const product = await client.polar.getProduct({
157
+ * product_id: "prod_123"
158
+ * });
159
+ * ```
160
+ */
161
+ getProduct(params: {
162
+ /** Product ID */
163
+ product_id: string;
164
+ }): Promise<MCPToolCallResponse>;
165
+ /**
166
+ * List subscriptions
167
+ *
168
+ * @example
169
+ * ```typescript
170
+ * const subscriptions = await client.polar.listSubscriptions({
171
+ * organization_id: "org_123",
172
+ * status: "active",
173
+ * limit: 50
174
+ * });
175
+ * ```
176
+ */
177
+ listSubscriptions(params?: {
178
+ /** Organization ID */
179
+ organization_id?: string;
180
+ /** Product ID */
181
+ product_id?: string;
182
+ /** Filter by status */
183
+ status?: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
184
+ /** Number of subscriptions to return */
185
+ limit?: number;
186
+ /** Pagination cursor */
187
+ page?: number;
188
+ }): Promise<MCPToolCallResponse>;
189
+ /**
190
+ * Get subscription details
191
+ *
192
+ * @example
193
+ * ```typescript
194
+ * const subscription = await client.polar.getSubscription({
195
+ * subscription_id: "sub_123"
196
+ * });
197
+ * ```
198
+ */
199
+ getSubscription(params: {
200
+ /** Subscription ID */
201
+ subscription_id: string;
202
+ }): Promise<MCPToolCallResponse>;
203
+ /**
204
+ * List customers
205
+ *
206
+ * @example
207
+ * ```typescript
208
+ * const customers = await client.polar.listCustomers({
209
+ * organization_id: "org_123",
210
+ * limit: 50
211
+ * });
212
+ * ```
213
+ */
214
+ listCustomers(params?: {
215
+ /** Organization ID */
216
+ organization_id?: string;
217
+ /** Filter by email */
218
+ email?: string;
219
+ /** Number of customers to return */
220
+ limit?: number;
221
+ /** Pagination cursor */
222
+ page?: number;
223
+ }): Promise<MCPToolCallResponse>;
224
+ /**
225
+ * Get customer details
226
+ *
227
+ * @example
228
+ * ```typescript
229
+ * const customer = await client.polar.getCustomer({
230
+ * customer_id: "cus_123"
231
+ * });
232
+ * ```
233
+ */
234
+ getCustomer(params: {
235
+ /** Customer ID */
236
+ customer_id: string;
237
+ }): Promise<MCPToolCallResponse>;
238
+ /**
239
+ * List orders
240
+ *
241
+ * @example
242
+ * ```typescript
243
+ * const orders = await client.polar.listOrders({
244
+ * organization_id: "org_123",
245
+ * limit: 50
246
+ * });
247
+ * ```
248
+ */
249
+ listOrders(params?: {
250
+ /** Organization ID */
251
+ organization_id?: string;
252
+ /** Product ID */
253
+ product_id?: string;
254
+ /** Customer ID */
255
+ customer_id?: string;
256
+ /** Number of orders to return */
257
+ limit?: number;
258
+ /** Pagination cursor */
259
+ page?: number;
260
+ }): Promise<MCPToolCallResponse>;
261
+ /**
262
+ * Get order details
263
+ *
264
+ * @example
265
+ * ```typescript
266
+ * const order = await client.polar.getOrder({
267
+ * order_id: "ord_123"
268
+ * });
269
+ * ```
270
+ */
271
+ getOrder(params: {
272
+ /** Order ID */
273
+ order_id: string;
274
+ }): Promise<MCPToolCallResponse>;
275
+ /**
276
+ * List benefits
277
+ *
278
+ * @example
279
+ * ```typescript
280
+ * const benefits = await client.polar.listBenefits({
281
+ * organization_id: "org_123",
282
+ * limit: 50
283
+ * });
284
+ * ```
285
+ */
286
+ listBenefits(params?: {
287
+ /** Organization ID */
288
+ organization_id?: string;
289
+ /** Filter by type */
290
+ type?: "custom" | "articles" | "discord" | "github_repository" | "downloadables" | "license_keys";
291
+ /** Number of benefits to return */
292
+ limit?: number;
293
+ /** Pagination cursor */
294
+ page?: number;
295
+ }): Promise<MCPToolCallResponse>;
296
+ }
297
+ //# sourceMappingURL=polar-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polar-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/polar-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC;QAChC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;KACvC,CAAC,CAAC;IACH,QAAQ,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;IACH,MAAM,EAAE,KAAK,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,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