google-mcp-suite 1.1.0 → 1.3.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.
Files changed (559) hide show
  1. package/README.md +18 -13
  2. package/dist/calendar/entities/CalendarListEntry.d.ts +2 -2
  3. package/dist/calendar/entities/Event.d.ts +2 -2
  4. package/dist/calendar/entities/EventDateTime.d.ts.map +1 -1
  5. package/dist/calendar/entities/EventDateTime.js +4 -1
  6. package/dist/calendar/entities/EventDateTime.js.map +1 -1
  7. package/dist/calendar/entities/Reminder.d.ts +2 -2
  8. package/dist/calendar/entities/Reminder.d.ts.map +1 -1
  9. package/dist/calendar/entities/Reminder.js +2 -1
  10. package/dist/calendar/entities/Reminder.js.map +1 -1
  11. package/dist/calendar/lib/event.d.ts +1 -1
  12. package/dist/calendar/lib/event.d.ts.map +1 -1
  13. package/dist/calendar/lib/event.js +2 -2
  14. package/dist/calendar/lib/event.js.map +1 -1
  15. package/dist/calendar/lib/freebusy.d.ts +11 -0
  16. package/dist/calendar/lib/freebusy.d.ts.map +1 -0
  17. package/dist/calendar/lib/freebusy.js +21 -0
  18. package/dist/calendar/lib/freebusy.js.map +1 -0
  19. package/dist/calendar/lib/suggest.d.ts +2 -0
  20. package/dist/calendar/lib/suggest.d.ts.map +1 -1
  21. package/dist/calendar/lib/suggest.js +11 -1
  22. package/dist/calendar/lib/suggest.js.map +1 -1
  23. package/dist/calendar/methods/add_calendar_entry/index.d.ts +2 -2
  24. package/dist/calendar/methods/add_calendar_entry/index.d.ts.map +1 -1
  25. package/dist/calendar/methods/add_calendar_entry/index.js +6 -0
  26. package/dist/calendar/methods/add_calendar_entry/index.js.map +1 -1
  27. package/dist/calendar/methods/add_calendar_entry/schema.d.ts +2 -2
  28. package/dist/calendar/methods/clear_calendar/index.d.ts.map +1 -1
  29. package/dist/calendar/methods/clear_calendar/index.js +6 -1
  30. package/dist/calendar/methods/clear_calendar/index.js.map +1 -1
  31. package/dist/calendar/methods/create_calendar/index.d.ts.map +1 -1
  32. package/dist/calendar/methods/create_calendar/index.js +6 -0
  33. package/dist/calendar/methods/create_calendar/index.js.map +1 -1
  34. package/dist/calendar/methods/delete_calendar/index.d.ts.map +1 -1
  35. package/dist/calendar/methods/delete_calendar/index.js +6 -1
  36. package/dist/calendar/methods/delete_calendar/index.js.map +1 -1
  37. package/dist/calendar/methods/get_calendar/index.d.ts.map +1 -1
  38. package/dist/calendar/methods/get_calendar/index.js +6 -0
  39. package/dist/calendar/methods/get_calendar/index.js.map +1 -1
  40. package/dist/calendar/methods/get_calendar_entry/index.d.ts +2 -2
  41. package/dist/calendar/methods/get_calendar_entry/index.d.ts.map +1 -1
  42. package/dist/calendar/methods/get_calendar_entry/index.js +6 -0
  43. package/dist/calendar/methods/get_calendar_entry/index.js.map +1 -1
  44. package/dist/calendar/methods/get_calendar_entry/schema.d.ts +2 -2
  45. package/dist/calendar/methods/get_colors/index.d.ts.map +1 -1
  46. package/dist/calendar/methods/get_colors/index.js +6 -0
  47. package/dist/calendar/methods/get_colors/index.js.map +1 -1
  48. package/dist/calendar/methods/get_setting/index.d.ts.map +1 -1
  49. package/dist/calendar/methods/get_setting/index.js +6 -0
  50. package/dist/calendar/methods/get_setting/index.js.map +1 -1
  51. package/dist/calendar/methods/list_event_instances/index.d.ts +4 -4
  52. package/dist/calendar/methods/list_event_instances/index.d.ts.map +1 -1
  53. package/dist/calendar/methods/list_event_instances/index.js +6 -0
  54. package/dist/calendar/methods/list_event_instances/index.js.map +1 -1
  55. package/dist/calendar/methods/list_event_instances/schema.d.ts +4 -4
  56. package/dist/calendar/methods/list_settings/index.d.ts.map +1 -1
  57. package/dist/calendar/methods/list_settings/index.js +6 -0
  58. package/dist/calendar/methods/list_settings/index.js.map +1 -1
  59. package/dist/calendar/methods/move_event/index.d.ts +2 -2
  60. package/dist/calendar/methods/move_event/index.d.ts.map +1 -1
  61. package/dist/calendar/methods/move_event/index.js +6 -0
  62. package/dist/calendar/methods/move_event/index.js.map +1 -1
  63. package/dist/calendar/methods/move_event/schema.d.ts +2 -2
  64. package/dist/calendar/methods/patch_event/index.d.ts +2 -2
  65. package/dist/calendar/methods/patch_event/index.d.ts.map +1 -1
  66. package/dist/calendar/methods/patch_event/index.js +6 -0
  67. package/dist/calendar/methods/patch_event/index.js.map +1 -1
  68. package/dist/calendar/methods/patch_event/schema.d.ts +2 -2
  69. package/dist/calendar/methods/query_free_busy/handler.d.ts.map +1 -1
  70. package/dist/calendar/methods/query_free_busy/handler.js +1 -12
  71. package/dist/calendar/methods/query_free_busy/handler.js.map +1 -1
  72. package/dist/calendar/methods/query_free_busy/index.d.ts.map +1 -1
  73. package/dist/calendar/methods/query_free_busy/index.js +6 -0
  74. package/dist/calendar/methods/query_free_busy/index.js.map +1 -1
  75. package/dist/calendar/methods/quick_add_event/index.d.ts +2 -2
  76. package/dist/calendar/methods/quick_add_event/index.d.ts.map +1 -1
  77. package/dist/calendar/methods/quick_add_event/index.js +6 -0
  78. package/dist/calendar/methods/quick_add_event/index.js.map +1 -1
  79. package/dist/calendar/methods/quick_add_event/schema.d.ts +2 -2
  80. package/dist/calendar/methods/registry.d.ts +18 -18
  81. package/dist/calendar/methods/remove_calendar_entry/index.d.ts +2 -1
  82. package/dist/calendar/methods/remove_calendar_entry/index.d.ts.map +1 -1
  83. package/dist/calendar/methods/remove_calendar_entry/index.js +8 -1
  84. package/dist/calendar/methods/remove_calendar_entry/index.js.map +1 -1
  85. package/dist/calendar/methods/update_calendar/index.d.ts.map +1 -1
  86. package/dist/calendar/methods/update_calendar/index.js +6 -0
  87. package/dist/calendar/methods/update_calendar/index.js.map +1 -1
  88. package/dist/calendar/methods/update_calendar_entry/handler.js +1 -1
  89. package/dist/calendar/methods/update_calendar_entry/handler.js.map +1 -1
  90. package/dist/calendar/methods/update_calendar_entry/index.d.ts +4 -4
  91. package/dist/calendar/methods/update_calendar_entry/index.d.ts.map +1 -1
  92. package/dist/calendar/methods/update_calendar_entry/index.js +6 -0
  93. package/dist/calendar/methods/update_calendar_entry/index.js.map +1 -1
  94. package/dist/calendar/methods/update_calendar_entry/schema.d.ts +4 -4
  95. package/dist/calendar/operation.d.ts +1 -1
  96. package/dist/calendar/operation.d.ts.map +1 -1
  97. package/dist/calendar/operation.js.map +1 -1
  98. package/dist/calendar/tools/create_event/handler.d.ts.map +1 -1
  99. package/dist/calendar/tools/create_event/handler.js +4 -1
  100. package/dist/calendar/tools/create_event/handler.js.map +1 -1
  101. package/dist/calendar/tools/create_event/index.d.ts +4 -4
  102. package/dist/calendar/tools/create_event/index.d.ts.map +1 -1
  103. package/dist/calendar/tools/create_event/index.js +6 -0
  104. package/dist/calendar/tools/create_event/index.js.map +1 -1
  105. package/dist/calendar/tools/create_event/schema.d.ts +4 -4
  106. package/dist/calendar/tools/delete_event/index.d.ts +2 -2
  107. package/dist/calendar/tools/delete_event/index.d.ts.map +1 -1
  108. package/dist/calendar/tools/delete_event/index.js +6 -1
  109. package/dist/calendar/tools/delete_event/index.js.map +1 -1
  110. package/dist/calendar/tools/delete_event/schema.d.ts +2 -2
  111. package/dist/calendar/tools/get_event/index.d.ts +2 -2
  112. package/dist/calendar/tools/get_event/index.d.ts.map +1 -1
  113. package/dist/calendar/tools/get_event/index.js +6 -0
  114. package/dist/calendar/tools/get_event/index.js.map +1 -1
  115. package/dist/calendar/tools/get_event/schema.d.ts +2 -2
  116. package/dist/calendar/tools/list_calendars/index.d.ts.map +1 -1
  117. package/dist/calendar/tools/list_calendars/index.js +6 -0
  118. package/dist/calendar/tools/list_calendars/index.js.map +1 -1
  119. package/dist/calendar/tools/list_events/index.d.ts +4 -4
  120. package/dist/calendar/tools/list_events/index.d.ts.map +1 -1
  121. package/dist/calendar/tools/list_events/index.js +6 -0
  122. package/dist/calendar/tools/list_events/index.js.map +1 -1
  123. package/dist/calendar/tools/list_events/schema.d.ts +4 -4
  124. package/dist/calendar/tools/registry.d.ts +18 -18
  125. package/dist/calendar/tools/respond_to_event/index.d.ts +2 -2
  126. package/dist/calendar/tools/respond_to_event/index.d.ts.map +1 -1
  127. package/dist/calendar/tools/respond_to_event/index.js +6 -0
  128. package/dist/calendar/tools/respond_to_event/index.js.map +1 -1
  129. package/dist/calendar/tools/respond_to_event/schema.d.ts +2 -2
  130. package/dist/calendar/tools/suggest_time/handler.d.ts.map +1 -1
  131. package/dist/calendar/tools/suggest_time/handler.js +2 -1
  132. package/dist/calendar/tools/suggest_time/handler.js.map +1 -1
  133. package/dist/calendar/tools/suggest_time/index.d.ts.map +1 -1
  134. package/dist/calendar/tools/suggest_time/index.js +6 -0
  135. package/dist/calendar/tools/suggest_time/index.js.map +1 -1
  136. package/dist/calendar/tools/suggest_time/schema.d.ts.map +1 -1
  137. package/dist/calendar/tools/suggest_time/schema.js +3 -4
  138. package/dist/calendar/tools/suggest_time/schema.js.map +1 -1
  139. package/dist/calendar/tools/update_event/handler.d.ts.map +1 -1
  140. package/dist/calendar/tools/update_event/handler.js +4 -1
  141. package/dist/calendar/tools/update_event/handler.js.map +1 -1
  142. package/dist/calendar/tools/update_event/index.d.ts +4 -4
  143. package/dist/calendar/tools/update_event/index.d.ts.map +1 -1
  144. package/dist/calendar/tools/update_event/index.js +6 -0
  145. package/dist/calendar/tools/update_event/index.js.map +1 -1
  146. package/dist/calendar/tools/update_event/schema.d.ts +4 -4
  147. package/dist/doctor/services.d.ts.map +1 -1
  148. package/dist/doctor/services.js +15 -1
  149. package/dist/doctor/services.js.map +1 -1
  150. package/dist/gmail/methods/batch_delete_messages/index.d.ts.map +1 -1
  151. package/dist/gmail/methods/batch_delete_messages/index.js +6 -1
  152. package/dist/gmail/methods/batch_delete_messages/index.js.map +1 -1
  153. package/dist/gmail/methods/batch_modify_messages/index.d.ts.map +1 -1
  154. package/dist/gmail/methods/batch_modify_messages/index.js +6 -0
  155. package/dist/gmail/methods/batch_modify_messages/index.js.map +1 -1
  156. package/dist/gmail/methods/create_filter/index.d.ts.map +1 -1
  157. package/dist/gmail/methods/create_filter/index.js +6 -1
  158. package/dist/gmail/methods/create_filter/index.js.map +1 -1
  159. package/dist/gmail/methods/delete_draft/index.d.ts +2 -1
  160. package/dist/gmail/methods/delete_draft/index.d.ts.map +1 -1
  161. package/dist/gmail/methods/delete_draft/index.js +8 -1
  162. package/dist/gmail/methods/delete_draft/index.js.map +1 -1
  163. package/dist/gmail/methods/delete_filter/index.d.ts +2 -1
  164. package/dist/gmail/methods/delete_filter/index.d.ts.map +1 -1
  165. package/dist/gmail/methods/delete_filter/index.js +8 -1
  166. package/dist/gmail/methods/delete_filter/index.js.map +1 -1
  167. package/dist/gmail/methods/delete_label/index.d.ts +2 -2
  168. package/dist/gmail/methods/delete_label/index.d.ts.map +1 -1
  169. package/dist/gmail/methods/delete_label/index.js +8 -2
  170. package/dist/gmail/methods/delete_label/index.js.map +1 -1
  171. package/dist/gmail/methods/delete_message/index.d.ts.map +1 -1
  172. package/dist/gmail/methods/delete_message/index.js +6 -1
  173. package/dist/gmail/methods/delete_message/index.js.map +1 -1
  174. package/dist/gmail/methods/delete_thread/index.d.ts.map +1 -1
  175. package/dist/gmail/methods/delete_thread/index.js +6 -1
  176. package/dist/gmail/methods/delete_thread/index.js.map +1 -1
  177. package/dist/gmail/methods/download_attachment/index.d.ts.map +1 -1
  178. package/dist/gmail/methods/download_attachment/index.js +6 -0
  179. package/dist/gmail/methods/download_attachment/index.js.map +1 -1
  180. package/dist/gmail/methods/get_draft/index.d.ts.map +1 -1
  181. package/dist/gmail/methods/get_draft/index.js +6 -0
  182. package/dist/gmail/methods/get_draft/index.js.map +1 -1
  183. package/dist/gmail/methods/get_filter/index.d.ts.map +1 -1
  184. package/dist/gmail/methods/get_filter/index.js +6 -0
  185. package/dist/gmail/methods/get_filter/index.js.map +1 -1
  186. package/dist/gmail/methods/get_label/index.d.ts.map +1 -1
  187. package/dist/gmail/methods/get_label/index.js +6 -0
  188. package/dist/gmail/methods/get_label/index.js.map +1 -1
  189. package/dist/gmail/methods/get_message/index.d.ts.map +1 -1
  190. package/dist/gmail/methods/get_message/index.js +6 -0
  191. package/dist/gmail/methods/get_message/index.js.map +1 -1
  192. package/dist/gmail/methods/list_filters/index.d.ts.map +1 -1
  193. package/dist/gmail/methods/list_filters/index.js +6 -0
  194. package/dist/gmail/methods/list_filters/index.js.map +1 -1
  195. package/dist/gmail/methods/list_messages/index.d.ts.map +1 -1
  196. package/dist/gmail/methods/list_messages/index.js +6 -0
  197. package/dist/gmail/methods/list_messages/index.js.map +1 -1
  198. package/dist/gmail/methods/send_draft/index.d.ts.map +1 -1
  199. package/dist/gmail/methods/send_draft/index.js +6 -1
  200. package/dist/gmail/methods/send_draft/index.js.map +1 -1
  201. package/dist/gmail/methods/send_message/index.d.ts.map +1 -1
  202. package/dist/gmail/methods/send_message/index.js +6 -1
  203. package/dist/gmail/methods/send_message/index.js.map +1 -1
  204. package/dist/gmail/methods/trash_message/index.d.ts.map +1 -1
  205. package/dist/gmail/methods/trash_message/index.js +6 -0
  206. package/dist/gmail/methods/trash_message/index.js.map +1 -1
  207. package/dist/gmail/methods/trash_thread/index.d.ts.map +1 -1
  208. package/dist/gmail/methods/trash_thread/index.js +6 -0
  209. package/dist/gmail/methods/trash_thread/index.js.map +1 -1
  210. package/dist/gmail/methods/untrash_message/index.d.ts.map +1 -1
  211. package/dist/gmail/methods/untrash_message/index.js +6 -0
  212. package/dist/gmail/methods/untrash_message/index.js.map +1 -1
  213. package/dist/gmail/methods/untrash_thread/index.d.ts.map +1 -1
  214. package/dist/gmail/methods/untrash_thread/index.js +6 -0
  215. package/dist/gmail/methods/untrash_thread/index.js.map +1 -1
  216. package/dist/gmail/methods/update_draft/index.d.ts.map +1 -1
  217. package/dist/gmail/methods/update_draft/index.js +6 -0
  218. package/dist/gmail/methods/update_draft/index.js.map +1 -1
  219. package/dist/gmail/methods/update_label/index.d.ts.map +1 -1
  220. package/dist/gmail/methods/update_label/index.js +6 -0
  221. package/dist/gmail/methods/update_label/index.js.map +1 -1
  222. package/dist/gmail/operation.d.ts +1 -1
  223. package/dist/gmail/operation.d.ts.map +1 -1
  224. package/dist/gmail/operation.js.map +1 -1
  225. package/dist/gmail/tools/create_draft/index.d.ts.map +1 -1
  226. package/dist/gmail/tools/create_draft/index.js +6 -0
  227. package/dist/gmail/tools/create_draft/index.js.map +1 -1
  228. package/dist/gmail/tools/create_label/index.d.ts.map +1 -1
  229. package/dist/gmail/tools/create_label/index.js +6 -0
  230. package/dist/gmail/tools/create_label/index.js.map +1 -1
  231. package/dist/gmail/tools/get_thread/index.d.ts.map +1 -1
  232. package/dist/gmail/tools/get_thread/index.js +6 -0
  233. package/dist/gmail/tools/get_thread/index.js.map +1 -1
  234. package/dist/gmail/tools/label_message/index.d.ts.map +1 -1
  235. package/dist/gmail/tools/label_message/index.js +6 -0
  236. package/dist/gmail/tools/label_message/index.js.map +1 -1
  237. package/dist/gmail/tools/label_thread/index.d.ts.map +1 -1
  238. package/dist/gmail/tools/label_thread/index.js +6 -0
  239. package/dist/gmail/tools/label_thread/index.js.map +1 -1
  240. package/dist/gmail/tools/list_drafts/index.d.ts.map +1 -1
  241. package/dist/gmail/tools/list_drafts/index.js +10 -0
  242. package/dist/gmail/tools/list_drafts/index.js.map +1 -1
  243. package/dist/gmail/tools/list_labels/index.d.ts.map +1 -1
  244. package/dist/gmail/tools/list_labels/index.js +6 -0
  245. package/dist/gmail/tools/list_labels/index.js.map +1 -1
  246. package/dist/gmail/tools/search_threads/index.d.ts.map +1 -1
  247. package/dist/gmail/tools/search_threads/index.js +6 -0
  248. package/dist/gmail/tools/search_threads/index.js.map +1 -1
  249. package/dist/gmail/tools/unlabel_message/index.d.ts.map +1 -1
  250. package/dist/gmail/tools/unlabel_message/index.js +6 -0
  251. package/dist/gmail/tools/unlabel_message/index.js.map +1 -1
  252. package/dist/gmail/tools/unlabel_thread/index.d.ts.map +1 -1
  253. package/dist/gmail/tools/unlabel_thread/index.js +6 -0
  254. package/dist/gmail/tools/unlabel_thread/index.js.map +1 -1
  255. package/dist/lib/operation.d.ts +49 -7
  256. package/dist/lib/operation.d.ts.map +1 -1
  257. package/dist/lib/operation.js +1 -1
  258. package/dist/lib/operation.js.map +1 -1
  259. package/dist/lib/server.d.ts +7 -8
  260. package/dist/lib/server.d.ts.map +1 -1
  261. package/dist/lib/server.js +22 -9
  262. package/dist/lib/server.js.map +1 -1
  263. package/dist/sheets/capabilities.d.ts +3 -0
  264. package/dist/sheets/capabilities.d.ts.map +1 -0
  265. package/dist/sheets/capabilities.js +15 -0
  266. package/dist/sheets/capabilities.js.map +1 -0
  267. package/dist/sheets/entities/CellValue.d.ts +14 -0
  268. package/dist/sheets/entities/CellValue.d.ts.map +1 -0
  269. package/dist/sheets/entities/CellValue.js +15 -0
  270. package/dist/sheets/entities/CellValue.js.map +1 -0
  271. package/dist/sheets/entities/DataFilter.d.ts +57 -0
  272. package/dist/sheets/entities/DataFilter.d.ts.map +1 -0
  273. package/dist/sheets/entities/DataFilter.js +15 -0
  274. package/dist/sheets/entities/DataFilter.js.map +1 -0
  275. package/dist/sheets/entities/DataFilterValueRange.d.ts +64 -0
  276. package/dist/sheets/entities/DataFilterValueRange.d.ts.map +1 -0
  277. package/dist/sheets/entities/DataFilterValueRange.js +18 -0
  278. package/dist/sheets/entities/DataFilterValueRange.js.map +1 -0
  279. package/dist/sheets/entities/DateTimeRenderOption.d.ts +13 -0
  280. package/dist/sheets/entities/DateTimeRenderOption.d.ts.map +1 -0
  281. package/dist/sheets/entities/DateTimeRenderOption.js +11 -0
  282. package/dist/sheets/entities/DateTimeRenderOption.js.map +1 -0
  283. package/dist/sheets/entities/DeveloperMetadata.d.ts +40 -0
  284. package/dist/sheets/entities/DeveloperMetadata.d.ts.map +1 -0
  285. package/dist/sheets/entities/DeveloperMetadata.js +28 -0
  286. package/dist/sheets/entities/DeveloperMetadata.js.map +1 -0
  287. package/dist/sheets/entities/DeveloperMetadataLocation.d.ts +28 -0
  288. package/dist/sheets/entities/DeveloperMetadataLocation.d.ts.map +1 -0
  289. package/dist/sheets/entities/DeveloperMetadataLocation.js +25 -0
  290. package/dist/sheets/entities/DeveloperMetadataLocation.js.map +1 -0
  291. package/dist/sheets/entities/DeveloperMetadataLookup.d.ts +48 -0
  292. package/dist/sheets/entities/DeveloperMetadataLookup.d.ts.map +1 -0
  293. package/dist/sheets/entities/DeveloperMetadataLookup.js +38 -0
  294. package/dist/sheets/entities/DeveloperMetadataLookup.js.map +1 -0
  295. package/dist/sheets/entities/DimensionRange.d.ts +18 -0
  296. package/dist/sheets/entities/DimensionRange.d.ts.map +1 -0
  297. package/dist/sheets/entities/DimensionRange.js +22 -0
  298. package/dist/sheets/entities/DimensionRange.js.map +1 -0
  299. package/dist/sheets/entities/GridProperties.d.ts +16 -0
  300. package/dist/sheets/entities/GridProperties.d.ts.map +1 -0
  301. package/dist/sheets/entities/GridProperties.js +23 -0
  302. package/dist/sheets/entities/GridProperties.js.map +1 -0
  303. package/dist/sheets/entities/GridRange.d.ts +17 -0
  304. package/dist/sheets/entities/GridRange.d.ts.map +1 -0
  305. package/dist/sheets/entities/GridRange.js +32 -0
  306. package/dist/sheets/entities/GridRange.js.map +1 -0
  307. package/dist/sheets/entities/MajorDimension.d.ts +13 -0
  308. package/dist/sheets/entities/MajorDimension.d.ts.map +1 -0
  309. package/dist/sheets/entities/MajorDimension.js +11 -0
  310. package/dist/sheets/entities/MajorDimension.js.map +1 -0
  311. package/dist/sheets/entities/MatchedValueRange.d.ts +67 -0
  312. package/dist/sheets/entities/MatchedValueRange.d.ts.map +1 -0
  313. package/dist/sheets/entities/MatchedValueRange.js +17 -0
  314. package/dist/sheets/entities/MatchedValueRange.js.map +1 -0
  315. package/dist/sheets/entities/SheetProperties.d.ts +28 -0
  316. package/dist/sheets/entities/SheetProperties.d.ts.map +1 -0
  317. package/dist/sheets/entities/SheetProperties.js +32 -0
  318. package/dist/sheets/entities/SheetProperties.js.map +1 -0
  319. package/dist/sheets/entities/Spreadsheet.d.ts +44 -0
  320. package/dist/sheets/entities/Spreadsheet.d.ts.map +1 -0
  321. package/dist/sheets/entities/Spreadsheet.js +23 -0
  322. package/dist/sheets/entities/Spreadsheet.js.map +1 -0
  323. package/dist/sheets/entities/SpreadsheetProperties.d.ts +20 -0
  324. package/dist/sheets/entities/SpreadsheetProperties.d.ts.map +1 -0
  325. package/dist/sheets/entities/SpreadsheetProperties.js +24 -0
  326. package/dist/sheets/entities/SpreadsheetProperties.js.map +1 -0
  327. package/dist/sheets/entities/UpdateValuesByDataFilterResponse.d.ts +72 -0
  328. package/dist/sheets/entities/UpdateValuesByDataFilterResponse.d.ts.map +1 -0
  329. package/dist/sheets/entities/UpdateValuesByDataFilterResponse.js +30 -0
  330. package/dist/sheets/entities/UpdateValuesByDataFilterResponse.js.map +1 -0
  331. package/dist/sheets/entities/UpdateValuesResponse.d.ts +25 -0
  332. package/dist/sheets/entities/UpdateValuesResponse.d.ts.map +1 -0
  333. package/dist/sheets/entities/UpdateValuesResponse.js +29 -0
  334. package/dist/sheets/entities/UpdateValuesResponse.js.map +1 -0
  335. package/dist/sheets/entities/ValueInputOption.d.ts +14 -0
  336. package/dist/sheets/entities/ValueInputOption.d.ts.map +1 -0
  337. package/dist/sheets/entities/ValueInputOption.js +12 -0
  338. package/dist/sheets/entities/ValueInputOption.js.map +1 -0
  339. package/dist/sheets/entities/ValueRange.d.ts +17 -0
  340. package/dist/sheets/entities/ValueRange.d.ts.map +1 -0
  341. package/dist/sheets/entities/ValueRange.js +21 -0
  342. package/dist/sheets/entities/ValueRange.js.map +1 -0
  343. package/dist/sheets/entities/ValueRenderOption.d.ts +14 -0
  344. package/dist/sheets/entities/ValueRenderOption.d.ts.map +1 -0
  345. package/dist/sheets/entities/ValueRenderOption.js +11 -0
  346. package/dist/sheets/entities/ValueRenderOption.js.map +1 -0
  347. package/dist/sheets/index.d.ts +3 -0
  348. package/dist/sheets/index.d.ts.map +1 -0
  349. package/dist/sheets/index.js +22 -0
  350. package/dist/sheets/index.js.map +1 -0
  351. package/dist/sheets/lib/enums.d.ts +8 -0
  352. package/dist/sheets/lib/enums.d.ts.map +1 -0
  353. package/dist/sheets/lib/enums.js +10 -0
  354. package/dist/sheets/lib/enums.js.map +1 -0
  355. package/dist/sheets/lib/filters.d.ts +10 -0
  356. package/dist/sheets/lib/filters.d.ts.map +1 -0
  357. package/dist/sheets/lib/filters.js +82 -0
  358. package/dist/sheets/lib/filters.js.map +1 -0
  359. package/dist/sheets/lib/metadata.d.ts +5 -0
  360. package/dist/sheets/lib/metadata.d.ts.map +1 -0
  361. package/dist/sheets/lib/metadata.js +13 -0
  362. package/dist/sheets/lib/metadata.js.map +1 -0
  363. package/dist/sheets/lib/spreadsheet.d.ts +12 -0
  364. package/dist/sheets/lib/spreadsheet.d.ts.map +1 -0
  365. package/dist/sheets/lib/spreadsheet.js +42 -0
  366. package/dist/sheets/lib/spreadsheet.js.map +1 -0
  367. package/dist/sheets/lib/values.d.ts +13 -0
  368. package/dist/sheets/lib/values.d.ts.map +1 -0
  369. package/dist/sheets/lib/values.js +26 -0
  370. package/dist/sheets/lib/values.js.map +1 -0
  371. package/dist/sheets/methods/append_values/handler.d.ts +5 -0
  372. package/dist/sheets/methods/append_values/handler.d.ts.map +1 -0
  373. package/dist/sheets/methods/append_values/handler.js +23 -0
  374. package/dist/sheets/methods/append_values/handler.js.map +1 -0
  375. package/dist/sheets/methods/append_values/index.d.ts +52 -0
  376. package/dist/sheets/methods/append_values/index.d.ts.map +1 -0
  377. package/dist/sheets/methods/append_values/index.js +21 -0
  378. package/dist/sheets/methods/append_values/index.js.map +1 -0
  379. package/dist/sheets/methods/append_values/schema.d.ts +51 -0
  380. package/dist/sheets/methods/append_values/schema.d.ts.map +1 -0
  381. package/dist/sheets/methods/append_values/schema.js +40 -0
  382. package/dist/sheets/methods/append_values/schema.js.map +1 -0
  383. package/dist/sheets/methods/batch_clear_values/handler.d.ts +5 -0
  384. package/dist/sheets/methods/batch_clear_values/handler.d.ts.map +1 -0
  385. package/dist/sheets/methods/batch_clear_values/handler.js +11 -0
  386. package/dist/sheets/methods/batch_clear_values/handler.js.map +1 -0
  387. package/dist/sheets/methods/batch_clear_values/index.d.ts +14 -0
  388. package/dist/sheets/methods/batch_clear_values/index.d.ts.map +1 -0
  389. package/dist/sheets/methods/batch_clear_values/index.js +21 -0
  390. package/dist/sheets/methods/batch_clear_values/index.js.map +1 -0
  391. package/dist/sheets/methods/batch_clear_values/schema.d.ts +13 -0
  392. package/dist/sheets/methods/batch_clear_values/schema.d.ts.map +1 -0
  393. package/dist/sheets/methods/batch_clear_values/schema.js +19 -0
  394. package/dist/sheets/methods/batch_clear_values/schema.js.map +1 -0
  395. package/dist/sheets/methods/batch_clear_values_by_data_filter/handler.d.ts +5 -0
  396. package/dist/sheets/methods/batch_clear_values_by_data_filter/handler.d.ts.map +1 -0
  397. package/dist/sheets/methods/batch_clear_values_by_data_filter/handler.js +12 -0
  398. package/dist/sheets/methods/batch_clear_values_by_data_filter/handler.js.map +1 -0
  399. package/dist/sheets/methods/batch_clear_values_by_data_filter/index.d.ts +61 -0
  400. package/dist/sheets/methods/batch_clear_values_by_data_filter/index.d.ts.map +1 -0
  401. package/dist/sheets/methods/batch_clear_values_by_data_filter/index.js +21 -0
  402. package/dist/sheets/methods/batch_clear_values_by_data_filter/index.js.map +1 -0
  403. package/dist/sheets/methods/batch_clear_values_by_data_filter/schema.d.ts +60 -0
  404. package/dist/sheets/methods/batch_clear_values_by_data_filter/schema.d.ts.map +1 -0
  405. package/dist/sheets/methods/batch_clear_values_by_data_filter/schema.js +20 -0
  406. package/dist/sheets/methods/batch_clear_values_by_data_filter/schema.js.map +1 -0
  407. package/dist/sheets/methods/batch_get_values/handler.d.ts +5 -0
  408. package/dist/sheets/methods/batch_get_values/handler.d.ts.map +1 -0
  409. package/dist/sheets/methods/batch_get_values/handler.js +16 -0
  410. package/dist/sheets/methods/batch_get_values/handler.js.map +1 -0
  411. package/dist/sheets/methods/batch_get_values/index.d.ts +29 -0
  412. package/dist/sheets/methods/batch_get_values/index.d.ts.map +1 -0
  413. package/dist/sheets/methods/batch_get_values/index.js +16 -0
  414. package/dist/sheets/methods/batch_get_values/index.js.map +1 -0
  415. package/dist/sheets/methods/batch_get_values/schema.d.ts +33 -0
  416. package/dist/sheets/methods/batch_get_values/schema.d.ts.map +1 -0
  417. package/dist/sheets/methods/batch_get_values/schema.js +25 -0
  418. package/dist/sheets/methods/batch_get_values/schema.js.map +1 -0
  419. package/dist/sheets/methods/batch_get_values_by_data_filter/handler.d.ts +5 -0
  420. package/dist/sheets/methods/batch_get_values_by_data_filter/handler.d.ts.map +1 -0
  421. package/dist/sheets/methods/batch_get_values_by_data_filter/handler.js +22 -0
  422. package/dist/sheets/methods/batch_get_values_by_data_filter/handler.js.map +1 -0
  423. package/dist/sheets/methods/batch_get_values_by_data_filter/index.d.ts +126 -0
  424. package/dist/sheets/methods/batch_get_values_by_data_filter/index.d.ts.map +1 -0
  425. package/dist/sheets/methods/batch_get_values_by_data_filter/index.js +16 -0
  426. package/dist/sheets/methods/batch_get_values_by_data_filter/index.js.map +1 -0
  427. package/dist/sheets/methods/batch_get_values_by_data_filter/schema.d.ts +130 -0
  428. package/dist/sheets/methods/batch_get_values_by_data_filter/schema.d.ts.map +1 -0
  429. package/dist/sheets/methods/batch_get_values_by_data_filter/schema.js +26 -0
  430. package/dist/sheets/methods/batch_get_values_by_data_filter/schema.js.map +1 -0
  431. package/dist/sheets/methods/batch_update_values/handler.d.ts +5 -0
  432. package/dist/sheets/methods/batch_update_values/handler.d.ts.map +1 -0
  433. package/dist/sheets/methods/batch_update_values/handler.js +23 -0
  434. package/dist/sheets/methods/batch_update_values/handler.js.map +1 -0
  435. package/dist/sheets/methods/batch_update_values/index.d.ts +48 -0
  436. package/dist/sheets/methods/batch_update_values/index.d.ts.map +1 -0
  437. package/dist/sheets/methods/batch_update_values/index.js +16 -0
  438. package/dist/sheets/methods/batch_update_values/index.js.map +1 -0
  439. package/dist/sheets/methods/batch_update_values/schema.d.ts +52 -0
  440. package/dist/sheets/methods/batch_update_values/schema.d.ts.map +1 -0
  441. package/dist/sheets/methods/batch_update_values/schema.js +46 -0
  442. package/dist/sheets/methods/batch_update_values/schema.js.map +1 -0
  443. package/dist/sheets/methods/batch_update_values_by_data_filter/handler.d.ts +5 -0
  444. package/dist/sheets/methods/batch_update_values_by_data_filter/handler.d.ts.map +1 -0
  445. package/dist/sheets/methods/batch_update_values_by_data_filter/handler.js +35 -0
  446. package/dist/sheets/methods/batch_update_values_by_data_filter/handler.js.map +1 -0
  447. package/dist/sheets/methods/batch_update_values_by_data_filter/index.d.ts +142 -0
  448. package/dist/sheets/methods/batch_update_values_by_data_filter/index.d.ts.map +1 -0
  449. package/dist/sheets/methods/batch_update_values_by_data_filter/index.js +16 -0
  450. package/dist/sheets/methods/batch_update_values_by_data_filter/index.js.map +1 -0
  451. package/dist/sheets/methods/batch_update_values_by_data_filter/schema.d.ts +146 -0
  452. package/dist/sheets/methods/batch_update_values_by_data_filter/schema.d.ts.map +1 -0
  453. package/dist/sheets/methods/batch_update_values_by_data_filter/schema.js +46 -0
  454. package/dist/sheets/methods/batch_update_values_by_data_filter/schema.js.map +1 -0
  455. package/dist/sheets/methods/clear_values/handler.d.ts +5 -0
  456. package/dist/sheets/methods/clear_values/handler.d.ts.map +1 -0
  457. package/dist/sheets/methods/clear_values/handler.js +12 -0
  458. package/dist/sheets/methods/clear_values/handler.js.map +1 -0
  459. package/dist/sheets/methods/clear_values/index.d.ts +14 -0
  460. package/dist/sheets/methods/clear_values/index.d.ts.map +1 -0
  461. package/dist/sheets/methods/clear_values/index.js +21 -0
  462. package/dist/sheets/methods/clear_values/index.js.map +1 -0
  463. package/dist/sheets/methods/clear_values/schema.d.ts +13 -0
  464. package/dist/sheets/methods/clear_values/schema.d.ts.map +1 -0
  465. package/dist/sheets/methods/clear_values/schema.js +16 -0
  466. package/dist/sheets/methods/clear_values/schema.js.map +1 -0
  467. package/dist/sheets/methods/copy_sheet/handler.d.ts +5 -0
  468. package/dist/sheets/methods/copy_sheet/handler.d.ts.map +1 -0
  469. package/dist/sheets/methods/copy_sheet/handler.js +10 -0
  470. package/dist/sheets/methods/copy_sheet/handler.js.map +1 -0
  471. package/dist/sheets/methods/copy_sheet/index.d.ts +28 -0
  472. package/dist/sheets/methods/copy_sheet/index.d.ts.map +1 -0
  473. package/dist/sheets/methods/copy_sheet/index.js +21 -0
  474. package/dist/sheets/methods/copy_sheet/index.js.map +1 -0
  475. package/dist/sheets/methods/copy_sheet/schema.d.ts +27 -0
  476. package/dist/sheets/methods/copy_sheet/schema.d.ts.map +1 -0
  477. package/dist/sheets/methods/copy_sheet/schema.js +14 -0
  478. package/dist/sheets/methods/copy_sheet/schema.js.map +1 -0
  479. package/dist/sheets/methods/create_spreadsheet/handler.d.ts +5 -0
  480. package/dist/sheets/methods/create_spreadsheet/handler.d.ts.map +1 -0
  481. package/dist/sheets/methods/create_spreadsheet/handler.js +16 -0
  482. package/dist/sheets/methods/create_spreadsheet/handler.js.map +1 -0
  483. package/dist/sheets/methods/create_spreadsheet/index.d.ts +46 -0
  484. package/dist/sheets/methods/create_spreadsheet/index.d.ts.map +1 -0
  485. package/dist/sheets/methods/create_spreadsheet/index.js +22 -0
  486. package/dist/sheets/methods/create_spreadsheet/index.js.map +1 -0
  487. package/dist/sheets/methods/create_spreadsheet/schema.d.ts +50 -0
  488. package/dist/sheets/methods/create_spreadsheet/schema.d.ts.map +1 -0
  489. package/dist/sheets/methods/create_spreadsheet/schema.js +28 -0
  490. package/dist/sheets/methods/create_spreadsheet/schema.js.map +1 -0
  491. package/dist/sheets/methods/get_developer_metadata/handler.d.ts +5 -0
  492. package/dist/sheets/methods/get_developer_metadata/handler.d.ts.map +1 -0
  493. package/dist/sheets/methods/get_developer_metadata/handler.js +9 -0
  494. package/dist/sheets/methods/get_developer_metadata/handler.js.map +1 -0
  495. package/dist/sheets/methods/get_developer_metadata/index.d.ts +33 -0
  496. package/dist/sheets/methods/get_developer_metadata/index.d.ts.map +1 -0
  497. package/dist/sheets/methods/get_developer_metadata/index.js +16 -0
  498. package/dist/sheets/methods/get_developer_metadata/index.js.map +1 -0
  499. package/dist/sheets/methods/get_developer_metadata/schema.d.ts +37 -0
  500. package/dist/sheets/methods/get_developer_metadata/schema.d.ts.map +1 -0
  501. package/dist/sheets/methods/get_developer_metadata/schema.js +11 -0
  502. package/dist/sheets/methods/get_developer_metadata/schema.js.map +1 -0
  503. package/dist/sheets/methods/get_spreadsheet/handler.d.ts +5 -0
  504. package/dist/sheets/methods/get_spreadsheet/handler.d.ts.map +1 -0
  505. package/dist/sheets/methods/get_spreadsheet/handler.js +6 -0
  506. package/dist/sheets/methods/get_spreadsheet/handler.js.map +1 -0
  507. package/dist/sheets/methods/get_spreadsheet/index.d.ts +42 -0
  508. package/dist/sheets/methods/get_spreadsheet/index.d.ts.map +1 -0
  509. package/dist/sheets/methods/get_spreadsheet/index.js +23 -0
  510. package/dist/sheets/methods/get_spreadsheet/index.js.map +1 -0
  511. package/dist/sheets/methods/get_spreadsheet/schema.d.ts +39 -0
  512. package/dist/sheets/methods/get_spreadsheet/schema.d.ts.map +1 -0
  513. package/dist/sheets/methods/get_spreadsheet/schema.js +10 -0
  514. package/dist/sheets/methods/get_spreadsheet/schema.js.map +1 -0
  515. package/dist/sheets/methods/get_values/handler.d.ts +5 -0
  516. package/dist/sheets/methods/get_values/handler.d.ts.map +1 -0
  517. package/dist/sheets/methods/get_values/handler.js +13 -0
  518. package/dist/sheets/methods/get_values/handler.js.map +1 -0
  519. package/dist/sheets/methods/get_values/index.d.ts +26 -0
  520. package/dist/sheets/methods/get_values/index.d.ts.map +1 -0
  521. package/dist/sheets/methods/get_values/index.js +16 -0
  522. package/dist/sheets/methods/get_values/index.js.map +1 -0
  523. package/dist/sheets/methods/get_values/schema.d.ts +30 -0
  524. package/dist/sheets/methods/get_values/schema.d.ts.map +1 -0
  525. package/dist/sheets/methods/get_values/schema.js +19 -0
  526. package/dist/sheets/methods/get_values/schema.js.map +1 -0
  527. package/dist/sheets/methods/registry.d.ts +775 -0
  528. package/dist/sheets/methods/registry.d.ts.map +1 -0
  529. package/dist/sheets/methods/registry.js +45 -0
  530. package/dist/sheets/methods/registry.js.map +1 -0
  531. package/dist/sheets/methods/search_developer_metadata/handler.d.ts +5 -0
  532. package/dist/sheets/methods/search_developer_metadata/handler.d.ts.map +1 -0
  533. package/dist/sheets/methods/search_developer_metadata/handler.js +17 -0
  534. package/dist/sheets/methods/search_developer_metadata/handler.js.map +1 -0
  535. package/dist/sheets/methods/search_developer_metadata/index.d.ts +132 -0
  536. package/dist/sheets/methods/search_developer_metadata/index.d.ts.map +1 -0
  537. package/dist/sheets/methods/search_developer_metadata/index.js +16 -0
  538. package/dist/sheets/methods/search_developer_metadata/index.js.map +1 -0
  539. package/dist/sheets/methods/search_developer_metadata/schema.d.ts +136 -0
  540. package/dist/sheets/methods/search_developer_metadata/schema.d.ts.map +1 -0
  541. package/dist/sheets/methods/search_developer_metadata/schema.js +25 -0
  542. package/dist/sheets/methods/search_developer_metadata/schema.js.map +1 -0
  543. package/dist/sheets/methods/update_values/handler.d.ts +5 -0
  544. package/dist/sheets/methods/update_values/handler.d.ts.map +1 -0
  545. package/dist/sheets/methods/update_values/handler.js +18 -0
  546. package/dist/sheets/methods/update_values/handler.js.map +1 -0
  547. package/dist/sheets/methods/update_values/index.d.ts +39 -0
  548. package/dist/sheets/methods/update_values/index.d.ts.map +1 -0
  549. package/dist/sheets/methods/update_values/index.js +16 -0
  550. package/dist/sheets/methods/update_values/index.js.map +1 -0
  551. package/dist/sheets/methods/update_values/schema.d.ts +43 -0
  552. package/dist/sheets/methods/update_values/schema.d.ts.map +1 -0
  553. package/dist/sheets/methods/update_values/schema.js +29 -0
  554. package/dist/sheets/methods/update_values/schema.js.map +1 -0
  555. package/dist/sheets/operation.d.ts +12 -0
  556. package/dist/sheets/operation.d.ts.map +1 -0
  557. package/dist/sheets/operation.js +10 -0
  558. package/dist/sheets/operation.js.map +1 -0
  559. package/package.json +9 -4
