google-mcp-suite 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (526) hide show
  1. package/ADOPTING.md +2 -2
  2. package/README.md +5 -5
  3. package/dist/calendar/entities/AclRole.d.ts +7 -6
  4. package/dist/calendar/entities/AclRole.d.ts.map +1 -1
  5. package/dist/calendar/entities/AclRole.js +7 -6
  6. package/dist/calendar/entities/AclRole.js.map +1 -1
  7. package/dist/calendar/entities/AclScope.d.ts +14 -1
  8. package/dist/calendar/entities/AclScope.d.ts.map +1 -1
  9. package/dist/calendar/entities/AclScope.js +11 -5
  10. package/dist/calendar/entities/AclScope.js.map +1 -1
  11. package/dist/calendar/entities/CalendarListEntry.d.ts.map +1 -1
  12. package/dist/calendar/entities/CalendarListEntry.js +2 -1
  13. package/dist/calendar/entities/CalendarListEntry.js.map +1 -1
  14. package/dist/calendar/index.js +1 -1
  15. package/dist/calendar/index.js.map +1 -1
  16. package/dist/calendar/instructions.d.ts.map +1 -1
  17. package/dist/calendar/instructions.js +9 -9
  18. package/dist/calendar/instructions.js.map +1 -1
  19. package/dist/calendar/lib/roles.d.ts +12 -0
  20. package/dist/calendar/lib/roles.d.ts.map +1 -0
  21. package/dist/calendar/lib/roles.js +38 -0
  22. package/dist/calendar/lib/roles.js.map +1 -0
  23. package/dist/calendar/methods/add_acl_rule/index.d.ts +5 -4
  24. package/dist/calendar/methods/add_acl_rule/index.d.ts.map +1 -1
  25. package/dist/calendar/methods/add_acl_rule/index.js +7 -5
  26. package/dist/calendar/methods/add_acl_rule/index.js.map +1 -1
  27. package/dist/calendar/methods/add_acl_rule/schema.d.ts.map +1 -1
  28. package/dist/calendar/methods/add_acl_rule/schema.js +3 -2
  29. package/dist/calendar/methods/add_acl_rule/schema.js.map +1 -1
  30. package/dist/calendar/methods/delete_acl_rule/index.js +1 -1
  31. package/dist/calendar/methods/delete_acl_rule/index.js.map +1 -1
  32. package/dist/calendar/methods/list_event_instances/schema.d.ts.map +1 -1
  33. package/dist/calendar/methods/list_event_instances/schema.js +2 -1
  34. package/dist/calendar/methods/list_event_instances/schema.js.map +1 -1
  35. package/dist/calendar/methods/patch_acl_rule/index.d.ts +4 -3
  36. package/dist/calendar/methods/patch_acl_rule/index.d.ts.map +1 -1
  37. package/dist/calendar/methods/patch_acl_rule/index.js +5 -4
  38. package/dist/calendar/methods/patch_acl_rule/index.js.map +1 -1
  39. package/dist/calendar/methods/patch_acl_rule/schema.js +1 -1
  40. package/dist/calendar/methods/patch_acl_rule/schema.js.map +1 -1
  41. package/dist/calendar/methods/registry.d.ts +2 -2
  42. package/dist/calendar/methods/registry.js +2 -2
  43. package/dist/calendar/methods/registry.js.map +1 -1
  44. package/dist/calendar/methods/update_acl_rule/index.d.ts +4 -4
  45. package/dist/calendar/methods/update_acl_rule/index.js +5 -5
  46. package/dist/calendar/methods/update_acl_rule/index.js.map +1 -1
  47. package/dist/calendar/methods/update_acl_rule/schema.js +1 -1
  48. package/dist/calendar/methods/update_acl_rule/schema.js.map +1 -1
  49. package/dist/docs/entities/Color.d.ts +15 -0
  50. package/dist/docs/entities/Color.d.ts.map +1 -0
  51. package/dist/docs/entities/Color.js +11 -0
  52. package/dist/docs/entities/Color.js.map +1 -0
  53. package/dist/docs/entities/Document.d.ts +28 -16
  54. package/dist/docs/entities/Document.d.ts.map +1 -1
  55. package/dist/docs/entities/Document.js +31 -4
  56. package/dist/docs/entities/Document.js.map +1 -1
  57. package/dist/docs/entities/DocumentStyle.d.ts +40 -0
  58. package/dist/docs/entities/DocumentStyle.d.ts.map +1 -0
  59. package/dist/docs/entities/DocumentStyle.js +67 -0
  60. package/dist/docs/entities/DocumentStyle.js.map +1 -0
  61. package/dist/docs/entities/Location.d.ts +16 -0
  62. package/dist/docs/entities/Location.d.ts.map +1 -0
  63. package/dist/docs/entities/Location.js +26 -0
  64. package/dist/docs/entities/Location.js.map +1 -0
  65. package/dist/docs/entities/OptionalColor.d.ts +20 -0
  66. package/dist/docs/entities/OptionalColor.d.ts.map +1 -0
  67. package/dist/docs/entities/OptionalColor.js +14 -0
  68. package/dist/docs/entities/OptionalColor.js.map +1 -0
  69. package/dist/docs/entities/ParagraphBorder.d.ts +29 -0
  70. package/dist/docs/entities/ParagraphBorder.d.ts.map +1 -0
  71. package/dist/docs/entities/ParagraphBorder.js +27 -0
  72. package/dist/docs/entities/ParagraphBorder.js.map +1 -0
  73. package/dist/docs/entities/ParagraphStyle.d.ts +124 -5
  74. package/dist/docs/entities/ParagraphStyle.d.ts.map +1 -1
  75. package/dist/docs/entities/ParagraphStyle.js +63 -5
  76. package/dist/docs/entities/ParagraphStyle.js.map +1 -1
  77. package/dist/docs/entities/Range.d.ts +6 -3
  78. package/dist/docs/entities/Range.d.ts.map +1 -1
  79. package/dist/docs/entities/Range.js +20 -7
  80. package/dist/docs/entities/Range.js.map +1 -1
  81. package/dist/docs/entities/RgbColor.d.ts +14 -0
  82. package/dist/docs/entities/RgbColor.d.ts.map +1 -0
  83. package/dist/docs/entities/RgbColor.js +28 -0
  84. package/dist/docs/entities/RgbColor.js.map +1 -0
  85. package/dist/docs/entities/SectionColumnProperties.d.ts +14 -0
  86. package/dist/docs/entities/SectionColumnProperties.d.ts.map +1 -0
  87. package/dist/docs/entities/SectionColumnProperties.js +17 -0
  88. package/dist/docs/entities/SectionColumnProperties.js.map +1 -0
  89. package/dist/docs/entities/SectionStyle.d.ts +35 -0
  90. package/dist/docs/entities/SectionStyle.d.ts.map +1 -0
  91. package/dist/docs/entities/SectionStyle.js +60 -0
  92. package/dist/docs/entities/SectionStyle.js.map +1 -0
  93. package/dist/docs/entities/Shading.d.ts +19 -0
  94. package/dist/docs/entities/Shading.d.ts.map +1 -0
  95. package/dist/docs/entities/Shading.js +11 -0
  96. package/dist/docs/entities/Shading.js.map +1 -0
  97. package/dist/docs/entities/StructuralElement.d.ts +41 -16
  98. package/dist/docs/entities/StructuralElement.d.ts.map +1 -1
  99. package/dist/docs/entities/StructuralElement.js +40 -9
  100. package/dist/docs/entities/StructuralElement.js.map +1 -1
  101. package/dist/docs/entities/TableCellBorder.d.ts +28 -0
  102. package/dist/docs/entities/TableCellBorder.d.ts.map +1 -0
  103. package/dist/docs/entities/TableCellBorder.js +30 -0
  104. package/dist/docs/entities/TableCellBorder.js.map +1 -0
  105. package/dist/docs/entities/TableCellLocation.d.ts +17 -0
  106. package/dist/docs/entities/TableCellLocation.d.ts.map +1 -0
  107. package/dist/docs/entities/TableCellLocation.js +22 -0
  108. package/dist/docs/entities/TableCellLocation.js.map +1 -0
  109. package/dist/docs/entities/TableCellStyle.d.ts +101 -0
  110. package/dist/docs/entities/TableCellStyle.d.ts.map +1 -0
  111. package/dist/docs/entities/TableCellStyle.js +33 -0
  112. package/dist/docs/entities/TableCellStyle.js.map +1 -0
  113. package/dist/docs/entities/TableColumnProperties.d.ts +19 -0
  114. package/dist/docs/entities/TableColumnProperties.d.ts.map +1 -0
  115. package/dist/docs/entities/TableColumnProperties.js +22 -0
  116. package/dist/docs/entities/TableColumnProperties.js.map +1 -0
  117. package/dist/docs/entities/TableRange.d.ts +23 -0
  118. package/dist/docs/entities/TableRange.d.ts.map +1 -0
  119. package/dist/docs/entities/TableRange.js +16 -0
  120. package/dist/docs/entities/TableRange.js.map +1 -0
  121. package/dist/docs/entities/TableRowStyle.d.ts +17 -0
  122. package/dist/docs/entities/TableRowStyle.d.ts.map +1 -0
  123. package/dist/docs/entities/TableRowStyle.js +23 -0
  124. package/dist/docs/entities/TableRowStyle.js.map +1 -0
  125. package/dist/docs/entities/TextStyle.d.ts +26 -5
  126. package/dist/docs/entities/TextStyle.d.ts.map +1 -1
  127. package/dist/docs/entities/TextStyle.js +10 -6
  128. package/dist/docs/entities/TextStyle.js.map +1 -1
  129. package/dist/docs/entities/WeightedFontFamily.d.ts +14 -0
  130. package/dist/docs/entities/WeightedFontFamily.d.ts.map +1 -0
  131. package/dist/docs/entities/WeightedFontFamily.js +23 -0
  132. package/dist/docs/entities/WeightedFontFamily.js.map +1 -0
  133. package/dist/docs/instructions.d.ts.map +1 -1
  134. package/dist/docs/instructions.js +20 -3
  135. package/dist/docs/instructions.js.map +1 -1
  136. package/dist/docs/lib/address.d.ts +26 -0
  137. package/dist/docs/lib/address.d.ts.map +1 -0
  138. package/dist/docs/lib/address.js +18 -0
  139. package/dist/docs/lib/address.js.map +1 -0
  140. package/dist/docs/lib/color.d.ts +13 -0
  141. package/dist/docs/lib/color.d.ts.map +1 -0
  142. package/dist/docs/lib/color.js +9 -0
  143. package/dist/docs/lib/color.js.map +1 -0
  144. package/dist/docs/lib/dimension.d.ts +12 -0
  145. package/dist/docs/lib/dimension.d.ts.map +1 -0
  146. package/dist/docs/lib/dimension.js +4 -0
  147. package/dist/docs/lib/dimension.js.map +1 -0
  148. package/dist/docs/lib/document.d.ts +5 -3
  149. package/dist/docs/lib/document.d.ts.map +1 -1
  150. package/dist/docs/lib/document.js +40 -3
  151. package/dist/docs/lib/document.js.map +1 -1
  152. package/dist/docs/methods/create_document/index.d.ts +9 -12
  153. package/dist/docs/methods/create_document/index.d.ts.map +1 -1
  154. package/dist/docs/methods/create_document/schema.d.ts +9 -12
  155. package/dist/docs/methods/create_document/schema.d.ts.map +1 -1
  156. package/dist/docs/methods/create_footer/handler.d.ts +5 -0
  157. package/dist/docs/methods/create_footer/handler.d.ts.map +1 -0
  158. package/dist/docs/methods/create_footer/handler.js +16 -0
  159. package/dist/docs/methods/create_footer/handler.js.map +1 -0
  160. package/dist/docs/methods/create_footer/index.d.ts +19 -0
  161. package/dist/docs/methods/create_footer/index.d.ts.map +1 -0
  162. package/dist/docs/methods/create_footer/index.js +23 -0
  163. package/dist/docs/methods/create_footer/index.js.map +1 -0
  164. package/dist/docs/methods/create_footer/schema.d.ts +16 -0
  165. package/dist/docs/methods/create_footer/schema.d.ts.map +1 -0
  166. package/dist/docs/methods/create_footer/schema.js +22 -0
  167. package/dist/docs/methods/create_footer/schema.js.map +1 -0
  168. package/dist/docs/methods/create_footnote/handler.d.ts +5 -0
  169. package/dist/docs/methods/create_footnote/handler.d.ts.map +1 -0
  170. package/dist/docs/methods/create_footnote/handler.js +12 -0
  171. package/dist/docs/methods/create_footnote/handler.js.map +1 -0
  172. package/dist/docs/methods/create_footnote/index.d.ts +15 -0
  173. package/dist/docs/methods/create_footnote/index.d.ts.map +1 -0
  174. package/dist/docs/methods/create_footnote/index.js +22 -0
  175. package/dist/docs/methods/create_footnote/index.js.map +1 -0
  176. package/dist/docs/methods/create_footnote/schema.d.ts +13 -0
  177. package/dist/docs/methods/create_footnote/schema.d.ts.map +1 -0
  178. package/dist/docs/methods/create_footnote/schema.js +19 -0
  179. package/dist/docs/methods/create_footnote/schema.js.map +1 -0
  180. package/dist/docs/methods/create_header/handler.d.ts +5 -0
  181. package/dist/docs/methods/create_header/handler.d.ts.map +1 -0
  182. package/dist/docs/methods/create_header/handler.js +16 -0
  183. package/dist/docs/methods/create_header/handler.js.map +1 -0
  184. package/dist/docs/methods/create_header/index.d.ts +19 -0
  185. package/dist/docs/methods/create_header/index.d.ts.map +1 -0
  186. package/dist/docs/methods/create_header/index.js +23 -0
  187. package/dist/docs/methods/create_header/index.js.map +1 -0
  188. package/dist/docs/methods/create_header/schema.d.ts +16 -0
  189. package/dist/docs/methods/create_header/schema.d.ts.map +1 -0
  190. package/dist/docs/methods/create_header/schema.js +22 -0
  191. package/dist/docs/methods/create_header/schema.js.map +1 -0
  192. package/dist/docs/methods/create_named_range/handler.d.ts +5 -0
  193. package/dist/docs/methods/create_named_range/handler.d.ts.map +1 -0
  194. package/dist/docs/methods/create_named_range/handler.js +13 -0
  195. package/dist/docs/methods/create_named_range/handler.js.map +1 -0
  196. package/dist/docs/methods/create_named_range/index.d.ts +20 -0
  197. package/dist/docs/methods/create_named_range/index.d.ts.map +1 -0
  198. package/dist/docs/methods/create_named_range/index.js +22 -0
  199. package/dist/docs/methods/create_named_range/index.js.map +1 -0
  200. package/dist/docs/methods/create_named_range/schema.d.ts +18 -0
  201. package/dist/docs/methods/create_named_range/schema.d.ts.map +1 -0
  202. package/dist/docs/methods/create_named_range/schema.js +20 -0
  203. package/dist/docs/methods/create_named_range/schema.js.map +1 -0
  204. package/dist/docs/methods/create_paragraph_bullets/handler.d.ts.map +1 -1
  205. package/dist/docs/methods/create_paragraph_bullets/handler.js +2 -1
  206. package/dist/docs/methods/create_paragraph_bullets/handler.js.map +1 -1
  207. package/dist/docs/methods/create_paragraph_bullets/index.d.ts +1 -0
  208. package/dist/docs/methods/create_paragraph_bullets/index.d.ts.map +1 -1
  209. package/dist/docs/methods/create_paragraph_bullets/schema.d.ts +1 -0
  210. package/dist/docs/methods/create_paragraph_bullets/schema.d.ts.map +1 -1
  211. package/dist/docs/methods/delete_content_range/handler.d.ts.map +1 -1
  212. package/dist/docs/methods/delete_content_range/handler.js +2 -1
  213. package/dist/docs/methods/delete_content_range/handler.js.map +1 -1
  214. package/dist/docs/methods/delete_content_range/index.d.ts +1 -0
  215. package/dist/docs/methods/delete_content_range/index.d.ts.map +1 -1
  216. package/dist/docs/methods/delete_content_range/schema.d.ts +1 -0
  217. package/dist/docs/methods/delete_content_range/schema.d.ts.map +1 -1
  218. package/dist/docs/methods/delete_footer/handler.d.ts +5 -0
  219. package/dist/docs/methods/delete_footer/handler.d.ts.map +1 -0
  220. package/dist/docs/methods/delete_footer/handler.js +8 -0
  221. package/dist/docs/methods/delete_footer/handler.js.map +1 -0
  222. package/dist/docs/methods/delete_footer/index.d.ts +14 -0
  223. package/dist/docs/methods/delete_footer/index.d.ts.map +1 -0
  224. package/dist/docs/methods/delete_footer/index.js +22 -0
  225. package/dist/docs/methods/delete_footer/index.js.map +1 -0
  226. package/dist/docs/methods/delete_footer/schema.d.ts +12 -0
  227. package/dist/docs/methods/delete_footer/schema.d.ts.map +1 -0
  228. package/dist/docs/methods/delete_footer/schema.js +13 -0
  229. package/dist/docs/methods/delete_footer/schema.js.map +1 -0
  230. package/dist/docs/methods/delete_header/handler.d.ts +5 -0
  231. package/dist/docs/methods/delete_header/handler.d.ts.map +1 -0
  232. package/dist/docs/methods/delete_header/handler.js +8 -0
  233. package/dist/docs/methods/delete_header/handler.js.map +1 -0
  234. package/dist/docs/methods/delete_header/index.d.ts +14 -0
  235. package/dist/docs/methods/delete_header/index.d.ts.map +1 -0
  236. package/dist/docs/methods/delete_header/index.js +22 -0
  237. package/dist/docs/methods/delete_header/index.js.map +1 -0
  238. package/dist/docs/methods/delete_header/schema.d.ts +12 -0
  239. package/dist/docs/methods/delete_header/schema.d.ts.map +1 -0
  240. package/dist/docs/methods/delete_header/schema.js +13 -0
  241. package/dist/docs/methods/delete_header/schema.js.map +1 -0
  242. package/dist/docs/methods/delete_named_range/handler.d.ts +5 -0
  243. package/dist/docs/methods/delete_named_range/handler.d.ts.map +1 -0
  244. package/dist/docs/methods/delete_named_range/handler.js +9 -0
  245. package/dist/docs/methods/delete_named_range/handler.js.map +1 -0
  246. package/dist/docs/methods/delete_named_range/index.d.ts +17 -0
  247. package/dist/docs/methods/delete_named_range/index.d.ts.map +1 -0
  248. package/dist/docs/methods/delete_named_range/index.js +24 -0
  249. package/dist/docs/methods/delete_named_range/index.js.map +1 -0
  250. package/dist/docs/methods/delete_named_range/schema.d.ts +13 -0
  251. package/dist/docs/methods/delete_named_range/schema.d.ts.map +1 -0
  252. package/dist/docs/methods/delete_named_range/schema.js +21 -0
  253. package/dist/docs/methods/delete_named_range/schema.js.map +1 -0
  254. package/dist/docs/methods/delete_paragraph_bullets/handler.d.ts.map +1 -1
  255. package/dist/docs/methods/delete_paragraph_bullets/handler.js +2 -1
  256. package/dist/docs/methods/delete_paragraph_bullets/handler.js.map +1 -1
  257. package/dist/docs/methods/delete_paragraph_bullets/index.d.ts +1 -0
  258. package/dist/docs/methods/delete_paragraph_bullets/index.d.ts.map +1 -1
  259. package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts +1 -0
  260. package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts.map +1 -1
  261. package/dist/docs/methods/delete_positioned_object/handler.d.ts +5 -0
  262. package/dist/docs/methods/delete_positioned_object/handler.d.ts.map +1 -0
  263. package/dist/docs/methods/delete_positioned_object/handler.js +8 -0
  264. package/dist/docs/methods/delete_positioned_object/handler.js.map +1 -0
  265. package/dist/docs/methods/delete_positioned_object/index.d.ts +16 -0
  266. package/dist/docs/methods/delete_positioned_object/index.d.ts.map +1 -0
  267. package/dist/docs/methods/delete_positioned_object/index.js +24 -0
  268. package/dist/docs/methods/delete_positioned_object/index.js.map +1 -0
  269. package/dist/docs/methods/delete_positioned_object/schema.d.ts +12 -0
  270. package/dist/docs/methods/delete_positioned_object/schema.d.ts.map +1 -0
  271. package/dist/docs/methods/delete_positioned_object/schema.js +10 -0
  272. package/dist/docs/methods/delete_positioned_object/schema.js.map +1 -0
  273. package/dist/docs/methods/delete_table_column/handler.d.ts +5 -0
  274. package/dist/docs/methods/delete_table_column/handler.d.ts.map +1 -0
  275. package/dist/docs/methods/delete_table_column/handler.js +9 -0
  276. package/dist/docs/methods/delete_table_column/handler.js.map +1 -0
  277. package/dist/docs/methods/delete_table_column/index.d.ts +22 -0
  278. package/dist/docs/methods/delete_table_column/index.d.ts.map +1 -0
  279. package/dist/docs/methods/delete_table_column/index.js +23 -0
  280. package/dist/docs/methods/delete_table_column/index.js.map +1 -0
  281. package/dist/docs/methods/delete_table_column/schema.d.ts +19 -0
  282. package/dist/docs/methods/delete_table_column/schema.d.ts.map +1 -0
  283. package/dist/docs/methods/delete_table_column/schema.js +11 -0
  284. package/dist/docs/methods/delete_table_column/schema.js.map +1 -0
  285. package/dist/docs/methods/delete_table_row/handler.d.ts +5 -0
  286. package/dist/docs/methods/delete_table_row/handler.d.ts.map +1 -0
  287. package/dist/docs/methods/delete_table_row/handler.js +9 -0
  288. package/dist/docs/methods/delete_table_row/handler.js.map +1 -0
  289. package/dist/docs/methods/delete_table_row/index.d.ts +22 -0
  290. package/dist/docs/methods/delete_table_row/index.d.ts.map +1 -0
  291. package/dist/docs/methods/delete_table_row/index.js +23 -0
  292. package/dist/docs/methods/delete_table_row/index.js.map +1 -0
  293. package/dist/docs/methods/delete_table_row/schema.d.ts +19 -0
  294. package/dist/docs/methods/delete_table_row/schema.d.ts.map +1 -0
  295. package/dist/docs/methods/delete_table_row/schema.js +11 -0
  296. package/dist/docs/methods/delete_table_row/schema.js.map +1 -0
  297. package/dist/docs/methods/get_document/index.d.ts +14 -15
  298. package/dist/docs/methods/get_document/index.d.ts.map +1 -1
  299. package/dist/docs/methods/get_document/index.js +6 -4
  300. package/dist/docs/methods/get_document/index.js.map +1 -1
  301. package/dist/docs/methods/get_document/schema.d.ts +9 -12
  302. package/dist/docs/methods/get_document/schema.d.ts.map +1 -1
  303. package/dist/docs/methods/insert_inline_image/handler.d.ts +5 -0
  304. package/dist/docs/methods/insert_inline_image/handler.d.ts.map +1 -0
  305. package/dist/docs/methods/insert_inline_image/handler.js +23 -0
  306. package/dist/docs/methods/insert_inline_image/handler.js.map +1 -0
  307. package/dist/docs/methods/insert_inline_image/index.d.ts +20 -0
  308. package/dist/docs/methods/insert_inline_image/index.d.ts.map +1 -0
  309. package/dist/docs/methods/insert_inline_image/index.js +23 -0
  310. package/dist/docs/methods/insert_inline_image/index.js.map +1 -0
  311. package/dist/docs/methods/insert_inline_image/schema.d.ts +17 -0
  312. package/dist/docs/methods/insert_inline_image/schema.d.ts.map +1 -0
  313. package/dist/docs/methods/insert_inline_image/schema.js +44 -0
  314. package/dist/docs/methods/insert_inline_image/schema.js.map +1 -0
  315. package/dist/docs/methods/insert_page_break/handler.d.ts +5 -0
  316. package/dist/docs/methods/insert_page_break/handler.d.ts.map +1 -0
  317. package/dist/docs/methods/insert_page_break/handler.js +8 -0
  318. package/dist/docs/methods/insert_page_break/handler.js.map +1 -0
  319. package/dist/docs/methods/insert_page_break/index.d.ts +14 -0
  320. package/dist/docs/methods/insert_page_break/index.d.ts.map +1 -0
  321. package/dist/docs/methods/insert_page_break/index.js +22 -0
  322. package/dist/docs/methods/insert_page_break/index.js.map +1 -0
  323. package/dist/docs/methods/insert_page_break/schema.d.ts +12 -0
  324. package/dist/docs/methods/insert_page_break/schema.d.ts.map +1 -0
  325. package/dist/docs/methods/insert_page_break/schema.js +15 -0
  326. package/dist/docs/methods/insert_page_break/schema.js.map +1 -0
  327. package/dist/docs/methods/insert_section_break/handler.d.ts +5 -0
  328. package/dist/docs/methods/insert_section_break/handler.d.ts.map +1 -0
  329. package/dist/docs/methods/insert_section_break/handler.js +13 -0
  330. package/dist/docs/methods/insert_section_break/handler.js.map +1 -0
  331. package/dist/docs/methods/insert_section_break/index.d.ts +17 -0
  332. package/dist/docs/methods/insert_section_break/index.d.ts.map +1 -0
  333. package/dist/docs/methods/insert_section_break/index.js +21 -0
  334. package/dist/docs/methods/insert_section_break/index.js.map +1 -0
  335. package/dist/docs/methods/insert_section_break/schema.d.ts +16 -0
  336. package/dist/docs/methods/insert_section_break/schema.d.ts.map +1 -0
  337. package/dist/docs/methods/insert_section_break/schema.js +18 -0
  338. package/dist/docs/methods/insert_section_break/schema.js.map +1 -0
  339. package/dist/docs/methods/insert_table/handler.d.ts +5 -0
  340. package/dist/docs/methods/insert_table/handler.d.ts.map +1 -0
  341. package/dist/docs/methods/insert_table/handler.js +9 -0
  342. package/dist/docs/methods/insert_table/handler.js.map +1 -0
  343. package/dist/docs/methods/insert_table/index.d.ts +15 -0
  344. package/dist/docs/methods/insert_table/index.d.ts.map +1 -0
  345. package/dist/docs/methods/insert_table/index.js +21 -0
  346. package/dist/docs/methods/insert_table/index.js.map +1 -0
  347. package/dist/docs/methods/insert_table/schema.d.ts +14 -0
  348. package/dist/docs/methods/insert_table/schema.d.ts.map +1 -0
  349. package/dist/docs/methods/insert_table/schema.js +17 -0
  350. package/dist/docs/methods/insert_table/schema.js.map +1 -0
  351. package/dist/docs/methods/insert_table_column/handler.d.ts +5 -0
  352. package/dist/docs/methods/insert_table_column/handler.d.ts.map +1 -0
  353. package/dist/docs/methods/insert_table_column/handler.js +12 -0
  354. package/dist/docs/methods/insert_table_column/handler.js.map +1 -0
  355. package/dist/docs/methods/insert_table_column/index.d.ts +21 -0
  356. package/dist/docs/methods/insert_table_column/index.d.ts.map +1 -0
  357. package/dist/docs/methods/insert_table_column/index.js +21 -0
  358. package/dist/docs/methods/insert_table_column/index.js.map +1 -0
  359. package/dist/docs/methods/insert_table_column/schema.d.ts +20 -0
  360. package/dist/docs/methods/insert_table_column/schema.d.ts.map +1 -0
  361. package/dist/docs/methods/insert_table_column/schema.js +14 -0
  362. package/dist/docs/methods/insert_table_column/schema.js.map +1 -0
  363. package/dist/docs/methods/insert_table_row/handler.d.ts +5 -0
  364. package/dist/docs/methods/insert_table_row/handler.d.ts.map +1 -0
  365. package/dist/docs/methods/insert_table_row/handler.js +12 -0
  366. package/dist/docs/methods/insert_table_row/handler.js.map +1 -0
  367. package/dist/docs/methods/insert_table_row/index.d.ts +21 -0
  368. package/dist/docs/methods/insert_table_row/index.d.ts.map +1 -0
  369. package/dist/docs/methods/insert_table_row/index.js +21 -0
  370. package/dist/docs/methods/insert_table_row/index.js.map +1 -0
  371. package/dist/docs/methods/insert_table_row/schema.d.ts +20 -0
  372. package/dist/docs/methods/insert_table_row/schema.d.ts.map +1 -0
  373. package/dist/docs/methods/insert_table_row/schema.js +14 -0
  374. package/dist/docs/methods/insert_table_row/schema.js.map +1 -0
  375. package/dist/docs/methods/insert_text/handler.d.ts.map +1 -1
  376. package/dist/docs/methods/insert_text/handler.js +13 -2
  377. package/dist/docs/methods/insert_text/handler.js.map +1 -1
  378. package/dist/docs/methods/insert_text/index.d.ts +1 -0
  379. package/dist/docs/methods/insert_text/index.d.ts.map +1 -1
  380. package/dist/docs/methods/insert_text/schema.d.ts +1 -0
  381. package/dist/docs/methods/insert_text/schema.d.ts.map +1 -1
  382. package/dist/docs/methods/insert_text/schema.js +13 -3
  383. package/dist/docs/methods/insert_text/schema.js.map +1 -1
  384. package/dist/docs/methods/merge_table_cells/handler.d.ts +5 -0
  385. package/dist/docs/methods/merge_table_cells/handler.d.ts.map +1 -0
  386. package/dist/docs/methods/merge_table_cells/handler.js +9 -0
  387. package/dist/docs/methods/merge_table_cells/handler.js.map +1 -0
  388. package/dist/docs/methods/merge_table_cells/index.d.ts +26 -0
  389. package/dist/docs/methods/merge_table_cells/index.d.ts.map +1 -0
  390. package/dist/docs/methods/merge_table_cells/index.js +23 -0
  391. package/dist/docs/methods/merge_table_cells/index.js.map +1 -0
  392. package/dist/docs/methods/merge_table_cells/schema.d.ts +23 -0
  393. package/dist/docs/methods/merge_table_cells/schema.d.ts.map +1 -0
  394. package/dist/docs/methods/merge_table_cells/schema.js +11 -0
  395. package/dist/docs/methods/merge_table_cells/schema.js.map +1 -0
  396. package/dist/docs/methods/pin_table_header_rows/handler.d.ts +5 -0
  397. package/dist/docs/methods/pin_table_header_rows/handler.d.ts.map +1 -0
  398. package/dist/docs/methods/pin_table_header_rows/handler.js +12 -0
  399. package/dist/docs/methods/pin_table_header_rows/handler.js.map +1 -0
  400. package/dist/docs/methods/pin_table_header_rows/index.d.ts +17 -0
  401. package/dist/docs/methods/pin_table_header_rows/index.d.ts.map +1 -0
  402. package/dist/docs/methods/pin_table_header_rows/index.js +21 -0
  403. package/dist/docs/methods/pin_table_header_rows/index.js.map +1 -0
  404. package/dist/docs/methods/pin_table_header_rows/schema.d.ts +16 -0
  405. package/dist/docs/methods/pin_table_header_rows/schema.d.ts.map +1 -0
  406. package/dist/docs/methods/pin_table_header_rows/schema.js +16 -0
  407. package/dist/docs/methods/pin_table_header_rows/schema.js.map +1 -0
  408. package/dist/docs/methods/registry.d.ts +608 -24
  409. package/dist/docs/methods/registry.d.ts.map +1 -1
  410. package/dist/docs/methods/registry.js +57 -0
  411. package/dist/docs/methods/registry.js.map +1 -1
  412. package/dist/docs/methods/replace_image/handler.d.ts +5 -0
  413. package/dist/docs/methods/replace_image/handler.d.ts.map +1 -0
  414. package/dist/docs/methods/replace_image/handler.js +13 -0
  415. package/dist/docs/methods/replace_image/handler.js.map +1 -0
  416. package/dist/docs/methods/replace_image/index.d.ts +20 -0
  417. package/dist/docs/methods/replace_image/index.d.ts.map +1 -0
  418. package/dist/docs/methods/replace_image/index.js +24 -0
  419. package/dist/docs/methods/replace_image/index.js.map +1 -0
  420. package/dist/docs/methods/replace_image/schema.d.ts +16 -0
  421. package/dist/docs/methods/replace_image/schema.d.ts.map +1 -0
  422. package/dist/docs/methods/replace_image/schema.js +22 -0
  423. package/dist/docs/methods/replace_image/schema.js.map +1 -0
  424. package/dist/docs/methods/replace_named_range_content/handler.d.ts +5 -0
  425. package/dist/docs/methods/replace_named_range_content/handler.d.ts.map +1 -0
  426. package/dist/docs/methods/replace_named_range_content/handler.js +13 -0
  427. package/dist/docs/methods/replace_named_range_content/handler.js.map +1 -0
  428. package/dist/docs/methods/replace_named_range_content/index.d.ts +19 -0
  429. package/dist/docs/methods/replace_named_range_content/index.d.ts.map +1 -0
  430. package/dist/docs/methods/replace_named_range_content/index.js +25 -0
  431. package/dist/docs/methods/replace_named_range_content/index.js.map +1 -0
  432. package/dist/docs/methods/replace_named_range_content/schema.d.ts +14 -0
  433. package/dist/docs/methods/replace_named_range_content/schema.d.ts.map +1 -0
  434. package/dist/docs/methods/replace_named_range_content/schema.js +24 -0
  435. package/dist/docs/methods/replace_named_range_content/schema.js.map +1 -0
  436. package/dist/docs/methods/unmerge_table_cells/handler.d.ts +5 -0
  437. package/dist/docs/methods/unmerge_table_cells/handler.d.ts.map +1 -0
  438. package/dist/docs/methods/unmerge_table_cells/handler.js +9 -0
  439. package/dist/docs/methods/unmerge_table_cells/handler.js.map +1 -0
  440. package/dist/docs/methods/unmerge_table_cells/index.d.ts +26 -0
  441. package/dist/docs/methods/unmerge_table_cells/index.d.ts.map +1 -0
  442. package/dist/docs/methods/unmerge_table_cells/index.js +23 -0
  443. package/dist/docs/methods/unmerge_table_cells/index.js.map +1 -0
  444. package/dist/docs/methods/unmerge_table_cells/schema.d.ts +23 -0
  445. package/dist/docs/methods/unmerge_table_cells/schema.d.ts.map +1 -0
  446. package/dist/docs/methods/unmerge_table_cells/schema.js +11 -0
  447. package/dist/docs/methods/unmerge_table_cells/schema.js.map +1 -0
  448. package/dist/docs/methods/update_document_style/handler.d.ts +5 -0
  449. package/dist/docs/methods/update_document_style/handler.d.ts.map +1 -0
  450. package/dist/docs/methods/update_document_style/handler.js +38 -0
  451. package/dist/docs/methods/update_document_style/handler.js.map +1 -0
  452. package/dist/docs/methods/update_document_style/index.d.ts +40 -0
  453. package/dist/docs/methods/update_document_style/index.d.ts.map +1 -0
  454. package/dist/docs/methods/update_document_style/index.js +22 -0
  455. package/dist/docs/methods/update_document_style/index.js.map +1 -0
  456. package/dist/docs/methods/update_document_style/schema.d.ts +38 -0
  457. package/dist/docs/methods/update_document_style/schema.d.ts.map +1 -0
  458. package/dist/docs/methods/update_document_style/schema.js +13 -0
  459. package/dist/docs/methods/update_document_style/schema.js.map +1 -0
  460. package/dist/docs/methods/update_paragraph_style/handler.d.ts.map +1 -1
  461. package/dist/docs/methods/update_paragraph_style/handler.js +38 -2
  462. package/dist/docs/methods/update_paragraph_style/handler.js.map +1 -1
  463. package/dist/docs/methods/update_paragraph_style/index.d.ts +119 -0
  464. package/dist/docs/methods/update_paragraph_style/index.d.ts.map +1 -1
  465. package/dist/docs/methods/update_paragraph_style/index.js +1 -1
  466. package/dist/docs/methods/update_paragraph_style/index.js.map +1 -1
  467. package/dist/docs/methods/update_paragraph_style/schema.d.ts +119 -0
  468. package/dist/docs/methods/update_paragraph_style/schema.d.ts.map +1 -1
  469. package/dist/docs/methods/update_section_style/handler.d.ts +5 -0
  470. package/dist/docs/methods/update_section_style/handler.d.ts.map +1 -0
  471. package/dist/docs/methods/update_section_style/handler.js +31 -0
  472. package/dist/docs/methods/update_section_style/handler.js.map +1 -0
  473. package/dist/docs/methods/update_section_style/index.d.ts +38 -0
  474. package/dist/docs/methods/update_section_style/index.d.ts.map +1 -0
  475. package/dist/docs/methods/update_section_style/index.js +22 -0
  476. package/dist/docs/methods/update_section_style/index.js.map +1 -0
  477. package/dist/docs/methods/update_section_style/schema.d.ts +36 -0
  478. package/dist/docs/methods/update_section_style/schema.d.ts.map +1 -0
  479. package/dist/docs/methods/update_section_style/schema.js +15 -0
  480. package/dist/docs/methods/update_section_style/schema.js.map +1 -0
  481. package/dist/docs/methods/update_table_cell_style/handler.d.ts +5 -0
  482. package/dist/docs/methods/update_table_cell_style/handler.d.ts.map +1 -0
  483. package/dist/docs/methods/update_table_cell_style/handler.js +47 -0
  484. package/dist/docs/methods/update_table_cell_style/handler.js.map +1 -0
  485. package/dist/docs/methods/update_table_cell_style/index.d.ts +117 -0
  486. package/dist/docs/methods/update_table_cell_style/index.d.ts.map +1 -0
  487. package/dist/docs/methods/update_table_cell_style/index.js +22 -0
  488. package/dist/docs/methods/update_table_cell_style/index.js.map +1 -0
  489. package/dist/docs/methods/update_table_cell_style/schema.d.ts +115 -0
  490. package/dist/docs/methods/update_table_cell_style/schema.d.ts.map +1 -0
  491. package/dist/docs/methods/update_table_cell_style/schema.js +21 -0
  492. package/dist/docs/methods/update_table_cell_style/schema.js.map +1 -0
  493. package/dist/docs/methods/update_table_column_properties/handler.d.ts +5 -0
  494. package/dist/docs/methods/update_table_column_properties/handler.d.ts.map +1 -0
  495. package/dist/docs/methods/update_table_column_properties/handler.js +28 -0
  496. package/dist/docs/methods/update_table_column_properties/handler.js.map +1 -0
  497. package/dist/docs/methods/update_table_column_properties/index.d.ts +25 -0
  498. package/dist/docs/methods/update_table_column_properties/index.d.ts.map +1 -0
  499. package/dist/docs/methods/update_table_column_properties/index.js +22 -0
  500. package/dist/docs/methods/update_table_column_properties/index.js.map +1 -0
  501. package/dist/docs/methods/update_table_column_properties/schema.d.ts +23 -0
  502. package/dist/docs/methods/update_table_column_properties/schema.d.ts.map +1 -0
  503. package/dist/docs/methods/update_table_column_properties/schema.js +19 -0
  504. package/dist/docs/methods/update_table_column_properties/schema.js.map +1 -0
  505. package/dist/docs/methods/update_table_row_style/handler.d.ts +5 -0
  506. package/dist/docs/methods/update_table_row_style/handler.d.ts.map +1 -0
  507. package/dist/docs/methods/update_table_row_style/handler.js +28 -0
  508. package/dist/docs/methods/update_table_row_style/handler.js.map +1 -0
  509. package/dist/docs/methods/update_table_row_style/index.d.ts +23 -0
  510. package/dist/docs/methods/update_table_row_style/index.d.ts.map +1 -0
  511. package/dist/docs/methods/update_table_row_style/index.js +22 -0
  512. package/dist/docs/methods/update_table_row_style/index.js.map +1 -0
  513. package/dist/docs/methods/update_table_row_style/schema.d.ts +21 -0
  514. package/dist/docs/methods/update_table_row_style/schema.d.ts.map +1 -0
  515. package/dist/docs/methods/update_table_row_style/schema.js +19 -0
  516. package/dist/docs/methods/update_table_row_style/schema.js.map +1 -0
  517. package/dist/docs/methods/update_text_style/handler.d.ts.map +1 -1
  518. package/dist/docs/methods/update_text_style/handler.js +14 -5
  519. package/dist/docs/methods/update_text_style/handler.js.map +1 -1
  520. package/dist/docs/methods/update_text_style/index.d.ts +23 -0
  521. package/dist/docs/methods/update_text_style/index.d.ts.map +1 -1
  522. package/dist/docs/methods/update_text_style/index.js +1 -1
  523. package/dist/docs/methods/update_text_style/index.js.map +1 -1
  524. package/dist/docs/methods/update_text_style/schema.d.ts +23 -0
  525. package/dist/docs/methods/update_text_style/schema.d.ts.map +1 -1
  526. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QACxE,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,IAAI,CAAC;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAC1F,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6EAA6E,CAAC;QAC1F,WAAW,EAAE,CAAC;aACX,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,qGAAqG,CACtG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6JAA6J,CAC9J;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,kHAAkH,CACnH;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,8GAA8G,CAC/G;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3E,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oEAAoE,CAAC;QACjF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC1E,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;QACH,gBAAgB,EAAE,CAAC;aAChB,KAAK,CAAC,QAAQ,CAAC;aACf,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF,CAC1F;QACH,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACxE,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Event } from '../../entities/Event.js';\nimport { Reminder } from '../../entities/Reminder.js';\n\nexport const schema = {\n input: z.strictObject({\n eventId: z.string().describe('The ID of the recurring event to expand.'),\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID of the recurring event. The default is the user's primary calendar.\",\n ),\n maxResults: z\n .number()\n .int()\n .max(2500)\n .optional()\n .describe('Maximum number of instances returned on one result page (default 250, max 2500).'),\n pageToken: z.string().optional().describe('Token specifying which result page to return.'),\n originalStart: z\n .string()\n .optional()\n .describe('Filter to the single instance whose original start time matches this value.'),\n showDeleted: z\n .boolean()\n .optional()\n .describe(\n 'Whether to include deleted instances (with status \"cancelled\") in the result. The default is false.',\n ),\n timeMin: z\n .string()\n .optional()\n .describe(\n \"Lower bound (inclusive) for an instance's end time, as an RFC3339 timestamp with a mandatory time zone offset. Unlike list_events, this bound is inclusive.\",\n ),\n timeMax: z\n .string()\n .optional()\n .describe(\n \"Upper bound (exclusive) for an instance's start time, as an RFC3339 timestamp with a mandatory time zone offset.\",\n ),\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 the calendar's time zone.\",\n ),\n }),\n output: z.object({\n summary: z.string().optional().describe('Title of the calendar.'),\n description: z.string().optional().describe('Description of the calendar.'),\n updated: z\n .string()\n .optional()\n .describe('Last modification time of the calendar (as an ISO 8601 timestamp).'),\n timeZone: z.string().optional().describe('The time zone of the calendar.'),\n accessRole: z\n .string()\n .optional()\n .describe(\n \"The user's access role for this calendar. One of: none, freeBusyReader, reader, writer, owner.\",\n ),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe(\n 'The default reminders on the calendar, applied to all events that do not override them.',\n ),\n events: z.array(Event).describe('The instances of the recurring event.'),\n nextPageToken: z\n .string()\n .optional()\n .describe('Token used to access the next page of this result.'),\n }),\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QACxE,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,IAAI,CAAC;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAC1F,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6EAA6E,CAAC;QAC1F,WAAW,EAAE,CAAC;aACX,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,qGAAqG,CACtG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6JAA6J,CAC9J;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,kHAAkH,CACnH;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,8GAA8G,CAC/G;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3E,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oEAAoE,CAAC;QACjF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC1E,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,qDAAqD,SAAS,EAAE,GAAG,CAAC;QAChF,gBAAgB,EAAE,CAAC;aAChB,KAAK,CAAC,QAAQ,CAAC;aACf,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF,CAC1F;QACH,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACxE,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Event } from '../../entities/Event.js';\nimport { Reminder } from '../../entities/Reminder.js';\nimport { listRoles } from '../../lib/roles.js';\n\nexport const schema = {\n input: z.strictObject({\n eventId: z.string().describe('The ID of the recurring event to expand.'),\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID of the recurring event. The default is the user's primary calendar.\",\n ),\n maxResults: z\n .number()\n .int()\n .max(2500)\n .optional()\n .describe('Maximum number of instances returned on one result page (default 250, max 2500).'),\n pageToken: z.string().optional().describe('Token specifying which result page to return.'),\n originalStart: z\n .string()\n .optional()\n .describe('Filter to the single instance whose original start time matches this value.'),\n showDeleted: z\n .boolean()\n .optional()\n .describe(\n 'Whether to include deleted instances (with status \"cancelled\") in the result. The default is false.',\n ),\n timeMin: z\n .string()\n .optional()\n .describe(\n \"Lower bound (inclusive) for an instance's end time, as an RFC3339 timestamp with a mandatory time zone offset. Unlike list_events, this bound is inclusive.\",\n ),\n timeMax: z\n .string()\n .optional()\n .describe(\n \"Upper bound (exclusive) for an instance's start time, as an RFC3339 timestamp with a mandatory time zone offset.\",\n ),\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 the calendar's time zone.\",\n ),\n }),\n output: z.object({\n summary: z.string().optional().describe('Title of the calendar.'),\n description: z.string().optional().describe('Description of the calendar.'),\n updated: z\n .string()\n .optional()\n .describe('Last modification time of the calendar (as an ISO 8601 timestamp).'),\n timeZone: z.string().optional().describe('The time zone of the calendar.'),\n accessRole: z\n .string()\n .optional()\n .describe(`The user's access role for this calendar. One of: ${listRoles()}.`),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe(\n 'The default reminders on the calendar, applied to all events that do not override them.',\n ),\n events: z.array(Event).describe('The instances of the recurring event.'),\n nextPageToken: z\n .string()\n .optional()\n .describe('Token used to access the next page of this result.'),\n }),\n};\n"]}
@@ -10,10 +10,11 @@
10
10
  *
11
11
  * Open-world and not idempotent on the precedent of the sends
12
12
  * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to
13
- * true at Google, so replaying identical arguments can send a second email,
13
+ * true at Google, so replaying identical arguments can emit another round
14
+ * of sharing notifications,
14
15
  * and `src/lib/server.ts` reads `idempotentHint` as permission to silently
15
- * retry after a credential refresh. Lowering a role sends nothing, since
16
- * Google does not notify on access removal.
16
+ * retry after a credential refresh. Access removal sends no sharing
17
+ * notifications.
17
18
  */
18
19
  export declare const patch_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
19
20
  ruleId: import("zod").ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYzB,CAAC"}
@@ -13,13 +13,14 @@ import { schema } from './schema.js';
13
13
  *
14
14
  * Open-world and not idempotent on the precedent of the sends
15
15
  * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to
16
- * true at Google, so replaying identical arguments can send a second email,
16
+ * true at Google, so replaying identical arguments can emit another round
17
+ * of sharing notifications,
17
18
  * and `src/lib/server.ts` reads `idempotentHint` as permission to silently
18
- * retry after a credential refresh. Lowering a role sends nothing, since
19
- * Google does not notify on access removal.
19
+ * retry after a credential refresh. Access removal sends no sharing
20
+ * notifications.
20
21
  */
21
22
  export const patch_acl_rule = calendarOperation({
22
- description: "Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.",
23
+ description: "Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.",
23
24
  annotations: {
24
25
  readOnlyHint: false,
25
26
  destructiveHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EACT,8QAA8Q;IAChR,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,6EAA6E;IACrF,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 * Patch semantics: unset fields are left unchanged, so this is the operation\n * for changing a grant's role without restating its scope. For a whole\n * replacement, see update_acl_rule.\n *\n * Destructive on the standing-side-effect precedent of `gmail/create_filter`\n * and `sheets/add_protected_range` rather than the rubric's update default:\n * it changes who can reach a calendar, the access persists until revoked, and\n * it can escalate a scope to `owner`.\n *\n * Open-world and not idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to\n * true at Google, so replaying identical arguments can send a second email,\n * and `src/lib/server.ts` reads `idempotentHint` as permission to silently\n * retry after a credential refresh. Lowering a role sends nothing, since\n * Google does not notify on access removal.\n */\nexport const patch_acl_rule = calendarOperation({\n description:\n \"Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/patch',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EACT,uPAAuP;IACzP,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,6EAA6E;IACrF,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 * Patch semantics: unset fields are left unchanged, so this is the operation\n * for changing a grant's role without restating its scope. For a whole\n * replacement, see update_acl_rule.\n *\n * Destructive on the standing-side-effect precedent of `gmail/create_filter`\n * and `sheets/add_protected_range` rather than the rubric's update default:\n * it changes who can reach a calendar, the access persists until revoked, and\n * it can escalate a scope to `owner`.\n *\n * Open-world and not idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to\n * true at Google, so replaying identical arguments can emit another round\n * of sharing notifications,\n * and `src/lib/server.ts` reads `idempotentHint` as permission to silently\n * retry after a credential refresh. Access removal sends no sharing\n * notifications.\n */\nexport const patch_acl_rule = calendarOperation({\n description:\n \"Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/patch',\n schema,\n handler,\n});\n"]}
@@ -16,7 +16,7 @@ export const schema = {
16
16
  sendNotifications: z
17
17
  .boolean()
18
18
  .optional()
19
- .describe('Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.'),
19
+ .describe('Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.'),
20
20
  }),
21
21
  output: AclRule,
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,+GAA+G,CAChH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QAC7F,KAAK,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjC,6IAA6I,CAC9I;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to update, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe('The new role the rule grants; left unchanged when unset.'),\n scope: AclScope.optional().describe(\n 'The new scope the role is granted to; left unchanged when unset. A rule id derives from its scope, so changing it is rarely what is wanted.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.',\n ),\n }),\n output: AclRule,\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,+GAA+G,CAChH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QAC7F,KAAK,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjC,6IAA6I,CAC9I;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to update, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe('The new role the rule grants; left unchanged when unset.'),\n scope: AclScope.optional().describe(\n 'The new scope the role is granted to; left unchanged when unset. A rule id derives from its scope, so changing it is rarely what is wanted.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.',\n ),\n }),\n output: AclRule,\n};\n"]}
@@ -10,8 +10,8 @@ import type { calendar_v3 } from '@googleapis/calendar';
10
10
  * sharing grant is a standing side effect (the `create_filter` and
11
11
  * `sheets/add_protected_range` precedents) and can escalate a scope to
