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,69 @@
|
|
|
1
|
+
import { create_comment } from './create_comment/index.js';
|
|
2
|
+
import { create_reply } from './create_reply/index.js';
|
|
3
|
+
import { create_shared_drive } from './create_shared_drive/index.js';
|
|
4
|
+
import { delete_comment } from './delete_comment/index.js';
|
|
5
|
+
import { delete_file } from './delete_file/index.js';
|
|
6
|
+
import { delete_reply } from './delete_reply/index.js';
|
|
7
|
+
import { delete_revision } from './delete_revision/index.js';
|
|
8
|
+
import { delete_shared_drive } from './delete_shared_drive/index.js';
|
|
9
|
+
import { empty_trash } from './empty_trash/index.js';
|
|
10
|
+
import { get_about } from './get_about/index.js';
|
|
11
|
+
import { get_comment } from './get_comment/index.js';
|
|
12
|
+
import { get_reply } from './get_reply/index.js';
|
|
13
|
+
import { get_revision } from './get_revision/index.js';
|
|
14
|
+
import { get_shared_drive } from './get_shared_drive/index.js';
|
|
15
|
+
import { hide_shared_drive } from './hide_shared_drive/index.js';
|
|
16
|
+
import { list_comments } from './list_comments/index.js';
|
|
17
|
+
import { list_replies } from './list_replies/index.js';
|
|
18
|
+
import { list_revisions } from './list_revisions/index.js';
|
|
19
|
+
import { list_shared_drives } from './list_shared_drives/index.js';
|
|
20
|
+
import { trash_file } from './trash_file/index.js';
|
|
21
|
+
import { unhide_shared_drive } from './unhide_shared_drive/index.js';
|
|
22
|
+
import { untrash_file } from './untrash_file/index.js';
|
|
23
|
+
import { update_comment } from './update_comment/index.js';
|
|
24
|
+
import { update_file } from './update_file/index.js';
|
|
25
|
+
import { update_reply } from './update_reply/index.js';
|
|
26
|
+
import { update_revision } from './update_revision/index.js';
|
|
27
|
+
import { update_shared_drive } from './update_shared_drive/index.js';
|
|
28
|
+
/**
|
|
29
|
+
* REST-sourced operations (beyond the MCP toolset), sourced from
|
|
30
|
+
* `developers.google.com/workspace/drive/api/reference/rest/v3`. Same wire
|
|
31
|
+
* surface as tools; merged into the registry by the server. Irreversible ones
|
|
32
|
+
* (permanent delete, empty trash) carry `destructive`.
|
|
33
|
+
*/
|
|
34
|
+
export const methods = {
|
|
35
|
+
// files
|
|
36
|
+
update_file,
|
|
37
|
+
trash_file,
|
|
38
|
+
untrash_file,
|
|
39
|
+
delete_file,
|
|
40
|
+
empty_trash,
|
|
41
|
+
// comments
|
|
42
|
+
list_comments,
|
|
43
|
+
get_comment,
|
|
44
|
+
create_comment,
|
|
45
|
+
update_comment,
|
|
46
|
+
delete_comment,
|
|
47
|
+
// replies
|
|
48
|
+
list_replies,
|
|
49
|
+
get_reply,
|
|
50
|
+
create_reply,
|
|
51
|
+
update_reply,
|
|
52
|
+
delete_reply,
|
|
53
|
+
// revisions
|
|
54
|
+
list_revisions,
|
|
55
|
+
get_revision,
|
|
56
|
+
update_revision,
|
|
57
|
+
delete_revision,
|
|
58
|
+
// shared drives
|
|
59
|
+
list_shared_drives,
|
|
60
|
+
get_shared_drive,
|
|
61
|
+
create_shared_drive,
|
|
62
|
+
update_shared_drive,
|
|
63
|
+
delete_shared_drive,
|
|
64
|
+
hide_shared_drive,
|
|
65
|
+
unhide_shared_drive,
|
|
66
|
+
// account
|
|
67
|
+
get_about,
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/drive/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,QAAQ;IACR,WAAW;IACX,UAAU;IACV,YAAY;IACZ,WAAW;IACX,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IACX,cAAc;IACd,cAAc;IACd,cAAc;IACd,UAAU;IACV,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,YAAY;IACZ,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,UAAU;IACV,SAAS;CAC6C,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { AnyOperation } from '../../lib/operation.js';\nimport { create_comment } from './create_comment/index.js';\nimport { create_reply } from './create_reply/index.js';\nimport { create_shared_drive } from './create_shared_drive/index.js';\nimport { delete_comment } from './delete_comment/index.js';\nimport { delete_file } from './delete_file/index.js';\nimport { delete_reply } from './delete_reply/index.js';\nimport { delete_revision } from './delete_revision/index.js';\nimport { delete_shared_drive } from './delete_shared_drive/index.js';\nimport { empty_trash } from './empty_trash/index.js';\nimport { get_about } from './get_about/index.js';\nimport { get_comment } from './get_comment/index.js';\nimport { get_reply } from './get_reply/index.js';\nimport { get_revision } from './get_revision/index.js';\nimport { get_shared_drive } from './get_shared_drive/index.js';\nimport { hide_shared_drive } from './hide_shared_drive/index.js';\nimport { list_comments } from './list_comments/index.js';\nimport { list_replies } from './list_replies/index.js';\nimport { list_revisions } from './list_revisions/index.js';\nimport { list_shared_drives } from './list_shared_drives/index.js';\nimport { trash_file } from './trash_file/index.js';\nimport { unhide_shared_drive } from './unhide_shared_drive/index.js';\nimport { untrash_file } from './untrash_file/index.js';\nimport { update_comment } from './update_comment/index.js';\nimport { update_file } from './update_file/index.js';\nimport { update_reply } from './update_reply/index.js';\nimport { update_revision } from './update_revision/index.js';\nimport { update_shared_drive } from './update_shared_drive/index.js';\n\n/**\n * REST-sourced operations (beyond the MCP toolset), sourced from\n * `developers.google.com/workspace/drive/api/reference/rest/v3`. Same wire\n * surface as tools; merged into the registry by the server. Irreversible ones\n * (permanent delete, empty trash) carry `destructive`.\n */\nexport const methods = {\n // files\n update_file,\n trash_file,\n untrash_file,\n delete_file,\n empty_trash,\n // comments\n list_comments,\n get_comment,\n create_comment,\n update_comment,\n delete_comment,\n // replies\n list_replies,\n get_reply,\n create_reply,\n update_reply,\n delete_reply,\n // revisions\n list_revisions,\n get_revision,\n update_revision,\n delete_revision,\n // shared drives\n list_shared_drives,\n get_shared_drive,\n create_shared_drive,\n update_shared_drive,\n delete_shared_drive,\n hide_shared_drive,\n unhide_shared_drive,\n // account\n get_about,\n} satisfies Record<string, AnyOperation<drive_v3.Drive>>;\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/methods/trash_file/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,CAQxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { METHOD_FILE_FIELDS, projectFile } from '../../lib/file.js';
|
|
2
|
+
export async function handler(drive, args) {
|
|
3
|
+
const { data } = await drive.files.update({
|
|
4
|
+
fileId: args.fileId,
|
|
5
|
+
requestBody: { trashed: true },
|
|
6
|
+
fields: METHOD_FILE_FIELDS,
|
|
7
|
+
supportsAllDrives: true,
|
|
8
|
+
});
|
|
9
|
+
return projectFile(data);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/methods/trash_file/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGpE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QACxC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QAC9B,MAAM,EAAE,kBAAkB;QAC1B,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 { METHOD_FILE_FIELDS, projectFile } 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.update({\n fileId: args.fileId,\n requestBody: { trashed: true },\n fields: METHOD_FILE_FIELDS,\n supportsAllDrives: true,\n });\n return projectFile(data);\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const trash_file: 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
|
+
id: import("zod").ZodString;
|
|
5
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
fileSize: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
fileExtension: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
contentSnippet: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
viewUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
sharedWithMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
viewedByMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
owner: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
canAddChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
19
|
+
starred: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
20
|
+
trashed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
21
|
+
folderColorRgb: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
23
|
+
writersCanShare: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
24
|
+
}, import("zod/v4/core").$strip>>;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/trash_file/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;iCAcrB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { driveOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
export const trash_file = driveOperation({
|
|
5
|
+
description: 'Move a file to the trash (files.update with trashed). Only the owner may trash a file; ' +
|
|
6
|
+
'Drive purges trashed files after 30 days, and untrash_file restores them before that. ' +
|
|
7
|
+
'delete_file bypasses the trash entirely.',
|
|
8
|
+
annotations: {
|
|
9
|
+
readOnlyHint: false,
|
|
10
|
+
destructiveHint: true,
|
|
11
|
+
idempotentHint: true,
|
|
12
|
+
openWorldHint: false,
|
|
13
|
+
},
|
|
14
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/files/update',
|
|
15
|
+
schema,
|
|
16
|
+
handler,
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/methods/trash_file/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,UAAU,GAAG,cAAc,CAAC;IACvC,WAAW,EACT,yFAAyF;QACzF,wFAAwF;QACxF,0CAA0C;IAC5C,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,kFAAkF;IAC1F,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 trash_file = driveOperation({\n description:\n 'Move a file to the trash (files.update with trashed). Only the owner may trash a file; ' +\n 'Drive purges trashed files after 30 days, and untrash_file restores them before that. ' +\n 'delete_file bypasses the trash entirely.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/files/update',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
id: z.ZodString;
|
|
8
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
11
|
+
fileSize: z.ZodOptional<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
fileExtension: z.ZodOptional<z.ZodString>;
|
|
14
|
+
contentSnippet: z.ZodOptional<z.ZodString>;
|
|
15
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
16
|
+
sharedWithMeTime: z.ZodOptional<z.ZodString>;
|
|
17
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
18
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
19
|
+
viewedByMeTime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
21
|
+
canAddChildren: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
starred: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
trashed: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
folderColorRgb: z.ZodOptional<z.ZodString>;
|
|
25
|
+
copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
writersCanShare: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/trash_file/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/methods/trash_file/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,0CAA0C,CAAC;KACxE,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 move to the trash.'),\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/methods/unhide_shared_drive/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,CAMxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { projectSharedDrive, SHARED_DRIVE_FIELDS } from '../../lib/shared-drive.js';
|
|
2
|
+
export async function handler(drive, args) {
|
|
3
|
+
const { data } = await drive.drives.unhide({
|
|
4
|
+
driveId: args.driveId,
|
|
5
|
+
fields: SHARED_DRIVE_FIELDS,
|
|
6
|
+
});
|
|
7
|
+
return projectSharedDrive(data);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/methods/unhide_shared_drive/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGpF,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,MAAM,EAAE,mBAAmB;KAC5B,CAAC,CAAC;IACH,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { projectSharedDrive, SHARED_DRIVE_FIELDS } from '../../lib/shared-drive.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.drives.unhide({\n driveId: args.driveId,\n fields: SHARED_DRIVE_FIELDS,\n });\n return projectSharedDrive(data);\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const unhide_shared_drive: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
|
|
2
|
+
driveId: import("zod").ZodString;
|
|
3
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4
|
+
id: import("zod").ZodString;
|
|
5
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
colorRgb: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
themeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
backgroundImageLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
hidden: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
11
|
+
restrictions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
12
|
+
adminManagedRestrictions: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
13
|
+
copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
14
|
+
domainUsersOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
+
driveMembersOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
16
|
+
sharingFoldersRequiresOrganizerPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17
|
+
}, import("zod/v4/core").$strip>>;
|
|
18
|
+
}, import("zod/v4/core").$strip>>;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/unhide_shared_drive/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;iCAW9B,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 unhide_shared_drive = driveOperation({
|
|
5
|
+
description: 'Restore a shared drive to the default view.',
|
|
6
|
+
annotations: {
|
|
7
|
+
readOnlyHint: false,
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
idempotentHint: true,
|
|
10
|
+
openWorldHint: false,
|
|
11
|
+
},
|
|
12
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/drives/unhide',
|
|
13
|
+
schema,
|
|
14
|
+
handler,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/methods/unhide_shared_drive/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,mBAAmB,GAAG,cAAc,CAAC;IAChD,WAAW,EAAE,6CAA6C;IAC1D,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,mFAAmF;IAC3F,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 unhide_shared_drive = driveOperation({\n description: 'Restore a shared drive to the default view.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/drives/unhide',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
driveId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
output: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
colorRgb: z.ZodOptional<z.ZodString>;
|
|
10
|
+
themeId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
backgroundImageLink: z.ZodOptional<z.ZodString>;
|
|
12
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
13
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
restrictions: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
adminManagedRestrictions: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
domainUsersOnly: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
driveMembersOnly: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
sharingFoldersRequiresOrganizerPermission: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/unhide_shared_drive/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;CAKlB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SharedDrive } from '../../entities/SharedDrive.js';
|
|
3
|
+
export const schema = {
|
|
4
|
+
input: z.object({
|
|
5
|
+
driveId: z.string().describe('The ID of the shared drive.'),
|
|
6
|
+
}),
|
|
7
|
+
output: SharedDrive,
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/methods/unhide_shared_drive/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;KAC5D,CAAC;IACF,MAAM,EAAE,WAAW;CACpB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { SharedDrive } from '../../entities/SharedDrive.js';\n\nexport const schema = {\n input: z.object({\n driveId: z.string().describe('The ID of the shared drive.'),\n }),\n output: SharedDrive,\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/methods/untrash_file/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,CAQxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { METHOD_FILE_FIELDS, projectFile } from '../../lib/file.js';
|
|
2
|
+
export async function handler(drive, args) {
|
|
3
|
+
const { data } = await drive.files.update({
|
|
4
|
+
fileId: args.fileId,
|
|
5
|
+
requestBody: { trashed: false },
|
|
6
|
+
fields: METHOD_FILE_FIELDS,
|
|
7
|
+
supportsAllDrives: true,
|
|
8
|
+
});
|
|
9
|
+
return projectFile(data);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/methods/untrash_file/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGpE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QACxC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC/B,MAAM,EAAE,kBAAkB;QAC1B,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 { METHOD_FILE_FIELDS, projectFile } 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.update({\n fileId: args.fileId,\n requestBody: { trashed: false },\n fields: METHOD_FILE_FIELDS,\n supportsAllDrives: true,\n });\n return projectFile(data);\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const untrash_file: 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
|
+
id: import("zod").ZodString;
|
|
5
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
parentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
fileSize: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
fileExtension: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
contentSnippet: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
viewUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
sharedWithMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
viewedByMeTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
owner: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
canAddChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
19
|
+
starred: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
20
|
+
trashed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
21
|
+
folderColorRgb: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
copyRequiresWriterPermission: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
23
|
+
writersCanShare: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
24
|
+
}, import("zod/v4/core").$strip>>;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/untrash_file/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;iCAavB,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 untrash_file = driveOperation({
|
|
5
|
+
description: 'Restore a file from the trash (files.update with trashed false), the reversible pair of ' +
|
|
6
|
+
'trash_file. Files already purged from the trash cannot be restored.',
|
|
7
|
+
annotations: {
|
|
8
|
+
readOnlyHint: false,
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
idempotentHint: true,
|
|
11
|
+
openWorldHint: false,
|
|
12
|
+
},
|
|
13
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/files/update',
|
|
14
|
+
schema,
|
|
15
|
+
handler,
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/methods/untrash_file/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,YAAY,GAAG,cAAc,CAAC;IACzC,WAAW,EACT,0FAA0F;QAC1F,qEAAqE;IACvE,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,kFAAkF;IAC1F,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 untrash_file = driveOperation({\n description:\n 'Restore a file from the trash (files.update with trashed false), the reversible pair of ' +\n 'trash_file. Files already purged from the trash cannot be restored.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/files/update',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
id: z.ZodString;
|
|
8
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
11
|
+
fileSize: z.ZodOptional<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
fileExtension: z.ZodOptional<z.ZodString>;
|
|
14
|
+
contentSnippet: z.ZodOptional<z.ZodString>;
|
|
15
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
16
|
+
sharedWithMeTime: z.ZodOptional<z.ZodString>;
|
|
17
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
18
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
19
|
+
viewedByMeTime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
21
|
+
canAddChildren: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
starred: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
trashed: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
folderColorRgb: z.ZodOptional<z.ZodString>;
|
|
25
|
+
copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
writersCanShare: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/untrash_file/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/drive/methods/untrash_file/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,+CAA+C,CAAC;KAC7E,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 restore from the trash.'),\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/methods/update_comment/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,CAQxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { COMMENT_FIELDS, projectComment } from '../../lib/comment.js';
|
|
2
|
+
export async function handler(drive, args) {
|
|
3
|
+
const { data } = await drive.comments.update({
|
|
4
|
+
fileId: args.fileId,
|
|
5
|
+
commentId: args.commentId,
|
|
6
|
+
requestBody: { content: args.content },
|
|
7
|
+
fields: COMMENT_FIELDS,
|
|
8
|
+
});
|
|
9
|
+
return projectComment(data);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/drive/methods/update_comment/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC3C,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;QACtC,MAAM,EAAE,cAAc;KACvB,CAAC,CAAC;IACH,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport type { z } from 'zod';\nimport { COMMENT_FIELDS, projectComment } from '../../lib/comment.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.comments.update({\n fileId: args.fileId,\n commentId: args.commentId,\n requestBody: { content: args.content },\n fields: COMMENT_FIELDS,\n });\n return projectComment(data);\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const update_comment: import("../../../lib/operation.js").Operation<import("@googleapis/drive").drive_v3.Drive, import("zod").ZodObject<{
|
|
2
|
+
fileId: import("zod").ZodString;
|
|
3
|
+
commentId: import("zod").ZodString;
|
|
4
|
+
content: import("zod").ZodString;
|
|
5
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
6
|
+
id: import("zod").ZodString;
|
|
7
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
htmlContent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10
|
+
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
emailAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
me: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
13
|
+
photoLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
}, import("zod/v4/core").$strip>>;
|
|
15
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
resolved: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18
|
+
deleted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
19
|
+
anchor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
quotedFileContent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
21
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
value: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
}, import("zod/v4/core").$strip>>;
|
|
24
|
+
replies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
25
|
+
id: import("zod").ZodString;
|
|
26
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
htmlContent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
29
|
+
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
emailAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
me: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
32
|
+
photoLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
}, import("zod/v4/core").$strip>>;
|
|
34
|
+
createdTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
modifiedTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
deleted: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
|
+
action: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
38
|
+
resolve: "resolve";
|
|
39
|
+
reopen: "reopen";
|
|
40
|
+
}>>;
|
|
41
|
+
}, import("zod/v4/core").$strip>>>;
|
|
42
|
+
}, import("zod/v4/core").$strip>>;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/drive/methods/update_comment/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAWzB,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 update_comment = driveOperation({
|
|
5
|
+
description: "Update a comment's content with patch semantics.",
|
|
6
|
+
annotations: {
|
|
7
|
+
readOnlyHint: false,
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
idempotentHint: true,
|
|
10
|
+
openWorldHint: false,
|
|
11
|
+
},
|
|
12
|
+
source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/update',
|
|
13
|
+
schema,
|
|
14
|
+
handler,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drive/methods/update_comment/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,cAAc,GAAG,cAAc,CAAC;IAC3C,WAAW,EAAE,kDAAkD;IAC/D,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,qFAAqF;IAC7F,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 update_comment = driveOperation({\n description: \"Update a comment's content with patch semantics.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/drive/api/reference/rest/v3/comments/update',\n schema,\n handler,\n});\n"]}
|