integrate-sdk 0.8.58-dev.0 → 0.8.59-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.
@@ -2717,7 +2717,33 @@ var init_notion = __esm(() => {
2717
2717
  logger8 = createLogger("Notion");
2718
2718
  NOTION_TOOLS = [
2719
2719
  "notion_search",
2720
- "notion_get_page"
2720
+ "notion_get_page",
2721
+ "notion_create_page",
2722
+ "notion_update_page",
2723
+ "notion_get_page_property",
2724
+ "notion_get_database",
2725
+ "notion_query_database",
2726
+ "notion_create_database",
2727
+ "notion_update_database",
2728
+ "notion_get_block",
2729
+ "notion_get_block_children",
2730
+ "notion_append_blocks",
2731
+ "notion_update_block",
2732
+ "notion_delete_block",
2733
+ "notion_get_user",
2734
+ "notion_get_current_user",
2735
+ "notion_list_users",
2736
+ "notion_create_comment",
2737
+ "notion_list_comments",
2738
+ "notion_move_page",
2739
+ "notion_create_file_upload",
2740
+ "notion_send_file_upload",
2741
+ "notion_complete_file_upload",
2742
+ "notion_get_file_upload",
2743
+ "notion_create_data_source",
2744
+ "notion_get_data_source",
2745
+ "notion_update_data_source",
2746
+ "notion_query_data_source"
2721
2747
  ];
2722
2748
  });
2723
2749
 
@@ -2717,7 +2717,33 @@ var init_notion = __esm(() => {
2717
2717
  logger8 = createLogger("Notion");
2718
2718
  NOTION_TOOLS = [
2719
2719
  "notion_search",
2720
- "notion_get_page"
2720
+ "notion_get_page",
2721
+ "notion_create_page",
2722
+ "notion_update_page",
2723
+ "notion_get_page_property",
2724
+ "notion_get_database",
2725
+ "notion_query_database",
2726
+ "notion_create_database",
2727
+ "notion_update_database",
2728
+ "notion_get_block",
2729
+ "notion_get_block_children",
2730
+ "notion_append_blocks",
2731
+ "notion_update_block",
2732
+ "notion_delete_block",
2733
+ "notion_get_user",
2734
+ "notion_get_current_user",
2735
+ "notion_list_users",
2736
+ "notion_create_comment",
2737
+ "notion_list_comments",
2738
+ "notion_move_page",
2739
+ "notion_create_file_upload",
2740
+ "notion_send_file_upload",
2741
+ "notion_complete_file_upload",
2742
+ "notion_get_file_upload",
2743
+ "notion_create_data_source",
2744
+ "notion_get_data_source",
2745
+ "notion_update_data_source",
2746
+ "notion_query_data_source"
2721
2747
  ];
2722
2748
  });
2723
2749
 
@@ -2717,7 +2717,33 @@ var init_notion = __esm(() => {
2717
2717
  logger8 = createLogger("Notion");
2718
2718
  NOTION_TOOLS = [
2719
2719
  "notion_search",
2720
- "notion_get_page"
2720
+ "notion_get_page",
2721
+ "notion_create_page",
2722
+ "notion_update_page",
2723
+ "notion_get_page_property",
2724
+ "notion_get_database",
2725
+ "notion_query_database",
2726
+ "notion_create_database",
2727
+ "notion_update_database",
2728
+ "notion_get_block",
2729
+ "notion_get_block_children",
2730
+ "notion_append_blocks",
2731
+ "notion_update_block",
2732
+ "notion_delete_block",
2733
+ "notion_get_user",
2734
+ "notion_get_current_user",
2735
+ "notion_list_users",
2736
+ "notion_create_comment",
2737
+ "notion_list_comments",
2738
+ "notion_move_page",
2739
+ "notion_create_file_upload",
2740
+ "notion_send_file_upload",
2741
+ "notion_complete_file_upload",
2742
+ "notion_get_file_upload",
2743
+ "notion_create_data_source",
2744
+ "notion_get_data_source",
2745
+ "notion_update_data_source",
2746
+ "notion_query_data_source"
2721
2747
  ];
2722
2748
  });
2723
2749
 
