google-mcp-suite 1.15.0 → 1.17.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 (218) hide show
  1. package/ADOPTING.md +2 -2
  2. package/README.md +5 -5
  3. package/dist/gmail/methods/download_attachment/handler.d.ts.map +1 -1
  4. package/dist/gmail/methods/download_attachment/handler.js +17 -1
  5. package/dist/gmail/methods/download_attachment/handler.js.map +1 -1
  6. package/dist/gmail/methods/download_attachment/index.d.ts +6 -2
  7. package/dist/gmail/methods/download_attachment/index.d.ts.map +1 -1
  8. package/dist/gmail/methods/download_attachment/index.js +4 -2
  9. package/dist/gmail/methods/download_attachment/index.js.map +1 -1
  10. package/dist/gmail/methods/download_attachment/schema.d.ts +3 -1
  11. package/dist/gmail/methods/download_attachment/schema.d.ts.map +1 -1
  12. package/dist/gmail/methods/download_attachment/schema.js +15 -1
  13. package/dist/gmail/methods/download_attachment/schema.js.map +1 -1
  14. package/dist/gmail/methods/registry.d.ts +3 -1
  15. package/dist/gmail/methods/registry.d.ts.map +1 -1
  16. package/dist/sheets/entities/BasicChartSpec.d.ts +5 -3
  17. package/dist/sheets/entities/BasicChartSpec.d.ts.map +1 -1
  18. package/dist/sheets/entities/BasicChartSpec.js +5 -3
  19. package/dist/sheets/entities/BasicChartSpec.js.map +1 -1
  20. package/dist/sheets/entities/BubbleChartSpec.d.ts +119 -0
  21. package/dist/sheets/entities/BubbleChartSpec.d.ts.map +1 -0
  22. package/dist/sheets/entities/BubbleChartSpec.js +50 -0
  23. package/dist/sheets/entities/BubbleChartSpec.js.map +1 -0
  24. package/dist/sheets/entities/CandlestickChartSpec.d.ts +78 -0
  25. package/dist/sheets/entities/CandlestickChartSpec.d.ts.map +1 -0
  26. package/dist/sheets/entities/CandlestickChartSpec.js +28 -0
  27. package/dist/sheets/entities/CandlestickChartSpec.js.map +1 -0
  28. package/dist/sheets/entities/ChartSpec.d.ts +818 -4
  29. package/dist/sheets/entities/ChartSpec.d.ts.map +1 -1
  30. package/dist/sheets/entities/ChartSpec.js +40 -4
  31. package/dist/sheets/entities/ChartSpec.js.map +1 -1
  32. package/dist/sheets/entities/DeveloperMetadataInput.d.ts +31 -0
  33. package/dist/sheets/entities/DeveloperMetadataInput.d.ts.map +1 -0
  34. package/dist/sheets/entities/DeveloperMetadataInput.js +29 -0
  35. package/dist/sheets/entities/DeveloperMetadataInput.js.map +1 -0
  36. package/dist/sheets/entities/DeveloperMetadataLocation.js +1 -1
  37. package/dist/sheets/entities/DeveloperMetadataLocation.js.map +1 -1
  38. package/dist/sheets/entities/HistogramChartSpec.d.ts +53 -0
  39. package/dist/sheets/entities/HistogramChartSpec.d.ts.map +1 -0
  40. package/dist/sheets/entities/HistogramChartSpec.js +45 -0
  41. package/dist/sheets/entities/HistogramChartSpec.js.map +1 -0
  42. package/dist/sheets/entities/OrgChartSpec.d.ts +85 -0
  43. package/dist/sheets/entities/OrgChartSpec.d.ts.map +1 -0
  44. package/dist/sheets/entities/OrgChartSpec.js +21 -0
  45. package/dist/sheets/entities/OrgChartSpec.js.map +1 -0
  46. package/dist/sheets/entities/ScorecardChartSpec.d.ts +161 -0
  47. package/dist/sheets/entities/ScorecardChartSpec.d.ts.map +1 -0
  48. package/dist/sheets/entities/ScorecardChartSpec.js +57 -0
  49. package/dist/sheets/entities/ScorecardChartSpec.js.map +1 -0
  50. package/dist/sheets/entities/Slicer.d.ts +172 -0
  51. package/dist/sheets/entities/Slicer.d.ts.map +1 -0
  52. package/dist/sheets/entities/Slicer.js +15 -0
  53. package/dist/sheets/entities/Slicer.js.map +1 -0
  54. package/dist/sheets/entities/SlicerSpec.d.ts +153 -0
  55. package/dist/sheets/entities/SlicerSpec.d.ts.map +1 -0
  56. package/dist/sheets/entities/SlicerSpec.js +33 -0
  57. package/dist/sheets/entities/SlicerSpec.js.map +1 -0
  58. package/dist/sheets/entities/Spreadsheet.d.ts +164 -1
  59. package/dist/sheets/entities/Spreadsheet.d.ts.map +1 -1
  60. package/dist/sheets/entities/Spreadsheet.js +9 -4
  61. package/dist/sheets/entities/Spreadsheet.js.map +1 -1
  62. package/dist/sheets/entities/TextPosition.d.ts +15 -0
  63. package/dist/sheets/entities/TextPosition.d.ts.map +1 -0
  64. package/dist/sheets/entities/TextPosition.js +13 -0
  65. package/dist/sheets/entities/TextPosition.js.map +1 -0
  66. package/dist/sheets/entities/TreemapChartSpec.d.ts +178 -0
  67. package/dist/sheets/entities/TreemapChartSpec.d.ts.map +1 -0
  68. package/dist/sheets/entities/TreemapChartSpec.js +44 -0
  69. package/dist/sheets/entities/TreemapChartSpec.js.map +1 -0
  70. package/dist/sheets/entities/WaterfallChartSpec.d.ts +113 -0
  71. package/dist/sheets/entities/WaterfallChartSpec.d.ts.map +1 -0
  72. package/dist/sheets/entities/WaterfallChartSpec.js +62 -0
  73. package/dist/sheets/entities/WaterfallChartSpec.js.map +1 -0
  74. package/dist/sheets/instructions.d.ts.map +1 -1
  75. package/dist/sheets/instructions.js +9 -5
  76. package/dist/sheets/instructions.js.map +1 -1
  77. package/dist/sheets/lib/charts.d.ts +1 -1
  78. package/dist/sheets/lib/charts.d.ts.map +1 -1
  79. package/dist/sheets/lib/charts.js +202 -4
  80. package/dist/sheets/lib/charts.js.map +1 -1
  81. package/dist/sheets/lib/filters.d.ts +9 -0
  82. package/dist/sheets/lib/filters.d.ts.map +1 -1
  83. package/dist/sheets/lib/filters.js +13 -3
  84. package/dist/sheets/lib/filters.js.map +1 -1
  85. package/dist/sheets/lib/formats.d.ts +2 -0
  86. package/dist/sheets/lib/formats.d.ts.map +1 -1
  87. package/dist/sheets/lib/formats.js +17 -0
  88. package/dist/sheets/lib/formats.js.map +1 -1
  89. package/dist/sheets/lib/metadata.d.ts +12 -0
  90. package/dist/sheets/lib/metadata.d.ts.map +1 -1
  91. package/dist/sheets/lib/metadata.js +23 -1
  92. package/dist/sheets/lib/metadata.js.map +1 -1
  93. package/dist/sheets/lib/slicers.d.ts +17 -0
  94. package/dist/sheets/lib/slicers.d.ts.map +1 -0
  95. package/dist/sheets/lib/slicers.js +67 -0
  96. package/dist/sheets/lib/slicers.js.map +1 -0
  97. package/dist/sheets/lib/spreadsheet.d.ts +2 -1
  98. package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
  99. package/dist/sheets/lib/spreadsheet.js +4 -1
  100. package/dist/sheets/lib/spreadsheet.js.map +1 -1
  101. package/dist/sheets/methods/add_chart/handler.d.ts.map +1 -1
  102. package/dist/sheets/methods/add_chart/handler.js +1 -2
  103. package/dist/sheets/methods/add_chart/handler.js.map +1 -1
  104. package/dist/sheets/methods/add_chart/index.d.ts +816 -2
  105. package/dist/sheets/methods/add_chart/index.d.ts.map +1 -1
  106. package/dist/sheets/methods/add_chart/index.js +2 -2
  107. package/dist/sheets/methods/add_chart/index.js.map +1 -1
  108. package/dist/sheets/methods/add_chart/schema.d.ts +814 -0
  109. package/dist/sheets/methods/add_chart/schema.d.ts.map +1 -1
  110. package/dist/sheets/methods/add_chart/schema.js +1 -1
  111. package/dist/sheets/methods/add_chart/schema.js.map +1 -1
  112. package/dist/sheets/methods/add_slicer/handler.d.ts +5 -0
  113. package/dist/sheets/methods/add_slicer/handler.d.ts.map +1 -0
  114. package/dist/sheets/methods/add_slicer/handler.js +17 -0
  115. package/dist/sheets/methods/add_slicer/handler.js.map +1 -0
  116. package/dist/sheets/methods/add_slicer/index.d.ts +333 -0
  117. package/dist/sheets/methods/add_slicer/index.d.ts.map +1 -0
  118. package/dist/sheets/methods/add_slicer/index.js +22 -0
  119. package/dist/sheets/methods/add_slicer/index.js.map +1 -0
  120. package/dist/sheets/methods/add_slicer/schema.d.ts +331 -0
  121. package/dist/sheets/methods/add_slicer/schema.d.ts.map +1 -0
  122. package/dist/sheets/methods/add_slicer/schema.js +19 -0
  123. package/dist/sheets/methods/add_slicer/schema.js.map +1 -0
  124. package/dist/sheets/methods/create_developer_metadata/handler.d.ts +5 -0
  125. package/dist/sheets/methods/create_developer_metadata/handler.d.ts.map +1 -0
  126. package/dist/sheets/methods/create_developer_metadata/handler.js +17 -0
  127. package/dist/sheets/methods/create_developer_metadata/handler.js.map +1 -0
  128. package/dist/sheets/methods/create_developer_metadata/index.d.ts +57 -0
  129. package/dist/sheets/methods/create_developer_metadata/index.d.ts.map +1 -0
  130. package/dist/sheets/methods/create_developer_metadata/index.js +22 -0
  131. package/dist/sheets/methods/create_developer_metadata/index.js.map +1 -0
  132. package/dist/sheets/methods/create_developer_metadata/schema.d.ts +55 -0
  133. package/dist/sheets/methods/create_developer_metadata/schema.d.ts.map +1 -0
  134. package/dist/sheets/methods/create_developer_metadata/schema.js +11 -0
  135. package/dist/sheets/methods/create_developer_metadata/schema.js.map +1 -0
  136. package/dist/sheets/methods/create_spreadsheet/index.d.ts +163 -0
  137. package/dist/sheets/methods/create_spreadsheet/index.d.ts.map +1 -1
  138. package/dist/sheets/methods/create_spreadsheet/schema.d.ts +163 -0
  139. package/dist/sheets/methods/create_spreadsheet/schema.d.ts.map +1 -1
  140. package/dist/sheets/methods/delete_developer_metadata/handler.d.ts +5 -0
  141. package/dist/sheets/methods/delete_developer_metadata/handler.d.ts.map +1 -0
  142. package/dist/sheets/methods/delete_developer_metadata/handler.js +12 -0
  143. package/dist/sheets/methods/delete_developer_metadata/handler.js.map +1 -0
  144. package/dist/sheets/methods/delete_developer_metadata/index.d.ts +86 -0
  145. package/dist/sheets/methods/delete_developer_metadata/index.d.ts.map +1 -0
  146. package/dist/sheets/methods/delete_developer_metadata/index.js +21 -0
  147. package/dist/sheets/methods/delete_developer_metadata/index.js.map +1 -0
  148. package/dist/sheets/methods/delete_developer_metadata/schema.d.ts +85 -0
  149. package/dist/sheets/methods/delete_developer_metadata/schema.d.ts.map +1 -0
  150. package/dist/sheets/methods/delete_developer_metadata/schema.js +15 -0
  151. package/dist/sheets/methods/delete_developer_metadata/schema.js.map +1 -0
  152. package/dist/sheets/methods/delete_embedded_object/index.d.ts +2 -2
  153. package/dist/sheets/methods/delete_embedded_object/index.js +3 -3
  154. package/dist/sheets/methods/delete_embedded_object/index.js.map +1 -1
  155. package/dist/sheets/methods/delete_embedded_object/schema.d.ts.map +1 -1
  156. package/dist/sheets/methods/delete_embedded_object/schema.js +1 -1
  157. package/dist/sheets/methods/delete_embedded_object/schema.js.map +1 -1
  158. package/dist/sheets/methods/get_spreadsheet/index.d.ts +164 -1
  159. package/dist/sheets/methods/get_spreadsheet/index.d.ts.map +1 -1
  160. package/dist/sheets/methods/get_spreadsheet/index.js +2 -2
  161. package/dist/sheets/methods/get_spreadsheet/index.js.map +1 -1
  162. package/dist/sheets/methods/get_spreadsheet/schema.d.ts +163 -0
  163. package/dist/sheets/methods/get_spreadsheet/schema.d.ts.map +1 -1
  164. package/dist/sheets/methods/registry.d.ts +2952 -274
  165. package/dist/sheets/methods/registry.d.ts.map +1 -1
  166. package/dist/sheets/methods/registry.js +13 -0
  167. package/dist/sheets/methods/registry.js.map +1 -1
  168. package/dist/sheets/methods/update_cells/index.d.ts +1 -1
  169. package/dist/sheets/methods/update_cells/index.js +1 -1
  170. package/dist/sheets/methods/update_cells/index.js.map +1 -1
  171. package/dist/sheets/methods/update_chart_spec/handler.d.ts.map +1 -1
  172. package/dist/sheets/methods/update_chart_spec/handler.js +1 -2
  173. package/dist/sheets/methods/update_chart_spec/handler.js.map +1 -1
  174. package/dist/sheets/methods/update_chart_spec/index.d.ts +814 -0
  175. package/dist/sheets/methods/update_chart_spec/index.d.ts.map +1 -1
  176. package/dist/sheets/methods/update_chart_spec/index.js +1 -1
  177. package/dist/sheets/methods/update_chart_spec/index.js.map +1 -1
  178. package/dist/sheets/methods/update_chart_spec/schema.d.ts +814 -0
  179. package/dist/sheets/methods/update_chart_spec/schema.d.ts.map +1 -1
  180. package/dist/sheets/methods/update_chart_spec/schema.js +1 -1
  181. package/dist/sheets/methods/update_chart_spec/schema.js.map +1 -1
  182. package/dist/sheets/methods/update_developer_metadata/handler.d.ts +5 -0
  183. package/dist/sheets/methods/update_developer_metadata/handler.d.ts.map +1 -0
  184. package/dist/sheets/methods/update_developer_metadata/handler.js +22 -0
  185. package/dist/sheets/methods/update_developer_metadata/handler.js.map +1 -0
  186. package/dist/sheets/methods/update_developer_metadata/index.d.ts +105 -0
  187. package/dist/sheets/methods/update_developer_metadata/index.d.ts.map +1 -0
  188. package/dist/sheets/methods/update_developer_metadata/index.js +21 -0
  189. package/dist/sheets/methods/update_developer_metadata/index.js.map +1 -0
  190. package/dist/sheets/methods/update_developer_metadata/schema.d.ts +104 -0
  191. package/dist/sheets/methods/update_developer_metadata/schema.d.ts.map +1 -0
  192. package/dist/sheets/methods/update_developer_metadata/schema.js +21 -0
  193. package/dist/sheets/methods/update_developer_metadata/schema.js.map +1 -0
  194. package/dist/sheets/methods/update_named_range/handler.d.ts +5 -0
  195. package/dist/sheets/methods/update_named_range/handler.d.ts.map +1 -0
  196. package/dist/sheets/methods/update_named_range/handler.js +21 -0
  197. package/dist/sheets/methods/update_named_range/handler.js.map +1 -0
  198. package/dist/sheets/methods/update_named_range/index.d.ts +23 -0
  199. package/dist/sheets/methods/update_named_range/index.d.ts.map +1 -0
  200. package/dist/sheets/methods/update_named_range/index.js +22 -0
  201. package/dist/sheets/methods/update_named_range/index.js.map +1 -0
  202. package/dist/sheets/methods/update_named_range/schema.d.ts +22 -0
  203. package/dist/sheets/methods/update_named_range/schema.d.ts.map +1 -0
  204. package/dist/sheets/methods/update_named_range/schema.js +20 -0
  205. package/dist/sheets/methods/update_named_range/schema.js.map +1 -0
  206. package/dist/sheets/methods/update_slicer_spec/handler.d.ts +5 -0
  207. package/dist/sheets/methods/update_slicer_spec/handler.d.ts.map +1 -0
  208. package/dist/sheets/methods/update_slicer_spec/handler.js +25 -0
  209. package/dist/sheets/methods/update_slicer_spec/handler.js.map +1 -0
  210. package/dist/sheets/methods/update_slicer_spec/index.d.ts +160 -0
  211. package/dist/sheets/methods/update_slicer_spec/index.d.ts.map +1 -0
  212. package/dist/sheets/methods/update_slicer_spec/index.js +22 -0
  213. package/dist/sheets/methods/update_slicer_spec/index.js.map +1 -0
  214. package/dist/sheets/methods/update_slicer_spec/schema.d.ts +159 -0
  215. package/dist/sheets/methods/update_slicer_spec/schema.d.ts.map +1 -0
  216. package/dist/sheets/methods/update_slicer_spec/schema.js +16 -0
  217. package/dist/sheets/methods/update_slicer_spec/schema.js.map +1 -0
  218. package/package.json +1 -1