package/README.md CHANGED
@@ -18,24 +18,24 @@
18
18
  </p>
19
19
 
20
20
  <p align="center">
21
- <img src=".github/assets/gmail.svg" height="44" alt="Gmail" title="Gmail (shipping)" />
21
+ <img src=".github/assets/gmail.svg" height="44" alt="Gmail" title="Gmail" />
22
22
  &nbsp;&nbsp;&nbsp;
23
- <img src=".github/assets/calendar.svg" height="44" alt="Calendar" title="Calendar (shipping)" />
23
+ <img src=".github/assets/calendar.svg" height="44" alt="Calendar" title="Calendar" />
24
24
  &nbsp;&nbsp;&nbsp;
25
- <img src=".github/assets/drive.svg" height="44" alt="Drive (planned)" title="Drive (planned)" />
25
+ <img src=".github/assets/sheets.svg" height="44" alt="Sheets" title="Sheets" />
26
26
  &nbsp;&nbsp;&nbsp;
27
- <img src=".github/assets/sheets.svg" height="44" alt="Sheets (planned)" title="Sheets (planned)" />
27
+ <img src=".github/assets/drive.svg" height="44" alt="Drive (planned)" title="Drive (planned)" />
28
28
  &nbsp;&nbsp;&nbsp;
29
29
  <img src=".github/assets/docs.svg" height="44" alt="Docs (planned)" title="Docs (planned)" />
