google-mcp-suite 1.18.0 → 1.19.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/ADOPTING.md +2 -2
- package/README.md +5 -5
- package/dist/calendar/entities/AclRole.d.ts +7 -6
- package/dist/calendar/entities/AclRole.d.ts.map +1 -1
- package/dist/calendar/entities/AclRole.js +7 -6
- package/dist/calendar/entities/AclRole.js.map +1 -1
- package/dist/calendar/entities/AclScope.d.ts +14 -1
- package/dist/calendar/entities/AclScope.d.ts.map +1 -1
- package/dist/calendar/entities/AclScope.js +11 -5
- package/dist/calendar/entities/AclScope.js.map +1 -1
- package/dist/calendar/entities/CalendarListEntry.d.ts.map +1 -1
- package/dist/calendar/entities/CalendarListEntry.js +2 -1
- package/dist/calendar/entities/CalendarListEntry.js.map +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/instructions.d.ts.map +1 -1
- package/dist/calendar/instructions.js +9 -9
- package/dist/calendar/instructions.js.map +1 -1
- package/dist/calendar/lib/roles.d.ts +12 -0
- package/dist/calendar/lib/roles.d.ts.map +1 -0
- package/dist/calendar/lib/roles.js +38 -0
- package/dist/calendar/lib/roles.js.map +1 -0
- package/dist/calendar/methods/add_acl_rule/index.d.ts +5 -4
- package/dist/calendar/methods/add_acl_rule/index.d.ts.map +1 -1
- package/dist/calendar/methods/add_acl_rule/index.js +7 -5
- package/dist/calendar/methods/add_acl_rule/index.js.map +1 -1
- package/dist/calendar/methods/add_acl_rule/schema.d.ts.map +1 -1
- package/dist/calendar/methods/add_acl_rule/schema.js +3 -2
- package/dist/calendar/methods/add_acl_rule/schema.js.map +1 -1
- package/dist/calendar/methods/delete_acl_rule/index.js +1 -1
- package/dist/calendar/methods/delete_acl_rule/index.js.map +1 -1
- package/dist/calendar/methods/list_event_instances/schema.d.ts.map +1 -1
- package/dist/calendar/methods/list_event_instances/schema.js +2 -1
- package/dist/calendar/methods/list_event_instances/schema.js.map +1 -1
- package/dist/calendar/methods/patch_acl_rule/index.d.ts +4 -3
- package/dist/calendar/methods/patch_acl_rule/index.d.ts.map +1 -1
- package/dist/calendar/methods/patch_acl_rule/index.js +5 -4
- package/dist/calendar/methods/patch_acl_rule/index.js.map +1 -1
- package/dist/calendar/methods/patch_acl_rule/schema.js +1 -1
- package/dist/calendar/methods/patch_acl_rule/schema.js.map +1 -1
- package/dist/calendar/methods/registry.d.ts +2 -2
- package/dist/calendar/methods/registry.js +2 -2
- package/dist/calendar/methods/registry.js.map +1 -1
- package/dist/calendar/methods/update_acl_rule/index.d.ts +4 -4
- package/dist/calendar/methods/update_acl_rule/index.js +5 -5
- package/dist/calendar/methods/update_acl_rule/index.js.map +1 -1
- package/dist/calendar/methods/update_acl_rule/schema.js +1 -1
- package/dist/calendar/methods/update_acl_rule/schema.js.map +1 -1
- package/dist/docs/entities/Color.d.ts +15 -0
- package/dist/docs/entities/Color.d.ts.map +1 -0
- package/dist/docs/entities/Color.js +11 -0
- package/dist/docs/entities/Color.js.map +1 -0
- package/dist/docs/entities/Document.d.ts +28 -16
- package/dist/docs/entities/Document.d.ts.map +1 -1
- package/dist/docs/entities/Document.js +31 -4
- package/dist/docs/entities/Document.js.map +1 -1
- package/dist/docs/entities/DocumentStyle.d.ts +40 -0
- package/dist/docs/entities/DocumentStyle.d.ts.map +1 -0
- package/dist/docs/entities/DocumentStyle.js +67 -0
- package/dist/docs/entities/DocumentStyle.js.map +1 -0
- package/dist/docs/entities/Location.d.ts +16 -0
- package/dist/docs/entities/Location.d.ts.map +1 -0
- package/dist/docs/entities/Location.js +26 -0
- package/dist/docs/entities/Location.js.map +1 -0
- package/dist/docs/entities/OptionalColor.d.ts +20 -0
- package/dist/docs/entities/OptionalColor.d.ts.map +1 -0
- package/dist/docs/entities/OptionalColor.js +14 -0
- package/dist/docs/entities/OptionalColor.js.map +1 -0
- package/dist/docs/entities/ParagraphBorder.d.ts +29 -0
- package/dist/docs/entities/ParagraphBorder.d.ts.map +1 -0
- package/dist/docs/entities/ParagraphBorder.js +27 -0
- package/dist/docs/entities/ParagraphBorder.js.map +1 -0
- package/dist/docs/entities/ParagraphStyle.d.ts +124 -5
- package/dist/docs/entities/ParagraphStyle.d.ts.map +1 -1
- package/dist/docs/entities/ParagraphStyle.js +63 -5
- package/dist/docs/entities/ParagraphStyle.js.map +1 -1
- package/dist/docs/entities/Range.d.ts +6 -3
- package/dist/docs/entities/Range.d.ts.map +1 -1
- package/dist/docs/entities/Range.js +20 -7
- package/dist/docs/entities/Range.js.map +1 -1
- package/dist/docs/entities/RgbColor.d.ts +14 -0
- package/dist/docs/entities/RgbColor.d.ts.map +1 -0
- package/dist/docs/entities/RgbColor.js +28 -0
- package/dist/docs/entities/RgbColor.js.map +1 -0
- package/dist/docs/entities/SectionColumnProperties.d.ts +14 -0
- package/dist/docs/entities/SectionColumnProperties.d.ts.map +1 -0
- package/dist/docs/entities/SectionColumnProperties.js +17 -0
- package/dist/docs/entities/SectionColumnProperties.js.map +1 -0
- package/dist/docs/entities/SectionStyle.d.ts +35 -0
- package/dist/docs/entities/SectionStyle.d.ts.map +1 -0
- package/dist/docs/entities/SectionStyle.js +60 -0
- package/dist/docs/entities/SectionStyle.js.map +1 -0
- package/dist/docs/entities/Shading.d.ts +19 -0
- package/dist/docs/entities/Shading.d.ts.map +1 -0
- package/dist/docs/entities/Shading.js +11 -0
- package/dist/docs/entities/Shading.js.map +1 -0
- package/dist/docs/entities/StructuralElement.d.ts +41 -16
- package/dist/docs/entities/StructuralElement.d.ts.map +1 -1
- package/dist/docs/entities/StructuralElement.js +40 -9
- package/dist/docs/entities/StructuralElement.js.map +1 -1
- package/dist/docs/entities/TableCellBorder.d.ts +28 -0
- package/dist/docs/entities/TableCellBorder.d.ts.map +1 -0
- package/dist/docs/entities/TableCellBorder.js +30 -0
- package/dist/docs/entities/TableCellBorder.js.map +1 -0
- package/dist/docs/entities/TableCellLocation.d.ts +17 -0
- package/dist/docs/entities/TableCellLocation.d.ts.map +1 -0
- package/dist/docs/entities/TableCellLocation.js +22 -0
- package/dist/docs/entities/TableCellLocation.js.map +1 -0
- package/dist/docs/entities/TableCellStyle.d.ts +101 -0
- package/dist/docs/entities/TableCellStyle.d.ts.map +1 -0
- package/dist/docs/entities/TableCellStyle.js +33 -0
- package/dist/docs/entities/TableCellStyle.js.map +1 -0
- package/dist/docs/entities/TableColumnProperties.d.ts +19 -0
- package/dist/docs/entities/TableColumnProperties.d.ts.map +1 -0
- package/dist/docs/entities/TableColumnProperties.js +22 -0
- package/dist/docs/entities/TableColumnProperties.js.map +1 -0
- package/dist/docs/entities/TableRange.d.ts +23 -0
- package/dist/docs/entities/TableRange.d.ts.map +1 -0
- package/dist/docs/entities/TableRange.js +16 -0
- package/dist/docs/entities/TableRange.js.map +1 -0
- package/dist/docs/entities/TableRowStyle.d.ts +17 -0
- package/dist/docs/entities/TableRowStyle.d.ts.map +1 -0
- package/dist/docs/entities/TableRowStyle.js +23 -0
- package/dist/docs/entities/TableRowStyle.js.map +1 -0
- package/dist/docs/entities/TextStyle.d.ts +26 -5
- package/dist/docs/entities/TextStyle.d.ts.map +1 -1
- package/dist/docs/entities/TextStyle.js +10 -6
- package/dist/docs/entities/TextStyle.js.map +1 -1
- package/dist/docs/entities/WeightedFontFamily.d.ts +14 -0
- package/dist/docs/entities/WeightedFontFamily.d.ts.map +1 -0
- package/dist/docs/entities/WeightedFontFamily.js +23 -0
- package/dist/docs/entities/WeightedFontFamily.js.map +1 -0
- package/dist/docs/instructions.d.ts.map +1 -1
- package/dist/docs/instructions.js +20 -3
- package/dist/docs/instructions.js.map +1 -1
- package/dist/docs/lib/address.d.ts +26 -0
- package/dist/docs/lib/address.d.ts.map +1 -0
- package/dist/docs/lib/address.js +18 -0
- package/dist/docs/lib/address.js.map +1 -0
- package/dist/docs/lib/color.d.ts +13 -0
- package/dist/docs/lib/color.d.ts.map +1 -0
- package/dist/docs/lib/color.js +9 -0
- package/dist/docs/lib/color.js.map +1 -0
- package/dist/docs/lib/dimension.d.ts +12 -0
- package/dist/docs/lib/dimension.d.ts.map +1 -0
- package/dist/docs/lib/dimension.js +4 -0
- package/dist/docs/lib/dimension.js.map +1 -0
- package/dist/docs/lib/document.d.ts +5 -3
- package/dist/docs/lib/document.d.ts.map +1 -1
- package/dist/docs/lib/document.js +40 -3
- package/dist/docs/lib/document.js.map +1 -1
- package/dist/docs/methods/create_document/index.d.ts +9 -12
- package/dist/docs/methods/create_document/index.d.ts.map +1 -1
- package/dist/docs/methods/create_document/schema.d.ts +9 -12
- package/dist/docs/methods/create_document/schema.d.ts.map +1 -1
- package/dist/docs/methods/create_footer/handler.d.ts +5 -0
- package/dist/docs/methods/create_footer/handler.d.ts.map +1 -0
- package/dist/docs/methods/create_footer/handler.js +16 -0
- package/dist/docs/methods/create_footer/handler.js.map +1 -0
- package/dist/docs/methods/create_footer/index.d.ts +19 -0
- package/dist/docs/methods/create_footer/index.d.ts.map +1 -0
- package/dist/docs/methods/create_footer/index.js +23 -0
- package/dist/docs/methods/create_footer/index.js.map +1 -0
- package/dist/docs/methods/create_footer/schema.d.ts +16 -0
- package/dist/docs/methods/create_footer/schema.d.ts.map +1 -0
- package/dist/docs/methods/create_footer/schema.js +22 -0
- package/dist/docs/methods/create_footer/schema.js.map +1 -0
- package/dist/docs/methods/create_footnote/handler.d.ts +5 -0
- package/dist/docs/methods/create_footnote/handler.d.ts.map +1 -0
- package/dist/docs/methods/create_footnote/handler.js +12 -0
- package/dist/docs/methods/create_footnote/handler.js.map +1 -0
- package/dist/docs/methods/create_footnote/index.d.ts +15 -0
- package/dist/docs/methods/create_footnote/index.d.ts.map +1 -0
- package/dist/docs/methods/create_footnote/index.js +22 -0
- package/dist/docs/methods/create_footnote/index.js.map +1 -0
- package/dist/docs/methods/create_footnote/schema.d.ts +13 -0
- package/dist/docs/methods/create_footnote/schema.d.ts.map +1 -0
- package/dist/docs/methods/create_footnote/schema.js +19 -0
- package/dist/docs/methods/create_footnote/schema.js.map +1 -0
- package/dist/docs/methods/create_header/handler.d.ts +5 -0
- package/dist/docs/methods/create_header/handler.d.ts.map +1 -0
- package/dist/docs/methods/create_header/handler.js +16 -0
- package/dist/docs/methods/create_header/handler.js.map +1 -0
- package/dist/docs/methods/create_header/index.d.ts +19 -0
- package/dist/docs/methods/create_header/index.d.ts.map +1 -0
- package/dist/docs/methods/create_header/index.js +23 -0
- package/dist/docs/methods/create_header/index.js.map +1 -0
- package/dist/docs/methods/create_header/schema.d.ts +16 -0
- package/dist/docs/methods/create_header/schema.d.ts.map +1 -0
- package/dist/docs/methods/create_header/schema.js +22 -0
- package/dist/docs/methods/create_header/schema.js.map +1 -0
- package/dist/docs/methods/create_named_range/handler.d.ts +5 -0
- package/dist/docs/methods/create_named_range/handler.d.ts.map +1 -0
- package/dist/docs/methods/create_named_range/handler.js +13 -0
- package/dist/docs/methods/create_named_range/handler.js.map +1 -0
- package/dist/docs/methods/create_named_range/index.d.ts +20 -0
- package/dist/docs/methods/create_named_range/index.d.ts.map +1 -0
- package/dist/docs/methods/create_named_range/index.js +22 -0
- package/dist/docs/methods/create_named_range/index.js.map +1 -0
- package/dist/docs/methods/create_named_range/schema.d.ts +18 -0
- package/dist/docs/methods/create_named_range/schema.d.ts.map +1 -0
- package/dist/docs/methods/create_named_range/schema.js +20 -0
- package/dist/docs/methods/create_named_range/schema.js.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.d.ts.map +1 -1
- package/dist/docs/methods/create_paragraph_bullets/handler.js +2 -1
- package/dist/docs/methods/create_paragraph_bullets/handler.js.map +1 -1
- package/dist/docs/methods/create_paragraph_bullets/index.d.ts +1 -0
- package/dist/docs/methods/create_paragraph_bullets/index.d.ts.map +1 -1
- package/dist/docs/methods/create_paragraph_bullets/schema.d.ts +1 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.d.ts.map +1 -1
- package/dist/docs/methods/delete_content_range/handler.d.ts.map +1 -1
- package/dist/docs/methods/delete_content_range/handler.js +2 -1
- package/dist/docs/methods/delete_content_range/handler.js.map +1 -1
- package/dist/docs/methods/delete_content_range/index.d.ts +1 -0
- package/dist/docs/methods/delete_content_range/index.d.ts.map +1 -1
- package/dist/docs/methods/delete_content_range/schema.d.ts +1 -0
- package/dist/docs/methods/delete_content_range/schema.d.ts.map +1 -1
- package/dist/docs/methods/delete_footer/handler.d.ts +5 -0
- package/dist/docs/methods/delete_footer/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_footer/handler.js +8 -0
- package/dist/docs/methods/delete_footer/handler.js.map +1 -0
- package/dist/docs/methods/delete_footer/index.d.ts +14 -0
- package/dist/docs/methods/delete_footer/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_footer/index.js +22 -0
- package/dist/docs/methods/delete_footer/index.js.map +1 -0
- package/dist/docs/methods/delete_footer/schema.d.ts +12 -0
- package/dist/docs/methods/delete_footer/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_footer/schema.js +13 -0
- package/dist/docs/methods/delete_footer/schema.js.map +1 -0
- package/dist/docs/methods/delete_header/handler.d.ts +5 -0
- package/dist/docs/methods/delete_header/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_header/handler.js +8 -0
- package/dist/docs/methods/delete_header/handler.js.map +1 -0
- package/dist/docs/methods/delete_header/index.d.ts +14 -0
- package/dist/docs/methods/delete_header/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_header/index.js +22 -0
- package/dist/docs/methods/delete_header/index.js.map +1 -0
- package/dist/docs/methods/delete_header/schema.d.ts +12 -0
- package/dist/docs/methods/delete_header/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_header/schema.js +13 -0
- package/dist/docs/methods/delete_header/schema.js.map +1 -0
- package/dist/docs/methods/delete_named_range/handler.d.ts +5 -0
- package/dist/docs/methods/delete_named_range/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_named_range/handler.js +9 -0
- package/dist/docs/methods/delete_named_range/handler.js.map +1 -0
- package/dist/docs/methods/delete_named_range/index.d.ts +17 -0
- package/dist/docs/methods/delete_named_range/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_named_range/index.js +24 -0
- package/dist/docs/methods/delete_named_range/index.js.map +1 -0
- package/dist/docs/methods/delete_named_range/schema.d.ts +13 -0
- package/dist/docs/methods/delete_named_range/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_named_range/schema.js +21 -0
- package/dist/docs/methods/delete_named_range/schema.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.d.ts.map +1 -1
- package/dist/docs/methods/delete_paragraph_bullets/handler.js +2 -1
- package/dist/docs/methods/delete_paragraph_bullets/handler.js.map +1 -1
- package/dist/docs/methods/delete_paragraph_bullets/index.d.ts +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.d.ts.map +1 -1
- package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts.map +1 -1
- package/dist/docs/methods/delete_positioned_object/handler.d.ts +5 -0
- package/dist/docs/methods/delete_positioned_object/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_positioned_object/handler.js +8 -0
- package/dist/docs/methods/delete_positioned_object/handler.js.map +1 -0
- package/dist/docs/methods/delete_positioned_object/index.d.ts +16 -0
- package/dist/docs/methods/delete_positioned_object/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_positioned_object/index.js +24 -0
- package/dist/docs/methods/delete_positioned_object/index.js.map +1 -0
- package/dist/docs/methods/delete_positioned_object/schema.d.ts +12 -0
- package/dist/docs/methods/delete_positioned_object/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_positioned_object/schema.js +10 -0
- package/dist/docs/methods/delete_positioned_object/schema.js.map +1 -0
- package/dist/docs/methods/delete_table_column/handler.d.ts +5 -0
- package/dist/docs/methods/delete_table_column/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_table_column/handler.js +9 -0
- package/dist/docs/methods/delete_table_column/handler.js.map +1 -0
- package/dist/docs/methods/delete_table_column/index.d.ts +22 -0
- package/dist/docs/methods/delete_table_column/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_table_column/index.js +23 -0
- package/dist/docs/methods/delete_table_column/index.js.map +1 -0
- package/dist/docs/methods/delete_table_column/schema.d.ts +19 -0
- package/dist/docs/methods/delete_table_column/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_table_column/schema.js +11 -0
- package/dist/docs/methods/delete_table_column/schema.js.map +1 -0
- package/dist/docs/methods/delete_table_row/handler.d.ts +5 -0
- package/dist/docs/methods/delete_table_row/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_table_row/handler.js +9 -0
- package/dist/docs/methods/delete_table_row/handler.js.map +1 -0
- package/dist/docs/methods/delete_table_row/index.d.ts +22 -0
- package/dist/docs/methods/delete_table_row/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_table_row/index.js +23 -0
- package/dist/docs/methods/delete_table_row/index.js.map +1 -0
- package/dist/docs/methods/delete_table_row/schema.d.ts +19 -0
- package/dist/docs/methods/delete_table_row/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_table_row/schema.js +11 -0
- package/dist/docs/methods/delete_table_row/schema.js.map +1 -0
- package/dist/docs/methods/get_document/index.d.ts +14 -15
- package/dist/docs/methods/get_document/index.d.ts.map +1 -1
- package/dist/docs/methods/get_document/index.js +6 -4
- package/dist/docs/methods/get_document/index.js.map +1 -1
- package/dist/docs/methods/get_document/schema.d.ts +9 -12
- package/dist/docs/methods/get_document/schema.d.ts.map +1 -1
- package/dist/docs/methods/insert_inline_image/handler.d.ts +5 -0
- package/dist/docs/methods/insert_inline_image/handler.d.ts.map +1 -0
- package/dist/docs/methods/insert_inline_image/handler.js +23 -0
- package/dist/docs/methods/insert_inline_image/handler.js.map +1 -0
- package/dist/docs/methods/insert_inline_image/index.d.ts +20 -0
- package/dist/docs/methods/insert_inline_image/index.d.ts.map +1 -0
- package/dist/docs/methods/insert_inline_image/index.js +23 -0
- package/dist/docs/methods/insert_inline_image/index.js.map +1 -0
- package/dist/docs/methods/insert_inline_image/schema.d.ts +17 -0
- package/dist/docs/methods/insert_inline_image/schema.d.ts.map +1 -0
- package/dist/docs/methods/insert_inline_image/schema.js +44 -0
- package/dist/docs/methods/insert_inline_image/schema.js.map +1 -0
- package/dist/docs/methods/insert_page_break/handler.d.ts +5 -0
- package/dist/docs/methods/insert_page_break/handler.d.ts.map +1 -0
- package/dist/docs/methods/insert_page_break/handler.js +8 -0
- package/dist/docs/methods/insert_page_break/handler.js.map +1 -0
- package/dist/docs/methods/insert_page_break/index.d.ts +14 -0
- package/dist/docs/methods/insert_page_break/index.d.ts.map +1 -0
- package/dist/docs/methods/insert_page_break/index.js +22 -0
- package/dist/docs/methods/insert_page_break/index.js.map +1 -0
- package/dist/docs/methods/insert_page_break/schema.d.ts +12 -0
- package/dist/docs/methods/insert_page_break/schema.d.ts.map +1 -0
- package/dist/docs/methods/insert_page_break/schema.js +15 -0
- package/dist/docs/methods/insert_page_break/schema.js.map +1 -0
- package/dist/docs/methods/insert_section_break/handler.d.ts +5 -0
- package/dist/docs/methods/insert_section_break/handler.d.ts.map +1 -0
- package/dist/docs/methods/insert_section_break/handler.js +13 -0
- package/dist/docs/methods/insert_section_break/handler.js.map +1 -0
- package/dist/docs/methods/insert_section_break/index.d.ts +17 -0
- package/dist/docs/methods/insert_section_break/index.d.ts.map +1 -0
- package/dist/docs/methods/insert_section_break/index.js +21 -0
- package/dist/docs/methods/insert_section_break/index.js.map +1 -0
- package/dist/docs/methods/insert_section_break/schema.d.ts +16 -0
- package/dist/docs/methods/insert_section_break/schema.d.ts.map +1 -0
- package/dist/docs/methods/insert_section_break/schema.js +18 -0
- package/dist/docs/methods/insert_section_break/schema.js.map +1 -0
- package/dist/docs/methods/insert_table/handler.d.ts +5 -0
- package/dist/docs/methods/insert_table/handler.d.ts.map +1 -0
- package/dist/docs/methods/insert_table/handler.js +9 -0
- package/dist/docs/methods/insert_table/handler.js.map +1 -0
- package/dist/docs/methods/insert_table/index.d.ts +15 -0
- package/dist/docs/methods/insert_table/index.d.ts.map +1 -0
- package/dist/docs/methods/insert_table/index.js +21 -0
- package/dist/docs/methods/insert_table/index.js.map +1 -0
- package/dist/docs/methods/insert_table/schema.d.ts +14 -0
- package/dist/docs/methods/insert_table/schema.d.ts.map +1 -0
- package/dist/docs/methods/insert_table/schema.js +17 -0
- package/dist/docs/methods/insert_table/schema.js.map +1 -0
- package/dist/docs/methods/insert_table_column/handler.d.ts +5 -0
- package/dist/docs/methods/insert_table_column/handler.d.ts.map +1 -0
- package/dist/docs/methods/insert_table_column/handler.js +12 -0
- package/dist/docs/methods/insert_table_column/handler.js.map +1 -0
- package/dist/docs/methods/insert_table_column/index.d.ts +21 -0
- package/dist/docs/methods/insert_table_column/index.d.ts.map +1 -0
- package/dist/docs/methods/insert_table_column/index.js +21 -0
- package/dist/docs/methods/insert_table_column/index.js.map +1 -0
- package/dist/docs/methods/insert_table_column/schema.d.ts +20 -0
- package/dist/docs/methods/insert_table_column/schema.d.ts.map +1 -0
- package/dist/docs/methods/insert_table_column/schema.js +14 -0
- package/dist/docs/methods/insert_table_column/schema.js.map +1 -0
- package/dist/docs/methods/insert_table_row/handler.d.ts +5 -0
- package/dist/docs/methods/insert_table_row/handler.d.ts.map +1 -0
- package/dist/docs/methods/insert_table_row/handler.js +12 -0
- package/dist/docs/methods/insert_table_row/handler.js.map +1 -0
- package/dist/docs/methods/insert_table_row/index.d.ts +21 -0
- package/dist/docs/methods/insert_table_row/index.d.ts.map +1 -0
- package/dist/docs/methods/insert_table_row/index.js +21 -0
- package/dist/docs/methods/insert_table_row/index.js.map +1 -0
- package/dist/docs/methods/insert_table_row/schema.d.ts +20 -0
- package/dist/docs/methods/insert_table_row/schema.d.ts.map +1 -0
- package/dist/docs/methods/insert_table_row/schema.js +14 -0
- package/dist/docs/methods/insert_table_row/schema.js.map +1 -0
- package/dist/docs/methods/insert_text/handler.d.ts.map +1 -1
- package/dist/docs/methods/insert_text/handler.js +13 -2
- package/dist/docs/methods/insert_text/handler.js.map +1 -1
- package/dist/docs/methods/insert_text/index.d.ts +1 -0
- package/dist/docs/methods/insert_text/index.d.ts.map +1 -1
- package/dist/docs/methods/insert_text/schema.d.ts +1 -0
- package/dist/docs/methods/insert_text/schema.d.ts.map +1 -1
- package/dist/docs/methods/insert_text/schema.js +13 -3
- package/dist/docs/methods/insert_text/schema.js.map +1 -1
- package/dist/docs/methods/merge_table_cells/handler.d.ts +5 -0
- package/dist/docs/methods/merge_table_cells/handler.d.ts.map +1 -0
- package/dist/docs/methods/merge_table_cells/handler.js +9 -0
- package/dist/docs/methods/merge_table_cells/handler.js.map +1 -0
- package/dist/docs/methods/merge_table_cells/index.d.ts +26 -0
- package/dist/docs/methods/merge_table_cells/index.d.ts.map +1 -0
- package/dist/docs/methods/merge_table_cells/index.js +23 -0
- package/dist/docs/methods/merge_table_cells/index.js.map +1 -0
- package/dist/docs/methods/merge_table_cells/schema.d.ts +23 -0
- package/dist/docs/methods/merge_table_cells/schema.d.ts.map +1 -0
- package/dist/docs/methods/merge_table_cells/schema.js +11 -0
- package/dist/docs/methods/merge_table_cells/schema.js.map +1 -0
- package/dist/docs/methods/pin_table_header_rows/handler.d.ts +5 -0
- package/dist/docs/methods/pin_table_header_rows/handler.d.ts.map +1 -0
- package/dist/docs/methods/pin_table_header_rows/handler.js +12 -0
- package/dist/docs/methods/pin_table_header_rows/handler.js.map +1 -0
- package/dist/docs/methods/pin_table_header_rows/index.d.ts +17 -0
- package/dist/docs/methods/pin_table_header_rows/index.d.ts.map +1 -0
- package/dist/docs/methods/pin_table_header_rows/index.js +21 -0
- package/dist/docs/methods/pin_table_header_rows/index.js.map +1 -0
- package/dist/docs/methods/pin_table_header_rows/schema.d.ts +16 -0
- package/dist/docs/methods/pin_table_header_rows/schema.d.ts.map +1 -0
- package/dist/docs/methods/pin_table_header_rows/schema.js +16 -0
- package/dist/docs/methods/pin_table_header_rows/schema.js.map +1 -0
- package/dist/docs/methods/registry.d.ts +608 -24
- package/dist/docs/methods/registry.d.ts.map +1 -1
- package/dist/docs/methods/registry.js +57 -0
- package/dist/docs/methods/registry.js.map +1 -1
- package/dist/docs/methods/replace_image/handler.d.ts +5 -0
- package/dist/docs/methods/replace_image/handler.d.ts.map +1 -0
- package/dist/docs/methods/replace_image/handler.js +13 -0
- package/dist/docs/methods/replace_image/handler.js.map +1 -0
- package/dist/docs/methods/replace_image/index.d.ts +20 -0
- package/dist/docs/methods/replace_image/index.d.ts.map +1 -0
- package/dist/docs/methods/replace_image/index.js +24 -0
- package/dist/docs/methods/replace_image/index.js.map +1 -0
- package/dist/docs/methods/replace_image/schema.d.ts +16 -0
- package/dist/docs/methods/replace_image/schema.d.ts.map +1 -0
- package/dist/docs/methods/replace_image/schema.js +22 -0
- package/dist/docs/methods/replace_image/schema.js.map +1 -0
- package/dist/docs/methods/replace_named_range_content/handler.d.ts +5 -0
- package/dist/docs/methods/replace_named_range_content/handler.d.ts.map +1 -0
- package/dist/docs/methods/replace_named_range_content/handler.js +13 -0
- package/dist/docs/methods/replace_named_range_content/handler.js.map +1 -0
- package/dist/docs/methods/replace_named_range_content/index.d.ts +19 -0
- package/dist/docs/methods/replace_named_range_content/index.d.ts.map +1 -0
- package/dist/docs/methods/replace_named_range_content/index.js +25 -0
- package/dist/docs/methods/replace_named_range_content/index.js.map +1 -0
- package/dist/docs/methods/replace_named_range_content/schema.d.ts +14 -0
- package/dist/docs/methods/replace_named_range_content/schema.d.ts.map +1 -0
- package/dist/docs/methods/replace_named_range_content/schema.js +24 -0
- package/dist/docs/methods/replace_named_range_content/schema.js.map +1 -0
- package/dist/docs/methods/unmerge_table_cells/handler.d.ts +5 -0
- package/dist/docs/methods/unmerge_table_cells/handler.d.ts.map +1 -0
- package/dist/docs/methods/unmerge_table_cells/handler.js +9 -0
- package/dist/docs/methods/unmerge_table_cells/handler.js.map +1 -0
- package/dist/docs/methods/unmerge_table_cells/index.d.ts +26 -0
- package/dist/docs/methods/unmerge_table_cells/index.d.ts.map +1 -0
- package/dist/docs/methods/unmerge_table_cells/index.js +23 -0
- package/dist/docs/methods/unmerge_table_cells/index.js.map +1 -0
- package/dist/docs/methods/unmerge_table_cells/schema.d.ts +23 -0
- package/dist/docs/methods/unmerge_table_cells/schema.d.ts.map +1 -0
- package/dist/docs/methods/unmerge_table_cells/schema.js +11 -0
- package/dist/docs/methods/unmerge_table_cells/schema.js.map +1 -0
- package/dist/docs/methods/update_document_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_document_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_document_style/handler.js +38 -0
- package/dist/docs/methods/update_document_style/handler.js.map +1 -0
- package/dist/docs/methods/update_document_style/index.d.ts +40 -0
- package/dist/docs/methods/update_document_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_document_style/index.js +22 -0
- package/dist/docs/methods/update_document_style/index.js.map +1 -0
- package/dist/docs/methods/update_document_style/schema.d.ts +38 -0
- package/dist/docs/methods/update_document_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_document_style/schema.js +13 -0
- package/dist/docs/methods/update_document_style/schema.js.map +1 -0
- package/dist/docs/methods/update_paragraph_style/handler.d.ts.map +1 -1
- package/dist/docs/methods/update_paragraph_style/handler.js +38 -2
- package/dist/docs/methods/update_paragraph_style/handler.js.map +1 -1
- package/dist/docs/methods/update_paragraph_style/index.d.ts +119 -0
- package/dist/docs/methods/update_paragraph_style/index.d.ts.map +1 -1
- package/dist/docs/methods/update_paragraph_style/index.js +1 -1
- package/dist/docs/methods/update_paragraph_style/index.js.map +1 -1
- package/dist/docs/methods/update_paragraph_style/schema.d.ts +119 -0
- package/dist/docs/methods/update_paragraph_style/schema.d.ts.map +1 -1
- package/dist/docs/methods/update_section_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_section_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_section_style/handler.js +31 -0
- package/dist/docs/methods/update_section_style/handler.js.map +1 -0
- package/dist/docs/methods/update_section_style/index.d.ts +38 -0
- package/dist/docs/methods/update_section_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_section_style/index.js +22 -0
- package/dist/docs/methods/update_section_style/index.js.map +1 -0
- package/dist/docs/methods/update_section_style/schema.d.ts +36 -0
- package/dist/docs/methods/update_section_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_section_style/schema.js +15 -0
- package/dist/docs/methods/update_section_style/schema.js.map +1 -0
- package/dist/docs/methods/update_table_cell_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_table_cell_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_table_cell_style/handler.js +47 -0
- package/dist/docs/methods/update_table_cell_style/handler.js.map +1 -0
- package/dist/docs/methods/update_table_cell_style/index.d.ts +117 -0
- package/dist/docs/methods/update_table_cell_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_table_cell_style/index.js +22 -0
- package/dist/docs/methods/update_table_cell_style/index.js.map +1 -0
- package/dist/docs/methods/update_table_cell_style/schema.d.ts +115 -0
- package/dist/docs/methods/update_table_cell_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_table_cell_style/schema.js +21 -0
- package/dist/docs/methods/update_table_cell_style/schema.js.map +1 -0
- package/dist/docs/methods/update_table_column_properties/handler.d.ts +5 -0
- package/dist/docs/methods/update_table_column_properties/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_table_column_properties/handler.js +28 -0
- package/dist/docs/methods/update_table_column_properties/handler.js.map +1 -0
- package/dist/docs/methods/update_table_column_properties/index.d.ts +25 -0
- package/dist/docs/methods/update_table_column_properties/index.d.ts.map +1 -0
- package/dist/docs/methods/update_table_column_properties/index.js +22 -0
- package/dist/docs/methods/update_table_column_properties/index.js.map +1 -0
- package/dist/docs/methods/update_table_column_properties/schema.d.ts +23 -0
- package/dist/docs/methods/update_table_column_properties/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_table_column_properties/schema.js +19 -0
- package/dist/docs/methods/update_table_column_properties/schema.js.map +1 -0
- package/dist/docs/methods/update_table_row_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_table_row_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_table_row_style/handler.js +28 -0
- package/dist/docs/methods/update_table_row_style/handler.js.map +1 -0
- package/dist/docs/methods/update_table_row_style/index.d.ts +23 -0
- package/dist/docs/methods/update_table_row_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_table_row_style/index.js +22 -0
- package/dist/docs/methods/update_table_row_style/index.js.map +1 -0
- package/dist/docs/methods/update_table_row_style/schema.d.ts +21 -0
- package/dist/docs/methods/update_table_row_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_table_row_style/schema.js +19 -0
- package/dist/docs/methods/update_table_row_style/schema.js.map +1 -0
- package/dist/docs/methods/update_text_style/handler.d.ts.map +1 -1
- package/dist/docs/methods/update_text_style/handler.js +14 -5
- package/dist/docs/methods/update_text_style/handler.js.map +1 -1
- package/dist/docs/methods/update_text_style/index.d.ts +23 -0
- package/dist/docs/methods/update_text_style/index.d.ts.map +1 -1
- package/dist/docs/methods/update_text_style/index.js +1 -1
- package/dist/docs/methods/update_text_style/index.js.map +1 -1
- package/dist/docs/methods/update_text_style/schema.d.ts +23 -0
- package/dist/docs/methods/update_text_style/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/ADOPTING.md
CHANGED
|
@@ -19,8 +19,8 @@ the differences are concrete:
|
|
|
19
19
|
|
|
20
20
|
- **MCP and then some.** The Gmail, Calendar, and Drive servers expose
|
|
21
21
|
Google's curated MCP toolset *plus* the broader REST method surface;
|
|
22
|
-
Sheets and Docs are REST-sourced throughout: [
|
|
23
|
-
across Gmail (33), Calendar (31), Drive (35), Sheets (76), and Docs (
|
|
22
|
+
Sheets and Docs are REST-sourced throughout: [210 operations](./README.md#services)
|
|
23
|
+
across Gmail (33), Calendar (31), Drive (35), Sheets (76), and Docs (35). Each
|
|
24
24
|
service's `CAPABILITIES.md` enumerates its operations with provenance.
|
|
25
25
|
Built-in connectors document a narrower surface; as of this writing,
|
|
26
26
|
Anthropic documents its claude.ai Gmail connector as searching, reading,
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<strong>Google Workspace MCP servers you can read in an afternoon, one per service.</strong><br />
|
|
17
|
-
The curated <a href="https://modelcontextprotocol.io/">MCP</a> toolset plus the broader REST surface for Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets, one server per service per account: <strong>
|
|
17
|
+
The curated <a href="https://modelcontextprotocol.io/">MCP</a> toolset plus the broader REST surface for Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets, one server per service per account: <strong>210 self-describing operations</strong> across five Google services, so an AI agent (Claude, Cursor, or any MCP client) can do (nearly) anything your accounts can, on several accounts at once, and never on the wrong one. Every operation cites its Google reference page and validates input and output; test coverage is pinned at 100%.
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
32
|
<p align="center">
|
|
33
|
-
<sub><strong>
|
|
33
|
+
<sub><strong>210 operations</strong> ship today: <strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">31</a>), <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">76</a>), <strong>Docs</strong> (<a href="./src/docs/CAPABILITIES.md">35</a>), and <strong>Drive</strong> (<a href="./src/drive/CAPABILITIES.md">35</a>).</sub>
|
|
34
34
|
</p>
|
|
35
35
|
|
|
36
36
|
<p align="center"><sub><strong>Replacing a built-in connector?</strong> Hand your agent <a href="./ADOPTING.md">ADOPTING.md</a>: the playbook to adopt, supersede, verify, and decommission.</sub></p>
|
|
@@ -46,7 +46,7 @@ The design has two internal concepts and nothing else:
|
|
|
46
46
|
|
|
47
47
|
That is the whole surface. Read one operation folder and you understand all of them.
|
|
48
48
|
|
|
49
|
-
- **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [31](./src/calendar/CAPABILITIES.md) (8 plus 23), Drive with [35](./src/drive/CAPABILITIES.md) (8 plus 27), Sheets with [76](./src/sheets/CAPABILITIES.md), and Docs with [
|
|
49
|
+
- **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [31](./src/calendar/CAPABILITIES.md) (8 plus 23), Drive with [35](./src/drive/CAPABILITIES.md) (8 plus 27), Sheets with [76](./src/sheets/CAPABILITIES.md), and Docs with [35](./src/docs/CAPABILITIES.md) (Sheets and Docs are REST-sourced throughout; Google published no MCP toolset for either when they shipped, though previews now exist); the split is explained in [MCP, and then some](#mcp-and-then-some).
|
|
50
50
|
- **The folder tree mirrors Google's docs.** A Google tools-list reference page becomes a `tools/` folder; a Google REST method reference page becomes a `methods/` folder. If you can find the operation in Google's docs, you can find it in this repo.
|
|
51
51
|
|
|
52
52
|
| Google's reference page | This repo's folder |
|
|
@@ -67,7 +67,7 @@ This is an MCP server, and deliberately more than one. Google publishes an MCP t
|
|
|
67
67
|
- **`tools/`** mirrors Google's **MCP toolset** reference, verbatim.
|
|
68
68
|
- **`methods/`** covers the broader **REST** reference, the operations the MCP toolset omits.
|
|
69
69
|
|
|
70
|
-
The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google published no MCP toolset for either when they shipped (developer previews have since appeared), so those servers are methods-only ([76](./src/sheets/CAPABILITIES.md) and [
|
|
70
|
+
The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google published no MCP toolset for either when they shipped (developer previews have since appeared), so those servers are methods-only ([76](./src/sheets/CAPABILITIES.md) and [35](./src/docs/CAPABILITIES.md) operations sourced entirely from the REST reference). Keeping the two sourced surfaces separate also makes each new operation a bounded, documentation-driven unit of work; the recipe is in [EXTENDING.md](./EXTENDING.md).
|
|
71
71
|
|
|
72
72
|
## Quickstart
|
|
73
73
|
|
|
@@ -188,7 +188,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full task list, [AGENTS.md](./A
|
|
|
188
188
|
| **Gmail** | ✅ Implemented | [33 operations](./src/gmail/CAPABILITIES.md): threads, messages, drafts, labels, filters, attachments |
|
|
189
189
|
| **Calendar** | ✅ Implemented | [31 operations](./src/calendar/CAPABILITIES.md): events, calendars, sharing, free/busy, meeting-time suggestions |
|
|
190
190
|
| **Sheets** | ✅ Implemented | [76 operations](./src/sheets/CAPABILITIES.md): spreadsheets, values, batch and data-filter reads/writes, developer metadata, sheet management, dimension layout and groups, named ranges, formatting, banding and borders, cell content and merges, sorting, filters, data transformations, conditional format rules, data validation, protected ranges, every ordinary-grid chart family, slicers, and embedded-object layout |
|
|
191
|
-
| **Docs** | ✅ Implemented | [
|
|
191
|
+
| **Docs** | ✅ Implemented | [35 operations](./src/docs/CAPABILITIES.md): document reads and creation, curated text editing and styling, document and section layout, tables, named ranges, headers and footers, page breaks, footnotes, and images |
|
|
192
192
|
| **Drive** | ✅ Implemented | [35 operations](./src/drive/CAPABILITIES.md): files, search, content, comments, revisions, shared drives |
|
|
193
193
|
|
|
194
194
|
Gmail is the reference (canary) implementation; Calendar is its first replication; Sheets and Docs are methods-only (REST-sourced; Google's MCP toolsets for them arrived later, as previews); Drive carries both wings; each new service mirrors the same shape.
|
|
@@ -3,12 +3,13 @@ import { z } from 'zod';
|
|
|
3
3
|
* The level of access an access control rule grants to its scope, from no
|
|
4
4
|
* access at all up to manager access over the calendar's own sharing.
|
|
5
5
|
*
|
|
6
|
-
* `writer` and `writerWithoutPrivateAccess`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* `writer` and `writerWithoutPrivateAccess` differ on two axes. The latter
|
|
7
|
+
* reads and writes only the events that are not private, seeing private ones
|
|
8
|
+
* as opaque busy blocks, so it is a narrower grant than its name suggests:
|
|
9
|
+
* the restriction is on writing as well as reading. Only `writer`
|
|
10
|
+
* additionally carries read access to the calendar's own ACLs, which is why
|
|
11
|
+
* listing a calendar's rules needs `writer` or `owner` and a `reader` grant is
|
|
12
|
+
* not enough. `owner` is the escalation to watch, carrying every
|
|
12
13
|
* `writer` permission plus the ability to modify other users' access levels,
|
|
13
14
|
* so a rule granting it hands over control of the calendar's sharing. It is
|
|
14
15
|
* distinct from the calendar's data owner, of which there is exactly one.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AclRole.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"AclRole.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,OAAO;;;;;;;EAOlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -3,12 +3,13 @@ import { z } from 'zod';
|
|
|
3
3
|
* The level of access an access control rule grants to its scope, from no
|
|
4
4
|
* access at all up to manager access over the calendar's own sharing.
|
|
5
5
|
*
|
|
6
|
-
* `writer` and `writerWithoutPrivateAccess`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* `writer` and `writerWithoutPrivateAccess` differ on two axes. The latter
|
|
7
|
+
* reads and writes only the events that are not private, seeing private ones
|
|
8
|
+
* as opaque busy blocks, so it is a narrower grant than its name suggests:
|
|
9
|
+
* the restriction is on writing as well as reading. Only `writer`
|
|
10
|
+
* additionally carries read access to the calendar's own ACLs, which is why
|
|
11
|
+
* listing a calendar's rules needs `writer` or `owner` and a `reader` grant is
|
|
12
|
+
* not enough. `owner` is the escalation to watch, carrying every
|
|
12
13
|
* `writer` permission plus the ability to modify other users' access levels,
|
|
13
14
|
* so a rule granting it hands over control of the calendar's sharing. It is
|
|
14
15
|
* distinct from the calendar's data owner, of which there is exactly one.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AclRole.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"AclRole.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5B,MAAM;IACN,gBAAgB;IAChB,QAAQ;IACR,4BAA4B;IAC5B,QAAQ;IACR,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The level of access an access control rule grants to its scope, from no\n * access at all up to manager access over the calendar's own sharing.\n *\n * `writer` and `writerWithoutPrivateAccess` differ on two axes. The latter\n * reads and writes only the events that are not private, seeing private ones\n * as opaque busy blocks, so it is a narrower grant than its name suggests:\n * the restriction is on writing as well as reading. Only `writer`\n * additionally carries read access to the calendar's own ACLs, which is why\n * listing a calendar's rules needs `writer` or `owner` and a `reader` grant is\n * not enough. `owner` is the escalation to watch, carrying every\n * `writer` permission plus the ability to modify other users' access levels,\n * so a rule granting it hands over control of the calendar's sharing. It is\n * distinct from the calendar's data owner, of which there is exactly one.\n *\n * Ordered least to most access, and sourced from the discovery document\n * rather than the bundled client types, which omit\n * `writerWithoutPrivateAccess`.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nexport const AclRole = z.enum([\n 'none',\n 'freeBusyReader',\n 'reader',\n 'writerWithoutPrivateAccess',\n 'writer',\n 'owner',\n]);\n\nexport type AclRole = z.infer<typeof AclRole>;\n"]}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
3
|
+
* The scope types that name a principal, and so require a value. The union's
|
|
4
|
+
* named branch is built from this rather than repeating the list, so a new
|
|
5
|
+
* scope type cannot be accepted on input while the output projection silently
|
|
6
|
+
* drops it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NamedAclScopeType: z.ZodEnum<{
|
|
9
|
+
domain: "domain";
|
|
10
|
+
group: "group";
|
|
11
|
+
user: "user";
|
|
12
|
+
}>;
|
|
13
|
+
export type NamedAclScopeType = z.infer<typeof NamedAclScopeType>;
|
|
14
|
+
/**
|
|
15
|
+
* The kinds of principal a sharing rule can name, the public scope included.
|
|
4
16
|
*
|
|
5
17
|
* Exported separately from AclScope because AclScope is a union and so has no
|
|
6
18
|
* single `shape` to read the type list from; the projection narrows against
|
|
7
19
|
* this (EXTENDING.md, "Enum policy": the allowed list derives from the entity).
|
|
20
|
+
* Derived from NamedAclScopeType so the two stay one vocabulary.
|
|
8
21
|
*/
|
|
9
22
|
export declare const AclScopeType: z.ZodEnum<{
|
|
10
23
|
default: "default";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AclScope.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"AclScope.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;;;EAAoD,CAAC;AAE9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;4BAgBnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
3
|
+
* The scope types that name a principal, and so require a value. The union's
|
|
4
|
+
* named branch is built from this rather than repeating the list, so a new
|
|
5
|
+
* scope type cannot be accepted on input while the output projection silently
|
|
6
|
+
* drops it.
|
|
7
|
+
*/
|
|
8
|
+
export const NamedAclScopeType = z.enum(['user', 'group', 'domain']);
|
|
9
|
+
/**
|
|
10
|
+
* The kinds of principal a sharing rule can name, the public scope included.
|
|
4
11
|
*
|
|
5
12
|
* Exported separately from AclScope because AclScope is a union and so has no
|
|
6
13
|
* single `shape` to read the type list from; the projection narrows against
|
|
7
14
|
* this (EXTENDING.md, "Enum policy": the allowed list derives from the entity).
|
|
15
|
+
* Derived from NamedAclScopeType so the two stay one vocabulary.
|
|
8
16
|
*/
|
|
9
|
-
export const AclScopeType = z.enum(['default',
|
|
17
|
+
export const AclScopeType = z.enum(['default', ...NamedAclScopeType.options]);
|
|
10
18
|
/**
|
|
11
19
|
* The extent to which calendar access is granted by an access control rule:
|
|
12
20
|
* who the rule is about.
|
|
@@ -37,9 +45,7 @@ export const AclScope = z.discriminatedUnion('type', [
|
|
|
37
45
|
.describe('The public scope: access is granted to any user, authenticated or not.'),
|
|
38
46
|
}),
|
|
39
47
|
z.strictObject({
|
|
40
|
-
type:
|
|
41
|
-
.enum(['user', 'group', 'domain'])
|
|
42
|
-
.describe('The type of the scope: a single user, a group, or a whole domain.'),
|
|
48
|
+
type: NamedAclScopeType.describe('The type of the scope: a single user, a group, or a whole domain.'),
|
|
43
49
|
value: z
|
|
44
50
|
.string()
|
|
45
51
|
.describe('The email address of a user or group, or the name of a domain, depending on the scope type.'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AclScope.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"AclScope.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAIrE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;AAI9E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnD,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,SAAS,CAAC;aAClB,QAAQ,CAAC,wEAAwE,CAAC;KACtF,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,iBAAiB,CAAC,QAAQ,CAC9B,mEAAmE,CACpE;QACD,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,CACP,6FAA6F,CAC9F;KACJ,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The scope types that name a principal, and so require a value. The union's\n * named branch is built from this rather than repeating the list, so a new\n * scope type cannot be accepted on input while the output projection silently\n * drops it.\n */\nexport const NamedAclScopeType = z.enum(['user', 'group', 'domain']);\n\nexport type NamedAclScopeType = z.infer<typeof NamedAclScopeType>;\n\n/**\n * The kinds of principal a sharing rule can name, the public scope included.\n *\n * Exported separately from AclScope because AclScope is a union and so has no\n * single `shape` to read the type list from; the projection narrows against\n * this (EXTENDING.md, \"Enum policy\": the allowed list derives from the entity).\n * Derived from NamedAclScopeType so the two stay one vocabulary.\n */\nexport const AclScopeType = z.enum(['default', ...NamedAclScopeType.options]);\n\nexport type AclScopeType = z.infer<typeof AclScopeType>;\n\n/**\n * The extent to which calendar access is granted by an access control rule:\n * who the rule is about.\n *\n * A discriminated union rather than one object with an optional `value`,\n * because the two shapes genuinely differ: `default` is the public scope and\n * takes no value, while `user`, `group`, and `domain` each name a principal\n * and require one. Modeling it as a union is what makes the emitted JSON\n * Schema (`oneOf`, each branch with its own `required`) match what the server\n * actually accepts; a refinement would validate at runtime but advertise the\n * wider shape to every MCP client, so an agent would build a call the schema\n * told it was legal and then be rejected.\n *\n * The pairing is enforced rather than merely documented because Google does\n * not enforce it, and its failure mode is severe: sending a value alongside\n * type `default` is accepted, the value is discarded for\n * `__public_principal__`, and the calendar becomes public. Verified against\n * the live API, not inferred.\n *\n * Both branches are strict, per EXTENDING.md's strict-input rule.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nexport const AclScope = z.discriminatedUnion('type', [\n z.strictObject({\n type: z\n .literal('default')\n .describe('The public scope: access is granted to any user, authenticated or not.'),\n }),\n z.strictObject({\n type: NamedAclScopeType.describe(\n 'The type of the scope: a single user, a group, or a whole domain.',\n ),\n value: z\n .string()\n .describe(\n 'The email address of a user or group, or the name of a domain, depending on the scope type.',\n ),\n }),\n]);\n\nexport type AclScope = z.infer<typeof AclScope>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarListEntry.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarListEntry.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iBAqD5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { EFFECTIVE_ROLES, listRoles } from '../lib/roles.js';
|
|
2
3
|
import { Reminder } from './Reminder.js';
|
|
3
4
|
/**
|
|
4
5
|
* A calendar as it appears on the user's calendar list: the per-user view
|
|
@@ -30,7 +31,7 @@ export const CalendarListEntry = z.object({
|
|
|
30
31
|
accessRole: z
|
|
31
32
|
.string()
|
|
32
33
|
.optional()
|
|
33
|
-
.describe(
|
|
34
|
+
.describe(`The user's effective access role on this calendar. One of: ${listRoles(EFFECTIVE_ROLES)}.`),
|
|
34
35
|
colorId: z
|
|
35
36
|
.string()
|
|
36
37
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarListEntry.js","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACjE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oEAAoE,CAAC;IACjF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"CalendarListEntry.js","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACjE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oEAAoE,CAAC;IACjF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,8DAA8D,SAAS,CAAC,eAAe,CAAC,GAAG,CAC5F;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0GAA0G,CAC3G;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,+FAA+F,CAChG;IACH,MAAM,EAAE,CAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACxF,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,QAAQ,CAAC;SACf,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EFFECTIVE_ROLES, listRoles } from '../lib/roles.js';\nimport { Reminder } from './Reminder.js';\n\n/**\n * A calendar as it appears on the user's calendar list: the per-user view\n * (title override, colors, visibility, access role, default reminders)\n * layered on top of a calendar. Distinct from entities/Calendar, the\n * calendar's own metadata.\n *\n * Field docs use `.describe()` so they reach the wire JSON Schema an MCP\n * client reads.\n *\n * @see https://developers.google.com/workspace/calendar/api/v3/reference/calendarList\n */\nexport const CalendarListEntry = z.object({\n id: z.string().describe('Identifier of the calendar.'),\n summary: z.string().optional().describe('Title of the calendar.'),\n summaryOverride: z\n .string()\n .optional()\n .describe(\"The title the user has set for this calendar, overriding the calendar's own.\"),\n description: z.string().optional().describe('Description of the calendar.'),\n location: z\n .string()\n .optional()\n .describe('Geographic location of the calendar as free-form text.'),\n timeZone: z\n .string()\n .optional()\n .describe('The time zone of the calendar, as an IANA Time Zone Database name.'),\n accessRole: z\n .string()\n .optional()\n .describe(\n `The user's effective access role on this calendar. One of: ${listRoles(EFFECTIVE_ROLES)}.`,\n ),\n colorId: z\n .string()\n .optional()\n .describe(\n 'The color of the calendar: an ID referring to an entry in the calendar section of the colors definition.',\n ),\n backgroundColor: z\n .string()\n .optional()\n .describe(\n 'The main color of the calendar in the hexadecimal format \"#0088aa\"; supersedes colorId.',\n ),\n foregroundColor: z\n .string()\n .optional()\n .describe(\n 'The foreground color of the calendar in the hexadecimal format \"#ffffff\"; supersedes colorId.',\n ),\n hidden: z\n .boolean()\n .optional()\n .describe('Whether the calendar has been hidden from the list. Only returned when true.'),\n selected: z\n .boolean()\n .optional()\n .describe('Whether the calendar content shows up in the calendar UI.'),\n primary: z.boolean().optional().describe(\"Whether this is the user's primary calendar.\"),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe('The default reminders the user has for this calendar.'),\n});\n\nexport type CalendarListEntry = z.infer<typeof CalendarListEntry>;\n"]}
|
package/dist/calendar/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { tools } from './tools/registry.js';
|
|
|
14
14
|
await server({
|
|
15
15
|
name: 'calendar',
|
|
16
16
|
title: 'Google Calendar (google-mcp-suite)',
|
|
17
|
-
description: 'Per-account Google Calendar MCP server: events, calendars, free/busy, and meeting-time suggestions.',
|
|
17
|
+
description: 'Per-account Google Calendar MCP server: events, calendars, sharing, free/busy, and meeting-time suggestions.',
|
|
18
18
|
instructions,
|
|
19
19
|
operations: mergeOperations(tools, methods),
|
|
20
20
|
client: async (account) => calendar({ version: 'v3', auth: await authorizedClient(account) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,iFAAiF;AACjF,oFAAoF;AACpF,qFAAqF;AACrF,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,MAAM,CAAC;IACX,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,iFAAiF;AACjF,oFAAoF;AACpF,qFAAqF;AACrF,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,MAAM,CAAC;IACX,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EACT,8GAA8G;IAChH,YAAY;IACZ,UAAU,EAAE,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC;IAC3C,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7F,OAAO,EAAE,WAAW;IACpB,gBAAgB,EAAE,cAAc;CACjC,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { calendar } from '@googleapis/calendar';\nimport { authorizedClient, isInvalidGrant, runAuthFlow } from '../auth/oauth.js';\nimport { mergeOperations } from '../lib/operation.js';\nimport { server } from '../lib/server.js';\nimport { instructions } from './instructions.js';\nimport { methods } from './methods/registry.js';\nimport { tools } from './tools/registry.js';\n\n// Cloning this for a new service? Add that service's OAuth scopes to `SCOPES` in\n// src/auth/config.ts BEFORE the first auth. The scope union is front-loaded so each\n// account consents once, and Google only re-issues a refresh token on a fresh grant;\n// adding a scope later forces re-consent of every account. Nothing in this file\n// references scopes, which is exactly why it is easy to miss.\nawait server({\n name: 'calendar',\n title: 'Google Calendar (google-mcp-suite)',\n description:\n 'Per-account Google Calendar MCP server: events, calendars, sharing, free/busy, and meeting-time suggestions.',\n instructions,\n operations: mergeOperations(tools, methods),\n client: async (account) => calendar({ version: 'v3', auth: await authorizedClient(account) }),\n runAuth: runAuthFlow,\n staleCredentials: isInvalidGrant,\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,QAoByC,CAAC"}
|
|
@@ -15,13 +15,13 @@ export const instructions = identityInstructions('Google account') +
|
|
|
15
15
|
'attendees can email guests, controlled by notificationLevel on tools and ' +
|
|
16
16
|
'sendUpdates on methods. suggest_time refuses to answer, rather than ' +
|
|
17
17
|
"proposing slots that may conflict, when any requested calendar's " +
|
|
18
|
-
'free/busy is unreadable.
|
|
19
|
-
'
|
|
20
|
-
'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'carries no value
|
|
18
|
+
'free/busy is unreadable. Calendar sharing is a list of access control ' +
|
|
19
|
+
'rules, read with list_acl_rules and get_acl_rule and changed with ' +
|
|
20
|
+
'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule. ' +
|
|
21
|
+
'A rule ID derives from its scope, and granting owner lets that scope ' +
|
|
22
|
+
"change the calendar's own sharing. The three writes other than " +
|
|
23
|
+
'delete_acl_rule take sendNotifications, which Google enables by default, ' +
|
|
24
|
+
'so sharing notifications remain enabled unless it is passed as false; ' +
|
|
25
|
+
'access removal never notifies. A scope of type default is the public ' +
|
|
26
|
+
'scope and carries no value, while the other types require one.';
|
|
27
27
|
//# sourceMappingURL=instructions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,sBAAsB,CAAC;QACrB,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EAAE,kCAAkC;KAC5C,CAAC;IACF,4BAA4B,EAAE;IAC9B,qEAAqE;IACrE,wEAAwE;IACxE,2EAA2E;IAC3E,sEAAsE;IACtE,mEAAmE;IACnE,oEAAoE;IACpE,
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,sBAAsB,CAAC;QACrB,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EAAE,kCAAkC;KAC5C,CAAC;IACF,4BAA4B,EAAE;IAC9B,qEAAqE;IACrE,wEAAwE;IACxE,2EAA2E;IAC3E,sEAAsE;IACtE,mEAAmE;IACnE,wEAAwE;IACxE,oEAAoE;IACpE,sEAAsE;IACtE,uEAAuE;IACvE,iEAAiE;IACjE,2EAA2E;IAC3E,wEAAwE;IACxE,uEAAuE;IACvE,gEAAgE,CAAC","sourcesContent":["/**\n * Served in the MCP initialize result; see `ServerOptions.instructions` in\n * src/lib/server.ts. A standalone module so tests can pin the content without\n * booting the server (index.ts's import side effect is `await server()`).\n */\nimport {\n identityInstructions,\n untrustedContentInstructions,\n vocabularyInstructions,\n} from '../lib/instructions.js';\n\nexport const instructions =\n identityInstructions('Google account') +\n vocabularyInstructions({\n tools: 'startTime, pageSize, notificationLevel',\n methods: 'timeMin, maxResults, sendUpdates',\n }) +\n untrustedContentInstructions() +\n 'Event start and end take exactly one of date (all-day) or dateTime ' +\n '(timed); timeZone is required for recurring events. Writes that touch ' +\n 'attendees can email guests, controlled by notificationLevel on tools and ' +\n 'sendUpdates on methods. suggest_time refuses to answer, rather than ' +\n \"proposing slots that may conflict, when any requested calendar's \" +\n 'free/busy is unreadable. Calendar sharing is a list of access control ' +\n 'rules, read with list_acl_rules and get_acl_rule and changed with ' +\n 'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule. ' +\n 'A rule ID derives from its scope, and granting owner lets that scope ' +\n \"change the calendar's own sharing. The three writes other than \" +\n 'delete_acl_rule take sendNotifications, which Google enables by default, ' +\n 'so sharing notifications remain enabled unless it is passed as false; ' +\n 'access removal never notifies. A scope of type default is the public ' +\n 'scope and carries no value, while the other types require one.';\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AclRole } from '../entities/AclRole.js';
|
|
2
|
+
/** `none, freeBusyReader, reader, ...`: the bare vocabulary, in order. */
|
|
3
|
+
export declare function listRoles(roles?: readonly AclRole[]): string;
|
|
4
|
+
/** `none (no access), freeBusyReader (free/busy only), ...`: each role glossed. */
|
|
5
|
+
export declare function describeRoles(roles?: readonly AclRole[]): string;
|
|
6
|
+
/**
|
|
7
|
+
* The roles that can appear as an effective `accessRole` on a calendar you can
|
|
8
|
+
* already see. `none` cannot: a calendar on your list grants at least
|
|
9
|
+
* free/busy.
|
|
10
|
+
*/
|
|
11
|
+
export declare const EFFECTIVE_ROLES: readonly AclRole[];
|
|
12
|
+
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/calendar/lib/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAwBjD,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,KAAK,GAAE,SAAS,OAAO,EAAoB,GAAG,MAAM,CAE7E;AAED,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,KAAK,GAAE,SAAS,OAAO,EAAoB,GAAG,MAAM,CAIjF;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAE7C,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AclRole } from '../entities/AclRole.js';
|
|
2
|
+
/**
|
|
3
|
+
* What each access role actually grants, in one clause, sourced from Google's
|
|
4
|
+
* calendar-sharing concepts page.
|
|
5
|
+
*
|
|
6
|
+
* Keyed by `AclRole`, so adding a role to the enum without describing it here
|
|
7
|
+
* is a compile error rather than prose that silently goes stale. That matters
|
|
8
|
+
* because the vocabulary is restated on four agent-facing surfaces, and the
|
|
9
|
+
* last role Google added reached the enum while every description kept the old
|
|
10
|
+
* list.
|
|
11
|
+
*
|
|
12
|
+
* @see https://developers.google.com/workspace/calendar/api/concepts/sharing
|
|
13
|
+
*/
|
|
14
|
+
const ROLE_GLOSS = {
|
|
15
|
+
none: 'no access',
|
|
16
|
+
freeBusyReader: 'free/busy only',
|
|
17
|
+
reader: 'event details, with private events hidden',
|
|
18
|
+
writerWithoutPrivateAccess: 'read and write only the events that are not private, seeing private ones as busy blocks',
|
|
19
|
+
writer: "read and write everything, plus read access to the calendar's own sharing",
|
|
20
|
+
owner: "everything writer grants, plus the ability to change other users' access",
|
|
21
|
+
};
|
|
22
|
+
/** `none, freeBusyReader, reader, ...`: the bare vocabulary, in order. */
|
|
23
|
+
export function listRoles(roles = AclRole.options) {
|
|
24
|
+
return roles.join(', ');
|
|
25
|
+
}
|
|
26
|
+
/** `none (no access), freeBusyReader (free/busy only), ...`: each role glossed. */
|
|
27
|
+
export function describeRoles(roles = AclRole.options) {
|
|
28
|
+
const described = roles.map((role) => `${role} (${ROLE_GLOSS[role]})`);
|
|
29
|
+
const last = described.pop();
|
|
30
|
+
return described.length > 0 ? `${described.join(', ')}, or ${last}` : `${last}`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The roles that can appear as an effective `accessRole` on a calendar you can
|
|
34
|
+
* already see. `none` cannot: a calendar on your list grants at least
|
|
35
|
+
* free/busy.
|
|
36
|
+
*/
|
|
37
|
+
export const EFFECTIVE_ROLES = AclRole.options.filter((role) => role !== 'none');
|
|
38
|
+
//# sourceMappingURL=roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../src/calendar/lib/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,GAA4B;IAC1C,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,gBAAgB;IAChC,MAAM,EAAE,2CAA2C;IACnD,0BAA0B,EACxB,yFAAyF;IAC3F,MAAM,EAAE,2EAA2E;IACnF,KAAK,EAAE,0EAA0E;CAClF,CAAC;AAEF,0EAA0E;AAC1E,MAAM,UAAU,SAAS,CAAC,KAAK,GAAuB,OAAO,CAAC,OAAO;IACnE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,aAAa,CAAC,KAAK,GAAuB,OAAO,CAAC,OAAO;IACvE,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;IAC7B,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC;AAClF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,OAAO,CAAC,OAAO,CAAC,MAAM,CACvE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,CAC1B,CAAC","sourcesContent":["import { AclRole } from '../entities/AclRole.js';\n\n/**\n * What each access role actually grants, in one clause, sourced from Google's\n * calendar-sharing concepts page.\n *\n * Keyed by `AclRole`, so adding a role to the enum without describing it here\n * is a compile error rather than prose that silently goes stale. That matters\n * because the vocabulary is restated on four agent-facing surfaces, and the\n * last role Google added reached the enum while every description kept the old\n * list.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nconst ROLE_GLOSS: Record<AclRole, string> = {\n none: 'no access',\n freeBusyReader: 'free/busy only',\n reader: 'event details, with private events hidden',\n writerWithoutPrivateAccess:\n 'read and write only the events that are not private, seeing private ones as busy blocks',\n writer: \"read and write everything, plus read access to the calendar's own sharing\",\n owner: \"everything writer grants, plus the ability to change other users' access\",\n};\n\n/** `none, freeBusyReader, reader, ...`: the bare vocabulary, in order. */\nexport function listRoles(roles: readonly AclRole[] = AclRole.options): string {\n return roles.join(', ');\n}\n\n/** `none (no access), freeBusyReader (free/busy only), ...`: each role glossed. */\nexport function describeRoles(roles: readonly AclRole[] = AclRole.options): string {\n const described = roles.map((role) => `${role} (${ROLE_GLOSS[role]})`);\n const last = described.pop();\n return described.length > 0 ? `${described.join(', ')}, or ${last}` : `${last}`;\n}\n\n/**\n * The roles that can appear as an effective `accessRole` on a calendar you can\n * already see. `none` cannot: a calendar on your list grants at least\n * free/busy.\n */\nexport const EFFECTIVE_ROLES: readonly AclRole[] = AclRole.options.filter(\n (role) => role !== 'none',\n);\n"]}
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* standing-side-effect cluster (the `create_filter` and
|
|
4
4
|
* `sheets/add_protected_range` precedents): the grant keeps conferring access
|
|
5
5
|
* until something revokes it, so it is not merely additive, and `owner` hands
|
|
6
|
-
* the
|
|
6
|
+
* the scope control of this calendar's sharing.
|
|
7
7
|
*
|
|
8
|
-
* Open-world
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Open-world on the precedent of the sends (`gmail/send_message`,
|
|
9
|
+
* `gmail/send_draft`), because `sendNotifications` defaults to true at Google, so a
|
|
10
|
+
* grant can send sharing notifications, potentially outside the
|
|
11
|
+
* organization entirely. Pass `sendNotifications: false` to grant silently.
|
|
11
12
|
*
|
|
12
13
|
* A rule's id derives from its scope, so granting a scope that already has a
|
|
13
14
|
* rule replaces that rule's role rather than adding a second one, and does not
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAWvB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { listRoles } from '../../lib/roles.js';
|
|
1
2
|
import { calendarOperation } from '../../operation.js';
|
|
2
3
|
import { handler } from './handler.js';
|
|
3
4
|
import { schema } from './schema.js';
|
|
@@ -6,11 +7,12 @@ import { schema } from './schema.js';
|
|
|
6
7
|
* standing-side-effect cluster (the `create_filter` and
|
|
7
8
|
* `sheets/add_protected_range` precedents): the grant keeps conferring access
|
|
8
9
|
* until something revokes it, so it is not merely additive, and `owner` hands
|
|
9
|
-
* the
|
|
10
|
+
* the scope control of this calendar's sharing.
|
|
10
11
|
*
|
|
11
|
-
* Open-world
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Open-world on the precedent of the sends (`gmail/send_message`,
|
|
13
|
+
* `gmail/send_draft`), because `sendNotifications` defaults to true at Google, so a
|
|
14
|
+
* grant can send sharing notifications, potentially outside the
|
|
15
|
+
* organization entirely. Pass `sendNotifications: false` to grant silently.
|
|
14
16
|
*
|
|
15
17
|
* A rule's id derives from its scope, so granting a scope that already has a
|
|
16
18
|
* rule replaces that rule's role rather than adding a second one, and does not
|
|
@@ -19,7 +21,7 @@ import { schema } from './schema.js';
|
|
|
19
21
|
* the calendar was left with one rule for that scope.
|
|
20
22
|
*/
|
|
21
23
|
export const add_acl_rule = calendarOperation({
|
|
22
|
-
description:
|
|
24
|
+
description: `Share a calendar by adding a rule to its access control list, granting a role (${listRoles()}) to a scope (a user, a group, a domain, or the public). If the scope already has a rule, this replaces that rule's role rather than creating a duplicate. Sharing notifications are enabled by default; pass sendNotifications false to suppress them.`,
|
|
23
25
|
annotations: {
|
|
24
26
|
readOnlyHint: false,
|
|
25
27
|
destructiveHint: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC5C,WAAW,EAAE,kFAAkF,SAAS,EAAE,yPAAyP;IACnW,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { listRoles } from '../../lib/roles.js';\nimport { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Grants access to a calendar. Destructive under the rubric's\n * standing-side-effect cluster (the `create_filter` and\n * `sheets/add_protected_range` precedents): the grant keeps conferring access\n * until something revokes it, so it is not merely additive, and `owner` hands\n * the scope control of this calendar's sharing.\n *\n * Open-world on the precedent of the sends (`gmail/send_message`,\n * `gmail/send_draft`), because `sendNotifications` defaults to true at Google, so a\n * grant can send sharing notifications, potentially outside the\n * organization entirely. Pass `sendNotifications: false` to grant silently.\n *\n * A rule's id derives from its scope, so granting a scope that already has a\n * rule replaces that rule's role rather than adding a second one, and does not\n * conflict. Verified against the live API rather than inferred: a second\n * insert for the same scope returned the same rule id with the new role, and\n * the calendar was left with one rule for that scope.\n */\nexport const add_acl_rule = calendarOperation({\n description: `Share a calendar by adding a rule to its access control list, granting a role (${listRoles()}) to a scope (a user, a group, a domain, or the public). If the scope already has a rule, this replaces that rule's role rather than creating a duplicate. Sharing notifications are enabled by default; pass sendNotifications false to suppress them.`,\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/insert',\n schema,\n handler,\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;;;;;;;;;;;;;;;;;IAcL,MAAM;;;;;;;;;;;;;;;;;;;;;CACP,CAAC"}
|
|
@@ -2,9 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { AclRole } from '../../entities/AclRole.js';
|
|
3
3
|
import { AclRule } from '../../entities/AclRule.js';
|
|
4
4
|
import { AclScope } from '../../entities/AclScope.js';
|
|
5
|
+
import { describeRoles } from '../../lib/roles.js';
|
|
5
6
|
export const schema = {
|
|
6
7
|
input: z.strictObject({
|
|
7
|
-
role: AclRole.describe(
|
|
8
|
+
role: AclRole.describe(`The role to grant: ${describeRoles()}.`),
|
|
8
9
|
scope: AclScope.describe('Who the role is granted to.'),
|
|
9
10
|
calendarId: z
|
|
10
11
|
.string()
|
|
@@ -13,7 +14,7 @@ export const schema = {
|
|
|
13
14
|
sendNotifications: z
|
|
14
15
|
.boolean()
|
|
15
16
|
.optional()
|
|
16
|
-
.describe('Whether to
|
|
17
|
+
.describe('Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to grant access silently.'),
|
|
17
18
|
}),
|
|
18
19
|
output: AclRule,
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,sBAAsB,aAAa,EAAE,GAAG,CAAC;QAChE,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QACvD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,uEAAuE,CAAC;QACpF,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0LAA0L,CAC3L;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\nimport { describeRoles } from '../../lib/roles.js';\n\nexport const schema = {\n input: z.strictObject({\n role: AclRole.describe(`The role to grant: ${describeRoles()}.`),\n scope: AclScope.describe('Who the role is granted to.'),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID to share. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to grant access silently.',\n ),\n }),\n output: AclRule,\n};\n"]}
|
|
@@ -12,7 +12,7 @@ import { schema } from './schema.js';
|
|
|
12
12
|
* access, patch its role to `none` instead.
|
|
13
13
|
*/
|
|
14
14
|
export const delete_acl_rule = calendarOperation({
|
|
15
|
-
description: "Revoke a rule from a calendar's access control list, removing that scope's access to the calendar.
|
|
15
|
+
description: "Revoke a rule from a calendar's access control list, removing that scope's access to the calendar. Access removal does not send sharing notifications.",
|
|
16
16
|
annotations: {
|
|
17
17
|
readOnlyHint: false,
|
|
18
18
|
destructiveHint: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,wJAAwJ;IAC1J,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Revokes a grant: the scope loses the access the rule conferred. Destructive\n * under the rubric's removal cluster, and idempotent in effect (a revoked\n * rule stays revoked, though a second call 404s on the missing rule).\n *\n * Closed-world, unlike the other writes: Google sends no notification on\n * access removal, so this operation reaches no external party and takes no\n * sendNotifications parameter. To leave a rule in place but strip its\n * access, patch its role to `none` instead.\n */\nexport const delete_acl_rule = calendarOperation({\n description:\n \"Revoke a rule from a calendar's access control list, removing that scope's access to the calendar. Access removal does not send sharing notifications.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/delete',\n schema,\n handler,\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;;;;;;IA4CL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBP,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Event } from '../../entities/Event.js';
|
|
3
3
|
import { Reminder } from '../../entities/Reminder.js';
|
|
4
|
+
import { listRoles } from '../../lib/roles.js';
|
|
4
5
|
export const schema = {
|
|
5
6
|
input: z.strictObject({
|
|
6
7
|
eventId: z.string().describe('The ID of the recurring event to expand.'),
|
|
@@ -47,7 +48,7 @@ export const schema = {
|
|
|
47
48
|
accessRole: z
|
|
48
49
|
.string()
|
|
49
50
|
.optional()
|
|
50
|
-
.describe(
|
|
51
|
+
.describe(`The user's access role for this calendar. One of: ${listRoles()}.`),
|
|
51
52
|
defaultReminders: z
|
|
52
53
|
.array(Reminder)
|
|
53
54
|
.optional()
|