google-mcp-suite 1.6.0 → 1.7.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.
- package/README.md +12 -7
- package/dist/doctor/services.d.ts.map +1 -1
- package/dist/doctor/services.js +13 -1
- package/dist/doctor/services.js.map +1 -1
- package/dist/drive/capabilities.d.ts +3 -0
- package/dist/drive/capabilities.d.ts.map +1 -0
- package/dist/drive/capabilities.js +21 -0
- package/dist/drive/capabilities.js.map +1 -0
- package/dist/drive/entities/About.d.ts +26 -0
- package/dist/drive/entities/About.d.ts.map +1 -0
- package/dist/drive/entities/About.js +31 -0
- package/dist/drive/entities/About.js.map +1 -0
- package/dist/drive/entities/Comment.d.ts +48 -0
- package/dist/drive/entities/Comment.d.ts.map +1 -0
- package/dist/drive/entities/Comment.js +53 -0
- package/dist/drive/entities/Comment.js.map +1 -0
- package/dist/drive/entities/File.d.ts +42 -0
- package/dist/drive/entities/File.d.ts.map +1 -0
- package/dist/drive/entities/File.js +75 -0
- package/dist/drive/entities/File.js.map +1 -0
- package/dist/drive/entities/Permission.d.ts +33 -0
- package/dist/drive/entities/Permission.d.ts.map +1 -0
- package/dist/drive/entities/Permission.js +32 -0
- package/dist/drive/entities/Permission.js.map +1 -0
- package/dist/drive/entities/Reply.d.ts +27 -0
- package/dist/drive/entities/Reply.d.ts.map +1 -0
- package/dist/drive/entities/Reply.js +39 -0
- package/dist/drive/entities/Reply.js.map +1 -0
- package/dist/drive/entities/Revision.d.ts +30 -0
- package/dist/drive/entities/Revision.d.ts.map +1 -0
- package/dist/drive/entities/Revision.js +62 -0
- package/dist/drive/entities/Revision.js.map +1 -0
- package/dist/drive/entities/SharedDrive.d.ts +28 -0
- package/dist/drive/entities/SharedDrive.d.ts.map +1 -0
- package/dist/drive/entities/SharedDrive.js +65 -0
- package/dist/drive/entities/SharedDrive.js.map +1 -0
- package/dist/drive/entities/User.d.ts +16 -0
- package/dist/drive/entities/User.d.ts.map +1 -0
- package/dist/drive/entities/User.js +25 -0
- package/dist/drive/entities/User.js.map +1 -0
- package/dist/drive/index.d.ts +3 -0
- package/dist/drive/index.d.ts.map +1 -0
- package/dist/drive/index.js +23 -0
- package/dist/drive/index.js.map +1 -0
- package/dist/drive/instructions.d.ts +2 -0
- package/dist/drive/instructions.d.ts.map +1 -0
- package/dist/drive/instructions.js +24 -0
- package/dist/drive/instructions.js.map +1 -0
- package/dist/drive/lib/comment.d.ts +15 -0
- package/dist/drive/lib/comment.d.ts.map +1 -0
- package/dist/drive/lib/comment.js +52 -0
- package/dist/drive/lib/comment.js.map +1 -0
- package/dist/drive/lib/content.d.ts +20 -0
- package/dist/drive/lib/content.d.ts.map +1 -0
- package/dist/drive/lib/content.js +41 -0
- package/dist/drive/lib/content.js.map +1 -0
- package/dist/drive/lib/file.d.ts +25 -0
- package/dist/drive/lib/file.d.ts.map +1 -0
- package/dist/drive/lib/file.js +62 -0
- package/dist/drive/lib/file.js.map +1 -0
- package/dist/drive/lib/query.d.ts +30 -0
- package/dist/drive/lib/query.d.ts.map +1 -0
- package/dist/drive/lib/query.js +104 -0
- package/dist/drive/lib/query.js.map +1 -0
- package/dist/drive/lib/revision.d.ts +7 -0
- package/dist/drive/lib/revision.d.ts.map +1 -0
- package/dist/drive/lib/revision.js +23 -0
- package/dist/drive/lib/revision.js.map +1 -0
- package/dist/drive/lib/shared-drive.d.ts +7 -0
- package/dist/drive/lib/shared-drive.d.ts.map +1 -0
- package/dist/drive/lib/shared-drive.js +26 -0
- package/dist/drive/lib/shared-drive.js.map +1 -0
- package/dist/drive/methods/create_comment/handler.d.ts +5 -0
- package/dist/drive/methods/create_comment/handler.d.ts.map +1 -0
- package/dist/drive/methods/create_comment/handler.js +11 -0
- package/dist/drive/methods/create_comment/handler.js.map +1 -0
- package/dist/drive/methods/create_comment/index.d.ts +43 -0
- package/dist/drive/methods/create_comment/index.d.ts.map +1 -0
- package/dist/drive/methods/create_comment/index.js +16 -0
- package/dist/drive/methods/create_comment/index.js.map +1 -0
- package/dist/drive/methods/create_comment/schema.d.ts +47 -0
- package/dist/drive/methods/create_comment/schema.d.ts.map +1 -0
- package/dist/drive/methods/create_comment/schema.js +14 -0
- package/dist/drive/methods/create_comment/schema.js.map +1 -0
- package/dist/drive/methods/create_reply/handler.d.ts +5 -0
- package/dist/drive/methods/create_reply/handler.d.ts.map +1 -0
- package/dist/drive/methods/create_reply/handler.js +15 -0
- package/dist/drive/methods/create_reply/handler.js.map +1 -0
- package/dist/drive/methods/create_reply/index.d.ts +27 -0
- package/dist/drive/methods/create_reply/index.d.ts.map +1 -0
- package/dist/drive/methods/create_reply/index.js +17 -0
- package/dist/drive/methods/create_reply/index.js.map +1 -0
- package/dist/drive/methods/create_reply/schema.d.ts +31 -0
- package/dist/drive/methods/create_reply/schema.d.ts.map +1 -0
- package/dist/drive/methods/create_reply/schema.js +18 -0
- package/dist/drive/methods/create_reply/schema.js.map +1 -0
- package/dist/drive/methods/create_shared_drive/handler.d.ts +5 -0
- package/dist/drive/methods/create_shared_drive/handler.d.ts.map +1 -0
- package/dist/drive/methods/create_shared_drive/handler.js +11 -0
- package/dist/drive/methods/create_shared_drive/handler.js.map +1 -0
- package/dist/drive/methods/create_shared_drive/index.d.ts +20 -0
- package/dist/drive/methods/create_shared_drive/index.d.ts.map +1 -0
- package/dist/drive/methods/create_shared_drive/index.js +16 -0
- package/dist/drive/methods/create_shared_drive/index.js.map +1 -0
- package/dist/drive/methods/create_shared_drive/schema.d.ts +24 -0
- package/dist/drive/methods/create_shared_drive/schema.d.ts.map +1 -0
- package/dist/drive/methods/create_shared_drive/schema.js +15 -0
- package/dist/drive/methods/create_shared_drive/schema.js.map +1 -0
- package/dist/drive/methods/delete_comment/handler.d.ts +5 -0
- package/dist/drive/methods/delete_comment/handler.d.ts.map +1 -0
- package/dist/drive/methods/delete_comment/handler.js +5 -0
- package/dist/drive/methods/delete_comment/handler.js.map +1 -0
- package/dist/drive/methods/delete_comment/index.d.ts +8 -0
- package/dist/drive/methods/delete_comment/index.d.ts.map +1 -0
- package/dist/drive/methods/delete_comment/index.js +16 -0
- package/dist/drive/methods/delete_comment/index.js.map +1 -0
- package/dist/drive/methods/delete_comment/schema.d.ts +13 -0
- package/dist/drive/methods/delete_comment/schema.d.ts.map +1 -0
- package/dist/drive/methods/delete_comment/schema.js +13 -0
- package/dist/drive/methods/delete_comment/schema.js.map +1 -0
- package/dist/drive/methods/delete_file/handler.d.ts +5 -0
- package/dist/drive/methods/delete_file/handler.d.ts.map +1 -0
- package/dist/drive/methods/delete_file/handler.js +5 -0
- package/dist/drive/methods/delete_file/handler.js.map +1 -0
- package/dist/drive/methods/delete_file/index.d.ts +6 -0
- package/dist/drive/methods/delete_file/index.d.ts.map +1 -0
- package/dist/drive/methods/delete_file/index.js +19 -0
- package/dist/drive/methods/delete_file/index.js.map +1 -0
- package/dist/drive/methods/delete_file/schema.d.ts +11 -0
- package/dist/drive/methods/delete_file/schema.d.ts.map +1 -0
- package/dist/drive/methods/delete_file/schema.js +11 -0
- package/dist/drive/methods/delete_file/schema.js.map +1 -0
- package/dist/drive/methods/delete_reply/handler.d.ts +5 -0
- package/dist/drive/methods/delete_reply/handler.d.ts.map +1 -0
- package/dist/drive/methods/delete_reply/handler.js +9 -0
- package/dist/drive/methods/delete_reply/handler.js.map +1 -0
- package/dist/drive/methods/delete_reply/index.d.ts +10 -0
- package/dist/drive/methods/delete_reply/index.d.ts.map +1 -0
- package/dist/drive/methods/delete_reply/index.js +16 -0
- package/dist/drive/methods/delete_reply/index.js.map +1 -0
- package/dist/drive/methods/delete_reply/schema.d.ts +15 -0
- package/dist/drive/methods/delete_reply/schema.d.ts.map +1 -0
- package/dist/drive/methods/delete_reply/schema.js +15 -0
- package/dist/drive/methods/delete_reply/schema.js.map +1 -0
- package/dist/drive/methods/delete_revision/handler.d.ts +5 -0
- package/dist/drive/methods/delete_revision/handler.d.ts.map +1 -0
- package/dist/drive/methods/delete_revision/handler.js +5 -0
- package/dist/drive/methods/delete_revision/handler.js.map +1 -0
- package/dist/drive/methods/delete_revision/index.d.ts +8 -0
- package/dist/drive/methods/delete_revision/index.d.ts.map +1 -0
- package/dist/drive/methods/delete_revision/index.js +18 -0
- package/dist/drive/methods/delete_revision/index.js.map +1 -0
- package/dist/drive/methods/delete_revision/schema.d.ts +13 -0
- package/dist/drive/methods/delete_revision/schema.d.ts.map +1 -0
- package/dist/drive/methods/delete_revision/schema.js +13 -0
- package/dist/drive/methods/delete_revision/schema.js.map +1 -0
- package/dist/drive/methods/delete_shared_drive/handler.d.ts +5 -0
- package/dist/drive/methods/delete_shared_drive/handler.d.ts.map +1 -0
- package/dist/drive/methods/delete_shared_drive/handler.js +10 -0
- package/dist/drive/methods/delete_shared_drive/handler.js.map +1 -0
- package/dist/drive/methods/delete_shared_drive/index.d.ts +8 -0
- package/dist/drive/methods/delete_shared_drive/index.d.ts.map +1 -0
- package/dist/drive/methods/delete_shared_drive/index.js +17 -0
- package/dist/drive/methods/delete_shared_drive/index.js.map +1 -0
- package/dist/drive/methods/delete_shared_drive/schema.d.ts +13 -0
- package/dist/drive/methods/delete_shared_drive/schema.d.ts.map +1 -0
- package/dist/drive/methods/delete_shared_drive/schema.js +22 -0
- package/dist/drive/methods/delete_shared_drive/schema.js.map +1 -0
- package/dist/drive/methods/empty_trash/handler.d.ts +5 -0
- package/dist/drive/methods/empty_trash/handler.d.ts.map +1 -0
- package/dist/drive/methods/empty_trash/handler.js +6 -0
- package/dist/drive/methods/empty_trash/handler.js.map +1 -0
- package/dist/drive/methods/empty_trash/index.d.ts +6 -0
- package/dist/drive/methods/empty_trash/index.d.ts.map +1 -0
- package/dist/drive/methods/empty_trash/index.js +17 -0
- package/dist/drive/methods/empty_trash/index.js.map +1 -0
- package/dist/drive/methods/empty_trash/schema.d.ts +11 -0
- package/dist/drive/methods/empty_trash/schema.d.ts.map +1 -0
- package/dist/drive/methods/empty_trash/schema.js +14 -0
- package/dist/drive/methods/empty_trash/schema.js.map +1 -0
- package/dist/drive/methods/get_about/handler.d.ts +5 -0
- package/dist/drive/methods/get_about/handler.d.ts.map +1 -0
- package/dist/drive/methods/get_about/handler.js +30 -0
- package/dist/drive/methods/get_about/handler.js.map +1 -0
- package/dist/drive/methods/get_about/index.d.ts +17 -0
- package/dist/drive/methods/get_about/index.d.ts.map +1 -0
- package/dist/drive/methods/get_about/index.js +17 -0
- package/dist/drive/methods/get_about/index.js.map +1 -0
- package/dist/drive/methods/get_about/schema.d.ts +21 -0
- package/dist/drive/methods/get_about/schema.d.ts.map +1 -0
- package/dist/drive/methods/get_about/schema.js +7 -0
- package/dist/drive/methods/get_about/schema.js.map +1 -0
- package/dist/drive/methods/get_comment/handler.d.ts +5 -0
- package/dist/drive/methods/get_comment/handler.d.ts.map +1 -0
- package/dist/drive/methods/get_comment/handler.js +12 -0
- package/dist/drive/methods/get_comment/handler.js.map +1 -0
- package/dist/drive/methods/get_comment/index.d.ts +43 -0
- package/dist/drive/methods/get_comment/index.d.ts.map +1 -0
- package/dist/drive/methods/get_comment/index.js +16 -0
- package/dist/drive/methods/get_comment/index.js.map +1 -0
- package/dist/drive/methods/get_comment/schema.d.ts +47 -0
- package/dist/drive/methods/get_comment/schema.d.ts.map +1 -0
- package/dist/drive/methods/get_comment/schema.js +14 -0
- package/dist/drive/methods/get_comment/schema.js.map +1 -0
- package/dist/drive/methods/get_reply/handler.d.ts +5 -0
- package/dist/drive/methods/get_reply/handler.d.ts.map +1 -0
- package/dist/drive/methods/get_reply/handler.js +13 -0
- package/dist/drive/methods/get_reply/handler.js.map +1 -0
- package/dist/drive/methods/get_reply/index.d.ts +24 -0
- package/dist/drive/methods/get_reply/index.d.ts.map +1 -0
- package/dist/drive/methods/get_reply/index.js +16 -0
- package/dist/drive/methods/get_reply/index.js.map +1 -0
- package/dist/drive/methods/get_reply/schema.d.ts +28 -0
- package/dist/drive/methods/get_reply/schema.d.ts.map +1 -0
- package/dist/drive/methods/get_reply/schema.js +15 -0
- package/dist/drive/methods/get_reply/schema.js.map +1 -0
- package/dist/drive/methods/get_revision/handler.d.ts +5 -0
- package/dist/drive/methods/get_revision/handler.d.ts.map +1 -0
- package/dist/drive/methods/get_revision/handler.js +10 -0
- package/dist/drive/methods/get_revision/handler.js.map +1 -0
- package/dist/drive/methods/get_revision/index.d.ts +23 -0
- package/dist/drive/methods/get_revision/index.d.ts.map +1 -0
- package/dist/drive/methods/get_revision/index.js +16 -0
- package/dist/drive/methods/get_revision/index.js.map +1 -0
- package/dist/drive/methods/get_revision/schema.d.ts +27 -0
- package/dist/drive/methods/get_revision/schema.d.ts.map +1 -0
- package/dist/drive/methods/get_revision/schema.js +10 -0
- package/dist/drive/methods/get_revision/schema.js.map +1 -0
- package/dist/drive/methods/get_shared_drive/handler.d.ts +5 -0
- package/dist/drive/methods/get_shared_drive/handler.d.ts.map +1 -0
- package/dist/drive/methods/get_shared_drive/handler.js +11 -0
- package/dist/drive/methods/get_shared_drive/handler.js.map +1 -0
- package/dist/drive/methods/get_shared_drive/index.d.ts +20 -0
- package/dist/drive/methods/get_shared_drive/index.d.ts.map +1 -0
- package/dist/drive/methods/get_shared_drive/index.js +16 -0
- package/dist/drive/methods/get_shared_drive/index.js.map +1 -0
- package/dist/drive/methods/get_shared_drive/schema.d.ts +24 -0
- package/dist/drive/methods/get_shared_drive/schema.d.ts.map +1 -0
- package/dist/drive/methods/get_shared_drive/schema.js +15 -0
- package/dist/drive/methods/get_shared_drive/schema.js.map +1 -0
- package/dist/drive/methods/hide_shared_drive/handler.d.ts +5 -0
- package/dist/drive/methods/hide_shared_drive/handler.d.ts.map +1 -0
- package/dist/drive/methods/hide_shared_drive/handler.js +9 -0
- package/dist/drive/methods/hide_shared_drive/handler.js.map +1 -0
- package/dist/drive/methods/hide_shared_drive/index.d.ts +19 -0
- package/dist/drive/methods/hide_shared_drive/index.d.ts.map +1 -0
- package/dist/drive/methods/hide_shared_drive/index.js +16 -0
- package/dist/drive/methods/hide_shared_drive/index.js.map +1 -0
- package/dist/drive/methods/hide_shared_drive/schema.d.ts +23 -0
- package/dist/drive/methods/hide_shared_drive/schema.d.ts.map +1 -0
- package/dist/drive/methods/hide_shared_drive/schema.js +9 -0
- package/dist/drive/methods/hide_shared_drive/schema.js.map +1 -0
- package/dist/drive/methods/list_comments/handler.d.ts +5 -0
- package/dist/drive/methods/list_comments/handler.d.ts.map +1 -0
- package/dist/drive/methods/list_comments/handler.js +17 -0
- package/dist/drive/methods/list_comments/handler.js.map +1 -0
- package/dist/drive/methods/list_comments/index.d.ts +48 -0
- package/dist/drive/methods/list_comments/index.d.ts.map +1 -0
- package/dist/drive/methods/list_comments/index.js +16 -0
- package/dist/drive/methods/list_comments/index.js.map +1 -0
- package/dist/drive/methods/list_comments/schema.d.ts +52 -0
- package/dist/drive/methods/list_comments/schema.d.ts.map +1 -0
- package/dist/drive/methods/list_comments/schema.js +34 -0
- package/dist/drive/methods/list_comments/schema.js.map +1 -0
- package/dist/drive/methods/list_replies/handler.d.ts +5 -0
- package/dist/drive/methods/list_replies/handler.d.ts.map +1 -0
- package/dist/drive/methods/list_replies/handler.js +17 -0
- package/dist/drive/methods/list_replies/handler.js.map +1 -0
- package/dist/drive/methods/list_replies/index.d.ts +28 -0
- package/dist/drive/methods/list_replies/index.d.ts.map +1 -0
- package/dist/drive/methods/list_replies/index.js +16 -0
- package/dist/drive/methods/list_replies/index.js.map +1 -0
- package/dist/drive/methods/list_replies/schema.d.ts +32 -0
- package/dist/drive/methods/list_replies/schema.d.ts.map +1 -0
- package/dist/drive/methods/list_replies/schema.js +31 -0
- package/dist/drive/methods/list_replies/schema.js.map +1 -0
- package/dist/drive/methods/list_revisions/handler.d.ts +5 -0
- package/dist/drive/methods/list_revisions/handler.d.ts.map +1 -0
- package/dist/drive/methods/list_revisions/handler.js +15 -0
- package/dist/drive/methods/list_revisions/handler.js.map +1 -0
- package/dist/drive/methods/list_revisions/index.d.ts +27 -0
- package/dist/drive/methods/list_revisions/index.d.ts.map +1 -0
- package/dist/drive/methods/list_revisions/index.js +17 -0
- package/dist/drive/methods/list_revisions/index.js.map +1 -0
- package/dist/drive/methods/list_revisions/schema.d.ts +31 -0
- package/dist/drive/methods/list_revisions/schema.d.ts.map +1 -0
- package/dist/drive/methods/list_revisions/schema.js +30 -0
- package/dist/drive/methods/list_revisions/schema.js.map +1 -0
- package/dist/drive/methods/list_shared_drives/handler.d.ts +5 -0
- package/dist/drive/methods/list_shared_drives/handler.d.ts.map +1 -0
- package/dist/drive/methods/list_shared_drives/handler.js +16 -0
- package/dist/drive/methods/list_shared_drives/handler.js.map +1 -0
- package/dist/drive/methods/list_shared_drives/index.d.ts +25 -0
- package/dist/drive/methods/list_shared_drives/index.d.ts.map +1 -0
- package/dist/drive/methods/list_shared_drives/index.js +16 -0
- package/dist/drive/methods/list_shared_drives/index.js.map +1 -0
- package/dist/drive/methods/list_shared_drives/schema.d.ts +29 -0
- package/dist/drive/methods/list_shared_drives/schema.d.ts.map +1 -0
- package/dist/drive/methods/list_shared_drives/schema.js +27 -0
- package/dist/drive/methods/list_shared_drives/schema.js.map +1 -0
- package/dist/drive/methods/registry.d.ts +619 -0
- package/dist/drive/methods/registry.d.ts.map +1 -0
- package/dist/drive/methods/registry.js +69 -0
- package/dist/drive/methods/registry.js.map +1 -0
- package/dist/drive/methods/trash_file/handler.d.ts +5 -0
- package/dist/drive/methods/trash_file/handler.d.ts.map +1 -0
- package/dist/drive/methods/trash_file/handler.js +11 -0
- package/dist/drive/methods/trash_file/handler.js.map +1 -0
- package/dist/drive/methods/trash_file/index.d.ts +25 -0
- package/dist/drive/methods/trash_file/index.d.ts.map +1 -0
- package/dist/drive/methods/trash_file/index.js +18 -0
- package/dist/drive/methods/trash_file/index.js.map +1 -0
- package/dist/drive/methods/trash_file/schema.d.ts +29 -0
- package/dist/drive/methods/trash_file/schema.d.ts.map +1 -0
- package/dist/drive/methods/trash_file/schema.js +9 -0
- package/dist/drive/methods/trash_file/schema.js.map +1 -0
- package/dist/drive/methods/unhide_shared_drive/handler.d.ts +5 -0
- package/dist/drive/methods/unhide_shared_drive/handler.d.ts.map +1 -0
- package/dist/drive/methods/unhide_shared_drive/handler.js +9 -0
- package/dist/drive/methods/unhide_shared_drive/handler.js.map +1 -0
- package/dist/drive/methods/unhide_shared_drive/index.d.ts +19 -0
- package/dist/drive/methods/unhide_shared_drive/index.d.ts.map +1 -0
- package/dist/drive/methods/unhide_shared_drive/index.js +16 -0
- package/dist/drive/methods/unhide_shared_drive/index.js.map +1 -0
- package/dist/drive/methods/unhide_shared_drive/schema.d.ts +23 -0
- package/dist/drive/methods/unhide_shared_drive/schema.d.ts.map +1 -0
- package/dist/drive/methods/unhide_shared_drive/schema.js +9 -0
- package/dist/drive/methods/unhide_shared_drive/schema.js.map +1 -0
- package/dist/drive/methods/untrash_file/handler.d.ts +5 -0
- package/dist/drive/methods/untrash_file/handler.d.ts.map +1 -0
- package/dist/drive/methods/untrash_file/handler.js +11 -0
- package/dist/drive/methods/untrash_file/handler.js.map +1 -0
- package/dist/drive/methods/untrash_file/index.d.ts +25 -0
- package/dist/drive/methods/untrash_file/index.d.ts.map +1 -0
- package/dist/drive/methods/untrash_file/index.js +17 -0
- package/dist/drive/methods/untrash_file/index.js.map +1 -0
- package/dist/drive/methods/untrash_file/schema.d.ts +29 -0
- package/dist/drive/methods/untrash_file/schema.d.ts.map +1 -0
- package/dist/drive/methods/untrash_file/schema.js +9 -0
- package/dist/drive/methods/untrash_file/schema.js.map +1 -0
- package/dist/drive/methods/update_comment/handler.d.ts +5 -0
- package/dist/drive/methods/update_comment/handler.d.ts.map +1 -0
- package/dist/drive/methods/update_comment/handler.js +11 -0
- package/dist/drive/methods/update_comment/handler.js.map +1 -0
- package/dist/drive/methods/update_comment/index.d.ts +43 -0
- package/dist/drive/methods/update_comment/index.d.ts.map +1 -0
- package/dist/drive/methods/update_comment/index.js +16 -0
- package/dist/drive/methods/update_comment/index.js.map +1 -0
- package/dist/drive/methods/update_comment/schema.d.ts +47 -0
- package/dist/drive/methods/update_comment/schema.d.ts.map +1 -0
- package/dist/drive/methods/update_comment/schema.js +11 -0
- package/dist/drive/methods/update_comment/schema.js.map +1 -0
- package/dist/drive/methods/update_file/handler.d.ts +5 -0
- package/dist/drive/methods/update_file/handler.d.ts.map +1 -0
- package/dist/drive/methods/update_file/handler.js +21 -0
- package/dist/drive/methods/update_file/handler.js.map +1 -0
- package/dist/drive/methods/update_file/index.d.ts +33 -0
- package/dist/drive/methods/update_file/index.d.ts.map +1 -0
- package/dist/drive/methods/update_file/index.js +19 -0
- package/dist/drive/methods/update_file/index.js.map +1 -0
- package/dist/drive/methods/update_file/schema.d.ts +37 -0
- package/dist/drive/methods/update_file/schema.d.ts.map +1 -0
- package/dist/drive/methods/update_file/schema.js +35 -0
- package/dist/drive/methods/update_file/schema.js.map +1 -0
- package/dist/drive/methods/update_reply/handler.d.ts +5 -0
- package/dist/drive/methods/update_reply/handler.d.ts.map +1 -0
- package/dist/drive/methods/update_reply/handler.js +12 -0
- package/dist/drive/methods/update_reply/handler.js.map +1 -0
- package/dist/drive/methods/update_reply/index.d.ts +24 -0
- package/dist/drive/methods/update_reply/index.d.ts.map +1 -0
- package/dist/drive/methods/update_reply/index.js +16 -0
- package/dist/drive/methods/update_reply/index.js.map +1 -0
- package/dist/drive/methods/update_reply/schema.d.ts +28 -0
- package/dist/drive/methods/update_reply/schema.d.ts.map +1 -0
- package/dist/drive/methods/update_reply/schema.js +12 -0
- package/dist/drive/methods/update_reply/schema.js.map +1 -0
- package/dist/drive/methods/update_revision/handler.d.ts +5 -0
- package/dist/drive/methods/update_revision/handler.d.ts.map +1 -0
- package/dist/drive/methods/update_revision/handler.js +17 -0
- package/dist/drive/methods/update_revision/handler.js.map +1 -0
- package/dist/drive/methods/update_revision/index.d.ts +27 -0
- package/dist/drive/methods/update_revision/index.d.ts.map +1 -0
- package/dist/drive/methods/update_revision/index.js +17 -0
- package/dist/drive/methods/update_revision/index.js.map +1 -0
- package/dist/drive/methods/update_revision/schema.d.ts +31 -0
- package/dist/drive/methods/update_revision/schema.d.ts.map +1 -0
- package/dist/drive/methods/update_revision/schema.js +29 -0
- package/dist/drive/methods/update_revision/schema.js.map +1 -0
- package/dist/drive/methods/update_shared_drive/handler.d.ts +5 -0
- package/dist/drive/methods/update_shared_drive/handler.d.ts.map +1 -0
- package/dist/drive/methods/update_shared_drive/handler.js +17 -0
- package/dist/drive/methods/update_shared_drive/handler.js.map +1 -0
- package/dist/drive/methods/update_shared_drive/index.d.ts +30 -0
- package/dist/drive/methods/update_shared_drive/index.d.ts.map +1 -0
- package/dist/drive/methods/update_shared_drive/index.js +17 -0
- package/dist/drive/methods/update_shared_drive/index.js.map +1 -0
- package/dist/drive/methods/update_shared_drive/schema.d.ts +34 -0
- package/dist/drive/methods/update_shared_drive/schema.d.ts.map +1 -0
- package/dist/drive/methods/update_shared_drive/schema.js +53 -0
- package/dist/drive/methods/update_shared_drive/schema.js.map +1 -0
- package/dist/drive/operation.d.ts +12 -0
- package/dist/drive/operation.d.ts.map +1 -0
- package/dist/drive/operation.js +10 -0
- package/dist/drive/operation.js.map +1 -0
- package/dist/drive/tools/copy_file/handler.d.ts +5 -0
- package/dist/drive/tools/copy_file/handler.d.ts.map +1 -0
- package/dist/drive/tools/copy_file/handler.js +15 -0
- package/dist/drive/tools/copy_file/handler.js.map +1 -0
- package/dist/drive/tools/copy_file/index.d.ts +27 -0
- package/dist/drive/tools/copy_file/index.d.ts.map +1 -0
- package/dist/drive/tools/copy_file/index.js +18 -0
- package/dist/drive/tools/copy_file/index.js.map +1 -0
- package/dist/drive/tools/copy_file/schema.d.ts +31 -0
- package/dist/drive/tools/copy_file/schema.d.ts.map +1 -0
- package/dist/drive/tools/copy_file/schema.js +18 -0
- package/dist/drive/tools/copy_file/schema.js.map +1 -0
- package/dist/drive/tools/create_file/handler.d.ts +5 -0
- package/dist/drive/tools/create_file/handler.d.ts.map +1 -0
- package/dist/drive/tools/create_file/handler.js +42 -0
- package/dist/drive/tools/create_file/handler.js.map +1 -0
- package/dist/drive/tools/create_file/index.d.ts +30 -0
- package/dist/drive/tools/create_file/index.d.ts.map +1 -0
- package/dist/drive/tools/create_file/index.js +19 -0
- package/dist/drive/tools/create_file/index.js.map +1 -0
- package/dist/drive/tools/create_file/schema.d.ts +34 -0
- package/dist/drive/tools/create_file/schema.d.ts.map +1 -0
- package/dist/drive/tools/create_file/schema.js +29 -0
- package/dist/drive/tools/create_file/schema.js.map +1 -0
- package/dist/drive/tools/download_file_content/handler.d.ts +5 -0
- package/dist/drive/tools/download_file_content/handler.d.ts.map +1 -0
- package/dist/drive/tools/download_file_content/handler.js +33 -0
- package/dist/drive/tools/download_file_content/handler.js.map +1 -0
- package/dist/drive/tools/download_file_content/index.d.ts +10 -0
- package/dist/drive/tools/download_file_content/index.d.ts.map +1 -0
- package/dist/drive/tools/download_file_content/index.js +19 -0
- package/dist/drive/tools/download_file_content/index.js.map +1 -0
- package/dist/drive/tools/download_file_content/schema.d.ts +14 -0
- package/dist/drive/tools/download_file_content/schema.d.ts.map +1 -0
- package/dist/drive/tools/download_file_content/schema.js +18 -0
- package/dist/drive/tools/download_file_content/schema.js.map +1 -0
- package/dist/drive/tools/get_file_metadata/handler.d.ts +5 -0
- package/dist/drive/tools/get_file_metadata/handler.d.ts.map +1 -0
- package/dist/drive/tools/get_file_metadata/handler.js +10 -0
- package/dist/drive/tools/get_file_metadata/handler.js.map +1 -0
- package/dist/drive/tools/get_file_metadata/index.d.ts +26 -0
- package/dist/drive/tools/get_file_metadata/index.d.ts.map +1 -0
- package/dist/drive/tools/get_file_metadata/index.js +17 -0
- package/dist/drive/tools/get_file_metadata/index.js.map +1 -0
- package/dist/drive/tools/get_file_metadata/schema.d.ts +30 -0
- package/dist/drive/tools/get_file_metadata/schema.d.ts.map +1 -0
- package/dist/drive/tools/get_file_metadata/schema.js +15 -0
- package/dist/drive/tools/get_file_metadata/schema.js.map +1 -0
- package/dist/drive/tools/get_file_permissions/handler.d.ts +5 -0
- package/dist/drive/tools/get_file_permissions/handler.d.ts.map +1 -0
- package/dist/drive/tools/get_file_permissions/handler.js +20 -0
- package/dist/drive/tools/get_file_permissions/handler.js.map +1 -0
- package/dist/drive/tools/get_file_permissions/index.d.ts +27 -0
- package/dist/drive/tools/get_file_permissions/index.d.ts.map +1 -0
- package/dist/drive/tools/get_file_permissions/index.js +16 -0
- package/dist/drive/tools/get_file_permissions/index.js.map +1 -0
- package/dist/drive/tools/get_file_permissions/schema.d.ts +31 -0
- package/dist/drive/tools/get_file_permissions/schema.d.ts.map +1 -0
- package/dist/drive/tools/get_file_permissions/schema.js +11 -0
- package/dist/drive/tools/get_file_permissions/schema.js.map +1 -0
- package/dist/drive/tools/list_recent_files/handler.d.ts +5 -0
- package/dist/drive/tools/list_recent_files/handler.d.ts.map +1 -0
- package/dist/drive/tools/list_recent_files/handler.js +23 -0
- package/dist/drive/tools/list_recent_files/handler.js.map +1 -0
- package/dist/drive/tools/list_recent_files/index.d.ts +35 -0
- package/dist/drive/tools/list_recent_files/index.d.ts.map +1 -0
- package/dist/drive/tools/list_recent_files/index.js +16 -0
- package/dist/drive/tools/list_recent_files/index.js.map +1 -0
- package/dist/drive/tools/list_recent_files/schema.d.ts +39 -0
- package/dist/drive/tools/list_recent_files/schema.d.ts.map +1 -0
- package/dist/drive/tools/list_recent_files/schema.js +29 -0
- package/dist/drive/tools/list_recent_files/schema.js.map +1 -0
- package/dist/drive/tools/read_file_content/handler.d.ts +5 -0
- package/dist/drive/tools/read_file_content/handler.d.ts.map +1 -0
- package/dist/drive/tools/read_file_content/handler.js +24 -0
- package/dist/drive/tools/read_file_content/handler.js.map +1 -0
- package/dist/drive/tools/read_file_content/index.d.ts +6 -0
- package/dist/drive/tools/read_file_content/index.d.ts.map +1 -0
- package/dist/drive/tools/read_file_content/index.js +19 -0
- package/dist/drive/tools/read_file_content/index.js.map +1 -0
- package/dist/drive/tools/read_file_content/schema.d.ts +10 -0
- package/dist/drive/tools/read_file_content/schema.d.ts.map +1 -0
- package/dist/drive/tools/read_file_content/schema.js +10 -0
- package/dist/drive/tools/read_file_content/schema.js.map +1 -0
- package/dist/drive/tools/registry.d.ts +193 -0
- package/dist/drive/tools/registry.d.ts.map +1 -0
- package/dist/drive/tools/registry.js +24 -0
- package/dist/drive/tools/registry.js.map +1 -0
- package/dist/drive/tools/search_files/handler.d.ts +5 -0
- package/dist/drive/tools/search_files/handler.d.ts.map +1 -0
- package/dist/drive/tools/search_files/handler.js +18 -0
- package/dist/drive/tools/search_files/handler.js.map +1 -0
- package/dist/drive/tools/search_files/index.d.ts +31 -0
- package/dist/drive/tools/search_files/index.d.ts.map +1 -0
- package/dist/drive/tools/search_files/index.js +17 -0
- package/dist/drive/tools/search_files/index.js.map +1 -0
- package/dist/drive/tools/search_files/schema.d.ts +35 -0
- package/dist/drive/tools/search_files/schema.d.ts.map +1 -0
- package/dist/drive/tools/search_files/schema.js +27 -0
- package/dist/drive/tools/search_files/schema.js.map +1 -0
- package/dist/{sheets/lib → lib}/enums.d.ts +1 -1
- package/dist/lib/enums.d.ts.map +1 -0
- package/dist/{sheets/lib → lib}/enums.js +1 -1
- package/dist/lib/enums.js.map +1 -0
- package/dist/sheets/lib/filters.d.ts.map +1 -1
- package/dist/sheets/lib/filters.js +1 -1
- package/dist/sheets/lib/filters.js.map +1 -1
- package/dist/sheets/lib/metadata.d.ts.map +1 -1
- package/dist/sheets/lib/metadata.js +1 -1
- package/dist/sheets/lib/metadata.js.map +1 -1
- package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
- package/dist/sheets/lib/spreadsheet.js +1 -1
- package/dist/sheets/lib/spreadsheet.js.map +1 -1
- package/dist/sheets/lib/values.d.ts.map +1 -1
- package/dist/sheets/lib/values.js +1 -1
- package/dist/sheets/lib/values.js.map +1 -1
- package/package.json +9 -3
- package/dist/sheets/lib/enums.d.ts.map +0 -1
- package/dist/sheets/lib/enums.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const download_file_content: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
|
|
2
|
+
fileId: import("zod").ZodString;
|
|
3
|
+
exportMimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5
|
+
id: import("zod").ZodString;
|
|
6
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
content: import("zod").ZodString;
|
|
9
|
+
}, import("zod/v4/core").$strip>>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;;iCAgBhC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { driveOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
export const download_file_content = driveOperation({
|
|
5
|
+
description: 'Download the content of a Drive file as a base64 encoded string. For Google Drive ' +
|
|
6
|
+
'native file types, exportMimeType determines the output format (default text). For a ' +
|
|
7
|
+
'natural language representation of Drive content, prefer read_file_content; if a file ' +
|
|
8
|
+
'is not found, use search_files.',
|
|
9
|
+
annotations: {
|
|
10
|
+
readOnlyHint: true,
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
idempotentHint: true,
|
|
13
|
+
openWorldHint: false,
|
|
14
|
+
},
|
|
15
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/download_file_content',
|
|
16
|
+
schema,
|
|
17
|
+
handler,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC;IAClD,WAAW,EACT,oFAAoF;QACpF,uFAAuF;QACvF,wFAAwF;QACxF,iCAAiC;IACnC,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,kGAAkG;IACpG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const download_file_content = driveOperation({\n description:\n 'Download the content of a Drive file as a base64 encoded string. For Google Drive ' +\n 'native file types, exportMimeType determines the output format (default text). For a ' +\n 'natural language representation of Drive content, prefer read_file_content; if a file ' +\n 'is not found, use search_files.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/download_file_content',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
fileId: z.ZodString;
|
|
5
|
+
exportMimeType: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
output: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM;;;;;;;;;;;CAiBlB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const schema = {
|
|
3
|
+
input: z.object({
|
|
4
|
+
fileId: z.string().describe('The ID of the file to retrieve.'),
|
|
5
|
+
exportMimeType: z
|
|
6
|
+
.string()
|
|
7
|
+
.optional()
|
|
8
|
+
.describe('For Google native files, the MIME type to export the file to, ignored otherwise. ' +
|
|
9
|
+
'Defaults to text if not specified.'),
|
|
10
|
+
}),
|
|
11
|
+
output: z.object({
|
|
12
|
+
id: z.string().describe('The id of the file that was fetched.'),
|
|
13
|
+
title: z.string().optional().describe('The title of the file.'),
|
|
14
|
+
mimeType: z.string().optional().describe('The mime type of the content returned.'),
|
|
15
|
+
content: z.string().describe('The base64 encoded content of the file.'),
|
|
16
|
+
}),
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/download_file_content/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QAC9D,cAAc,EAAE,CAAC;aACd,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,mFAAmF;YACjF,oCAAoC,CACvC;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QAC/D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAClF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;KACxE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const schema = {\n input: z.object({\n fileId: z.string().describe('The ID of the file to retrieve.'),\n exportMimeType: z\n .string()\n .optional()\n .describe(\n 'For Google native files, the MIME type to export the file to, ignored otherwise. ' +\n 'Defaults to text if not specified.',\n ),\n }),\n output: z.object({\n id: z.string().describe('The id of the file that was fetched.'),\n title: z.string().optional().describe('The title of the file.'),\n mimeType: z.string().optional().describe('The mime type of the content returned.'),\n content: z.string().describe('The base64 encoded content of the file.'),\n }),\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { drive_v3 } from '@googleapis/drive';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAOxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';
|
|
2
|
+
export async function handler(drive, args) {
|
|
3
|
+
const { data } = await drive.files.get({
|
|
4
|
+
fileId: args.fileId,
|
|
5
|
+
fields: TOOL_FILE_FIELDS,
|
|
6
|
+
supportsAllDrives: true,
|
|
7
|
+
});
|
|
8
|
+
return projectFile(data);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGlE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;QACrC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,MAAM,EAAE,gBAAgB;QACxB,iBAAiB,EAAE,IAAI;KACxB,CAAC,CAAC;IACH,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n drive: drive_v3.Drive,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await drive.files.get({\n fileId: args.fileId,\n fields: TOOL_FILE_FIELDS,\n supportsAllDrives: true,\n });\n return projectFile(data);\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const get_file_metadata: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
|
|
2
|
+
fileId: import("zod").ZodString;
|
|
3
|
+
excludeContentSnippets: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5
|
+
id: import("zod").ZodString;
|
|
6
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
fileSize: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
fileExtension: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
contentSnippet: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
viewUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
sharedWithMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
viewedByMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
owner: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
canAddChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
20
|
+
starred: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
21
|
+
trashed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
22
|
+
folderColorRgb: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
24
|
+
writersCanShare: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
25
|
+
}, import("zod/v4/core").$strip>>;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;iCAc5B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { driveOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
export const get_file_metadata = driveOperation({
|
|
5
|
+
description: "Retrieve general metadata about a user's Drive file. If the file cannot be located, " +
|
|
6
|
+
'use search_files to help identify the requested file.',
|
|
7
|
+
annotations: {
|
|
8
|
+
readOnlyHint: true,
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
idempotentHint: true,
|
|
11
|
+
openWorldHint: false,
|
|
12
|
+
},
|
|
13
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_metadata',
|
|
14
|
+
schema,
|
|
15
|
+
handler,
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;IAC9C,WAAW,EACT,sFAAsF;QACtF,uDAAuD;IACzD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,8FAA8F;IAChG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const get_file_metadata = driveOperation({\n description:\n \"Retrieve general metadata about a user's Drive file. If the file cannot be located, \" +\n 'use search_files to help identify the requested file.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_metadata',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
fileId: z.ZodString;
|
|
5
|
+
excludeContentSnippets: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
output: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
12
|
+
fileSize: z.ZodOptional<z.ZodString>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
fileExtension: z.ZodOptional<z.ZodString>;
|
|
15
|
+
contentSnippet: z.ZodOptional<z.ZodString>;
|
|
16
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
17
|
+
sharedWithMeTime: z.ZodOptional<z.ZodString>;
|
|
18
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
19
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
viewedByMeTime: z.ZodOptional<z.ZodString>;
|
|
21
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
22
|
+
canAddChildren: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
starred: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
trashed: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
folderColorRgb: z.ZodOptional<z.ZodString>;
|
|
26
|
+
copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
writersCanShare: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { File } from '../../entities/File.js';
|
|
3
|
+
export const schema = {
|
|
4
|
+
input: z.object({
|
|
5
|
+
fileId: z.string().describe('The ID of the file to retrieve.'),
|
|
6
|
+
excludeContentSnippets: z
|
|
7
|
+
.boolean()
|
|
8
|
+
.optional()
|
|
9
|
+
.describe('If true, the content snippet will be excluded from the response. Accepted for contract ' +
|
|
10
|
+
'fidelity; this server never produces snippets (the REST API serves none), so there is ' +
|
|
11
|
+
'nothing to exclude either way.'),
|
|
12
|
+
}),
|
|
13
|
+
output: File,
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_metadata/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QAC9D,sBAAsB,EAAE,CAAC;aACtB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF;YACvF,wFAAwF;YACxF,gCAAgC,CACnC;KACJ,CAAC;IACF,MAAM,EAAE,IAAI;CACb,CAAC","sourcesContent":["import { z } from 'zod';\nimport { File } from '../../entities/File.js';\n\nexport const schema = {\n input: z.object({\n fileId: z.string().describe('The ID of the file to retrieve.'),\n excludeContentSnippets: z\n .boolean()\n .optional()\n .describe(\n 'If true, the content snippet will be excluded from the response. Accepted for contract ' +\n 'fidelity; this server never produces snippets (the REST API serves none), so there is ' +\n 'nothing to exclude either way.',\n ),\n }),\n output: File,\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { drive_v3 } from '@googleapis/drive';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAkBxC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { projectPermission } from '../../lib/file.js';
|
|
3
|
+
export async function handler(drive, args) {
|
|
4
|
+
// The documented output is a bare permission list with no page token, so the
|
|
5
|
+
// handler walks every REST page rather than truncating at the first.
|
|
6
|
+
const permissions = [];
|
|
7
|
+
let pageToken;
|
|
8
|
+
do {
|
|
9
|
+
const { data } = await drive.permissions.list(forGoogle({
|
|
10
|
+
fileId: args.fileId,
|
|
11
|
+
fields: 'nextPageToken,permissions(role,displayName,type,emailAddress,view)',
|
|
12
|
+
pageToken,
|
|
13
|
+
supportsAllDrives: true,
|
|
14
|
+
}));
|
|
15
|
+
permissions.push(...(data.permissions ?? []).map(projectPermission));
|
|
16
|
+
pageToken = data.nextPageToken ?? undefined;
|
|
17
|
+
} while (pageToken);
|
|
18
|
+
return { permissions };
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,6EAA6E;IAC7E,qEAAqE;IACrE,MAAM,WAAW,GAAiD,EAAE,CAAC;IACrE,IAAI,SAA6B,CAAC;IAClC,GAAG,CAAC;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,IAAI,CAC3C,SAAS,CAAC;YACR,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,oEAAoE;YAC5E,SAAS;YACT,iBAAiB,EAAE,IAAI;SACxB,CAAC,CACH,CAAC;QACF,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACrE,SAAS,GAAG,IAAI,CAAC,aAAa,IAAI,SAAS,CAAC;IAC9C,CAAC,QAAQ,SAAS,EAAE;IACpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectPermission } from '../../lib/file.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n drive: drive_v3.Drive,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n // The documented output is a bare permission list with no page token, so the\n // handler walks every REST page rather than truncating at the first.\n const permissions: z.infer<typeof schema.output>['permissions'] = [];\n let pageToken: string | undefined;\n do {\n const { data } = await drive.permissions.list(\n forGoogle({\n fileId: args.fileId,\n fields: 'nextPageToken,permissions(role,displayName,type,emailAddress,view)',\n pageToken,\n supportsAllDrives: true,\n }),\n );\n permissions.push(...(data.permissions ?? []).map(projectPermission));\n pageToken = data.nextPageToken ?? undefined;\n } while (pageToken);\n return { permissions };\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const get_file_permissions: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
|
|
2
|
+
fileId: import("zod").ZodString;
|
|
3
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4
|
+
permissions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5
|
+
role: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
6
|
+
organizer: "organizer";
|
|
7
|
+
owner: "owner";
|
|
8
|
+
fileOrganizer: "fileOrganizer";
|
|
9
|
+
writer: "writer";
|
|
10
|
+
commenter: "commenter";
|
|
11
|
+
reader: "reader";
|
|
12
|
+
}>>;
|
|
13
|
+
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
15
|
+
domain: "domain";
|
|
16
|
+
user: "user";
|
|
17
|
+
group: "group";
|
|
18
|
+
anyone: "anyone";
|
|
19
|
+
}>>;
|
|
20
|
+
emailAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
view: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
22
|
+
metadata: "metadata";
|
|
23
|
+
published: "published";
|
|
24
|
+
}>>;
|
|
25
|
+
}, import("zod/v4/core").$strip>>;
|
|
26
|
+
}, import("zod/v4/core").$strip>>;
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iCAY/B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { driveOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
export const get_file_permissions = driveOperation({
|
|
5
|
+
description: 'List the permissions of a Drive file.',
|
|
6
|
+
annotations: {
|
|
7
|
+
readOnlyHint: true,
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
idempotentHint: true,
|
|
10
|
+
openWorldHint: false,
|
|
11
|
+
},
|
|
12
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_permissions',
|
|
13
|
+
schema,
|
|
14
|
+
handler,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;IACjD,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,iGAAiG;IACnG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const get_file_permissions = driveOperation({\n description: 'List the permissions of a Drive file.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/get_file_permissions',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
fileId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
output: z.ZodObject<{
|
|
7
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
8
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
organizer: "organizer";
|
|
10
|
+
owner: "owner";
|
|
11
|
+
fileOrganizer: "fileOrganizer";
|
|
12
|
+
writer: "writer";
|
|
13
|
+
commenter: "commenter";
|
|
14
|
+
reader: "reader";
|
|
15
|
+
}>>;
|
|
16
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
domain: "domain";
|
|
19
|
+
user: "user";
|
|
20
|
+
group: "group";
|
|
21
|
+
anyone: "anyone";
|
|
22
|
+
}>>;
|
|
23
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
24
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
metadata: "metadata";
|
|
26
|
+
published: "published";
|
|
27
|
+
}>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Permission } from '../../entities/Permission.js';
|
|
3
|
+
export const schema = {
|
|
4
|
+
input: z.object({
|
|
5
|
+
fileId: z.string().describe('The ID of the file to get permissions for.'),
|
|
6
|
+
}),
|
|
7
|
+
output: z.object({
|
|
8
|
+
permissions: z.array(Permission).describe('The list of permissions.'),
|
|
9
|
+
}),
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/get_file_permissions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;KAC1E,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;KACtE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Permission } from '../../entities/Permission.js';\n\nexport const schema = {\n input: z.object({\n fileId: z.string().describe('The ID of the file to get permissions for.'),\n }),\n output: z.object({\n permissions: z.array(Permission).describe('The list of permissions.'),\n }),\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { drive_v3 } from '@googleapis/drive';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAS1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAexC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';
|
|
3
|
+
/** The MCP orderBy vocabulary mapped onto REST `orderBy`, most recent first. */
|
|
4
|
+
const orderings = {
|
|
5
|
+
recency: 'recency desc',
|
|
6
|
+
lastModified: 'modifiedTime desc',
|
|
7
|
+
lastModifiedByMe: 'modifiedByMeTime desc',
|
|
8
|
+
};
|
|
9
|
+
export async function handler(drive, args) {
|
|
10
|
+
const { data } = await drive.files.list(forGoogle({
|
|
11
|
+
orderBy: orderings[args.orderBy ?? 'recency'],
|
|
12
|
+
pageSize: args.pageSize ?? 10,
|
|
13
|
+
pageToken: args.pageToken,
|
|
14
|
+
fields: `nextPageToken,files(${TOOL_FILE_FIELDS})`,
|
|
15
|
+
supportsAllDrives: true,
|
|
16
|
+
includeItemsFromAllDrives: true,
|
|
17
|
+
}));
|
|
18
|
+
return {
|
|
19
|
+
files: (data.files ?? []).map(projectFile),
|
|
20
|
+
nextPageToken: data.nextPageToken ?? undefined,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGlE,gFAAgF;AAChF,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,mBAAmB;IACjC,gBAAgB,EAAE,uBAAuB;CACjC,CAAC;AAEX,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,CACrC,SAAS,CAAC;QACR,OAAO,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC;QAC7C,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,EAAE;QAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,MAAM,EAAE,uBAAuB,gBAAgB,GAAG;QAClD,iBAAiB,EAAE,IAAI;QACvB,yBAAyB,EAAE,IAAI;KAChC,CAAC,CACH,CAAC;IACF,OAAO;QACL,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC;QAC1C,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,SAAS;KAC/C,CAAC;AACJ,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectFile, TOOL_FILE_FIELDS } from '../../lib/file.js';\nimport type { schema } from './schema.js';\n\n/** The MCP orderBy vocabulary mapped onto REST `orderBy`, most recent first. */\nconst orderings = {\n recency: 'recency desc',\n lastModified: 'modifiedTime desc',\n lastModifiedByMe: 'modifiedByMeTime desc',\n} as const;\n\nexport async function handler(\n drive: drive_v3.Drive,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await drive.files.list(\n forGoogle({\n orderBy: orderings[args.orderBy ?? 'recency'],\n pageSize: args.pageSize ?? 10,\n pageToken: args.pageToken,\n fields: `nextPageToken,files(${TOOL_FILE_FIELDS})`,\n supportsAllDrives: true,\n includeItemsFromAllDrives: true,\n }),\n );\n return {\n files: (data.files ?? []).map(projectFile),\n nextPageToken: data.nextPageToken ?? undefined,\n };\n}\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const list_recent_files: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
|
|
2
|
+
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
3
|
+
lastModified: "lastModified";
|
|
4
|
+
recency: "recency";
|
|
5
|
+
lastModifiedByMe: "lastModifiedByMe";
|
|
6
|
+
}>>;
|
|
7
|
+
pageToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
|
+
excludeContentSnippets: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
10
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
11
|
+
files: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12
|
+
id: import("zod").ZodString;
|
|
13
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
fileSize: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
fileExtension: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
contentSnippet: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
viewUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
sharedWithMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
viewedByMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
owner: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
canAddChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
27
|
+
starred: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
28
|
+
trashed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
29
|
+
folderColorRgb: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
31
|
+
writersCanShare: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
32
|
+
}, import("zod/v4/core").$strip>>;
|
|
33
|
+
nextPageToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
}, import("zod/v4/core").$strip>>;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAa5B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { driveOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
export const list_recent_files = driveOperation({
|
|
5
|
+
description: 'Find recent files for a user with a specified sort order (default recency, page size 10).',
|
|
6
|
+
annotations: {
|
|
7
|
+
readOnlyHint: true,
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
idempotentHint: true,
|
|
10
|
+
openWorldHint: false,
|
|
11
|
+
},
|
|
12
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/list_recent_files',
|
|
13
|
+
schema,
|
|
14
|
+
handler,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;IAC9C,WAAW,EACT,2FAA2F;IAC7F,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,8FAA8F;IAChG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { driveOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\nexport const list_recent_files = driveOperation({\n description:\n 'Find recent files for a user with a specified sort order (default recency, page size 10).',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/list_recent_files',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
lastModified: "lastModified";
|
|
6
|
+
recency: "recency";
|
|
7
|
+
lastModifiedByMe: "lastModifiedByMe";
|
|
8
|
+
}>>;
|
|
9
|
+
pageToken: z.ZodOptional<z.ZodString>;
|
|
10
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
excludeContentSnippets: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
output: z.ZodObject<{
|
|
14
|
+
files: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
title: z.ZodOptional<z.ZodString>;
|
|
17
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
19
|
+
fileSize: z.ZodOptional<z.ZodString>;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
fileExtension: z.ZodOptional<z.ZodString>;
|
|
22
|
+
contentSnippet: z.ZodOptional<z.ZodString>;
|
|
23
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
24
|
+
sharedWithMeTime: z.ZodOptional<z.ZodString>;
|
|
25
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
26
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
27
|
+
viewedByMeTime: z.ZodOptional<z.ZodString>;
|
|
28
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
29
|
+
canAddChildren: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
starred: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
trashed: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
folderColorRgb: z.ZodOptional<z.ZodString>;
|
|
33
|
+
copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
writersCanShare: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { File } from '../../entities/File.js';
|
|
3
|
+
export const schema = {
|
|
4
|
+
input: z.object({
|
|
5
|
+
orderBy: z
|
|
6
|
+
.enum(['recency', 'lastModified', 'lastModifiedByMe'])
|
|
7
|
+
.optional()
|
|
8
|
+
.describe("The sort order for the files. recency: most recent timestamp from the file's " +
|
|
9
|
+
'date-time fields; lastModified: last time the file was modified by anyone; ' +
|
|
10
|
+
'lastModifiedByMe: last time the file was modified by the user. Defaults to recency.'),
|
|
11
|
+
pageToken: z.string().optional().describe('The page token to use for pagination.'),
|
|
12
|
+
pageSize: z
|
|
13
|
+
.number()
|
|
14
|
+
.int()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe('The maximum number of files to return. Defaults to 10.'),
|
|
17
|
+
excludeContentSnippets: z
|
|
18
|
+
.boolean()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('If true, the content snippet will be excluded from the response. Accepted for contract ' +
|
|
21
|
+
'fidelity; this server never produces snippets (the REST API serves none), so there is ' +
|
|
22
|
+
'nothing to exclude either way.'),
|
|
23
|
+
}),
|
|
24
|
+
output: z.object({
|
|
25
|
+
files: z.array(File).describe('The list of files.'),
|
|
26
|
+
nextPageToken: z.string().optional().describe('The next page token.'),
|
|
27
|
+
}),
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/tools/list_recent_files/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC;aACP,IAAI,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;aACrD,QAAQ,EAAE;aACV,QAAQ,CACP,+EAA+E;YAC7E,6EAA6E;YAC7E,qFAAqF,CACxF;QACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAClF,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,wDAAwD,CAAC;QACrE,sBAAsB,EAAE,CAAC;aACtB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF;YACvF,wFAAwF;YACxF,gCAAgC,CACnC;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QACnD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;KACtE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { File } from '../../entities/File.js';\n\nexport const schema = {\n input: z.object({\n orderBy: z\n .enum(['recency', 'lastModified', 'lastModifiedByMe'])\n .optional()\n .describe(\n \"The sort order for the files. recency: most recent timestamp from the file's \" +\n 'date-time fields; lastModified: last time the file was modified by anyone; ' +\n 'lastModifiedByMe: last time the file was modified by the user. Defaults to recency.',\n ),\n pageToken: z.string().optional().describe('The page token to use for pagination.'),\n pageSize: z\n .number()\n .int()\n .optional()\n .describe('The maximum number of files to return. Defaults to 10.'),\n excludeContentSnippets: z\n .boolean()\n .optional()\n .describe(\n 'If true, the content snippet will be excluded from the response. Accepted for contract ' +\n 'fidelity; this server never produces snippets (the REST API serves none), so there is ' +\n 'nothing to exclude either way.',\n ),\n }),\n output: z.object({\n files: z.array(File).describe('The list of files.'),\n nextPageToken: z.string().optional().describe('The next page token.'),\n }),\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { drive_v3 } from '@googleapis/drive';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(drive: drive_v3.Drive, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/drive/tools/read_file_content/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAiCxC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isGoogleNative, isTextLike, textExportMime } from '../../lib/content.js';
|
|
2
|
+
export async function handler(drive, args) {
|
|
3
|
+
const { data: meta } = await drive.files.get({
|
|
4
|
+
fileId: args.fileId,
|
|
5
|
+
fields: 'id,mimeType',
|
|
6
|
+
supportsAllDrives: true,
|
|
7
|
+
});
|
|
8
|
+
const mimeType = meta.mimeType ?? '';
|
|
9
|
+
if (isGoogleNative(mimeType)) {
|
|
10
|
+
const exportMime = textExportMime(mimeType);
|
|
11
|
+
if (!exportMime) {
|
|
12
|
+
throw new Error(`${mimeType} has no text representation; use download_file_content with an exportMimeType.`);
|
|
13
|
+
}
|
|
14
|
+
const res = await drive.files.export({ fileId: args.fileId, mimeType: exportMime }, { responseType: 'arraybuffer' });
|
|
15
|
+
return { fileContent: Buffer.from(res.data).toString('utf8') };
|
|
16
|
+
}
|
|
17
|
+
if (!isTextLike(mimeType)) {
|
|
18
|
+
throw new Error(`${mimeType || 'unknown mime type'} is not a text type this server can render; ` +
|
|
19
|
+
'use download_file_content for base64 bytes.');
|
|
20
|
+
}
|
|
21
|
+
const res = await drive.files.get({ fileId: args.fileId, alt: 'media', supportsAllDrives: true }, { responseType: 'arraybuffer' });
|
|
22
|
+
return { fileContent: Buffer.from(res.data).toString('utf8') };
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=handler.js.map
|