@@ -2717,7 +2717,33 @@ var init_notion = __esm(() => {
2717
2717
  logger8 = createLogger("Notion");
2718
2718
  NOTION_TOOLS = [
2719
2719
  "notion_search",
2720
- "notion_get_page"
2720
+ "notion_get_page",
2721
+ "notion_create_page",
2722
+ "notion_update_page",
2723
+ "notion_get_page_property",
2724
+ "notion_get_database",
2725
+ "notion_query_database",
2726
+ "notion_create_database",
2727
+ "notion_update_database",
2728
+ "notion_get_block",
2729
+ "notion_get_block_children",
2730
+ "notion_append_blocks",
2731
+ "notion_update_block",
2732
+ "notion_delete_block",
2733
+ "notion_get_user",
2734
+ "notion_get_current_user",
2735
+ "notion_list_users",
2736
+ "notion_create_comment",
2737
+ "notion_list_comments",
2738
+ "notion_move_page",
2739
+ "notion_create_file_upload",
2740
+ "notion_send_file_upload",
2741
+ "notion_complete_file_upload",
2742
+ "notion_get_file_upload",
2743
+ "notion_create_data_source",
2744
+ "notion_get_data_source",
2745
+ "notion_update_data_source",
2746
+ "notion_query_data_source"
2721
2747
  ];
2722
2748
  });
2723
2749
 
@@ -2717,7 +2717,33 @@ var init_notion = __esm(() => {
2717
2717
  logger8 = createLogger("Notion");
2718
2718
  NOTION_TOOLS = [
2719
2719
  "notion_search",
2720
- "notion_get_page"
2720
+ "notion_get_page",
2721
+ "notion_create_page",
2722
+ "notion_update_page",
2723
+ "notion_get_page_property",
2724
+ "notion_get_database",
2725
+ "notion_query_database",
2726
+ "notion_create_database",
2727
+ "notion_update_database",
2728
+ "notion_get_block",
2729
+ "notion_get_block_children",
2730
+ "notion_append_blocks",
2731
+ "notion_update_block",
2732
+ "notion_delete_block",
2733
+ "notion_get_user",
2734
+ "notion_get_current_user",
2735
+ "notion_list_users",
2736
+ "notion_create_comment",
2737
+ "notion_list_comments",
2738
+ "notion_move_page",
2739
+ "notion_create_file_upload",
2740
+ "notion_send_file_upload",
2741
+ "notion_complete_file_upload",
2742
+ "notion_get_file_upload",
2743
+ "notion_create_data_source",
2744
+ "notion_get_data_source",
2745
+ "notion_update_data_source",
2746
+ "notion_query_data_source"
2721
2747
  ];
2722
2748
  });
2723
2749
 
@@ -2717,7 +2717,33 @@ var init_notion = __esm(() => {
2717
2717
  logger8 = createLogger("Notion");
2718
2718
  NOTION_TOOLS = [
2719
2719
  "notion_search",
2720
- "notion_get_page"
2720
+ "notion_get_page",
2721
+ "notion_create_page",
2722
+ "notion_update_page",
2723
+ "notion_get_page_property",
2724
+ "notion_get_database",
2725
+ "notion_query_database",
2726
+ "notion_create_database",
2727
+ "notion_update_database",
2728
+ "notion_get_block",
2729
+ "notion_get_block_children",
2730
+ "notion_append_blocks",
2731
+ "notion_update_block",
2732
+ "notion_delete_block",
2733
+ "notion_get_user",
2734
+ "notion_get_current_user",
2735
+ "notion_list_users",
2736
+ "notion_create_comment",
2737
+ "notion_list_comments",
2738
+ "notion_move_page",
2739
+ "notion_create_file_upload",
2740
+ "notion_send_file_upload",
2741
+ "notion_complete_file_upload",
2742
+ "notion_get_file_upload",
2743
+ "notion_create_data_source",
2744
+ "notion_get_data_source",
2745
+ "notion_update_data_source",
2746
+ "notion_query_data_source"
2721
2747
  ];
2722
2748
  });
2723
2749
 
