google-mcp-suite 0.0.0 → 1.1.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/NOTICE.md +1 -1
- package/README.md +124 -23
- package/dist/calendar/capabilities.d.ts +3 -0
- package/dist/calendar/capabilities.d.ts.map +1 -0
- package/dist/calendar/capabilities.js +21 -0
- package/dist/calendar/capabilities.js.map +1 -0
- package/dist/calendar/entities/Attendee.d.ts +24 -0
- package/dist/calendar/entities/Attendee.d.ts.map +1 -0
- package/dist/calendar/entities/Attendee.js +34 -0
- package/dist/calendar/entities/Attendee.js.map +1 -0
- package/dist/calendar/entities/Calendar.d.ts +20 -0
- package/dist/calendar/entities/Calendar.d.ts.map +1 -0
- package/dist/calendar/entities/Calendar.js +25 -0
- package/dist/calendar/entities/Calendar.js.map +1 -0
- package/dist/calendar/entities/CalendarListEntry.d.ts +36 -0
- package/dist/calendar/entities/CalendarListEntry.d.ts.map +1 -0
- package/dist/calendar/entities/CalendarListEntry.js +60 -0
- package/dist/calendar/entities/CalendarListEntry.js.map +1 -0
- package/dist/calendar/entities/Colors.d.ts +31 -0
- package/dist/calendar/entities/Colors.d.ts.map +1 -0
- package/dist/calendar/entities/Colors.js +34 -0
- package/dist/calendar/entities/Colors.js.map +1 -0
- package/dist/calendar/entities/Event.d.ts +76 -0
- package/dist/calendar/entities/Event.d.ts.map +1 -0
- package/dist/calendar/entities/Event.js +72 -0
- package/dist/calendar/entities/Event.js.map +1 -0
- package/dist/calendar/entities/EventDateTime.d.ts +19 -0
- package/dist/calendar/entities/EventDateTime.d.ts.map +1 -0
- package/dist/calendar/entities/EventDateTime.js +31 -0
- package/dist/calendar/entities/EventDateTime.js.map +1 -0
- package/dist/calendar/entities/FreeBusy.d.ts +30 -0
- package/dist/calendar/entities/FreeBusy.d.ts.map +1 -0
- package/dist/calendar/entities/FreeBusy.js +33 -0
- package/dist/calendar/entities/FreeBusy.js.map +1 -0
- package/dist/calendar/entities/NotificationLevel.d.ts +19 -0
- package/dist/calendar/entities/NotificationLevel.d.ts.map +1 -0
- package/dist/calendar/entities/NotificationLevel.js +14 -0
- package/dist/calendar/entities/NotificationLevel.js.map +1 -0
- package/dist/calendar/entities/Principal.d.ts +17 -0
- package/dist/calendar/entities/Principal.d.ts.map +1 -0
- package/dist/calendar/entities/Principal.js +19 -0
- package/dist/calendar/entities/Principal.js.map +1 -0
- package/dist/calendar/entities/Reminder.d.ts +19 -0
- package/dist/calendar/entities/Reminder.d.ts.map +1 -0
- package/dist/calendar/entities/Reminder.js +20 -0
- package/dist/calendar/entities/Reminder.js.map +1 -0
- package/dist/calendar/entities/Setting.d.ts +12 -0
- package/dist/calendar/entities/Setting.d.ts.map +1 -0
- package/dist/calendar/entities/Setting.js +13 -0
- package/dist/calendar/entities/Setting.js.map +1 -0
- package/dist/calendar/index.d.ts +3 -0
- package/dist/calendar/index.d.ts.map +1 -0
- package/dist/calendar/index.js +19 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/calendar/lib/attendees.d.ts +24 -0
- package/dist/calendar/lib/attendees.d.ts.map +1 -0
- package/dist/calendar/lib/attendees.js +41 -0
- package/dist/calendar/lib/attendees.js.map +1 -0
- package/dist/calendar/lib/calendar.d.ts +8 -0
- package/dist/calendar/lib/calendar.d.ts.map +1 -0
- package/dist/calendar/lib/calendar.js +33 -0
- package/dist/calendar/lib/calendar.js.map +1 -0
- package/dist/calendar/lib/datetime.d.ts +20 -0
- package/dist/calendar/lib/datetime.d.ts.map +1 -0
- package/dist/calendar/lib/datetime.js +22 -0
- package/dist/calendar/lib/datetime.js.map +1 -0
- package/dist/calendar/lib/event.d.ts +13 -0
- package/dist/calendar/lib/event.d.ts.map +1 -0
- package/dist/calendar/lib/event.js +76 -0
- package/dist/calendar/lib/event.js.map +1 -0
- package/dist/calendar/lib/meet.d.ts +14 -0
- package/dist/calendar/lib/meet.d.ts.map +1 -0
- package/dist/calendar/lib/meet.js +20 -0
- package/dist/calendar/lib/meet.js.map +1 -0
- package/dist/calendar/lib/notifications.d.ts +15 -0
- package/dist/calendar/lib/notifications.d.ts.map +1 -0
- package/dist/calendar/lib/notifications.js +14 -0
- package/dist/calendar/lib/notifications.js.map +1 -0
- package/dist/calendar/lib/suggest.d.ts +45 -0
- package/dist/calendar/lib/suggest.d.ts.map +1 -0
- package/dist/calendar/lib/suggest.js +108 -0
- package/dist/calendar/lib/suggest.js.map +1 -0
- package/dist/calendar/methods/add_calendar_entry/handler.d.ts +5 -0
- package/dist/calendar/methods/add_calendar_entry/handler.d.ts.map +1 -0
- package/dist/calendar/methods/add_calendar_entry/handler.js +8 -0
- package/dist/calendar/methods/add_calendar_entry/handler.js.map +1 -0
- package/dist/calendar/methods/add_calendar_entry/index.d.ts +33 -0
- package/dist/calendar/methods/add_calendar_entry/index.d.ts.map +1 -0
- package/dist/calendar/methods/add_calendar_entry/index.js +17 -0
- package/dist/calendar/methods/add_calendar_entry/index.js.map +1 -0
- package/dist/calendar/methods/add_calendar_entry/schema.d.ts +30 -0
- package/dist/calendar/methods/add_calendar_entry/schema.d.ts.map +1 -0
- package/dist/calendar/methods/add_calendar_entry/schema.js +12 -0
- package/dist/calendar/methods/add_calendar_entry/schema.js.map +1 -0
- package/dist/calendar/methods/clear_calendar/handler.d.ts +5 -0
- package/dist/calendar/methods/clear_calendar/handler.d.ts.map +1 -0
- package/dist/calendar/methods/clear_calendar/handler.js +6 -0
- package/dist/calendar/methods/clear_calendar/handler.js.map +1 -0
- package/dist/calendar/methods/clear_calendar/index.d.ts +13 -0
- package/dist/calendar/methods/clear_calendar/index.d.ts.map +1 -0
- package/dist/calendar/methods/clear_calendar/index.js +17 -0
- package/dist/calendar/methods/clear_calendar/index.js.map +1 -0
- package/dist/calendar/methods/clear_calendar/schema.d.ts +12 -0
- package/dist/calendar/methods/clear_calendar/schema.d.ts.map +1 -0
- package/dist/calendar/methods/clear_calendar/schema.js +15 -0
- package/dist/calendar/methods/clear_calendar/schema.js.map +1 -0
- package/dist/calendar/methods/create_calendar/handler.d.ts +5 -0
- package/dist/calendar/methods/create_calendar/handler.d.ts.map +1 -0
- package/dist/calendar/methods/create_calendar/handler.js +14 -0
- package/dist/calendar/methods/create_calendar/handler.js.map +1 -0
- package/dist/calendar/methods/create_calendar/index.d.ts +19 -0
- package/dist/calendar/methods/create_calendar/index.d.ts.map +1 -0
- package/dist/calendar/methods/create_calendar/index.js +15 -0
- package/dist/calendar/methods/create_calendar/index.js.map +1 -0
- package/dist/calendar/methods/create_calendar/schema.d.ts +18 -0
- package/dist/calendar/methods/create_calendar/schema.d.ts.map +1 -0
- package/dist/calendar/methods/create_calendar/schema.js +19 -0
- package/dist/calendar/methods/create_calendar/schema.js.map +1 -0
- package/dist/calendar/methods/delete_calendar/handler.d.ts +5 -0
- package/dist/calendar/methods/delete_calendar/handler.d.ts.map +1 -0
- package/dist/calendar/methods/delete_calendar/handler.js +5 -0
- package/dist/calendar/methods/delete_calendar/handler.js.map +1 -0
- package/dist/calendar/methods/delete_calendar/index.d.ts +14 -0
- package/dist/calendar/methods/delete_calendar/index.d.ts.map +1 -0
- package/dist/calendar/methods/delete_calendar/index.js +18 -0
- package/dist/calendar/methods/delete_calendar/index.js.map +1 -0
- package/dist/calendar/methods/delete_calendar/schema.d.ts +12 -0
- package/dist/calendar/methods/delete_calendar/schema.d.ts.map +1 -0
- package/dist/calendar/methods/delete_calendar/schema.js +14 -0
- package/dist/calendar/methods/delete_calendar/schema.js.map +1 -0
- package/dist/calendar/methods/get_calendar/handler.d.ts +5 -0
- package/dist/calendar/methods/get_calendar/handler.d.ts.map +1 -0
- package/dist/calendar/methods/get_calendar/handler.js +6 -0
- package/dist/calendar/methods/get_calendar/handler.js.map +1 -0
- package/dist/calendar/methods/get_calendar/index.d.ts +16 -0
- package/dist/calendar/methods/get_calendar/index.d.ts.map +1 -0
- package/dist/calendar/methods/get_calendar/index.js +15 -0
- package/dist/calendar/methods/get_calendar/index.js.map +1 -0
- package/dist/calendar/methods/get_calendar/schema.d.ts +15 -0
- package/dist/calendar/methods/get_calendar/schema.d.ts.map +1 -0
- package/dist/calendar/methods/get_calendar/schema.js +13 -0
- package/dist/calendar/methods/get_calendar/schema.js.map +1 -0
- package/dist/calendar/methods/get_calendar_entry/handler.d.ts +5 -0
- package/dist/calendar/methods/get_calendar_entry/handler.d.ts.map +1 -0
- package/dist/calendar/methods/get_calendar_entry/handler.js +6 -0
- package/dist/calendar/methods/get_calendar_entry/handler.js.map +1 -0
- package/dist/calendar/methods/get_calendar_entry/index.d.ts +31 -0
- package/dist/calendar/methods/get_calendar_entry/index.d.ts.map +1 -0
- package/dist/calendar/methods/get_calendar_entry/index.js +15 -0
- package/dist/calendar/methods/get_calendar_entry/index.js.map +1 -0
- package/dist/calendar/methods/get_calendar_entry/schema.d.ts +30 -0
- package/dist/calendar/methods/get_calendar_entry/schema.d.ts.map +1 -0
- package/dist/calendar/methods/get_calendar_entry/schema.js +13 -0
- package/dist/calendar/methods/get_calendar_entry/schema.js.map +1 -0
- package/dist/calendar/methods/get_colors/handler.d.ts +5 -0
- package/dist/calendar/methods/get_colors/handler.d.ts.map +1 -0
- package/dist/calendar/methods/get_colors/handler.js +19 -0
- package/dist/calendar/methods/get_colors/handler.js.map +1 -0
- package/dist/calendar/methods/get_colors/index.d.ts +19 -0
- package/dist/calendar/methods/get_colors/index.d.ts.map +1 -0
- package/dist/calendar/methods/get_colors/index.js +16 -0
- package/dist/calendar/methods/get_colors/index.js.map +1 -0
- package/dist/calendar/methods/get_colors/schema.d.ts +17 -0
- package/dist/calendar/methods/get_colors/schema.d.ts.map +1 -0
- package/dist/calendar/methods/get_colors/schema.js +8 -0
- package/dist/calendar/methods/get_colors/schema.js.map +1 -0
- package/dist/calendar/methods/get_setting/handler.d.ts +5 -0
- package/dist/calendar/methods/get_setting/handler.d.ts.map +1 -0
- package/dist/calendar/methods/get_setting/handler.js +8 -0
- package/dist/calendar/methods/get_setting/handler.js.map +1 -0
- package/dist/calendar/methods/get_setting/index.d.ts +11 -0
- package/dist/calendar/methods/get_setting/index.d.ts.map +1 -0
- package/dist/calendar/methods/get_setting/index.js +13 -0
- package/dist/calendar/methods/get_setting/index.js.map +1 -0
- package/dist/calendar/methods/get_setting/schema.d.ts +12 -0
- package/dist/calendar/methods/get_setting/schema.d.ts.map +1 -0
- package/dist/calendar/methods/get_setting/schema.js +12 -0
- package/dist/calendar/methods/get_setting/schema.js.map +1 -0
- package/dist/calendar/methods/list_event_instances/handler.d.ts +5 -0
- package/dist/calendar/methods/list_event_instances/handler.d.ts.map +1 -0
- package/dist/calendar/methods/list_event_instances/handler.js +28 -0
- package/dist/calendar/methods/list_event_instances/handler.js.map +1 -0
- package/dist/calendar/methods/list_event_instances/index.d.ts +95 -0
- package/dist/calendar/methods/list_event_instances/index.d.ts.map +1 -0
- package/dist/calendar/methods/list_event_instances/index.js +17 -0
- package/dist/calendar/methods/list_event_instances/index.js.map +1 -0
- package/dist/calendar/methods/list_event_instances/schema.d.ts +92 -0
- package/dist/calendar/methods/list_event_instances/schema.d.ts.map +1 -0
- package/dist/calendar/methods/list_event_instances/schema.js +63 -0
- package/dist/calendar/methods/list_event_instances/schema.js.map +1 -0
- package/dist/calendar/methods/list_settings/handler.d.ts +5 -0
- package/dist/calendar/methods/list_settings/handler.d.ts.map +1 -0
- package/dist/calendar/methods/list_settings/handler.js +15 -0
- package/dist/calendar/methods/list_settings/handler.js.map +1 -0
- package/dist/calendar/methods/list_settings/index.d.ts +17 -0
- package/dist/calendar/methods/list_settings/index.d.ts.map +1 -0
- package/dist/calendar/methods/list_settings/index.js +15 -0
- package/dist/calendar/methods/list_settings/index.js.map +1 -0
- package/dist/calendar/methods/list_settings/schema.d.ts +21 -0
- package/dist/calendar/methods/list_settings/schema.d.ts.map +1 -0
- package/dist/calendar/methods/list_settings/schema.js +27 -0
- package/dist/calendar/methods/list_settings/schema.js.map +1 -0
- package/dist/calendar/methods/move_event/handler.d.ts +5 -0
- package/dist/calendar/methods/move_event/handler.d.ts.map +1 -0
- package/dist/calendar/methods/move_event/handler.js +12 -0
- package/dist/calendar/methods/move_event/handler.js.map +1 -0
- package/dist/calendar/methods/move_event/index.d.ts +79 -0
- package/dist/calendar/methods/move_event/index.d.ts.map +1 -0
- package/dist/calendar/methods/move_event/index.js +17 -0
- package/dist/calendar/methods/move_event/index.js.map +1 -0
- package/dist/calendar/methods/move_event/schema.d.ts +76 -0
- package/dist/calendar/methods/move_event/schema.d.ts.map +1 -0
- package/dist/calendar/methods/move_event/schema.js +19 -0
- package/dist/calendar/methods/move_event/schema.js.map +1 -0
- package/dist/calendar/methods/patch_event/handler.d.ts +5 -0
- package/dist/calendar/methods/patch_event/handler.d.ts.map +1 -0
- package/dist/calendar/methods/patch_event/handler.js +29 -0
- package/dist/calendar/methods/patch_event/handler.js.map +1 -0
- package/dist/calendar/methods/patch_event/index.d.ts +131 -0
- package/dist/calendar/methods/patch_event/index.d.ts.map +1 -0
- package/dist/calendar/methods/patch_event/index.js +18 -0
- package/dist/calendar/methods/patch_event/index.js.map +1 -0
- package/dist/calendar/methods/patch_event/schema.d.ts +127 -0
- package/dist/calendar/methods/patch_event/schema.d.ts.map +1 -0
- package/dist/calendar/methods/patch_event/schema.js +110 -0
- package/dist/calendar/methods/patch_event/schema.js.map +1 -0
- package/dist/calendar/methods/query_free_busy/handler.d.ts +5 -0
- package/dist/calendar/methods/query_free_busy/handler.d.ts.map +1 -0
- package/dist/calendar/methods/query_free_busy/handler.js +32 -0
- package/dist/calendar/methods/query_free_busy/handler.js.map +1 -0
- package/dist/calendar/methods/query_free_busy/index.d.ts +29 -0
- package/dist/calendar/methods/query_free_busy/index.d.ts.map +1 -0
- package/dist/calendar/methods/query_free_busy/index.js +16 -0
- package/dist/calendar/methods/query_free_busy/index.js.map +1 -0
- package/dist/calendar/methods/query_free_busy/schema.d.ts +27 -0
- package/dist/calendar/methods/query_free_busy/schema.d.ts.map +1 -0
- package/dist/calendar/methods/query_free_busy/schema.js +36 -0
- package/dist/calendar/methods/query_free_busy/schema.js.map +1 -0
- package/dist/calendar/methods/quick_add_event/handler.d.ts +5 -0
- package/dist/calendar/methods/quick_add_event/handler.d.ts.map +1 -0
- package/dist/calendar/methods/quick_add_event/handler.js +11 -0
- package/dist/calendar/methods/quick_add_event/handler.js.map +1 -0
- package/dist/calendar/methods/quick_add_event/index.d.ts +77 -0
- package/dist/calendar/methods/quick_add_event/index.d.ts.map +1 -0
- package/dist/calendar/methods/quick_add_event/index.js +16 -0
- package/dist/calendar/methods/quick_add_event/index.js.map +1 -0
- package/dist/calendar/methods/quick_add_event/schema.d.ts +75 -0
- package/dist/calendar/methods/quick_add_event/schema.d.ts.map +1 -0
- package/dist/calendar/methods/quick_add_event/schema.js +20 -0
- package/dist/calendar/methods/quick_add_event/schema.js.map +1 -0
- package/dist/calendar/methods/registry.d.ts +538 -0
- package/dist/calendar/methods/registry.d.ts.map +1 -0
- package/dist/calendar/methods/registry.js +48 -0
- package/dist/calendar/methods/registry.js.map +1 -0
- package/dist/calendar/methods/remove_calendar_entry/handler.d.ts +5 -0
- package/dist/calendar/methods/remove_calendar_entry/handler.d.ts.map +1 -0
- package/dist/calendar/methods/remove_calendar_entry/handler.js +5 -0
- package/dist/calendar/methods/remove_calendar_entry/handler.js.map +1 -0
- package/dist/calendar/methods/remove_calendar_entry/index.d.ts +13 -0
- package/dist/calendar/methods/remove_calendar_entry/index.d.ts.map +1 -0
- package/dist/calendar/methods/remove_calendar_entry/index.js +16 -0
- package/dist/calendar/methods/remove_calendar_entry/index.js.map +1 -0
- package/dist/calendar/methods/remove_calendar_entry/schema.d.ts +12 -0
- package/dist/calendar/methods/remove_calendar_entry/schema.d.ts.map +1 -0
- package/dist/calendar/methods/remove_calendar_entry/schema.js +14 -0
- package/dist/calendar/methods/remove_calendar_entry/schema.js.map +1 -0
- package/dist/calendar/methods/update_calendar/handler.d.ts +5 -0
- package/dist/calendar/methods/update_calendar/handler.d.ts.map +1 -0
- package/dist/calendar/methods/update_calendar/handler.js +15 -0
- package/dist/calendar/methods/update_calendar/handler.js.map +1 -0
- package/dist/calendar/methods/update_calendar/index.d.ts +18 -0
- package/dist/calendar/methods/update_calendar/index.d.ts.map +1 -0
- package/dist/calendar/methods/update_calendar/index.js +13 -0
- package/dist/calendar/methods/update_calendar/index.js.map +1 -0
- package/dist/calendar/methods/update_calendar/schema.d.ts +19 -0
- package/dist/calendar/methods/update_calendar/schema.d.ts.map +1 -0
- package/dist/calendar/methods/update_calendar/schema.js +23 -0
- package/dist/calendar/methods/update_calendar/schema.js.map +1 -0
- package/dist/calendar/methods/update_calendar_entry/handler.d.ts +5 -0
- package/dist/calendar/methods/update_calendar_entry/handler.d.ts.map +1 -0
- package/dist/calendar/methods/update_calendar_entry/handler.js +22 -0
- package/dist/calendar/methods/update_calendar_entry/handler.js.map +1 -0
- package/dist/calendar/methods/update_calendar_entry/index.d.ts +46 -0
- package/dist/calendar/methods/update_calendar_entry/index.d.ts.map +1 -0
- package/dist/calendar/methods/update_calendar_entry/index.js +17 -0
- package/dist/calendar/methods/update_calendar_entry/index.js.map +1 -0
- package/dist/calendar/methods/update_calendar_entry/schema.d.ts +43 -0
- package/dist/calendar/methods/update_calendar_entry/schema.d.ts.map +1 -0
- package/dist/calendar/methods/update_calendar_entry/schema.js +39 -0
- package/dist/calendar/methods/update_calendar_entry/schema.js.map +1 -0
- package/dist/calendar/operation.d.ts +12 -0
- package/dist/calendar/operation.d.ts.map +1 -0
- package/dist/calendar/operation.js +10 -0
- package/dist/calendar/operation.js.map +1 -0
- package/dist/calendar/tools/create_event/handler.d.ts +5 -0
- package/dist/calendar/tools/create_event/handler.d.ts.map +1 -0
- package/dist/calendar/tools/create_event/handler.js +38 -0
- package/dist/calendar/tools/create_event/handler.js.map +1 -0
- package/dist/calendar/tools/create_event/index.d.ts +101 -0
- package/dist/calendar/tools/create_event/index.d.ts.map +1 -0
- package/dist/calendar/tools/create_event/index.js +17 -0
- package/dist/calendar/tools/create_event/index.js.map +1 -0
- package/dist/calendar/tools/create_event/schema.d.ts +98 -0
- package/dist/calendar/tools/create_event/schema.d.ts.map +1 -0
- package/dist/calendar/tools/create_event/schema.js +54 -0
- package/dist/calendar/tools/create_event/schema.js.map +1 -0
- package/dist/calendar/tools/delete_event/handler.d.ts +5 -0
- package/dist/calendar/tools/delete_event/handler.d.ts.map +1 -0
- package/dist/calendar/tools/delete_event/handler.js +15 -0
- package/dist/calendar/tools/delete_event/handler.js.map +1 -0
- package/dist/calendar/tools/delete_event/index.d.ts +76 -0
- package/dist/calendar/tools/delete_event/index.d.ts.map +1 -0
- package/dist/calendar/tools/delete_event/index.js +16 -0
- package/dist/calendar/tools/delete_event/index.js.map +1 -0
- package/dist/calendar/tools/delete_event/schema.d.ts +75 -0
- package/dist/calendar/tools/delete_event/schema.d.ts.map +1 -0
- package/dist/calendar/tools/delete_event/schema.js +16 -0
- package/dist/calendar/tools/delete_event/schema.js.map +1 -0
- package/dist/calendar/tools/get_event/handler.d.ts +5 -0
- package/dist/calendar/tools/get_event/handler.d.ts.map +1 -0
- package/dist/calendar/tools/get_event/handler.js +9 -0
- package/dist/calendar/tools/get_event/handler.js.map +1 -0
- package/dist/calendar/tools/get_event/index.d.ts +66 -0
- package/dist/calendar/tools/get_event/index.d.ts.map +1 -0
- package/dist/calendar/tools/get_event/index.js +10 -0
- package/dist/calendar/tools/get_event/index.js.map +1 -0
- package/dist/calendar/tools/get_event/schema.d.ts +70 -0
- package/dist/calendar/tools/get_event/schema.d.ts.map +1 -0
- package/dist/calendar/tools/get_event/schema.js +14 -0
- package/dist/calendar/tools/get_event/schema.js.map +1 -0
- package/dist/calendar/tools/list_calendars/handler.d.ts +5 -0
- package/dist/calendar/tools/list_calendars/handler.d.ts.map +1 -0
- package/dist/calendar/tools/list_calendars/handler.js +17 -0
- package/dist/calendar/tools/list_calendars/handler.js.map +1 -0
- package/dist/calendar/tools/list_calendars/index.d.ts +20 -0
- package/dist/calendar/tools/list_calendars/index.d.ts.map +1 -0
- package/dist/calendar/tools/list_calendars/index.js +16 -0
- package/dist/calendar/tools/list_calendars/index.js.map +1 -0
- package/dist/calendar/tools/list_calendars/schema.d.ts +18 -0
- package/dist/calendar/tools/list_calendars/schema.d.ts.map +1 -0
- package/dist/calendar/tools/list_calendars/schema.js +26 -0
- package/dist/calendar/tools/list_calendars/schema.js.map +1 -0
- package/dist/calendar/tools/list_events/handler.d.ts +5 -0
- package/dist/calendar/tools/list_events/handler.d.ts.map +1 -0
- package/dist/calendar/tools/list_events/handler.js +45 -0
- package/dist/calendar/tools/list_events/handler.js.map +1 -0
- package/dist/calendar/tools/list_events/index.d.ts +107 -0
- package/dist/calendar/tools/list_events/index.d.ts.map +1 -0
- package/dist/calendar/tools/list_events/index.js +17 -0
- package/dist/calendar/tools/list_events/index.js.map +1 -0
- package/dist/calendar/tools/list_events/schema.d.ts +104 -0
- package/dist/calendar/tools/list_events/schema.d.ts.map +1 -0
- package/dist/calendar/tools/list_events/schema.js +66 -0
- package/dist/calendar/tools/list_events/schema.js.map +1 -0
- package/dist/calendar/tools/registry.d.ts +529 -0
- package/dist/calendar/tools/registry.d.ts.map +1 -0
- package/dist/calendar/tools/registry.js +24 -0
- package/dist/calendar/tools/registry.js.map +1 -0
- package/dist/calendar/tools/respond_to_event/handler.d.ts +5 -0
- package/dist/calendar/tools/respond_to_event/handler.d.ts.map +1 -0
- package/dist/calendar/tools/respond_to_event/handler.js +19 -0
- package/dist/calendar/tools/respond_to_event/handler.js.map +1 -0
- package/dist/calendar/tools/respond_to_event/index.d.ts +83 -0
- package/dist/calendar/tools/respond_to_event/index.d.ts.map +1 -0
- package/dist/calendar/tools/respond_to_event/index.js +16 -0
- package/dist/calendar/tools/respond_to_event/index.js.map +1 -0
- package/dist/calendar/tools/respond_to_event/schema.d.ts +81 -0
- package/dist/calendar/tools/respond_to_event/schema.d.ts.map +1 -0
- package/dist/calendar/tools/respond_to_event/schema.js +23 -0
- package/dist/calendar/tools/respond_to_event/schema.js.map +1 -0
- package/dist/calendar/tools/suggest_time/handler.d.ts +5 -0
- package/dist/calendar/tools/suggest_time/handler.d.ts.map +1 -0
- package/dist/calendar/tools/suggest_time/handler.js +36 -0
- package/dist/calendar/tools/suggest_time/handler.js.map +1 -0
- package/dist/calendar/tools/suggest_time/index.d.ts +34 -0
- package/dist/calendar/tools/suggest_time/index.d.ts.map +1 -0
- package/dist/calendar/tools/suggest_time/index.js +23 -0
- package/dist/calendar/tools/suggest_time/index.js.map +1 -0
- package/dist/calendar/tools/suggest_time/schema.d.ts +25 -0
- package/dist/calendar/tools/suggest_time/schema.d.ts.map +1 -0
- package/dist/calendar/tools/suggest_time/schema.js +70 -0
- package/dist/calendar/tools/suggest_time/schema.js.map +1 -0
- package/dist/calendar/tools/update_event/handler.d.ts +5 -0
- package/dist/calendar/tools/update_event/handler.d.ts.map +1 -0
- package/dist/calendar/tools/update_event/handler.js +50 -0
- package/dist/calendar/tools/update_event/handler.js.map +1 -0
- package/dist/calendar/tools/update_event/index.d.ts +100 -0
- package/dist/calendar/tools/update_event/index.d.ts.map +1 -0
- package/dist/calendar/tools/update_event/index.js +17 -0
- package/dist/calendar/tools/update_event/index.js.map +1 -0
- package/dist/calendar/tools/update_event/schema.d.ts +97 -0
- package/dist/calendar/tools/update_event/schema.d.ts.map +1 -0
- package/dist/calendar/tools/update_event/schema.js +59 -0
- package/dist/calendar/tools/update_event/schema.js.map +1 -0
- package/dist/doctor/diagnose.js +2 -2
- package/dist/doctor/diagnose.js.map +1 -1
- package/dist/doctor/index.js +1 -1
- package/dist/doctor/index.js.map +1 -1
- package/dist/doctor/services.d.ts.map +1 -1
- package/dist/doctor/services.js +8 -1
- package/dist/doctor/services.js.map +1 -1
- package/dist/lib/operation.d.ts +2 -2
- package/dist/lib/operation.js +2 -2
- package/dist/lib/operation.js.map +1 -1
- package/dist/lib/server.d.ts.map +1 -1
- package/dist/lib/server.js +2 -0
- package/dist/lib/server.js.map +1 -1
- package/package.json +11 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/delete
|
|
3
|
+
*
|
|
4
|
+
* Unsubscribes the user from a calendar. Not marked destructive: the calendar
|
|
5
|
+
* and its events are untouched, and re-adding the entry (add_calendar_entry)
|
|
6
|
+
* reverses it. delete_calendar is the irreversible cousin.
|
|
7
|
+
*/
|
|
8
|
+
export declare const remove_calendar_entry: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
|
|
9
|
+
calendarId: import("zod").ZodString;
|
|
10
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
11
|
+
calendarId: import("zod").ZodString;
|
|
12
|
+
}, import("zod/v4/core").$strip>>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/remove_calendar_entry/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;iCAKhC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { calendarOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/delete
|
|
6
|
+
*
|
|
7
|
+
* Unsubscribes the user from a calendar. Not marked destructive: the calendar
|
|
8
|
+
* and its events are untouched, and re-adding the entry (add_calendar_entry)
|
|
9
|
+
* reverses it. delete_calendar is the irreversible cousin.
|
|
10
|
+
*/
|
|
11
|
+
export const remove_calendar_entry = calendarOperation({
|
|
12
|
+
description: "Remove a calendar from the user's calendar list (unsubscribe); the calendar itself is untouched.",
|
|
13
|
+
schema,
|
|
14
|
+
handler,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/remove_calendar_entry/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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,WAAW,EACT,kGAAkG;IACpG,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 * Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/delete\n *\n * Unsubscribes the user from a calendar. Not marked destructive: the calendar\n * and its events are untouched, and re-adding the entry (add_calendar_entry)\n * reverses it. delete_calendar is the irreversible cousin.\n */\nexport const remove_calendar_entry = calendarOperation({\n description:\n \"Remove a calendar from the user's calendar list (unsubscribe); the calendar itself is untouched.\",\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/delete */
|
|
3
|
+
export declare const schema: {
|
|
4
|
+
input: z.ZodObject<{
|
|
5
|
+
calendarId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
/** Delete returns no body; we confirm the id. */
|
|
8
|
+
output: z.ZodObject<{
|
|
9
|
+
calendarId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/remove_calendar_entry/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oGAAoG;AACpG,eAAO,MAAM,MAAM;;;;IAMjB,iDAAiD;;;;CAIlD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/delete */
|
|
3
|
+
export const schema = {
|
|
4
|
+
input: z.object({
|
|
5
|
+
calendarId: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe("The calendar ID of the entry to remove from the user's calendar list."),
|
|
8
|
+
}),
|
|
9
|
+
/** Delete returns no body; we confirm the id. */
|
|
10
|
+
output: z.object({
|
|
11
|
+
calendarId: z.string().describe('The ID of the removed calendar list entry.'),
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/remove_calendar_entry/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oGAAoG;AACpG,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CAAC,uEAAuE,CAAC;KACrF,CAAC;IACF,iDAAiD;IACjD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;KAC9E,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\n\n/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/delete */\nexport const schema = {\n input: z.object({\n calendarId: z\n .string()\n .describe(\"The calendar ID of the entry to remove from the user's calendar list.\"),\n }),\n /** Delete returns no body; we confirm the id. */\n output: z.object({\n calendarId: z.string().describe('The ID of the removed calendar list entry.'),\n }),\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { calendar_v3 } from '@googleapis/calendar';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAWxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { projectCalendar } from '../../lib/calendar.js';
|
|
3
|
+
export async function handler(calendar, args) {
|
|
4
|
+
const { data } = await calendar.calendars.patch({
|
|
5
|
+
calendarId: args.calendarId ?? 'primary',
|
|
6
|
+
requestBody: forGoogle({
|
|
7
|
+
summary: args.summary,
|
|
8
|
+
description: args.description,
|
|
9
|
+
location: args.location,
|
|
10
|
+
timeZone: args.timeZone,
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
13
|
+
return projectCalendar(data);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC;QAC9C,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,WAAW,EAAE,SAAS,CAAC;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;KACH,CAAC,CAAC;IACH,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectCalendar } from '../../lib/calendar.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await calendar.calendars.patch({\n calendarId: args.calendarId ?? 'primary',\n requestBody: forGoogle({\n summary: args.summary,\n description: args.description,\n location: args.location,\n timeZone: args.timeZone,\n }),\n });\n return projectCalendar(data);\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/patch
|
|
3
|
+
* Patch semantics: unset fields are left unchanged.
|
|
4
|
+
*/
|
|
5
|
+
export declare const update_calendar: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
|
|
6
|
+
calendarId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
12
|
+
id: import("zod").ZodString;
|
|
13
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
}, import("zod/v4/core").$strip>>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar/index.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;iCAK1B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { calendarOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/patch
|
|
6
|
+
* Patch semantics: unset fields are left unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export const update_calendar = calendarOperation({
|
|
9
|
+
description: "Update a calendar's title, description, location, and/or time zone; unset fields are left unchanged.",
|
|
10
|
+
schema,
|
|
11
|
+
handler,
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar/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;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,sGAAsG;IACxG,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 * Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/patch\n * Patch semantics: unset fields are left unchanged.\n */\nexport const update_calendar = calendarOperation({\n description:\n \"Update a calendar's title, description, location, and/or time zone; unset fields are left unchanged.\",\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/patch */
|
|
3
|
+
export declare const schema: {
|
|
4
|
+
input: z.ZodObject<{
|
|
5
|
+
calendarId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
location: z.ZodOptional<z.ZodString>;
|
|
9
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
output: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
location: z.ZodOptional<z.ZodString>;
|
|
16
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,gGAAgG;AAChG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAkBlB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Calendar } from '../../entities/Calendar.js';
|
|
3
|
+
/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/patch */
|
|
4
|
+
export const schema = {
|
|
5
|
+
input: z.object({
|
|
6
|
+
calendarId: z
|
|
7
|
+
.string()
|
|
8
|
+
.optional()
|
|
9
|
+
.describe("The calendar ID to update. The default is the user's primary calendar."),
|
|
10
|
+
summary: z.string().optional().describe('The new title of the calendar.'),
|
|
11
|
+
description: z.string().optional().describe('The new description of the calendar.'),
|
|
12
|
+
location: z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('The new geographic location of the calendar as free-form text.'),
|
|
16
|
+
timeZone: z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('The new time zone of the calendar, as an IANA Time Zone Database name.'),
|
|
20
|
+
}),
|
|
21
|
+
output: Calendar,
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,gGAAgG;AAChG,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,wEAAwE,CAAC;QACrF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QACzE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACnF,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,gEAAgE,CAAC;QAC7E,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,wEAAwE,CAAC;KACtF,CAAC;IACF,MAAM,EAAE,QAAQ;CACjB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Calendar } from '../../entities/Calendar.js';\n\n/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/patch */\nexport const schema = {\n input: z.object({\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID to update. The default is the user's primary calendar.\"),\n summary: z.string().optional().describe('The new title of the calendar.'),\n description: z.string().optional().describe('The new description of the calendar.'),\n location: z\n .string()\n .optional()\n .describe('The new geographic location of the calendar as free-form text.'),\n timeZone: z\n .string()\n .optional()\n .describe('The new time zone of the calendar, as an IANA Time Zone Database name.'),\n }),\n output: Calendar,\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { calendar_v3 } from '@googleapis/calendar';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar_entry/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAoBxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { projectCalendarListEntry } from '../../lib/calendar.js';
|
|
3
|
+
export async function handler(calendar, args) {
|
|
4
|
+
// Writing the hex color fields requires colorRgbFormat=true on the query;
|
|
5
|
+
// Google then back-fills colorId with the closest palette entry.
|
|
6
|
+
const writesHexColors = args.backgroundColor !== undefined || args.foregroundColor !== undefined;
|
|
7
|
+
const { data } = await calendar.calendarList.patch(forGoogle({
|
|
8
|
+
calendarId: args.calendarId ?? 'primary',
|
|
9
|
+
colorRgbFormat: writesHexColors ? true : undefined,
|
|
10
|
+
requestBody: forGoogle({
|
|
11
|
+
summaryOverride: args.summaryOverride,
|
|
12
|
+
colorId: args.colorId,
|
|
13
|
+
backgroundColor: args.backgroundColor,
|
|
14
|
+
foregroundColor: args.foregroundColor,
|
|
15
|
+
hidden: args.hidden,
|
|
16
|
+
selected: args.selected,
|
|
17
|
+
defaultReminders: args.defaultReminders,
|
|
18
|
+
}),
|
|
19
|
+
}));
|
|
20
|
+
return projectCalendarListEntry(data);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar_entry/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,0EAA0E;IAC1E,iEAAiE;IACjE,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,KAAK,SAAS,IAAI,IAAI,CAAC,eAAe,KAAK,SAAS,CAAC;IACjG,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,KAAK,CAChD,SAAS,CAAC;QACR,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;QAClD,WAAW,EAAE,SAAS,CAAC;YACrB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;SACxC,CAAC;KACH,CAAC,CACH,CAAC;IACF,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectCalendarListEntry } from '../../lib/calendar.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n // Writing the hex color fields requires colorRgbFormat=true on the query;\n // Google then back-fills colorId with the closest palette entry.\n const writesHexColors = args.backgroundColor !== undefined || args.foregroundColor !== undefined;\n const { data } = await calendar.calendarList.patch(\n forGoogle({\n calendarId: args.calendarId ?? 'primary',\n colorRgbFormat: writesHexColors ? true : undefined,\n requestBody: forGoogle({\n summaryOverride: args.summaryOverride,\n colorId: args.colorId,\n backgroundColor: args.backgroundColor,\n foregroundColor: args.foregroundColor,\n hidden: args.hidden,\n selected: args.selected,\n defaultReminders: args.defaultReminders,\n }),\n }),\n );\n return projectCalendarListEntry(data);\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/patch
|
|
3
|
+
*
|
|
4
|
+
* Edits the user's view of a calendar, not the calendar itself (see
|
|
5
|
+
* update_calendar for that). Patch semantics: unset fields are left
|
|
6
|
+
* unchanged. The handler sends colorRgbFormat=true whenever a hex color
|
|
7
|
+
* field is written, as the API requires.
|
|
8
|
+
*/
|
|
9
|
+
export declare const update_calendar_entry: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
|
|
10
|
+
calendarId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
summaryOverride: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
colorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
backgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
foregroundColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
hidden: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
16
|
+
selected: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17
|
+
defaultReminders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
18
|
+
method: import("zod").ZodEnum<{
|
|
19
|
+
email: "email";
|
|
20
|
+
popup: "popup";
|
|
21
|
+
}>;
|
|
22
|
+
minutes: import("zod").ZodNumber;
|
|
23
|
+
}, import("zod/v4/core").$strip>>>;
|
|
24
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
25
|
+
id: import("zod").ZodString;
|
|
26
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
summaryOverride: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
timeZone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
accessRole: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
colorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
backgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
foregroundColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
hidden: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
36
|
+
selected: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
|
+
primary: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
38
|
+
defaultReminders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
39
|
+
method: import("zod").ZodEnum<{
|
|
40
|
+
email: "email";
|
|
41
|
+
popup: "popup";
|
|
42
|
+
}>;
|
|
43
|
+
minutes: import("zod").ZodNumber;
|
|
44
|
+
}, import("zod/v4/core").$strip>>>;
|
|
45
|
+
}, import("zod/v4/core").$strip>>;
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar_entry/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAKhC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { calendarOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/patch
|
|
6
|
+
*
|
|
7
|
+
* Edits the user's view of a calendar, not the calendar itself (see
|
|
8
|
+
* update_calendar for that). Patch semantics: unset fields are left
|
|
9
|
+
* unchanged. The handler sends colorRgbFormat=true whenever a hex color
|
|
10
|
+
* field is written, as the API requires.
|
|
11
|
+
*/
|
|
12
|
+
export const update_calendar_entry = calendarOperation({
|
|
13
|
+
description: "Update the user's view of a calendar (title override, colors, visibility, default reminders); unset fields are left unchanged.",
|
|
14
|
+
schema,
|
|
15
|
+
handler,
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar_entry/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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,WAAW,EACT,gIAAgI;IAClI,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 * Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/patch\n *\n * Edits the user's view of a calendar, not the calendar itself (see\n * update_calendar for that). Patch semantics: unset fields are left\n * unchanged. The handler sends colorRgbFormat=true whenever a hex color\n * field is written, as the API requires.\n */\nexport const update_calendar_entry = calendarOperation({\n description:\n \"Update the user's view of a calendar (title override, colors, visibility, default reminders); unset fields are left unchanged.\",\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/patch */
|
|
3
|
+
export declare const schema: {
|
|
4
|
+
input: z.ZodObject<{
|
|
5
|
+
calendarId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
summaryOverride: z.ZodOptional<z.ZodString>;
|
|
7
|
+
colorId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
foregroundColor: z.ZodOptional<z.ZodString>;
|
|
10
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
defaultReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
+
method: z.ZodEnum<{
|
|
14
|
+
email: "email";
|
|
15
|
+
popup: "popup";
|
|
16
|
+
}>;
|
|
17
|
+
minutes: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
output: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
23
|
+
summaryOverride: z.ZodOptional<z.ZodString>;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
location: z.ZodOptional<z.ZodString>;
|
|
26
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
27
|
+
accessRole: z.ZodOptional<z.ZodString>;
|
|
28
|
+
colorId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
30
|
+
foregroundColor: z.ZodOptional<z.ZodString>;
|
|
31
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
defaultReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
method: z.ZodEnum<{
|
|
36
|
+
email: "email";
|
|
37
|
+
popup: "popup";
|
|
38
|
+
}>;
|
|
39
|
+
minutes: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar_entry/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,mGAAmG;AACnG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuClB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CalendarListEntry } from '../../entities/CalendarListEntry.js';
|
|
3
|
+
import { Reminder } from '../../entities/Reminder.js';
|
|
4
|
+
/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/patch */
|
|
5
|
+
export const schema = {
|
|
6
|
+
input: z.object({
|
|
7
|
+
calendarId: z
|
|
8
|
+
.string()
|
|
9
|
+
.optional()
|
|
10
|
+
.describe("The calendar ID of the entry to update. The default is the user's primary calendar."),
|
|
11
|
+
summaryOverride: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe("The title the user sets for this calendar, overriding the calendar's own."),
|
|
15
|
+
colorId: z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('The color of the calendar: an ID referring to an entry in the calendar section of the colors definition. Superseded by backgroundColor and foregroundColor.'),
|
|
19
|
+
backgroundColor: z
|
|
20
|
+
.string()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('The main color of the calendar in the hexadecimal format "#0088aa".'),
|
|
23
|
+
foregroundColor: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('The foreground color of the calendar in the hexadecimal format "#ffffff".'),
|
|
27
|
+
hidden: z.boolean().optional().describe('Whether to hide the calendar from the list.'),
|
|
28
|
+
selected: z
|
|
29
|
+
.boolean()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe('Whether the calendar content shows up in the calendar UI.'),
|
|
32
|
+
defaultReminders: z
|
|
33
|
+
.array(Reminder)
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('The default reminders the user has for this calendar; if set, they replace all existing default reminders.'),
|
|
36
|
+
}),
|
|
37
|
+
output: CalendarListEntry,
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_calendar_entry/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,mGAAmG;AACnG,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,2EAA2E,CAAC;QACxF,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6JAA6J,CAC9J;QACH,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,qEAAqE,CAAC;QAClF,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,2EAA2E,CAAC;QACxF,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;QACtF,QAAQ,EAAE,CAAC;aACR,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,2DAA2D,CAAC;QACxE,gBAAgB,EAAE,CAAC;aAChB,KAAK,CAAC,QAAQ,CAAC;aACf,QAAQ,EAAE;aACV,QAAQ,CACP,4GAA4G,CAC7G;KACJ,CAAC;IACF,MAAM,EAAE,iBAAiB;CAC1B,CAAC","sourcesContent":["import { z } from 'zod';\nimport { CalendarListEntry } from '../../entities/CalendarListEntry.js';\nimport { Reminder } from '../../entities/Reminder.js';\n\n/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendarList/patch */\nexport const schema = {\n input: z.object({\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID of the entry to update. The default is the user's primary calendar.\",\n ),\n summaryOverride: z\n .string()\n .optional()\n .describe(\"The title the user sets for this calendar, overriding the calendar's own.\"),\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. Superseded by backgroundColor and foregroundColor.',\n ),\n backgroundColor: z\n .string()\n .optional()\n .describe('The main color of the calendar in the hexadecimal format \"#0088aa\".'),\n foregroundColor: z\n .string()\n .optional()\n .describe('The foreground color of the calendar in the hexadecimal format \"#ffffff\".'),\n hidden: z.boolean().optional().describe('Whether to hide the calendar from the list.'),\n selected: z\n .boolean()\n .optional()\n .describe('Whether the calendar content shows up in the calendar UI.'),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe(\n 'The default reminders the user has for this calendar; if set, they replace all existing default reminders.',\n ),\n }),\n output: CalendarListEntry,\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { calendar_v3 } from '@googleapis/calendar';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import { type Operation } from '../lib/operation.js';
|
|
4
|
+
/**
|
|
5
|
+
* `operation()` bound to the Calendar client. Every calendar op's `index.ts` uses
|
|
6
|
+
* this instead of the raw `operation()` so the handler's client is always
|
|
7
|
+
* `calendar_v3.Calendar`: a handler that drops or mistypes its client annotation
|
|
8
|
+
* fails here (the client can no longer silently infer `unknown` and slip into the
|
|
9
|
+
* registry) rather than surfacing as a confusing `unknown` deep in the body.
|
|
10
|
+
*/
|
|
11
|
+
export declare const calendarOperation: <In extends z.ZodType, Out extends z.ZodType>(def: Operation<calendar_v3.Calendar, In, Out>) => Operation<calendar_v3.Calendar, In, Out>;
|
|
12
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/calendar/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,qBAAqB,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,EAAE,SAAS,CAAC,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,CAAC,OAAO,EAC3E,KAAK,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,KAC5C,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { operation } from '../lib/operation.js';
|
|
2
|
+
/**
|
|
3
|
+
* `operation()` bound to the Calendar client. Every calendar op's `index.ts` uses
|
|
4
|
+
* this instead of the raw `operation()` so the handler's client is always
|
|
5
|
+
* `calendar_v3.Calendar`: a handler that drops or mistypes its client annotation
|
|
6
|
+
* fails here (the client can no longer silently infer `unknown` and slip into the
|
|
7
|
+
* registry) rather than surfacing as a confusing `unknown` deep in the body.
|
|
8
|
+
*/
|
|
9
|
+
export const calendarOperation = (def) => operation(def);
|
|
10
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","sourceRoot":"","sources":["../../src/calendar/operation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,GAA6C,EACH,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { type Operation, operation } from '../lib/operation.js';\n\n/**\n * `operation()` bound to the Calendar client. Every calendar op's `index.ts` uses\n * this instead of the raw `operation()` so the handler's client is always\n * `calendar_v3.Calendar`: a handler that drops or mistypes its client annotation\n * fails here (the client can no longer silently infer `unknown` and slip into the\n * registry) rather than surfacing as a confusing `unknown` deep in the body.\n */\nexport const calendarOperation = <In extends z.ZodType, Out extends z.ZodType>(\n def: Operation<calendar_v3.Calendar, In, Out>,\n): Operation<calendar_v3.Calendar, In, Out> => operation(def);\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { calendar_v3 } from '@googleapis/calendar';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/tools/create_event/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAM7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAiCxC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { buildEventDateTime } from '../../lib/datetime.js';
|
|
3
|
+
import { projectEvent } from '../../lib/event.js';
|
|
4
|
+
import { meetConferenceData } from '../../lib/meet.js';
|
|
5
|
+
import { toSendUpdates } from '../../lib/notifications.js';
|
|
6
|
+
export async function handler(calendar, args) {
|
|
7
|
+
const conferenceData = meetConferenceData(args);
|
|
8
|
+
const { data } = await calendar.events.insert(forGoogle({
|
|
9
|
+
calendarId: args.calendarId ?? 'primary',
|
|
10
|
+
sendUpdates: toSendUpdates(args.notificationLevel),
|
|
11
|
+
conferenceDataVersion: conferenceData === undefined ? undefined : 1,
|
|
12
|
+
requestBody: forGoogle({
|
|
13
|
+
summary: args.summary,
|
|
14
|
+
description: args.description,
|
|
15
|
+
location: args.location,
|
|
16
|
+
start: buildEventDateTime({
|
|
17
|
+
dateTime: args.startTime,
|
|
18
|
+
timeZone: args.timeZone,
|
|
19
|
+
allDay: args.allDay,
|
|
20
|
+
}),
|
|
21
|
+
end: buildEventDateTime({
|
|
22
|
+
dateTime: args.endTime,
|
|
23
|
+
timeZone: args.timeZone,
|
|
24
|
+
allDay: args.allDay,
|
|
25
|
+
}),
|
|
26
|
+
attendees: args.attendeeEmails?.map((email) => ({ email })),
|
|
27
|
+
recurrence: args.recurrenceData,
|
|
28
|
+
reminders: args.overrideReminders
|
|
29
|
+
? { useDefault: false, overrides: args.overrideReminders }
|
|
30
|
+
: undefined,
|
|
31
|
+
conferenceData,
|
|
32
|
+
visibility: args.visibility,
|
|
33
|
+
colorId: args.colorId,
|
|
34
|
+
}),
|
|
35
|
+
}));
|
|
36
|
+
return projectEvent(data);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/tools/create_event/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,cAAc,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,CAC3C,SAAS,CAAC;QACR,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,WAAW,EAAE,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAClD,qBAAqB,EAAE,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACnE,WAAW,EAAE,SAAS,CAAC;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,kBAAkB,CAAC;gBACxB,QAAQ,EAAE,IAAI,CAAC,SAAS;gBACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC;YACF,GAAG,EAAE,kBAAkB,CAAC;gBACtB,QAAQ,EAAE,IAAI,CAAC,OAAO;gBACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC;YACF,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;YAC3D,UAAU,EAAE,IAAI,CAAC,cAAc;YAC/B,SAAS,EAAE,IAAI,CAAC,iBAAiB;gBAC/B,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE;gBAC1D,CAAC,CAAC,SAAS;YACb,cAAc;YACd,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;KACH,CAAC,CACH,CAAC;IACF,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { buildEventDateTime } from '../../lib/datetime.js';\nimport { projectEvent } from '../../lib/event.js';\nimport { meetConferenceData } from '../../lib/meet.js';\nimport { toSendUpdates } from '../../lib/notifications.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const conferenceData = meetConferenceData(args);\n const { data } = await calendar.events.insert(\n forGoogle({\n calendarId: args.calendarId ?? 'primary',\n sendUpdates: toSendUpdates(args.notificationLevel),\n conferenceDataVersion: conferenceData === undefined ? undefined : 1,\n requestBody: forGoogle({\n summary: args.summary,\n description: args.description,\n location: args.location,\n start: buildEventDateTime({\n dateTime: args.startTime,\n timeZone: args.timeZone,\n allDay: args.allDay,\n }),\n end: buildEventDateTime({\n dateTime: args.endTime,\n timeZone: args.timeZone,\n allDay: args.allDay,\n }),\n attendees: args.attendeeEmails?.map((email) => ({ email })),\n recurrence: args.recurrenceData,\n reminders: args.overrideReminders\n ? { useDefault: false, overrides: args.overrideReminders }\n : undefined,\n conferenceData,\n visibility: args.visibility,\n colorId: args.colorId,\n }),\n }),\n );\n return projectEvent(data);\n}\n"]}
|