google-mcp-suite 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +32 -15
  2. package/dist/calendar/capabilities.d.ts +3 -0
  3. package/dist/calendar/capabilities.d.ts.map +1 -0
  4. package/dist/calendar/capabilities.js +21 -0
  5. package/dist/calendar/capabilities.js.map +1 -0
  6. package/dist/calendar/entities/Attendee.d.ts +24 -0
  7. package/dist/calendar/entities/Attendee.d.ts.map +1 -0
  8. package/dist/calendar/entities/Attendee.js +34 -0
  9. package/dist/calendar/entities/Attendee.js.map +1 -0
  10. package/dist/calendar/entities/Calendar.d.ts +20 -0
  11. package/dist/calendar/entities/Calendar.d.ts.map +1 -0
  12. package/dist/calendar/entities/Calendar.js +25 -0
  13. package/dist/calendar/entities/Calendar.js.map +1 -0
  14. package/dist/calendar/entities/CalendarListEntry.d.ts +36 -0
  15. package/dist/calendar/entities/CalendarListEntry.d.ts.map +1 -0
  16. package/dist/calendar/entities/CalendarListEntry.js +60 -0
  17. package/dist/calendar/entities/CalendarListEntry.js.map +1 -0
  18. package/dist/calendar/entities/Colors.d.ts +31 -0
  19. package/dist/calendar/entities/Colors.d.ts.map +1 -0
  20. package/dist/calendar/entities/Colors.js +34 -0
  21. package/dist/calendar/entities/Colors.js.map +1 -0
  22. package/dist/calendar/entities/Event.d.ts +76 -0
  23. package/dist/calendar/entities/Event.d.ts.map +1 -0
  24. package/dist/calendar/entities/Event.js +72 -0
  25. package/dist/calendar/entities/Event.js.map +1 -0
  26. package/dist/calendar/entities/EventDateTime.d.ts +19 -0
  27. package/dist/calendar/entities/EventDateTime.d.ts.map +1 -0
  28. package/dist/calendar/entities/EventDateTime.js +31 -0
  29. package/dist/calendar/entities/EventDateTime.js.map +1 -0
  30. package/dist/calendar/entities/FreeBusy.d.ts +30 -0
  31. package/dist/calendar/entities/FreeBusy.d.ts.map +1 -0
  32. package/dist/calendar/entities/FreeBusy.js +33 -0
  33. package/dist/calendar/entities/FreeBusy.js.map +1 -0
  34. package/dist/calendar/entities/NotificationLevel.d.ts +19 -0
  35. package/dist/calendar/entities/NotificationLevel.d.ts.map +1 -0
  36. package/dist/calendar/entities/NotificationLevel.js +14 -0
  37. package/dist/calendar/entities/NotificationLevel.js.map +1 -0
  38. package/dist/calendar/entities/Principal.d.ts +17 -0
  39. package/dist/calendar/entities/Principal.d.ts.map +1 -0
  40. package/dist/calendar/entities/Principal.js +19 -0
  41. package/dist/calendar/entities/Principal.js.map +1 -0
  42. package/dist/calendar/entities/Reminder.d.ts +19 -0
  43. package/dist/calendar/entities/Reminder.d.ts.map +1 -0
  44. package/dist/calendar/entities/Reminder.js +20 -0
  45. package/dist/calendar/entities/Reminder.js.map +1 -0
  46. package/dist/calendar/entities/Setting.d.ts +12 -0
  47. package/dist/calendar/entities/Setting.d.ts.map +1 -0
  48. package/dist/calendar/entities/Setting.js +13 -0
  49. package/dist/calendar/entities/Setting.js.map +1 -0
  50. package/dist/calendar/index.d.ts +3 -0
  51. package/dist/calendar/index.d.ts.map +1 -0
  52. package/dist/calendar/index.js +19 -0
  53. package/dist/calendar/index.js.map +1 -0
  54. package/dist/calendar/lib/attendees.d.ts +24 -0
  55. package/dist/calendar/lib/attendees.d.ts.map +1 -0
  56. package/dist/calendar/lib/attendees.js +41 -0
  57. package/dist/calendar/lib/attendees.js.map +1 -0
  58. package/dist/calendar/lib/calendar.d.ts +8 -0
  59. package/dist/calendar/lib/calendar.d.ts.map +1 -0
  60. package/dist/calendar/lib/calendar.js +33 -0
  61. package/dist/calendar/lib/calendar.js.map +1 -0
  62. package/dist/calendar/lib/datetime.d.ts +20 -0
  63. package/dist/calendar/lib/datetime.d.ts.map +1 -0
  64. package/dist/calendar/lib/datetime.js +22 -0
  65. package/dist/calendar/lib/datetime.js.map +1 -0
  66. package/dist/calendar/lib/event.d.ts +13 -0
  67. package/dist/calendar/lib/event.d.ts.map +1 -0
  68. package/dist/calendar/lib/event.js +76 -0
  69. package/dist/calendar/lib/event.js.map +1 -0
  70. package/dist/calendar/lib/meet.d.ts +14 -0
  71. package/dist/calendar/lib/meet.d.ts.map +1 -0
  72. package/dist/calendar/lib/meet.js +20 -0
  73. package/dist/calendar/lib/meet.js.map +1 -0
  74. package/dist/calendar/lib/notifications.d.ts +15 -0
  75. package/dist/calendar/lib/notifications.d.ts.map +1 -0
  76. package/dist/calendar/lib/notifications.js +14 -0
  77. package/dist/calendar/lib/notifications.js.map +1 -0
  78. package/dist/calendar/lib/suggest.d.ts +45 -0
  79. package/dist/calendar/lib/suggest.d.ts.map +1 -0
  80. package/dist/calendar/lib/suggest.js +108 -0
  81. package/dist/calendar/lib/suggest.js.map +1 -0
  82. package/dist/calendar/methods/add_calendar_entry/handler.d.ts +5 -0
  83. package/dist/calendar/methods/add_calendar_entry/handler.d.ts.map +1 -0
  84. package/dist/calendar/methods/add_calendar_entry/handler.js +8 -0
  85. package/dist/calendar/methods/add_calendar_entry/handler.js.map +1 -0
  86. package/dist/calendar/methods/add_calendar_entry/index.d.ts +33 -0
  87. package/dist/calendar/methods/add_calendar_entry/index.d.ts.map +1 -0
  88. package/dist/calendar/methods/add_calendar_entry/index.js +17 -0
  89. package/dist/calendar/methods/add_calendar_entry/index.js.map +1 -0
  90. package/dist/calendar/methods/add_calendar_entry/schema.d.ts +30 -0
  91. package/dist/calendar/methods/add_calendar_entry/schema.d.ts.map +1 -0
  92. package/dist/calendar/methods/add_calendar_entry/schema.js +12 -0
  93. package/dist/calendar/methods/add_calendar_entry/schema.js.map +1 -0
  94. package/dist/calendar/methods/clear_calendar/handler.d.ts +5 -0
  95. package/dist/calendar/methods/clear_calendar/handler.d.ts.map +1 -0
  96. package/dist/calendar/methods/clear_calendar/handler.js +6 -0
  97. package/dist/calendar/methods/clear_calendar/handler.js.map +1 -0
  98. package/dist/calendar/methods/clear_calendar/index.d.ts +13 -0
  99. package/dist/calendar/methods/clear_calendar/index.d.ts.map +1 -0
  100. package/dist/calendar/methods/clear_calendar/index.js +17 -0
  101. package/dist/calendar/methods/clear_calendar/index.js.map +1 -0
  102. package/dist/calendar/methods/clear_calendar/schema.d.ts +12 -0
  103. package/dist/calendar/methods/clear_calendar/schema.d.ts.map +1 -0
  104. package/dist/calendar/methods/clear_calendar/schema.js +15 -0
  105. package/dist/calendar/methods/clear_calendar/schema.js.map +1 -0
  106. package/dist/calendar/methods/create_calendar/handler.d.ts +5 -0
  107. package/dist/calendar/methods/create_calendar/handler.d.ts.map +1 -0
  108. package/dist/calendar/methods/create_calendar/handler.js +14 -0
  109. package/dist/calendar/methods/create_calendar/handler.js.map +1 -0
  110. package/dist/calendar/methods/create_calendar/index.d.ts +19 -0
  111. package/dist/calendar/methods/create_calendar/index.d.ts.map +1 -0
  112. package/dist/calendar/methods/create_calendar/index.js +15 -0
  113. package/dist/calendar/methods/create_calendar/index.js.map +1 -0
  114. package/dist/calendar/methods/create_calendar/schema.d.ts +18 -0
  115. package/dist/calendar/methods/create_calendar/schema.d.ts.map +1 -0
  116. package/dist/calendar/methods/create_calendar/schema.js +19 -0
  117. package/dist/calendar/methods/create_calendar/schema.js.map +1 -0
  118. package/dist/calendar/methods/delete_calendar/handler.d.ts +5 -0
  119. package/dist/calendar/methods/delete_calendar/handler.d.ts.map +1 -0
  120. package/dist/calendar/methods/delete_calendar/handler.js +5 -0
  121. package/dist/calendar/methods/delete_calendar/handler.js.map +1 -0
  122. package/dist/calendar/methods/delete_calendar/index.d.ts +14 -0
  123. package/dist/calendar/methods/delete_calendar/index.d.ts.map +1 -0
  124. package/dist/calendar/methods/delete_calendar/index.js +18 -0
  125. package/dist/calendar/methods/delete_calendar/index.js.map +1 -0
  126. package/dist/calendar/methods/delete_calendar/schema.d.ts +12 -0
  127. package/dist/calendar/methods/delete_calendar/schema.d.ts.map +1 -0
  128. package/dist/calendar/methods/delete_calendar/schema.js +14 -0
  129. package/dist/calendar/methods/delete_calendar/schema.js.map +1 -0
  130. package/dist/calendar/methods/get_calendar/handler.d.ts +5 -0
  131. package/dist/calendar/methods/get_calendar/handler.d.ts.map +1 -0
  132. package/dist/calendar/methods/get_calendar/handler.js +6 -0
  133. package/dist/calendar/methods/get_calendar/handler.js.map +1 -0
  134. package/dist/calendar/methods/get_calendar/index.d.ts +16 -0
  135. package/dist/calendar/methods/get_calendar/index.d.ts.map +1 -0
  136. package/dist/calendar/methods/get_calendar/index.js +15 -0
  137. package/dist/calendar/methods/get_calendar/index.js.map +1 -0
  138. package/dist/calendar/methods/get_calendar/schema.d.ts +15 -0
  139. package/dist/calendar/methods/get_calendar/schema.d.ts.map +1 -0
  140. package/dist/calendar/methods/get_calendar/schema.js +13 -0
  141. package/dist/calendar/methods/get_calendar/schema.js.map +1 -0
  142. package/dist/calendar/methods/get_calendar_entry/handler.d.ts +5 -0
  143. package/dist/calendar/methods/get_calendar_entry/handler.d.ts.map +1 -0
  144. package/dist/calendar/methods/get_calendar_entry/handler.js +6 -0
  145. package/dist/calendar/methods/get_calendar_entry/handler.js.map +1 -0
  146. package/dist/calendar/methods/get_calendar_entry/index.d.ts +31 -0
  147. package/dist/calendar/methods/get_calendar_entry/index.d.ts.map +1 -0
  148. package/dist/calendar/methods/get_calendar_entry/index.js +15 -0
  149. package/dist/calendar/methods/get_calendar_entry/index.js.map +1 -0
  150. package/dist/calendar/methods/get_calendar_entry/schema.d.ts +30 -0
  151. package/dist/calendar/methods/get_calendar_entry/schema.d.ts.map +1 -0
  152. package/dist/calendar/methods/get_calendar_entry/schema.js +13 -0
  153. package/dist/calendar/methods/get_calendar_entry/schema.js.map +1 -0
  154. package/dist/calendar/methods/get_colors/handler.d.ts +5 -0
  155. package/dist/calendar/methods/get_colors/handler.d.ts.map +1 -0
  156. package/dist/calendar/methods/get_colors/handler.js +19 -0
  157. package/dist/calendar/methods/get_colors/handler.js.map +1 -0
  158. package/dist/calendar/methods/get_colors/index.d.ts +19 -0
  159. package/dist/calendar/methods/get_colors/index.d.ts.map +1 -0
  160. package/dist/calendar/methods/get_colors/index.js +16 -0
  161. package/dist/calendar/methods/get_colors/index.js.map +1 -0
  162. package/dist/calendar/methods/get_colors/schema.d.ts +17 -0
  163. package/dist/calendar/methods/get_colors/schema.d.ts.map +1 -0
  164. package/dist/calendar/methods/get_colors/schema.js +8 -0
  165. package/dist/calendar/methods/get_colors/schema.js.map +1 -0
  166. package/dist/calendar/methods/get_setting/handler.d.ts +5 -0
  167. package/dist/calendar/methods/get_setting/handler.d.ts.map +1 -0
  168. package/dist/calendar/methods/get_setting/handler.js +8 -0
  169. package/dist/calendar/methods/get_setting/handler.js.map +1 -0
  170. package/dist/calendar/methods/get_setting/index.d.ts +11 -0
  171. package/dist/calendar/methods/get_setting/index.d.ts.map +1 -0
  172. package/dist/calendar/methods/get_setting/index.js +13 -0
  173. package/dist/calendar/methods/get_setting/index.js.map +1 -0
  174. package/dist/calendar/methods/get_setting/schema.d.ts +12 -0
  175. package/dist/calendar/methods/get_setting/schema.d.ts.map +1 -0
  176. package/dist/calendar/methods/get_setting/schema.js +12 -0
  177. package/dist/calendar/methods/get_setting/schema.js.map +1 -0
  178. package/dist/calendar/methods/list_event_instances/handler.d.ts +5 -0
  179. package/dist/calendar/methods/list_event_instances/handler.d.ts.map +1 -0
  180. package/dist/calendar/methods/list_event_instances/handler.js +28 -0
  181. package/dist/calendar/methods/list_event_instances/handler.js.map +1 -0
  182. package/dist/calendar/methods/list_event_instances/index.d.ts +95 -0
  183. package/dist/calendar/methods/list_event_instances/index.d.ts.map +1 -0
  184. package/dist/calendar/methods/list_event_instances/index.js +17 -0
  185. package/dist/calendar/methods/list_event_instances/index.js.map +1 -0
  186. package/dist/calendar/methods/list_event_instances/schema.d.ts +92 -0
  187. package/dist/calendar/methods/list_event_instances/schema.d.ts.map +1 -0
  188. package/dist/calendar/methods/list_event_instances/schema.js +63 -0
  189. package/dist/calendar/methods/list_event_instances/schema.js.map +1 -0
  190. package/dist/calendar/methods/list_settings/handler.d.ts +5 -0
  191. package/dist/calendar/methods/list_settings/handler.d.ts.map +1 -0
  192. package/dist/calendar/methods/list_settings/handler.js +15 -0
  193. package/dist/calendar/methods/list_settings/handler.js.map +1 -0
  194. package/dist/calendar/methods/list_settings/index.d.ts +17 -0
  195. package/dist/calendar/methods/list_settings/index.d.ts.map +1 -0
  196. package/dist/calendar/methods/list_settings/index.js +15 -0
  197. package/dist/calendar/methods/list_settings/index.js.map +1 -0
  198. package/dist/calendar/methods/list_settings/schema.d.ts +21 -0
  199. package/dist/calendar/methods/list_settings/schema.d.ts.map +1 -0
  200. package/dist/calendar/methods/list_settings/schema.js +27 -0
  201. package/dist/calendar/methods/list_settings/schema.js.map +1 -0
  202. package/dist/calendar/methods/move_event/handler.d.ts +5 -0
  203. package/dist/calendar/methods/move_event/handler.d.ts.map +1 -0
  204. package/dist/calendar/methods/move_event/handler.js +12 -0
  205. package/dist/calendar/methods/move_event/handler.js.map +1 -0
  206. package/dist/calendar/methods/move_event/index.d.ts +79 -0
  207. package/dist/calendar/methods/move_event/index.d.ts.map +1 -0
  208. package/dist/calendar/methods/move_event/index.js +17 -0
  209. package/dist/calendar/methods/move_event/index.js.map +1 -0
  210. package/dist/calendar/methods/move_event/schema.d.ts +76 -0
  211. package/dist/calendar/methods/move_event/schema.d.ts.map +1 -0
  212. package/dist/calendar/methods/move_event/schema.js +19 -0
  213. package/dist/calendar/methods/move_event/schema.js.map +1 -0
  214. package/dist/calendar/methods/patch_event/handler.d.ts +5 -0
  215. package/dist/calendar/methods/patch_event/handler.d.ts.map +1 -0
  216. package/dist/calendar/methods/patch_event/handler.js +29 -0
  217. package/dist/calendar/methods/patch_event/handler.js.map +1 -0
  218. package/dist/calendar/methods/patch_event/index.d.ts +131 -0
  219. package/dist/calendar/methods/patch_event/index.d.ts.map +1 -0
  220. package/dist/calendar/methods/patch_event/index.js +18 -0
  221. package/dist/calendar/methods/patch_event/index.js.map +1 -0
  222. package/dist/calendar/methods/patch_event/schema.d.ts +127 -0
  223. package/dist/calendar/methods/patch_event/schema.d.ts.map +1 -0
  224. package/dist/calendar/methods/patch_event/schema.js +110 -0
  225. package/dist/calendar/methods/patch_event/schema.js.map +1 -0
  226. package/dist/calendar/methods/query_free_busy/handler.d.ts +5 -0
  227. package/dist/calendar/methods/query_free_busy/handler.d.ts.map +1 -0
  228. package/dist/calendar/methods/query_free_busy/handler.js +32 -0
  229. package/dist/calendar/methods/query_free_busy/handler.js.map +1 -0
  230. package/dist/calendar/methods/query_free_busy/index.d.ts +29 -0
  231. package/dist/calendar/methods/query_free_busy/index.d.ts.map +1 -0
  232. package/dist/calendar/methods/query_free_busy/index.js +16 -0
  233. package/dist/calendar/methods/query_free_busy/index.js.map +1 -0
  234. package/dist/calendar/methods/query_free_busy/schema.d.ts +27 -0
  235. package/dist/calendar/methods/query_free_busy/schema.d.ts.map +1 -0
  236. package/dist/calendar/methods/query_free_busy/schema.js +36 -0
  237. package/dist/calendar/methods/query_free_busy/schema.js.map +1 -0
  238. package/dist/calendar/methods/quick_add_event/handler.d.ts +5 -0
  239. package/dist/calendar/methods/quick_add_event/handler.d.ts.map +1 -0
  240. package/dist/calendar/methods/quick_add_event/handler.js +11 -0
  241. package/dist/calendar/methods/quick_add_event/handler.js.map +1 -0
  242. package/dist/calendar/methods/quick_add_event/index.d.ts +77 -0
  243. package/dist/calendar/methods/quick_add_event/index.d.ts.map +1 -0
  244. package/dist/calendar/methods/quick_add_event/index.js +16 -0
  245. package/dist/calendar/methods/quick_add_event/index.js.map +1 -0
  246. package/dist/calendar/methods/quick_add_event/schema.d.ts +75 -0
  247. package/dist/calendar/methods/quick_add_event/schema.d.ts.map +1 -0
  248. package/dist/calendar/methods/quick_add_event/schema.js +20 -0
  249. package/dist/calendar/methods/quick_add_event/schema.js.map +1 -0
  250. package/dist/calendar/methods/registry.d.ts +538 -0
  251. package/dist/calendar/methods/registry.d.ts.map +1 -0
  252. package/dist/calendar/methods/registry.js +48 -0
  253. package/dist/calendar/methods/registry.js.map +1 -0
  254. package/dist/calendar/methods/remove_calendar_entry/handler.d.ts +5 -0
  255. package/dist/calendar/methods/remove_calendar_entry/handler.d.ts.map +1 -0
  256. package/dist/calendar/methods/remove_calendar_entry/handler.js +5 -0
  257. package/dist/calendar/methods/remove_calendar_entry/handler.js.map +1 -0
  258. package/dist/calendar/methods/remove_calendar_entry/index.d.ts +13 -0
  259. package/dist/calendar/methods/remove_calendar_entry/index.d.ts.map +1 -0
  260. package/dist/calendar/methods/remove_calendar_entry/index.js +16 -0
  261. package/dist/calendar/methods/remove_calendar_entry/index.js.map +1 -0
  262. package/dist/calendar/methods/remove_calendar_entry/schema.d.ts +12 -0
  263. package/dist/calendar/methods/remove_calendar_entry/schema.d.ts.map +1 -0
  264. package/dist/calendar/methods/remove_calendar_entry/schema.js +14 -0
  265. package/dist/calendar/methods/remove_calendar_entry/schema.js.map +1 -0
  266. package/dist/calendar/methods/update_calendar/handler.d.ts +5 -0
  267. package/dist/calendar/methods/update_calendar/handler.d.ts.map +1 -0
  268. package/dist/calendar/methods/update_calendar/handler.js +15 -0
  269. package/dist/calendar/methods/update_calendar/handler.js.map +1 -0
  270. package/dist/calendar/methods/update_calendar/index.d.ts +18 -0
  271. package/dist/calendar/methods/update_calendar/index.d.ts.map +1 -0
  272. package/dist/calendar/methods/update_calendar/index.js +13 -0
  273. package/dist/calendar/methods/update_calendar/index.js.map +1 -0
  274. package/dist/calendar/methods/update_calendar/schema.d.ts +19 -0
  275. package/dist/calendar/methods/update_calendar/schema.d.ts.map +1 -0
  276. package/dist/calendar/methods/update_calendar/schema.js +23 -0
  277. package/dist/calendar/methods/update_calendar/schema.js.map +1 -0
  278. package/dist/calendar/methods/update_calendar_entry/handler.d.ts +5 -0
  279. package/dist/calendar/methods/update_calendar_entry/handler.d.ts.map +1 -0
  280. package/dist/calendar/methods/update_calendar_entry/handler.js +22 -0
  281. package/dist/calendar/methods/update_calendar_entry/handler.js.map +1 -0
  282. package/dist/calendar/methods/update_calendar_entry/index.d.ts +46 -0
  283. package/dist/calendar/methods/update_calendar_entry/index.d.ts.map +1 -0
  284. package/dist/calendar/methods/update_calendar_entry/index.js +17 -0
  285. package/dist/calendar/methods/update_calendar_entry/index.js.map +1 -0
  286. package/dist/calendar/methods/update_calendar_entry/schema.d.ts +43 -0
  287. package/dist/calendar/methods/update_calendar_entry/schema.d.ts.map +1 -0
  288. package/dist/calendar/methods/update_calendar_entry/schema.js +39 -0
  289. package/dist/calendar/methods/update_calendar_entry/schema.js.map +1 -0
  290. package/dist/calendar/operation.d.ts +12 -0
  291. package/dist/calendar/operation.d.ts.map +1 -0
  292. package/dist/calendar/operation.js +10 -0
  293. package/dist/calendar/operation.js.map +1 -0
  294. package/dist/calendar/tools/create_event/handler.d.ts +5 -0
  295. package/dist/calendar/tools/create_event/handler.d.ts.map +1 -0
  296. package/dist/calendar/tools/create_event/handler.js +38 -0
  297. package/dist/calendar/tools/create_event/handler.js.map +1 -0
  298. package/dist/calendar/tools/create_event/index.d.ts +101 -0
  299. package/dist/calendar/tools/create_event/index.d.ts.map +1 -0
  300. package/dist/calendar/tools/create_event/index.js +17 -0
  301. package/dist/calendar/tools/create_event/index.js.map +1 -0
  302. package/dist/calendar/tools/create_event/schema.d.ts +98 -0
  303. package/dist/calendar/tools/create_event/schema.d.ts.map +1 -0
  304. package/dist/calendar/tools/create_event/schema.js +54 -0
  305. package/dist/calendar/tools/create_event/schema.js.map +1 -0
  306. package/dist/calendar/tools/delete_event/handler.d.ts +5 -0
  307. package/dist/calendar/tools/delete_event/handler.d.ts.map +1 -0
  308. package/dist/calendar/tools/delete_event/handler.js +15 -0
  309. package/dist/calendar/tools/delete_event/handler.js.map +1 -0
  310. package/dist/calendar/tools/delete_event/index.d.ts +76 -0
  311. package/dist/calendar/tools/delete_event/index.d.ts.map +1 -0
  312. package/dist/calendar/tools/delete_event/index.js +16 -0
  313. package/dist/calendar/tools/delete_event/index.js.map +1 -0
  314. package/dist/calendar/tools/delete_event/schema.d.ts +75 -0
  315. package/dist/calendar/tools/delete_event/schema.d.ts.map +1 -0
  316. package/dist/calendar/tools/delete_event/schema.js +16 -0
  317. package/dist/calendar/tools/delete_event/schema.js.map +1 -0
  318. package/dist/calendar/tools/get_event/handler.d.ts +5 -0
  319. package/dist/calendar/tools/get_event/handler.d.ts.map +1 -0
  320. package/dist/calendar/tools/get_event/handler.js +9 -0
  321. package/dist/calendar/tools/get_event/handler.js.map +1 -0
  322. package/dist/calendar/tools/get_event/index.d.ts +66 -0
  323. package/dist/calendar/tools/get_event/index.d.ts.map +1 -0
  324. package/dist/calendar/tools/get_event/index.js +10 -0
  325. package/dist/calendar/tools/get_event/index.js.map +1 -0
  326. package/dist/calendar/tools/get_event/schema.d.ts +70 -0
  327. package/dist/calendar/tools/get_event/schema.d.ts.map +1 -0
  328. package/dist/calendar/tools/get_event/schema.js +14 -0
  329. package/dist/calendar/tools/get_event/schema.js.map +1 -0
  330. package/dist/calendar/tools/list_calendars/handler.d.ts +5 -0
  331. package/dist/calendar/tools/list_calendars/handler.d.ts.map +1 -0
  332. package/dist/calendar/tools/list_calendars/handler.js +17 -0
  333. package/dist/calendar/tools/list_calendars/handler.js.map +1 -0
  334. package/dist/calendar/tools/list_calendars/index.d.ts +20 -0
  335. package/dist/calendar/tools/list_calendars/index.d.ts.map +1 -0
  336. package/dist/calendar/tools/list_calendars/index.js +16 -0
  337. package/dist/calendar/tools/list_calendars/index.js.map +1 -0
  338. package/dist/calendar/tools/list_calendars/schema.d.ts +18 -0
  339. package/dist/calendar/tools/list_calendars/schema.d.ts.map +1 -0
  340. package/dist/calendar/tools/list_calendars/schema.js +26 -0
  341. package/dist/calendar/tools/list_calendars/schema.js.map +1 -0
  342. package/dist/calendar/tools/list_events/handler.d.ts +5 -0
  343. package/dist/calendar/tools/list_events/handler.d.ts.map +1 -0
  344. package/dist/calendar/tools/list_events/handler.js +45 -0
  345. package/dist/calendar/tools/list_events/handler.js.map +1 -0
  346. package/dist/calendar/tools/list_events/index.d.ts +107 -0
  347. package/dist/calendar/tools/list_events/index.d.ts.map +1 -0
  348. package/dist/calendar/tools/list_events/index.js +17 -0
  349. package/dist/calendar/tools/list_events/index.js.map +1 -0
  350. package/dist/calendar/tools/list_events/schema.d.ts +104 -0
  351. package/dist/calendar/tools/list_events/schema.d.ts.map +1 -0
  352. package/dist/calendar/tools/list_events/schema.js +66 -0
  353. package/dist/calendar/tools/list_events/schema.js.map +1 -0
  354. package/dist/calendar/tools/registry.d.ts +529 -0
  355. package/dist/calendar/tools/registry.d.ts.map +1 -0
  356. package/dist/calendar/tools/registry.js +24 -0
  357. package/dist/calendar/tools/registry.js.map +1 -0
  358. package/dist/calendar/tools/respond_to_event/handler.d.ts +5 -0
  359. package/dist/calendar/tools/respond_to_event/handler.d.ts.map +1 -0
  360. package/dist/calendar/tools/respond_to_event/handler.js +19 -0
  361. package/dist/calendar/tools/respond_to_event/handler.js.map +1 -0
  362. package/dist/calendar/tools/respond_to_event/index.d.ts +83 -0
  363. package/dist/calendar/tools/respond_to_event/index.d.ts.map +1 -0
  364. package/dist/calendar/tools/respond_to_event/index.js +16 -0
  365. package/dist/calendar/tools/respond_to_event/index.js.map +1 -0
  366. package/dist/calendar/tools/respond_to_event/schema.d.ts +81 -0
  367. package/dist/calendar/tools/respond_to_event/schema.d.ts.map +1 -0
  368. package/dist/calendar/tools/respond_to_event/schema.js +23 -0
  369. package/dist/calendar/tools/respond_to_event/schema.js.map +1 -0
  370. package/dist/calendar/tools/suggest_time/handler.d.ts +5 -0
  371. package/dist/calendar/tools/suggest_time/handler.d.ts.map +1 -0
  372. package/dist/calendar/tools/suggest_time/handler.js +36 -0
  373. package/dist/calendar/tools/suggest_time/handler.js.map +1 -0
  374. package/dist/calendar/tools/suggest_time/index.d.ts +34 -0
  375. package/dist/calendar/tools/suggest_time/index.d.ts.map +1 -0
  376. package/dist/calendar/tools/suggest_time/index.js +23 -0
  377. package/dist/calendar/tools/suggest_time/index.js.map +1 -0
  378. package/dist/calendar/tools/suggest_time/schema.d.ts +25 -0
  379. package/dist/calendar/tools/suggest_time/schema.d.ts.map +1 -0
  380. package/dist/calendar/tools/suggest_time/schema.js +70 -0
  381. package/dist/calendar/tools/suggest_time/schema.js.map +1 -0
  382. package/dist/calendar/tools/update_event/handler.d.ts +5 -0
  383. package/dist/calendar/tools/update_event/handler.d.ts.map +1 -0
  384. package/dist/calendar/tools/update_event/handler.js +50 -0
  385. package/dist/calendar/tools/update_event/handler.js.map +1 -0
  386. package/dist/calendar/tools/update_event/index.d.ts +100 -0
  387. package/dist/calendar/tools/update_event/index.d.ts.map +1 -0
  388. package/dist/calendar/tools/update_event/index.js +17 -0
  389. package/dist/calendar/tools/update_event/index.js.map +1 -0
  390. package/dist/calendar/tools/update_event/schema.d.ts +97 -0
  391. package/dist/calendar/tools/update_event/schema.d.ts.map +1 -0
  392. package/dist/calendar/tools/update_event/schema.js +59 -0
  393. package/dist/calendar/tools/update_event/schema.js.map +1 -0
  394. package/dist/doctor/services.d.ts.map +1 -1
  395. package/dist/doctor/services.js +8 -1
  396. package/dist/doctor/services.js.map +1 -1
  397. package/package.json +11 -5