12
12
  * `owner`. Those three that take `sendNotifications` are also the only
13
- * open-world operations on this surface, since Google defaults it to true
14
- * and emails the grantee.
13
+ * open-world operations on this surface: Google defaults it to true, so they
14
+ * can send sharing notifications, potentially outside the organization.
15
15
  */
16
16
  export declare const methods: {
17
17
  list_event_instances: import("../../lib/operation.js").Operation<calendar_v3.Calendar, import("zod").ZodObject<{
@@ -32,8 +32,8 @@ import { update_calendar_entry } from './update_calendar_entry/index.js';
32
32
  * sharing grant is a standing side effect (the `create_filter` and
33
33
  * `sheets/add_protected_range` precedents) and can escalate a scope to
34
34
  * `owner`. Those three that take `sendNotifications` are also the only
35
- * open-world operations on this surface, since Google defaults it to true
36
- * and emails the grantee.
35
+ * open-world operations on this surface: Google defaults it to true, so they
36
+ * can send sharing notifications, potentially outside the organization.
37
37
  */
38
38
  export const methods = {
39
39
  // events
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/calendar/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,SAAS;IACT,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,eAAe;IACf,eAAe;IACf,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,UAAU;IACV,UAAU;IACV,aAAa;IACb,WAAW;CACiD,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { AnyOperation } from '../../lib/operation.js';\nimport { add_acl_rule } from './add_acl_rule/index.js';\nimport { add_calendar_entry } from './add_calendar_entry/index.js';\nimport { clear_calendar } from './clear_calendar/index.js';\nimport { create_calendar } from './create_calendar/index.js';\nimport { delete_acl_rule } from './delete_acl_rule/index.js';\nimport { delete_calendar } from './delete_calendar/index.js';\nimport { get_acl_rule } from './get_acl_rule/index.js';\nimport { get_calendar } from './get_calendar/index.js';\nimport { get_calendar_entry } from './get_calendar_entry/index.js';\nimport { get_colors } from './get_colors/index.js';\nimport { get_setting } from './get_setting/index.js';\nimport { list_acl_rules } from './list_acl_rules/index.js';\nimport { list_event_instances } from './list_event_instances/index.js';\nimport { list_settings } from './list_settings/index.js';\nimport { move_event } from './move_event/index.js';\nimport { patch_acl_rule } from './patch_acl_rule/index.js';\nimport { patch_event } from './patch_event/index.js';\nimport { query_free_busy } from './query_free_busy/index.js';\nimport { quick_add_event } from './quick_add_event/index.js';\nimport { remove_calendar_entry } from './remove_calendar_entry/index.js';\nimport { update_acl_rule } from './update_acl_rule/index.js';\nimport { update_calendar } from './update_calendar/index.js';\nimport { update_calendar_entry } from './update_calendar_entry/index.js';\n\n/**\n * REST-sourced operations (beyond the MCP toolset), sourced from\n * `developers.google.com/workspace/calendar/api/v3/reference`. Same wire\n * surface as tools; merged into the registry by the server. Removals (the\n * deletes and clear_calendar; reversible ones included) carry\n * `destructiveHint`; see EXTENDING.md's annotation rubric.\n *\n * The access-control writes carry it too, though they are not removals: a\n * sharing grant is a standing side effect (the `create_filter` and\n * `sheets/add_protected_range` precedents) and can escalate a scope to\n * `owner`. Those three that take `sendNotifications` are also the only\n * open-world operations on this surface, since Google defaults it to true\n * and emails the grantee.\n */\nexport const methods = {\n // events\n list_event_instances,\n move_event,\n quick_add_event,\n patch_event,\n // calendars\n get_calendar,\n create_calendar,\n update_calendar,\n delete_calendar,\n clear_calendar,\n // calendar list entries\n get_calendar_entry,\n add_calendar_entry,\n update_calendar_entry,\n remove_calendar_entry,\n // access control\n list_acl_rules,\n get_acl_rule,\n add_acl_rule,\n update_acl_rule,\n patch_acl_rule,\n delete_acl_rule,\n // availability\n query_free_busy,\n // account\n get_colors,\n list_settings,\n get_setting,\n} satisfies Record<string, AnyOperation<calendar_v3.Calendar>>;\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/calendar/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,SAAS;IACT,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,eAAe;IACf,eAAe;IACf,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,UAAU;IACV,UAAU;IACV,aAAa;IACb,WAAW;CACiD,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { AnyOperation } from '../../lib/operation.js';\nimport { add_acl_rule } from './add_acl_rule/index.js';\nimport { add_calendar_entry } from './add_calendar_entry/index.js';\nimport { clear_calendar } from './clear_calendar/index.js';\nimport { create_calendar } from './create_calendar/index.js';\nimport { delete_acl_rule } from './delete_acl_rule/index.js';\nimport { delete_calendar } from './delete_calendar/index.js';\nimport { get_acl_rule } from './get_acl_rule/index.js';\nimport { get_calendar } from './get_calendar/index.js';\nimport { get_calendar_entry } from './get_calendar_entry/index.js';\nimport { get_colors } from './get_colors/index.js';\nimport { get_setting } from './get_setting/index.js';\nimport { list_acl_rules } from './list_acl_rules/index.js';\nimport { list_event_instances } from './list_event_instances/index.js';\nimport { list_settings } from './list_settings/index.js';\nimport { move_event } from './move_event/index.js';\nimport { patch_acl_rule } from './patch_acl_rule/index.js';\nimport { patch_event } from './patch_event/index.js';\nimport { query_free_busy } from './query_free_busy/index.js';\nimport { quick_add_event } from './quick_add_event/index.js';\nimport { remove_calendar_entry } from './remove_calendar_entry/index.js';\nimport { update_acl_rule } from './update_acl_rule/index.js';\nimport { update_calendar } from './update_calendar/index.js';\nimport { update_calendar_entry } from './update_calendar_entry/index.js';\n\n/**\n * REST-sourced operations (beyond the MCP toolset), sourced from\n * `developers.google.com/workspace/calendar/api/v3/reference`. Same wire\n * surface as tools; merged into the registry by the server. Removals (the\n * deletes and clear_calendar; reversible ones included) carry\n * `destructiveHint`; see EXTENDING.md's annotation rubric.\n *\n * The access-control writes carry it too, though they are not removals: a\n * sharing grant is a standing side effect (the `create_filter` and\n * `sheets/add_protected_range` precedents) and can escalate a scope to\n * `owner`. Those three that take `sendNotifications` are also the only\n * open-world operations on this surface: Google defaults it to true, so they\n * can send sharing notifications, potentially outside the organization.\n */\nexport const methods = {\n // events\n list_event_instances,\n move_event,\n quick_add_event,\n patch_event,\n // calendars\n get_calendar,\n create_calendar,\n update_calendar,\n delete_calendar,\n clear_calendar,\n // calendar list entries\n get_calendar_entry,\n add_calendar_entry,\n update_calendar_entry,\n remove_calendar_entry,\n // access control\n list_acl_rules,\n get_acl_rule,\n add_acl_rule,\n update_acl_rule,\n patch_acl_rule,\n delete_acl_rule,\n // availability\n query_free_busy,\n // account\n get_colors,\n list_settings,\n get_setting,\n} satisfies Record<string, AnyOperation<calendar_v3.Calendar>>;\n"]}
@@ -18,12 +18,12 @@
18
18
  *
19
19
  * Open-world and NOT idempotent on the precedent of the sends
20
20
  * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`
21
- * defaults to true at Google: a replay with identical arguments can send the
22
- * grantee a second email, which is an additional effect on the environment.
21
+ * defaults to true at Google: a replay with identical arguments can send
22
+ * another round of sharing notifications, which is an additional effect on
23
+ * the environment.
23
24
  * The hint describes the riskiest accepted input, and `src/lib/server.ts`
24
25
  * reads `idempotentHint` as permission to silently retry after a credential
25
- * refresh. Lowering a role sends nothing, since Google does not notify on
26
- * access removal.
26
+ * refresh. Access removal sends no sharing notifications.
27
27
  */
28
28
  export declare const update_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
29
29
  ruleId: import("zod").ZodString;
@@ -21,15 +21,15 @@ import { schema } from './schema.js';
21
21
  *
22
22
  * Open-world and NOT idempotent on the precedent of the sends
23
23
  * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`
24
- * defaults to true at Google: a replay with identical arguments can send the
25
- * grantee a second email, which is an additional effect on the environment.
24
+ * defaults to true at Google: a replay with identical arguments can send
25
+ * another round of sharing notifications, which is an additional effect on
26
+ * the environment.
26
27
  * The hint describes the riskiest accepted input, and `src/lib/server.ts`
27
28
  * reads `idempotentHint` as permission to silently retry after a credential
28
- * refresh. Lowering a role sends nothing, since Google does not notify on
29
- * access removal.
29
+ * refresh. Access removal sends no sharing notifications.
30
30
  */
31
31
  export const update_acl_rule = calendarOperation({
32
- description: "Replace a rule on a calendar's access control list, setting the role granted to a scope. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.",
32
+ description: "Replace a rule on a calendar's access control list, setting the role granted to a scope. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.",
33
33
  annotations: {
34
34
  readOnlyHint: false,
35
35
  destructiveHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,6OAA6O;IAC/O,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Replaces a rule whole. `scope` is required and `role` is not, mirroring the\n * discovery document, which marks `role` required for `acl.insert` alone. For\n * changing only the role and leaving the rest alone, see patch_acl_rule.\n *\n * This is a PUT, which COVERAGE.md otherwise says the suite skips in favor of\n * patch. The reason that policy exists (a full-resource PUT over a lossy\n * projection clobbers the fields the projection dropped) does not apply here:\n * `role` and `scope` are the whole writable surface of an ACL rule, and both\n * are projected, so nothing can be clobbered by omission.\n *\n * Destructive despite the rubric's \"updates are not destructive\" default\n * (the `update_event` precedent), following instead the standing-side-effect\n * cluster of `gmail/create_filter` and `sheets/add_protected_range`: this\n * update changes who can reach a calendar, the access it confers persists\n * until something revokes it, and it can escalate a scope to `owner`, which\n * confers control over the calendar's own sharing.\n *\n * Open-world and NOT idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`\n * defaults to true at Google: a replay with identical arguments can send the\n * grantee a second email, which is an additional effect on the environment.\n * The hint describes the riskiest accepted input, and `src/lib/server.ts`\n * reads `idempotentHint` as permission to silently retry after a credential\n * refresh. Lowering a role sends nothing, since Google does not notify on\n * access removal.\n */\nexport const update_acl_rule = calendarOperation({\n description:\n \"Replace a rule on a calendar's access control list, setting the role granted to a scope. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/update',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,sNAAsN;IACxN,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Replaces a rule whole. `scope` is required and `role` is not, mirroring the\n * discovery document, which marks `role` required for `acl.insert` alone. For\n * changing only the role and leaving the rest alone, see patch_acl_rule.\n *\n * This is a PUT, which COVERAGE.md otherwise says the suite skips in favor of\n * patch. The reason that policy exists (a full-resource PUT over a lossy\n * projection clobbers the fields the projection dropped) does not apply here:\n * `role` and `scope` are the whole writable surface of an ACL rule, and both\n * are projected, so nothing can be clobbered by omission.\n *\n * Destructive despite the rubric's \"updates are not destructive\" default\n * (the `update_event` precedent), following instead the standing-side-effect\n * cluster of `gmail/create_filter` and `sheets/add_protected_range`: this\n * update changes who can reach a calendar, the access it confers persists\n * until something revokes it, and it can escalate a scope to `owner`, which\n * confers control over the calendar's own sharing.\n *\n * Open-world and NOT idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`\n * defaults to true at Google: a replay with identical arguments can send\n * another round of sharing notifications, which is an additional effect on\n * the environment.\n * The hint describes the riskiest accepted input, and `src/lib/server.ts`\n * reads `idempotentHint` as permission to silently retry after a credential\n * refresh. Access removal sends no sharing notifications.\n */\nexport const update_acl_rule = calendarOperation({\n description:\n \"Replace a rule on a calendar's access control list, setting the role granted to a scope. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/update',\n schema,\n handler,\n});\n"]}
@@ -16,7 +16,7 @@ export const schema = {
16
16
  sendNotifications: z
17
17
  .boolean()
18
18
  .optional()
19
- .describe('Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.'),
19
+ .describe('Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.'),
20
20
  }),
21
21
  output: AclRule,
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,gHAAgH,CACjH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/B,+IAA+I,CAChJ;QACD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CACtB,+FAA+F,CAChG;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to replace, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe(\n 'The role the rule grants after the replacement. Optional: the discovery document marks role required for acl.insert only, not for acl.update.',\n ),\n scope: AclScope.describe(\n 'Who the role is granted to. A rule id derives from its scope, so this must agree with ruleId.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.',\n ),\n }),\n output: AclRule,\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,gHAAgH,CACjH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/B,+IAA+I,CAChJ;QACD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CACtB,+FAA+F,CAChG;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to replace, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe(\n 'The role the rule grants after the replacement. Optional: the discovery document marks role required for acl.insert only, not for acl.update.',\n ),\n scope: AclScope.describe(\n 'Who the role is granted to. A rule id derives from its scope, so this must agree with ruleId.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.',\n ),\n }),\n output: AclRule,\n};\n"]}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A color value; the Docs API expresses every solid color as an RGB triple.
4
+ *
5
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Color
6
+ */
7
+ export declare const Color: z.ZodObject<{
8
+ rgbColor: z.ZodObject<{
9
+ red: z.ZodOptional<z.ZodNumber>;
10
+ green: z.ZodOptional<z.ZodNumber>;
11
+ blue: z.ZodOptional<z.ZodNumber>;
12
+ }, z.core.$strict>;
13
+ }, z.core.$strict>;
14
+ export type Color = z.infer<typeof Color>;
15
+ //# sourceMappingURL=Color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/Color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;kBAEhB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { RgbColor } from './RgbColor.js';
3
+ /**
4
+ * A color value; the Docs API expresses every solid color as an RGB triple.
5
+ *
6
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Color
7
+ */
8
+ export const Color = z.strictObject({
9
+ rgbColor: RgbColor.describe('The RGB color value.'),
10
+ });
11
+ //# sourceMappingURL=Color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.js","sourceRoot":"","sources":["../../../src/docs/entities/Color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,YAAY,CAAC;IAClC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { RgbColor } from './RgbColor.js';\n\n/**\n * A color value; the Docs API expresses every solid color as an RGB triple.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Color\n */\nexport const Color = z.strictObject({\n rgbColor: RgbColor.describe('The RGB color value.'),\n});\n\nexport type Color = z.infer<typeof Color>;\n"]}
@@ -1,10 +1,25 @@
1
1
  import { z } from 'zod';
2
+ import { StructuralElement } from './StructuralElement.js';
3
+ /**
4
+ * The content of one header, footer, or footnote segment: the same
5
+ * structural-element shape as the document body, so segment text is
6
+ * targetable exactly like body text (with the segment's id as `segmentId`,
7
+ * and indices starting at 0). An output-only wrapper over the REST Header,
8
+ * Footer, and Footnote (whose id lives in the map key).
9
+ *
10
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Header
11
+ */
12
+ export declare const SegmentContent: z.ZodObject<{
13
+ content: z.ZodArray<z.ZodType<StructuralElement, unknown, z.core.$ZodTypeInternals<StructuralElement, unknown>>>;
14
+ }, z.core.$strip>;
15
+ export type SegmentContent = z.infer<typeof SegmentContent>;
2
16
  /**
3
17
  * A document: identity, title, revision, and the body's blocks as text with
4
- * UTF-16 index ranges. This projection is what an agent needs to read a
5
- * document and to target edits; the recursive REST tree (tabs, table cells,
6
- * styles, objects, suggestions) is deferred (issue #36), and the body is the
7
- * legacy single-tab view.
18
+ * UTF-16 index ranges, plus its header, footer, and footnote segments keyed
19
+ * by the segmentId that writes address them with. This projection is what an
20
+ * agent needs to read a document and to target edits; the rest of the
21
+ * recursive REST tree (tabs, styles, objects, suggestions) is deferred
22
+ * (issue #36), and the body is the legacy single-tab view.
8
23
  *
9
24
  * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Document
10
25
  * @see https://developers.google.com/workspace/docs/api/concepts/structure
@@ -13,18 +28,15 @@ export declare const Document: z.ZodObject<{
13
28
  documentId: z.ZodString;
14
29
  title: z.ZodOptional<z.ZodString>;
15
30
  revisionId: z.ZodOptional<z.ZodString>;
16
- content: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
- startIndex: z.ZodOptional<z.ZodNumber>;
18
- endIndex: z.ZodOptional<z.ZodNumber>;
19
- type: z.ZodOptional<z.ZodEnum<{
20
- paragraph: "paragraph";
21
- sectionBreak: "sectionBreak";
22
- table: "table";
23
- tableOfContents: "tableOfContents";
24
- }>>;
25
- text: z.ZodOptional<z.ZodString>;
26
- rows: z.ZodOptional<z.ZodNumber>;
27
- columns: z.ZodOptional<z.ZodNumber>;
31
+ content: z.ZodOptional<z.ZodArray<z.ZodType<StructuralElement, unknown, z.core.$ZodTypeInternals<StructuralElement, unknown>>>>;
32
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
33
+ content: z.ZodArray<z.ZodType<StructuralElement, unknown, z.core.$ZodTypeInternals<StructuralElement, unknown>>>;
34
+ }, z.core.$strip>>>;
35
+ footers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
36
+ content: z.ZodArray<z.ZodType<StructuralElement, unknown, z.core.$ZodTypeInternals<StructuralElement, unknown>>>;
37
+ }, z.core.$strip>>>;
38
+ footnotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
39
+ content: z.ZodArray<z.ZodType<StructuralElement, unknown, z.core.$ZodTypeInternals<StructuralElement, unknown>>>;
28
40
  }, z.core.$strip>>>;
29
41
  }, z.core.$strip>;
30
42
  export type Document = z.infer<typeof Document>;
@@ -1 +1 @@
1
- {"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/Document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;iBAWnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/Document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;iBAMzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;iBA6BnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,26 @@
1
1
  import { z } from 'zod';
2
2
  import { StructuralElement } from './StructuralElement.js';
3
+ /**
4
+ * The content of one header, footer, or footnote segment: the same
5
+ * structural-element shape as the document body, so segment text is
6
+ * targetable exactly like body text (with the segment's id as `segmentId`,
7
+ * and indices starting at 0). An output-only wrapper over the REST Header,
8
+ * Footer, and Footnote (whose id lives in the map key).
9
+ *
10
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Header
11
+ */
12
+ export const SegmentContent = z.object({
13
+ content: z
14
+ .array(StructuralElement)
15
+ .describe("The segment's structural elements, in order; indices are relative to the segment and start at 0."),
16
+ });
3
17
  /**
4
18
  * A document: identity, title, revision, and the body's blocks as text with
5
- * UTF-16 index ranges. This projection is what an agent needs to read a
6
- * document and to target edits; the recursive REST tree (tabs, table cells,
7
- * styles, objects, suggestions) is deferred (issue #36), and the body is the
8
- * legacy single-tab view.
19
+ * UTF-16 index ranges, plus its header, footer, and footnote segments keyed
20
+ * by the segmentId that writes address them with. This projection is what an
21
+ * agent needs to read a document and to target edits; the rest of the
22
+ * recursive REST tree (tabs, styles, objects, suggestions) is deferred
23
+ * (issue #36), and the body is the legacy single-tab view.
9
24
  *
10
25
  * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Document
11
26
  * @see https://developers.google.com/workspace/docs/api/concepts/structure
@@ -21,5 +36,17 @@ export const Document = z.object({
21
36
  .array(StructuralElement)
22
37
  .optional()
23
38
  .describe("The body's structural elements, in document order."),
39
+ headers: z
40
+ .record(z.string(), SegmentContent)
41
+ .optional()
42
+ .describe('The headers in the document, keyed by headerId: the key is the segmentId that insert_text and the styling ranges take to write into that header. Absent when the document has none.'),
43
+ footers: z
44
+ .record(z.string(), SegmentContent)
45
+ .optional()
46
+ .describe('The footers in the document, keyed by footerId: the key is the segmentId that insert_text and the styling ranges take to write into that footer. Absent when the document has none.'),
47
+ footnotes: z
48
+ .record(z.string(), SegmentContent)
49
+ .optional()
50
+ .describe('The footnotes in the document, keyed by footnoteId: the key is the segmentId that insert_text and the styling ranges take to write into that footnote. Absent when the document has none.'),
24
51
  });
25
52
  //# sourceMappingURL=Document.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Document.js","sourceRoot":"","sources":["../../../src/docs/entities/Document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACnE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,EAAE;SACV,QAAQ,CAAC,oDAAoD,CAAC;CAClE,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { StructuralElement } from './StructuralElement.js';\n\n/**\n * A document: identity, title, revision, and the body's blocks as text with\n * UTF-16 index ranges. This projection is what an agent needs to read a\n * document and to target edits; the recursive REST tree (tabs, table cells,\n * styles, objects, suggestions) is deferred (issue #36), and the body is the\n * legacy single-tab view.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Document\n * @see https://developers.google.com/workspace/docs/api/concepts/structure\n */\nexport const Document = z.object({\n documentId: z.string().describe('The ID of the document.'),\n title: z.string().optional().describe('The title of the document.'),\n revisionId: z\n .string()\n .optional()\n .describe('The revision ID of the document; changes with every edit.'),\n content: z\n .array(StructuralElement)\n .optional()\n .describe(\"The body's structural elements, in document order.\"),\n});\n\nexport type Document = z.infer<typeof Document>;\n"]}
1
+ {"version":3,"file":"Document.js","sourceRoot":"","sources":["../../../src/docs/entities/Document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,CACP,kGAAkG,CACnG;CACJ,CAAC,CAAC;AAIH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACnE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,EAAE;SACV,QAAQ,CAAC,oDAAoD,CAAC;IACjE,OAAO,EAAE,CAAC;SACP,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC;SAClC,QAAQ,EAAE;SACV,QAAQ,CACP,qLAAqL,CACtL;IACH,OAAO,EAAE,CAAC;SACP,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC;SAClC,QAAQ,EAAE;SACV,QAAQ,CACP,qLAAqL,CACtL;IACH,SAAS,EAAE,CAAC;SACT,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC;SAClC,QAAQ,EAAE;SACV,QAAQ,CACP,2LAA2L,CAC5L;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { StructuralElement } from './StructuralElement.js';\n\n/**\n * The content of one header, footer, or footnote segment: the same\n * structural-element shape as the document body, so segment text is\n * targetable exactly like body text (with the segment's id as `segmentId`,\n * and indices starting at 0). An output-only wrapper over the REST Header,\n * Footer, and Footnote (whose id lives in the map key).\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Header\n */\nexport const SegmentContent = z.object({\n content: z\n .array(StructuralElement)\n .describe(\n \"The segment's structural elements, in order; indices are relative to the segment and start at 0.\",\n ),\n});\n\nexport type SegmentContent = z.infer<typeof SegmentContent>;\n\n/**\n * A document: identity, title, revision, and the body's blocks as text with\n * UTF-16 index ranges, plus its header, footer, and footnote segments keyed\n * by the segmentId that writes address them with. This projection is what an\n * agent needs to read a document and to target edits; the rest of the\n * recursive REST tree (tabs, styles, objects, suggestions) is deferred\n * (issue #36), and the body is the legacy single-tab view.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Document\n * @see https://developers.google.com/workspace/docs/api/concepts/structure\n */\nexport const Document = z.object({\n documentId: z.string().describe('The ID of the document.'),\n title: z.string().optional().describe('The title of the document.'),\n revisionId: z\n .string()\n .optional()\n .describe('The revision ID of the document; changes with every edit.'),\n content: z\n .array(StructuralElement)\n .optional()\n .describe(\"The body's structural elements, in document order.\"),\n headers: z\n .record(z.string(), SegmentContent)\n .optional()\n .describe(\n 'The headers in the document, keyed by headerId: the key is the segmentId that insert_text and the styling ranges take to write into that header. Absent when the document has none.',\n ),\n footers: z\n .record(z.string(), SegmentContent)\n .optional()\n .describe(\n 'The footers in the document, keyed by footerId: the key is the segmentId that insert_text and the styling ranges take to write into that footer. Absent when the document has none.',\n ),\n footnotes: z\n .record(z.string(), SegmentContent)\n .optional()\n .describe(\n 'The footnotes in the document, keyed by footnoteId: the key is the segmentId that insert_text and the styling ranges take to write into that footnote. Absent when the document has none.',\n ),\n});\n\nexport type Document = z.infer<typeof Document>;\n"]}
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The document-wide styling an agent can set: a curated projection of the
4
+ * REST DocumentStyle restricted to its writable fields. The header and
5
+ * footer ids and useCustomHeaderFooterMargins are read-only and stay in the
6
+ * REST entity (issue #36's read work). Dimension fields ride the fontSize
7
+ * precedent: plain numbers of points here, built into PT Dimensions at the
8
+ * request boundary.
9
+ *
10
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#DocumentStyle
11
+ */
12
+ export declare const DocumentStyle: z.ZodObject<{
13
+ marginTop: z.ZodOptional<z.ZodNumber>;
14
+ marginBottom: z.ZodOptional<z.ZodNumber>;
15
+ marginLeft: z.ZodOptional<z.ZodNumber>;
16
+ marginRight: z.ZodOptional<z.ZodNumber>;
17
+ marginHeader: z.ZodOptional<z.ZodNumber>;
18
+ marginFooter: z.ZodOptional<z.ZodNumber>;
19
+ pageSize: z.ZodOptional<z.ZodObject<{
20
+ height: z.ZodNumber;
21
+ width: z.ZodNumber;
22
+ }, z.core.$strict>>;
23
+ pageNumberStart: z.ZodOptional<z.ZodNumber>;
24
+ useFirstPageHeaderFooter: z.ZodOptional<z.ZodBoolean>;
25
+ useEvenPageHeaderFooter: z.ZodOptional<z.ZodBoolean>;
26
+ flipPageOrientation: z.ZodOptional<z.ZodBoolean>;
27
+ background: z.ZodOptional<z.ZodObject<{
28
+ color: z.ZodObject<{
29
+ color: z.ZodOptional<z.ZodObject<{
30
+ rgbColor: z.ZodObject<{
31
+ red: z.ZodOptional<z.ZodNumber>;
32
+ green: z.ZodOptional<z.ZodNumber>;
33
+ blue: z.ZodOptional<z.ZodNumber>;
34
+ }, z.core.$strict>;
35
+ }, z.core.$strict>>;
36
+ }, z.core.$strict>;
37
+ }, z.core.$strict>>;
38
+ }, z.core.$strict>;
39
+ export type DocumentStyle = z.infer<typeof DocumentStyle>;
40
+ //# sourceMappingURL=DocumentStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentStyle.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/DocumentStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiExB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { z } from 'zod';
2
+ import { OptionalColor } from './OptionalColor.js';
3
+ /**
4
+ * The document-wide styling an agent can set: a curated projection of the
5
+ * REST DocumentStyle restricted to its writable fields. The header and
6
+ * footer ids and useCustomHeaderFooterMargins are read-only and stay in the
7
+ * REST entity (issue #36's read work). Dimension fields ride the fontSize
8
+ * precedent: plain numbers of points here, built into PT Dimensions at the
9
+ * request boundary.
10
+ *
11
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#DocumentStyle
12
+ */
13
+ export const DocumentStyle = z.strictObject({
14
+ marginTop: z.number().min(0).optional().describe('The top page margin, in points.'),
15
+ marginBottom: z.number().min(0).optional().describe('The bottom page margin, in points.'),
16
+ marginLeft: z
17
+ .number()
18
+ .min(0)
19
+ .optional()
20
+ .describe('The left page margin, in points. Updating it adjusts column style in all sections.'),
21
+ marginRight: z
22
+ .number()
23
+ .min(0)
24
+ .optional()
25
+ .describe('The right page margin, in points. Updating it adjusts column style in all sections.'),
26
+ marginHeader: z
27
+ .number()
28
+ .min(0)
29
+ .optional()
30
+ .describe('The amount of space between the top of the page and the contents of the header, in points. Writing it makes the document use custom header and footer margins.'),
31
+ marginFooter: z
32
+ .number()
33
+ .min(0)
34
+ .optional()
35
+ .describe('The amount of space between the bottom of the page and the contents of the footer, in points. Writing it makes the document use custom header and footer margins.'),
36
+ pageSize: z
37
+ .strictObject({
38
+ height: z.number().positive().describe('The page height, in points.'),
39
+ width: z.number().positive().describe('The page width, in points.'),
40
+ })
41
+ .optional()
42
+ .describe('The size of a page in the document.'),
43
+ pageNumberStart: z
44
+ .number()
45
+ .int()
46
+ .optional()
47
+ .describe('The page number from which to start counting the number of pages.'),
48
+ useFirstPageHeaderFooter: z
49
+ .boolean()
50
+ .optional()
51
+ .describe('Whether to use the first-page header and footer ids for the first page of the document.'),
52
+ useEvenPageHeaderFooter: z
53
+ .boolean()
54
+ .optional()
55
+ .describe('Whether to use the even-page header and footer ids for even pages of the document.'),
56
+ flipPageOrientation: z
57
+ .boolean()
58
+ .optional()
59
+ .describe('Whether to flip the dimensions of pageSize, changing the page orientation between portrait and landscape.'),
60
+ background: z
61
+ .strictObject({
62
+ color: OptionalColor.describe('The background color; documents cannot have a transparent background, so the color field must be set.'),
63
+ })
64
+ .optional()
65
+ .describe('The background of the document.'),
66
+ });
67
+ //# sourceMappingURL=DocumentStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentStyle.js","sourceRoot":"","sources":["../../../src/docs/entities/DocumentStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACnF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACzF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,oFAAoF,CAAC;IACjG,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,qFAAqF,CACtF;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,gKAAgK,CACjK;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,mKAAmK,CACpK;IACH,QAAQ,EAAE,CAAC;SACR,YAAY,CAAC;QACZ,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QACrE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;KACpE,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,qCAAqC,CAAC;IAClD,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CAAC,mEAAmE,CAAC;IAChF,wBAAwB,EAAE,CAAC;SACxB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IACH,uBAAuB,EAAE,CAAC;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,oFAAoF,CAAC;IACjG,mBAAmB,EAAE,CAAC;SACnB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,2GAA2G,CAC5G;IACH,UAAU,EAAE,CAAC;SACV,YAAY,CAAC;QACZ,KAAK,EAAE,aAAa,CAAC,QAAQ,CAC3B,uGAAuG,CACxG;KACF,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,iCAAiC,CAAC;CAC/C,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { OptionalColor } from './OptionalColor.js';\n\n/**\n * The document-wide styling an agent can set: a curated projection of the\n * REST DocumentStyle restricted to its writable fields. The header and\n * footer ids and useCustomHeaderFooterMargins are read-only and stay in the\n * REST entity (issue #36's read work). Dimension fields ride the fontSize\n * precedent: plain numbers of points here, built into PT Dimensions at the\n * request boundary.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#DocumentStyle\n */\nexport const DocumentStyle = z.strictObject({\n marginTop: z.number().min(0).optional().describe('The top page margin, in points.'),\n marginBottom: z.number().min(0).optional().describe('The bottom page margin, in points.'),\n marginLeft: z\n .number()\n .min(0)\n .optional()\n .describe('The left page margin, in points. Updating it adjusts column style in all sections.'),\n marginRight: z\n .number()\n .min(0)\n .optional()\n .describe(\n 'The right page margin, in points. Updating it adjusts column style in all sections.',\n ),\n marginHeader: z\n .number()\n .min(0)\n .optional()\n .describe(\n 'The amount of space between the top of the page and the contents of the header, in points. Writing it makes the document use custom header and footer margins.',\n ),\n marginFooter: z\n .number()\n .min(0)\n .optional()\n .describe(\n 'The amount of space between the bottom of the page and the contents of the footer, in points. Writing it makes the document use custom header and footer margins.',\n ),\n pageSize: z\n .strictObject({\n height: z.number().positive().describe('The page height, in points.'),\n width: z.number().positive().describe('The page width, in points.'),\n })\n .optional()\n .describe('The size of a page in the document.'),\n pageNumberStart: z\n .number()\n .int()\n .optional()\n .describe('The page number from which to start counting the number of pages.'),\n useFirstPageHeaderFooter: z\n .boolean()\n .optional()\n .describe(\n 'Whether to use the first-page header and footer ids for the first page of the document.',\n ),\n useEvenPageHeaderFooter: z\n .boolean()\n .optional()\n .describe('Whether to use the even-page header and footer ids for even pages of the document.'),\n flipPageOrientation: z\n .boolean()\n .optional()\n .describe(\n 'Whether to flip the dimensions of pageSize, changing the page orientation between portrait and landscape.',\n ),\n background: z\n .strictObject({\n color: OptionalColor.describe(\n 'The background color; documents cannot have a transparent background, so the color field must be set.',\n ),\n })\n .optional()\n .describe('The background of the document.'),\n});\n\nexport type DocumentStyle = z.infer<typeof DocumentStyle>;\n"]}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A particular spot in the document, in zero-based UTF-16 code units. A
4
+ * location addresses the body (the default) or, via `segmentId`, a header,
5
+ * footer, or footnote segment (issue #36's segment addressing; the REST
6
+ * Location's `tabId` stays deferred there): locations without a segment ID
7
+ * address the body of the first tab.
8
+ *
9
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Location
10
+ */
11
+ export declare const Location: z.ZodObject<{
12
+ segmentId: z.ZodOptional<z.ZodString>;
13
+ index: z.ZodNumber;
14
+ }, z.core.$strict>;
15
+ export type Location = z.infer<typeof Location>;
16
+ //# sourceMappingURL=Location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Location.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/Location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;;;kBAuBlB,CAAC;AAEJ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A particular spot in the document, in zero-based UTF-16 code units. A
4
+ * location addresses the body (the default) or, via `segmentId`, a header,
5
+ * footer, or footnote segment (issue #36's segment addressing; the REST
6
+ * Location's `tabId` stays deferred there): locations without a segment ID
7
+ * address the body of the first tab.
8
+ *
9
+ * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Location
10
+ */
11
+ export const Location = z
12
+ .strictObject({
13
+ segmentId: z
14
+ .string()
15
+ .optional()
16
+ .describe("The ID of the header, footer, or footnote the location is in (a headerId, footerId, or footnoteId from get_document). An empty or omitted segment ID signifies the document's body."),
17
+ index: z
18
+ .number()
19
+ .int()
20
+ .min(0)
21
+ .describe('The zero-based index, in UTF-16 code units, relative to the beginning of the segment. Body content starts at index 1 (index 0 is the initial section break); header, footer, and footnote content starts at index 0. Indices shift on every edit; re-read the document before computing them.'),
22
+ })
23
+ .refine((location) => location.index >= 1 || (location.segmentId !== undefined && location.segmentId !== ''), {
24
+ message: 'index 0 addresses a segment; body locations start at index 1 (index 0 is the initial section break).',
25
+ });
26
+ //# sourceMappingURL=Location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Location.js","sourceRoot":"","sources":["../../../src/docs/entities/Location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,YAAY,CAAC;IACZ,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,qLAAqL,CACtL;IACH,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,+RAA+R,CAChS;CACJ,CAAC;KACD,MAAM,CACL,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,KAAK,SAAS,IAAI,QAAQ,CAAC,SAAS,KAAK,EAAE,CAAC,EACxF;IACE,OAAO,EACL,sGAAsG;CACzG,CACF,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A particular spot in the document, in zero-based UTF-16 code units. A\n * location addresses the body (the default) or, via `segmentId`, a header,\n * footer, or footnote segment (issue #36's segment addressing; the REST\n * Location's `tabId` stays deferred there): locations without a segment ID\n * address the body of the first tab.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#Location\n */\nexport const Location = z\n .strictObject({\n segmentId: z\n .string()\n .optional()\n .describe(\n \"The ID of the header, footer, or footnote the location is in (a headerId, footerId, or footnoteId from get_document). An empty or omitted segment ID signifies the document's body.\",\n ),\n index: z\n .number()\n .int()\n .min(0)\n .describe(\n 'The zero-based index, in UTF-16 code units, relative to the beginning of the segment. Body content starts at index 1 (index 0 is the initial section break); header, footer, and footnote content starts at index 0. Indices shift on every edit; re-read the document before computing them.',\n ),\n })\n .refine(\n (location) =>\n location.index >= 1 || (location.segmentId !== undefined && location.segmentId !== ''),\n {\n message:\n 'index 0 addresses a segment; body locations start at index 1 (index 0 is the initial section break).',\n },\n );\n\nexport type Location = z.infer<typeof Location>;\n"]}