package/ADOPTING.md CHANGED
@@ -19,8 +19,8 @@ the differences are concrete:
19
19
 
20
20
  - **MCP and then some.** The Gmail, Calendar, and Drive servers expose
21
21
  Google's curated MCP toolset *plus* the broader REST method surface;
22
- Sheets and Docs are REST-sourced throughout: [172 operations](./README.md#services)
23
- across Gmail (33), Calendar (25), Drive (35), Sheets (70), and Docs (9). Each
22
+ Sheets and Docs are REST-sourced throughout: [178 operations](./README.md#services)
23
+ across Gmail (33), Calendar (25), Drive (35), Sheets (76), and Docs (9). Each
24
24
  service's `CAPABILITIES.md` enumerates its operations with provenance.
25
25
  Built-in connectors document a narrower surface; as of this writing,
26
26
  Anthropic documents its claude.ai Gmail connector as searching, reading,
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  <p align="center">
16
16
  <strong>Google Workspace MCP servers you can read in an afternoon, one per service.</strong><br />
17
- The curated <a href="https://modelcontextprotocol.io/">MCP</a> toolset plus the broader REST surface for Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets, one server per service per account: <strong>172 self-describing operations</strong> across five Google services, so an AI agent (Claude, Cursor, or any MCP client) can do (nearly) anything your accounts can, on several accounts at once, and never on the wrong one. Every operation cites its Google reference page and validates input and output; test coverage is pinned at 100%.
17
+ The curated <a href="https://modelcontextprotocol.io/">MCP</a> toolset plus the broader REST surface for Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets, one server per service per account: <strong>178 self-describing operations</strong> across five Google services, so an AI agent (Claude, Cursor, or any MCP client) can do (nearly) anything your accounts can, on several accounts at once, and never on the wrong one. Every operation cites its Google reference page and validates input and output; test coverage is pinned at 100%.
18
18
  </p>
19
19
 
20
20
  <p align="center">
@@ -30,7 +30,7 @@
30
30
  </p>
31
31
 
32
32
  <p align="center">
33
- <sub><strong>172 operations</strong> ship today: <strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25</a>), <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">70</a>), <strong>Docs</strong> (<a href="./src/docs/CAPABILITIES.md">9</a>), and <strong>Drive</strong> (<a href="./src/drive/CAPABILITIES.md">35</a>).</sub>
33
+ <sub><strong>178 operations</strong> ship today: <strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25</a>), <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">76</a>), <strong>Docs</strong> (<a href="./src/docs/CAPABILITIES.md">9</a>), and <strong>Drive</strong> (<a href="./src/drive/CAPABILITIES.md">35</a>).</sub>
34
34
  </p>