30
30
  </p>
31
31
 
32
32
  <p align="center">
33
- <sub><strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33 operations</a>) and <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25 operations</a>) ship today; Drive, Sheets, and Docs are on the way (shown dimmed).</sub>
33
+ <sub><strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33 operations</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25 operations</a>), and <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">15 operations</a>) ship today; Drive and Docs are on the way (shown dimmed).</sub>
34
34
  </p>
35
35
 
36
36
  ## What it does
37
37
 
38
- Point an AI agent at your Google accounts and let it do the work: triage and send mail, run your calendars today; manage files and edit documents as those services land. The end goal is an agent that operates your accounts and hands you results.
38
+ Point an AI agent at your Google accounts and let it do the work: triage and send mail, run your calendars, and read and write your spreadsheets today; manage files and edit documents as those services land. The end goal is an agent that operates your accounts and hands you results.
39
39
 
40
40
  The design has two internal concepts and nothing else:
41
41
 
@@ -44,7 +44,7 @@ The design has two internal concepts and nothing else:
44
44
 
45
45
  That is the whole surface. Read one operation folder and you understand all of them.
46
46
 
47
- - **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) and Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17); the split is explained in [MCP, and then some](#mcp-and-then-some).
47
+ - **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 [25](./src/calendar/CAPABILITIES.md) (8 plus 17), and Sheets with [15](./src/sheets/CAPABILITIES.md) (Google publishes no Sheets MCP toolset, so all 15 are REST-sourced); the split is explained in [MCP, and then some](#mcp-and-then-some).
48
48
  - **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.
49
49
 
50
50
  | Google's reference page | This repo's folder |
@@ -56,7 +56,7 @@ That is the whole surface. Read one operation folder and you understand all of t
56
56
  - **Siloed by design.** Each service runs as its own independent server in its own lane; the orchestrating agent is the single thing that coordinates them.
57
57
  - **Strict by construction.** Input and output schemas are validated on every call, vocabulary is sourced from Google's own docs, types are strict (NodeNext ESM, `verbatimModuleSyntax`, `noUncheckedIndexedAccess`), and coverage is pinned at 100% in `bunfig.toml`.
58
58
 
59
- One package, one version: everything compiles into `google-mcp-suite`, which ships a bin per service (`google-mcp-gmail` and `google-mcp-calendar` today) plus the `google-mcp-doctor` setup CLI.
59
+ One package, one version: everything compiles into `google-mcp-suite`, which ships a bin per service (`google-mcp-gmail`, `google-mcp-calendar`, and `google-mcp-sheets` today) plus the `google-mcp-doctor` setup CLI.
60
60
 
61
61
  ## MCP, and then some
62
62
 
@@ -65,7 +65,7 @@ This is an MCP server, and deliberately more than one. Google publishes an MCP t
65
65
  - **`tools/`** mirrors Google's **MCP toolset** reference, verbatim.
66
66
  - **`methods/`** covers the broader **REST** reference, the operations the MCP toolset omits.
67
67
 
68
- 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. 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).
68
+ 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 is the limit case: Google publishes no Sheets MCP toolset at all, so its server is methods-only, [15 operations](./src/sheets/CAPABILITIES.md) 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).
69
69
 
