google-mcp-suite 1.5.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 +14 -9
- package/dist/docs/entities/ParagraphStyle.d.ts +33 -0
- package/dist/docs/entities/ParagraphStyle.d.ts.map +1 -0
- package/dist/docs/entities/ParagraphStyle.js +37 -0
- package/dist/docs/entities/ParagraphStyle.js.map +1 -0
- package/dist/docs/entities/TextStyle.d.ts +29 -0
- package/dist/docs/entities/TextStyle.d.ts.map +1 -0
- package/dist/docs/entities/TextStyle.js +32 -0
- package/dist/docs/entities/TextStyle.js.map +1 -0
- package/dist/docs/instructions.d.ts.map +1 -1
- package/dist/docs/instructions.js +4 -0
- package/dist/docs/instructions.js.map +1 -1
- package/dist/docs/lib/batch.d.ts +1 -1
- package/dist/docs/lib/batch.js +1 -1
- package/dist/docs/lib/batch.js.map +1 -1
- package/dist/docs/methods/create_paragraph_bullets/handler.d.ts +5 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.d.ts.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.js +8 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.js.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/index.d.ts +35 -0
- package/dist/docs/methods/create_paragraph_bullets/index.d.ts.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/index.js +23 -0
- package/dist/docs/methods/create_paragraph_bullets/index.js.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.d.ts +32 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.d.ts.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.js +30 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.d.ts +5 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.js +8 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.d.ts +18 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.js +23 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts +15 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.js +11 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.js.map +1 -0
- package/dist/docs/methods/registry.d.ts +96 -3
- package/dist/docs/methods/registry.d.ts.map +1 -1
- package/dist/docs/methods/registry.js +12 -3
- package/dist/docs/methods/registry.js.map +1 -1
- package/dist/docs/methods/update_paragraph_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_paragraph_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_paragraph_style/handler.js +16 -0
- package/dist/docs/methods/update_paragraph_style/handler.js.map +1 -0
- package/dist/docs/methods/update_paragraph_style/index.d.ts +37 -0
- package/dist/docs/methods/update_paragraph_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_paragraph_style/index.js +22 -0
- package/dist/docs/methods/update_paragraph_style/index.js.map +1 -0
- package/dist/docs/methods/update_paragraph_style/schema.d.ts +35 -0
- package/dist/docs/methods/update_paragraph_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_paragraph_style/schema.js +15 -0
- package/dist/docs/methods/update_paragraph_style/schema.js.map +1 -0
- package/dist/docs/methods/update_text_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_text_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_text_style/handler.js +26 -0
- package/dist/docs/methods/update_text_style/handler.js.map +1 -0
- package/dist/docs/methods/update_text_style/index.d.ts +32 -0
- package/dist/docs/methods/update_text_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_text_style/index.js +21 -0
- package/dist/docs/methods/update_text_style/index.js.map +1 -0
- package/dist/docs/methods/update_text_style/schema.d.ts +31 -0
- package/dist/docs/methods/update_text_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_text_style/schema.js +15 -0
- package/dist/docs/methods/update_text_style/schema.js.map +1 -0
- 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,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Regenerate CAPABILITIES.md from the live tool/method registries: `bun run
|
|
3
|
+
// capabilities`. The doc is derived from the same registries the server lists
|
|
4
|
+
// and dispatches, so it cannot drift from the code. Agents that speak MCP should
|
|
5
|
+
// discover the live, fully-schema'd surface via the server's `tools/list`.
|
|
6
|
+
import { writeFileSync } from 'node:fs';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { mergeOperations } from '../lib/operation.js';
|
|
9
|
+
import { renderCapabilities } from '../lib/server.js';
|
|
10
|
+
import { methods } from './methods/registry.js';
|
|
11
|
+
import { tools } from './tools/registry.js';
|
|
12
|
+
if (import.meta.main) {
|
|
13
|
+
const operations = mergeOperations(tools, methods);
|
|
14
|
+
const out = fileURLToPath(new URL('./CAPABILITIES.md', import.meta.url));
|
|
15
|
+
writeFileSync(out, renderCapabilities('Drive capabilities', [
|
|
16
|
+
{ kind: 'MCP Tool', operations: tools },
|
|
17
|
+
{ kind: 'REST Method', operations: methods },
|
|
18
|
+
]));
|
|
19
|
+
console.error(`Wrote CAPABILITIES.md (${Object.keys(operations).length} operations)`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/drive/capabilities.ts"],"names":[],"mappings":";AACA,4EAA4E;AAC5E,8EAA8E;AAC9E,iFAAiF;AACjF,2EAA2E;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACrB,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnD,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,mBAAmB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,aAAa,CACX,GAAG,EACH,kBAAkB,CAAC,oBAAoB,EAAE;QACvC,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE;QACvC,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE;KAC7C,CAAC,CACH,CAAC;IACF,OAAO,CAAC,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,cAAc,CAAC,CAAC;AACxF,CAAC","sourcesContent":["#!/usr/bin/env node\n// Regenerate CAPABILITIES.md from the live tool/method registries: `bun run\n// capabilities`. The doc is derived from the same registries the server lists\n// and dispatches, so it cannot drift from the code. Agents that speak MCP should\n// discover the live, fully-schema'd surface via the server's `tools/list`.\nimport { writeFileSync } from 'node:fs';\nimport { fileURLToPath } from 'node:url';\nimport { mergeOperations } from '../lib/operation.js';\nimport { renderCapabilities } from '../lib/server.js';\nimport { methods } from './methods/registry.js';\nimport { tools } from './tools/registry.js';\n\nif (import.meta.main) {\n const operations = mergeOperations(tools, methods);\n const out = fileURLToPath(new URL('./CAPABILITIES.md', import.meta.url));\n writeFileSync(\n out,\n renderCapabilities('Drive capabilities', [\n { kind: 'MCP Tool', operations: tools },\n { kind: 'REST Method', operations: methods },\n ]),\n );\n console.error(`Wrote CAPABILITIES.md (${Object.keys(operations).length} operations)`);\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Information about the user, the user's Drive, and system capabilities,
|
|
4
|
+
* served by `about.get`. For users in an organization with pooled storage,
|
|
5
|
+
* the quota describes the organization rather than the individual.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/drive/api/guides/user-info
|
|
8
|
+
*/
|
|
9
|
+
export declare const About: z.ZodObject<{
|
|
10
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
13
|
+
me: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
photoLink: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
storageQuota: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
18
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
19
|
+
usageInDrive: z.ZodOptional<z.ZodString>;
|
|
20
|
+
usageInDriveTrash: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
maxUploadSize: z.ZodOptional<z.ZodString>;
|
|
23
|
+
canCreateDrives: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type About = z.infer<typeof About>;
|
|
26
|
+
//# sourceMappingURL=About.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/About.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;iBAsBhB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { User } from './User.js';
|
|
3
|
+
/**
|
|
4
|
+
* Information about the user, the user's Drive, and system capabilities,
|
|
5
|
+
* served by `about.get`. For users in an organization with pooled storage,
|
|
6
|
+
* the quota describes the organization rather than the individual.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/drive/api/guides/user-info
|
|
9
|
+
*/
|
|
10
|
+
export const About = z.object({
|
|
11
|
+
user: User.optional().describe('The authenticated user.'),
|
|
12
|
+
storageQuota: z
|
|
13
|
+
.object({
|
|
14
|
+
limit: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('The usage limit, if applicable. This will not be present if the user has ' +
|
|
18
|
+
'unlimited storage.'),
|
|
19
|
+
usage: z.string().optional().describe('The total usage across all services.'),
|
|
20
|
+
usageInDrive: z.string().optional().describe('The usage by all files in Google Drive.'),
|
|
21
|
+
usageInDriveTrash: z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('The usage by trashed files in Google Drive.'),
|
|
25
|
+
})
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("The user's storage quota limits and usage. All fields are measured in bytes."),
|
|
28
|
+
maxUploadSize: z.string().optional().describe('The maximum upload size in bytes.'),
|
|
29
|
+
canCreateDrives: z.boolean().optional().describe('Whether the user can create shared drives.'),
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=About.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"About.js","sourceRoot":"","sources":["../../../src/drive/entities/About.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACzD,YAAY,EAAE,CAAC;SACZ,MAAM,CAAC;QACN,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,2EAA2E;YACzE,oBAAoB,CACvB;QACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QAC7E,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QACvF,iBAAiB,EAAE,CAAC;aACjB,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6CAA6C,CAAC;KAC3D,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAClF,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CAC/F,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { User } from './User.js';\n\n/**\n * Information about the user, the user's Drive, and system capabilities,\n * served by `about.get`. For users in an organization with pooled storage,\n * the quota describes the organization rather than the individual.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/user-info\n */\nexport const About = z.object({\n user: User.optional().describe('The authenticated user.'),\n storageQuota: z\n .object({\n limit: z\n .string()\n .optional()\n .describe(\n 'The usage limit, if applicable. This will not be present if the user has ' +\n 'unlimited storage.',\n ),\n usage: z.string().optional().describe('The total usage across all services.'),\n usageInDrive: z.string().optional().describe('The usage by all files in Google Drive.'),\n usageInDriveTrash: z\n .string()\n .optional()\n .describe('The usage by trashed files in Google Drive.'),\n })\n .optional()\n .describe(\"The user's storage quota limits and usage. All fields are measured in bytes.\"),\n maxUploadSize: z.string().optional().describe('The maximum upload size in bytes.'),\n canCreateDrives: z.boolean().optional().describe('Whether the user can create shared drives.'),\n});\n\nexport type About = z.infer<typeof About>;\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A comment on a file: anchored or unanchored feedback with a reply thread.
|
|
4
|
+
* Comments are set as plain text (`content`) and displayed from
|
|
5
|
+
* `htmlContent`; a comment is resolved by one of its replies.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-comments
|
|
8
|
+
*/
|
|
9
|
+
export declare const Comment: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
content: z.ZodOptional<z.ZodString>;
|
|
12
|
+
htmlContent: z.ZodOptional<z.ZodString>;
|
|
13
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
16
|
+
me: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
photoLink: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
21
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
24
|
+
quotedFileContent: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
26
|
+
value: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
content: z.ZodOptional<z.ZodString>;
|
|
31
|
+
htmlContent: z.ZodOptional<z.ZodString>;
|
|
32
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
34
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
35
|
+
me: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
photoLink: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
39
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
40
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
resolve: "resolve";
|
|
43
|
+
reopen: "reopen";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type Comment = z.infer<typeof Comment>;
|
|
48
|
+
//# sourceMappingURL=Comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Comment.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/Comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiDlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Reply } from './Reply.js';
|
|
3
|
+
import { User } from './User.js';
|
|
4
|
+
/**
|
|
5
|
+
* A comment on a file: anchored or unanchored feedback with a reply thread.
|
|
6
|
+
* Comments are set as plain text (`content`) and displayed from
|
|
7
|
+
* `htmlContent`; a comment is resolved by one of its replies.
|
|
8
|
+
*
|
|
9
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-comments
|
|
10
|
+
*/
|
|
11
|
+
export const Comment = z.object({
|
|
12
|
+
id: z.string().describe('Output only. The ID of the comment.'),
|
|
13
|
+
content: z
|
|
14
|
+
.string()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe('The plain text content of the comment. This field is used for setting the content, ' +
|
|
17
|
+
'while htmlContent should be displayed.'),
|
|
18
|
+
htmlContent: z
|
|
19
|
+
.string()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Output only. The content of the comment with HTML formatting.'),
|
|
22
|
+
author: User.optional().describe("Output only. The author of the comment. The author's email address and permission ID will not be populated."),
|
|
23
|
+
createdTime: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('The time at which the comment was created (RFC 3339 date-time).'),
|
|
27
|
+
modifiedTime: z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('The last time the comment or any of its replies was modified (RFC 3339 date-time).'),
|
|
31
|
+
resolved: z
|
|
32
|
+
.boolean()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Output only. Whether the comment has been resolved by one of its replies.'),
|
|
35
|
+
deleted: z
|
|
36
|
+
.boolean()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Output only. Whether the comment has been deleted. A deleted comment has no content.'),
|
|
39
|
+
anchor: z.string().optional().describe('A region of the document represented as a JSON string.'),
|
|
40
|
+
quotedFileContent: z
|
|
41
|
+
.object({
|
|
42
|
+
mimeType: z.string().optional().describe('The MIME type of the quoted content.'),
|
|
43
|
+
value: z.string().optional().describe('The quoted content itself.'),
|
|
44
|
+
})
|
|
45
|
+
.optional()
|
|
46
|
+
.describe('The file content to which the comment refers, typically within the anchor region. ' +
|
|
47
|
+
'For a text file, for example, this would be the text at the location of the comment.'),
|
|
48
|
+
replies: z
|
|
49
|
+
.array(Reply)
|
|
50
|
+
.optional()
|
|
51
|
+
.describe('Output only. The full list of replies to the comment in chronological order.'),
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=Comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Comment.js","sourceRoot":"","sources":["../../../src/drive/entities/Comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC9D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,qFAAqF;QACnF,wCAAwC,CAC3C;IACH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9B,6GAA6G,CAC9G;IACD,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,iEAAiE,CAAC;IAC9E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oFAAoF,CAAC;IACjG,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,2EAA2E,CAAC;IACxF,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF,CACvF;IACH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;IAChG,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QAChF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;KACpE,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,sFAAsF,CACzF;IACH,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,KAAK,CAAC;SACZ,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;CAC5F,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Reply } from './Reply.js';\nimport { User } from './User.js';\n\n/**\n * A comment on a file: anchored or unanchored feedback with a reply thread.\n * Comments are set as plain text (`content`) and displayed from\n * `htmlContent`; a comment is resolved by one of its replies.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-comments\n */\nexport const Comment = z.object({\n id: z.string().describe('Output only. The ID of the comment.'),\n content: z\n .string()\n .optional()\n .describe(\n 'The plain text content of the comment. This field is used for setting the content, ' +\n 'while htmlContent should be displayed.',\n ),\n htmlContent: z\n .string()\n .optional()\n .describe('Output only. The content of the comment with HTML formatting.'),\n author: User.optional().describe(\n \"Output only. The author of the comment. The author's email address and permission ID will not be populated.\",\n ),\n createdTime: z\n .string()\n .optional()\n .describe('The time at which the comment was created (RFC 3339 date-time).'),\n modifiedTime: z\n .string()\n .optional()\n .describe('The last time the comment or any of its replies was modified (RFC 3339 date-time).'),\n resolved: z\n .boolean()\n .optional()\n .describe('Output only. Whether the comment has been resolved by one of its replies.'),\n deleted: z\n .boolean()\n .optional()\n .describe(\n 'Output only. Whether the comment has been deleted. A deleted comment has no content.',\n ),\n anchor: z.string().optional().describe('A region of the document represented as a JSON string.'),\n quotedFileContent: z\n .object({\n mimeType: z.string().optional().describe('The MIME type of the quoted content.'),\n value: z.string().optional().describe('The quoted content itself.'),\n })\n .optional()\n .describe(\n 'The file content to which the comment refers, typically within the anchor region. ' +\n 'For a text file, for example, this would be the text at the location of the comment.',\n ),\n replies: z\n .array(Reply)\n .optional()\n .describe('Output only. The full list of replies to the comment in chronological order.'),\n});\n\nexport type Comment = z.infer<typeof Comment>;\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A file in Drive: any content stored in Drive (a blob, a Google Workspace
|
|
4
|
+
* document, a folder, or a shortcut), identified by an immutable id.
|
|
5
|
+
*
|
|
6
|
+
* Fields here are the MCP toolset's lossy `File` projection of the REST
|
|
7
|
+
* `files` resource (`name` → `title`, `parents[0]` → `parentId`,
|
|
8
|
+
* `owners[0].emailAddress` → `owner`, `webViewLink` → `viewUrl`, `size` →
|
|
9
|
+
* `fileSize`, `capabilities.canAddChildren` → `canAddChildren`), plus the
|
|
10
|
+
* REST-vocabulary flags the methods write (`starred`, `trashed`,
|
|
11
|
+
* `folderColorRgb`, `copyRequiresWriterPermission`, `writersCanShare`). Tools
|
|
12
|
+
* request only the toolset fields, so their outputs stay verbatim to the MCP
|
|
13
|
+
* pages; methods request the superset so a write's effect is visible in its
|
|
14
|
+
* output. Field docs use `.describe()` so they reach the wire JSON Schema an
|
|
15
|
+
* MCP client reads.
|
|
16
|
+
*
|
|
17
|
+
* @see https://developers.google.com/workspace/drive/api/guides/about-files
|
|
18
|
+
*/
|
|
19
|
+
export declare const File: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
title: z.ZodOptional<z.ZodString>;
|
|
22
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
24
|
+
fileSize: z.ZodOptional<z.ZodString>;
|
|
25
|
+
description: z.ZodOptional<z.ZodString>;
|
|
26
|
+
fileExtension: z.ZodOptional<z.ZodString>;
|
|
27
|
+
contentSnippet: z.ZodOptional<z.ZodString>;
|
|
28
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
sharedWithMeTime: z.ZodOptional<z.ZodString>;
|
|
30
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
31
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
32
|
+
viewedByMeTime: z.ZodOptional<z.ZodString>;
|
|
33
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
34
|
+
canAddChildren: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
starred: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
trashed: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
folderColorRgb: z.ZodOptional<z.ZodString>;
|
|
38
|
+
copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
writersCanShare: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type File = z.infer<typeof File>;
|
|
42
|
+
//# sourceMappingURL=File.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/File.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;iBAqEf,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A file in Drive: any content stored in Drive (a blob, a Google Workspace
|
|
4
|
+
* document, a folder, or a shortcut), identified by an immutable id.
|
|
5
|
+
*
|
|
6
|
+
* Fields here are the MCP toolset's lossy `File` projection of the REST
|
|
7
|
+
* `files` resource (`name` → `title`, `parents[0]` → `parentId`,
|
|
8
|
+
* `owners[0].emailAddress` → `owner`, `webViewLink` → `viewUrl`, `size` →
|
|
9
|
+
* `fileSize`, `capabilities.canAddChildren` → `canAddChildren`), plus the
|
|
10
|
+
* REST-vocabulary flags the methods write (`starred`, `trashed`,
|
|
11
|
+
* `folderColorRgb`, `copyRequiresWriterPermission`, `writersCanShare`). Tools
|
|
12
|
+
* request only the toolset fields, so their outputs stay verbatim to the MCP
|
|
13
|
+
* pages; methods request the superset so a write's effect is visible in its
|
|
14
|
+
* output. Field docs use `.describe()` so they reach the wire JSON Schema an
|
|
15
|
+
* MCP client reads.
|
|
16
|
+
*
|
|
17
|
+
* @see https://developers.google.com/workspace/drive/api/guides/about-files
|
|
18
|
+
*/
|
|
19
|
+
export const File = z.object({
|
|
20
|
+
id: z.string().describe('The id of the file that was fetched.'),
|
|
21
|
+
title: z.string().optional().describe('The title of the file.'),
|
|
22
|
+
parentId: z.string().optional().describe('The (optional) id of the parent of the file.'),
|
|
23
|
+
mimeType: z.string().optional().describe('The mime type of the file.'),
|
|
24
|
+
fileSize: z.string().optional().describe('The size in bytes of the file.'),
|
|
25
|
+
description: z.string().optional().describe('The description of the file.'),
|
|
26
|
+
fileExtension: z
|
|
27
|
+
.string()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe('The original file extension of the file, this is only populated for files with content stored in Drive.'),
|
|
30
|
+
contentSnippet: z
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Generated snippet about the content of the file. Computed by Google's hosted MCP " +
|
|
34
|
+
'backend only; the Drive REST API serves no snippet, so this server never populates the field.'),
|
|
35
|
+
viewUrl: z.string().optional().describe('The URL to view the file.'),
|
|
36
|
+
sharedWithMeTime: z
|
|
37
|
+
.string()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('The time that the file was shared with the requester (RFC 3339 date-time).'),
|
|
40
|
+
createdTime: z
|
|
41
|
+
.string()
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('The time that the file was created (RFC 3339 date-time).'),
|
|
44
|
+
modifiedTime: z
|
|
45
|
+
.string()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('The most recent time at which the file was modified (RFC 3339 date-time).'),
|
|
48
|
+
viewedByMeTime: z
|
|
49
|
+
.string()
|
|
50
|
+
.optional()
|
|
51
|
+
.describe('The most recent time at which the file was viewed by requester (RFC 3339 date-time).'),
|
|
52
|
+
owner: z.string().optional().describe('The email address of the owner of the file.'),
|
|
53
|
+
canAddChildren: z
|
|
54
|
+
.boolean()
|
|
55
|
+
.optional()
|
|
56
|
+
.describe('Whether the requester can add children to this folder. This is always false for non-folder types.'),
|
|
57
|
+
starred: z.boolean().optional().describe('Whether the user has starred the file.'),
|
|
58
|
+
trashed: z
|
|
59
|
+
.boolean()
|
|
60
|
+
.optional()
|
|
61
|
+
.describe('Whether the file has been trashed, either explicitly or from a trashed parent folder.'),
|
|
62
|
+
folderColorRgb: z
|
|
63
|
+
.string()
|
|
64
|
+
.optional()
|
|
65
|
+
.describe('The color for a folder or a shortcut to a folder as an RGB hex string.'),
|
|
66
|
+
copyRequiresWriterPermission: z
|
|
67
|
+
.boolean()
|
|
68
|
+
.optional()
|
|
69
|
+
.describe('Whether the options to copy, print, or download this file should be disabled for readers and commenters.'),
|
|
70
|
+
writersCanShare: z
|
|
71
|
+
.boolean()
|
|
72
|
+
.optional()
|
|
73
|
+
.describe("Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives."),
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=File.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","sourceRoot":"","sources":["../../../src/drive/entities/File.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC/D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACxF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACtE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAC1E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC3E,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yGAAyG,CAC1G;IACH,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF;QACjF,+FAA+F,CAClG;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACpE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4EAA4E,CAAC;IACzF,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2EAA2E,CAAC;IACxF,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF,CACvF;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IACpF,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,mGAAmG,CACpG;IACH,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IAClF,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,uFAAuF,CACxF;IACH,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wEAAwE,CAAC;IACrF,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,0GAA0G,CAC3G;IACH,eAAe,EAAE,CAAC;SACf,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,wHAAwH,CACzH;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A file in Drive: any content stored in Drive (a blob, a Google Workspace\n * document, a folder, or a shortcut), identified by an immutable id.\n *\n * Fields here are the MCP toolset's lossy `File` projection of the REST\n * `files` resource (`name` → `title`, `parents[0]` → `parentId`,\n * `owners[0].emailAddress` → `owner`, `webViewLink` → `viewUrl`, `size` →\n * `fileSize`, `capabilities.canAddChildren` → `canAddChildren`), plus the\n * REST-vocabulary flags the methods write (`starred`, `trashed`,\n * `folderColorRgb`, `copyRequiresWriterPermission`, `writersCanShare`). Tools\n * request only the toolset fields, so their outputs stay verbatim to the MCP\n * pages; methods request the superset so a write's effect is visible in its\n * output. Field docs use `.describe()` so they reach the wire JSON Schema an\n * MCP client reads.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/about-files\n */\nexport const File = 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 parentId: z.string().optional().describe('The (optional) id of the parent of the file.'),\n mimeType: z.string().optional().describe('The mime type of the file.'),\n fileSize: z.string().optional().describe('The size in bytes of the file.'),\n description: z.string().optional().describe('The description of the file.'),\n fileExtension: z\n .string()\n .optional()\n .describe(\n 'The original file extension of the file, this is only populated for files with content stored in Drive.',\n ),\n contentSnippet: z\n .string()\n .optional()\n .describe(\n \"Generated snippet about the content of the file. Computed by Google's hosted MCP \" +\n 'backend only; the Drive REST API serves no snippet, so this server never populates the field.',\n ),\n viewUrl: z.string().optional().describe('The URL to view the file.'),\n sharedWithMeTime: z\n .string()\n .optional()\n .describe('The time that the file was shared with the requester (RFC 3339 date-time).'),\n createdTime: z\n .string()\n .optional()\n .describe('The time that the file was created (RFC 3339 date-time).'),\n modifiedTime: z\n .string()\n .optional()\n .describe('The most recent time at which the file was modified (RFC 3339 date-time).'),\n viewedByMeTime: z\n .string()\n .optional()\n .describe(\n 'The most recent time at which the file was viewed by requester (RFC 3339 date-time).',\n ),\n owner: z.string().optional().describe('The email address of the owner of the file.'),\n canAddChildren: z\n .boolean()\n .optional()\n .describe(\n 'Whether the requester can add children to this folder. This is always false for non-folder types.',\n ),\n starred: z.boolean().optional().describe('Whether the user has starred the file.'),\n trashed: z\n .boolean()\n .optional()\n .describe(\n 'Whether the file has been trashed, either explicitly or from a trashed parent folder.',\n ),\n folderColorRgb: z\n .string()\n .optional()\n .describe('The color for a folder or a shortcut to a folder as an RGB hex string.'),\n copyRequiresWriterPermission: z\n .boolean()\n .optional()\n .describe(\n 'Whether the options to copy, print, or download this file should be disabled for readers and commenters.',\n ),\n writersCanShare: z\n .boolean()\n .optional()\n .describe(\n \"Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.\",\n ),\n});\n\nexport type File = z.infer<typeof File>;\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A grant of access to a file: who (a user, group, domain, or anyone) holds
|
|
4
|
+
* which role on it. The MCP toolset's projection of the REST `permissions`
|
|
5
|
+
* resource; field docs use `.describe()` so they reach the wire JSON Schema
|
|
6
|
+
* an MCP client reads.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-sharing
|
|
9
|
+
*/
|
|
10
|
+
export declare const Permission: z.ZodObject<{
|
|
11
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
organizer: "organizer";
|
|
13
|
+
owner: "owner";
|
|
14
|
+
fileOrganizer: "fileOrganizer";
|
|
15
|
+
writer: "writer";
|
|
16
|
+
commenter: "commenter";
|
|
17
|
+
reader: "reader";
|
|
18
|
+
}>>;
|
|
19
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
20
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
domain: "domain";
|
|
22
|
+
user: "user";
|
|
23
|
+
group: "group";
|
|
24
|
+
anyone: "anyone";
|
|
25
|
+
}>>;
|
|
26
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
27
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
metadata: "metadata";
|
|
29
|
+
published: "published";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type Permission = z.infer<typeof Permission>;
|
|
33
|
+
//# sourceMappingURL=Permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Permission.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/Permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;iBAyBrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A grant of access to a file: who (a user, group, domain, or anyone) holds
|
|
4
|
+
* which role on it. The MCP toolset's projection of the REST `permissions`
|
|
5
|
+
* resource; field docs use `.describe()` so they reach the wire JSON Schema
|
|
6
|
+
* an MCP client reads.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-sharing
|
|
9
|
+
*/
|
|
10
|
+
export const Permission = z.object({
|
|
11
|
+
role: z
|
|
12
|
+
.enum(['owner', 'organizer', 'fileOrganizer', 'writer', 'commenter', 'reader'])
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('The role of the grantee for the file. The possible roles include: owner, organizer, fileOrganizer, writer, commenter, reader.'),
|
|
15
|
+
displayName: z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe("Output only. The 'pretty' name of the value of the permission."),
|
|
19
|
+
type: z
|
|
20
|
+
.enum(['user', 'group', 'domain', 'anyone'])
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('The type of the grantee. Supported values include: user, group, domain, anyone.'),
|
|
23
|
+
emailAddress: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('The email address of the user or group to which this permission refers.'),
|
|
27
|
+
view: z
|
|
28
|
+
.enum(['published', 'metadata'])
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Specifies the view to which this permission applies, if any. Supported values include: published, metadata.'),
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=Permission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../src/drive/entities/Permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;SAC9E,QAAQ,EAAE;SACV,QAAQ,CACP,+HAA+H,CAChI;IACH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gEAAgE,CAAC;IAC7E,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC3C,QAAQ,EAAE;SACV,QAAQ,CAAC,iFAAiF,CAAC;IAC9F,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yEAAyE,CAAC;IACtF,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;SAC/B,QAAQ,EAAE;SACV,QAAQ,CACP,6GAA6G,CAC9G;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A grant of access to a file: who (a user, group, domain, or anyone) holds\n * which role on it. The MCP toolset's projection of the REST `permissions`\n * resource; field docs use `.describe()` so they reach the wire JSON Schema\n * an MCP client reads.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-sharing\n */\nexport const Permission = z.object({\n role: z\n .enum(['owner', 'organizer', 'fileOrganizer', 'writer', 'commenter', 'reader'])\n .optional()\n .describe(\n 'The role of the grantee for the file. The possible roles include: owner, organizer, fileOrganizer, writer, commenter, reader.',\n ),\n displayName: z\n .string()\n .optional()\n .describe(\"Output only. The 'pretty' name of the value of the permission.\"),\n type: z\n .enum(['user', 'group', 'domain', 'anyone'])\n .optional()\n .describe('The type of the grantee. Supported values include: user, group, domain, anyone.'),\n emailAddress: z\n .string()\n .optional()\n .describe('The email address of the user or group to which this permission refers.'),\n view: z\n .enum(['published', 'metadata'])\n .optional()\n .describe(\n 'Specifies the view to which this permission applies, if any. Supported values include: published, metadata.',\n ),\n});\n\nexport type Permission = z.infer<typeof Permission>;\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A reply to a comment on a file. A reply may carry an `action` that resolves
|
|
4
|
+
* or reopens its parent comment.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-comments
|
|
7
|
+
*/
|
|
8
|
+
export declare const Reply: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
content: z.ZodOptional<z.ZodString>;
|
|
11
|
+
htmlContent: z.ZodOptional<z.ZodString>;
|
|
12
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
14
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
15
|
+
me: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
photoLink: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
19
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
resolve: "resolve";
|
|
23
|
+
reopen: "reopen";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type Reply = z.infer<typeof Reply>;
|
|
27
|
+
//# sourceMappingURL=Reply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/Reply.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;iBAmChB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { User } from './User.js';
|
|
3
|
+
/**
|
|
4
|
+
* A reply to a comment on a file. A reply may carry an `action` that resolves
|
|
5
|
+
* or reopens its parent comment.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-comments
|
|
8
|
+
*/
|
|
9
|
+
export const Reply = z.object({
|
|
10
|
+
id: z.string().describe('Output only. The ID of the reply.'),
|
|
11
|
+
content: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('The plain text content of the reply. This field is used for setting the content, ' +
|
|
15
|
+
'while htmlContent should be displayed.'),
|
|
16
|
+
htmlContent: z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('Output only. The content of the reply with HTML formatting.'),
|
|
20
|
+
author: User.optional().describe("Output only. The author of the reply. The author's email address and permission ID won't be populated."),
|
|
21
|
+
createdTime: z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('The time at which the reply was created (RFC 3339 date-time).'),
|
|
25
|
+
modifiedTime: z
|
|
26
|
+
.string()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('The last time the reply was modified (RFC 3339 date-time).'),
|
|
29
|
+
deleted: z
|
|
30
|
+
.boolean()
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Output only. Whether the reply has been deleted. A deleted reply has no content.'),
|
|
33
|
+
action: z
|
|
34
|
+
.enum(['resolve', 'reopen'])
|
|
35
|
+
.optional()
|
|
36
|
+
.describe('The action the reply performed to the parent comment. The supported values are: ' +
|
|
37
|
+
'resolve, reopen.'),
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=Reply.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reply.js","sourceRoot":"","sources":["../../../src/drive/entities/Reply.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAC5D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF;QACjF,wCAAwC,CAC3C;IACH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9B,wGAAwG,CACzG;IACD,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4DAA4D,CAAC;IACzE,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,kFAAkF,CAAC;IAC/F,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;SAC3B,QAAQ,EAAE;SACV,QAAQ,CACP,kFAAkF;QAChF,kBAAkB,CACrB;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { User } from './User.js';\n\n/**\n * A reply to a comment on a file. A reply may carry an `action` that resolves\n * or reopens its parent comment.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-comments\n */\nexport const Reply = z.object({\n id: z.string().describe('Output only. The ID of the reply.'),\n content: z\n .string()\n .optional()\n .describe(\n 'The plain text content of the reply. This field is used for setting the content, ' +\n 'while htmlContent should be displayed.',\n ),\n htmlContent: z\n .string()\n .optional()\n .describe('Output only. The content of the reply with HTML formatting.'),\n author: User.optional().describe(\n \"Output only. The author of the reply. The author's email address and permission ID won't be populated.\",\n ),\n createdTime: z\n .string()\n .optional()\n .describe('The time at which the reply was created (RFC 3339 date-time).'),\n modifiedTime: z\n .string()\n .optional()\n .describe('The last time the reply was modified (RFC 3339 date-time).'),\n deleted: z\n .boolean()\n .optional()\n .describe('Output only. Whether the reply has been deleted. A deleted reply has no content.'),\n action: z\n .enum(['resolve', 'reopen'])\n .optional()\n .describe(\n 'The action the reply performed to the parent comment. The supported values are: ' +\n 'resolve, reopen.',\n ),\n});\n\nexport type Reply = z.infer<typeof Reply>;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A version of a file: Drive keeps a revision history for blobs and Docs
|
|
4
|
+
* Editors files. Blob revisions auto-purge 30 days after newer content is
|
|
5
|
+
* uploaded unless pinned with `keepForever`; the publish flags apply to Docs
|
|
6
|
+
* Editors files only.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-revisions
|
|
9
|
+
*/
|
|
10
|
+
export declare const Revision: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
13
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
14
|
+
keepForever: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
published: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
publishAuto: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
publishedOutsideDomain: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
publishedLink: z.ZodOptional<z.ZodString>;
|
|
19
|
+
size: z.ZodOptional<z.ZodString>;
|
|
20
|
+
originalFilename: z.ZodOptional<z.ZodString>;
|
|
21
|
+
md5Checksum: z.ZodOptional<z.ZodString>;
|
|
22
|
+
lastModifyingUser: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
24
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
25
|
+
me: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
photoLink: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type Revision = z.infer<typeof Revision>;
|
|
30
|
+
//# sourceMappingURL=Revision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Revision.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/Revision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;iBAkEnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { User } from './User.js';
|
|
3
|
+
/**
|
|
4
|
+
* A version of a file: Drive keeps a revision history for blobs and Docs
|
|
5
|
+
* Editors files. Blob revisions auto-purge 30 days after newer content is
|
|
6
|
+
* uploaded unless pinned with `keepForever`; the publish flags apply to Docs
|
|
7
|
+
* Editors files only.
|
|
8
|
+
*
|
|
9
|
+
* @see https://developers.google.com/workspace/drive/api/guides/manage-revisions
|
|
10
|
+
*/
|
|
11
|
+
export const Revision = z.object({
|
|
12
|
+
id: z.string().describe('Output only. The ID of the revision.'),
|
|
13
|
+
mimeType: z.string().optional().describe('Output only. The MIME type of the revision.'),
|
|
14
|
+
modifiedTime: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('The last time the revision was modified (RFC 3339 date-time).'),
|
|
18
|
+
keepForever: z
|
|
19
|
+
.boolean()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Whether to keep this revision forever, even if it is no longer the head revision. ' +
|
|
22
|
+
'If not set, the revision will be automatically purged 30 days after newer content ' +
|
|
23
|
+
'is uploaded. Only applicable to files with binary content; only 200 revisions can ' +
|
|
24
|
+
'be kept forever.'),
|
|
25
|
+
published: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('Whether this revision is published. This is only applicable to Docs Editors files.'),
|
|
29
|
+
publishAuto: z
|
|
30
|
+
.boolean()
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Whether subsequent revisions will be automatically republished. This is only ' +
|
|
33
|
+
'applicable to Docs Editors files.'),
|
|
34
|
+
publishedOutsideDomain: z
|
|
35
|
+
.boolean()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('Whether this revision is published outside the domain. This is only applicable to ' +
|
|
38
|
+
'Docs Editors files.'),
|
|
39
|
+
publishedLink: z
|
|
40
|
+
.string()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('Output only. A link to the published revision. This is only populated for Docs ' +
|
|
43
|
+
'Editors files.'),
|
|
44
|
+
size: z
|
|
45
|
+
.string()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe("Output only. The size of the revision's content in bytes. This is only applicable " +
|
|
48
|
+
'to files with binary content in Drive.'),
|
|
49
|
+
originalFilename: z
|
|
50
|
+
.string()
|
|
51
|
+
.optional()
|
|
52
|
+
.describe('Output only. The original filename used to create this revision. This is only ' +
|
|
53
|
+
'applicable to files with binary content in Drive.'),
|
|
54
|
+
md5Checksum: z
|
|
55
|
+
.string()
|
|
56
|
+
.optional()
|
|
57
|
+
.describe("Output only. The MD5 checksum of the revision's content. This is only applicable " +
|
|
58
|
+
'to files with binary content in Drive.'),
|
|
59
|
+
lastModifyingUser: User.optional().describe('Output only. The last user to modify this revision. This field is only populated when ' +
|
|
60
|
+
'the last modification was performed by a signed-in user.'),
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=Revision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Revision.js","sourceRoot":"","sources":["../../../src/drive/entities/Revision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IACvF,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,oFAAoF;QACpF,oFAAoF;QACpF,kBAAkB,CACrB;IACH,SAAS,EAAE,CAAC;SACT,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,oFAAoF,CAAC;IACjG,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E;QAC7E,mCAAmC,CACtC;IACH,sBAAsB,EAAE,CAAC;SACtB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,qBAAqB,CACxB;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF;QAC/E,gBAAgB,CACnB;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,wCAAwC,CAC3C;IACH,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,gFAAgF;QAC9E,mDAAmD,CACtD;IACH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF;QACjF,wCAAwC,CAC3C;IACH,iBAAiB,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACzC,wFAAwF;QACtF,0DAA0D,CAC7D;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { User } from './User.js';\n\n/**\n * A version of a file: Drive keeps a revision history for blobs and Docs\n * Editors files. Blob revisions auto-purge 30 days after newer content is\n * uploaded unless pinned with `keepForever`; the publish flags apply to Docs\n * Editors files only.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-revisions\n */\nexport const Revision = z.object({\n id: z.string().describe('Output only. The ID of the revision.'),\n mimeType: z.string().optional().describe('Output only. The MIME type of the revision.'),\n modifiedTime: z\n .string()\n .optional()\n .describe('The last time the revision was modified (RFC 3339 date-time).'),\n keepForever: z\n .boolean()\n .optional()\n .describe(\n 'Whether to keep this revision forever, even if it is no longer the head revision. ' +\n 'If not set, the revision will be automatically purged 30 days after newer content ' +\n 'is uploaded. Only applicable to files with binary content; only 200 revisions can ' +\n 'be kept forever.',\n ),\n published: z\n .boolean()\n .optional()\n .describe('Whether this revision is published. This is only applicable to Docs Editors files.'),\n publishAuto: z\n .boolean()\n .optional()\n .describe(\n 'Whether subsequent revisions will be automatically republished. This is only ' +\n 'applicable to Docs Editors files.',\n ),\n publishedOutsideDomain: z\n .boolean()\n .optional()\n .describe(\n 'Whether this revision is published outside the domain. This is only applicable to ' +\n 'Docs Editors files.',\n ),\n publishedLink: z\n .string()\n .optional()\n .describe(\n 'Output only. A link to the published revision. This is only populated for Docs ' +\n 'Editors files.',\n ),\n size: z\n .string()\n .optional()\n .describe(\n \"Output only. The size of the revision's content in bytes. This is only applicable \" +\n 'to files with binary content in Drive.',\n ),\n originalFilename: z\n .string()\n .optional()\n .describe(\n 'Output only. The original filename used to create this revision. This is only ' +\n 'applicable to files with binary content in Drive.',\n ),\n md5Checksum: z\n .string()\n .optional()\n .describe(\n \"Output only. The MD5 checksum of the revision's content. This is only applicable \" +\n 'to files with binary content in Drive.',\n ),\n lastModifyingUser: User.optional().describe(\n 'Output only. The last user to modify this revision. This field is only populated when ' +\n 'the last modification was performed by a signed-in user.',\n ),\n});\n\nexport type Revision = z.infer<typeof Revision>;\n"]}
|