35
35
 
36
36
  <p align="center"><sub><strong>Replacing a built-in connector?</strong> Hand your agent <a href="./ADOPTING.md">ADOPTING.md</a>: the playbook to adopt, supersede, verify, and decommission.</sub></p>
@@ -46,7 +46,7 @@ The design has two internal concepts and nothing else:
46
46
 
47
47
  That is the whole surface. Read one operation folder and you understand all of them.
48
48
 
49
- - **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17), Drive with [35](./src/drive/CAPABILITIES.md) (8 plus 27), Sheets with [70](./src/sheets/CAPABILITIES.md), and Docs with [9](./src/docs/CAPABILITIES.md) (Sheets and Docs are REST-sourced throughout; Google published no MCP toolset for either when they shipped, though previews now exist); the split is explained in [MCP, and then some](#mcp-and-then-some).
49
+ - **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17), Drive with [35](./src/drive/CAPABILITIES.md) (8 plus 27), Sheets with [76](./src/sheets/CAPABILITIES.md), and Docs with [9](./src/docs/CAPABILITIES.md) (Sheets and Docs are REST-sourced throughout; Google published no MCP toolset for either when they shipped, though previews now exist); the split is explained in [MCP, and then some](#mcp-and-then-some).
50
50
  - **The folder tree mirrors Google's docs.** A Google tools-list reference page becomes a `tools/` folder; a Google REST method reference page becomes a `methods/` folder. If you can find the operation in Google's docs, you can find it in this repo.
51
51
 
52
52
  | Google's reference page | This repo's folder |
@@ -67,7 +67,7 @@ This is an MCP server, and deliberately more than one. Google publishes an MCP t
67
67
  - **`tools/`** mirrors Google's **MCP toolset** reference, verbatim.
68
68
  - **`methods/`** covers the broader **REST** reference, the operations the MCP toolset omits.
69
69
 
70
- The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google published no MCP toolset for either when they shipped (developer previews have since appeared), so those servers are methods-only ([70](./src/sheets/CAPABILITIES.md) and [9](./src/docs/CAPABILITIES.md) operations sourced entirely from the REST reference). Keeping the two sourced surfaces separate also makes each new operation a bounded, documentation-driven unit of work; the recipe is in [EXTENDING.md](./EXTENDING.md).
70
+ The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google published no MCP toolset for either when they shipped (developer previews have since appeared), so those servers are methods-only ([76](./src/sheets/CAPABILITIES.md) and [9](./src/docs/CAPABILITIES.md) operations sourced entirely from the REST reference). Keeping the two sourced surfaces separate also makes each new operation a bounded, documentation-driven unit of work; the recipe is in [EXTENDING.md](./EXTENDING.md).
71
71
 
72
72
  ## Quickstart
73
73
 
@@ -187,7 +187,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full task list, [AGENTS.md](./A
187
187
  |---|---|---|
188
188
  | **Gmail** | ✅ Implemented | [33 operations](./src/gmail/CAPABILITIES.md): threads, messages, drafts, labels, filters, attachments |
189
189
  | **Calendar** | ✅ Implemented | [25 operations](./src/calendar/CAPABILITIES.md): events, calendars, free/busy, meeting-time suggestions |
190
- | **Sheets** | ✅ Implemented | [70 operations](./src/sheets/CAPABILITIES.md): spreadsheets, values, batch and data-filter reads/writes, developer metadata, sheet management, dimension layout and groups, named ranges, formatting, banding and borders, cell content and merges, sorting, filters, data transformations, conditional format rules, data validation, protected ranges, charts and embedded-object layout |
190
+ | **Sheets** | ✅ Implemented | [76 operations](./src/sheets/CAPABILITIES.md): spreadsheets, values, batch and data-filter reads/writes, developer metadata, sheet management, dimension layout and groups, named ranges, formatting, banding and borders, cell content and merges, sorting, filters, data transformations, conditional format rules, data validation, protected ranges, every ordinary-grid chart family, slicers, and embedded-object layout |
191
191
  | **Docs** | ✅ Implemented | [9 operations](./src/docs/CAPABILITIES.md): document reads and creation, curated text editing and styling |
192
192
  | **Drive** | ✅ Implemented | [35 operations](./src/drive/CAPABILITIES.md): files, search, content, comments, revisions, shared drives |
193
193
 
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAexC"}
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CA+BxC"}
@@ -1,3 +1,5 @@
1
+ import { mkdir, writeFile } from 'node:fs/promises';
2
+ import { dirname } from 'node:path';
1
3
  import { assertWithinDownloadCap } from '../../../lib/limits.js';
2
4
  export async function handler(gmail, args) {
3
5
  const { data } = await gmail.users.messages.attachments.get({
@@ -9,10 +11,24 @@ export async function handler(gmail, args) {
9
11
  // maximum sits at the boundary, so this is symmetry, not a new policy.
10
12
  const size = data.size ?? 0;
11
13
  assertWithinDownloadCap(size, { subject: 'Attachment', action: 'base64 transfers' });
14
+ const base64url = data.data ?? '';
15
+ // Disk path: decode and write the bytes, returning the path instead of a
16
+ // large base64 string, so a caller can persist an attachment without
17
+ // buffering it through the conversation as text.
18
+ if (args.savePath !== undefined) {
19
+ const bytes = Buffer.from(base64url, 'base64url');
20
+ await mkdir(dirname(args.savePath), { recursive: true });
21
+ await writeFile(args.savePath, bytes);
22
+ return {
23
+ attachmentId: args.attachmentId,
24
+ size: bytes.byteLength,
25
+ path: args.savePath,
26
+ };
27
+ }
12
28
  return {
13
29
  attachmentId: args.attachmentId,
14
30
  size,
15
- data: data.data ?? '',
31
+ data: base64url,
16
32
  };
17
33
  }
18
34
  //# sourceMappingURL=handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC;QAC1D,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,EAAE,EAAE,IAAI,CAAC,YAAY;KACtB,CAAC,CAAC;IACH,yEAAyE;IACzE,uEAAuE;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;IAC5B,uBAAuB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACrF,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,IAAI;QACJ,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE;KACtB,CAAC;AACJ,CAAC","sourcesContent":["import type { gmail_v1 } from '@googleapis/gmail';\nimport type { z } from 'zod';\nimport { assertWithinDownloadCap } from '../../../lib/limits.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n gmail: gmail_v1.Gmail,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await gmail.users.messages.attachments.get({\n userId: 'me',\n messageId: args.messageId,\n id: args.attachmentId,\n });\n // The same ceiling Drive's content tools enforce; Gmail's own attachment\n // maximum sits at the boundary, so this is symmetry, not a new policy.\n const size = data.size ?? 0;\n assertWithinDownloadCap(size, { subject: 'Attachment', action: 'base64 transfers' });\n return {\n attachmentId: args.attachmentId,\n size,\n data: data.data ?? '',\n };\n}\n"]}
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAqB,EACrB,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC;QAC1D,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,EAAE,EAAE,IAAI,CAAC,YAAY;KACtB,CAAC,CAAC;IACH,yEAAyE;IACzE,uEAAuE;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;IAC5B,uBAAuB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACrF,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IAElC,yEAAyE;IACzE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAClD,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,MAAM,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,IAAI,EAAE,KAAK,CAAC,UAAU;YACtB,IAAI,EAAE,IAAI,CAAC,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,IAAI;QACJ,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC","sourcesContent":["import { mkdir, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\nimport type { gmail_v1 } from '@googleapis/gmail';\nimport type { z } from 'zod';\nimport { assertWithinDownloadCap } from '../../../lib/limits.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n gmail: gmail_v1.Gmail,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await gmail.users.messages.attachments.get({\n userId: 'me',\n messageId: args.messageId,\n id: args.attachmentId,\n });\n // The same ceiling Drive's content tools enforce; Gmail's own attachment\n // maximum sits at the boundary, so this is symmetry, not a new policy.\n const size = data.size ?? 0;\n assertWithinDownloadCap(size, { subject: 'Attachment', action: 'base64 transfers' });\n const base64url = data.data ?? '';\n\n // Disk path: decode and write the bytes, returning the path instead of a\n // large base64 string, so a caller can persist an attachment without\n // buffering it through the conversation as text.\n if (args.savePath !== undefined) {\n const bytes = Buffer.from(base64url, 'base64url');\n await mkdir(dirname(args.savePath), { recursive: true });\n await writeFile(args.savePath, bytes);\n return {\n attachmentId: args.attachmentId,\n size: bytes.byteLength,\n path: args.savePath,\n };\n }\n\n return {\n attachmentId: args.attachmentId,\n size,\n data: base64url,\n };\n}\n"]}
@@ -1,12 +1,16 @@
1
1
  /**
2
- * Returns the attachment bytes base64url-encoded, as Gmail returns them.
2
+ * Returns the attachment bytes base64url-encoded, as Gmail returns them, or
3
+ * writes them to disk and returns the path when `savePath` is set (avoiding a
4
+ * large base64 payload in the response).
3
5
  */
4
6
  export declare const download_attachment: import("../../../lib/operation.js").Operation<import("@googleapis/gmail").gmail_v1.Gmail, import("zod").ZodObject<{
5
7
  messageId: import("zod").ZodString;
6
8
  attachmentId: import("zod").ZodString;
9
+ savePath: import("zod").ZodOptional<import("zod").ZodString>;
7
10
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
8
11
  attachmentId: import("zod").ZodString;
9
12
  size: import("zod").ZodNumber;
10
- data: import("zod").ZodString;
13
+ data: import("zod").ZodOptional<import("zod").ZodString>;
14
+ path: import("zod").ZodOptional<import("zod").ZodString>;
11
15
  }, import("zod/v4/core").$strip>>;
12
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/index.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;iCAY9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/index.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;iCAa9B,CAAC"}
@@ -2,10 +2,12 @@ import { gmailOperation } from '../../operation.js';
2
2
  import { handler } from './handler.js';
3
3
  import { schema } from './schema.js';
4
4
  /**
5
- * Returns the attachment bytes base64url-encoded, as Gmail returns them.
5
+ * Returns the attachment bytes base64url-encoded, as Gmail returns them, or
6
+ * writes them to disk and returns the path when `savePath` is set (avoiding a
7
+ * large base64 payload in the response).
6
8
  */
7
9
  export const download_attachment = gmailOperation({
8
- description: 'Download a message attachment (base64url-encoded bytes).',
10
+ description: 'Download a message attachment. Returns base64url-encoded bytes inline, or writes them to disk and returns the path when savePath is set.',
9
11
  annotations: {
10
12
  readOnlyHint: true,
11
13
  destructiveHint: false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAChD,WAAW,EAAE,0DAA0D;IACvE,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,oGAAoG;IACtG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { gmailOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Returns the attachment bytes base64url-encoded, as Gmail returns them.\n */\nexport const download_attachment = gmailOperation({\n description: 'Download a message attachment (base64url-encoded bytes).',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.messages.attachments/get',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAChD,WAAW,EACT,0IAA0I;IAC5I,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,oGAAoG;IACtG,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { gmailOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Returns the attachment bytes base64url-encoded, as Gmail returns them, or\n * writes them to disk and returns the path when `savePath` is set (avoiding a\n * large base64 payload in the response).\n */\nexport const download_attachment = gmailOperation({\n description:\n 'Download a message attachment. Returns base64url-encoded bytes inline, or writes them to disk and returns the path when savePath is set.',\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.messages.attachments/get',\n schema,\n handler,\n});\n"]}
@@ -3,11 +3,13 @@ export declare const schema: {
3
3
  input: z.ZodObject<{
4
4
  messageId: z.ZodString;
5
5
  attachmentId: z.ZodString;
6
+ savePath: z.ZodOptional<z.ZodString>;
6
7
  }, z.core.$strict>;
7
8
  output: z.ZodObject<{
8
9
  attachmentId: z.ZodString;
9
10
  size: z.ZodNumber;
10
- data: z.ZodString;
11
+ data: z.ZodOptional<z.ZodString>;
12
+ path: z.ZodOptional<z.ZodString>;
11
13
  }, z.core.$strip>;
12
14
  };
13
15
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;IAIL,MAAM;;;;;CAKP,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;IAaL,MAAM;;;;;;CAgBP,CAAC"}
@@ -3,11 +3,25 @@ export const schema = {
3
3
  input: z.strictObject({
4
4
  messageId: z.string().describe('The id of the message the attachment belongs to.'),
5
5
  attachmentId: z.string().describe('The id of the attachment (from a message part).'),
6
+ savePath: z
7
+ .string()
8
+ .optional()
9
+ .describe('Absolute filesystem path, as this server process sees it (e.g. a WSL /mnt/... path), ' +
10
+ 'to write the decoded attachment bytes to. When set, the bytes are written to disk and ' +
11
+ '`data` is omitted from the response (no large base64 payload); `path` is returned instead. ' +
12
+ 'Parent directories are created if missing.'),
6
13
  }),
7
14
  output: z.object({
8
15
  attachmentId: z.string().describe('The id of the downloaded attachment.'),
9
16
  size: z.number().describe('The decoded size in bytes.'),
10
- data: z.string().describe('The attachment bytes, base64url-encoded (as Gmail returns them).'),
17
+ data: z
18
+ .string()
19
+ .optional()
20
+ .describe('The attachment bytes, base64url-encoded (as Gmail returns them). Omitted when savePath was set.'),
21
+ path: z
22
+ .string()
23
+ .optional()
24
+ .describe('The path the attachment bytes were written to. Present only when savePath was set.'),
11
25
  }),
12
26
  };
13
27
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;QAClF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;KACrF,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACzE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;QACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kEAAkE,CAAC;KAC9F,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const schema = {\n input: z.strictObject({\n messageId: z.string().describe('The id of the message the attachment belongs to.'),\n attachmentId: z.string().describe('The id of the attachment (from a message part).'),\n }),\n output: z.object({\n attachmentId: z.string().describe('The id of the downloaded attachment.'),\n size: z.number().describe('The decoded size in bytes.'),\n data: z.string().describe('The attachment bytes, base64url-encoded (as Gmail returns them).'),\n }),\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/gmail/methods/download_attachment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;QAClF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;QACpF,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,uFAAuF;YACrF,wFAAwF;YACxF,6FAA6F;YAC7F,4CAA4C,CAC/C;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACzE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;QACvD,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,iGAAiG,CAClG;QACH,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,oFAAoF,CACrF;KACJ,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const schema = {\n input: z.strictObject({\n messageId: z.string().describe('The id of the message the attachment belongs to.'),\n attachmentId: z.string().describe('The id of the attachment (from a message part).'),\n savePath: z\n .string()\n .optional()\n .describe(\n 'Absolute filesystem path, as this server process sees it (e.g. a WSL /mnt/... path), ' +\n 'to write the decoded attachment bytes to. When set, the bytes are written to disk and ' +\n '`data` is omitted from the response (no large base64 payload); `path` is returned instead. ' +\n 'Parent directories are created if missing.',\n ),\n }),\n output: z.object({\n attachmentId: z.string().describe('The id of the downloaded attachment.'),\n size: z.number().describe('The decoded size in bytes.'),\n data: z\n .string()\n .optional()\n .describe(\n 'The attachment bytes, base64url-encoded (as Gmail returns them). Omitted when savePath was set.',\n ),\n path: z\n .string()\n .optional()\n .describe(\n 'The path the attachment bytes were written to. Present only when savePath was set.',\n ),\n }),\n};\n"]}
@@ -147,10 +147,12 @@ export declare const methods: {
147
147
  download_attachment: import("../../lib/operation.js").Operation<gmail_v1.Gmail, import("zod").ZodObject<{
148
148
  messageId: import("zod").ZodString;
149
149
  attachmentId: import("zod").ZodString;
150
+ savePath: import("zod").ZodOptional<import("zod").ZodString>;
150
151
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
151
152
  attachmentId: import("zod").ZodString;
152
153
  size: import("zod").ZodNumber;
153
- data: import("zod").ZodString;
154
+ data: import("zod").ZodOptional<import("zod").ZodString>;
155
+ path: import("zod").ZodOptional<import("zod").ZodString>;
154
156
  }, import("zod/v4/core").$strip>>;
155
157
  batch_modify_messages: import("../../lib/operation.js").Operation<gmail_v1.Gmail, import("zod").ZodObject<{
156
158
  messageIds: import("zod").ZodArray<import("zod").ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/gmail/methods/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AA0BlD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BoC,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/gmail/methods/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AA0BlD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BoC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * A basic chart: bar, line, area, column, scatter, combo, or stepped area. A
4
- * curated projection of the REST `BasicChartSpec` (stacking, line smoothing,
5
- * three-dimensional, and interpolation options are not carried).
3
+ * A basic chart: bar, line, area, column, scatter, combo, or stepped area. This
4
+ * is a curated projection of the REST `BasicChartSpec`. It excludes compare
5
+ * mode, domain reversal, axis formatting and view windows, axis title
6
+ * positioning, series colors and style controls, data labels, stacking, line
7
+ * smoothing, three-dimensional rendering, and null interpolation.
6
8
  *
7
9
  * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BasicChartSpec
8
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BasicChartSpec.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/BasicChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsDzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"BasicChartSpec.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/BasicChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsDzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import { ChartData } from './ChartData.js';
3
3
  /**
4
- * A basic chart: bar, line, area, column, scatter, combo, or stepped area. A
5
- * curated projection of the REST `BasicChartSpec` (stacking, line smoothing,
6
- * three-dimensional, and interpolation options are not carried).
4
+ * A basic chart: bar, line, area, column, scatter, combo, or stepped area. This
5
+ * is a curated projection of the REST `BasicChartSpec`. It excludes compare
6
+ * mode, domain reversal, axis formatting and view windows, axis title
7
+ * positioning, series colors and style controls, data labels, stacking, line
8
+ * smoothing, three-dimensional rendering, and null interpolation.
7
9
  *
8
10
  * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BasicChartSpec
9
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BasicChartSpec.js","sourceRoot":"","sources":["../../../src/sheets/entities/BasicChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,SAAS,EAAE,CAAC;SACT,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;SAC3E,QAAQ,CAAC,wBAAwB,CAAC;IACrC,cAAc,EAAE,CAAC;SACd,IAAI,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;SACjF,QAAQ,EAAE;SACV,QAAQ,CAAC,2BAA2B,CAAC;IACxC,IAAI,EAAE,CAAC;SACJ,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,QAAQ,EAAE,CAAC;aACR,IAAI,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;aAChD,QAAQ,CAAC,4BAA4B,CAAC;QACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;KACjE,CAAC,CACH;SACA,QAAQ,EAAE;SACV,QAAQ,CAAC,wBAAwB,CAAC;IACrC,OAAO,EAAE,CAAC;SACP,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,MAAM,EAAE,SAAS,CAAC,QAAQ,CACxB,2EAA2E,CAC5E;KACF,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,2CAA2C,CAAC;QACvE,UAAU,EAAE,CAAC;aACV,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;aACjC,QAAQ,EAAE;aACV,QAAQ,CAAC,sCAAsC,CAAC;QACnD,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;aAChC,QAAQ,EAAE;aACV,QAAQ,CACP,kHAAkH,CACnH;KACJ,CAAC,CACH;SACA,QAAQ,CAAC,uDAAuD,CAAC;IACpE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF,CACvF;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ChartData } from './ChartData.js';\n\n/**\n * A basic chart: bar, line, area, column, scatter, combo, or stepped area. A\n * curated projection of the REST `BasicChartSpec` (stacking, line smoothing,\n * three-dimensional, and interpolation options are not carried).\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BasicChartSpec\n */\nexport const BasicChartSpec = z.strictObject({\n chartType: z\n .enum(['BAR', 'LINE', 'AREA', 'COLUMN', 'SCATTER', 'COMBO', 'STEPPED_AREA'])\n .describe('The type of the chart.'),\n legendPosition: z\n .enum(['BOTTOM_LEGEND', 'LEFT_LEGEND', 'RIGHT_LEGEND', 'TOP_LEGEND', 'NO_LEGEND'])\n .optional()\n .describe('Where the legend renders.'),\n axis: z\n .array(\n z.strictObject({\n position: z\n .enum(['BOTTOM_AXIS', 'LEFT_AXIS', 'RIGHT_AXIS'])\n .describe('The position of this axis.'),\n title: z.string().optional().describe('The title of this axis.'),\n }),\n )\n .optional()\n .describe('The axes of the chart.'),\n domains: z\n .array(\n z.strictObject({\n domain: ChartData.describe(\n 'The data of the domain: the horizontal axis, such as the column of dates.',\n ),\n }),\n )\n .max(1)\n .optional()\n .describe('The domain of the chart; only one is supported.'),\n series: z\n .array(\n z.strictObject({\n series: ChartData.describe('The data being visualized in this series.'),\n targetAxis: z\n .enum(['LEFT_AXIS', 'RIGHT_AXIS'])\n .optional()\n .describe('The axis this series charts against.'),\n type: z\n .enum(['LINE', 'AREA', 'COLUMN'])\n .optional()\n .describe(\n 'The type of this series, for COMBO charts only; LINE, AREA, and COLUMN are the types Google supports per series.',\n ),\n }),\n )\n .describe('The data this chart visualizes, one entry per series.'),\n headerCount: z\n .number()\n .int()\n .optional()\n .describe(\n 'The number of rows or columns in the data that are headers; omitted, Google guesses.',\n ),\n});\n\nexport type BasicChartSpec = z.infer<typeof BasicChartSpec>;\n"]}
1
+ {"version":3,"file":"BasicChartSpec.js","sourceRoot":"","sources":["../../../src/sheets/entities/BasicChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,SAAS,EAAE,CAAC;SACT,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;SAC3E,QAAQ,CAAC,wBAAwB,CAAC;IACrC,cAAc,EAAE,CAAC;SACd,IAAI,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;SACjF,QAAQ,EAAE;SACV,QAAQ,CAAC,2BAA2B,CAAC;IACxC,IAAI,EAAE,CAAC;SACJ,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,QAAQ,EAAE,CAAC;aACR,IAAI,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;aAChD,QAAQ,CAAC,4BAA4B,CAAC;QACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;KACjE,CAAC,CACH;SACA,QAAQ,EAAE;SACV,QAAQ,CAAC,wBAAwB,CAAC;IACrC,OAAO,EAAE,CAAC;SACP,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,MAAM,EAAE,SAAS,CAAC,QAAQ,CACxB,2EAA2E,CAC5E;KACF,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,2CAA2C,CAAC;QACvE,UAAU,EAAE,CAAC;aACV,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;aACjC,QAAQ,EAAE;aACV,QAAQ,CAAC,sCAAsC,CAAC;QACnD,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;aAChC,QAAQ,EAAE;aACV,QAAQ,CACP,kHAAkH,CACnH;KACJ,CAAC,CACH;SACA,QAAQ,CAAC,uDAAuD,CAAC;IACpE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF,CACvF;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ChartData } from './ChartData.js';\n\n/**\n * A basic chart: bar, line, area, column, scatter, combo, or stepped area. This\n * is a curated projection of the REST `BasicChartSpec`. It excludes compare\n * mode, domain reversal, axis formatting and view windows, axis title\n * positioning, series colors and style controls, data labels, stacking, line\n * smoothing, three-dimensional rendering, and null interpolation.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BasicChartSpec\n */\nexport const BasicChartSpec = z.strictObject({\n chartType: z\n .enum(['BAR', 'LINE', 'AREA', 'COLUMN', 'SCATTER', 'COMBO', 'STEPPED_AREA'])\n .describe('The type of the chart.'),\n legendPosition: z\n .enum(['BOTTOM_LEGEND', 'LEFT_LEGEND', 'RIGHT_LEGEND', 'TOP_LEGEND', 'NO_LEGEND'])\n .optional()\n .describe('Where the legend renders.'),\n axis: z\n .array(\n z.strictObject({\n position: z\n .enum(['BOTTOM_AXIS', 'LEFT_AXIS', 'RIGHT_AXIS'])\n .describe('The position of this axis.'),\n title: z.string().optional().describe('The title of this axis.'),\n }),\n )\n .optional()\n .describe('The axes of the chart.'),\n domains: z\n .array(\n z.strictObject({\n domain: ChartData.describe(\n 'The data of the domain: the horizontal axis, such as the column of dates.',\n ),\n }),\n )\n .max(1)\n .optional()\n .describe('The domain of the chart; only one is supported.'),\n series: z\n .array(\n z.strictObject({\n series: ChartData.describe('The data being visualized in this series.'),\n targetAxis: z\n .enum(['LEFT_AXIS', 'RIGHT_AXIS'])\n .optional()\n .describe('The axis this series charts against.'),\n type: z\n .enum(['LINE', 'AREA', 'COLUMN'])\n .optional()\n .describe(\n 'The type of this series, for COMBO charts only; LINE, AREA, and COLUMN are the types Google supports per series.',\n ),\n }),\n )\n .describe('The data this chart visualizes, one entry per series.'),\n headerCount: z\n .number()\n .int()\n .optional()\n .describe(\n 'The number of rows or columns in the data that are headers; omitted, Google guesses.',\n ),\n});\n\nexport type BasicChartSpec = z.infer<typeof BasicChartSpec>;\n"]}
@@ -0,0 +1,119 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A chart that positions bubbles by x and y values and can vary their size and
4
+ * color grouping.
5
+ *
6
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BubbleChartSpec
7
+ */
8
+ export declare const BubbleChartSpec: z.ZodObject<{
9
+ legendPosition: z.ZodOptional<z.ZodEnum<{
10
+ BOTTOM_LEGEND: "BOTTOM_LEGEND";
11
+ INSIDE_LEGEND: "INSIDE_LEGEND";
12
+ LEFT_LEGEND: "LEFT_LEGEND";
13
+ NO_LEGEND: "NO_LEGEND";
14
+ RIGHT_LEGEND: "RIGHT_LEGEND";
15
+ TOP_LEGEND: "TOP_LEGEND";
16
+ }>>;
17
+ bubbleLabels: z.ZodOptional<z.ZodObject<{
18
+ sourceRange: z.ZodObject<{
19
+ sources: z.ZodArray<z.ZodObject<{
20
+ sheetId: z.ZodOptional<z.ZodNumber>;
21
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
22
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
23
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
24
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
25
+ }, z.core.$strict>>;
26
+ }, z.core.$strict>;
27
+ }, z.core.$strict>>;
28
+ domain: z.ZodObject<{
29
+ sourceRange: z.ZodObject<{
30
+ sources: z.ZodArray<z.ZodObject<{
31
+ sheetId: z.ZodOptional<z.ZodNumber>;
32
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
33
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
34
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
35
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
36
+ }, z.core.$strict>>;
37
+ }, z.core.$strict>;
38
+ }, z.core.$strict>;
39
+ series: z.ZodObject<{
40
+ sourceRange: z.ZodObject<{
41
+ sources: z.ZodArray<z.ZodObject<{
42
+ sheetId: z.ZodOptional<z.ZodNumber>;
43
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
44
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
45
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
46
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
47
+ }, z.core.$strict>>;
48
+ }, z.core.$strict>;
49
+ }, z.core.$strict>;
50
+ groupIds: z.ZodOptional<z.ZodObject<{
51
+ sourceRange: z.ZodObject<{
52
+ sources: z.ZodArray<z.ZodObject<{
53
+ sheetId: z.ZodOptional<z.ZodNumber>;
54
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
55
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
56
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
57
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
58
+ }, z.core.$strict>>;
59
+ }, z.core.$strict>;
60
+ }, z.core.$strict>>;
61
+ bubbleSizes: z.ZodOptional<z.ZodObject<{
62
+ sourceRange: z.ZodObject<{
63
+ sources: z.ZodArray<z.ZodObject<{
64
+ sheetId: z.ZodOptional<z.ZodNumber>;
65
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
66
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
67
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
68
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
69
+ }, z.core.$strict>>;
70
+ }, z.core.$strict>;
71
+ }, z.core.$strict>>;
72
+ bubbleOpacity: z.ZodOptional<z.ZodNumber>;
73
+ bubbleBorderColorStyle: z.ZodOptional<z.ZodObject<{
74
+ rgbColor: z.ZodOptional<z.ZodObject<{
75
+ red: z.ZodOptional<z.ZodNumber>;
76
+ green: z.ZodOptional<z.ZodNumber>;
77
+ blue: z.ZodOptional<z.ZodNumber>;
78
+ }, z.core.$strict>>;
79
+ themeColor: z.ZodOptional<z.ZodEnum<{
80
+ ACCENT1: "ACCENT1";
81
+ ACCENT2: "ACCENT2";
82
+ ACCENT3: "ACCENT3";
83
+ ACCENT4: "ACCENT4";
84
+ ACCENT5: "ACCENT5";
85
+ ACCENT6: "ACCENT6";
86
+ BACKGROUND: "BACKGROUND";
87
+ LINK: "LINK";
88
+ TEXT: "TEXT";
89
+ }>>;
90
+ }, z.core.$strict>>;
91
+ bubbleMaxRadiusSize: z.ZodOptional<z.ZodNumber>;
92
+ bubbleMinRadiusSize: z.ZodOptional<z.ZodNumber>;
93
+ bubbleTextStyle: z.ZodOptional<z.ZodObject<{
94
+ foregroundColorStyle: z.ZodOptional<z.ZodObject<{
95
+ rgbColor: z.ZodOptional<z.ZodObject<{
96
+ red: z.ZodOptional<z.ZodNumber>;
97
+ green: z.ZodOptional<z.ZodNumber>;
98
+ blue: z.ZodOptional<z.ZodNumber>;
99
+ }, z.core.$strict>>;
100
+ themeColor: z.ZodOptional<z.ZodEnum<{
101
+ ACCENT1: "ACCENT1";
102
+ ACCENT2: "ACCENT2";
103
+ ACCENT3: "ACCENT3";
104
+ ACCENT4: "ACCENT4";
105
+ ACCENT5: "ACCENT5";
106
+ ACCENT6: "ACCENT6";
107
+ BACKGROUND: "BACKGROUND";
108
+ LINK: "LINK";
109
+ TEXT: "TEXT";
110
+ }>>;
111
+ }, z.core.$strict>>;
112
+ fontFamily: z.ZodOptional<z.ZodString>;
113
+ fontSize: z.ZodOptional<z.ZodNumber>;
114
+ bold: z.ZodOptional<z.ZodBoolean>;
115
+ italic: z.ZodOptional<z.ZodBoolean>;
116
+ }, z.core.$strict>>;
117
+ }, z.core.$strict>;
118
+ export type BubbleChartSpec = z.infer<typeof BubbleChartSpec>;
119
+ //# sourceMappingURL=BubbleChartSpec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleChartSpec.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/BubbleChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyC1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import { ChartData } from './ChartData.js';
3
+ import { ColorStyle } from './ColorStyle.js';
4
+ import { TextFormat } from './TextFormat.js';
5
+ const BubbleTextFormat = TextFormat.omit({ strikethrough: true, underline: true, link: true });
6
+ /**
7
+ * A chart that positions bubbles by x and y values and can vary their size and
8
+ * color grouping.
9
+ *
10
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BubbleChartSpec
11
+ */
12
+ export const BubbleChartSpec = z.strictObject({
13
+ legendPosition: z
14
+ .enum([
15
+ 'BOTTOM_LEGEND',
16
+ 'LEFT_LEGEND',
17
+ 'RIGHT_LEGEND',
18
+ 'TOP_LEGEND',
19
+ 'NO_LEGEND',
20
+ 'INSIDE_LEGEND',
21
+ ])
22
+ .optional()
23
+ .describe('Where the legend is drawn.'),
24
+ bubbleLabels: ChartData.optional().describe('The labels displayed inside the bubbles.'),
25
+ domain: ChartData.describe('The x-values that position the bubbles horizontally.'),
26
+ series: ChartData.describe('The y-values that position the bubbles vertically.'),
27
+ groupIds: ChartData.optional().describe('The group IDs used to color related bubbles alike.'),
28
+ bubbleSizes: ChartData.optional().describe('The relative bubble sizes; groupIds is required when this field is provided.'),
29
+ bubbleOpacity: z
30
+ .number()
31
+ .min(0)
32
+ .max(1)
33
+ .optional()
34
+ .describe('The bubble opacity from 0, transparent, through 1, opaque.'),
35
+ bubbleBorderColorStyle: ColorStyle.optional().describe('The bubble border color.'),
36
+ bubbleMaxRadiusSize: z
37
+ .number()
38
+ .int()
39
+ .positive()
40
+ .optional()
41
+ .describe('The maximum bubble radius in pixels.'),
42
+ bubbleMinRadiusSize: z
43
+ .number()
44
+ .int()
45
+ .positive()
46
+ .optional()
47
+ .describe('The minimum bubble radius in pixels.'),
48
+ bubbleTextStyle: BubbleTextFormat.optional().describe('The text format inside bubbles; strikethrough, underline, and links are not supported.'),
49
+ });
50
+ //# sourceMappingURL=BubbleChartSpec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleChartSpec.js","sourceRoot":"","sources":["../../../src/sheets/entities/BubbleChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,gBAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAE/F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,cAAc,EAAE,CAAC;SACd,IAAI,CAAC;QACJ,eAAe;QACf,aAAa;QACb,cAAc;QACd,YAAY;QACZ,WAAW;QACX,eAAe;KAChB,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,4BAA4B,CAAC;IACzC,YAAY,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IACvF,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,sDAAsD,CAAC;IAClF,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IAChF,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IAC7F,WAAW,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxC,8EAA8E,CAC/E;IACD,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,4DAA4D,CAAC;IACzE,sBAAsB,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IAClF,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,sCAAsC,CAAC;IACnD,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,sCAAsC,CAAC;IACnD,eAAe,EAAE,gBAAgB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnD,wFAAwF,CACzF;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ChartData } from './ChartData.js';\nimport { ColorStyle } from './ColorStyle.js';\nimport { TextFormat } from './TextFormat.js';\n\nconst BubbleTextFormat = TextFormat.omit({ strikethrough: true, underline: true, link: true });\n\n/**\n * A chart that positions bubbles by x and y values and can vary their size and\n * color grouping.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#BubbleChartSpec\n */\nexport const BubbleChartSpec = z.strictObject({\n legendPosition: z\n .enum([\n 'BOTTOM_LEGEND',\n 'LEFT_LEGEND',\n 'RIGHT_LEGEND',\n 'TOP_LEGEND',\n 'NO_LEGEND',\n 'INSIDE_LEGEND',\n ])\n .optional()\n .describe('Where the legend is drawn.'),\n bubbleLabels: ChartData.optional().describe('The labels displayed inside the bubbles.'),\n domain: ChartData.describe('The x-values that position the bubbles horizontally.'),\n series: ChartData.describe('The y-values that position the bubbles vertically.'),\n groupIds: ChartData.optional().describe('The group IDs used to color related bubbles alike.'),\n bubbleSizes: ChartData.optional().describe(\n 'The relative bubble sizes; groupIds is required when this field is provided.',\n ),\n bubbleOpacity: z\n .number()\n .min(0)\n .max(1)\n .optional()\n .describe('The bubble opacity from 0, transparent, through 1, opaque.'),\n bubbleBorderColorStyle: ColorStyle.optional().describe('The bubble border color.'),\n bubbleMaxRadiusSize: z\n .number()\n .int()\n .positive()\n .optional()\n .describe('The maximum bubble radius in pixels.'),\n bubbleMinRadiusSize: z\n .number()\n .int()\n .positive()\n .optional()\n .describe('The minimum bubble radius in pixels.'),\n bubbleTextStyle: BubbleTextFormat.optional().describe(\n 'The text format inside bubbles; strikethrough, underline, and links are not supported.',\n ),\n});\n\nexport type BubbleChartSpec = z.infer<typeof BubbleChartSpec>;\n"]}
@@ -0,0 +1,78 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A chart that displays low, open, close, and high values for a data series.
4
+ *
5
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#CandlestickChartSpec
6
+ */
7
+ export declare const CandlestickChartSpec: z.ZodObject<{
8
+ domain: z.ZodObject<{
9
+ data: z.ZodObject<{
10
+ sourceRange: z.ZodObject<{
11
+ sources: z.ZodArray<z.ZodObject<{
12
+ sheetId: z.ZodOptional<z.ZodNumber>;
13
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
14
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
15
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
16
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
17
+ }, z.core.$strict>>;
18
+ }, z.core.$strict>;
19
+ }, z.core.$strict>;
20
+ reversed: z.ZodOptional<z.ZodBoolean>;
21
+ }, z.core.$strict>;
22
+ data: z.ZodArray<z.ZodObject<{
23
+ lowSeries: z.ZodObject<{
24
+ data: z.ZodObject<{
25
+ sourceRange: z.ZodObject<{
26
+ sources: z.ZodArray<z.ZodObject<{
27
+ sheetId: z.ZodOptional<z.ZodNumber>;
28
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
29
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
30
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
31
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
32
+ }, z.core.$strict>>;
33
+ }, z.core.$strict>;
34
+ }, z.core.$strict>;
35
+ }, z.core.$strict>;
36
+ openSeries: z.ZodObject<{
37
+ data: z.ZodObject<{
38
+ sourceRange: z.ZodObject<{
39
+ sources: z.ZodArray<z.ZodObject<{
40
+ sheetId: z.ZodOptional<z.ZodNumber>;
41
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
42
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
43
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
44
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
45
+ }, z.core.$strict>>;
46
+ }, z.core.$strict>;
47
+ }, z.core.$strict>;
48
+ }, z.core.$strict>;
49
+ closeSeries: z.ZodObject<{
50
+ data: z.ZodObject<{
51
+ sourceRange: z.ZodObject<{
52
+ sources: z.ZodArray<z.ZodObject<{
53
+ sheetId: z.ZodOptional<z.ZodNumber>;
54
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
55
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
56
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
57
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
58
+ }, z.core.$strict>>;
59
+ }, z.core.$strict>;
60
+ }, z.core.$strict>;
61
+ }, z.core.$strict>;
62
+ highSeries: z.ZodObject<{
63
+ data: z.ZodObject<{
64
+ sourceRange: z.ZodObject<{
65
+ sources: z.ZodArray<z.ZodObject<{
66
+ sheetId: z.ZodOptional<z.ZodNumber>;
67
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
68
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
69
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
70
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
71
+ }, z.core.$strict>>;
72
+ }, z.core.$strict>;
73
+ }, z.core.$strict>;
74
+ }, z.core.$strict>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>;
77
+ export type CandlestickChartSpec = z.infer<typeof CandlestickChartSpec>;
78
+ //# sourceMappingURL=CandlestickChartSpec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandlestickChartSpec.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/CandlestickChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkB/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { ChartData } from './ChartData.js';
3
+ const CandlestickSeries = z.strictObject({
4
+ data: ChartData.describe('The data of this candlestick series.'),
5
+ });
6
+ /**
7
+ * A chart that displays low, open, close, and high values for a data series.
8
+ *
9
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#CandlestickChartSpec
10
+ */
11
+ export const CandlestickChartSpec = z.strictObject({
12
+ domain: z
13
+ .strictObject({
14
+ data: ChartData.describe('The horizontal-axis data for the candles.'),
15
+ reversed: z.boolean().optional().describe('True to reverse the horizontal-axis value order.'),
16
+ })
17
+ .describe('The horizontal-axis domain for the candlestick chart.'),
18
+ data: z
19
+ .array(z.strictObject({
20
+ lowSeries: CandlestickSeries.describe('The low value for each candle.'),
21
+ openSeries: CandlestickSeries.describe('The open value for each candle.'),
22
+ closeSeries: CandlestickSeries.describe('The close value for each candle.'),
23
+ highSeries: CandlestickSeries.describe('The high value for each candle.'),
24
+ }))
25
+ .length(1)
26
+ .describe('The low, open, close, and high data; Google supports exactly one entry.'),
27
+ });
28
+ //# sourceMappingURL=CandlestickChartSpec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CandlestickChartSpec.js","sourceRoot":"","sources":["../../../src/sheets/entities/CandlestickChartSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CACjE,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,MAAM,EAAE,CAAC;SACN,YAAY,CAAC;QACZ,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,2CAA2C,CAAC;QACrE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;KAC9F,CAAC;SACD,QAAQ,CAAC,uDAAuD,CAAC;IACpE,IAAI,EAAE,CAAC;SACJ,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,SAAS,EAAE,iBAAiB,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QACvE,UAAU,EAAE,iBAAiB,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QACzE,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QAC3E,UAAU,EAAE,iBAAiB,CAAC,QAAQ,CAAC,iCAAiC,CAAC;KAC1E,CAAC,CACH;SACA,MAAM,CAAC,CAAC,CAAC;SACT,QAAQ,CAAC,yEAAyE,CAAC;CACvF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ChartData } from './ChartData.js';\n\nconst CandlestickSeries = z.strictObject({\n data: ChartData.describe('The data of this candlestick series.'),\n});\n\n/**\n * A chart that displays low, open, close, and high values for a data series.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/charts#CandlestickChartSpec\n */\nexport const CandlestickChartSpec = z.strictObject({\n domain: z\n .strictObject({\n data: ChartData.describe('The horizontal-axis data for the candles.'),\n reversed: z.boolean().optional().describe('True to reverse the horizontal-axis value order.'),\n })\n .describe('The horizontal-axis domain for the candlestick chart.'),\n data: z\n .array(\n z.strictObject({\n lowSeries: CandlestickSeries.describe('The low value for each candle.'),\n openSeries: CandlestickSeries.describe('The open value for each candle.'),\n closeSeries: CandlestickSeries.describe('The close value for each candle.'),\n highSeries: CandlestickSeries.describe('The high value for each candle.'),\n }),\n )\n .length(1)\n .describe('The low, open, close, and high data; Google supports exactly one entry.'),\n});\n\nexport type CandlestickChartSpec = z.infer<typeof CandlestickChartSpec>;\n"]}