70
70
  ## Quickstart
71
71
 
@@ -99,6 +99,10 @@ Then point your MCP client at the servers, one instance per service per account:
99
99
  "calendar-work": {
100
100
  "command": "google-mcp-calendar",
101
101
  "env": { "GOOGLE_MCP_ACCOUNT": "work@example.com" }
102
+ },
103
+ "sheets-work": {
104
+ "command": "google-mcp-sheets",
105
+ "env": { "GOOGLE_MCP_ACCOUNT": "work@example.com" }
102
106
  }
103
107
  }
104
108
  }
@@ -106,7 +110,7 @@ Then point your MCP client at the servers, one instance per service per account:
106
110
 
107
111
  Then ask your agent for something no single-account tool can do:
108
112
 
109
- > Find 30 free minutes next week that works across my work and personal calendars, book it on the work calendar with a Meet link, and email the invite summary to my personal address.
113
+ > Find a free 30-minute window next week that works across my work and personal calendars, book it on the work calendar with a Meet link, email the invite summary to my personal address, and log the booking in my scheduling spreadsheet.
110
114
 
111
115
  ## Layout
112
116
 
@@ -117,6 +121,7 @@ src/
117
121
  doctor/ # google-mcp-doctor: provisioning + auth-health CLI
118
122
  gmail/ # the Gmail server (reference/canary); new services mirror its shape
