google-mcp-suite 1.6.0 → 1.7.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 (523) hide show
  1. package/README.md +12 -7
  2. package/dist/doctor/services.d.ts.map +1 -1
  3. package/dist/doctor/services.js +13 -1
  4. package/dist/doctor/services.js.map +1 -1
  5. package/dist/drive/capabilities.d.ts +3 -0
  6. package/dist/drive/capabilities.d.ts.map +1 -0
  7. package/dist/drive/capabilities.js +21 -0
  8. package/dist/drive/capabilities.js.map +1 -0
  9. package/dist/drive/entities/About.d.ts +26 -0
  10. package/dist/drive/entities/About.d.ts.map +1 -0
  11. package/dist/drive/entities/About.js +31 -0
  12. package/dist/drive/entities/About.js.map +1 -0
  13. package/dist/drive/entities/Comment.d.ts +48 -0
  14. package/dist/drive/entities/Comment.d.ts.map +1 -0
  15. package/dist/drive/entities/Comment.js +53 -0
  16. package/dist/drive/entities/Comment.js.map +1 -0
  17. package/dist/drive/entities/File.d.ts +42 -0
  18. package/dist/drive/entities/File.d.ts.map +1 -0
  19. package/dist/drive/entities/File.js +75 -0
  20. package/dist/drive/entities/File.js.map +1 -0
  21. package/dist/drive/entities/Permission.d.ts +33 -0
  22. package/dist/drive/entities/Permission.d.ts.map +1 -0
  23. package/dist/drive/entities/Permission.js +32 -0
  24. package/dist/drive/entities/Permission.js.map +1 -0
  25. package/dist/drive/entities/Reply.d.ts +27 -0
  26. package/dist/drive/entities/Reply.d.ts.map +1 -0
  27. package/dist/drive/entities/Reply.js +39 -0
  28. package/dist/drive/entities/Reply.js.map +1 -0
  29. package/dist/drive/entities/Revision.d.ts +30 -0
  30. package/dist/drive/entities/Revision.d.ts.map +1 -0
  31. package/dist/drive/entities/Revision.js +62 -0
  32. package/dist/drive/entities/Revision.js.map +1 -0
  33. package/dist/drive/entities/SharedDrive.d.ts +28 -0
  34. package/dist/drive/entities/SharedDrive.d.ts.map +1 -0
  35. package/dist/drive/entities/SharedDrive.js +65 -0
  36. package/dist/drive/entities/SharedDrive.js.map +1 -0
  37. package/dist/drive/entities/User.d.ts +16 -0
  38. package/dist/drive/entities/User.d.ts.map +1 -0
  39. package/dist/drive/entities/User.js +25 -0
  40. package/dist/drive/entities/User.js.map +1 -0
  41. package/dist/drive/index.d.ts +3 -0
  42. package/dist/drive/index.d.ts.map +1 -0
  43. package/dist/drive/index.js +23 -0
  44. package/dist/drive/index.js.map +1 -0
  45. package/dist/drive/instructions.d.ts +2 -0
  46. package/dist/drive/instructions.d.ts.map +1 -0
  47. package/dist/drive/instructions.js +24 -0
  48. package/dist/drive/instructions.js.map +1 -0
  49. package/dist/drive/lib/comment.d.ts +15 -0
  50. package/dist/drive/lib/comment.d.ts.map +1 -0
  51. package/dist/drive/lib/comment.js +52 -0
  52. package/dist/drive/lib/comment.js.map +1 -0
  53. package/dist/drive/lib/content.d.ts +20 -0
  54. package/dist/drive/lib/content.d.ts.map +1 -0
  55. package/dist/drive/lib/content.js +41 -0
  56. package/dist/drive/lib/content.js.map +1 -0
  57. package/dist/drive/lib/file.d.ts +25 -0
  58. package/dist/drive/lib/file.d.ts.map +1 -0
  59. package/dist/drive/lib/file.js +62 -0
  60. package/dist/drive/lib/file.js.map +1 -0
  61. package/dist/drive/lib/query.d.ts +30 -0
  62. package/dist/drive/lib/query.d.ts.map +1 -0
  63. package/dist/drive/lib/query.js +104 -0
  64. package/dist/drive/lib/query.js.map +1 -0
  65. package/dist/drive/lib/revision.d.ts +7 -0
  66. package/dist/drive/lib/revision.d.ts.map +1 -0
  67. package/dist/drive/lib/revision.js +23 -0
  68. package/dist/drive/lib/revision.js.map +1 -0
  69. package/dist/drive/lib/shared-drive.d.ts +7 -0
  70. package/dist/drive/lib/shared-drive.d.ts.map +1 -0
  71. package/dist/drive/lib/shared-drive.js +26 -0
  72. package/dist/drive/lib/shared-drive.js.map +1 -0
  73. package/dist/drive/methods/create_comment/handler.d.ts +5 -0
  74. package/dist/drive/methods/create_comment/handler.d.ts.map +1 -0
  75. package/dist/drive/methods/create_comment/handler.js +11 -0
  76. package/dist/drive/methods/create_comment/handler.js.map +1 -0
  77. package/dist/drive/methods/create_comment/index.d.ts +43 -0
  78. package/dist/drive/methods/create_comment/index.d.ts.map +1 -0
  79. package/dist/drive/methods/create_comment/index.js +16 -0
  80. package/dist/drive/methods/create_comment/index.js.map +1 -0
  81. package/dist/drive/methods/create_comment/schema.d.ts +47 -0
  82. package/dist/drive/methods/create_comment/schema.d.ts.map +1 -0
  83. package/dist/drive/methods/create_comment/schema.js +14 -0
  84. package/dist/drive/methods/create_comment/schema.js.map +1 -0
  85. package/dist/drive/methods/create_reply/handler.d.ts +5 -0
  86. package/dist/drive/methods/create_reply/handler.d.ts.map +1 -0
  87. package/dist/drive/methods/create_reply/handler.js +15 -0
  88. package/dist/drive/methods/create_reply/handler.js.map +1 -0
  89. package/dist/drive/methods/create_reply/index.d.ts +27 -0
  90. package/dist/drive/methods/create_reply/index.d.ts.map +1 -0
  91. package/dist/drive/methods/create_reply/index.js +17 -0
  92. package/dist/drive/methods/create_reply/index.js.map +1 -0
  93. package/dist/drive/methods/create_reply/schema.d.ts +31 -0
  94. package/dist/drive/methods/create_reply/schema.d.ts.map +1 -0
  95. package/dist/drive/methods/create_reply/schema.js +18 -0
  96. package/dist/drive/methods/create_reply/schema.js.map +1 -0
  97. package/dist/drive/methods/create_shared_drive/handler.d.ts +5 -0
  98. package/dist/drive/methods/create_shared_drive/handler.d.ts.map +1 -0
  99. package/dist/drive/methods/create_shared_drive/handler.js +11 -0
  100. package/dist/drive/methods/create_shared_drive/handler.js.map +1 -0
  101. package/dist/drive/methods/create_shared_drive/index.d.ts +20 -0
  102. package/dist/drive/methods/create_shared_drive/index.d.ts.map +1 -0
  103. package/dist/drive/methods/create_shared_drive/index.js +16 -0
  104. package/dist/drive/methods/create_shared_drive/index.js.map +1 -0
  105. package/dist/drive/methods/create_shared_drive/schema.d.ts +24 -0
  106. package/dist/drive/methods/create_shared_drive/schema.d.ts.map +1 -0
  107. package/dist/drive/methods/create_shared_drive/schema.js +15 -0
  108. package/dist/drive/methods/create_shared_drive/schema.js.map +1 -0
  109. package/dist/drive/methods/delete_comment/handler.d.ts +5 -0
  110. package/dist/drive/methods/delete_comment/handler.d.ts.map +1 -0
  111. package/dist/drive/methods/delete_comment/handler.js +5 -0
  112. package/dist/drive/methods/delete_comment/handler.js.map +1 -0
  113. package/dist/drive/methods/delete_comment/index.d.ts +8 -0
  114. package/dist/drive/methods/delete_comment/index.d.ts.map +1 -0
  115. package/dist/drive/methods/delete_comment/index.js +16 -0
  116. package/dist/drive/methods/delete_comment/index.js.map +1 -0
  117. package/dist/drive/methods/delete_comment/schema.d.ts +13 -0
  118. package/dist/drive/methods/delete_comment/schema.d.ts.map +1 -0
  119. package/dist/drive/methods/delete_comment/schema.js +13 -0
  120. package/dist/drive/methods/delete_comment/schema.js.map +1 -0
  121. package/dist/drive/methods/delete_file/handler.d.ts +5 -0
  122. package/dist/drive/methods/delete_file/handler.d.ts.map +1 -0
  123. package/dist/drive/methods/delete_file/handler.js +5 -0
  124. package/dist/drive/methods/delete_file/handler.js.map +1 -0
  125. package/dist/drive/methods/delete_file/index.d.ts +6 -0
  126. package/dist/drive/methods/delete_file/index.d.ts.map +1 -0
  127. package/dist/drive/methods/delete_file/index.js +19 -0
  128. package/dist/drive/methods/delete_file/index.js.map +1 -0
  129. package/dist/drive/methods/delete_file/schema.d.ts +11 -0
  130. package/dist/drive/methods/delete_file/schema.d.ts.map +1 -0
  131. package/dist/drive/methods/delete_file/schema.js +11 -0
  132. package/dist/drive/methods/delete_file/schema.js.map +1 -0
  133. package/dist/drive/methods/delete_reply/handler.d.ts +5 -0
  134. package/dist/drive/methods/delete_reply/handler.d.ts.map +1 -0
  135. package/dist/drive/methods/delete_reply/handler.js +9 -0
  136. package/dist/drive/methods/delete_reply/handler.js.map +1 -0
  137. package/dist/drive/methods/delete_reply/index.d.ts +10 -0
  138. package/dist/drive/methods/delete_reply/index.d.ts.map +1 -0
  139. package/dist/drive/methods/delete_reply/index.js +16 -0
  140. package/dist/drive/methods/delete_reply/index.js.map +1 -0
  141. package/dist/drive/methods/delete_reply/schema.d.ts +15 -0
  142. package/dist/drive/methods/delete_reply/schema.d.ts.map +1 -0
  143. package/dist/drive/methods/delete_reply/schema.js +15 -0
  144. package/dist/drive/methods/delete_reply/schema.js.map +1 -0
  145. package/dist/drive/methods/delete_revision/handler.d.ts +5 -0
  146. package/dist/drive/methods/delete_revision/handler.d.ts.map +1 -0
  147. package/dist/drive/methods/delete_revision/handler.js +5 -0
  148. package/dist/drive/methods/delete_revision/handler.js.map +1 -0
  149. package/dist/drive/methods/delete_revision/index.d.ts +8 -0
  150. package/dist/drive/methods/delete_revision/index.d.ts.map +1 -0
  151. package/dist/drive/methods/delete_revision/index.js +18 -0
  152. package/dist/drive/methods/delete_revision/index.js.map +1 -0
  153. package/dist/drive/methods/delete_revision/schema.d.ts +13 -0
  154. package/dist/drive/methods/delete_revision/schema.d.ts.map +1 -0
  155. package/dist/drive/methods/delete_revision/schema.js +13 -0
  156. package/dist/drive/methods/delete_revision/schema.js.map +1 -0
  157. package/dist/drive/methods/delete_shared_drive/handler.d.ts +5 -0
  158. package/dist/drive/methods/delete_shared_drive/handler.d.ts.map +1 -0
  159. package/dist/drive/methods/delete_shared_drive/handler.js +10 -0
  160. package/dist/drive/methods/delete_shared_drive/handler.js.map +1 -0
  161. package/dist/drive/methods/delete_shared_drive/index.d.ts +8 -0
  162. package/dist/drive/methods/delete_shared_drive/index.d.ts.map +1 -0
  163. package/dist/drive/methods/delete_shared_drive/index.js +17 -0
  164. package/dist/drive/methods/delete_shared_drive/index.js.map +1 -0
  165. package/dist/drive/methods/delete_shared_drive/schema.d.ts +13 -0
  166. package/dist/drive/methods/delete_shared_drive/schema.d.ts.map +1 -0
  167. package/dist/drive/methods/delete_shared_drive/schema.js +22 -0
  168. package/dist/drive/methods/delete_shared_drive/schema.js.map +1 -0
  169. package/dist/drive/methods/empty_trash/handler.d.ts +5 -0
  170. package/dist/drive/methods/empty_trash/handler.d.ts.map +1 -0
  171. package/dist/drive/methods/empty_trash/handler.js +6 -0
  172. package/dist/drive/methods/empty_trash/handler.js.map +1 -0
  173. package/dist/drive/methods/empty_trash/index.d.ts +6 -0
  174. package/dist/drive/methods/empty_trash/index.d.ts.map +1 -0
  175. package/dist/drive/methods/empty_trash/index.js +17 -0
  176. package/dist/drive/methods/empty_trash/index.js.map +1 -0
  177. package/dist/drive/methods/empty_trash/schema.d.ts +11 -0
  178. package/dist/drive/methods/empty_trash/schema.d.ts.map +1 -0
  179. package/dist/drive/methods/empty_trash/schema.js +14 -0
  180. package/dist/drive/methods/empty_trash/schema.js.map +1 -0
  181. package/dist/drive/methods/get_about/handler.d.ts +5 -0
  182. package/dist/drive/methods/get_about/handler.d.ts.map +1 -0
  183. package/dist/drive/methods/get_about/handler.js +30 -0
  184. package/dist/drive/methods/get_about/handler.js.map +1 -0
  185. package/dist/drive/methods/get_about/index.d.ts +17 -0
  186. package/dist/drive/methods/get_about/index.d.ts.map +1 -0
  187. package/dist/drive/methods/get_about/index.js +17 -0
  188. package/dist/drive/methods/get_about/index.js.map +1 -0
  189. package/dist/drive/methods/get_about/schema.d.ts +21 -0
  190. package/dist/drive/methods/get_about/schema.d.ts.map +1 -0
  191. package/dist/drive/methods/get_about/schema.js +7 -0
  192. package/dist/drive/methods/get_about/schema.js.map +1 -0
  193. package/dist/drive/methods/get_comment/handler.d.ts +5 -0
  194. package/dist/drive/methods/get_comment/handler.d.ts.map +1 -0
  195. package/dist/drive/methods/get_comment/handler.js +12 -0
  196. package/dist/drive/methods/get_comment/handler.js.map +1 -0
  197. package/dist/drive/methods/get_comment/index.d.ts +43 -0
  198. package/dist/drive/methods/get_comment/index.d.ts.map +1 -0
  199. package/dist/drive/methods/get_comment/index.js +16 -0
  200. package/dist/drive/methods/get_comment/index.js.map +1 -0
  201. package/dist/drive/methods/get_comment/schema.d.ts +47 -0
  202. package/dist/drive/methods/get_comment/schema.d.ts.map +1 -0
  203. package/dist/drive/methods/get_comment/schema.js +14 -0
  204. package/dist/drive/methods/get_comment/schema.js.map +1 -0
  205. package/dist/drive/methods/get_reply/handler.d.ts +5 -0
  206. package/dist/drive/methods/get_reply/handler.d.ts.map +1 -0
  207. package/dist/drive/methods/get_reply/handler.js +13 -0
  208. package/dist/drive/methods/get_reply/handler.js.map +1 -0
  209. package/dist/drive/methods/get_reply/index.d.ts +24 -0
  210. package/dist/drive/methods/get_reply/index.d.ts.map +1 -0
  211. package/dist/drive/methods/get_reply/index.js +16 -0
  212. package/dist/drive/methods/get_reply/index.js.map +1 -0
  213. package/dist/drive/methods/get_reply/schema.d.ts +28 -0
  214. package/dist/drive/methods/get_reply/schema.d.ts.map +1 -0
  215. package/dist/drive/methods/get_reply/schema.js +15 -0
  216. package/dist/drive/methods/get_reply/schema.js.map +1 -0
  217. package/dist/drive/methods/get_revision/handler.d.ts +5 -0
  218. package/dist/drive/methods/get_revision/handler.d.ts.map +1 -0
  219. package/dist/drive/methods/get_revision/handler.js +10 -0
  220. package/dist/drive/methods/get_revision/handler.js.map +1 -0
  221. package/dist/drive/methods/get_revision/index.d.ts +23 -0
  222. package/dist/drive/methods/get_revision/index.d.ts.map +1 -0
  223. package/dist/drive/methods/get_revision/index.js +16 -0
  224. package/dist/drive/methods/get_revision/index.js.map +1 -0
  225. package/dist/drive/methods/get_revision/schema.d.ts +27 -0
  226. package/dist/drive/methods/get_revision/schema.d.ts.map +1 -0
  227. package/dist/drive/methods/get_revision/schema.js +10 -0
  228. package/dist/drive/methods/get_revision/schema.js.map +1 -0
  229. package/dist/drive/methods/get_shared_drive/handler.d.ts +5 -0
  230. package/dist/drive/methods/get_shared_drive/handler.d.ts.map +1 -0
  231. package/dist/drive/methods/get_shared_drive/handler.js +11 -0
  232. package/dist/drive/methods/get_shared_drive/handler.js.map +1 -0
  233. package/dist/drive/methods/get_shared_drive/index.d.ts +20 -0
  234. package/dist/drive/methods/get_shared_drive/index.d.ts.map +1 -0
  235. package/dist/drive/methods/get_shared_drive/index.js +16 -0
  236. package/dist/drive/methods/get_shared_drive/index.js.map +1 -0
  237. package/dist/drive/methods/get_shared_drive/schema.d.ts +24 -0
  238. package/dist/drive/methods/get_shared_drive/schema.d.ts.map +1 -0
  239. package/dist/drive/methods/get_shared_drive/schema.js +15 -0
  240. package/dist/drive/methods/get_shared_drive/schema.js.map +1 -0
  241. package/dist/drive/methods/hide_shared_drive/handler.d.ts +5 -0
  242. package/dist/drive/methods/hide_shared_drive/handler.d.ts.map +1 -0
  243. package/dist/drive/methods/hide_shared_drive/handler.js +9 -0
  244. package/dist/drive/methods/hide_shared_drive/handler.js.map +1 -0
  245. package/dist/drive/methods/hide_shared_drive/index.d.ts +19 -0
  246. package/dist/drive/methods/hide_shared_drive/index.d.ts.map +1 -0
  247. package/dist/drive/methods/hide_shared_drive/index.js +16 -0
  248. package/dist/drive/methods/hide_shared_drive/index.js.map +1 -0
  249. package/dist/drive/methods/hide_shared_drive/schema.d.ts +23 -0
  250. package/dist/drive/methods/hide_shared_drive/schema.d.ts.map +1 -0
  251. package/dist/drive/methods/hide_shared_drive/schema.js +9 -0
  252. package/dist/drive/methods/hide_shared_drive/schema.js.map +1 -0
  253. package/dist/drive/methods/list_comments/handler.d.ts +5 -0
  254. package/dist/drive/methods/list_comments/handler.d.ts.map +1 -0
  255. package/dist/drive/methods/list_comments/handler.js +17 -0
  256. package/dist/drive/methods/list_comments/handler.js.map +1 -0
  257. package/dist/drive/methods/list_comments/index.d.ts +48 -0
  258. package/dist/drive/methods/list_comments/index.d.ts.map +1 -0
  259. package/dist/drive/methods/list_comments/index.js +16 -0
  260. package/dist/drive/methods/list_comments/index.js.map +1 -0
  261. package/dist/drive/methods/list_comments/schema.d.ts +52 -0
  262. package/dist/drive/methods/list_comments/schema.d.ts.map +1 -0
  263. package/dist/drive/methods/list_comments/schema.js +34 -0
  264. package/dist/drive/methods/list_comments/schema.js.map +1 -0
  265. package/dist/drive/methods/list_replies/handler.d.ts +5 -0
  266. package/dist/drive/methods/list_replies/handler.d.ts.map +1 -0
  267. package/dist/drive/methods/list_replies/handler.js +17 -0
  268. package/dist/drive/methods/list_replies/handler.js.map +1 -0
  269. package/dist/drive/methods/list_replies/index.d.ts +28 -0
  270. package/dist/drive/methods/list_replies/index.d.ts.map +1 -0
  271. package/dist/drive/methods/list_replies/index.js +16 -0
  272. package/dist/drive/methods/list_replies/index.js.map +1 -0
  273. package/dist/drive/methods/list_replies/schema.d.ts +32 -0
  274. package/dist/drive/methods/list_replies/schema.d.ts.map +1 -0
  275. package/dist/drive/methods/list_replies/schema.js +31 -0
  276. package/dist/drive/methods/list_replies/schema.js.map +1 -0
  277. package/dist/drive/methods/list_revisions/handler.d.ts +5 -0
  278. package/dist/drive/methods/list_revisions/handler.d.ts.map +1 -0
  279. package/dist/drive/methods/list_revisions/handler.js +15 -0
  280. package/dist/drive/methods/list_revisions/handler.js.map +1 -0
  281. package/dist/drive/methods/list_revisions/index.d.ts +27 -0
  282. package/dist/drive/methods/list_revisions/index.d.ts.map +1 -0
  283. package/dist/drive/methods/list_revisions/index.js +17 -0
  284. package/dist/drive/methods/list_revisions/index.js.map +1 -0
  285. package/dist/drive/methods/list_revisions/schema.d.ts +31 -0
  286. package/dist/drive/methods/list_revisions/schema.d.ts.map +1 -0
  287. package/dist/drive/methods/list_revisions/schema.js +30 -0
  288. package/dist/drive/methods/list_revisions/schema.js.map +1 -0
  289. package/dist/drive/methods/list_shared_drives/handler.d.ts +5 -0
  290. package/dist/drive/methods/list_shared_drives/handler.d.ts.map +1 -0
  291. package/dist/drive/methods/list_shared_drives/handler.js +16 -0
  292. package/dist/drive/methods/list_shared_drives/handler.js.map +1 -0
  293. package/dist/drive/methods/list_shared_drives/index.d.ts +25 -0
  294. package/dist/drive/methods/list_shared_drives/index.d.ts.map +1 -0
  295. package/dist/drive/methods/list_shared_drives/index.js +16 -0
  296. package/dist/drive/methods/list_shared_drives/index.js.map +1 -0
  297. package/dist/drive/methods/list_shared_drives/schema.d.ts +29 -0
  298. package/dist/drive/methods/list_shared_drives/schema.d.ts.map +1 -0
  299. package/dist/drive/methods/list_shared_drives/schema.js +27 -0
  300. package/dist/drive/methods/list_shared_drives/schema.js.map +1 -0
  301. package/dist/drive/methods/registry.d.ts +619 -0
  302. package/dist/drive/methods/registry.d.ts.map +1 -0
  303. package/dist/drive/methods/registry.js +69 -0
  304. package/dist/drive/methods/registry.js.map +1 -0
  305. package/dist/drive/methods/trash_file/handler.d.ts +5 -0
  306. package/dist/drive/methods/trash_file/handler.d.ts.map +1 -0
  307. package/dist/drive/methods/trash_file/handler.js +11 -0
  308. package/dist/drive/methods/trash_file/handler.js.map +1 -0
  309. package/dist/drive/methods/trash_file/index.d.ts +25 -0
  310. package/dist/drive/methods/trash_file/index.d.ts.map +1 -0
  311. package/dist/drive/methods/trash_file/index.js +18 -0
  312. package/dist/drive/methods/trash_file/index.js.map +1 -0
  313. package/dist/drive/methods/trash_file/schema.d.ts +29 -0
  314. package/dist/drive/methods/trash_file/schema.d.ts.map +1 -0
  315. package/dist/drive/methods/trash_file/schema.js +9 -0
  316. package/dist/drive/methods/trash_file/schema.js.map +1 -0
  317. package/dist/drive/methods/unhide_shared_drive/handler.d.ts +5 -0
  318. package/dist/drive/methods/unhide_shared_drive/handler.d.ts.map +1 -0
  319. package/dist/drive/methods/unhide_shared_drive/handler.js +9 -0
  320. package/dist/drive/methods/unhide_shared_drive/handler.js.map +1 -0
  321. package/dist/drive/methods/unhide_shared_drive/index.d.ts +19 -0
  322. package/dist/drive/methods/unhide_shared_drive/index.d.ts.map +1 -0
  323. package/dist/drive/methods/unhide_shared_drive/index.js +16 -0
  324. package/dist/drive/methods/unhide_shared_drive/index.js.map +1 -0
  325. package/dist/drive/methods/unhide_shared_drive/schema.d.ts +23 -0
  326. package/dist/drive/methods/unhide_shared_drive/schema.d.ts.map +1 -0
  327. package/dist/drive/methods/unhide_shared_drive/schema.js +9 -0
  328. package/dist/drive/methods/unhide_shared_drive/schema.js.map +1 -0
  329. package/dist/drive/methods/untrash_file/handler.d.ts +5 -0
  330. package/dist/drive/methods/untrash_file/handler.d.ts.map +1 -0
  331. package/dist/drive/methods/untrash_file/handler.js +11 -0
  332. package/dist/drive/methods/untrash_file/handler.js.map +1 -0
  333. package/dist/drive/methods/untrash_file/index.d.ts +25 -0
  334. package/dist/drive/methods/untrash_file/index.d.ts.map +1 -0
  335. package/dist/drive/methods/untrash_file/index.js +17 -0
  336. package/dist/drive/methods/untrash_file/index.js.map +1 -0
  337. package/dist/drive/methods/untrash_file/schema.d.ts +29 -0
  338. package/dist/drive/methods/untrash_file/schema.d.ts.map +1 -0
  339. package/dist/drive/methods/untrash_file/schema.js +9 -0
  340. package/dist/drive/methods/untrash_file/schema.js.map +1 -0
  341. package/dist/drive/methods/update_comment/handler.d.ts +5 -0
  342. package/dist/drive/methods/update_comment/handler.d.ts.map +1 -0
  343. package/dist/drive/methods/update_comment/handler.js +11 -0
  344. package/dist/drive/methods/update_comment/handler.js.map +1 -0
  345. package/dist/drive/methods/update_comment/index.d.ts +43 -0
  346. package/dist/drive/methods/update_comment/index.d.ts.map +1 -0
  347. package/dist/drive/methods/update_comment/index.js +16 -0
  348. package/dist/drive/methods/update_comment/index.js.map +1 -0
  349. package/dist/drive/methods/update_comment/schema.d.ts +47 -0
  350. package/dist/drive/methods/update_comment/schema.d.ts.map +1 -0
  351. package/dist/drive/methods/update_comment/schema.js +11 -0
  352. package/dist/drive/methods/update_comment/schema.js.map +1 -0
  353. package/dist/drive/methods/update_file/handler.d.ts +5 -0
  354. package/dist/drive/methods/update_file/handler.d.ts.map +1 -0
  355. package/dist/drive/methods/update_file/handler.js +21 -0
  356. package/dist/drive/methods/update_file/handler.js.map +1 -0
  357. package/dist/drive/methods/update_file/index.d.ts +33 -0
  358. package/dist/drive/methods/update_file/index.d.ts.map +1 -0
  359. package/dist/drive/methods/update_file/index.js +19 -0
  360. package/dist/drive/methods/update_file/index.js.map +1 -0
  361. package/dist/drive/methods/update_file/schema.d.ts +37 -0
  362. package/dist/drive/methods/update_file/schema.d.ts.map +1 -0
  363. package/dist/drive/methods/update_file/schema.js +35 -0
  364. package/dist/drive/methods/update_file/schema.js.map +1 -0
  365. package/dist/drive/methods/update_reply/handler.d.ts +5 -0
  366. package/dist/drive/methods/update_reply/handler.d.ts.map +1 -0
  367. package/dist/drive/methods/update_reply/handler.js +12 -0
  368. package/dist/drive/methods/update_reply/handler.js.map +1 -0
  369. package/dist/drive/methods/update_reply/index.d.ts +24 -0
  370. package/dist/drive/methods/update_reply/index.d.ts.map +1 -0
  371. package/dist/drive/methods/update_reply/index.js +16 -0
  372. package/dist/drive/methods/update_reply/index.js.map +1 -0
  373. package/dist/drive/methods/update_reply/schema.d.ts +28 -0
  374. package/dist/drive/methods/update_reply/schema.d.ts.map +1 -0
  375. package/dist/drive/methods/update_reply/schema.js +12 -0
  376. package/dist/drive/methods/update_reply/schema.js.map +1 -0
  377. package/dist/drive/methods/update_revision/handler.d.ts +5 -0
  378. package/dist/drive/methods/update_revision/handler.d.ts.map +1 -0
  379. package/dist/drive/methods/update_revision/handler.js +17 -0
  380. package/dist/drive/methods/update_revision/handler.js.map +1 -0
  381. package/dist/drive/methods/update_revision/index.d.ts +27 -0
  382. package/dist/drive/methods/update_revision/index.d.ts.map +1 -0
  383. package/dist/drive/methods/update_revision/index.js +17 -0
  384. package/dist/drive/methods/update_revision/index.js.map +1 -0
  385. package/dist/drive/methods/update_revision/schema.d.ts +31 -0
  386. package/dist/drive/methods/update_revision/schema.d.ts.map +1 -0
  387. package/dist/drive/methods/update_revision/schema.js +29 -0
  388. package/dist/drive/methods/update_revision/schema.js.map +1 -0
  389. package/dist/drive/methods/update_shared_drive/handler.d.ts +5 -0
  390. package/dist/drive/methods/update_shared_drive/handler.d.ts.map +1 -0
  391. package/dist/drive/methods/update_shared_drive/handler.js +17 -0
  392. package/dist/drive/methods/update_shared_drive/handler.js.map +1 -0
  393. package/dist/drive/methods/update_shared_drive/index.d.ts +30 -0
  394. package/dist/drive/methods/update_shared_drive/index.d.ts.map +1 -0
  395. package/dist/drive/methods/update_shared_drive/index.js +17 -0
  396. package/dist/drive/methods/update_shared_drive/index.js.map +1 -0
  397. package/dist/drive/methods/update_shared_drive/schema.d.ts +34 -0
  398. package/dist/drive/methods/update_shared_drive/schema.d.ts.map +1 -0
  399. package/dist/drive/methods/update_shared_drive/schema.js +53 -0
  400. package/dist/drive/methods/update_shared_drive/schema.js.map +1 -0
  401. package/dist/drive/operation.d.ts +12 -0
  402. package/dist/drive/operation.d.ts.map +1 -0
  403. package/dist/drive/operation.js +10 -0
  404. package/dist/drive/operation.js.map +1 -0
  405. package/dist/drive/tools/copy_file/handler.d.ts +5 -0
  406. package/dist/drive/tools/copy_file/handler.d.ts.map +1 -0
  407. package/dist/drive/tools/copy_file/handler.js +15 -0
  408. package/dist/drive/tools/copy_file/handler.js.map +1 -0
  409. package/dist/drive/tools/copy_file/index.d.ts +27 -0
  410. package/dist/drive/tools/copy_file/index.d.ts.map +1 -0
  411. package/dist/drive/tools/copy_file/index.js +18 -0
  412. package/dist/drive/tools/copy_file/index.js.map +1 -0
  413. package/dist/drive/tools/copy_file/schema.d.ts +31 -0
  414. package/dist/drive/tools/copy_file/schema.d.ts.map +1 -0
  415. package/dist/drive/tools/copy_file/schema.js +18 -0
  416. package/dist/drive/tools/copy_file/schema.js.map +1 -0
  417. package/dist/drive/tools/create_file/handler.d.ts +5 -0
  418. package/dist/drive/tools/create_file/handler.d.ts.map +1 -0
  419. package/dist/drive/tools/create_file/handler.js +42 -0
  420. package/dist/drive/tools/create_file/handler.js.map +1 -0
  421. package/dist/drive/tools/create_file/index.d.ts +30 -0
  422. package/dist/drive/tools/create_file/index.d.ts.map +1 -0
  423. package/dist/drive/tools/create_file/index.js +19 -0
  424. package/dist/drive/tools/create_file/index.js.map +1 -0
  425. package/dist/drive/tools/create_file/schema.d.ts +34 -0
  426. package/dist/drive/tools/create_file/schema.d.ts.map +1 -0
  427. package/dist/drive/tools/create_file/schema.js +29 -0
  428. package/dist/drive/tools/create_file/schema.js.map +1 -0
  429. package/dist/drive/tools/download_file_content/handler.d.ts +5 -0
  430. package/dist/drive/tools/download_file_content/handler.d.ts.map +1 -0
  431. package/dist/drive/tools/download_file_content/handler.js +33 -0
  432. package/dist/drive/tools/download_file_content/handler.js.map +1 -0
  433. package/dist/drive/tools/download_file_content/index.d.ts +10 -0
  434. package/dist/drive/tools/download_file_content/index.d.ts.map +1 -0
  435. package/dist/drive/tools/download_file_content/index.js +19 -0
  436. package/dist/drive/tools/download_file_content/index.js.map +1 -0
  437. package/dist/drive/tools/download_file_content/schema.d.ts +14 -0
  438. package/dist/drive/tools/download_file_content/schema.d.ts.map +1 -0
  439. package/dist/drive/tools/download_file_content/schema.js +18 -0
  440. package/dist/drive/tools/download_file_content/schema.js.map +1 -0
  441. package/dist/drive/tools/get_file_metadata/handler.d.ts +5 -0
  442. package/dist/drive/tools/get_file_metadata/handler.d.ts.map +1 -0
  443. package/dist/drive/tools/get_file_metadata/handler.js +10 -0
  444. package/dist/drive/tools/get_file_metadata/handler.js.map +1 -0
  445. package/dist/drive/tools/get_file_metadata/index.d.ts +26 -0
  446. package/dist/drive/tools/get_file_metadata/index.d.ts.map +1 -0
  447. package/dist/drive/tools/get_file_metadata/index.js +17 -0
  448. package/dist/drive/tools/get_file_metadata/index.js.map +1 -0
  449. package/dist/drive/tools/get_file_metadata/schema.d.ts +30 -0
  450. package/dist/drive/tools/get_file_metadata/schema.d.ts.map +1 -0
  451. package/dist/drive/tools/get_file_metadata/schema.js +15 -0
  452. package/dist/drive/tools/get_file_metadata/schema.js.map +1 -0
  453. package/dist/drive/tools/get_file_permissions/handler.d.ts +5 -0
  454. package/dist/drive/tools/get_file_permissions/handler.d.ts.map +1 -0
  455. package/dist/drive/tools/get_file_permissions/handler.js +20 -0
  456. package/dist/drive/tools/get_file_permissions/handler.js.map +1 -0
  457. package/dist/drive/tools/get_file_permissions/index.d.ts +27 -0
  458. package/dist/drive/tools/get_file_permissions/index.d.ts.map +1 -0
  459. package/dist/drive/tools/get_file_permissions/index.js +16 -0
  460. package/dist/drive/tools/get_file_permissions/index.js.map +1 -0
  461. package/dist/drive/tools/get_file_permissions/schema.d.ts +31 -0
  462. package/dist/drive/tools/get_file_permissions/schema.d.ts.map +1 -0
  463. package/dist/drive/tools/get_file_permissions/schema.js +11 -0
  464. package/dist/drive/tools/get_file_permissions/schema.js.map +1 -0
  465. package/dist/drive/tools/list_recent_files/handler.d.ts +5 -0
  466. package/dist/drive/tools/list_recent_files/handler.d.ts.map +1 -0
  467. package/dist/drive/tools/list_recent_files/handler.js +23 -0
  468. package/dist/drive/tools/list_recent_files/handler.js.map +1 -0
  469. package/dist/drive/tools/list_recent_files/index.d.ts +35 -0
  470. package/dist/drive/tools/list_recent_files/index.d.ts.map +1 -0
  471. package/dist/drive/tools/list_recent_files/index.js +16 -0
  472. package/dist/drive/tools/list_recent_files/index.js.map +1 -0
  473. package/dist/drive/tools/list_recent_files/schema.d.ts +39 -0
  474. package/dist/drive/tools/list_recent_files/schema.d.ts.map +1 -0
  475. package/dist/drive/tools/list_recent_files/schema.js +29 -0
  476. package/dist/drive/tools/list_recent_files/schema.js.map +1 -0
  477. package/dist/drive/tools/read_file_content/handler.d.ts +5 -0
  478. package/dist/drive/tools/read_file_content/handler.d.ts.map +1 -0
  479. package/dist/drive/tools/read_file_content/handler.js +24 -0
  480. package/dist/drive/tools/read_file_content/handler.js.map +1 -0
  481. package/dist/drive/tools/read_file_content/index.d.ts +6 -0
  482. package/dist/drive/tools/read_file_content/index.d.ts.map +1 -0
  483. package/dist/drive/tools/read_file_content/index.js +19 -0
  484. package/dist/drive/tools/read_file_content/index.js.map +1 -0
  485. package/dist/drive/tools/read_file_content/schema.d.ts +10 -0
  486. package/dist/drive/tools/read_file_content/schema.d.ts.map +1 -0
  487. package/dist/drive/tools/read_file_content/schema.js +10 -0
  488. package/dist/drive/tools/read_file_content/schema.js.map +1 -0
  489. package/dist/drive/tools/registry.d.ts +193 -0
  490. package/dist/drive/tools/registry.d.ts.map +1 -0
  491. package/dist/drive/tools/registry.js +24 -0
  492. package/dist/drive/tools/registry.js.map +1 -0
  493. package/dist/drive/tools/search_files/handler.d.ts +5 -0
  494. package/dist/drive/tools/search_files/handler.d.ts.map +1 -0
  495. package/dist/drive/tools/search_files/handler.js +18 -0
  496. package/dist/drive/tools/search_files/handler.js.map +1 -0
  497. package/dist/drive/tools/search_files/index.d.ts +31 -0
  498. package/dist/drive/tools/search_files/index.d.ts.map +1 -0
  499. package/dist/drive/tools/search_files/index.js +17 -0
  500. package/dist/drive/tools/search_files/index.js.map +1 -0
  501. package/dist/drive/tools/search_files/schema.d.ts +35 -0
  502. package/dist/drive/tools/search_files/schema.d.ts.map +1 -0
  503. package/dist/drive/tools/search_files/schema.js +27 -0
  504. package/dist/drive/tools/search_files/schema.js.map +1 -0
  505. package/dist/{sheets/lib → lib}/enums.d.ts +1 -1
  506. package/dist/lib/enums.d.ts.map +1 -0
  507. package/dist/{sheets/lib → lib}/enums.js +1 -1
  508. package/dist/lib/enums.js.map +1 -0
  509. package/dist/sheets/lib/filters.d.ts.map +1 -1
  510. package/dist/sheets/lib/filters.js +1 -1
  511. package/dist/sheets/lib/filters.js.map +1 -1
  512. package/dist/sheets/lib/metadata.d.ts.map +1 -1
  513. package/dist/sheets/lib/metadata.js +1 -1
  514. package/dist/sheets/lib/metadata.js.map +1 -1
  515. package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
  516. package/dist/sheets/lib/spreadsheet.js +1 -1
  517. package/dist/sheets/lib/spreadsheet.js.map +1 -1
  518. package/dist/sheets/lib/values.d.ts.map +1 -1
  519. package/dist/sheets/lib/values.js +1 -1
  520. package/dist/sheets/lib/values.js.map +1 -1
  521. package/package.json +9 -3
  522. package/dist/sheets/lib/enums.d.ts.map +0 -1
  523. package/dist/sheets/lib/enums.js.map +0 -1
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A reply to a comment on a file. A reply may carry an `action` that resolves
4
+ * or reopens its parent comment.
5
+ *
6
+ * @see https://developers.google.com/workspace/drive/api/guides/manage-comments
7
+ */
8
+ export declare const Reply: z.ZodObject<{
9
+ id: z.ZodString;
10
+ content: z.ZodOptional<z.ZodString>;
11
+ htmlContent: z.ZodOptional<z.ZodString>;
12
+ author: z.ZodOptional<z.ZodObject<{
13
+ displayName: z.ZodOptional<z.ZodString>;
14
+ emailAddress: z.ZodOptional<z.ZodString>;
15
+ me: z.ZodOptional<z.ZodBoolean>;
16
+ photoLink: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>>;
18
+ createdTime: z.ZodOptional<z.ZodString>;
19
+ modifiedTime: z.ZodOptional<z.ZodString>;
20
+ deleted: z.ZodOptional<z.ZodBoolean>;
21
+ action: z.ZodOptional<z.ZodEnum<{
22
+ resolve: "resolve";
23
+ reopen: "reopen";
24
+ }>>;
25
+ }, z.core.$strip>;
26
+ export type Reply = z.infer<typeof Reply>;
27
+ //# sourceMappingURL=Reply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/Reply.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;iBAmChB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ import { User } from './User.js';
3
+ /**
4
+ * A reply to a comment on a file. A reply may carry an `action` that resolves
5
+ * or reopens its parent comment.
6
+ *
7
+ * @see https://developers.google.com/workspace/drive/api/guides/manage-comments
8
+ */
9
+ export const Reply = z.object({
10
+ id: z.string().describe('Output only. The ID of the reply.'),
11
+ content: z
12
+ .string()
13
+ .optional()
14
+ .describe('The plain text content of the reply. This field is used for setting the content, ' +
15
+ 'while htmlContent should be displayed.'),
16
+ htmlContent: z
17
+ .string()
18
+ .optional()
19
+ .describe('Output only. The content of the reply with HTML formatting.'),
20
+ author: User.optional().describe("Output only. The author of the reply. The author's email address and permission ID won't be populated."),
21
+ createdTime: z
22
+ .string()
23
+ .optional()
24
+ .describe('The time at which the reply was created (RFC 3339 date-time).'),
25
+ modifiedTime: z
26
+ .string()
27
+ .optional()
28
+ .describe('The last time the reply was modified (RFC 3339 date-time).'),
29
+ deleted: z
30
+ .boolean()
31
+ .optional()
32
+ .describe('Output only. Whether the reply has been deleted. A deleted reply has no content.'),
33
+ action: z
34
+ .enum(['resolve', 'reopen'])
35
+ .optional()
36
+ .describe('The action the reply performed to the parent comment. The supported values are: ' +
37
+ 'resolve, reopen.'),
38
+ });
39
+ //# sourceMappingURL=Reply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reply.js","sourceRoot":"","sources":["../../../src/drive/entities/Reply.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAC5D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF;QACjF,wCAAwC,CAC3C;IACH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9B,wGAAwG,CACzG;IACD,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4DAA4D,CAAC;IACzE,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,kFAAkF,CAAC;IAC/F,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;SAC3B,QAAQ,EAAE;SACV,QAAQ,CACP,kFAAkF;QAChF,kBAAkB,CACrB;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { User } from './User.js';\n\n/**\n * A reply to a comment on a file. A reply may carry an `action` that resolves\n * or reopens its parent comment.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-comments\n */\nexport const Reply = z.object({\n id: z.string().describe('Output only. The ID of the reply.'),\n content: z\n .string()\n .optional()\n .describe(\n 'The plain text content of the reply. This field is used for setting the content, ' +\n 'while htmlContent should be displayed.',\n ),\n htmlContent: z\n .string()\n .optional()\n .describe('Output only. The content of the reply with HTML formatting.'),\n author: User.optional().describe(\n \"Output only. The author of the reply. The author's email address and permission ID won't be populated.\",\n ),\n createdTime: z\n .string()\n .optional()\n .describe('The time at which the reply was created (RFC 3339 date-time).'),\n modifiedTime: z\n .string()\n .optional()\n .describe('The last time the reply was modified (RFC 3339 date-time).'),\n deleted: z\n .boolean()\n .optional()\n .describe('Output only. Whether the reply has been deleted. A deleted reply has no content.'),\n action: z\n .enum(['resolve', 'reopen'])\n .optional()\n .describe(\n 'The action the reply performed to the parent comment. The supported values are: ' +\n 'resolve, reopen.',\n ),\n});\n\nexport type Reply = z.infer<typeof Reply>;\n"]}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A version of a file: Drive keeps a revision history for blobs and Docs
4
+ * Editors files. Blob revisions auto-purge 30 days after newer content is
5
+ * uploaded unless pinned with `keepForever`; the publish flags apply to Docs
6
+ * Editors files only.
7
+ *
8
+ * @see https://developers.google.com/workspace/drive/api/guides/manage-revisions
9
+ */
10
+ export declare const Revision: z.ZodObject<{
11
+ id: z.ZodString;
12
+ mimeType: z.ZodOptional<z.ZodString>;
13
+ modifiedTime: z.ZodOptional<z.ZodString>;
14
+ keepForever: z.ZodOptional<z.ZodBoolean>;
15
+ published: z.ZodOptional<z.ZodBoolean>;
16
+ publishAuto: z.ZodOptional<z.ZodBoolean>;
17
+ publishedOutsideDomain: z.ZodOptional<z.ZodBoolean>;
18
+ publishedLink: z.ZodOptional<z.ZodString>;
19
+ size: z.ZodOptional<z.ZodString>;
20
+ originalFilename: z.ZodOptional<z.ZodString>;
21
+ md5Checksum: z.ZodOptional<z.ZodString>;
22
+ lastModifyingUser: z.ZodOptional<z.ZodObject<{
23
+ displayName: z.ZodOptional<z.ZodString>;
24
+ emailAddress: z.ZodOptional<z.ZodString>;
25
+ me: z.ZodOptional<z.ZodBoolean>;
26
+ photoLink: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>;
29
+ export type Revision = z.infer<typeof Revision>;
30
+ //# sourceMappingURL=Revision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Revision.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/Revision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;iBAkEnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { z } from 'zod';
2
+ import { User } from './User.js';
3
+ /**
4
+ * A version of a file: Drive keeps a revision history for blobs and Docs
5
+ * Editors files. Blob revisions auto-purge 30 days after newer content is
6
+ * uploaded unless pinned with `keepForever`; the publish flags apply to Docs
7
+ * Editors files only.
8
+ *
9
+ * @see https://developers.google.com/workspace/drive/api/guides/manage-revisions
10
+ */
11
+ export const Revision = z.object({
12
+ id: z.string().describe('Output only. The ID of the revision.'),
13
+ mimeType: z.string().optional().describe('Output only. The MIME type of the revision.'),
14
+ modifiedTime: z
15
+ .string()
16
+ .optional()
17
+ .describe('The last time the revision was modified (RFC 3339 date-time).'),
18
+ keepForever: z
19
+ .boolean()
20
+ .optional()
21
+ .describe('Whether to keep this revision forever, even if it is no longer the head revision. ' +
22
+ 'If not set, the revision will be automatically purged 30 days after newer content ' +
23
+ 'is uploaded. Only applicable to files with binary content; only 200 revisions can ' +
24
+ 'be kept forever.'),
25
+ published: z
26
+ .boolean()
27
+ .optional()
28
+ .describe('Whether this revision is published. This is only applicable to Docs Editors files.'),
29
+ publishAuto: z
30
+ .boolean()
31
+ .optional()
32
+ .describe('Whether subsequent revisions will be automatically republished. This is only ' +
33
+ 'applicable to Docs Editors files.'),
34
+ publishedOutsideDomain: z
35
+ .boolean()
36
+ .optional()
37
+ .describe('Whether this revision is published outside the domain. This is only applicable to ' +
38
+ 'Docs Editors files.'),
39
+ publishedLink: z
40
+ .string()
41
+ .optional()
42
+ .describe('Output only. A link to the published revision. This is only populated for Docs ' +
43
+ 'Editors files.'),
44
+ size: z
45
+ .string()
46
+ .optional()
47
+ .describe("Output only. The size of the revision's content in bytes. This is only applicable " +
48
+ 'to files with binary content in Drive.'),
49
+ originalFilename: z
50
+ .string()
51
+ .optional()
52
+ .describe('Output only. The original filename used to create this revision. This is only ' +
53
+ 'applicable to files with binary content in Drive.'),
54
+ md5Checksum: z
55
+ .string()
56
+ .optional()
57
+ .describe("Output only. The MD5 checksum of the revision's content. This is only applicable " +
58
+ 'to files with binary content in Drive.'),
59
+ lastModifyingUser: User.optional().describe('Output only. The last user to modify this revision. This field is only populated when ' +
60
+ 'the last modification was performed by a signed-in user.'),
61
+ });
62
+ //# sourceMappingURL=Revision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Revision.js","sourceRoot":"","sources":["../../../src/drive/entities/Revision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IACvF,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,oFAAoF;QACpF,oFAAoF;QACpF,kBAAkB,CACrB;IACH,SAAS,EAAE,CAAC;SACT,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,oFAAoF,CAAC;IACjG,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E;QAC7E,mCAAmC,CACtC;IACH,sBAAsB,EAAE,CAAC;SACtB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,qBAAqB,CACxB;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF;QAC/E,gBAAgB,CACnB;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF;QAClF,wCAAwC,CAC3C;IACH,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,gFAAgF;QAC9E,mDAAmD,CACtD;IACH,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF;QACjF,wCAAwC,CAC3C;IACH,iBAAiB,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACzC,wFAAwF;QACtF,0DAA0D,CAC7D;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { User } from './User.js';\n\n/**\n * A version of a file: Drive keeps a revision history for blobs and Docs\n * Editors files. Blob revisions auto-purge 30 days after newer content is\n * uploaded unless pinned with `keepForever`; the publish flags apply to Docs\n * Editors files only.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-revisions\n */\nexport const Revision = z.object({\n id: z.string().describe('Output only. The ID of the revision.'),\n mimeType: z.string().optional().describe('Output only. The MIME type of the revision.'),\n modifiedTime: z\n .string()\n .optional()\n .describe('The last time the revision was modified (RFC 3339 date-time).'),\n keepForever: z\n .boolean()\n .optional()\n .describe(\n 'Whether to keep this revision forever, even if it is no longer the head revision. ' +\n 'If not set, the revision will be automatically purged 30 days after newer content ' +\n 'is uploaded. Only applicable to files with binary content; only 200 revisions can ' +\n 'be kept forever.',\n ),\n published: z\n .boolean()\n .optional()\n .describe('Whether this revision is published. This is only applicable to Docs Editors files.'),\n publishAuto: z\n .boolean()\n .optional()\n .describe(\n 'Whether subsequent revisions will be automatically republished. This is only ' +\n 'applicable to Docs Editors files.',\n ),\n publishedOutsideDomain: z\n .boolean()\n .optional()\n .describe(\n 'Whether this revision is published outside the domain. This is only applicable to ' +\n 'Docs Editors files.',\n ),\n publishedLink: z\n .string()\n .optional()\n .describe(\n 'Output only. A link to the published revision. This is only populated for Docs ' +\n 'Editors files.',\n ),\n size: z\n .string()\n .optional()\n .describe(\n \"Output only. The size of the revision's content in bytes. This is only applicable \" +\n 'to files with binary content in Drive.',\n ),\n originalFilename: z\n .string()\n .optional()\n .describe(\n 'Output only. The original filename used to create this revision. This is only ' +\n 'applicable to files with binary content in Drive.',\n ),\n md5Checksum: z\n .string()\n .optional()\n .describe(\n \"Output only. The MD5 checksum of the revision's content. This is only applicable \" +\n 'to files with binary content in Drive.',\n ),\n lastModifyingUser: User.optional().describe(\n 'Output only. The last user to modify this revision. This field is only populated when ' +\n 'the last modification was performed by a signed-in user.',\n ),\n});\n\nexport type Revision = z.infer<typeof Revision>;\n"]}
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A shared drive: a Drive space owned by an organization rather than an
4
+ * individual, whose top-level folder shares the drive's ID. The REST resource
5
+ * is named `drives`; the wing says "shared drive" (Google's prose noun) so a
6
+ * wire name like delete_shared_drive cannot be misread as something
7
+ * account-wide.
8
+ *
9
+ * @see https://developers.google.com/workspace/drive/api/guides/manage-shareddrives
10
+ */
11
+ export declare const SharedDrive: z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodOptional<z.ZodString>;
14
+ colorRgb: z.ZodOptional<z.ZodString>;
15
+ themeId: z.ZodOptional<z.ZodString>;
16
+ backgroundImageLink: z.ZodOptional<z.ZodString>;
17
+ createdTime: z.ZodOptional<z.ZodString>;
18
+ hidden: z.ZodOptional<z.ZodBoolean>;
19
+ restrictions: z.ZodOptional<z.ZodObject<{
20
+ adminManagedRestrictions: z.ZodOptional<z.ZodBoolean>;
21
+ copyRequiresWriterPermission: z.ZodOptional<z.ZodBoolean>;
22
+ domainUsersOnly: z.ZodOptional<z.ZodBoolean>;
23
+ driveMembersOnly: z.ZodOptional<z.ZodBoolean>;
24
+ sharingFoldersRequiresOrganizerPermission: z.ZodOptional<z.ZodBoolean>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ export type SharedDrive = z.infer<typeof SharedDrive>;
28
+ //# sourceMappingURL=SharedDrive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedDrive.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/SharedDrive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;iBAmEtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A shared drive: a Drive space owned by an organization rather than an
4
+ * individual, whose top-level folder shares the drive's ID. The REST resource
5
+ * is named `drives`; the wing says "shared drive" (Google's prose noun) so a
6
+ * wire name like delete_shared_drive cannot be misread as something
7
+ * account-wide.
8
+ *
9
+ * @see https://developers.google.com/workspace/drive/api/guides/manage-shareddrives
10
+ */
11
+ export const SharedDrive = z.object({
12
+ id: z
13
+ .string()
14
+ .describe('Output only. The ID of this shared drive which is also the ID of the top level ' +
15
+ 'folder of this shared drive.'),
16
+ name: z.string().optional().describe('The name of this shared drive.'),
17
+ colorRgb: z
18
+ .string()
19
+ .optional()
20
+ .describe('The color of this shared drive as an RGB hex string. It can only be set on a ' +
21
+ 'drives.update request that does not set themeId.'),
22
+ themeId: z
23
+ .string()
24
+ .optional()
25
+ .describe('The ID of the theme from which the background image and color will be set. The set ' +
26
+ 'of possible driveThemes can be retrieved from a get_about response.'),
27
+ backgroundImageLink: z
28
+ .string()
29
+ .optional()
30
+ .describe("Output only. A short-lived link to this shared drive's background image."),
31
+ createdTime: z
32
+ .string()
33
+ .optional()
34
+ .describe('The time at which the shared drive was created (RFC 3339 date-time).'),
35
+ hidden: z.boolean().optional().describe('Whether the shared drive is hidden from default view.'),
36
+ restrictions: z
37
+ .object({
38
+ adminManagedRestrictions: z
39
+ .boolean()
40
+ .optional()
41
+ .describe('Whether administrative privileges on this shared drive are required to modify restrictions.'),
42
+ copyRequiresWriterPermission: z
43
+ .boolean()
44
+ .optional()
45
+ .describe('Whether the options to copy, print, or download files inside this shared drive ' +
46
+ 'should be disabled for readers and commenters.'),
47
+ domainUsersOnly: z
48
+ .boolean()
49
+ .optional()
50
+ .describe('Whether access to this shared drive and items inside it is restricted to users ' +
51
+ 'of the domain to which this shared drive belongs.'),
52
+ driveMembersOnly: z
53
+ .boolean()
54
+ .optional()
55
+ .describe('Whether access to items inside this shared drive is restricted to its members.'),
56
+ sharingFoldersRequiresOrganizerPermission: z
57
+ .boolean()
58
+ .optional()
59
+ .describe('If true, only users with the organizer role can share folders. If false, users ' +
60
+ 'with either the organizer role or the file organizer role can share folders.'),
61
+ })
62
+ .optional()
63
+ .describe('A set of restrictions that apply to this shared drive or items inside it.'),
64
+ });
65
+ //# sourceMappingURL=SharedDrive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedDrive.js","sourceRoot":"","sources":["../../../src/drive/entities/SharedDrive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACP,iFAAiF;QAC/E,8BAA8B,CACjC;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACtE,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E;QAC7E,kDAAkD,CACrD;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,qFAAqF;QACnF,qEAAqE,CACxE;IACH,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0EAA0E,CAAC;IACvF,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sEAAsE,CAAC;IACnF,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;IAChG,YAAY,EAAE,CAAC;SACZ,MAAM,CAAC;QACN,wBAAwB,EAAE,CAAC;aACxB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,6FAA6F,CAC9F;QACH,4BAA4B,EAAE,CAAC;aAC5B,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,iFAAiF;YAC/E,gDAAgD,CACnD;QACH,eAAe,EAAE,CAAC;aACf,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,iFAAiF;YAC/E,mDAAmD,CACtD;QACH,gBAAgB,EAAE,CAAC;aAChB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,gFAAgF,CAAC;QAC7F,yCAAyC,EAAE,CAAC;aACzC,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,iFAAiF;YAC/E,8EAA8E,CACjF;KACJ,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,2EAA2E,CAAC;CACzF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A shared drive: a Drive space owned by an organization rather than an\n * individual, whose top-level folder shares the drive's ID. The REST resource\n * is named `drives`; the wing says \"shared drive\" (Google's prose noun) so a\n * wire name like delete_shared_drive cannot be misread as something\n * account-wide.\n *\n * @see https://developers.google.com/workspace/drive/api/guides/manage-shareddrives\n */\nexport const SharedDrive = z.object({\n id: z\n .string()\n .describe(\n 'Output only. The ID of this shared drive which is also the ID of the top level ' +\n 'folder of this shared drive.',\n ),\n name: z.string().optional().describe('The name of this shared drive.'),\n colorRgb: z\n .string()\n .optional()\n .describe(\n 'The color of this shared drive as an RGB hex string. It can only be set on a ' +\n 'drives.update request that does not set themeId.',\n ),\n themeId: z\n .string()\n .optional()\n .describe(\n 'The ID of the theme from which the background image and color will be set. The set ' +\n 'of possible driveThemes can be retrieved from a get_about response.',\n ),\n backgroundImageLink: z\n .string()\n .optional()\n .describe(\"Output only. A short-lived link to this shared drive's background image.\"),\n createdTime: z\n .string()\n .optional()\n .describe('The time at which the shared drive was created (RFC 3339 date-time).'),\n hidden: z.boolean().optional().describe('Whether the shared drive is hidden from default view.'),\n restrictions: z\n .object({\n adminManagedRestrictions: z\n .boolean()\n .optional()\n .describe(\n 'Whether administrative privileges on this shared drive are required to modify restrictions.',\n ),\n copyRequiresWriterPermission: z\n .boolean()\n .optional()\n .describe(\n 'Whether the options to copy, print, or download files inside this shared drive ' +\n 'should be disabled for readers and commenters.',\n ),\n domainUsersOnly: z\n .boolean()\n .optional()\n .describe(\n 'Whether access to this shared drive and items inside it is restricted to users ' +\n 'of the domain to which this shared drive belongs.',\n ),\n driveMembersOnly: z\n .boolean()\n .optional()\n .describe('Whether access to items inside this shared drive is restricted to its members.'),\n sharingFoldersRequiresOrganizerPermission: z\n .boolean()\n .optional()\n .describe(\n 'If true, only users with the organizer role can share folders. If false, users ' +\n 'with either the organizer role or the file organizer role can share folders.',\n ),\n })\n .optional()\n .describe('A set of restrictions that apply to this shared drive or items inside it.'),\n});\n\nexport type SharedDrive = z.infer<typeof SharedDrive>;\n"]}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A Drive user as surfaced on comments, replies, and revisions (the author
4
+ * and last-modifying-user fields). Drive does not populate the author's email
5
+ * address on comments and replies.
6
+ *
7
+ * @see https://developers.google.com/workspace/drive/api/reference/rest/v3/User
8
+ */
9
+ export declare const User: z.ZodObject<{
10
+ displayName: z.ZodOptional<z.ZodString>;
11
+ emailAddress: z.ZodOptional<z.ZodString>;
12
+ me: z.ZodOptional<z.ZodBoolean>;
13
+ photoLink: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export type User = z.infer<typeof User>;
16
+ //# sourceMappingURL=User.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/drive/entities/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,IAAI;;;;;iBAiBf,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A Drive user as surfaced on comments, replies, and revisions (the author
4
+ * and last-modifying-user fields). Drive does not populate the author's email
5
+ * address on comments and replies.
6
+ *
7
+ * @see https://developers.google.com/workspace/drive/api/reference/rest/v3/User
8
+ */
9
+ export const User = z.object({
10
+ displayName: z
11
+ .string()
12
+ .optional()
13
+ .describe('Output only. A plain text displayable name for this user.'),
14
+ emailAddress: z
15
+ .string()
16
+ .optional()
17
+ .describe('Output only. The email address of the user. This may not be present in certain ' +
18
+ 'contexts if the user has not made their email address visible to the requester.'),
19
+ me: z.boolean().optional().describe('Output only. Whether this user is the requesting user.'),
20
+ photoLink: z
21
+ .string()
22
+ .optional()
23
+ .describe("Output only. A link to the user's profile photo, if available."),
24
+ });
25
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/drive/entities/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF;QAC/E,iFAAiF,CACpF;IACH,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;IAC7F,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gEAAgE,CAAC;CAC9E,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * A Drive user as surfaced on comments, replies, and revisions (the author\n * and last-modifying-user fields). Drive does not populate the author's email\n * address on comments and replies.\n *\n * @see https://developers.google.com/workspace/drive/api/reference/rest/v3/User\n */\nexport const User = z.object({\n displayName: z\n .string()\n .optional()\n .describe('Output only. A plain text displayable name for this user.'),\n emailAddress: z\n .string()\n .optional()\n .describe(\n 'Output only. The email address of the user. This may not be present in certain ' +\n 'contexts if the user has not made their email address visible to the requester.',\n ),\n me: z.boolean().optional().describe('Output only. Whether this user is the requesting user.'),\n photoLink: z\n .string()\n .optional()\n .describe(\"Output only. A link to the user's profile photo, if available.\"),\n});\n\nexport type User = z.infer<typeof User>;\n"]}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/drive/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ import { drive } from '@googleapis/drive';
3
+ import { authorizedClient, runAuthFlow } from '../auth/oauth.js';
4
+ import { mergeOperations } from '../lib/operation.js';
5
+ import { server } from '../lib/server.js';
6
+ import { instructions } from './instructions.js';
7
+ import { methods } from './methods/registry.js';
8
+ import { tools } from './tools/registry.js';
9
+ // Cloning this for a new service? Add that service's OAuth scopes to `SCOPES` in
10
+ // src/auth/config.ts BEFORE the first auth. The scope union is front-loaded so each
11
+ // account consents once, and Google only re-issues a refresh token on a fresh grant;
12
+ // adding a scope later forces re-consent of every account. Nothing in this file
13
+ // references scopes, which is exactly why it is easy to miss.
14
+ await server({
15
+ name: 'drive',
16
+ title: 'Google Drive (google-mcp-suite)',
17
+ description: 'Per-account Google Drive MCP server: files, comments, revisions, and shared drives.',
18
+ instructions,
19
+ operations: mergeOperations(tools, methods),
20
+ client: async (account) => drive({ version: 'v3', auth: await authorizedClient(account) }),
21
+ runAuth: runAuthFlow,
22
+ });
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/drive/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,iFAAiF;AACjF,oFAAoF;AACpF,qFAAqF;AACrF,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,MAAM,CAAC;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,iCAAiC;IACxC,WAAW,EACT,qFAAqF;IACvF,YAAY;IACZ,UAAU,EAAE,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC;IAC3C,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1F,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { drive } from '@googleapis/drive';\nimport { authorizedClient, runAuthFlow } from '../auth/oauth.js';\nimport { mergeOperations } from '../lib/operation.js';\nimport { server } from '../lib/server.js';\nimport { instructions } from './instructions.js';\nimport { methods } from './methods/registry.js';\nimport { tools } from './tools/registry.js';\n\n// Cloning this for a new service? Add that service's OAuth scopes to `SCOPES` in\n// src/auth/config.ts BEFORE the first auth. The scope union is front-loaded so each\n// account consents once, and Google only re-issues a refresh token on a fresh grant;\n// adding a scope later forces re-consent of every account. Nothing in this file\n// references scopes, which is exactly why it is easy to miss.\nawait server({\n name: 'drive',\n title: 'Google Drive (google-mcp-suite)',\n description:\n 'Per-account Google Drive MCP server: files, comments, revisions, and shared drives.',\n instructions,\n operations: mergeOperations(tools, methods),\n client: async (account) => drive({ version: 'v3', auth: await authorizedClient(account) }),\n runAuth: runAuthFlow,\n});\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const instructions: string;
2
+ //# sourceMappingURL=instructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/drive/instructions.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,QAgB+B,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Served in the MCP initialize result; see `ServerOptions.instructions` in
3
+ * src/lib/server.ts. A standalone module so tests can pin the content without
4
+ * booting the server (index.ts's import side effect is `await server()`).
5
+ */
6
+ import { SOURCE_META_KEY } from '../lib/operation.js';
7
+ import { identityInstructions } from '../lib/server.js';
8
+ export const instructions = identityInstructions('Google account') +
9
+ "Operation vocabulary transcribes Google's documentation: tools keep the " +
10
+ "MCP toolset's parameter names (title, parentId, pageSize), methods keep " +
11
+ "REST's (fileId, addParents, driveId), and every tools/list entry links " +
12
+ `its source reference page under _meta['${SOURCE_META_KEY}'] and carries ` +
13
+ 'the four MCP behavior hints. Heed the hints: delete_file and empty_trash ' +
14
+ 'bypass the trash and are unrecoverable; trash_file and untrash_file are ' +
15
+ 'the reversible pair, and Drive purges trashed files after about 30 days. ' +
16
+ 'search_files speaks its own documented query terms (title, parentId, ' +
17
+ 'owner), which this server translates to REST v3 syntax. read_file_content ' +
18
+ 'serves text representations (Docs, Sheets, and Slides exports, and ' +
19
+ 'text-like blobs); download_file_content returns base64 and refuses blobs ' +
20
+ 'over 25 MiB. create_file converts text/plain to Google Docs and text/csv ' +
21
+ 'to Google Sheets unless disableConversionToGoogleType is set. Shared ' +
22
+ 'drives have their own methods (list_shared_drives through ' +
23
+ 'delete_shared_drive), distinct from file operations.';
24
+ //# sourceMappingURL=instructions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/drive/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,0EAA0E;IAC1E,0EAA0E;IAC1E,yEAAyE;IACzE,0CAA0C,eAAe,iBAAiB;IAC1E,2EAA2E;IAC3E,0EAA0E;IAC1E,2EAA2E;IAC3E,uEAAuE;IACvE,4EAA4E;IAC5E,qEAAqE;IACrE,2EAA2E;IAC3E,2EAA2E;IAC3E,uEAAuE;IACvE,4DAA4D;IAC5D,sDAAsD,CAAC","sourcesContent":["/**\n * Served in the MCP initialize result; see `ServerOptions.instructions` in\n * src/lib/server.ts. A standalone module so tests can pin the content without\n * booting the server (index.ts's import side effect is `await server()`).\n */\nimport { SOURCE_META_KEY } from '../lib/operation.js';\nimport { identityInstructions } from '../lib/server.js';\n\nexport const instructions =\n identityInstructions('Google account') +\n \"Operation vocabulary transcribes Google's documentation: tools keep the \" +\n \"MCP toolset's parameter names (title, parentId, pageSize), methods keep \" +\n \"REST's (fileId, addParents, driveId), and every tools/list entry links \" +\n `its source reference page under _meta['${SOURCE_META_KEY}'] and carries ` +\n 'the four MCP behavior hints. Heed the hints: delete_file and empty_trash ' +\n 'bypass the trash and are unrecoverable; trash_file and untrash_file are ' +\n 'the reversible pair, and Drive purges trashed files after about 30 days. ' +\n 'search_files speaks its own documented query terms (title, parentId, ' +\n 'owner), which this server translates to REST v3 syntax. read_file_content ' +\n 'serves text representations (Docs, Sheets, and Slides exports, and ' +\n 'text-like blobs); download_file_content returns base64 and refuses blobs ' +\n 'over 25 MiB. create_file converts text/plain to Google Docs and text/csv ' +\n 'to Google Sheets unless disableConversionToGoogleType is set. Shared ' +\n 'drives have their own methods (list_shared_drives through ' +\n 'delete_shared_drive), distinct from file operations.';\n"]}
@@ -0,0 +1,15 @@
1
+ import type { drive_v3 } from '@googleapis/drive';
2
+ import type { Comment } from '../entities/Comment.js';
3
+ import type { Reply } from '../entities/Reply.js';
4
+ import type { User } from '../entities/User.js';
5
+ /** The `fields` selection backing the Reply projection. */
6
+ export declare const REPLY_FIELDS = "id,content,htmlContent,author(displayName,emailAddress,me,photoLink),createdTime,modifiedTime,deleted,action";
7
+ /** The `fields` selection backing the Comment projection (replies included). */
8
+ export declare const COMMENT_FIELDS: string;
9
+ /** Project a REST user onto the User shape, cleaning nulls to undefined. */
10
+ export declare function projectUser(data: drive_v3.Schema$User): User;
11
+ /** Project a REST reply onto the Reply shape; unknown actions drop rather than masquerade. */
12
+ export declare function projectReply(data: drive_v3.Schema$Reply): Reply;
13
+ /** Project a REST comment onto the Comment shape, replies included. */
14
+ export declare function projectComment(data: drive_v3.Schema$Comment): Comment;
15
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/drive/lib/comment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAKhD,2DAA2D;AAC3D,eAAO,MAAM,YAAY,iHAA0F,CAAC;AAEpH,gFAAgF;AAChF,eAAO,MAAM,cAAc,QAE0C,CAAC;AAEtE,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAO5D;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,GAAG,KAAK,CAW/D;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,GAAG,OAAO,CAmBrE"}
@@ -0,0 +1,52 @@
1
+ import { narrow } from '../../lib/enums.js';
2
+ /** The `fields` selection backing the User projection on authors. */
3
+ const USER_FIELDS = 'displayName,emailAddress,me,photoLink';
4
+ /** The `fields` selection backing the Reply projection. */
5
+ export const REPLY_FIELDS = `id,content,htmlContent,author(${USER_FIELDS}),createdTime,modifiedTime,deleted,action`;
6
+ /** The `fields` selection backing the Comment projection (replies included). */
7
+ export const COMMENT_FIELDS = `id,content,htmlContent,author(${USER_FIELDS}),createdTime,modifiedTime,resolved,deleted,` +
8
+ `anchor,quotedFileContent(mimeType,value),replies(${REPLY_FIELDS})`;
9
+ /** Project a REST user onto the User shape, cleaning nulls to undefined. */
10
+ export function projectUser(data) {
11
+ return {
12
+ displayName: data.displayName ?? undefined,
13
+ emailAddress: data.emailAddress ?? undefined,
14
+ me: data.me ?? undefined,
15
+ photoLink: data.photoLink ?? undefined,
16
+ };
17
+ }
18
+ /** Project a REST reply onto the Reply shape; unknown actions drop rather than masquerade. */
19
+ export function projectReply(data) {
20
+ return {
21
+ id: data.id ?? '',
22
+ content: data.content ?? undefined,
23
+ htmlContent: data.htmlContent ?? undefined,
24
+ author: data.author ? projectUser(data.author) : undefined,
25
+ createdTime: data.createdTime ?? undefined,
26
+ modifiedTime: data.modifiedTime ?? undefined,
27
+ deleted: data.deleted ?? undefined,
28
+ action: narrow(data.action, ['resolve', 'reopen']),
29
+ };
30
+ }
31
+ /** Project a REST comment onto the Comment shape, replies included. */
32
+ export function projectComment(data) {
33
+ return {
34
+ id: data.id ?? '',
35
+ content: data.content ?? undefined,
36
+ htmlContent: data.htmlContent ?? undefined,
37
+ author: data.author ? projectUser(data.author) : undefined,
38
+ createdTime: data.createdTime ?? undefined,
39
+ modifiedTime: data.modifiedTime ?? undefined,
40
+ resolved: data.resolved ?? undefined,
41
+ deleted: data.deleted ?? undefined,
42
+ anchor: data.anchor ?? undefined,
43
+ quotedFileContent: data.quotedFileContent
44
+ ? {
45
+ mimeType: data.quotedFileContent.mimeType ?? undefined,
46
+ value: data.quotedFileContent.value ?? undefined,
47
+ }
48
+ : undefined,
49
+ replies: data.replies ? data.replies.map(projectReply) : undefined,
50
+ };
51
+ }
52
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../src/drive/lib/comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAK5C,qEAAqE;AACrE,MAAM,WAAW,GAAG,uCAAuC,CAAC;AAE5D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAG,iCAAiC,WAAW,2CAA2C,CAAC;AAEpH,gFAAgF;AAChF,MAAM,CAAC,MAAM,cAAc,GACzB,iCAAiC,WAAW,8CAA8C;IAC1F,oDAAoD,YAAY,GAAG,CAAC;AAEtE,4EAA4E;AAC5E,MAAM,UAAU,WAAW,CAAC,IAA0B;IACpD,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,SAAS;QAC1C,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS;QAC5C,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,SAAS;QACxB,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,SAAS;KACvC,CAAC;AACJ,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,YAAY,CAAC,IAA2B;IACtD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,SAAS;QAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;QAC1D,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,SAAS;QAC1C,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS;QAC5C,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KACnD,CAAC;AACJ,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,cAAc,CAAC,IAA6B;IAC1D,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,SAAS;QAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;QAC1D,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,SAAS;QAC1C,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS;QAC5C,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,SAAS;QACpC,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClC,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,SAAS;QAChC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACvC,CAAC,CAAC;gBACE,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,IAAI,SAAS;gBACtD,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,KAAK,IAAI,SAAS;aACjD;YACH,CAAC,CAAC,SAAS;QACb,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS;KACnE,CAAC;AACJ,CAAC","sourcesContent":["import type { drive_v3 } from '@googleapis/drive';\nimport { narrow } from '../../lib/enums.js';\nimport type { Comment } from '../entities/Comment.js';\nimport type { Reply } from '../entities/Reply.js';\nimport type { User } from '../entities/User.js';\n\n/** The `fields` selection backing the User projection on authors. */\nconst USER_FIELDS = 'displayName,emailAddress,me,photoLink';\n\n/** The `fields` selection backing the Reply projection. */\nexport const REPLY_FIELDS = `id,content,htmlContent,author(${USER_FIELDS}),createdTime,modifiedTime,deleted,action`;\n\n/** The `fields` selection backing the Comment projection (replies included). */\nexport const COMMENT_FIELDS =\n `id,content,htmlContent,author(${USER_FIELDS}),createdTime,modifiedTime,resolved,deleted,` +\n `anchor,quotedFileContent(mimeType,value),replies(${REPLY_FIELDS})`;\n\n/** Project a REST user onto the User shape, cleaning nulls to undefined. */\nexport function projectUser(data: drive_v3.Schema$User): User {\n return {\n displayName: data.displayName ?? undefined,\n emailAddress: data.emailAddress ?? undefined,\n me: data.me ?? undefined,\n photoLink: data.photoLink ?? undefined,\n };\n}\n\n/** Project a REST reply onto the Reply shape; unknown actions drop rather than masquerade. */\nexport function projectReply(data: drive_v3.Schema$Reply): Reply {\n return {\n id: data.id ?? '',\n content: data.content ?? undefined,\n htmlContent: data.htmlContent ?? undefined,\n author: data.author ? projectUser(data.author) : undefined,\n createdTime: data.createdTime ?? undefined,\n modifiedTime: data.modifiedTime ?? undefined,\n deleted: data.deleted ?? undefined,\n action: narrow(data.action, ['resolve', 'reopen']),\n };\n}\n\n/** Project a REST comment onto the Comment shape, replies included. */\nexport function projectComment(data: drive_v3.Schema$Comment): Comment {\n return {\n id: data.id ?? '',\n content: data.content ?? undefined,\n htmlContent: data.htmlContent ?? undefined,\n author: data.author ? projectUser(data.author) : undefined,\n createdTime: data.createdTime ?? undefined,\n modifiedTime: data.modifiedTime ?? undefined,\n resolved: data.resolved ?? undefined,\n deleted: data.deleted ?? undefined,\n anchor: data.anchor ?? undefined,\n quotedFileContent: data.quotedFileContent\n ? {\n mimeType: data.quotedFileContent.mimeType ?? undefined,\n value: data.quotedFileContent.value ?? undefined,\n }\n : undefined,\n replies: data.replies ? data.replies.map(projectReply) : undefined,\n };\n}\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The content boundary for the two content tools (see the COVERAGE.md
3
+ * divergence notes): Google-native files cross it through `files.export`,
4
+ * blobs through `files.get alt=media`, and everything is JSON on the wire,
5
+ * so bytes travel base64 and oversized transfers are refused rather than
6
+ * degraded (EXTENDING.md, "Output crosses the wire as JSON").
7
+ */
8
+ /** Whether the type is a Google Workspace native type (exported, never downloaded). */
9
+ export declare function isGoogleNative(mimeType: string): boolean;
10
+ /** The text-representation export MIME for a native type, if it has one. */
11
+ export declare function textExportMime(mimeType: string): string | undefined;
12
+ /** Whether a blob type is text enough for `read_file_content` to return as UTF-8. */
13
+ export declare function isTextLike(mimeType: string): boolean;
14
+ /**
15
+ * The decoded-size ceiling for `download_file_content` blob downloads: 25 MiB,
16
+ * the suite's de facto base64-in-JSON boundary (Gmail's attachment maximum).
17
+ * Larger transfers are deferred to the media issue (#38).
18
+ */
19
+ export declare const MAX_DOWNLOAD_BYTES: number;
20
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/drive/lib/content.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CASpD;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAmB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * The content boundary for the two content tools (see the COVERAGE.md
3
+ * divergence notes): Google-native files cross it through `files.export`,
4
+ * blobs through `files.get alt=media`, and everything is JSON on the wire,
5
+ * so bytes travel base64 and oversized transfers are refused rather than
6
+ * degraded (EXTENDING.md, "Output crosses the wire as JSON").
7
+ */
8
+ /**
9
+ * Google Workspace editor types and the export MIME backing their
10
+ * "natural language representation" (`read_file_content`); other native types
11
+ * (forms, sites, maps, shortcuts) have no text export and are refused.
12
+ */
13
+ const TEXT_EXPORTS = {
14
+ 'application/vnd.google-apps.document': 'text/plain',
15
+ 'application/vnd.google-apps.spreadsheet': 'text/csv',
16
+ 'application/vnd.google-apps.presentation': 'text/plain',
17
+ };
18
+ /** Whether the type is a Google Workspace native type (exported, never downloaded). */
19
+ export function isGoogleNative(mimeType) {
20
+ return mimeType.startsWith('application/vnd.google-apps.');
21
+ }
22
+ /** The text-representation export MIME for a native type, if it has one. */
23
+ export function textExportMime(mimeType) {
24
+ return TEXT_EXPORTS[mimeType];
25
+ }
26
+ /** Whether a blob type is text enough for `read_file_content` to return as UTF-8. */
27
+ export function isTextLike(mimeType) {
28
+ return (mimeType.startsWith('text/') ||
29
+ mimeType === 'application/json' ||
30
+ mimeType === 'application/xml' ||
31
+ mimeType === 'image/svg+xml' ||
32
+ mimeType.endsWith('+json') ||
33
+ mimeType.endsWith('+xml'));
34
+ }
35
+ /**
36
+ * The decoded-size ceiling for `download_file_content` blob downloads: 25 MiB,
37
+ * the suite's de facto base64-in-JSON boundary (Gmail's attachment maximum).
38
+ * Larger transfers are deferred to the media issue (#38).
39
+ */
40
+ export const MAX_DOWNLOAD_BYTES = 25 * 1024 * 1024;
41
+ //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/drive/lib/content.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,YAAY,GAA2B;IAC3C,sCAAsC,EAAE,YAAY;IACpD,yCAAyC,EAAE,UAAU;IACrD,0CAA0C,EAAE,YAAY;CACzD,CAAC;AAEF,uFAAuF;AACvF,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC7C,OAAO,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAC7D,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC7C,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,UAAU,CAAC,QAAgB;IACzC,OAAO,CACL,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QAC5B,QAAQ,KAAK,kBAAkB;QAC/B,QAAQ,KAAK,iBAAiB;QAC9B,QAAQ,KAAK,eAAe;QAC5B,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC1B,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAC1B,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC","sourcesContent":["/**\n * The content boundary for the two content tools (see the COVERAGE.md\n * divergence notes): Google-native files cross it through `files.export`,\n * blobs through `files.get alt=media`, and everything is JSON on the wire,\n * so bytes travel base64 and oversized transfers are refused rather than\n * degraded (EXTENDING.md, \"Output crosses the wire as JSON\").\n */\n\n/**\n * Google Workspace editor types and the export MIME backing their\n * \"natural language representation\" (`read_file_content`); other native types\n * (forms, sites, maps, shortcuts) have no text export and are refused.\n */\nconst TEXT_EXPORTS: Record<string, string> = {\n 'application/vnd.google-apps.document': 'text/plain',\n 'application/vnd.google-apps.spreadsheet': 'text/csv',\n 'application/vnd.google-apps.presentation': 'text/plain',\n};\n\n/** Whether the type is a Google Workspace native type (exported, never downloaded). */\nexport function isGoogleNative(mimeType: string): boolean {\n return mimeType.startsWith('application/vnd.google-apps.');\n}\n\n/** The text-representation export MIME for a native type, if it has one. */\nexport function textExportMime(mimeType: string): string | undefined {\n return TEXT_EXPORTS[mimeType];\n}\n\n/** Whether a blob type is text enough for `read_file_content` to return as UTF-8. */\nexport function isTextLike(mimeType: string): boolean {\n return (\n mimeType.startsWith('text/') ||\n mimeType === 'application/json' ||\n mimeType === 'application/xml' ||\n mimeType === 'image/svg+xml' ||\n mimeType.endsWith('+json') ||\n mimeType.endsWith('+xml')\n );\n}\n\n/**\n * The decoded-size ceiling for `download_file_content` blob downloads: 25 MiB,\n * the suite's de facto base64-in-JSON boundary (Gmail's attachment maximum).\n * Larger transfers are deferred to the media issue (#38).\n */\nexport const MAX_DOWNLOAD_BYTES = 25 * 1024 * 1024;\n"]}