@@ -0,0 +1,110 @@
1
+ import { z } from 'zod';
2
+ import { Event } from '../../entities/Event.js';
3
+ import { EventDateTime } from '../../entities/EventDateTime.js';
4
+ /**
5
+ * The full REST attendee shape, for writing. Unlike the tools' projection
6
+ * (entities/Attendee), `optional` keeps its REST name, and the read-only
7
+ * fields (id, organizer, self) are absent.
8
+ */
9
+ const RestAttendee = z.object({
10
+ email: z.string().describe("The attendee's email address."),
11
+ displayName: z.string().optional().describe("The attendee's name."),
12
+ optional: z
13
+ .boolean()
14
+ .optional()
15
+ .describe('Whether this is an optional attendee. The default is false.'),
16
+ resource: z
17
+ .boolean()
18
+ .optional()
19
+ .describe('Whether the attendee is a resource (such as a meeting room). Can only be set when the attendee is first added to the event; later modifications are ignored. The default is false.'),
20
+ responseStatus: z
21
+ .enum(['needsAction', 'declined', 'tentative', 'accepted'])
22
+ .optional()
23
+ .describe("The attendee's response status."),
24
+ comment: z.string().optional().describe("The attendee's response comment."),
25
+ additionalGuests: z
26
+ .number()
27
+ .int()
28
+ .optional()
29
+ .describe('Number of additional guests. The default is 0.'),
30
+ });
31
+ /** Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/patch */
32
+ export const schema = {
33
+ input: z.object({
34
+ eventId: z.string().describe('The ID of the event to patch.'),
35
+ calendarId: z
36
+ .string()
37
+ .optional()
38
+ .describe("The calendar ID of the event to patch. The default is the user's primary calendar."),
39
+ summary: z.string().optional().describe('The new title of the event.'),
40
+ description: z
41
+ .string()
42
+ .optional()
43
+ .describe('The new description of the event. Can contain HTML.'),
44
+ location: z.string().optional().describe('The new location of the event as free-form text.'),
45
+ start: EventDateTime.optional().describe('The new (inclusive) start of the event: date for an all-day event, dateTime otherwise.'),
46
+ end: EventDateTime.optional().describe('The new (exclusive) end of the event: date for an all-day event, dateTime otherwise.'),
47
+ recurrence: z
48
+ .array(z.string())
49
+ .optional()
50
+ .describe('List of RRULE, EXRULE, RDATE, and EXDATE lines for a recurring event, as specified in RFC5545. DTSTART and DTEND lines are not allowed; start and end carry those.'),
51
+ status: z
52
+ .enum(['confirmed', 'tentative', 'cancelled'])
53
+ .optional()
54
+ .describe('Status of the event: confirmed, tentative, or cancelled.'),
55
+ transparency: z
56
+ .enum(['opaque', 'transparent'])
57
+ .optional()
58
+ .describe('Whether the event blocks time on the calendar: opaque (shows as Busy) or transparent (shows as Available).'),
59
+ visibility: z
60
+ .enum(['default', 'public', 'private', 'confidential'])
61
+ .optional()
62
+ .describe('Visibility of the event: default, public, private, or confidential.'),
63
+ attendees: z
64
+ .array(RestAttendee)
65
+ .optional()
66
+ .describe('The full attendee list; if set, it replaces all existing attendees.'),
67
+ extendedProperties: z
68
+ .object({
69
+ private: z
70
+ .record(z.string(), z.string())
71
+ .optional()
72
+ .describe('Properties private to this copy of the event.'),
73
+ shared: z
74
+ .record(z.string(), z.string())
75
+ .optional()
76
+ .describe("Properties shared between copies of the event on other attendees' calendars."),
77
+ })
78
+ .optional()
79
+ .describe('Extended properties of the event: arbitrary string key-value pairs.'),
80
+ guestsCanInviteOthers: z
81
+ .boolean()
82
+ .optional()
83
+ .describe('Whether attendees other than the organizer can invite others to the event. The default is true.'),
84
+ guestsCanModify: z
85
+ .boolean()
86
+ .optional()
87
+ .describe('Whether attendees other than the organizer can modify the event. The default is false.'),
88
+ guestsCanSeeOtherGuests: z
89
+ .boolean()
90
+ .optional()
91
+ .describe("Whether attendees other than the organizer can see who the event's attendees are. The default is true."),
92
+ colorId: z
93
+ .string()
94
+ .optional()
95
+ .describe('The color of the event: an ID (1 through 11) referring to an entry in the event section of the colors definition.'),
96
+ sendUpdates: z
97
+ .enum(['all', 'externalOnly', 'none'])
98
+ .optional()
99
+ .describe('Which guests receive email notifications about the update: all, externalOnly (attendees outside Google Calendar only), or none.'),
100
+ conferenceDataVersion: z
101
+ .number()
102
+ .int()
103
+ .min(0)
104
+ .max(1)
105
+ .optional()
106
+ .describe("Version number of conference data supported by the client. Set 1 to carry the event's conference data through the patch; 0 (the default) ignores conference data."),
107
+ }),
108
+ output: Event,
109
+ };
110
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_event/schema.ts"],"names":[],"mappings":"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","sourcesContent":["import { z } from 'zod';\nimport { Event } from '../../entities/Event.js';\nimport { EventDateTime } from '../../entities/EventDateTime.js';\n\n/**\n * The full REST attendee shape, for writing. Unlike the tools' projection\n * (entities/Attendee), `optional` keeps its REST name, and the read-only\n * fields (id, organizer, self) are absent.\n */\nconst RestAttendee = z.object({\n email: z.string().describe(\"The attendee's email address.\"),\n displayName: z.string().optional().describe(\"The attendee's name.\"),\n optional: z\n .boolean()\n .optional()\n .describe('Whether this is an optional attendee. The default is false.'),\n resource: z\n .boolean()\n .optional()\n .describe(\n 'Whether the attendee is a resource (such as a meeting room). Can only be set when the attendee is first added to the event; later modifications are ignored. The default is false.',\n ),\n responseStatus: z\n .enum(['needsAction', 'declined', 'tentative', 'accepted'])\n .optional()\n .describe(\"The attendee's response status.\"),\n comment: z.string().optional().describe(\"The attendee's response comment.\"),\n additionalGuests: z\n .number()\n .int()\n .optional()\n .describe('Number of additional guests. The default is 0.'),\n});\n\n/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/patch */\nexport const schema = {\n input: z.object({\n eventId: z.string().describe('The ID of the event to patch.'),\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID of the event to patch. The default is the user's primary calendar.\",\n ),\n summary: z.string().optional().describe('The new title of the event.'),\n description: z\n .string()\n .optional()\n .describe('The new description of the event. Can contain HTML.'),\n location: z.string().optional().describe('The new location of the event as free-form text.'),\n start: EventDateTime.optional().describe(\n 'The new (inclusive) start of the event: date for an all-day event, dateTime otherwise.',\n ),\n end: EventDateTime.optional().describe(\n 'The new (exclusive) end of the event: date for an all-day event, dateTime otherwise.',\n ),\n recurrence: z\n .array(z.string())\n .optional()\n .describe(\n 'List of RRULE, EXRULE, RDATE, and EXDATE lines for a recurring event, as specified in RFC5545. DTSTART and DTEND lines are not allowed; start and end carry those.',\n ),\n status: z\n .enum(['confirmed', 'tentative', 'cancelled'])\n .optional()\n .describe('Status of the event: confirmed, tentative, or cancelled.'),\n transparency: z\n .enum(['opaque', 'transparent'])\n .optional()\n .describe(\n 'Whether the event blocks time on the calendar: opaque (shows as Busy) or transparent (shows as Available).',\n ),\n visibility: z\n .enum(['default', 'public', 'private', 'confidential'])\n .optional()\n .describe('Visibility of the event: default, public, private, or confidential.'),\n attendees: z\n .array(RestAttendee)\n .optional()\n .describe('The full attendee list; if set, it replaces all existing attendees.'),\n extendedProperties: z\n .object({\n private: z\n .record(z.string(), z.string())\n .optional()\n .describe('Properties private to this copy of the event.'),\n shared: z\n .record(z.string(), z.string())\n .optional()\n .describe(\"Properties shared between copies of the event on other attendees' calendars.\"),\n })\n .optional()\n .describe('Extended properties of the event: arbitrary string key-value pairs.'),\n guestsCanInviteOthers: z\n .boolean()\n .optional()\n .describe(\n 'Whether attendees other than the organizer can invite others to the event. The default is true.',\n ),\n guestsCanModify: z\n .boolean()\n .optional()\n .describe(\n 'Whether attendees other than the organizer can modify the event. The default is false.',\n ),\n guestsCanSeeOtherGuests: z\n .boolean()\n .optional()\n .describe(\n \"Whether attendees other than the organizer can see who the event's attendees are. The default is true.\",\n ),\n colorId: z\n .string()\n .optional()\n .describe(\n 'The color of the event: an ID (1 through 11) referring to an entry in the event section of the colors definition.',\n ),\n sendUpdates: z\n .enum(['all', 'externalOnly', 'none'])\n .optional()\n .describe(\n 'Which guests receive email notifications about the update: all, externalOnly (attendees outside Google Calendar only), or none.',\n ),\n conferenceDataVersion: z\n .number()\n .int()\n .min(0)\n .max(1)\n .optional()\n .describe(\n \"Version number of conference data supported by the client. Set 1 to carry the event's conference data through the patch; 0 (the default) ignores conference data.\",\n ),\n }),\n output: Event,\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/query_free_busy/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAiB1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAmBxC"}
@@ -0,0 +1,32 @@
1
+ import { forGoogle } from '../../../lib/google.js';
2
+ /** Project one calendar's expansion, dropping busy periods missing either bound. */
3
+ function projectFreeBusyCalendar(entry) {
4
+ return {
5
+ busy: (entry.busy ?? []).flatMap((period) => period.start && period.end ? [{ start: period.start, end: period.end }] : []),
6
+ errors: entry.errors
7
+ ? entry.errors.map((error) => ({
8
+ domain: error.domain ?? undefined,
9
+ reason: error.reason ?? undefined,
10
+ }))
11
+ : undefined,
12
+ };
13
+ }
14
+ export async function handler(calendar, args) {
15
+ const { data } = await calendar.freebusy.query({
16
+ requestBody: forGoogle({
17
+ timeMin: args.timeMin,
18
+ timeMax: args.timeMax,
19
+ timeZone: args.timeZone,
20
+ items: args.items,
21
+ }),
22
+ });
23
+ return {
24
+ timeMin: data.timeMin ?? undefined,
25
+ timeMax: data.timeMax ?? undefined,
26
+ calendars: Object.fromEntries(Object.entries(data.calendars ?? {}).map(([id, entry]) => [
27
+ id,
28
+ projectFreeBusyCalendar(entry),
29
+ ])),
30
+ };
31
+ }
32
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/query_free_busy/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAInD,oFAAoF;AACpF,SAAS,uBAAuB,CAAC,KAA0C;IACzE,OAAO;QACL,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,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;QACD,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;AAED,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC7C,WAAW,EAAE,SAAS,CAAC;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;KACH,CAAC,CAAC;IACH,OAAO;QACL,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,SAAS,EAAE,MAAM,CAAC,WAAW,CAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;YACxD,EAAE;YACF,uBAAuB,CAAC,KAAK,CAAC;SAC/B,CAAC,CACH;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport type { FreeBusyCalendar } from '../../entities/FreeBusy.js';\nimport type { schema } from './schema.js';\n\n/** Project one calendar's expansion, dropping busy periods missing either bound. */\nfunction projectFreeBusyCalendar(entry: calendar_v3.Schema$FreeBusyCalendar): FreeBusyCalendar {\n return {\n busy: (entry.busy ?? []).flatMap((period) =>\n period.start && period.end ? [{ start: period.start, end: period.end }] : [],\n ),\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\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await calendar.freebusy.query({\n requestBody: forGoogle({\n timeMin: args.timeMin,\n timeMax: args.timeMax,\n timeZone: args.timeZone,\n items: args.items,\n }),\n });\n return {\n timeMin: data.timeMin ?? undefined,\n timeMax: data.timeMax ?? undefined,\n calendars: Object.fromEntries(\n Object.entries(data.calendars ?? {}).map(([id, entry]) => [\n id,\n projectFreeBusyCalendar(entry),\n ]),\n ),\n };\n}\n"]}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Source: https://developers.google.com/workspace/calendar/api/v3/reference/freebusy/query
3
+ *
4
+ * The raw busy intervals per calendar. The suggest_time tool builds on this
5
+ * same query and computes open slots; this method returns what Google reports,
6
+ * untransformed.
7
+ */
8
+ export declare const query_free_busy: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
9
+ timeMin: import("zod").ZodString;
10
+ timeMax: import("zod").ZodString;
11
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
12
+ items: import("zod").ZodArray<import("zod").ZodObject<{
13
+ id: import("zod").ZodString;
14
+ }, import("zod/v4/core").$strip>>;
15
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
16
+ timeMin: import("zod").ZodOptional<import("zod").ZodString>;
17
+ timeMax: import("zod").ZodOptional<import("zod").ZodString>;
18
+ calendars: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
19
+ busy: import("zod").ZodArray<import("zod").ZodObject<{
20
+ start: import("zod").ZodString;
21
+ end: import("zod").ZodString;
22
+ }, import("zod/v4/core").$strip>>;
23
+ errors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
24
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
25
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
26
+ }, import("zod/v4/core").$strip>>>;
27
+ }, import("zod/v4/core").$strip>>;
28
+ }, import("zod/v4/core").$strip>>;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/query_free_busy/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;iCAI1B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { calendarOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ /**
5
+ * Source: https://developers.google.com/workspace/calendar/api/v3/reference/freebusy/query
6
+ *
7
+ * The raw busy intervals per calendar. The suggest_time tool builds on this
8
+ * same query and computes open slots; this method returns what Google reports,
9
+ * untransformed.
10
+ */
11
+ export const query_free_busy = calendarOperation({
12
+ description: 'Query the busy intervals of a set of calendars over a time window.',
13
+ schema,
14
+ handler,
15
+ });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/query_free_busy/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,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EAAE,oEAAoE;IACjF,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/freebusy/query\n *\n * The raw busy intervals per calendar. The suggest_time tool builds on this\n * same query and computes open slots; this method returns what Google reports,\n * untransformed.\n */\nexport const query_free_busy = calendarOperation({\n description: 'Query the busy intervals of a set of calendars over a time window.',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ /** Source: https://developers.google.com/workspace/calendar/api/v3/reference/freebusy/query */
3
+ export declare const schema: {
4
+ input: z.ZodObject<{
5
+ timeMin: z.ZodString;
6
+ timeMax: z.ZodString;
7
+ timeZone: z.ZodOptional<z.ZodString>;
8
+ items: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>;
12
+ output: z.ZodObject<{
13
+ timeMin: z.ZodOptional<z.ZodString>;
14
+ timeMax: z.ZodOptional<z.ZodString>;
15
+ calendars: z.ZodRecord<z.ZodString, z.ZodObject<{
16
+ busy: z.ZodArray<z.ZodObject<{
17
+ start: z.ZodString;
18
+ end: z.ZodString;
19
+ }, z.core.$strip>>;
20
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ domain: z.ZodOptional<z.ZodString>;
22
+ reason: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ };
27
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/query_free_busy/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,+FAA+F;AAC/F,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAmClB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { FreeBusyCalendar } from '../../entities/FreeBusy.js';
3
+ /** Source: https://developers.google.com/workspace/calendar/api/v3/reference/freebusy/query */
4
+ export const schema = {
5
+ input: z.object({
6
+ timeMin: z
7
+ .string()
8
+ .describe('The start of the interval for the query, as an RFC3339 timestamp.'),
9
+ timeMax: z.string().describe('The end of the interval for the query, as an RFC3339 timestamp.'),
10
+ timeZone: z
11
+ .string()
12
+ .optional()
13
+ .describe('Time zone used in the response, as an IANA Time Zone Database name. The default is UTC.'),
14
+ items: z
15
+ .array(z.object({
16
+ id: z
17
+ .string()
18
+ .describe("A calendar id to query; use 'primary' for the user's primary calendar."),
19
+ }))
20
+ .describe('The calendars to query.'),
21
+ }),
22
+ output: z.object({
23
+ timeMin: z
24
+ .string()
25
+ .optional()
26
+ .describe('The start of the queried interval, as an RFC3339 timestamp.'),
27
+ timeMax: z
28
+ .string()
29
+ .optional()
30
+ .describe('The end of the queried interval, as an RFC3339 timestamp.'),
31
+ calendars: z
32
+ .record(z.string(), FreeBusyCalendar)
33
+ .describe('Free/busy information per queried calendar id.'),
34
+ }),
35
+ };
36
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/query_free_busy/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,CAAC,mEAAmE,CAAC;QAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iEAAiE,CAAC;QAC/F,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF,CAC1F;QACH,KAAK,EAAE,CAAC;aACL,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,EAAE,EAAE,CAAC;iBACF,MAAM,EAAE;iBACR,QAAQ,CAAC,wEAAwE,CAAC;SACtF,CAAC,CACH;aACA,QAAQ,CAAC,yBAAyB,CAAC;KACvC,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6DAA6D,CAAC;QAC1E,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,2DAA2D,CAAC;QACxE,SAAS,EAAE,CAAC;aACT,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC;aACpC,QAAQ,CAAC,gDAAgD,CAAC;KAC9D,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { FreeBusyCalendar } from '../../entities/FreeBusy.js';\n\n/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/freebusy/query */\nexport const schema = {\n input: z.object({\n timeMin: z\n .string()\n .describe('The start of the interval for the query, as an RFC3339 timestamp.'),\n timeMax: z.string().describe('The end of the interval for the query, as an RFC3339 timestamp.'),\n timeZone: z\n .string()\n .optional()\n .describe(\n 'Time zone used in the response, as an IANA Time Zone Database name. The default is UTC.',\n ),\n items: z\n .array(\n z.object({\n id: z\n .string()\n .describe(\"A calendar id to query; use 'primary' for the user's primary calendar.\"),\n }),\n )\n .describe('The calendars to query.'),\n }),\n output: z.object({\n timeMin: z\n .string()\n .optional()\n .describe('The start of the queried interval, as an RFC3339 timestamp.'),\n timeMax: z\n .string()\n .optional()\n .describe('The end of the queried interval, as an RFC3339 timestamp.'),\n calendars: z\n .record(z.string(), FreeBusyCalendar)\n .describe('Free/busy information per queried calendar id.'),\n }),\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/quick_add_event/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CASxC"}
@@ -0,0 +1,11 @@
1
+ import { forGoogle } from '../../../lib/google.js';
2
+ import { projectEvent } from '../../lib/event.js';
3
+ export async function handler(calendar, args) {
4
+ const { data } = await calendar.events.quickAdd(forGoogle({
5
+ calendarId: args.calendarId ?? 'primary',
6
+ text: args.text,
7
+ sendUpdates: args.sendUpdates,
8
+ }));
9
+ return projectEvent(data);
10
+ }
11
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/quick_add_event/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAC7C,SAAS,CAAC;QACR,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC,CACH,CAAC;IACF,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { projectEvent } from '../../lib/event.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await calendar.events.quickAdd(\n forGoogle({\n calendarId: args.calendarId ?? 'primary',\n text: args.text,\n sendUpdates: args.sendUpdates,\n }),\n );\n return projectEvent(data);\n}\n"]}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/quickAdd
3
+ *
4
+ * Google parses the text into a title, time, and location (the same parser as
5
+ * the Calendar UI's quick-add box). For structured input use create_event,
6
+ * which controls each field explicitly.
7
+ */
8
+ export declare const quick_add_event: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
9
+ text: import("zod").ZodString;
10
+ calendarId: import("zod").ZodOptional<import("zod").ZodString>;
11
+ sendUpdates: import("zod").ZodOptional<import("zod").ZodEnum<{
12
+ all: "all";
13
+ externalOnly: "externalOnly";
14
+ none: "none";
15
+ }>>;
16
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
17
+ id: import("zod").ZodString;
18
+ status: import("zod").ZodOptional<import("zod").ZodString>;
19
+ htmlLink: import("zod").ZodOptional<import("zod").ZodString>;
20
+ created: import("zod").ZodOptional<import("zod").ZodString>;
21
+ updated: import("zod").ZodOptional<import("zod").ZodString>;
22
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
23
+ description: import("zod").ZodOptional<import("zod").ZodString>;
24
+ location: import("zod").ZodOptional<import("zod").ZodString>;
25
+ creator: import("zod").ZodOptional<import("zod").ZodObject<{
26
+ email: import("zod").ZodOptional<import("zod").ZodString>;
27
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
28
+ self: import("zod").ZodOptional<import("zod").ZodBoolean>;
29
+ }, import("zod/v4/core").$strip>>;
30
+ organizer: import("zod").ZodOptional<import("zod").ZodObject<{
31
+ email: import("zod").ZodOptional<import("zod").ZodString>;
32
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
33
+ self: import("zod").ZodOptional<import("zod").ZodBoolean>;
34
+ }, import("zod/v4/core").$strip>>;
35
+ start: import("zod").ZodOptional<import("zod").ZodObject<{
36
+ date: import("zod").ZodOptional<import("zod").ZodString>;
37
+ dateTime: import("zod").ZodOptional<import("zod").ZodString>;
38
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
39
+ }, import("zod/v4/core").$strip>>;
40
+ end: import("zod").ZodOptional<import("zod").ZodObject<{
41
+ date: import("zod").ZodOptional<import("zod").ZodString>;
42
+ dateTime: import("zod").ZodOptional<import("zod").ZodString>;
43
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
44
+ }, import("zod/v4/core").$strip>>;
45
+ recurrence: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
46
+ recurringEventId: import("zod").ZodOptional<import("zod").ZodString>;
47
+ originalStartTime: import("zod").ZodOptional<import("zod").ZodObject<{
48
+ date: import("zod").ZodOptional<import("zod").ZodString>;
49
+ dateTime: import("zod").ZodOptional<import("zod").ZodString>;
50
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
51
+ }, import("zod/v4/core").$strip>>;
52
+ transparency: import("zod").ZodOptional<import("zod").ZodString>;
53
+ visibility: import("zod").ZodOptional<import("zod").ZodString>;
54
+ attendees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
55
+ id: import("zod").ZodOptional<import("zod").ZodString>;
56
+ email: import("zod").ZodString;
57
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
58
+ organizer: import("zod").ZodOptional<import("zod").ZodBoolean>;
59
+ self: import("zod").ZodOptional<import("zod").ZodBoolean>;
60
+ resource: import("zod").ZodOptional<import("zod").ZodBoolean>;
61
+ optionalAttendee: import("zod").ZodOptional<import("zod").ZodBoolean>;
62
+ responseStatus: import("zod").ZodOptional<import("zod").ZodString>;
63
+ comment: import("zod").ZodOptional<import("zod").ZodString>;
64
+ additionalGuests: import("zod").ZodOptional<import("zod").ZodNumber>;
65
+ }, import("zod/v4/core").$strip>>>;
66
+ eventType: import("zod").ZodOptional<import("zod").ZodString>;
67
+ conferenceUrl: import("zod").ZodOptional<import("zod").ZodString>;
68
+ colorId: import("zod").ZodOptional<import("zod").ZodString>;
69
+ overrideReminders: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
70
+ method: import("zod").ZodEnum<{
71
+ email: "email";
72
+ popup: "popup";
73
+ }>;
74
+ minutes: import("zod").ZodNumber;
75
+ }, import("zod/v4/core").$strip>>>;
76
+ }, import("zod/v4/core").$strip>>;
77
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/quick_add_event/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAI1B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { calendarOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ /**
5
+ * Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/quickAdd
6
+ *
7
+ * Google parses the text into a title, time, and location (the same parser as
8
+ * the Calendar UI's quick-add box). For structured input use create_event,
9
+ * which controls each field explicitly.
10
+ */
11
+ export const quick_add_event = calendarOperation({
12
+ description: 'Create an event from a natural-language description.',
13
+ schema,
14
+ handler,
15
+ });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/quick_add_event/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,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EAAE,sDAAsD;IACnE,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/events/quickAdd\n *\n * Google parses the text into a title, time, and location (the same parser as\n * the Calendar UI's quick-add box). For structured input use create_event,\n * which controls each field explicitly.\n */\nexport const quick_add_event = calendarOperation({\n description: 'Create an event from a natural-language description.',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,75 @@
1
+ import { z } from 'zod';
2
+ /** Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/quickAdd */
3
+ export declare const schema: {
4
+ input: z.ZodObject<{
5
+ text: z.ZodString;
6
+ calendarId: z.ZodOptional<z.ZodString>;
7
+ sendUpdates: z.ZodOptional<z.ZodEnum<{
8
+ all: "all";
9
+ externalOnly: "externalOnly";
10
+ none: "none";
11
+ }>>;
12
+ }, z.core.$strip>;
13
+ output: z.ZodObject<{
14
+ id: z.ZodString;
15
+ status: z.ZodOptional<z.ZodString>;
16
+ htmlLink: z.ZodOptional<z.ZodString>;
17
+ created: z.ZodOptional<z.ZodString>;
18
+ updated: z.ZodOptional<z.ZodString>;
19
+ summary: z.ZodOptional<z.ZodString>;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ location: z.ZodOptional<z.ZodString>;
22
+ creator: z.ZodOptional<z.ZodObject<{
23
+ email: z.ZodOptional<z.ZodString>;
24
+ displayName: z.ZodOptional<z.ZodString>;
25
+ self: z.ZodOptional<z.ZodBoolean>;
26
+ }, z.core.$strip>>;
27
+ organizer: z.ZodOptional<z.ZodObject<{
28
+ email: z.ZodOptional<z.ZodString>;
29
+ displayName: z.ZodOptional<z.ZodString>;
30
+ self: z.ZodOptional<z.ZodBoolean>;
31
+ }, z.core.$strip>>;
32
+ start: z.ZodOptional<z.ZodObject<{
33
+ date: z.ZodOptional<z.ZodString>;
34
+ dateTime: z.ZodOptional<z.ZodString>;
35
+ timeZone: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ end: z.ZodOptional<z.ZodObject<{
38
+ date: z.ZodOptional<z.ZodString>;
39
+ dateTime: z.ZodOptional<z.ZodString>;
40
+ timeZone: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ recurrence: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ recurringEventId: z.ZodOptional<z.ZodString>;
44
+ originalStartTime: z.ZodOptional<z.ZodObject<{
45
+ date: z.ZodOptional<z.ZodString>;
46
+ dateTime: z.ZodOptional<z.ZodString>;
47
+ timeZone: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strip>>;
49
+ transparency: z.ZodOptional<z.ZodString>;
50
+ visibility: z.ZodOptional<z.ZodString>;
51
+ attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ id: z.ZodOptional<z.ZodString>;
53
+ email: z.ZodString;
54
+ displayName: z.ZodOptional<z.ZodString>;
55
+ organizer: z.ZodOptional<z.ZodBoolean>;
56
+ self: z.ZodOptional<z.ZodBoolean>;
57
+ resource: z.ZodOptional<z.ZodBoolean>;
58
+ optionalAttendee: z.ZodOptional<z.ZodBoolean>;
59
+ responseStatus: z.ZodOptional<z.ZodString>;
60
+ comment: z.ZodOptional<z.ZodString>;
61
+ additionalGuests: z.ZodOptional<z.ZodNumber>;
62
+ }, z.core.$strip>>>;
63
+ eventType: z.ZodOptional<z.ZodString>;
64
+ conferenceUrl: z.ZodOptional<z.ZodString>;
65
+ colorId: z.ZodOptional<z.ZodString>;
66
+ overrideReminders: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ method: z.ZodEnum<{
68
+ email: "email";
69
+ popup: "popup";
70
+ }>;
71
+ minutes: z.ZodNumber;
72
+ }, z.core.$strip>>>;
73
+ }, z.core.$strip>;
74
+ };
75
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/quick_add_event/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,gGAAgG;AAChG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBlB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { Event } from '../../entities/Event.js';
3
+ /** Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/quickAdd */
4
+ export const schema = {
5
+ input: z.object({
6
+ text: z
7
+ .string()
8
+ .describe('Natural-language text describing the event to create, for example "Lunch with Anna 11:30am Friday at Ludivine".'),
9
+ calendarId: z
10
+ .string()
11
+ .optional()
12
+ .describe("The calendar ID to create the event on. The default is the user's primary calendar."),
13
+ sendUpdates: z
14
+ .enum(['all', 'externalOnly', 'none'])
15
+ .optional()
16
+ .describe('Which guests receive email notifications about the creation: all, externalOnly (attendees outside Google Calendar only), or none.'),
17
+ }),
18
+ output: Event,
19
+ };
20
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/quick_add_event/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,gGAAgG;AAChG,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,CACP,iHAAiH,CAClH;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,WAAW,EAAE,CAAC;aACX,IAAI,CAAC,CAAC,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;aACrC,QAAQ,EAAE;aACV,QAAQ,CACP,mIAAmI,CACpI;KACJ,CAAC;IACF,MAAM,EAAE,KAAK;CACd,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Event } from '../../entities/Event.js';\n\n/** Source: https://developers.google.com/workspace/calendar/api/v3/reference/events/quickAdd */\nexport const schema = {\n input: z.object({\n text: z\n .string()\n .describe(\n 'Natural-language text describing the event to create, for example \"Lunch with Anna 11:30am Friday at Ludivine\".',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID to create the event on. The default is the user's primary calendar.\",\n ),\n sendUpdates: z\n .enum(['all', 'externalOnly', 'none'])\n .optional()\n .describe(\n 'Which guests receive email notifications about the creation: all, externalOnly (attendees outside Google Calendar only), or none.',\n ),\n }),\n output: Event,\n};\n"]}