119
123
  calendar/ # the Calendar server; same shape
124
+ sheets/ # the Sheets server; same shape, methods-only (no Google MCP toolset)
120
125
  ```
121
126
 
122
127
  One package, one version. `auth`, `lib`, `doctor`, and each service are folders in one `src/` and compile to a single published package.
@@ -136,7 +141,7 @@ One package, one version. `auth`, `lib`, `doctor`, and each service are folders
136
141
 
137
142
  Authorization is a one-time, per-account browser consent flow.
138
143
 
139
- 1. Create a Google Cloud project, enable the APIs you need (Gmail, Calendar, ...), and create an **OAuth client** (Desktop app). Download the client secret JSON.
144
+ 1. Create a Google Cloud project, enable the APIs you need (Gmail, Calendar, Sheets, ...), and create an **OAuth client** (Desktop app). Download the client secret JSON.
140
145
  2. Place the client secret JSON at `~/.google-mcp/client_secret.json` (override knobs in [src/auth's README](./src/auth/README.md)).
141
146
  3. Authorize each account once; this opens a browser consent flow and stores that account's token.
142
147
  4. Run a service with `GOOGLE_MCP_ACCOUNT=<account>` to act as that account.
@@ -162,11 +167,11 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full task list, [AGENTS.md](./A
162
167
  |---|---|---|
163
168
  | **Gmail** | ✅ Implemented | [33 operations](./src/gmail/CAPABILITIES.md): threads, messages, drafts, labels, filters, attachments |
164
169
  | **Calendar** | ✅ Implemented | [25 operations](./src/calendar/CAPABILITIES.md): events, calendars, free/busy, and meeting-time suggestions |
170
+ | **Sheets** | ✅ Implemented | [15 operations](./src/sheets/CAPABILITIES.md): spreadsheets, values, batch and data-filter reads/writes, developer metadata |
165
171
  | Drive | 🔜 Planned | files, folders, sharing, revisions |
166
- | Sheets | 🔜 Planned | spreadsheets, values, formatting |
167
172
  | Docs | 🔜 Planned | documents, structured content |
168
173
 
169
- Gmail is the reference (canary) implementation; Calendar is its first replication; each new service mirrors the same shape.
174
+ Gmail is the reference (canary) implementation; Calendar is its first replication; Sheets is the first methods-only service (Google publishes no Sheets MCP toolset); each new service mirrors the same shape.
170
175
 
171
176
  ---
172
177
 
@@ -25,10 +25,10 @@ export declare const CalendarListEntry: z.ZodObject<{
25
25
  selected: z.ZodOptional<z.ZodBoolean>;
26
26
  primary: z.ZodOptional<z.ZodBoolean>;
27
27
  defaultReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
- method: z.ZodEnum<{
28
+ method: z.ZodOptional<z.ZodEnum<{
29
29
  email: "email";
30
30
  popup: "popup";
31
- }>;
31
+ }>>;
32
32
  minutes: z.ZodNumber;
33
33
  }, z.core.$strip>>>;
34
34
  }, z.core.$strip>;
@@ -65,10 +65,10 @@ export declare const Event: z.ZodObject<{
65
65
  conferenceUrl: z.ZodOptional<z.ZodString>;
66
66
  colorId: z.ZodOptional<z.ZodString>;
67
67
  overrideReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
- method: z.ZodEnum<{
68
+ method: z.ZodOptional<z.ZodEnum<{
69
69
  email: "email";
70
70
  popup: "popup";
71
- }>;
71
+ }>>;
72
72
  minutes: z.ZodNumber;
73
73
  }, z.core.$strip>>>;
74
74
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"EventDateTime.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/EventDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa;;;;iBAqBtB,CAAC;AAEL,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"EventDateTime.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/EventDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa;;;;iBA0BvB,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -27,5 +27,8 @@ export const EventDateTime = z
27
27
  })
28
28
  .refine((value) => (value.date === undefined) !== (value.dateTime === undefined), {
29
29
  message: 'Exactly one of date or dateTime must be set.',
30
- });
30
+ })
31
+ // The refinement does not survive into the emitted JSON Schema, so the rule is
32
+ // restated as the object's description, where an MCP client can read it.
33
+ .describe('The start or end of an event. Exactly one of date (all-day) or dateTime (timed) must be set; timeZone is required for recurring events.');
31
34
  //# sourceMappingURL=EventDateTime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventDateTime.js","sourceRoot":"","sources":["../../../src/calendar/entities/EventDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oEAAoE,CAAC;IACjF,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,gKAAgK,CACjK;IACH,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0JAA0J,CAC3J;CACJ,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,EAAE;IAChF,OAAO,EAAE,8CAA8C;CACxD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The start or end of an event: either an all-day calendar date or a precise\n * timestamp, plus an optional time zone.\n *\n * The shape is a tri-state with an XOR at its core: exactly one of `date` or\n * `dateTime` is set (a zod refinement enforces this). `timeZone` is optional\n * for single events and required on recurring events, where it specifies the\n * zone in which the recurrence is expanded.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/events-calendars\n */\nexport const EventDateTime = z\n .object({\n date: z\n .string()\n .optional()\n .describe('The date, in the format \"yyyy-mm-dd\", if this is an all-day event.'),\n dateTime: z\n .string()\n .optional()\n .describe(\n 'The time, as a combined date-time value formatted according to RFC3339. A time zone offset is required unless a time zone is explicitly specified in timeZone.',\n ),\n timeZone: z\n .string()\n .optional()\n .describe(\n 'The time zone in which the time is specified, formatted as an IANA Time Zone Database name (for example \"Europe/Zurich\"). Required for recurring events.',\n ),\n })\n .refine((value) => (value.date === undefined) !== (value.dateTime === undefined), {\n message: 'Exactly one of date or dateTime must be set.',\n });\n\nexport type EventDateTime = z.infer<typeof EventDateTime>;\n"]}
1
+ {"version":3,"file":"EventDateTime.js","sourceRoot":"","sources":["../../../src/calendar/entities/EventDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oEAAoE,CAAC;IACjF,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,gKAAgK,CACjK;IACH,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0JAA0J,CAC3J;CACJ,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,EAAE;IAChF,OAAO,EAAE,8CAA8C;CACxD,CAAC;IACF,+EAA+E;IAC/E,yEAAyE;KACxE,QAAQ,CACP,yIAAyI,CAC1I,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The start or end of an event: either an all-day calendar date or a precise\n * timestamp, plus an optional time zone.\n *\n * The shape is a tri-state with an XOR at its core: exactly one of `date` or\n * `dateTime` is set (a zod refinement enforces this). `timeZone` is optional\n * for single events and required on recurring events, where it specifies the\n * zone in which the recurrence is expanded.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/events-calendars\n */\nexport const EventDateTime = z\n .object({\n date: z\n .string()\n .optional()\n .describe('The date, in the format \"yyyy-mm-dd\", if this is an all-day event.'),\n dateTime: z\n .string()\n .optional()\n .describe(\n 'The time, as a combined date-time value formatted according to RFC3339. A time zone offset is required unless a time zone is explicitly specified in timeZone.',\n ),\n timeZone: z\n .string()\n .optional()\n .describe(\n 'The time zone in which the time is specified, formatted as an IANA Time Zone Database name (for example \"Europe/Zurich\"). Required for recurring events.',\n ),\n })\n .refine((value) => (value.date === undefined) !== (value.dateTime === undefined), {\n message: 'Exactly one of date or dateTime must be set.',\n })\n // The refinement does not survive into the emitted JSON Schema, so the rule is\n // restated as the object's description, where an MCP client can read it.\n .describe(\n 'The start or end of an event. Exactly one of date (all-day) or dateTime (timed) must be set; timeZone is required for recurring events.',\n );\n\nexport type EventDateTime = z.infer<typeof EventDateTime>;\n"]}
@@ -9,10 +9,10 @@ import { z } from 'zod';
9
9
  * @see https://developers.google.com/workspace/calendar/api/concepts/events-calendars
10
10
  */
11
11
  export declare const Reminder: z.ZodObject<{
12
- method: z.ZodEnum<{
12
+ method: z.ZodOptional<z.ZodEnum<{
13
13
  email: "email";
14
14
  popup: "popup";
15
- }>;
15
+ }>>;
16
16
  minutes: z.ZodNumber;
17
17
  }, z.core.$strip>;
18
18
  export type Reminder = z.infer<typeof Reminder>;
@@ -1 +1 @@
1
- {"version":3,"file":"Reminder.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/Reminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;;;;;;iBAQnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"Reminder.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/Reminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;;;;;;iBAWnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -11,7 +11,8 @@ import { z } from 'zod';
11
11
  export const Reminder = z.object({
12
12
  method: z
13
13
  .enum(['email', 'popup'])
14
- .describe('The delivery method of the reminder: email or a UI popup.'),
14
+ .optional()
15
+ .describe('The delivery method of the reminder: email or a UI popup. Required when writing a reminder; absent on read only if Google reports a method this server does not know.'),
15
16
  minutes: z
16
17
  .number()
17
18
  .int()
@@ -1 +1 @@
1
- {"version":3,"file":"Reminder.js","sourceRoot":"","sources":["../../../src/calendar/entities/Reminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;SACxB,QAAQ,CAAC,2DAA2D,CAAC;IACxE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CAAC,iFAAiF,CAAC;CAC/F,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A reminder on an event for the authenticated user: how and when to be\n * notified before the event starts.\n *\n * Field docs use `.describe()` so they reach the wire JSON Schema an MCP client\n * reads.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/events-calendars\n */\nexport const Reminder = z.object({\n method: z\n .enum(['email', 'popup'])\n .describe('The delivery method of the reminder: email or a UI popup.'),\n minutes: z\n .number()\n .int()\n .describe('Number of minutes before the event start that the reminder should be delivered.'),\n});\n\nexport type Reminder = z.infer<typeof Reminder>;\n"]}
1
+ {"version":3,"file":"Reminder.js","sourceRoot":"","sources":["../../../src/calendar/entities/Reminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;SACxB,QAAQ,EAAE;SACV,QAAQ,CACP,uKAAuK,CACxK;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CAAC,iFAAiF,CAAC;CAC/F,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A reminder on an event for the authenticated user: how and when to be\n * notified before the event starts.\n *\n * Field docs use `.describe()` so they reach the wire JSON Schema an MCP client\n * reads.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/events-calendars\n */\nexport const Reminder = z.object({\n method: z\n .enum(['email', 'popup'])\n .optional()\n .describe(\n 'The delivery method of the reminder: email or a UI popup. Required when writing a reminder; absent on read only if Google reports a method this server does not know.',\n ),\n minutes: z\n .number()\n .int()\n .describe('Number of minutes before the event start that the reminder should be delivered.'),\n});\n\nexport type Reminder = z.infer<typeof Reminder>;\n"]}
@@ -1,7 +1,7 @@
1
1
  import type { calendar_v3 } from '@googleapis/calendar';
2
2
  import type { Event } from '../entities/Event.js';
3
3
  import type { Reminder } from '../entities/Reminder.js';
4
- /** Project a REST reminder onto the Reminder shape (an absent method defaults to popup). */
4
+ /** Project a REST reminder onto the Reminder shape; unknown delivery methods drop rather than masquerade as popups. */
5
5
  export declare function projectReminder(reminder: calendar_v3.Schema$EventReminder): Reminder;
6
6
  /**
7
7
  * Project a raw REST event onto the documented Event shape: collapse
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/calendar/lib/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AA+BxD,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,CAAC,oBAAoB,GAAG,QAAQ,CAKpF;AAaD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,GAAG,KAAK,CA6BlE"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/calendar/lib/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AA+BxD,uHAAuH;AACvH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,CAAC,oBAAoB,GAAG,QAAQ,CAMpF;AAaD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,GAAG,KAAK,CA6BlE"}
@@ -22,10 +22,10 @@ function projectAttendee(attendee) {
22
22
  additionalGuests: attendee.additionalGuests ?? undefined,
23
23
  };
24
24
  }
25
- /** Project a REST reminder onto the Reminder shape (an absent method defaults to popup). */
25
+ /** Project a REST reminder onto the Reminder shape; unknown delivery methods drop rather than masquerade as popups. */
26
26
  export function projectReminder(reminder) {
27
27
  return {
28
- method: reminder.method === 'email' ? 'email' : 'popup',
28
+ method: reminder.method === 'email' || reminder.method === 'popup' ? reminder.method : undefined,
29
29
  minutes: reminder.minutes ?? 0,
30
30
  };
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/calendar/lib/event.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAKrD,sFAAsF;AACtF,SAAS,gBAAgB,CAAC,SAAwB;IAChD,OAAO;QACL,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,IAAI,EAAE,SAAS,CAAC,IAAI;KACrB,CAAC;AACJ,CAAC;AAED,0FAA0F;AAC1F,SAAS,eAAe,CAAC,QAA0C;IACjE,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE,IAAI,SAAS;QAC5B,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,EAAE;QAC3B,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,SAAS;QAC9C,SAAS,EAAE,QAAQ,CAAC,SAAS,IAAI,SAAS;QAC1C,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,SAAS;QAChC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,SAAS;QACxC,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,IAAI,SAAS;QAChD,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,SAAS;QACpD,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,SAAS;QACtC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,IAAI,SAAS;KACzD,CAAC;AACJ,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,eAAe,CAAC,QAA0C;IACxE,OAAO;QACL,MAAM,EAAE,QAAQ,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,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,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;QAC1D,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,SAAS;QACpD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACvC,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC9C,CAAC,CAAC,SAAS;QACb,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS;QAC5C,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS;QAC3E,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,SAAS;QACtC,aAAa,EAAE,aAAa,CAAC,IAAI,CAAC;QAClC,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,iBAAiB,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS;YAC1C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC;YAC/C,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { Attendee } from '../entities/Attendee.js';\nimport type { Event } from '../entities/Event.js';\nimport type { Principal } from '../entities/Principal.js';\nimport type { Reminder } from '../entities/Reminder.js';\nimport { projectEventDateTime } from './datetime.js';\n\n/** The REST shape of an event's creator and organizer (structurally identical). */\ntype RestPrincipal = NonNullable<calendar_v3.Schema$Event['creator']>;\n\n/** Project a REST event principal (creator or organizer) onto the Principal shape. */\nfunction projectPrincipal(principal: RestPrincipal): Principal {\n return {\n email: principal.email,\n displayName: principal.displayName,\n self: principal.self,\n };\n}\n\n/** Project a REST attendee onto the Attendee shape (`optional` -> `optionalAttendee`). */\nfunction projectAttendee(attendee: calendar_v3.Schema$EventAttendee): Attendee {\n return {\n id: attendee.id ?? undefined,\n email: attendee.email ?? '',\n displayName: attendee.displayName ?? undefined,\n organizer: attendee.organizer ?? undefined,\n self: attendee.self ?? undefined,\n resource: attendee.resource ?? undefined,\n optionalAttendee: attendee.optional ?? undefined,\n responseStatus: attendee.responseStatus ?? undefined,\n comment: attendee.comment ?? undefined,\n additionalGuests: attendee.additionalGuests ?? undefined,\n };\n}\n\n/** Project a REST reminder onto the Reminder shape (an absent method defaults to popup). */\nexport function projectReminder(reminder: calendar_v3.Schema$EventReminder): Reminder {\n return {\n method: reminder.method === 'email' ? 'email' : 'popup',\n minutes: reminder.minutes ?? 0,\n };\n}\n\n/**\n * The Google Meet link: the `conferenceData` video entry point's URI, falling\n * back to the legacy `hangoutLink` when the conference data carries none.\n */\nfunction conferenceUrl(event: calendar_v3.Schema$Event): Event['conferenceUrl'] {\n const video = event.conferenceData?.entryPoints?.find(\n (entryPoint) => entryPoint.entryPointType === 'video',\n );\n return video?.uri ?? event.hangoutLink ?? undefined;\n}\n\n/**\n * Project a raw REST event onto the documented Event shape: collapse\n * `conferenceData` to `conferenceUrl`, rename attendee `optional` to\n * `optionalAttendee`, surface `reminders.overrides` as `overrideReminders`,\n * and clean nulls to undefined.\n */\nexport function projectEvent(data: calendar_v3.Schema$Event): Event {\n return {\n id: data.id ?? '',\n status: data.status ?? undefined,\n htmlLink: data.htmlLink ?? undefined,\n created: data.created ?? undefined,\n updated: data.updated ?? undefined,\n summary: data.summary ?? undefined,\n description: data.description ?? undefined,\n location: data.location ?? undefined,\n creator: data.creator ? projectPrincipal(data.creator) : undefined,\n organizer: data.organizer ? projectPrincipal(data.organizer) : undefined,\n start: data.start ? projectEventDateTime(data.start) : undefined,\n end: data.end ? projectEventDateTime(data.end) : undefined,\n recurrence: data.recurrence ?? undefined,\n recurringEventId: data.recurringEventId ?? undefined,\n originalStartTime: data.originalStartTime\n ? projectEventDateTime(data.originalStartTime)\n : undefined,\n transparency: data.transparency ?? undefined,\n visibility: data.visibility ?? undefined,\n attendees: data.attendees ? data.attendees.map(projectAttendee) : undefined,\n eventType: data.eventType ?? undefined,\n conferenceUrl: conferenceUrl(data),\n colorId: data.colorId ?? undefined,\n overrideReminders: data.reminders?.overrides\n ? data.reminders.overrides.map(projectReminder)\n : undefined,\n };\n}\n"]}
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/calendar/lib/event.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAKrD,sFAAsF;AACtF,SAAS,gBAAgB,CAAC,SAAwB;IAChD,OAAO;QACL,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,IAAI,EAAE,SAAS,CAAC,IAAI;KACrB,CAAC;AACJ,CAAC;AAED,0FAA0F;AAC1F,SAAS,eAAe,CAAC,QAA0C;IACjE,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE,IAAI,SAAS;QAC5B,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,EAAE;QAC3B,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,SAAS;QAC9C,SAAS,EAAE,QAAQ,CAAC,SAAS,IAAI,SAAS;QAC1C,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,SAAS;QAChC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,SAAS;QACxC,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,IAAI,SAAS;QAChD,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,SAAS;QACpD,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,SAAS;QACtC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,IAAI,SAAS;KACzD,CAAC;AACJ,CAAC;AAED,uHAAuH;AACvH,MAAM,UAAU,eAAe,CAAC,QAA0C;IACxE,OAAO;QACL,MAAM,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CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;QAChE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;QAC1D,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,SAAS;QACpD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACvC,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC9C,CAAC,CAAC,SAAS;QACb,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS;QAC5C,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS;QAC3E,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,SAAS;QACtC,aAAa,EAAE,aAAa,CAAC,IAAI,CAAC;QAClC,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,iBAAiB,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS;YAC1C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC;YAC/C,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { Attendee } from '../entities/Attendee.js';\nimport type { Event } from '../entities/Event.js';\nimport type { Principal } from '../entities/Principal.js';\nimport type { Reminder } from '../entities/Reminder.js';\nimport { projectEventDateTime } from './datetime.js';\n\n/** The REST shape of an event's creator and organizer (structurally identical). */\ntype RestPrincipal = NonNullable<calendar_v3.Schema$Event['creator']>;\n\n/** Project a REST event principal (creator or organizer) onto the Principal shape. */\nfunction projectPrincipal(principal: RestPrincipal): Principal {\n return {\n email: principal.email,\n displayName: principal.displayName,\n self: principal.self,\n };\n}\n\n/** Project a REST attendee onto the Attendee shape (`optional` -> `optionalAttendee`). */\nfunction projectAttendee(attendee: calendar_v3.Schema$EventAttendee): Attendee {\n return {\n id: attendee.id ?? undefined,\n email: attendee.email ?? '',\n displayName: attendee.displayName ?? undefined,\n organizer: attendee.organizer ?? undefined,\n self: attendee.self ?? undefined,\n resource: attendee.resource ?? undefined,\n optionalAttendee: attendee.optional ?? undefined,\n responseStatus: attendee.responseStatus ?? undefined,\n comment: attendee.comment ?? undefined,\n additionalGuests: attendee.additionalGuests ?? undefined,\n };\n}\n\n/** Project a REST reminder onto the Reminder shape; unknown delivery methods drop rather than masquerade as popups. */\nexport function projectReminder(reminder: calendar_v3.Schema$EventReminder): Reminder {\n return {\n method:\n reminder.method === 'email' || reminder.method === 'popup' ? reminder.method : undefined,\n minutes: reminder.minutes ?? 0,\n };\n}\n\n/**\n * The Google Meet link: the `conferenceData` video entry point's URI, falling\n * back to the legacy `hangoutLink` when the conference data carries none.\n */\nfunction conferenceUrl(event: calendar_v3.Schema$Event): Event['conferenceUrl'] {\n const video = event.conferenceData?.entryPoints?.find(\n (entryPoint) => entryPoint.entryPointType === 'video',\n );\n return video?.uri ?? event.hangoutLink ?? undefined;\n}\n\n/**\n * Project a raw REST event onto the documented Event shape: collapse\n * `conferenceData` to `conferenceUrl`, rename attendee `optional` to\n * `optionalAttendee`, surface `reminders.overrides` as `overrideReminders`,\n * and clean nulls to undefined.\n */\nexport function projectEvent(data: calendar_v3.Schema$Event): Event {\n return {\n id: data.id ?? '',\n status: data.status ?? undefined,\n htmlLink: data.htmlLink ?? undefined,\n created: data.created ?? undefined,\n updated: data.updated ?? undefined,\n summary: data.summary ?? undefined,\n description: data.description ?? undefined,\n location: data.location ?? undefined,\n creator: data.creator ? projectPrincipal(data.creator) : undefined,\n organizer: data.organizer ? projectPrincipal(data.organizer) : undefined,\n start: data.start ? projectEventDateTime(data.start) : undefined,\n end: data.end ? projectEventDateTime(data.end) : undefined,\n recurrence: data.recurrence ?? undefined,\n recurringEventId: data.recurringEventId ?? undefined,\n originalStartTime: data.originalStartTime\n ? projectEventDateTime(data.originalStartTime)\n : undefined,\n transparency: data.transparency ?? undefined,\n visibility: data.visibility ?? undefined,\n attendees: data.attendees ? data.attendees.map(projectAttendee) : undefined,\n eventType: data.eventType ?? undefined,\n conferenceUrl: conferenceUrl(data),\n colorId: data.colorId ?? undefined,\n overrideReminders: data.reminders?.overrides\n ? data.reminders.overrides.map(projectReminder)\n : undefined,\n };\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { FreeBusyCalendar } from '../entities/FreeBusy.js';
3
+ /**
4
+ * Both consumers of `freebusy.query` (the `query_free_busy` method and the
5
+ * `suggest_time` tool) project the same REST expansion; this is the one copy.
6
+ */
7
+ /** The well-formed busy periods of one calendar's expansion; periods missing either bound drop. */
8
+ export declare function busyPeriods(entry: calendar_v3.Schema$FreeBusyCalendar): FreeBusyCalendar['busy'];
9
+ /** Project one calendar's free/busy expansion onto the FreeBusyCalendar shape. */
10
+ export declare function projectFreeBusyCalendar(entry: calendar_v3.Schema$FreeBusyCalendar): FreeBusyCalendar;
11
+ //# sourceMappingURL=freebusy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freebusy.d.ts","sourceRoot":"","sources":["../../../src/calendar/lib/freebusy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AAEH,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,uBAAuB,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAIhG;AAED,kFAAkF;AAClF,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,WAAW,CAAC,uBAAuB,GACzC,gBAAgB,CAUlB"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Both consumers of `freebusy.query` (the `query_free_busy` method and the
3
+ * `suggest_time` tool) project the same REST expansion; this is the one copy.
4
+ */
5
+ /** The well-formed busy periods of one calendar's expansion; periods missing either bound drop. */
6
+ export function busyPeriods(entry) {
7
+ return (entry.busy ?? []).flatMap((period) => period.start && period.end ? [{ start: period.start, end: period.end }] : []);
8
+ }
9
+ /** Project one calendar's free/busy expansion onto the FreeBusyCalendar shape. */
10
+ export function projectFreeBusyCalendar(entry) {
11
+ return {
12
+ busy: busyPeriods(entry),
13
+ errors: entry.errors
14
+ ? entry.errors.map((error) => ({
15
+ domain: error.domain ?? undefined,
16
+ reason: error.reason ?? undefined,
17
+ }))
18
+ : undefined,
19
+ };
20
+ }
21
+ //# sourceMappingURL=freebusy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freebusy.js","sourceRoot":"","sources":["../../../src/calendar/lib/freebusy.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,mGAAmG;AACnG,MAAM,UAAU,WAAW,CAAC,KAA0C;IACpE,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAC3C,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAC7E,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,uBAAuB,CACrC,KAA0C;IAE1C,OAAO;QACL,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC;QACxB,MAAM,EAAE,KAAK,CAAC,MAAM;YAClB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,SAAS;gBACjC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,SAAS;aAClC,CAAC,CAAC;YACL,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { FreeBusyCalendar } from '../entities/FreeBusy.js';\n\n/**\n * Both consumers of `freebusy.query` (the `query_free_busy` method and the\n * `suggest_time` tool) project the same REST expansion; this is the one copy.\n */\n\n/** The well-formed busy periods of one calendar's expansion; periods missing either bound drop. */\nexport function busyPeriods(entry: calendar_v3.Schema$FreeBusyCalendar): FreeBusyCalendar['busy'] {\n return (entry.busy ?? []).flatMap((period) =>\n period.start && period.end ? [{ start: period.start, end: period.end }] : [],\n );\n}\n\n/** Project one calendar's free/busy expansion onto the FreeBusyCalendar shape. */\nexport function projectFreeBusyCalendar(\n entry: calendar_v3.Schema$FreeBusyCalendar,\n): FreeBusyCalendar {\n return {\n busy: busyPeriods(entry),\n errors: entry.errors\n ? entry.errors.map((error) => ({\n domain: error.domain ?? undefined,\n reason: error.reason ?? undefined,\n }))\n : undefined,\n };\n}\n"]}
@@ -17,6 +17,8 @@ type Preferences = {
17
17
  excludeWeekends?: Optional<boolean>;
18
18
  pageSize?: Optional<number>;
19
19
  };
20
+ /** The HH:MM clock format the working-hour bounds require; also enforced by the suggest_time input schema. */
21
+ export declare const HOUR_OF_DAY: RegExp;
20
22
  /**
21
23
  * Compute free time slots within a window, given the busy periods of every
22
24
  * attendee calendar.
@@ -1 +1 @@
1
- {"version":3,"file":"suggest.d.ts","sourceRoot":"","sources":["../../../src/calendar/lib/suggest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,yEAAyE;AACzE,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CA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EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3B,eAAe,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC;AAQF,8GAA8G;AAC9G,eAAO,MAAM,WAAW,QAA8B,CAAC;AAqDvD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CACrC,GAAG,QAAQ,EAAE,CAqDb"}
@@ -1,7 +1,17 @@
1
1
  const MINUTE_MS = 60_000;
2
2
  const DAY_MINUTES = 24 * 60;
3
- /** Parse an HH:MM working-hour bound into minutes since local midnight. */
3
+ /** The HH:MM clock format the working-hour bounds require; also enforced by the suggest_time input schema. */
4
+ export const HOUR_OF_DAY = /^([01]\d|2[0-3]):[0-5]\d$/;
5
+ /**
6
+ * Parse an HH:MM working-hour bound into minutes since local midnight. Throws on
7
+ * any other shape: a malformed bound would otherwise parse to NaN, and every
8
+ * NaN comparison is false, so the working-hours constraint would be silently
9
+ * ignored rather than rejected.
10
+ */
4
11
  function toMinutesOfDay(hourMinute) {
12
+ if (!HOUR_OF_DAY.test(hourMinute)) {
13
+ throw new Error(`Invalid working-hour bound "${hourMinute}": expected HH:MM, e.g. 09:00.`);
14
+ }
5
15
  return Number(hourMinute.slice(0, 2)) * 60 + Number(hourMinute.slice(3, 5));
6
16
  }
7
17
  /** Sort busy periods chronologically and merge every overlapping or adjacent pair. */
@@ -1 +1 @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,SAAS,CAAC;YACnD,SAAS;QACX,CAAC;QACD,IAAI,YAAY,GAAG,cAAc,EAAE,CAAC;YAClC,MAAM,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,GAAG,SAAS,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,IAAI,YAAY,GAAG,KAAK,CAAC,eAAe,GAAG,cAAc,EAAE,CAAC;YAC1F,wEAAwE;YACxE,sCAAsC;YACtC,MAAM,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,GAAG,SAAS,CAAC;YACnD,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC;YACT,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE;YACzC,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC,WAAW,EAAE;YACpD,eAAe,EAAE,KAAK,CAAC,eAAe;SACvC,CAAC,CAAC;QACH,MAAM,IAAI,UAAU,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import type { Optional } from '../../lib/types.js';\n\n/** A busy interval on some attendee's calendar, as ISO 8601 instants. */\ntype BusyPeriod = { start: string; end: string };\n\n/** A suggested free slot, as ISO 8601 instants plus its length in minutes. */\ntype TimeSlot = { startTime: string; endTime: string; durationMinutes: number };\n\n/** Scheduling preferences narrowing where suggested slots may fall. */\ntype Preferences = {\n startHour?: Optional<string>;\n endHour?: Optional<string>;\n excludeWeekends?: Optional<boolean>;\n pageSize?: Optional<number>;\n};\n\n/** A busy interval in epoch milliseconds. */\ntype Interval = { start: number; end: number };\n\nconst MINUTE_MS = 60_000;\nconst DAY_MINUTES = 24 * 60;\n\n/** Parse an HH:MM working-hour bound into minutes since local midnight. */\nfunction toMinutesOfDay(hourMinute: string): number {\n return Number(hourMinute.slice(0, 2)) * 60 + Number(hourMinute.slice(3, 5));\n}\n\n/** Sort busy periods chronologically and merge every overlapping or adjacent pair. */\nfunction mergeBusy(busy: BusyPeriod[]): Interval[] {\n const sorted = busy\n .map((period) => ({ start: Date.parse(period.start), end: Date.parse(period.end) }))\n .sort((a, b) => a.start - b.start);\n const merged: Interval[] = [];\n for (const period of sorted) {\n const last = merged.at(-1);\n if (last !== undefined && period.start <= last.end) {\n last.end = Math.max(last.end, period.end);\n } else {\n merged.push(period);\n }\n }\n return merged;\n}\n\n/** The local weekday and minutes since local midnight of a UTC instant. */\nfunction localClock(\n formatter: Intl.DateTimeFormat,\n at: number,\n): { weekday: string; minutesOfDay: number } {\n let weekday = '';\n let minutesOfDay = 0;\n for (const part of formatter.formatToParts(new Date(at))) {\n if (part.type === 'weekday') {\n weekday = part.value;\n }\n if (part.type === 'hour') {\n minutesOfDay += Number(part.value) * 60;\n }\n if (part.type === 'minute') {\n minutesOfDay += Number(part.value);\n }\n }\n return { weekday, minutesOfDay };\n}\n\n/**\n * Compute free time slots within a window, given the busy periods of every\n * attendee calendar.\n *\n * The window is scanned chronologically: slots of exactly `durationMinutes`\n * are emitted back to back inside every gap that overlaps no busy period, and\n * the scan stops at `preferences.pageSize` slots (default 5). A slot belongs\n * to the local day of its start instant in `timeZone` (default UTC): when\n * `excludeWeekends` is set, a slot starting on a local Saturday or Sunday is\n * skipped, and the working-hour bounds (`startHour` and `endHour`, as HH:MM)\n * require the slot to start at or after `startHour` and, measured on the\n * start's local clock, to end at or before `endHour`. Date arithmetic is plain\n * UTC; the time zone matters only for those local determinations, so the scan\n * self-corrects across DST transitions by re-reading the local clock after\n * every jump.\n */\nexport function suggestSlots(input: {\n busy: BusyPeriod[];\n windowStart: string;\n windowEnd: string;\n durationMinutes: number;\n timeZone?: Optional<string>;\n preferences?: Optional<Preferences>;\n}): TimeSlot[] {\n const durationMs = input.durationMinutes * MINUTE_MS;\n const cap = input.preferences?.pageSize ?? 5;\n const startHour = input.preferences?.startHour;\n const endHour = input.preferences?.endHour;\n const openingMinutes = startHour === undefined ? 0 : toMinutesOfDay(startHour);\n const closingMinutes = endHour === undefined ? undefined : toMinutesOfDay(endHour);\n const excludeWeekends = input.preferences?.excludeWeekends ?? false;\n const formatter = new Intl.DateTimeFormat('en-US', {\n timeZone: input.timeZone ?? 'UTC',\n weekday: 'short',\n hour: '2-digit',\n minute: '2-digit',\n hourCycle: 'h23',\n });\n const busy = mergeBusy(input.busy);\n const windowEnd = Date.parse(input.windowEnd);\n const slots: TimeSlot[] = [];\n let cursor = Date.parse(input.windowStart);\n\n while (slots.length < cap && cursor + durationMs <= windowEnd) {\n const blocked = busy.find(\n (period) => period.start < cursor + durationMs && period.end > cursor,\n );\n if (blocked !== undefined) {\n cursor = blocked.end;\n continue;\n }\n const { weekday, minutesOfDay } = localClock(formatter, cursor);\n if (excludeWeekends && (weekday === 'Sat' || weekday === 'Sun')) {\n // Jump to (approximately) the next local midnight; the re-read above\n // corrects any DST drift.\n cursor += (DAY_MINUTES - minutesOfDay) * MINUTE_MS;\n continue;\n }\n if (minutesOfDay < openingMinutes) {\n cursor += (openingMinutes - minutesOfDay) * MINUTE_MS;\n continue;\n }\n if (closingMinutes !== undefined && minutesOfDay + input.durationMinutes > closingMinutes) {\n // Past closing for today; jump to the next local midnight, and the next\n // iteration advances to opening time.\n cursor += (DAY_MINUTES - minutesOfDay) * MINUTE_MS;\n continue;\n }\n slots.push({\n startTime: new Date(cursor).toISOString(),\n endTime: new Date(cursor + durationMs).toISOString(),\n durationMinutes: input.durationMinutes,\n });\n cursor += durationMs;\n }\n return slots;\n}\n"]}
1
+ {"version":3,"file":"suggest.js","sourceRoot":"","sources":["../../../src/calendar/lib/suggest.ts"],"names":[],"mappings":"AAmBA,MAAM,SAAS,GAAG,MAAM,CAAC;AACzB,MAAM,WAAW,GAAG,EAAE,GAAG,EAAE,CAAC;AAE5B,8GAA8G;AAC9G,MAAM,CAAC,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAEvD;;;;;GAKG;AACH,SAAS,cAAc,CAAC,UAAkB;IACxC,IAAI,CAAC,WAAW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AI,CAAC,cAAc,GAAG,YAAY,CAAC,GAAG,SAAS,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,IAAI,YAAY,GAAG,KAAK,CAAC,eAAe,GAAG,cAAc,EAAE,CAAC;YAC1F,wEAAwE;YACxE,sCAAsC;YACtC,MAAM,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,GAAG,SAAS,CAAC;YACnD,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC;YACT,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE;YACzC,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC,WAAW,EAAE;YACpD,eAAe,EAAE,KAAK,CAAC,eAAe;SACvC,CAAC,CAAC;QACH,MAAM,IAAI,UAAU,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import type { Optional } from '../../lib/types.js';\n\n/** A busy interval on some attendee's calendar, as ISO 8601 instants. */\ntype BusyPeriod = { start: string; end: string };\n\n/** A suggested free slot, as ISO 8601 instants plus its length in minutes. */\ntype TimeSlot = { startTime: string; endTime: string; durationMinutes: number };\n\n/** Scheduling preferences narrowing where suggested slots may fall. */\ntype Preferences = {\n startHour?: Optional<string>;\n endHour?: Optional<string>;\n excludeWeekends?: Optional<boolean>;\n pageSize?: Optional<number>;\n};\n\n/** A busy interval in epoch milliseconds. */\ntype Interval = { start: number; end: number };\n\nconst MINUTE_MS = 60_000;\nconst DAY_MINUTES = 24 * 60;\n\n/** The HH:MM clock format the working-hour bounds require; also enforced by the suggest_time input schema. */\nexport const HOUR_OF_DAY = /^([01]\\d|2[0-3]):[0-5]\\d$/;\n\n/**\n * Parse an HH:MM working-hour bound into minutes since local midnight. Throws on\n * any other shape: a malformed bound would otherwise parse to NaN, and every\n * NaN comparison is false, so the working-hours constraint would be silently\n * ignored rather than rejected.\n */\nfunction toMinutesOfDay(hourMinute: string): number {\n if (!HOUR_OF_DAY.test(hourMinute)) {\n throw new Error(`Invalid working-hour bound \"${hourMinute}\": expected HH:MM, e.g. 09:00.`);\n }\n return Number(hourMinute.slice(0, 2)) * 60 + Number(hourMinute.slice(3, 5));\n}\n\n/** Sort busy periods chronologically and merge every overlapping or adjacent pair. */\nfunction mergeBusy(busy: BusyPeriod[]): Interval[] {\n const sorted = busy\n .map((period) => ({ start: Date.parse(period.start), end: Date.parse(period.end) }))\n .sort((a, b) => a.start - b.start);\n const merged: Interval[] = [];\n for (const period of sorted) {\n const last = merged.at(-1);\n if (last !== undefined && period.start <= last.end) {\n last.end = Math.max(last.end, period.end);\n } else {\n merged.push(period);\n }\n }\n return merged;\n}\n\n/** The local weekday and minutes since local midnight of a UTC instant. */\nfunction localClock(\n formatter: Intl.DateTimeFormat,\n at: number,\n): { weekday: string; minutesOfDay: number } {\n let weekday = '';\n let minutesOfDay = 0;\n for (const part of formatter.formatToParts(new Date(at))) {\n if (part.type === 'weekday') {\n weekday = part.value;\n }\n if (part.type === 'hour') {\n minutesOfDay += Number(part.value) * 60;\n }\n if (part.type === 'minute') {\n minutesOfDay += Number(part.value);\n }\n }\n return { weekday, minutesOfDay };\n}\n\n/**\n * Compute free time slots within a window, given the busy periods of every\n * attendee calendar.\n *\n * The window is scanned chronologically: slots of exactly `durationMinutes`\n * are emitted back to back inside every gap that overlaps no busy period, and\n * the scan stops at `preferences.pageSize` slots (default 5). A slot belongs\n * to the local day of its start instant in `timeZone` (default UTC): when\n * `excludeWeekends` is set, a slot starting on a local Saturday or Sunday is\n * skipped, and the working-hour bounds (`startHour` and `endHour`, as HH:MM)\n * require the slot to start at or after `startHour` and, measured on the\n * start's local clock, to end at or before `endHour`. Date arithmetic is plain\n * UTC; the time zone matters only for those local determinations, so the scan\n * self-corrects across DST transitions by re-reading the local clock after\n * every jump.\n */\nexport function suggestSlots(input: {\n busy: BusyPeriod[];\n windowStart: string;\n windowEnd: string;\n durationMinutes: number;\n timeZone?: Optional<string>;\n preferences?: Optional<Preferences>;\n}): TimeSlot[] {\n const durationMs = input.durationMinutes * MINUTE_MS;\n const cap = input.preferences?.pageSize ?? 5;\n const startHour = input.preferences?.startHour;\n const endHour = input.preferences?.endHour;\n const openingMinutes = startHour === undefined ? 0 : toMinutesOfDay(startHour);\n const closingMinutes = endHour === undefined ? undefined : toMinutesOfDay(endHour);\n const excludeWeekends = input.preferences?.excludeWeekends ?? false;\n const formatter = new Intl.DateTimeFormat('en-US', {\n timeZone: input.timeZone ?? 'UTC',\n weekday: 'short',\n hour: '2-digit',\n minute: '2-digit',\n hourCycle: 'h23',\n });\n const busy = mergeBusy(input.busy);\n const windowEnd = Date.parse(input.windowEnd);\n const slots: TimeSlot[] = [];\n let cursor = Date.parse(input.windowStart);\n\n while (slots.length < cap && cursor + durationMs <= windowEnd) {\n const blocked = busy.find(\n (period) => period.start < cursor + durationMs && period.end > cursor,\n );\n if (blocked !== undefined) {\n cursor = blocked.end;\n continue;\n }\n const { weekday, minutesOfDay } = localClock(formatter, cursor);\n if (excludeWeekends && (weekday === 'Sat' || weekday === 'Sun')) {\n // Jump to (approximately) the next local midnight; the re-read above\n // corrects any DST drift.\n cursor += (DAY_MINUTES - minutesOfDay) * MINUTE_MS;\n continue;\n }\n if (minutesOfDay < openingMinutes) {\n cursor += (openingMinutes - minutesOfDay) * MINUTE_MS;\n continue;\n }\n if (closingMinutes !== undefined && minutesOfDay + input.durationMinutes > closingMinutes) {\n // Past closing for today; jump to the next local midnight, and the next\n // iteration advances to opening time.\n cursor += (DAY_MINUTES - minutesOfDay) * MINUTE_MS;\n continue;\n }\n slots.push({\n startTime: new Date(cursor).toISOString(),\n endTime: new Date(cursor + durationMs).toISOString(),\n durationMinutes: input.durationMinutes,\n });\n cursor += durationMs;\n }\n return slots;\n}\n"]}
@@ -23,10 +23,10 @@ export declare const add_calendar_entry: import("../../../lib/operation.js").Ope
23
23
  selected: import("zod").ZodOptional<import("zod").ZodBoolean>;