package/dist/index.js CHANGED
@@ -3108,7 +3108,33 @@ var init_notion = __esm(() => {
3108
3108
  logger9 = createLogger("Notion");
3109
3109
  NOTION_TOOLS = [
3110
3110
  "notion_search",
3111
- "notion_get_page"
3111
+ "notion_get_page",
3112
+ "notion_create_page",
3113
+ "notion_update_page",
3114
+ "notion_get_page_property",
3115
+ "notion_get_database",
3116
+ "notion_query_database",
3117
+ "notion_create_database",
3118
+ "notion_update_database",
3119
+ "notion_get_block",
3120
+ "notion_get_block_children",
3121
+ "notion_append_blocks",
3122
+ "notion_update_block",
3123
+ "notion_delete_block",
3124
+ "notion_get_user",
3125
+ "notion_get_current_user",
3126
+ "notion_list_users",
3127
+ "notion_create_comment",
3128
+ "notion_list_comments",
3129
+ "notion_move_page",
3130
+ "notion_create_file_upload",
3131
+ "notion_send_file_upload",
3132
+ "notion_complete_file_upload",
3133
+ "notion_get_file_upload",
3134
+ "notion_create_data_source",
3135
+ "notion_get_data_source",
3136
+ "notion_update_data_source",
3137
+ "notion_query_data_source"
3112
3138
  ];
3113
3139
  });
3114
3140
 
package/dist/oauth.js CHANGED
@@ -2930,7 +2930,33 @@ var init_notion = __esm(() => {
2930
2930
  logger9 = createLogger("Notion");
2931
2931
  NOTION_TOOLS = [
2932
2932
  "notion_search",
2933
- "notion_get_page"
2933
+ "notion_get_page",
2934
+ "notion_create_page",
2935
+ "notion_update_page",
2936
+ "notion_get_page_property",
2937
+ "notion_get_database",
2938
+ "notion_query_database",
2939
+ "notion_create_database",
2940
+ "notion_update_database",
2941
+ "notion_get_block",
2942
+ "notion_get_block_children",
2943
+ "notion_append_blocks",
2944
+ "notion_update_block",
2945
+ "notion_delete_block",
2946
+ "notion_get_user",
2947
+ "notion_get_current_user",
2948
+ "notion_list_users",
2949
+ "notion_create_comment",
2950
+ "notion_list_comments",
2951
+ "notion_move_page",
2952
+ "notion_create_file_upload",
2953
+ "notion_send_file_upload",
2954
+ "notion_complete_file_upload",
2955
+ "notion_get_file_upload",
2956
+ "notion_create_data_source",
2957
+ "notion_get_data_source",
2958
+ "notion_update_data_source",
2959
+ "notion_query_data_source"
2934
2960
  ];
2935
2961
  });
2936
2962
 
package/dist/server.js CHANGED
@@ -3509,7 +3509,33 @@ var init_notion = __esm(() => {
3509
3509
  logger10 = createLogger("Notion");
3510
3510
  NOTION_TOOLS = [
3511
3511
  "notion_search",
3512
- "notion_get_page"
3512
+ "notion_get_page",
3513
+ "notion_create_page",
3514
+ "notion_update_page",
3515
+ "notion_get_page_property",
3516
+ "notion_get_database",
3517
+ "notion_query_database",
3518
+ "notion_create_database",
3519
+ "notion_update_database",
3520
+ "notion_get_block",
3521
+ "notion_get_block_children",
3522
+ "notion_append_blocks",
3523
+ "notion_update_block",
3524
+ "notion_delete_block",
3525
+ "notion_get_user",
3526
+ "notion_get_current_user",
3527
+ "notion_list_users",
3528
+ "notion_create_comment",
3529
+ "notion_list_comments",
3530
+ "notion_move_page",
3531
+ "notion_create_file_upload",
3532
+ "notion_send_file_upload",
3533
+ "notion_complete_file_upload",
3534
+ "notion_get_file_upload",
3535
+ "notion_create_data_source",
3536
+ "notion_get_data_source",
3537
+ "notion_update_data_source",
3538
+ "notion_query_data_source"
3513
3539
  ];
3514
3540
  });
3515
3541
 
@@ -3,6 +3,32 @@
3
3
  * Fully typed interface for Notion integration methods
4
4
  */