24
24
  primary: import("zod").ZodOptional<import("zod").ZodBoolean>;
25
25
  defaultReminders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
26
- method: import("zod").ZodEnum<{
26
+ method: import("zod").ZodOptional<import("zod").ZodEnum<{
27
27
  email: "email";
28
28
  popup: "popup";
29
- }>;
29
+ }>>;
30
30
  minutes: import("zod").ZodNumber;
31
31
  }, import("zod/v4/core").$strip>>>;
32
32
  }, import("zod/v4/core").$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_calendar_entry/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;iCAI7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_calendar_entry/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;iCAU7B,CAAC"}
@@ -11,6 +11,12 @@ import { schema } from './schema.js';
11
11
  */
12
12
  export const add_calendar_entry = calendarOperation({
13
13
  description: "Add an existing calendar to the user's calendar list (subscribe).",
14
+ annotations: {
15
+ readOnlyHint: false,
16
+ destructiveHint: false,
17
+ idempotentHint: true,
18
+ openWorldHint: false,
19
+ },
14
20
  schema,
15
21
  handler,
16
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_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,kBAAkB,GAAG,iBAAiB,CAAC;IAClD,WAAW,EAAE,mEAAmE;IAChF,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/insert\n *\n * Subscribes the user to an existing calendar (one shared with them, or a\n * public one) by adding it to their calendar list; it does not create a\n * calendar (see create_calendar). The inverse is remove_calendar_entry; the\n * per-user view (colors, visibility) is edited with update_calendar_entry.\n */\nexport const add_calendar_entry = calendarOperation({\n description: \"Add an existing calendar to the user's calendar list (subscribe).\",\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_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,kBAAkB,GAAG,iBAAiB,CAAC;IAClD,WAAW,EAAE,mEAAmE;IAChF,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,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/insert\n *\n * Subscribes the user to an existing calendar (one shared with them, or a\n * public one) by adding it to their calendar list; it does not create a\n * calendar (see create_calendar). The inverse is remove_calendar_entry; the\n * per-user view (colors, visibility) is edited with update_calendar_entry.\n */\nexport const add_calendar_entry = calendarOperation({\n description: \"Add an existing calendar to the user's calendar list (subscribe).\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n schema,\n handler,\n});\n"]}
@@ -19,10 +19,10 @@ export declare const schema: {
19
19
  selected: z.ZodOptional<z.ZodBoolean>;
20
20
  primary: z.ZodOptional<z.ZodBoolean>;
21
21
  defaultReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
- method: z.ZodEnum<{
22
+ method: z.ZodOptional<z.ZodEnum<{
23
23
  email: "email";
24
24
  popup: "popup";
25
- }>;
25
+ }>>;
26
26
  minutes: z.ZodNumber;
27
27
  }, z.core.$strip>>>;
28
28
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/clear_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;iCAKzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/clear_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;iCAUzB,CAAC"}
@@ -10,7 +10,12 @@ import { schema } from './schema.js';
10
10
  */
11
11
  export const clear_calendar = calendarOperation({
12
12
  description: 'Permanently delete all events from the primary calendar.',
13
- destructive: true,
13
+ annotations: {
14
+ readOnlyHint: false,
15
+ destructiveHint: true,
16
+ idempotentHint: true,
17
+ openWorldHint: false,
18
+ },
14
19
  schema,
15
20
  handler,
16
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/clear_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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EAAE,0DAA0D;IACvE,WAAW,EAAE,IAAI;IACjB,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/clear\n *\n * Irreversible: permanently deletes ALL events from the primary calendar while\n * keeping the calendar itself. The API only accepts the primary calendar; for\n * a secondary calendar, delete_calendar is the whole-calendar analog.\n */\nexport const clear_calendar = calendarOperation({\n description: 'Permanently delete all events from the primary calendar.',\n destructive: true,\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/clear_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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EAAE,0DAA0D;IACvE,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,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/clear\n *\n * Irreversible: permanently deletes ALL events from the primary calendar while\n * keeping the calendar itself. The API only accepts the primary calendar; for\n * a secondary calendar, delete_calendar is the whole-calendar analog.\n */\nexport const clear_calendar = calendarOperation({\n description: 'Permanently delete all events from the primary calendar.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n schema,\n handler,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/create_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;iCAI1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/create_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;iCAU1B,CAAC"}
@@ -9,6 +9,12 @@ import { schema } from './schema.js';
9
9
  */
10
10
  export const create_calendar = calendarOperation({
11
11
  description: 'Create a secondary calendar.',
12
+ annotations: {
13
+ readOnlyHint: false,
14
+ destructiveHint: false,
15
+ idempotentHint: false,
16
+ openWorldHint: false,
17
+ },
12
18
  schema,
13
19
  handler,
14
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/create_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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EAAE,8BAA8B;IAC3C,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/insert\n *\n * Creates a secondary calendar owned by the user. The new calendar appears on\n * the user's calendar list; the returned id addresses it everywhere else.\n */\nexport const create_calendar = calendarOperation({\n description: 'Create a secondary calendar.',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/create_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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,KAAK;KACrB;IACD,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/insert\n *\n * Creates a secondary calendar owned by the user. The new calendar appears on\n * the user's calendar list; the returned id addresses it everywhere else.\n */\nexport const create_calendar = calendarOperation({\n description: 'Create a secondary calendar.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n schema,\n handler,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;iCAK1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;iCAU1B,CAAC"}
@@ -11,7 +11,12 @@ import { schema } from './schema.js';
11
11
  */
12
12
  export const delete_calendar = calendarOperation({
13
13
  description: 'Permanently delete a secondary calendar and all of its events.',
14
- destructive: true,
14
+ annotations: {
15
+ readOnlyHint: false,
16
+ destructiveHint: true,
17
+ idempotentHint: true,
18
+ openWorldHint: false,
19
+ },
15
20
  schema,
16
21
  handler,
17
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EAAE,gEAAgE;IAC7E,WAAW,EAAE,IAAI;IACjB,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/delete\n *\n * Irreversible: permanently removes a secondary calendar and every event on\n * it. The primary calendar cannot be deleted (the API rejects it); to wipe the\n * primary calendar's events, see clear_calendar. To merely unsubscribe from a\n * calendar without destroying it, see remove_calendar_entry.\n */\nexport const delete_calendar = calendarOperation({\n description: 'Permanently delete a secondary calendar and all of its events.',\n destructive: true,\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EAAE,gEAAgE;IAC7E,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,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/delete\n *\n * Irreversible: permanently removes a secondary calendar and every event on\n * it. The primary calendar cannot be deleted (the API rejects it); to wipe the\n * primary calendar's events, see clear_calendar. To merely unsubscribe from a\n * calendar without destroying it, see remove_calendar_entry.\n */\nexport const delete_calendar = calendarOperation({\n description: 'Permanently delete a secondary calendar and all of its events.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n schema,\n handler,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/get_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;iCAIvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/get_calendar/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;iCAUvB,CAAC"}
@@ -9,6 +9,12 @@ import { schema } from './schema.js';
9
9
  */
10
10
  export const get_calendar = calendarOperation({
11
11
  description: 'Get a calendar (its title, description, location, and time zone) by id.',
12
+ annotations: {
13
+ readOnlyHint: true,
14
+ destructiveHint: false,
15
+ idempotentHint: true,
16
+ openWorldHint: false,
17
+ },
12
18
  schema,
13
19
  handler,
14
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/get_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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC5C,WAAW,EAAE,yEAAyE;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 * Source: https://developers.google.com/workspace/calendar/api/v3/reference/calendars/get\n *\n * The calendar's own metadata. For the user's view of a calendar (color,\n * visibility, access role), see get_calendar_entry.\n */\nexport const get_calendar = calendarOperation({\n description: 'Get a calendar (its title, description, location, and time zone) by id.',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/get_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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC5C,WAAW,EAAE,yEAAyE;IACtF,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,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/get\n *\n * The calendar's own metadata. For the user's view of a calendar (color,\n * visibility, access role), see get_calendar_entry.\n */\nexport const get_calendar = calendarOperation({\n description: 'Get a calendar (its title, description, location, and time zone) by id.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n schema,\n handler,\n});\n"]}