5
5
  import type { MCPToolCallResponse } from "../protocol/messages.js";
6
+ /**
7
+ * Notion Rich Text Object
8
+ */
9
+ export interface NotionRichText {
10
+ type: "text" | "mention" | "equation";
11
+ text?: {
12
+ content: string;
13
+ link?: {
14
+ url: string;
15
+ } | null;
16
+ };
17
+ mention?: Record<string, any>;
18
+ equation?: {
19
+ expression: string;
20
+ };
21
+ annotations?: {
22
+ bold: boolean;
23
+ italic: boolean;
24
+ strikethrough: boolean;
25
+ underline: boolean;
26
+ code: boolean;
27
+ color: string;
28
+ };
29
+ plain_text: string;
30
+ href?: string | null;
31
+ }
6
32
  /**
7
33
  * Notion Page Object
8
34
  */
@@ -52,19 +78,8 @@ export interface NotionDatabase {
52
78
  id: string;
53
79
  created_time: string;
54
80
  last_edited_time: string;
55
- title: Array<{
56
- type: "text";
57
- text: {
58
- content: string;
59
- link?: {
60
- url: string;
61
- } | null;
62
- };
63
- annotations?: any;
64
- plain_text: string;
65
- href?: string | null;
66
- }>;
67
- description: Array<any>;
81
+ title: Array<NotionRichText>;
82
+ description: Array<NotionRichText>;
68
83
  icon?: {
69
84
  type: "emoji" | "external" | "file";
70
85
  emoji?: string;
@@ -100,6 +115,64 @@ export interface NotionDatabase {
100
115
  url: string;
101
116
  archived: boolean;
102
117
  }
118
+ /**
119
+ * Notion Block Object
120
+ */
121
+ export interface NotionBlock {
122
+ id: string;
123
+ type: string;
124
+ created_time: string;
125
+ last_edited_time: string;
126
+ has_children: boolean;
127
+ archived: boolean;
128
+ parent: {
129
+ type: "database_id";
130
+ database_id: string;
131
+ } | {
132
+ type: "page_id";
133
+ page_id: string;
134
+ } | {
135
+ type: "block_id";
136
+ block_id: string;
137
+ } | {
138
+ type: "workspace";
139
+ workspace: true;
140
+ };
141
+ [key: string]: any;
142
+ }
143
+ /**
144
+ * Notion User Object
145
+ */
146
+ export interface NotionUser {
147
+ id: string;
148
+ type: "person" | "bot";
149
+ name?: string;
150
+ avatar_url?: string;
151
+ person?: {
152
+ email: string;
153
+ };
154
+ bot?: Record<string, any>;
155
+ }
156
+ /**
157
+ * Notion Comment Object
158
+ */
159
+ export interface NotionComment {
160
+ id: string;
161
+ parent: {
162
+ type: "page_id";
163
+ page_id: string;
164
+ } | {
165
+ type: "block_id";
166
+ block_id: string;
167
+ };
168
+ discussion_id: string;
169
+ created_time: string;
170
+ last_edited_time: string;
171
+ created_by: {
172
+ id: string;
173
+ };
174
+ rich_text: Array<NotionRichText>;
175
+ }
103
176
  /**
104
177
  * Notion Search Result
105
178
  */
@@ -112,6 +185,45 @@ export interface NotionSearchResult {
112
185
  url: string;
113
186
  [key: string]: any;
114
187
  }
188
+ /**
189
+ * Notion File Upload Object
190
+ */
191
+ export interface NotionFileUpload {
192
+ id: string;
193
+ status: "uploaded" | "importing" | "ready" | "failed";
194
+ filename: string;
195
+ content_type?: string;
196
+ created_time: string;
197
+ [key: string]: any;
198
+ }
199
+ /**
200
+ * Notion Data Source Object
201
+ */
202
+ export interface NotionDataSource {
203
+ id: string;
204
+ title: Array<NotionRichText>;
205
+ description?: Array<NotionRichText>;
206
+ icon?: {
207
+ type: "emoji" | "external" | "file";
208
+ emoji?: string;
209
+ external?: {
210
+ url: string;
211
+ };
212
+ file?: {
213
+ url: string;
214
+ expiry_time: string;
215
+ };
216
+ };
217
+ properties: Record<string, any>;
218
+ parent: {
219
+ type: "page_id";
220
+ page_id: string;
221
+ };
222
+ created_time: string;
223
+ last_edited_time: string;
224
+ archived: boolean;
225
+ in_trash: boolean;
226
+ }
115
227
  /**
116
228
  * Notion Integration Client Interface
117
229
  * Provides type-safe methods for all Notion operations
@@ -149,13 +261,6 @@ export interface NotionIntegrationClient {
149
261
  }): Promise<MCPToolCallResponse>;
150
262
  /**
151
263
  * Retrieve a Notion page by ID
152
- *
153
- * @example
154
- * ```typescript
155
- * const page = await client.notion.getPage({
156
- * page_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
157
- * });
158
- * ```
159
264
  */
160
265
  getPage(params: {
161
266
  /** The ID of the page to retrieve */
@@ -163,5 +268,381 @@ export interface NotionIntegrationClient {
163
268
  /** Filter the properties returned (optional) */
164
269
  filter_properties?: string[];
165
270
  }): Promise<MCPToolCallResponse>;
271
+ /**
272
+ * Create a new page under a page or database parent
273
+ */
274
+ createPage(params: {
275
+ /** Parent page or database */
276
+ parent: {
277
+ page_id: string;
278
+ } | {
279
+ database_id: string;
280
+ };
281
+ /** Page properties (required for database parents) */
282
+ properties: Record<string, any>;
283
+ /** Page content as block children (JSON) */
284
+ children?: Record<string, any>[];
285
+ /** Page icon */
286
+ icon?: {
287
+ type: "emoji";
288
+ emoji: string;
289
+ } | {
290
+ type: "external";
291
+ external: {
292
+ url: string;
293
+ };
294
+ };
295
+ /** Page cover image */
296
+ cover?: {
297
+ type: "external";
298
+ external: {
299
+ url: string;
300
+ };
301
+ };
302
+ }): Promise<MCPToolCallResponse>;
303
+ /**
304
+ * Update a page's properties, icon, cover, or archive status
305
+ */
306
+ updatePage(params: {
307
+ /** The ID of the page to update */
308
+ page_id: string;
309
+ /** Properties to update */
310
+ properties?: Record<string, any>;
311
+ /** Update the page icon */
312
+ icon?: {
313
+ type: "emoji";
314
+ emoji: string;
315
+ } | {
316
+ type: "external";
317
+ external: {
318
+ url: string;
319
+ };
320
+ } | null;
321
+ /** Update the page cover */
322
+ cover?: {
323
+ type: "external";
324
+ external: {
325
+ url: string;
326
+ };
327
+ } | null;
328
+ /** Archive or unarchive the page */
329
+ archived?: boolean;
330
+ }): Promise<MCPToolCallResponse>;
331
+ /**
332
+ * Get a specific property value from a page with pagination support
333
+ */
334
+ getPageProperty(params: {
335
+ /** The ID of the page */
336
+ page_id: string;
337
+ /** The ID of the property to retrieve */
338
+ property_id: string;
339
+ /** Start cursor for pagination */
340
+ start_cursor?: string;
341
+ /** Page size for pagination */
342
+ page_size?: number;
343
+ }): Promise<MCPToolCallResponse>;
344
+ /**
345
+ * Get a database by ID including its schema
346
+ */
347
+ getDatabase(params: {
348
+ /** The ID of the database to retrieve */
349
+ database_id: string;
350
+ }): Promise<MCPToolCallResponse>;
351
+ /**
352
+ * Query a database with filters, sorts, and pagination
353
+ */
354
+ queryDatabase(params: {
355
+ /** The ID of the database to query */
356
+ database_id: string;
357
+ /** Filter conditions (JSON) */
358
+ filter?: Record<string, any>;
359
+ /** Sort conditions */
360
+ sorts?: Array<{
361
+ property?: string;
362
+ timestamp?: "created_time" | "last_edited_time";
363
+ direction: "ascending" | "descending";
364
+ }>;
365
+ /** Start cursor for pagination */
366
+ start_cursor?: string;
367
+ /** Page size for pagination */
368
+ page_size?: number;
369
+ }): Promise<MCPToolCallResponse>;
370
+ /**
371
+ * Create a new database under a parent page
372
+ */
373
+ createDatabase(params: {
374
+ /** Parent page for the database */
375
+ parent: {
376
+ page_id: string;
377
+ };
378
+ /** Database title */
379
+ title: Array<{
380
+ text: {
381
+ content: string;
382
+ };
383
+ }>;
384
+ /** Database property schema */
385
+ properties: Record<string, any>;
386
+ }): Promise<MCPToolCallResponse>;
387
+ /**
388
+ * Update a database's title, description, properties, or archive status
389
+ */
390
+ updateDatabase(params: {
391
+ /** The ID of the database to update */
392
+ database_id: string;
393
+ /** Update the database title */
394
+ title?: Array<{
395
+ text: {
396
+ content: string;
397
+ };
398
+ }>;
399
+ /** Update the database description */
400
+ description?: Array<{
401
+ text: {
402
+ content: string;
403
+ };
404
+ }>;
405
+ /** Update database property schema */
406
+ properties?: Record<string, any>;
407
+ /** Archive or unarchive the database */
408
+ archived?: boolean;
409
+ }): Promise<MCPToolCallResponse>;
410
+ /**
411
+ * Get a block by ID
412
+ */
413
+ getBlock(params: {
414
+ /** The ID of the block to retrieve */
415
+ block_id: string;
416
+ }): Promise<MCPToolCallResponse>;
417
+ /**
418
+ * Get child blocks of a block with pagination
419
+ */
420
+ getBlockChildren(params: {
421
+ /** The ID of the parent block */
422
+ block_id: string;
423
+ /** Start cursor for pagination */
424
+ start_cursor?: string;
425
+ /** Page size for pagination */
426
+ page_size?: number;
427
+ }): Promise<MCPToolCallResponse>;
428
+ /**
429
+ * Append child blocks to a parent block
430
+ */
431
+ appendBlocks(params: {
432
+ /** The ID of the parent block */
433
+ block_id: string;
434
+ /** Array of block objects to append (JSON) */
435
+ children: Record<string, any>[];
436
+ }): Promise<MCPToolCallResponse>;
437
+ /**
438
+ * Update a block's content
439
+ */
440
+ updateBlock(params: {
441
+ /** The ID of the block to update */
442
+ block_id: string;
443
+ /** Block content update (JSON, keyed by block type) */
444
+ [key: string]: any;
445
+ }): Promise<MCPToolCallResponse>;
446
+ /**
447
+ * Delete (archive) a block
448
+ */
449
+ deleteBlock(params: {
450
+ /** The ID of the block to delete */
451
+ block_id: string;
452
+ }): Promise<MCPToolCallResponse>;
453
+ /**
454
+ * Get a user by ID
455
+ */
456
+ getUser(params: {
457
+ /** The ID of the user to retrieve */
458
+ user_id: string;
459
+ }): Promise<MCPToolCallResponse>;
460
+ /**
461
+ * Get the bot user associated with the current token
462
+ */
463
+ getCurrentUser(params?: Record<string, never>): Promise<MCPToolCallResponse>;
464
+ /**
465
+ * List workspace users with pagination
466
+ */
467
+ listUsers(params?: {
468
+ /** Start cursor for pagination */
469
+ start_cursor?: string;
470
+ /** Page size for pagination */
471
+ page_size?: number;
472
+ }): Promise<MCPToolCallResponse>;
473
+ /**
474
+ * Create a comment on a page or reply to a discussion
475
+ */
476
+ createComment(params: {
477
+ /** Parent page to comment on (use this or discussion_id) */
478
+ parent?: {
479
+ page_id: string;
480
+ };
481
+ /** Discussion thread to reply to (use this or parent) */
482
+ discussion_id?: string;
483
+ /** Comment content as rich text */
484
+ rich_text: Array<{
485
+ text: {
486
+ content: string;
487
+ };
488
+ }>;
489
+ }): Promise<MCPToolCallResponse>;
490
+ /**
491
+ * List comments on a block or page
492
+ */
493
+ listComments(params: {
494
+ /** The ID of the block or page */
495
+ block_id: string;
496
+ /** Start cursor for pagination */
497
+ start_cursor?: string;
498
+ /** Page size for pagination */
499
+ page_size?: number;
500
+ }): Promise<MCPToolCallResponse>;
501
+ /**
502
+ * Move a page to a new parent page or data source
503
+ */
504
+ movePage(params: {
505
+ /** Notion page ID to move */
506
+ page_id: string;
507
+ /** Type of the new parent: "page_id" or "data_source_id" */
508
+ parent_type: "page_id" | "data_source_id";
509
+ /** ID of the new parent */
510
+ parent_id: string;
511
+ }): Promise<MCPToolCallResponse>;
512
+ /**
513
+ * Create a Notion file upload. Use mode "external_url" to import from a URL,
514
+ * or "single_part" to upload file content.
515
+ *
516
+ * @example
517
+ * ```typescript
518
+ * // External URL (1 step)
519
+ * const upload = await client.notion.createFileUpload({
520
+ * mode: "external_url",
521
+ * filename: "logo.png",
522
+ * content_type: "image/png",
523
+ * external_url: "https://example.com/logo.png"
524
+ * });
525
+ *
526
+ * // Single part (then call sendFileUpload + completeFileUpload)
527
+ * const upload = await client.notion.createFileUpload({
528
+ * mode: "single_part",
529
+ * filename: "report.pdf",
530
+ * content_type: "application/pdf"
531
+ * });
532
+ * ```
533
+ */
534
+ createFileUpload(params: {
535
+ /** Upload mode: "external_url" to import from URL, "single_part" to upload content */
536
+ mode: "external_url" | "single_part";
537
+ /** Name of the file */
538
+ filename: string;
539
+ /** MIME type of the file (e.g. "image/png", "text/plain") */
540
+ content_type?: string;
541
+ /** URL to import from — required when mode is "external_url" */
542
+ external_url?: string;
543
+ }): Promise<MCPToolCallResponse>;
544
+ /**
545
+ * Send file content for a Notion file upload (single_part mode).
546
+ * Content must be base64-encoded.
547
+ */
548
+ sendFileUpload(params: {
549
+ /** File upload ID (from createFileUpload response) */
550
+ upload_id: string;
551
+ /** Base64-encoded file content */
552
+ file_content_base64: string;
553
+ /** Name of the file */
554
+ filename: string;
555
+ }): Promise<MCPToolCallResponse>;
556
+ /**
557
+ * Complete a Notion file upload after sending content
558
+ */
559
+ completeFileUpload(params: {
560
+ /** File upload ID */
561
+ upload_id: string;
562
+ }): Promise<MCPToolCallResponse>;
563
+ /**
564
+ * Get the status of a Notion file upload
565
+ */
566
+ getFileUpload(params: {
567
+ /** File upload ID */
568
+ upload_id: string;
569
+ }): Promise<MCPToolCallResponse>;
570
+ /**
571
+ * Create a new Notion data source under a parent page
572
+ *
573
+ * @example
574
+ * ```typescript
575
+ * const ds = await client.notion.createDataSource({
576
+ * parent_id: "page-abc123",
577
+ * title: "Sales Tracker",
578
+ * properties: '{"Name":{"type":"title","title":{}},"Amount":{"type":"number","number":{"format":"dollar"}}}',
579
+ * description: "Track monthly sales",
580
+ * icon_emoji: "📊"
581
+ * });
582
+ * ```
583
+ */
584
+ createDataSource(params: {
585
+ /** ID of the parent page */
586
+ parent_id: string;
587
+ /** Data source title */
588
+ title: string;
589
+ /** Data source properties schema as JSON string */
590
+ properties: string;
591
+ /** Data source description */
592
+ description?: string;
593
+ /** Emoji icon for the data source */
594
+ icon_emoji?: string;
595
+ }): Promise<MCPToolCallResponse>;
596
+ /**
597
+ * Get a Notion data source by its ID
598
+ */
599
+ getDataSource(params: {
600
+ /** Notion data source ID */
601
+ data_source_id: string;
602
+ }): Promise<MCPToolCallResponse>;
603
+ /**
604
+ * Update a Notion data source's title, description, properties, or status
605
+ */
606
+ updateDataSource(params: {
607
+ /** Notion data source ID */
608
+ data_source_id: string;
609
+ /** New data source title */
610
+ title?: string;
611
+ /** New data source description */
612
+ description?: string;
613
+ /** Data source properties schema as JSON string */
614
+ properties?: string;
615
+ /** Emoji icon for the data source */
616
+ icon_emoji?: string;
617
+ /** Set to true to archive the data source */
618
+ archived?: boolean;
619
+ /** Set to true to trash the data source */
620
+ in_trash?: boolean;
621
+ }): Promise<MCPToolCallResponse>;
622
+ /**
623
+ * Query a Notion data source with optional filters, sorts, and pagination
624
+ *
625
+ * @example
626
+ * ```typescript
627
+ * const results = await client.notion.queryDataSource({
628
+ * data_source_id: "ds-abc123",
629
+ * filter: '{"property":"Status","select":{"equals":"Done"}}',
630
+ * sorts: '[{"property":"Created","direction":"descending"}]',
631
+ * page_size: 25
632
+ * });
633
+ * ```
634
+ */
635
+ queryDataSource(params: {
636
+ /** Notion data source ID */
637
+ data_source_id: string;
638
+ /** Filter as JSON string */
639
+ filter?: string;
640
+ /** Sorts as JSON array string */
641
+ sorts?: string;
642
+ /** Results per page (max 100) */
643
+ page_size?: number;
644
+ /** Pagination cursor */
645
+ start_cursor?: string;
646
+ }): Promise<MCPToolCallResponse>;
166
647
  }
167
648
  //# sourceMappingURL=notion-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notion-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/notion-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;QACpC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3B,IAAI,CAAC,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;KAC7C,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;QAC1B,QAAQ,CAAC,EAAE;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3B,IAAI,CAAC,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;KAC7C,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,MAAM,EACF;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAC5C;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GACpC;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,SAAS,EAAE,IAAI,CAA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,4BAA4B;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,4BAA4B;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,iCAAiC;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,iCAAiC;QACjC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,wBAAwB;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
@@ -21,7 +21,7 @@ export interface NotionIntegrationConfig {
21
21
  * Default Notion tools that this integration enables
22
22
  * These should match the tool names exposed by your MCP server
23
23
  */
24
- declare const NOTION_TOOLS: readonly ["notion_search", "notion_get_page"];
24
+ declare const NOTION_TOOLS: readonly ["notion_search", "notion_get_page", "notion_create_page", "notion_update_page", "notion_get_page_property", "notion_get_database", "notion_query_database", "notion_create_database", "notion_update_database", "notion_get_block", "notion_get_block_children", "notion_append_blocks", "notion_update_block", "notion_delete_block", "notion_get_user", "notion_get_current_user", "notion_list_users", "notion_create_comment", "notion_list_comments", "notion_move_page", "notion_create_file_upload", "notion_send_file_upload", "notion_complete_file_upload", "notion_get_file_upload", "notion_create_data_source", "notion_get_data_source", "notion_update_data_source", "notion_query_data_source"];
25
25
  /**
26
26
  * Notion Integration
27
27
  *
@@ -1 +1 @@
1
- {"version":3,"file":"notion.d.ts","sourceRoot":"","sources":["../../../src/integrations/notion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAK9D,MAAM,WAAW,uBAAuB;IACtC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC9B;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,+CAGR,CAAC;AAEX;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,uBAA4B,GAAG,cAAc,CAAC,QAAQ,CAAC,CA8BhG;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAEtD;;GAEG;AACH,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"notion.d.ts","sourceRoot":"","sources":["../../../src/integrations/notion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAK9D,MAAM,WAAW,uBAAuB;IACtC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC9B;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,2rBAsCR,CAAC;AAEX;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,uBAA4B,GAAG,cAAc,CAAC,QAAQ,CAAC,CA8BhG;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAEtD;;GAEG;AACH,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integrate-sdk",
3
- "version": "0.8.58-dev.0",
3
+ "version": "0.8.59-dev.0",
4
4
  "description": "Type-safe 3rd party integration SDK for the Integrate MCP server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",