@keystrokehq/one_drive 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (682) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-workbook-worksheet.cjs +26 -0
  7. package/dist/actions/add-workbook-worksheet.cjs.map +1 -0
  8. package/dist/actions/add-workbook-worksheet.d.cts +9 -0
  9. package/dist/actions/add-workbook-worksheet.d.cts.map +1 -0
  10. package/dist/actions/add-workbook-worksheet.d.mts +9 -0
  11. package/dist/actions/add-workbook-worksheet.d.mts.map +1 -0
  12. package/dist/actions/add-workbook-worksheet.mjs +23 -0
  13. package/dist/actions/add-workbook-worksheet.mjs.map +1 -0
  14. package/dist/actions/checkin-item.cjs +21 -0
  15. package/dist/actions/checkin-item.cjs.map +1 -0
  16. package/dist/actions/checkin-item.d.cts +9 -0
  17. package/dist/actions/checkin-item.d.cts.map +1 -0
  18. package/dist/actions/checkin-item.d.mts +9 -0
  19. package/dist/actions/checkin-item.d.mts.map +1 -0
  20. package/dist/actions/checkin-item.mjs +18 -0
  21. package/dist/actions/checkin-item.mjs.map +1 -0
  22. package/dist/actions/checkout-item.cjs +19 -0
  23. package/dist/actions/checkout-item.cjs.map +1 -0
  24. package/dist/actions/checkout-item.d.cts +9 -0
  25. package/dist/actions/checkout-item.d.cts.map +1 -0
  26. package/dist/actions/checkout-item.d.mts +9 -0
  27. package/dist/actions/checkout-item.d.mts.map +1 -0
  28. package/dist/actions/checkout-item.mjs +16 -0
  29. package/dist/actions/checkout-item.mjs.map +1 -0
  30. package/dist/actions/clear-workbook-range.cjs +27 -0
  31. package/dist/actions/clear-workbook-range.cjs.map +1 -0
  32. package/dist/actions/clear-workbook-range.d.cts +9 -0
  33. package/dist/actions/clear-workbook-range.d.cts.map +1 -0
  34. package/dist/actions/clear-workbook-range.d.mts +9 -0
  35. package/dist/actions/clear-workbook-range.d.mts.map +1 -0
  36. package/dist/actions/clear-workbook-range.mjs +24 -0
  37. package/dist/actions/clear-workbook-range.mjs.map +1 -0
  38. package/dist/actions/copy-item.cjs +41 -0
  39. package/dist/actions/copy-item.cjs.map +1 -0
  40. package/dist/actions/copy-item.d.cts +9 -0
  41. package/dist/actions/copy-item.d.cts.map +1 -0
  42. package/dist/actions/copy-item.d.mts +9 -0
  43. package/dist/actions/copy-item.d.mts.map +1 -0
  44. package/dist/actions/copy-item.mjs +38 -0
  45. package/dist/actions/copy-item.mjs.map +1 -0
  46. package/dist/actions/create-item-permission.cjs +50 -0
  47. package/dist/actions/create-item-permission.cjs.map +1 -0
  48. package/dist/actions/create-item-permission.d.cts +9 -0
  49. package/dist/actions/create-item-permission.d.cts.map +1 -0
  50. package/dist/actions/create-item-permission.d.mts +9 -0
  51. package/dist/actions/create-item-permission.d.mts.map +1 -0
  52. package/dist/actions/create-item-permission.mjs +49 -0
  53. package/dist/actions/create-item-permission.mjs.map +1 -0
  54. package/dist/actions/create-link.cjs +50 -0
  55. package/dist/actions/create-link.cjs.map +1 -0
  56. package/dist/actions/create-link.d.cts +9 -0
  57. package/dist/actions/create-link.d.cts.map +1 -0
  58. package/dist/actions/create-link.d.mts +9 -0
  59. package/dist/actions/create-link.d.mts.map +1 -0
  60. package/dist/actions/create-link.mjs +49 -0
  61. package/dist/actions/create-link.mjs.map +1 -0
  62. package/dist/actions/create-sharepoint-list-item.cjs +26 -0
  63. package/dist/actions/create-sharepoint-list-item.cjs.map +1 -0
  64. package/dist/actions/create-sharepoint-list-item.d.cts +9 -0
  65. package/dist/actions/create-sharepoint-list-item.d.cts.map +1 -0
  66. package/dist/actions/create-sharepoint-list-item.d.mts +9 -0
  67. package/dist/actions/create-sharepoint-list-item.d.mts.map +1 -0
  68. package/dist/actions/create-sharepoint-list-item.mjs +23 -0
  69. package/dist/actions/create-sharepoint-list-item.mjs.map +1 -0
  70. package/dist/actions/delete-item-permanently.cjs +19 -0
  71. package/dist/actions/delete-item-permanently.cjs.map +1 -0
  72. package/dist/actions/delete-item-permanently.d.cts +9 -0
  73. package/dist/actions/delete-item-permanently.d.cts.map +1 -0
  74. package/dist/actions/delete-item-permanently.d.mts +9 -0
  75. package/dist/actions/delete-item-permanently.d.mts.map +1 -0
  76. package/dist/actions/delete-item-permanently.mjs +16 -0
  77. package/dist/actions/delete-item-permanently.mjs.map +1 -0
  78. package/dist/actions/delete-item-permission.cjs +23 -0
  79. package/dist/actions/delete-item-permission.cjs.map +1 -0
  80. package/dist/actions/delete-item-permission.d.cts +9 -0
  81. package/dist/actions/delete-item-permission.d.cts.map +1 -0
  82. package/dist/actions/delete-item-permission.d.mts +9 -0
  83. package/dist/actions/delete-item-permission.d.mts.map +1 -0
  84. package/dist/actions/delete-item-permission.mjs +20 -0
  85. package/dist/actions/delete-item-permission.mjs.map +1 -0
  86. package/dist/actions/delete-item.cjs +21 -0
  87. package/dist/actions/delete-item.cjs.map +1 -0
  88. package/dist/actions/delete-item.d.cts +9 -0
  89. package/dist/actions/delete-item.d.cts.map +1 -0
  90. package/dist/actions/delete-item.d.mts +9 -0
  91. package/dist/actions/delete-item.d.mts.map +1 -0
  92. package/dist/actions/delete-item.mjs +18 -0
  93. package/dist/actions/delete-item.mjs.map +1 -0
  94. package/dist/actions/delete-share-permission.cjs +16 -0
  95. package/dist/actions/delete-share-permission.cjs.map +1 -0
  96. package/dist/actions/delete-share-permission.d.cts +9 -0
  97. package/dist/actions/delete-share-permission.d.cts.map +1 -0
  98. package/dist/actions/delete-share-permission.d.mts +9 -0
  99. package/dist/actions/delete-share-permission.d.mts.map +1 -0
  100. package/dist/actions/delete-share-permission.mjs +13 -0
  101. package/dist/actions/delete-share-permission.mjs.map +1 -0
  102. package/dist/actions/delete-sharepoint-item-permission.cjs +25 -0
  103. package/dist/actions/delete-sharepoint-item-permission.cjs.map +1 -0
  104. package/dist/actions/delete-sharepoint-item-permission.d.cts +9 -0
  105. package/dist/actions/delete-sharepoint-item-permission.d.cts.map +1 -0
  106. package/dist/actions/delete-sharepoint-item-permission.d.mts +9 -0
  107. package/dist/actions/delete-sharepoint-item-permission.d.mts.map +1 -0
  108. package/dist/actions/delete-sharepoint-item-permission.mjs +22 -0
  109. package/dist/actions/delete-sharepoint-item-permission.mjs.map +1 -0
  110. package/dist/actions/delete-workbook-range.cjs +22 -0
  111. package/dist/actions/delete-workbook-range.cjs.map +1 -0
  112. package/dist/actions/delete-workbook-range.d.cts +9 -0
  113. package/dist/actions/delete-workbook-range.d.cts.map +1 -0
  114. package/dist/actions/delete-workbook-range.d.mts +9 -0
  115. package/dist/actions/delete-workbook-range.d.mts.map +1 -0
  116. package/dist/actions/delete-workbook-range.mjs +19 -0
  117. package/dist/actions/delete-workbook-range.mjs.map +1 -0
  118. package/dist/actions/delete-workbook-worksheet.cjs +24 -0
  119. package/dist/actions/delete-workbook-worksheet.cjs.map +1 -0
  120. package/dist/actions/delete-workbook-worksheet.d.cts +9 -0
  121. package/dist/actions/delete-workbook-worksheet.d.cts.map +1 -0
  122. package/dist/actions/delete-workbook-worksheet.d.mts +9 -0
  123. package/dist/actions/delete-workbook-worksheet.d.mts.map +1 -0
  124. package/dist/actions/delete-workbook-worksheet.mjs +21 -0
  125. package/dist/actions/delete-workbook-worksheet.mjs.map +1 -0
  126. package/dist/actions/discard-checkout.cjs +19 -0
  127. package/dist/actions/discard-checkout.cjs.map +1 -0
  128. package/dist/actions/discard-checkout.d.cts +9 -0
  129. package/dist/actions/discard-checkout.d.cts.map +1 -0
  130. package/dist/actions/discard-checkout.d.mts +9 -0
  131. package/dist/actions/discard-checkout.d.mts.map +1 -0
  132. package/dist/actions/discard-checkout.mjs +16 -0
  133. package/dist/actions/discard-checkout.mjs.map +1 -0
  134. package/dist/actions/download-file-by-path.cjs +25 -0
  135. package/dist/actions/download-file-by-path.cjs.map +1 -0
  136. package/dist/actions/download-file-by-path.d.cts +9 -0
  137. package/dist/actions/download-file-by-path.d.cts.map +1 -0
  138. package/dist/actions/download-file-by-path.d.mts +9 -0
  139. package/dist/actions/download-file-by-path.d.mts.map +1 -0
  140. package/dist/actions/download-file-by-path.mjs +24 -0
  141. package/dist/actions/download-file-by-path.mjs.map +1 -0
  142. package/dist/actions/download-file.cjs +28 -0
  143. package/dist/actions/download-file.cjs.map +1 -0
  144. package/dist/actions/download-file.d.cts +9 -0
  145. package/dist/actions/download-file.d.cts.map +1 -0
  146. package/dist/actions/download-file.d.mts +9 -0
  147. package/dist/actions/download-file.d.mts.map +1 -0
  148. package/dist/actions/download-file.mjs +27 -0
  149. package/dist/actions/download-file.mjs.map +1 -0
  150. package/dist/actions/download-item-as-format.cjs +28 -0
  151. package/dist/actions/download-item-as-format.cjs.map +1 -0
  152. package/dist/actions/download-item-as-format.d.cts +9 -0
  153. package/dist/actions/download-item-as-format.d.cts.map +1 -0
  154. package/dist/actions/download-item-as-format.d.mts +9 -0
  155. package/dist/actions/download-item-as-format.d.mts.map +1 -0
  156. package/dist/actions/download-item-as-format.mjs +27 -0
  157. package/dist/actions/download-item-as-format.mjs.map +1 -0
  158. package/dist/actions/download-item-version.cjs +26 -0
  159. package/dist/actions/download-item-version.cjs.map +1 -0
  160. package/dist/actions/download-item-version.d.cts +9 -0
  161. package/dist/actions/download-item-version.d.cts.map +1 -0
  162. package/dist/actions/download-item-version.d.mts +9 -0
  163. package/dist/actions/download-item-version.d.mts.map +1 -0
  164. package/dist/actions/download-item-version.mjs +25 -0
  165. package/dist/actions/download-item-version.mjs.map +1 -0
  166. package/dist/actions/follow-item.cjs +33 -0
  167. package/dist/actions/follow-item.cjs.map +1 -0
  168. package/dist/actions/follow-item.d.cts +9 -0
  169. package/dist/actions/follow-item.d.cts.map +1 -0
  170. package/dist/actions/follow-item.d.mts +9 -0
  171. package/dist/actions/follow-item.d.mts.map +1 -0
  172. package/dist/actions/follow-item.mjs +30 -0
  173. package/dist/actions/follow-item.mjs.map +1 -0
  174. package/dist/actions/get-document-comments.cjs +33 -0
  175. package/dist/actions/get-document-comments.cjs.map +1 -0
  176. package/dist/actions/get-document-comments.d.cts +9 -0
  177. package/dist/actions/get-document-comments.d.cts.map +1 -0
  178. package/dist/actions/get-document-comments.d.mts +9 -0
  179. package/dist/actions/get-document-comments.d.mts.map +1 -0
  180. package/dist/actions/get-document-comments.mjs +32 -0
  181. package/dist/actions/get-document-comments.mjs.map +1 -0
  182. package/dist/actions/get-drive-item-by-sharing-url.cjs +47 -0
  183. package/dist/actions/get-drive-item-by-sharing-url.cjs.map +1 -0
  184. package/dist/actions/get-drive-item-by-sharing-url.d.cts +9 -0
  185. package/dist/actions/get-drive-item-by-sharing-url.d.cts.map +1 -0
  186. package/dist/actions/get-drive-item-by-sharing-url.d.mts +9 -0
  187. package/dist/actions/get-drive-item-by-sharing-url.d.mts.map +1 -0
  188. package/dist/actions/get-drive-item-by-sharing-url.mjs +46 -0
  189. package/dist/actions/get-drive-item-by-sharing-url.mjs.map +1 -0
  190. package/dist/actions/get-drive.cjs +66 -0
  191. package/dist/actions/get-drive.cjs.map +1 -0
  192. package/dist/actions/get-drive.d.cts +9 -0
  193. package/dist/actions/get-drive.d.cts.map +1 -0
  194. package/dist/actions/get-drive.d.mts +9 -0
  195. package/dist/actions/get-drive.d.mts.map +1 -0
  196. package/dist/actions/get-drive.mjs +65 -0
  197. package/dist/actions/get-drive.mjs.map +1 -0
  198. package/dist/actions/get-followed-item.cjs +48 -0
  199. package/dist/actions/get-followed-item.cjs.map +1 -0
  200. package/dist/actions/get-followed-item.d.cts +9 -0
  201. package/dist/actions/get-followed-item.d.cts.map +1 -0
  202. package/dist/actions/get-followed-item.d.mts +9 -0
  203. package/dist/actions/get-followed-item.d.mts.map +1 -0
  204. package/dist/actions/get-followed-item.mjs +47 -0
  205. package/dist/actions/get-followed-item.mjs.map +1 -0
  206. package/dist/actions/get-group-drive.cjs +65 -0
  207. package/dist/actions/get-group-drive.cjs.map +1 -0
  208. package/dist/actions/get-group-drive.d.cts +9 -0
  209. package/dist/actions/get-group-drive.d.cts.map +1 -0
  210. package/dist/actions/get-group-drive.d.mts +9 -0
  211. package/dist/actions/get-group-drive.d.mts.map +1 -0
  212. package/dist/actions/get-group-drive.mjs +64 -0
  213. package/dist/actions/get-group-drive.mjs.map +1 -0
  214. package/dist/actions/get-item-permissions.cjs +67 -0
  215. package/dist/actions/get-item-permissions.cjs.map +1 -0
  216. package/dist/actions/get-item-permissions.d.cts +9 -0
  217. package/dist/actions/get-item-permissions.d.cts.map +1 -0
  218. package/dist/actions/get-item-permissions.d.mts +9 -0
  219. package/dist/actions/get-item-permissions.d.mts.map +1 -0
  220. package/dist/actions/get-item-permissions.mjs +66 -0
  221. package/dist/actions/get-item-permissions.mjs.map +1 -0
  222. package/dist/actions/get-item-thumbnails.cjs +36 -0
  223. package/dist/actions/get-item-thumbnails.cjs.map +1 -0
  224. package/dist/actions/get-item-thumbnails.d.cts +9 -0
  225. package/dist/actions/get-item-thumbnails.d.cts.map +1 -0
  226. package/dist/actions/get-item-thumbnails.d.mts +9 -0
  227. package/dist/actions/get-item-thumbnails.d.mts.map +1 -0
  228. package/dist/actions/get-item-thumbnails.mjs +35 -0
  229. package/dist/actions/get-item-thumbnails.mjs.map +1 -0
  230. package/dist/actions/get-item-versions.cjs +45 -0
  231. package/dist/actions/get-item-versions.cjs.map +1 -0
  232. package/dist/actions/get-item-versions.d.cts +9 -0
  233. package/dist/actions/get-item-versions.d.cts.map +1 -0
  234. package/dist/actions/get-item-versions.d.mts +9 -0
  235. package/dist/actions/get-item-versions.d.mts.map +1 -0
  236. package/dist/actions/get-item-versions.mjs +44 -0
  237. package/dist/actions/get-item-versions.mjs.map +1 -0
  238. package/dist/actions/get-item.cjs +83 -0
  239. package/dist/actions/get-item.cjs.map +1 -0
  240. package/dist/actions/get-item.d.cts +9 -0
  241. package/dist/actions/get-item.d.cts.map +1 -0
  242. package/dist/actions/get-item.d.mts +9 -0
  243. package/dist/actions/get-item.d.mts.map +1 -0
  244. package/dist/actions/get-item.mjs +82 -0
  245. package/dist/actions/get-item.mjs.map +1 -0
  246. package/dist/actions/get-recent-items.cjs +47 -0
  247. package/dist/actions/get-recent-items.cjs.map +1 -0
  248. package/dist/actions/get-recent-items.d.cts +9 -0
  249. package/dist/actions/get-recent-items.d.cts.map +1 -0
  250. package/dist/actions/get-recent-items.d.mts +9 -0
  251. package/dist/actions/get-recent-items.d.mts.map +1 -0
  252. package/dist/actions/get-recent-items.mjs +46 -0
  253. package/dist/actions/get-recent-items.mjs.map +1 -0
  254. package/dist/actions/get-root.cjs +64 -0
  255. package/dist/actions/get-root.cjs.map +1 -0
  256. package/dist/actions/get-root.d.cts +9 -0
  257. package/dist/actions/get-root.d.cts.map +1 -0
  258. package/dist/actions/get-root.d.mts +9 -0
  259. package/dist/actions/get-root.d.mts.map +1 -0
  260. package/dist/actions/get-root.mjs +63 -0
  261. package/dist/actions/get-root.mjs.map +1 -0
  262. package/dist/actions/get-share.cjs +32 -0
  263. package/dist/actions/get-share.cjs.map +1 -0
  264. package/dist/actions/get-share.d.cts +9 -0
  265. package/dist/actions/get-share.d.cts.map +1 -0
  266. package/dist/actions/get-share.d.mts +9 -0
  267. package/dist/actions/get-share.d.mts.map +1 -0
  268. package/dist/actions/get-share.mjs +31 -0
  269. package/dist/actions/get-share.mjs.map +1 -0
  270. package/dist/actions/get-shared-items.cjs +27 -0
  271. package/dist/actions/get-shared-items.cjs.map +1 -0
  272. package/dist/actions/get-shared-items.d.cts +9 -0
  273. package/dist/actions/get-shared-items.d.cts.map +1 -0
  274. package/dist/actions/get-shared-items.d.mts +9 -0
  275. package/dist/actions/get-shared-items.d.mts.map +1 -0
  276. package/dist/actions/get-shared-items.mjs +26 -0
  277. package/dist/actions/get-shared-items.mjs.map +1 -0
  278. package/dist/actions/get-sharepoint-list-items.cjs +34 -0
  279. package/dist/actions/get-sharepoint-list-items.cjs.map +1 -0
  280. package/dist/actions/get-sharepoint-list-items.d.cts +9 -0
  281. package/dist/actions/get-sharepoint-list-items.d.cts.map +1 -0
  282. package/dist/actions/get-sharepoint-list-items.d.mts +9 -0
  283. package/dist/actions/get-sharepoint-list-items.d.mts.map +1 -0
  284. package/dist/actions/get-sharepoint-list-items.mjs +33 -0
  285. package/dist/actions/get-sharepoint-list-items.mjs.map +1 -0
  286. package/dist/actions/get-site-page-content.cjs +81 -0
  287. package/dist/actions/get-site-page-content.cjs.map +1 -0
  288. package/dist/actions/get-site-page-content.d.cts +9 -0
  289. package/dist/actions/get-site-page-content.d.cts.map +1 -0
  290. package/dist/actions/get-site-page-content.d.mts +9 -0
  291. package/dist/actions/get-site-page-content.d.mts.map +1 -0
  292. package/dist/actions/get-site-page-content.mjs +80 -0
  293. package/dist/actions/get-site-page-content.mjs.map +1 -0
  294. package/dist/actions/get-site.cjs +33 -0
  295. package/dist/actions/get-site.cjs.map +1 -0
  296. package/dist/actions/get-site.d.cts +9 -0
  297. package/dist/actions/get-site.d.cts.map +1 -0
  298. package/dist/actions/get-site.d.mts +9 -0
  299. package/dist/actions/get-site.d.mts.map +1 -0
  300. package/dist/actions/get-site.mjs +30 -0
  301. package/dist/actions/get-site.mjs.map +1 -0
  302. package/dist/actions/get-special-folder.cjs +68 -0
  303. package/dist/actions/get-special-folder.cjs.map +1 -0
  304. package/dist/actions/get-special-folder.d.cts +9 -0
  305. package/dist/actions/get-special-folder.d.cts.map +1 -0
  306. package/dist/actions/get-special-folder.d.mts +9 -0
  307. package/dist/actions/get-special-folder.d.mts.map +1 -0
  308. package/dist/actions/get-special-folder.mjs +67 -0
  309. package/dist/actions/get-special-folder.mjs.map +1 -0
  310. package/dist/actions/get-user.cjs +43 -0
  311. package/dist/actions/get-user.cjs.map +1 -0
  312. package/dist/actions/get-user.d.cts +9 -0
  313. package/dist/actions/get-user.d.cts.map +1 -0
  314. package/dist/actions/get-user.d.mts +9 -0
  315. package/dist/actions/get-user.d.mts.map +1 -0
  316. package/dist/actions/get-user.mjs +40 -0
  317. package/dist/actions/get-user.mjs.map +1 -0
  318. package/dist/actions/get-workbook-used-range.cjs +70 -0
  319. package/dist/actions/get-workbook-used-range.cjs.map +1 -0
  320. package/dist/actions/get-workbook-used-range.d.cts +9 -0
  321. package/dist/actions/get-workbook-used-range.d.cts.map +1 -0
  322. package/dist/actions/get-workbook-used-range.d.mts +9 -0
  323. package/dist/actions/get-workbook-used-range.d.mts.map +1 -0
  324. package/dist/actions/get-workbook-used-range.mjs +67 -0
  325. package/dist/actions/get-workbook-used-range.mjs.map +1 -0
  326. package/dist/actions/get-workbook-worksheet.cjs +27 -0
  327. package/dist/actions/get-workbook-worksheet.cjs.map +1 -0
  328. package/dist/actions/get-workbook-worksheet.d.cts +9 -0
  329. package/dist/actions/get-workbook-worksheet.d.cts.map +1 -0
  330. package/dist/actions/get-workbook-worksheet.d.mts +9 -0
  331. package/dist/actions/get-workbook-worksheet.d.mts.map +1 -0
  332. package/dist/actions/get-workbook-worksheet.mjs +24 -0
  333. package/dist/actions/get-workbook-worksheet.mjs.map +1 -0
  334. package/dist/actions/grant-share-permission.cjs +30 -0
  335. package/dist/actions/grant-share-permission.cjs.map +1 -0
  336. package/dist/actions/grant-share-permission.d.cts +9 -0
  337. package/dist/actions/grant-share-permission.d.cts.map +1 -0
  338. package/dist/actions/grant-share-permission.d.mts +9 -0
  339. package/dist/actions/grant-share-permission.d.mts.map +1 -0
  340. package/dist/actions/grant-share-permission.mjs +29 -0
  341. package/dist/actions/grant-share-permission.mjs.map +1 -0
  342. package/dist/actions/grant-sharepoint-item-permission.cjs +25 -0
  343. package/dist/actions/grant-sharepoint-item-permission.cjs.map +1 -0
  344. package/dist/actions/grant-sharepoint-item-permission.d.cts +9 -0
  345. package/dist/actions/grant-sharepoint-item-permission.d.cts.map +1 -0
  346. package/dist/actions/grant-sharepoint-item-permission.d.mts +9 -0
  347. package/dist/actions/grant-sharepoint-item-permission.d.mts.map +1 -0
  348. package/dist/actions/grant-sharepoint-item-permission.mjs +22 -0
  349. package/dist/actions/grant-sharepoint-item-permission.mjs.map +1 -0
  350. package/dist/actions/index.cjs +163 -0
  351. package/dist/actions/index.d.cts +82 -0
  352. package/dist/actions/index.d.mts +82 -0
  353. package/dist/actions/index.mjs +82 -0
  354. package/dist/actions/invite-user-to-item.cjs +59 -0
  355. package/dist/actions/invite-user-to-item.cjs.map +1 -0
  356. package/dist/actions/invite-user-to-item.d.cts +9 -0
  357. package/dist/actions/invite-user-to-item.d.cts.map +1 -0
  358. package/dist/actions/invite-user-to-item.d.mts +9 -0
  359. package/dist/actions/invite-user-to-item.d.mts.map +1 -0
  360. package/dist/actions/invite-user-to-item.mjs +58 -0
  361. package/dist/actions/invite-user-to-item.mjs.map +1 -0
  362. package/dist/actions/list-activities.cjs +112 -0
  363. package/dist/actions/list-activities.cjs.map +1 -0
  364. package/dist/actions/list-activities.d.cts +9 -0
  365. package/dist/actions/list-activities.d.cts.map +1 -0
  366. package/dist/actions/list-activities.d.mts +9 -0
  367. package/dist/actions/list-activities.d.mts.map +1 -0
  368. package/dist/actions/list-activities.mjs +111 -0
  369. package/dist/actions/list-activities.mjs.map +1 -0
  370. package/dist/actions/list-all-drive-items.cjs +191 -0
  371. package/dist/actions/list-all-drive-items.cjs.map +1 -0
  372. package/dist/actions/list-all-drive-items.d.cts +9 -0
  373. package/dist/actions/list-all-drive-items.d.cts.map +1 -0
  374. package/dist/actions/list-all-drive-items.d.mts +9 -0
  375. package/dist/actions/list-all-drive-items.d.mts.map +1 -0
  376. package/dist/actions/list-all-drive-items.mjs +190 -0
  377. package/dist/actions/list-all-drive-items.mjs.map +1 -0
  378. package/dist/actions/list-bundles.cjs +59 -0
  379. package/dist/actions/list-bundles.cjs.map +1 -0
  380. package/dist/actions/list-bundles.d.cts +9 -0
  381. package/dist/actions/list-bundles.d.cts.map +1 -0
  382. package/dist/actions/list-bundles.d.mts +9 -0
  383. package/dist/actions/list-bundles.d.mts.map +1 -0
  384. package/dist/actions/list-bundles.mjs +58 -0
  385. package/dist/actions/list-bundles.mjs.map +1 -0
  386. package/dist/actions/list-drives.cjs +54 -0
  387. package/dist/actions/list-drives.cjs.map +1 -0
  388. package/dist/actions/list-drives.d.cts +9 -0
  389. package/dist/actions/list-drives.d.cts.map +1 -0
  390. package/dist/actions/list-drives.d.mts +9 -0
  391. package/dist/actions/list-drives.d.mts.map +1 -0
  392. package/dist/actions/list-drives.mjs +53 -0
  393. package/dist/actions/list-drives.mjs.map +1 -0
  394. package/dist/actions/list-folder-children.cjs +197 -0
  395. package/dist/actions/list-folder-children.cjs.map +1 -0
  396. package/dist/actions/list-folder-children.d.cts +9 -0
  397. package/dist/actions/list-folder-children.d.cts.map +1 -0
  398. package/dist/actions/list-folder-children.d.mts +9 -0
  399. package/dist/actions/list-folder-children.d.mts.map +1 -0
  400. package/dist/actions/list-folder-children.mjs +196 -0
  401. package/dist/actions/list-folder-children.mjs.map +1 -0
  402. package/dist/actions/list-item-activities.cjs +37 -0
  403. package/dist/actions/list-item-activities.cjs.map +1 -0
  404. package/dist/actions/list-item-activities.d.cts +9 -0
  405. package/dist/actions/list-item-activities.d.cts.map +1 -0
  406. package/dist/actions/list-item-activities.d.mts +9 -0
  407. package/dist/actions/list-item-activities.d.mts.map +1 -0
  408. package/dist/actions/list-item-activities.mjs +36 -0
  409. package/dist/actions/list-item-activities.mjs.map +1 -0
  410. package/dist/actions/list-root-drive-changes.cjs +53 -0
  411. package/dist/actions/list-root-drive-changes.cjs.map +1 -0
  412. package/dist/actions/list-root-drive-changes.d.cts +9 -0
  413. package/dist/actions/list-root-drive-changes.d.cts.map +1 -0
  414. package/dist/actions/list-root-drive-changes.d.mts +9 -0
  415. package/dist/actions/list-root-drive-changes.d.mts.map +1 -0
  416. package/dist/actions/list-root-drive-changes.mjs +52 -0
  417. package/dist/actions/list-root-drive-changes.mjs.map +1 -0
  418. package/dist/actions/list-share-permissions.cjs +28 -0
  419. package/dist/actions/list-share-permissions.cjs.map +1 -0
  420. package/dist/actions/list-share-permissions.d.cts +9 -0
  421. package/dist/actions/list-share-permissions.d.cts.map +1 -0
  422. package/dist/actions/list-share-permissions.d.mts +9 -0
  423. package/dist/actions/list-share-permissions.d.mts.map +1 -0
  424. package/dist/actions/list-share-permissions.mjs +27 -0
  425. package/dist/actions/list-share-permissions.mjs.map +1 -0
  426. package/dist/actions/list-sharepoint-item-permissions.cjs +26 -0
  427. package/dist/actions/list-sharepoint-item-permissions.cjs.map +1 -0
  428. package/dist/actions/list-sharepoint-item-permissions.d.cts +9 -0
  429. package/dist/actions/list-sharepoint-item-permissions.d.cts.map +1 -0
  430. package/dist/actions/list-sharepoint-item-permissions.d.mts +9 -0
  431. package/dist/actions/list-sharepoint-item-permissions.d.mts.map +1 -0
  432. package/dist/actions/list-sharepoint-item-permissions.mjs +23 -0
  433. package/dist/actions/list-sharepoint-item-permissions.mjs.map +1 -0
  434. package/dist/actions/list-sharepoint-list-items-delta.cjs +37 -0
  435. package/dist/actions/list-sharepoint-list-items-delta.cjs.map +1 -0
  436. package/dist/actions/list-sharepoint-list-items-delta.d.cts +9 -0
  437. package/dist/actions/list-sharepoint-list-items-delta.d.cts.map +1 -0
  438. package/dist/actions/list-sharepoint-list-items-delta.d.mts +9 -0
  439. package/dist/actions/list-sharepoint-list-items-delta.d.mts.map +1 -0
  440. package/dist/actions/list-sharepoint-list-items-delta.mjs +36 -0
  441. package/dist/actions/list-sharepoint-list-items-delta.mjs.map +1 -0
  442. package/dist/actions/list-site-columns.cjs +51 -0
  443. package/dist/actions/list-site-columns.cjs.map +1 -0
  444. package/dist/actions/list-site-columns.d.cts +9 -0
  445. package/dist/actions/list-site-columns.d.cts.map +1 -0
  446. package/dist/actions/list-site-columns.d.mts +9 -0
  447. package/dist/actions/list-site-columns.d.mts.map +1 -0
  448. package/dist/actions/list-site-columns.mjs +50 -0
  449. package/dist/actions/list-site-columns.mjs.map +1 -0
  450. package/dist/actions/list-site-items-delta.cjs +33 -0
  451. package/dist/actions/list-site-items-delta.cjs.map +1 -0
  452. package/dist/actions/list-site-items-delta.d.cts +9 -0
  453. package/dist/actions/list-site-items-delta.d.cts.map +1 -0
  454. package/dist/actions/list-site-items-delta.d.mts +9 -0
  455. package/dist/actions/list-site-items-delta.d.mts.map +1 -0
  456. package/dist/actions/list-site-items-delta.mjs +32 -0
  457. package/dist/actions/list-site-items-delta.mjs.map +1 -0
  458. package/dist/actions/list-site-lists.cjs +74 -0
  459. package/dist/actions/list-site-lists.cjs.map +1 -0
  460. package/dist/actions/list-site-lists.d.cts +9 -0
  461. package/dist/actions/list-site-lists.d.cts.map +1 -0
  462. package/dist/actions/list-site-lists.d.mts +9 -0
  463. package/dist/actions/list-site-lists.d.mts.map +1 -0
  464. package/dist/actions/list-site-lists.mjs +73 -0
  465. package/dist/actions/list-site-lists.mjs.map +1 -0
  466. package/dist/actions/list-site-subsites.cjs +35 -0
  467. package/dist/actions/list-site-subsites.cjs.map +1 -0
  468. package/dist/actions/list-site-subsites.d.cts +9 -0
  469. package/dist/actions/list-site-subsites.d.cts.map +1 -0
  470. package/dist/actions/list-site-subsites.d.mts +9 -0
  471. package/dist/actions/list-site-subsites.d.mts.map +1 -0
  472. package/dist/actions/list-site-subsites.mjs +34 -0
  473. package/dist/actions/list-site-subsites.mjs.map +1 -0
  474. package/dist/actions/list-subscriptions.cjs +37 -0
  475. package/dist/actions/list-subscriptions.cjs.map +1 -0
  476. package/dist/actions/list-subscriptions.d.cts +9 -0
  477. package/dist/actions/list-subscriptions.d.cts.map +1 -0
  478. package/dist/actions/list-subscriptions.d.mts +9 -0
  479. package/dist/actions/list-subscriptions.d.mts.map +1 -0
  480. package/dist/actions/list-subscriptions.mjs +36 -0
  481. package/dist/actions/list-subscriptions.mjs.map +1 -0
  482. package/dist/actions/list-workbook-worksheets.cjs +33 -0
  483. package/dist/actions/list-workbook-worksheets.cjs.map +1 -0
  484. package/dist/actions/list-workbook-worksheets.d.cts +9 -0
  485. package/dist/actions/list-workbook-worksheets.d.cts.map +1 -0
  486. package/dist/actions/list-workbook-worksheets.d.mts +9 -0
  487. package/dist/actions/list-workbook-worksheets.d.mts.map +1 -0
  488. package/dist/actions/list-workbook-worksheets.mjs +32 -0
  489. package/dist/actions/list-workbook-worksheets.mjs.map +1 -0
  490. package/dist/actions/move-item.cjs +40 -0
  491. package/dist/actions/move-item.cjs.map +1 -0
  492. package/dist/actions/move-item.d.cts +9 -0
  493. package/dist/actions/move-item.d.cts.map +1 -0
  494. package/dist/actions/move-item.d.mts +9 -0
  495. package/dist/actions/move-item.d.mts.map +1 -0
  496. package/dist/actions/move-item.mjs +39 -0
  497. package/dist/actions/move-item.mjs.map +1 -0
  498. package/dist/actions/onedrive-create-folder.cjs +30 -0
  499. package/dist/actions/onedrive-create-folder.cjs.map +1 -0
  500. package/dist/actions/onedrive-create-folder.d.cts +9 -0
  501. package/dist/actions/onedrive-create-folder.d.cts.map +1 -0
  502. package/dist/actions/onedrive-create-folder.d.mts +9 -0
  503. package/dist/actions/onedrive-create-folder.d.mts.map +1 -0
  504. package/dist/actions/onedrive-create-folder.mjs +27 -0
  505. package/dist/actions/onedrive-create-folder.mjs.map +1 -0
  506. package/dist/actions/onedrive-create-text-file.cjs +32 -0
  507. package/dist/actions/onedrive-create-text-file.cjs.map +1 -0
  508. package/dist/actions/onedrive-create-text-file.d.cts +9 -0
  509. package/dist/actions/onedrive-create-text-file.d.cts.map +1 -0
  510. package/dist/actions/onedrive-create-text-file.d.mts +9 -0
  511. package/dist/actions/onedrive-create-text-file.d.mts.map +1 -0
  512. package/dist/actions/onedrive-create-text-file.mjs +31 -0
  513. package/dist/actions/onedrive-create-text-file.mjs.map +1 -0
  514. package/dist/actions/onedrive-find-file.cjs +88 -0
  515. package/dist/actions/onedrive-find-file.cjs.map +1 -0
  516. package/dist/actions/onedrive-find-file.d.cts +9 -0
  517. package/dist/actions/onedrive-find-file.d.cts.map +1 -0
  518. package/dist/actions/onedrive-find-file.d.mts +9 -0
  519. package/dist/actions/onedrive-find-file.d.mts.map +1 -0
  520. package/dist/actions/onedrive-find-file.mjs +87 -0
  521. package/dist/actions/onedrive-find-file.mjs.map +1 -0
  522. package/dist/actions/onedrive-find-folder.cjs +69 -0
  523. package/dist/actions/onedrive-find-folder.cjs.map +1 -0
  524. package/dist/actions/onedrive-find-folder.d.cts +9 -0
  525. package/dist/actions/onedrive-find-folder.d.cts.map +1 -0
  526. package/dist/actions/onedrive-find-folder.d.mts +9 -0
  527. package/dist/actions/onedrive-find-folder.d.mts.map +1 -0
  528. package/dist/actions/onedrive-find-folder.mjs +68 -0
  529. package/dist/actions/onedrive-find-folder.mjs.map +1 -0
  530. package/dist/actions/onedrive-list-items.cjs +182 -0
  531. package/dist/actions/onedrive-list-items.cjs.map +1 -0
  532. package/dist/actions/onedrive-list-items.d.cts +9 -0
  533. package/dist/actions/onedrive-list-items.d.cts.map +1 -0
  534. package/dist/actions/onedrive-list-items.d.mts +9 -0
  535. package/dist/actions/onedrive-list-items.d.mts.map +1 -0
  536. package/dist/actions/onedrive-list-items.mjs +181 -0
  537. package/dist/actions/onedrive-list-items.mjs.map +1 -0
  538. package/dist/actions/onedrive-upload-file.cjs +53 -0
  539. package/dist/actions/onedrive-upload-file.cjs.map +1 -0
  540. package/dist/actions/onedrive-upload-file.d.cts +9 -0
  541. package/dist/actions/onedrive-upload-file.d.cts.map +1 -0
  542. package/dist/actions/onedrive-upload-file.d.mts +9 -0
  543. package/dist/actions/onedrive-upload-file.d.mts.map +1 -0
  544. package/dist/actions/onedrive-upload-file.mjs +52 -0
  545. package/dist/actions/onedrive-upload-file.mjs.map +1 -0
  546. package/dist/actions/preview-drive-item.cjs +29 -0
  547. package/dist/actions/preview-drive-item.cjs.map +1 -0
  548. package/dist/actions/preview-drive-item.d.cts +9 -0
  549. package/dist/actions/preview-drive-item.d.cts.map +1 -0
  550. package/dist/actions/preview-drive-item.d.mts +9 -0
  551. package/dist/actions/preview-drive-item.d.mts.map +1 -0
  552. package/dist/actions/preview-drive-item.mjs +26 -0
  553. package/dist/actions/preview-drive-item.mjs.map +1 -0
  554. package/dist/actions/read-workbook-range.cjs +71 -0
  555. package/dist/actions/read-workbook-range.cjs.map +1 -0
  556. package/dist/actions/read-workbook-range.d.cts +9 -0
  557. package/dist/actions/read-workbook-range.d.cts.map +1 -0
  558. package/dist/actions/read-workbook-range.d.mts +9 -0
  559. package/dist/actions/read-workbook-range.d.mts.map +1 -0
  560. package/dist/actions/read-workbook-range.mjs +68 -0
  561. package/dist/actions/read-workbook-range.mjs.map +1 -0
  562. package/dist/actions/restore-drive-item.cjs +32 -0
  563. package/dist/actions/restore-drive-item.cjs.map +1 -0
  564. package/dist/actions/restore-drive-item.d.cts +9 -0
  565. package/dist/actions/restore-drive-item.d.cts.map +1 -0
  566. package/dist/actions/restore-drive-item.d.mts +9 -0
  567. package/dist/actions/restore-drive-item.d.mts.map +1 -0
  568. package/dist/actions/restore-drive-item.mjs +29 -0
  569. package/dist/actions/restore-drive-item.mjs.map +1 -0
  570. package/dist/actions/restore-item-version.cjs +21 -0
  571. package/dist/actions/restore-item-version.cjs.map +1 -0
  572. package/dist/actions/restore-item-version.d.cts +9 -0
  573. package/dist/actions/restore-item-version.d.cts.map +1 -0
  574. package/dist/actions/restore-item-version.d.mts +9 -0
  575. package/dist/actions/restore-item-version.d.mts.map +1 -0
  576. package/dist/actions/restore-item-version.mjs +18 -0
  577. package/dist/actions/restore-item-version.mjs.map +1 -0
  578. package/dist/actions/search-items.cjs +97 -0
  579. package/dist/actions/search-items.cjs.map +1 -0
  580. package/dist/actions/search-items.d.cts +9 -0
  581. package/dist/actions/search-items.d.cts.map +1 -0
  582. package/dist/actions/search-items.d.mts +9 -0
  583. package/dist/actions/search-items.d.mts.map +1 -0
  584. package/dist/actions/search-items.mjs +96 -0
  585. package/dist/actions/search-items.mjs.map +1 -0
  586. package/dist/actions/unfollow-item.cjs +16 -0
  587. package/dist/actions/unfollow-item.cjs.map +1 -0
  588. package/dist/actions/unfollow-item.d.cts +9 -0
  589. package/dist/actions/unfollow-item.d.cts.map +1 -0
  590. package/dist/actions/unfollow-item.d.mts +9 -0
  591. package/dist/actions/unfollow-item.d.mts.map +1 -0
  592. package/dist/actions/unfollow-item.mjs +13 -0
  593. package/dist/actions/unfollow-item.mjs.map +1 -0
  594. package/dist/actions/update-drive-item-metadata.cjs +62 -0
  595. package/dist/actions/update-drive-item-metadata.cjs.map +1 -0
  596. package/dist/actions/update-drive-item-metadata.d.cts +9 -0
  597. package/dist/actions/update-drive-item-metadata.d.cts.map +1 -0
  598. package/dist/actions/update-drive-item-metadata.d.mts +9 -0
  599. package/dist/actions/update-drive-item-metadata.d.mts.map +1 -0
  600. package/dist/actions/update-drive-item-metadata.mjs +61 -0
  601. package/dist/actions/update-drive-item-metadata.mjs.map +1 -0
  602. package/dist/actions/update-drive-items-permissions.cjs +48 -0
  603. package/dist/actions/update-drive-items-permissions.cjs.map +1 -0
  604. package/dist/actions/update-drive-items-permissions.d.cts +9 -0
  605. package/dist/actions/update-drive-items-permissions.d.cts.map +1 -0
  606. package/dist/actions/update-drive-items-permissions.d.mts +9 -0
  607. package/dist/actions/update-drive-items-permissions.d.mts.map +1 -0
  608. package/dist/actions/update-drive-items-permissions.mjs +47 -0
  609. package/dist/actions/update-drive-items-permissions.mjs.map +1 -0
  610. package/dist/actions/update-file-content.cjs +54 -0
  611. package/dist/actions/update-file-content.cjs.map +1 -0
  612. package/dist/actions/update-file-content.d.cts +9 -0
  613. package/dist/actions/update-file-content.d.cts.map +1 -0
  614. package/dist/actions/update-file-content.d.mts +9 -0
  615. package/dist/actions/update-file-content.d.mts.map +1 -0
  616. package/dist/actions/update-file-content.mjs +53 -0
  617. package/dist/actions/update-file-content.mjs.map +1 -0
  618. package/dist/actions/update-sharepoint-item-permission.cjs +22 -0
  619. package/dist/actions/update-sharepoint-item-permission.cjs.map +1 -0
  620. package/dist/actions/update-sharepoint-item-permission.d.cts +9 -0
  621. package/dist/actions/update-sharepoint-item-permission.d.cts.map +1 -0
  622. package/dist/actions/update-sharepoint-item-permission.d.mts +9 -0
  623. package/dist/actions/update-sharepoint-item-permission.d.mts.map +1 -0
  624. package/dist/actions/update-sharepoint-item-permission.mjs +19 -0
  625. package/dist/actions/update-sharepoint-item-permission.mjs.map +1 -0
  626. package/dist/actions/update-sharepoint-list-item-fields.cjs +22 -0
  627. package/dist/actions/update-sharepoint-list-item-fields.cjs.map +1 -0
  628. package/dist/actions/update-sharepoint-list-item-fields.d.cts +9 -0
  629. package/dist/actions/update-sharepoint-list-item-fields.d.cts.map +1 -0
  630. package/dist/actions/update-sharepoint-list-item-fields.d.mts +9 -0
  631. package/dist/actions/update-sharepoint-list-item-fields.d.mts.map +1 -0
  632. package/dist/actions/update-sharepoint-list-item-fields.mjs +19 -0
  633. package/dist/actions/update-sharepoint-list-item-fields.mjs.map +1 -0
  634. package/dist/actions/update-workbook-range.cjs +93 -0
  635. package/dist/actions/update-workbook-range.cjs.map +1 -0
  636. package/dist/actions/update-workbook-range.d.cts +9 -0
  637. package/dist/actions/update-workbook-range.d.cts.map +1 -0
  638. package/dist/actions/update-workbook-range.d.mts +9 -0
  639. package/dist/actions/update-workbook-range.d.mts.map +1 -0
  640. package/dist/actions/update-workbook-range.mjs +90 -0
  641. package/dist/actions/update-workbook-range.mjs.map +1 -0
  642. package/dist/actions/update-workbook-worksheet.cjs +33 -0
  643. package/dist/actions/update-workbook-worksheet.cjs.map +1 -0
  644. package/dist/actions/update-workbook-worksheet.d.cts +9 -0
  645. package/dist/actions/update-workbook-worksheet.d.cts.map +1 -0
  646. package/dist/actions/update-workbook-worksheet.d.mts +9 -0
  647. package/dist/actions/update-workbook-worksheet.d.mts.map +1 -0
  648. package/dist/actions/update-workbook-worksheet.mjs +30 -0
  649. package/dist/actions/update-workbook-worksheet.mjs.map +1 -0
  650. package/dist/actions/write-workbook-cell.cjs +69 -0
  651. package/dist/actions/write-workbook-cell.cjs.map +1 -0
  652. package/dist/actions/write-workbook-cell.d.cts +9 -0
  653. package/dist/actions/write-workbook-cell.d.cts.map +1 -0
  654. package/dist/actions/write-workbook-cell.d.mts +9 -0
  655. package/dist/actions/write-workbook-cell.d.mts.map +1 -0
  656. package/dist/actions/write-workbook-cell.mjs +66 -0
  657. package/dist/actions/write-workbook-cell.mjs.map +1 -0
  658. package/dist/app.cjs +9 -0
  659. package/dist/app.cjs.map +1 -0
  660. package/dist/app.d.cts +5 -0
  661. package/dist/app.d.cts.map +1 -0
  662. package/dist/app.d.mts +5 -0
  663. package/dist/app.d.mts.map +1 -0
  664. package/dist/app.mjs +10 -0
  665. package/dist/app.mjs.map +1 -0
  666. package/dist/catalog.cjs +15 -0
  667. package/dist/catalog.cjs.map +1 -0
  668. package/dist/catalog.d.cts +14 -0
  669. package/dist/catalog.d.cts.map +1 -0
  670. package/dist/catalog.d.mts +14 -0
  671. package/dist/catalog.d.mts.map +1 -0
  672. package/dist/catalog.mjs +15 -0
  673. package/dist/catalog.mjs.map +1 -0
  674. package/dist/execute.cjs +18 -0
  675. package/dist/execute.cjs.map +1 -0
  676. package/dist/execute.mjs +18 -0
  677. package/dist/execute.mjs.map +1 -0
  678. package/dist/index.cjs +168 -0
  679. package/dist/index.d.cts +84 -0
  680. package/dist/index.d.mts +84 -0
  681. package/dist/index.mjs +85 -0
  682. package/package.json +49 -0
@@ -0,0 +1,62 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-drive-item-metadata.ts
4
+ const OneDriveUpdateDriveItemMetadataInput = zod.z.object({
5
+ name: zod.z.string().describe("The new name for the drive item. Must not contain illegal characters: `\\`, `/`, `:`, `*`, `?`, `'`, `<`, `>`, `|`; these trigger an `invalidRequest` error.").optional(),
6
+ item_id: zod.z.string().describe("The unique identifier of the drive item (file or folder) to update."),
7
+ site_id: zod.z.string().describe("The unique identifier of the site. Used when updating an item within a site's drive.").optional(),
8
+ user_id: zod.z.string().describe("The unique identifier of the user. Used when updating an item within a specific user's drive.").optional(),
9
+ drive_id: zod.z.string().describe("The unique identifier of the drive. Required if not using other specific paths like /me, /groups/{group-id}, /sites/{site-id}, or /users/{user-id}.").optional(),
10
+ group_id: zod.z.string().describe("The unique identifier of the group. Used when updating an item within a group's drive.").optional(),
11
+ if_match: zod.z.string().describe("The eTag or cTag value for conditional update. If this header is included and the eTag provided doesn't match the current eTag on the item, a 412 Precondition Failed response is returned. Use this to prevent conflicts when multiple users update the same item.").optional(),
12
+ description: zod.z.string().describe("The new description for the drive item.").optional(),
13
+ file_system_info: zod.z.object({
14
+ createdDateTime: zod.z.string().describe("The UTC date and time the file was created on a client. ISO 8601 format.").optional(),
15
+ lastAccessedDateTime: zod.z.string().describe("The UTC date and time the file was last accessed. ISO 8601 format.").optional(),
16
+ lastModifiedDateTime: zod.z.string().describe("The UTC date and time the file was last modified on a client. ISO 8601 format.").optional()
17
+ }).describe("File system information on client.").optional(),
18
+ parent_reference_id: zod.z.string().describe("The ID of the new parent item. Use this to move the item. The driveId of the parentReference can also be specified if moving between drives. For cross-drive moves, `parent_reference_drive_id` is required alongside this field. Omit both fields when only renaming or updating metadata to avoid unintended moves.").optional(),
19
+ parent_reference_drive_id: zod.z.string().describe("The drive ID of the new parent item, if moving to a different drive.").optional()
20
+ });
21
+ const OneDriveUpdateDriveItemMetadata_HashesSchema = zod.z.object({
22
+ sha1Hash: zod.z.string().describe("SHA1 hash for the contents of the file (if available).").nullable().optional(),
23
+ crc32Hash: zod.z.string().describe("The CRC32 value of the file (if available).").nullable().optional(),
24
+ sha256Hash: zod.z.string().describe("This property isn't supported.").nullable().optional(),
25
+ quickXorHash: zod.z.string().describe("A proprietary hash of the file that can be used to determine if the contents of the file change (if available).").nullable().optional()
26
+ }).describe("Groups available hashes into a single structure for an item.");
27
+ const OneDriveUpdateDriveItemMetadata_FileFacetSchema = zod.z.object({
28
+ hashes: OneDriveUpdateDriveItemMetadata_HashesSchema.nullable().optional(),
29
+ mimeType: zod.z.string().describe("The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded.").nullable().optional()
30
+ }).describe("File metadata facet for a DriveItem that is a file.");
31
+ const OneDriveUpdateDriveItemMetadata_FolderViewSchema = zod.z.object({
32
+ sortBy: zod.z.string().describe("The method by which the folder should be sorted.").nullable().optional(),
33
+ viewType: zod.z.string().describe("The type of view that should be used to represent the folder.").nullable().optional(),
34
+ sortOrder: zod.z.string().describe("The sort order (ascending or descending).").nullable().optional()
35
+ }).describe("Provides or sets recommendations on the user-experience of a folder.");
36
+ const OneDriveUpdateDriveItemMetadata_FolderFacetSchema = zod.z.object({
37
+ view: OneDriveUpdateDriveItemMetadata_FolderViewSchema.nullable().optional(),
38
+ childCount: zod.z.number().int().describe("Number of children contained immediately within this container.").nullable().optional()
39
+ }).describe("Folder metadata facet for a DriveItem that is a folder.");
40
+ const OneDriveUpdateDriveItemMetadataOutput = zod.z.object({
41
+ id: zod.z.string().describe("The unique identifier of the updated item."),
42
+ cTag: zod.z.string().describe("The CTag of the item (for changes to content).").nullable().optional(),
43
+ eTag: zod.z.string().describe("The ETag of the item.").nullable().optional(),
44
+ file: OneDriveUpdateDriveItemMetadata_FileFacetSchema.nullable().optional(),
45
+ name: zod.z.string().describe("The name of the updated item."),
46
+ size: zod.z.number().int().describe("The size of the item in bytes.").nullable().optional(),
47
+ folder: OneDriveUpdateDriveItemMetadata_FolderFacetSchema.nullable().optional(),
48
+ webUrl: zod.z.string().describe("URL that displays the item in the browser.").nullable().optional(),
49
+ createdDateTime: zod.z.string().describe("The date and time the item was created.").nullable().optional(),
50
+ lastModifiedDateTime: zod.z.string().describe("The date and time the item was last modified.").nullable().optional()
51
+ });
52
+ const oneDriveUpdateDriveItemMetadata = require_action.action("ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA", {
53
+ slug: "one_drive-update-drive-item-metadata",
54
+ name: "Update Drive Item Metadata",
55
+ description: "Tool to update the metadata of a specific item (file or folder) in OneDrive. Use this to rename items, change descriptions, or move items to a new parent folder.",
56
+ input: OneDriveUpdateDriveItemMetadataInput,
57
+ output: OneDriveUpdateDriveItemMetadataOutput
58
+ });
59
+ //#endregion
60
+ exports.oneDriveUpdateDriveItemMetadata = oneDriveUpdateDriveItemMetadata;
61
+
62
+ //# sourceMappingURL=update-drive-item-metadata.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-item-metadata.cjs","names":["z","action"],"sources":["../../src/actions/update-drive-item-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateDriveItemMetadataInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The new name for the drive item. Must not contain illegal characters: `\\\\`, `/`, `:`, `*`, `?`, `'`, `<`, `>`, `|`; these trigger an `invalidRequest` error.\").optional(),\n item_id: z.string().describe(\"The unique identifier of the drive item (file or folder) to update.\"),\n site_id: z.string().describe(\"The unique identifier of the site. Used when updating an item within a site's drive.\").optional(),\n user_id: z.string().describe(\"The unique identifier of the user. Used when updating an item within a specific user's drive.\").optional(),\n drive_id: z.string().describe(\"The unique identifier of the drive. Required if not using other specific paths like /me, /groups/{group-id}, /sites/{site-id}, or /users/{user-id}.\").optional(),\n group_id: z.string().describe(\"The unique identifier of the group. Used when updating an item within a group's drive.\").optional(),\n if_match: z.string().describe(\"The eTag or cTag value for conditional update. If this header is included and the eTag provided doesn't match the current eTag on the item, a 412 Precondition Failed response is returned. Use this to prevent conflicts when multiple users update the same item.\").optional(),\n description: z.string().describe(\"The new description for the drive item.\").optional(),\n file_system_info: z.object({\n createdDateTime: z.string().describe(\"The UTC date and time the file was created on a client. ISO 8601 format.\").optional(),\n lastAccessedDateTime: z.string().describe(\"The UTC date and time the file was last accessed. ISO 8601 format.\").optional(),\n lastModifiedDateTime: z.string().describe(\"The UTC date and time the file was last modified on a client. ISO 8601 format.\").optional(),\n}).describe(\"File system information on client.\").optional(),\n parent_reference_id: z.string().describe(\"The ID of the new parent item. Use this to move the item. The driveId of the parentReference can also be specified if moving between drives. For cross-drive moves, `parent_reference_drive_id` is required alongside this field. Omit both fields when only renaming or updating metadata to avoid unintended moves.\").optional(),\n parent_reference_drive_id: z.string().describe(\"The drive ID of the new parent item, if moving to a different drive.\").optional(),\n});\nconst OneDriveUpdateDriveItemMetadata_HashesSchema: z.ZodTypeAny = z.object({\n sha1Hash: z.string().describe(\"SHA1 hash for the contents of the file (if available).\").nullable().optional(),\n crc32Hash: z.string().describe(\"The CRC32 value of the file (if available).\").nullable().optional(),\n sha256Hash: z.string().describe(\"This property isn't supported.\").nullable().optional(),\n quickXorHash: z.string().describe(\"A proprietary hash of the file that can be used to determine if the contents of the file change (if available).\").nullable().optional(),\n}).describe(\"Groups available hashes into a single structure for an item.\");\nconst OneDriveUpdateDriveItemMetadata_FileFacetSchema: z.ZodTypeAny = z.object({\n hashes: OneDriveUpdateDriveItemMetadata_HashesSchema.nullable().optional(),\n mimeType: z.string().describe(\"The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded.\").nullable().optional(),\n}).describe(\"File metadata facet for a DriveItem that is a file.\");\nconst OneDriveUpdateDriveItemMetadata_FolderViewSchema: z.ZodTypeAny = z.object({\n sortBy: z.string().describe(\"The method by which the folder should be sorted.\").nullable().optional(),\n viewType: z.string().describe(\"The type of view that should be used to represent the folder.\").nullable().optional(),\n sortOrder: z.string().describe(\"The sort order (ascending or descending).\").nullable().optional(),\n}).describe(\"Provides or sets recommendations on the user-experience of a folder.\");\nconst OneDriveUpdateDriveItemMetadata_FolderFacetSchema: z.ZodTypeAny = z.object({\n view: OneDriveUpdateDriveItemMetadata_FolderViewSchema.nullable().optional(),\n childCount: z.number().int().describe(\"Number of children contained immediately within this container.\").nullable().optional(),\n}).describe(\"Folder metadata facet for a DriveItem that is a folder.\");\nexport const OneDriveUpdateDriveItemMetadataOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the updated item.\"),\n cTag: z.string().describe(\"The CTag of the item (for changes to content).\").nullable().optional(),\n eTag: z.string().describe(\"The ETag of the item.\").nullable().optional(),\n file: OneDriveUpdateDriveItemMetadata_FileFacetSchema.nullable().optional(),\n name: z.string().describe(\"The name of the updated item.\"),\n size: z.number().int().describe(\"The size of the item in bytes.\").nullable().optional(),\n folder: OneDriveUpdateDriveItemMetadata_FolderFacetSchema.nullable().optional(),\n webUrl: z.string().describe(\"URL that displays the item in the browser.\").nullable().optional(),\n createdDateTime: z.string().describe(\"The date and time the item was created.\").nullable().optional(),\n lastModifiedDateTime: z.string().describe(\"The date and time the item was last modified.\").nullable().optional(),\n});\n\nexport const oneDriveUpdateDriveItemMetadata = action(\"ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA\", {\n slug: \"one_drive-update-drive-item-metadata\",\n name: \"Update Drive Item Metadata\",\n description: \"Tool to update the metadata of a specific item (file or folder) in OneDrive. Use this to rename items, change descriptions, or move items to a new parent folder.\",\n input: OneDriveUpdateDriveItemMetadataInput,\n output: OneDriveUpdateDriveItemMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACnM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAClG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CAC9L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qQAAqQ,CAAC,CAAC,SAAS;CAC9S,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO;EAC3B,iBAAiBA,IAAAA,EAAE,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AAC,CAAC,SAAS;CACpG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-drive-item-metadata.d.ts
4
+ declare const OneDriveUpdateDriveItemMetadataInput: z.ZodTypeAny;
5
+ declare const OneDriveUpdateDriveItemMetadataOutput: z.ZodTypeAny;
6
+ declare const oneDriveUpdateDriveItemMetadata: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { oneDriveUpdateDriveItemMetadata };
9
+ //# sourceMappingURL=update-drive-item-metadata.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-item-metadata.d.cts","names":[],"sources":["../../src/actions/update-drive-item-metadata.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAgBnD;AAAA,cAoBW,qCAAA,EAAuC,CAAA,CAAE,UAWpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-drive-item-metadata.d.ts
4
+ declare const OneDriveUpdateDriveItemMetadataInput: z.ZodTypeAny;
5
+ declare const OneDriveUpdateDriveItemMetadataOutput: z.ZodTypeAny;
6
+ declare const oneDriveUpdateDriveItemMetadata: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { oneDriveUpdateDriveItemMetadata };
9
+ //# sourceMappingURL=update-drive-item-metadata.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-item-metadata.d.mts","names":[],"sources":["../../src/actions/update-drive-item-metadata.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAgBnD;AAAA,cAoBW,qCAAA,EAAuC,CAAA,CAAE,UAWpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,61 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-drive-item-metadata.ts
4
+ const OneDriveUpdateDriveItemMetadataInput = z.object({
5
+ name: z.string().describe("The new name for the drive item. Must not contain illegal characters: `\\`, `/`, `:`, `*`, `?`, `'`, `<`, `>`, `|`; these trigger an `invalidRequest` error.").optional(),
6
+ item_id: z.string().describe("The unique identifier of the drive item (file or folder) to update."),
7
+ site_id: z.string().describe("The unique identifier of the site. Used when updating an item within a site's drive.").optional(),
8
+ user_id: z.string().describe("The unique identifier of the user. Used when updating an item within a specific user's drive.").optional(),
9
+ drive_id: z.string().describe("The unique identifier of the drive. Required if not using other specific paths like /me, /groups/{group-id}, /sites/{site-id}, or /users/{user-id}.").optional(),
10
+ group_id: z.string().describe("The unique identifier of the group. Used when updating an item within a group's drive.").optional(),
11
+ if_match: z.string().describe("The eTag or cTag value for conditional update. If this header is included and the eTag provided doesn't match the current eTag on the item, a 412 Precondition Failed response is returned. Use this to prevent conflicts when multiple users update the same item.").optional(),
12
+ description: z.string().describe("The new description for the drive item.").optional(),
13
+ file_system_info: z.object({
14
+ createdDateTime: z.string().describe("The UTC date and time the file was created on a client. ISO 8601 format.").optional(),
15
+ lastAccessedDateTime: z.string().describe("The UTC date and time the file was last accessed. ISO 8601 format.").optional(),
16
+ lastModifiedDateTime: z.string().describe("The UTC date and time the file was last modified on a client. ISO 8601 format.").optional()
17
+ }).describe("File system information on client.").optional(),
18
+ parent_reference_id: z.string().describe("The ID of the new parent item. Use this to move the item. The driveId of the parentReference can also be specified if moving between drives. For cross-drive moves, `parent_reference_drive_id` is required alongside this field. Omit both fields when only renaming or updating metadata to avoid unintended moves.").optional(),
19
+ parent_reference_drive_id: z.string().describe("The drive ID of the new parent item, if moving to a different drive.").optional()
20
+ });
21
+ const OneDriveUpdateDriveItemMetadata_HashesSchema = z.object({
22
+ sha1Hash: z.string().describe("SHA1 hash for the contents of the file (if available).").nullable().optional(),
23
+ crc32Hash: z.string().describe("The CRC32 value of the file (if available).").nullable().optional(),
24
+ sha256Hash: z.string().describe("This property isn't supported.").nullable().optional(),
25
+ quickXorHash: z.string().describe("A proprietary hash of the file that can be used to determine if the contents of the file change (if available).").nullable().optional()
26
+ }).describe("Groups available hashes into a single structure for an item.");
27
+ const OneDriveUpdateDriveItemMetadata_FileFacetSchema = z.object({
28
+ hashes: OneDriveUpdateDriveItemMetadata_HashesSchema.nullable().optional(),
29
+ mimeType: z.string().describe("The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded.").nullable().optional()
30
+ }).describe("File metadata facet for a DriveItem that is a file.");
31
+ const OneDriveUpdateDriveItemMetadata_FolderViewSchema = z.object({
32
+ sortBy: z.string().describe("The method by which the folder should be sorted.").nullable().optional(),
33
+ viewType: z.string().describe("The type of view that should be used to represent the folder.").nullable().optional(),
34
+ sortOrder: z.string().describe("The sort order (ascending or descending).").nullable().optional()
35
+ }).describe("Provides or sets recommendations on the user-experience of a folder.");
36
+ const OneDriveUpdateDriveItemMetadata_FolderFacetSchema = z.object({
37
+ view: OneDriveUpdateDriveItemMetadata_FolderViewSchema.nullable().optional(),
38
+ childCount: z.number().int().describe("Number of children contained immediately within this container.").nullable().optional()
39
+ }).describe("Folder metadata facet for a DriveItem that is a folder.");
40
+ const oneDriveUpdateDriveItemMetadata = action("ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA", {
41
+ slug: "one_drive-update-drive-item-metadata",
42
+ name: "Update Drive Item Metadata",
43
+ description: "Tool to update the metadata of a specific item (file or folder) in OneDrive. Use this to rename items, change descriptions, or move items to a new parent folder.",
44
+ input: OneDriveUpdateDriveItemMetadataInput,
45
+ output: z.object({
46
+ id: z.string().describe("The unique identifier of the updated item."),
47
+ cTag: z.string().describe("The CTag of the item (for changes to content).").nullable().optional(),
48
+ eTag: z.string().describe("The ETag of the item.").nullable().optional(),
49
+ file: OneDriveUpdateDriveItemMetadata_FileFacetSchema.nullable().optional(),
50
+ name: z.string().describe("The name of the updated item."),
51
+ size: z.number().int().describe("The size of the item in bytes.").nullable().optional(),
52
+ folder: OneDriveUpdateDriveItemMetadata_FolderFacetSchema.nullable().optional(),
53
+ webUrl: z.string().describe("URL that displays the item in the browser.").nullable().optional(),
54
+ createdDateTime: z.string().describe("The date and time the item was created.").nullable().optional(),
55
+ lastModifiedDateTime: z.string().describe("The date and time the item was last modified.").nullable().optional()
56
+ })
57
+ });
58
+ //#endregion
59
+ export { oneDriveUpdateDriveItemMetadata };
60
+
61
+ //# sourceMappingURL=update-drive-item-metadata.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-item-metadata.mjs","names":[],"sources":["../../src/actions/update-drive-item-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateDriveItemMetadataInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The new name for the drive item. Must not contain illegal characters: `\\\\`, `/`, `:`, `*`, `?`, `'`, `<`, `>`, `|`; these trigger an `invalidRequest` error.\").optional(),\n item_id: z.string().describe(\"The unique identifier of the drive item (file or folder) to update.\"),\n site_id: z.string().describe(\"The unique identifier of the site. Used when updating an item within a site's drive.\").optional(),\n user_id: z.string().describe(\"The unique identifier of the user. Used when updating an item within a specific user's drive.\").optional(),\n drive_id: z.string().describe(\"The unique identifier of the drive. Required if not using other specific paths like /me, /groups/{group-id}, /sites/{site-id}, or /users/{user-id}.\").optional(),\n group_id: z.string().describe(\"The unique identifier of the group. Used when updating an item within a group's drive.\").optional(),\n if_match: z.string().describe(\"The eTag or cTag value for conditional update. If this header is included and the eTag provided doesn't match the current eTag on the item, a 412 Precondition Failed response is returned. Use this to prevent conflicts when multiple users update the same item.\").optional(),\n description: z.string().describe(\"The new description for the drive item.\").optional(),\n file_system_info: z.object({\n createdDateTime: z.string().describe(\"The UTC date and time the file was created on a client. ISO 8601 format.\").optional(),\n lastAccessedDateTime: z.string().describe(\"The UTC date and time the file was last accessed. ISO 8601 format.\").optional(),\n lastModifiedDateTime: z.string().describe(\"The UTC date and time the file was last modified on a client. ISO 8601 format.\").optional(),\n}).describe(\"File system information on client.\").optional(),\n parent_reference_id: z.string().describe(\"The ID of the new parent item. Use this to move the item. The driveId of the parentReference can also be specified if moving between drives. For cross-drive moves, `parent_reference_drive_id` is required alongside this field. Omit both fields when only renaming or updating metadata to avoid unintended moves.\").optional(),\n parent_reference_drive_id: z.string().describe(\"The drive ID of the new parent item, if moving to a different drive.\").optional(),\n});\nconst OneDriveUpdateDriveItemMetadata_HashesSchema: z.ZodTypeAny = z.object({\n sha1Hash: z.string().describe(\"SHA1 hash for the contents of the file (if available).\").nullable().optional(),\n crc32Hash: z.string().describe(\"The CRC32 value of the file (if available).\").nullable().optional(),\n sha256Hash: z.string().describe(\"This property isn't supported.\").nullable().optional(),\n quickXorHash: z.string().describe(\"A proprietary hash of the file that can be used to determine if the contents of the file change (if available).\").nullable().optional(),\n}).describe(\"Groups available hashes into a single structure for an item.\");\nconst OneDriveUpdateDriveItemMetadata_FileFacetSchema: z.ZodTypeAny = z.object({\n hashes: OneDriveUpdateDriveItemMetadata_HashesSchema.nullable().optional(),\n mimeType: z.string().describe(\"The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded.\").nullable().optional(),\n}).describe(\"File metadata facet for a DriveItem that is a file.\");\nconst OneDriveUpdateDriveItemMetadata_FolderViewSchema: z.ZodTypeAny = z.object({\n sortBy: z.string().describe(\"The method by which the folder should be sorted.\").nullable().optional(),\n viewType: z.string().describe(\"The type of view that should be used to represent the folder.\").nullable().optional(),\n sortOrder: z.string().describe(\"The sort order (ascending or descending).\").nullable().optional(),\n}).describe(\"Provides or sets recommendations on the user-experience of a folder.\");\nconst OneDriveUpdateDriveItemMetadata_FolderFacetSchema: z.ZodTypeAny = z.object({\n view: OneDriveUpdateDriveItemMetadata_FolderViewSchema.nullable().optional(),\n childCount: z.number().int().describe(\"Number of children contained immediately within this container.\").nullable().optional(),\n}).describe(\"Folder metadata facet for a DriveItem that is a folder.\");\nexport const OneDriveUpdateDriveItemMetadataOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the updated item.\"),\n cTag: z.string().describe(\"The CTag of the item (for changes to content).\").nullable().optional(),\n eTag: z.string().describe(\"The ETag of the item.\").nullable().optional(),\n file: OneDriveUpdateDriveItemMetadata_FileFacetSchema.nullable().optional(),\n name: z.string().describe(\"The name of the updated item.\"),\n size: z.number().int().describe(\"The size of the item in bytes.\").nullable().optional(),\n folder: OneDriveUpdateDriveItemMetadata_FolderFacetSchema.nullable().optional(),\n webUrl: z.string().describe(\"URL that displays the item in the browser.\").nullable().optional(),\n createdDateTime: z.string().describe(\"The date and time the item was created.\").nullable().optional(),\n lastModifiedDateTime: z.string().describe(\"The date and time the item was last modified.\").nullable().optional(),\n});\n\nexport const oneDriveUpdateDriveItemMetadata = action(\"ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA\", {\n slug: \"one_drive-update-drive-item-metadata\",\n name: \"Update Drive Item Metadata\",\n description: \"Tool to update the metadata of a specific item (file or folder) in OneDrive. Use this to rename items, change descriptions, or move items to a new parent folder.\",\n input: OneDriveUpdateDriveItemMetadataInput,\n output: OneDriveUpdateDriveItemMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,C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M,gDAAgD,SAAS,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAOU;AACV,CAAC"}
@@ -0,0 +1,48 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-drive-items-permissions.ts
4
+ const OneDriveUpdateDriveItemsPermissionsInput = zod.z.object({
5
+ roles: zod.z.array(zod.z.string()).describe("Array of Microsoft Graph role strings to assign to the permission. Documented/common values include read, write, and owner for SharePoint/OneDrive for Business permission resources; tenant/resource-specific roles may also be accepted by Graph."),
6
+ item_id: zod.z.string().describe("The unique identifier of the drive item."),
7
+ site_id: zod.z.string().describe("The unique identifier of a SharePoint site. Use this if the item is in a SharePoint site's drive.").optional(),
8
+ user_id: zod.z.string().describe("The unique identifier of a user. Use this if the item is in a specific user's drive (other than 'me').").optional(),
9
+ drive_id: zod.z.string().describe("The unique identifier of the drive. Required if not using other identifiers like group_id, site_id, or user_id.").optional(),
10
+ group_id: zod.z.string().describe("The unique identifier of a group. Use this if the item is in a group's drive.").optional(),
11
+ permission_id: zod.z.string().describe("The unique identifier of the permission to update.")
12
+ });
13
+ const OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema = zod.z.object({
14
+ type: zod.z.string().describe("The type of link (e.g., 'view', 'edit').").nullable().optional(),
15
+ webUrl: zod.z.string().describe("The URL to access the item via the link.").nullable().optional()
16
+ });
17
+ const OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema = zod.z.object({
18
+ id: zod.z.string().describe("The unique identifier of the identity.").nullable().optional(),
19
+ loginName: zod.z.string().describe("The login name of the site user.").nullable().optional(),
20
+ displayName: zod.z.string().describe("The display name of the identity.").nullable().optional()
21
+ });
22
+ const OneDriveUpdateDriveItemsPermissions_GrantedToSchema = zod.z.object({
23
+ user: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
24
+ group: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
25
+ device: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
26
+ siteUser: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
27
+ application: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional()
28
+ });
29
+ const OneDriveUpdateDriveItemsPermissionsOutput = zod.z.object({
30
+ id: zod.z.string().describe("The unique identifier of the permission."),
31
+ link: OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema.nullable().optional(),
32
+ roles: zod.z.array(zod.z.string()).describe("The roles granted by this permission."),
33
+ grantedTo: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),
34
+ grantedToV2: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),
35
+ hasPassword: zod.z.boolean().describe("Indicates whether the sharing link has a password.").nullable().optional(),
36
+ expirationDateTime: zod.z.string().describe("The expiration date and time for the permission.").nullable().optional()
37
+ });
38
+ const oneDriveUpdateDriveItemsPermissions = require_action.action("ONE_DRIVE_UPDATE_DRIVE_ITEMS_PERMISSIONS", {
39
+ slug: "one_drive-update-drive-items-permissions",
40
+ name: "Update Drive Item Permissions",
41
+ description: "Tool to update the roles of an existing permission on a OneDrive drive item. Use when you need to change the access level (read, write, owner) for a specific permission on a file or folder.",
42
+ input: OneDriveUpdateDriveItemsPermissionsInput,
43
+ output: OneDriveUpdateDriveItemsPermissionsOutput
44
+ });
45
+ //#endregion
46
+ exports.oneDriveUpdateDriveItemsPermissions = oneDriveUpdateDriveItemsPermissions;
47
+
48
+ //# sourceMappingURL=update-drive-items-permissions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-items-permissions.cjs","names":["z","action"],"sources":["../../src/actions/update-drive-items-permissions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateDriveItemsPermissionsInput: z.ZodTypeAny = z.object({\n roles: z.array(z.string()).describe(\"Array of Microsoft Graph role strings to assign to the permission. Documented/common values include read, write, and owner for SharePoint/OneDrive for Business permission resources; tenant/resource-specific roles may also be accepted by Graph.\"),\n item_id: z.string().describe(\"The unique identifier of the drive item.\"),\n site_id: z.string().describe(\"The unique identifier of a SharePoint site. Use this if the item is in a SharePoint site's drive.\").optional(),\n user_id: z.string().describe(\"The unique identifier of a user. Use this if the item is in a specific user's drive (other than 'me').\").optional(),\n drive_id: z.string().describe(\"The unique identifier of the drive. Required if not using other identifiers like group_id, site_id, or user_id.\").optional(),\n group_id: z.string().describe(\"The unique identifier of a group. Use this if the item is in a group's drive.\").optional(),\n permission_id: z.string().describe(\"The unique identifier of the permission to update.\"),\n});\nconst OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of link (e.g., 'view', 'edit').\").nullable().optional(),\n webUrl: z.string().describe(\"The URL to access the item via the link.\").nullable().optional(),\n});\nconst OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the identity.\").nullable().optional(),\n loginName: z.string().describe(\"The login name of the site user.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the identity.\").nullable().optional(),\n});\nconst OneDriveUpdateDriveItemsPermissions_GrantedToSchema: z.ZodTypeAny = z.object({\n user: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n group: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n device: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n siteUser: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n application: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n});\nexport const OneDriveUpdateDriveItemsPermissionsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the permission.\"),\n link: OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema.nullable().optional(),\n roles: z.array(z.string()).describe(\"The roles granted by this permission.\"),\n grantedTo: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),\n grantedToV2: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),\n hasPassword: z.boolean().describe(\"Indicates whether the sharing link has a password.\").nullable().optional(),\n expirationDateTime: z.string().describe(\"The expiration date and time for the permission.\").nullable().optional(),\n});\n\nexport const oneDriveUpdateDriveItemsPermissions = action(\"ONE_DRIVE_UPDATE_DRIVE_ITEMS_PERMISSIONS\", {\n slug: \"one_drive-update-drive-items-permissions\",\n name: \"Update Drive Item Permissions\",\n description: \"Tool to update the roles of an existing permission on a OneDrive drive item. Use when you need to change the access level (read, write, owner) for a specific permission on a file or folder.\",\n input: OneDriveUpdateDriveItemsPermissionsInput,\n output: OneDriveUpdateDriveItemsPermissionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qPAAqP;CACzR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mG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C9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,MAAM,yDAAyD,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;CAC3E,WAAW,oDAAoD,SAAS,CAAC,CAAC,SAAS;CACnF,aAAa,oDAAoD,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC;AAED,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-drive-items-permissions.d.ts
4
+ declare const OneDriveUpdateDriveItemsPermissionsInput: z.ZodTypeAny;
5
+ declare const OneDriveUpdateDriveItemsPermissionsOutput: z.ZodTypeAny;
6
+ declare const oneDriveUpdateDriveItemsPermissions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { oneDriveUpdateDriveItemsPermissions };
9
+ //# sourceMappingURL=update-drive-items-permissions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-items-permissions.d.cts","names":[],"sources":["../../src/actions/update-drive-items-permissions.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAQvD;AAAA,cAiBW,yCAAA,EAA2C,CAAA,CAAE,UAQxD;AAAA,cAEW,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-drive-items-permissions.d.ts
4
+ declare const OneDriveUpdateDriveItemsPermissionsInput: z.ZodTypeAny;
5
+ declare const OneDriveUpdateDriveItemsPermissionsOutput: z.ZodTypeAny;
6
+ declare const oneDriveUpdateDriveItemsPermissions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { oneDriveUpdateDriveItemsPermissions };
9
+ //# sourceMappingURL=update-drive-items-permissions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-items-permissions.d.mts","names":[],"sources":["../../src/actions/update-drive-items-permissions.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAQvD;AAAA,cAiBW,yCAAA,EAA2C,CAAA,CAAE,UAQxD;AAAA,cAEW,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,47 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-drive-items-permissions.ts
4
+ const OneDriveUpdateDriveItemsPermissionsInput = z.object({
5
+ roles: z.array(z.string()).describe("Array of Microsoft Graph role strings to assign to the permission. Documented/common values include read, write, and owner for SharePoint/OneDrive for Business permission resources; tenant/resource-specific roles may also be accepted by Graph."),
6
+ item_id: z.string().describe("The unique identifier of the drive item."),
7
+ site_id: z.string().describe("The unique identifier of a SharePoint site. Use this if the item is in a SharePoint site's drive.").optional(),
8
+ user_id: z.string().describe("The unique identifier of a user. Use this if the item is in a specific user's drive (other than 'me').").optional(),
9
+ drive_id: z.string().describe("The unique identifier of the drive. Required if not using other identifiers like group_id, site_id, or user_id.").optional(),
10
+ group_id: z.string().describe("The unique identifier of a group. Use this if the item is in a group's drive.").optional(),
11
+ permission_id: z.string().describe("The unique identifier of the permission to update.")
12
+ });
13
+ const OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema = z.object({
14
+ type: z.string().describe("The type of link (e.g., 'view', 'edit').").nullable().optional(),
15
+ webUrl: z.string().describe("The URL to access the item via the link.").nullable().optional()
16
+ });
17
+ const OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema = z.object({
18
+ id: z.string().describe("The unique identifier of the identity.").nullable().optional(),
19
+ loginName: z.string().describe("The login name of the site user.").nullable().optional(),
20
+ displayName: z.string().describe("The display name of the identity.").nullable().optional()
21
+ });
22
+ const OneDriveUpdateDriveItemsPermissions_GrantedToSchema = z.object({
23
+ user: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
24
+ group: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
25
+ device: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
26
+ siteUser: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),
27
+ application: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional()
28
+ });
29
+ const oneDriveUpdateDriveItemsPermissions = action("ONE_DRIVE_UPDATE_DRIVE_ITEMS_PERMISSIONS", {
30
+ slug: "one_drive-update-drive-items-permissions",
31
+ name: "Update Drive Item Permissions",
32
+ description: "Tool to update the roles of an existing permission on a OneDrive drive item. Use when you need to change the access level (read, write, owner) for a specific permission on a file or folder.",
33
+ input: OneDriveUpdateDriveItemsPermissionsInput,
34
+ output: z.object({
35
+ id: z.string().describe("The unique identifier of the permission."),
36
+ link: OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema.nullable().optional(),
37
+ roles: z.array(z.string()).describe("The roles granted by this permission."),
38
+ grantedTo: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),
39
+ grantedToV2: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),
40
+ hasPassword: z.boolean().describe("Indicates whether the sharing link has a password.").nullable().optional(),
41
+ expirationDateTime: z.string().describe("The expiration date and time for the permission.").nullable().optional()
42
+ })
43
+ });
44
+ //#endregion
45
+ export { oneDriveUpdateDriveItemsPermissions };
46
+
47
+ //# sourceMappingURL=update-drive-items-permissions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-drive-items-permissions.mjs","names":[],"sources":["../../src/actions/update-drive-items-permissions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateDriveItemsPermissionsInput: z.ZodTypeAny = z.object({\n roles: z.array(z.string()).describe(\"Array of Microsoft Graph role strings to assign to the permission. Documented/common values include read, write, and owner for SharePoint/OneDrive for Business permission resources; tenant/resource-specific roles may also be accepted by Graph.\"),\n item_id: z.string().describe(\"The unique identifier of the drive item.\"),\n site_id: z.string().describe(\"The unique identifier of a SharePoint site. Use this if the item is in a SharePoint site's drive.\").optional(),\n user_id: z.string().describe(\"The unique identifier of a user. Use this if the item is in a specific user's drive (other than 'me').\").optional(),\n drive_id: z.string().describe(\"The unique identifier of the drive. Required if not using other identifiers like group_id, site_id, or user_id.\").optional(),\n group_id: z.string().describe(\"The unique identifier of a group. Use this if the item is in a group's drive.\").optional(),\n permission_id: z.string().describe(\"The unique identifier of the permission to update.\"),\n});\nconst OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of link (e.g., 'view', 'edit').\").nullable().optional(),\n webUrl: z.string().describe(\"The URL to access the item via the link.\").nullable().optional(),\n});\nconst OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the identity.\").nullable().optional(),\n loginName: z.string().describe(\"The login name of the site user.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the identity.\").nullable().optional(),\n});\nconst OneDriveUpdateDriveItemsPermissions_GrantedToSchema: z.ZodTypeAny = z.object({\n user: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n group: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n device: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n siteUser: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n application: OneDriveUpdateDriveItemsPermissions_GrantedToIdentifierSchema.nullable().optional(),\n});\nexport const OneDriveUpdateDriveItemsPermissionsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the permission.\"),\n link: OneDriveUpdateDriveItemsPermissions_PermissionLinkSchema.nullable().optional(),\n roles: z.array(z.string()).describe(\"The roles granted by this permission.\"),\n grantedTo: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),\n grantedToV2: OneDriveUpdateDriveItemsPermissions_GrantedToSchema.nullable().optional(),\n hasPassword: z.boolean().describe(\"Indicates whether the sharing link has a password.\").nullable().optional(),\n expirationDateTime: z.string().describe(\"The expiration date and time for the permission.\").nullable().optional(),\n});\n\nexport const oneDriveUpdateDriveItemsPermissions = action(\"ONE_DRIVE_UPDATE_DRIVE_ITEMS_PERMISSIONS\", {\n slug: \"one_drive-update-drive-items-permissions\",\n name: \"Update Drive Item Permissions\",\n description: \"Tool to update the roles of an existing permission on a OneDrive drive item. Use when you need to change the access level (read, write, owner) for a specific permission on a file or folder.\",\n input: OneDriveUpdateDriveItemsPermissionsInput,\n output: OneDriveUpdateDriveItemsPermissionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qPAAqP;CACzR,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CA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yDAAyD,SAAS,CAAC,CAAC,SAAS;EACnF,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;EAC3E,WAAW,oDAAoD,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,oDAAoD,SAAS,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAOU;AACV,CAAC"}
@@ -0,0 +1,54 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-file-content.ts
4
+ const OneDriveUpdateFileContentInput = zod.z.object({
5
+ file: zod.z.object({
6
+ name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
8
+ mimetype: zod.z.string().describe("The MIME type of the file")
9
+ }).describe("Optional file content to upload. When provided, the action creates an upload session, streams the file bytes in chunks, and returns the updated DriveItem (id/name/size/file). When omitted, the action only creates the upload session and returns its uploadUrl + session metadata, leaving subsequent PUT uploads to the caller (legacy behavior).").optional(),
10
+ item_id: zod.z.string().describe("The unique identifier of the DriveItem (file) to update."),
11
+ site_id: zod.z.string().describe("The unique identifier of the SharePoint site. If provided, uses /sites/{siteId}/drive. Mutually exclusive with drive_id, group_id, and user_id.").optional(),
12
+ user_id: zod.z.string().describe("The unique identifier of the user. If provided, uses /users/{userId}/drive. Mutually exclusive with drive_id, site_id, and group_id.").optional(),
13
+ drive_id: zod.z.string().describe("The unique identifier of the drive. If not provided, uses /me/drive. Mutually exclusive with site_id, group_id, and user_id.").optional(),
14
+ group_id: zod.z.string().describe("The unique identifier of the group. If provided, uses /groups/{groupId}/drive. Mutually exclusive with drive_id, site_id, and user_id.").optional(),
15
+ defer_commit: zod.z.boolean().describe("If true, the final file creation is deferred until an explicit completion request is made. Useful for very large files when the caller drives the upload themselves. Ignored when `file` is provided — the chunked upload always commits the session at the end.").optional(),
16
+ media_source: zod.z.object({ contentCategory: zod.z.string().describe("Enumeration value that indicates the media content category.").optional() }).describe("Media source information. Only on OneDrive for Business and SharePoint.").optional(),
17
+ if_match_etag: zod.z.string().describe("An ETag value to prevent lost updates. If provided, the update will only proceed if the current file's ETag matches this value. Returns 412 error if it doesn't match.").optional(),
18
+ file_system_info: zod.z.object({
19
+ createdDateTime: zod.z.string().describe("The UTC date and time the file was created on a client. ISO 8601 format.").optional(),
20
+ lastAccessedDateTime: zod.z.string().describe("The UTC date and time the file was last accessed. ISO 8601 format.").optional(),
21
+ lastModifiedDateTime: zod.z.string().describe("The UTC date and time the file was last modified on a client. ISO 8601 format.").optional()
22
+ }).describe("File system information on client.").optional(),
23
+ conflict_behavior: zod.z.enum([
24
+ "replace",
25
+ "fail",
26
+ "rename"
27
+ ]).default("replace").describe("How to handle conflicts when updating the file. 'replace' overwrites the existing content (default), 'fail' returns an error if conflict occurs, 'rename' creates a new file with a different name.").optional(),
28
+ drive_item_source: zod.z.object({
29
+ externalId: zod.z.string().describe("The external identifier for the drive item from the source.").optional(),
30
+ application: zod.z.string().describe("Enumeration value that indicates the source application.").optional()
31
+ }).describe("Information about the drive item source. Only on OneDrive for Business and SharePoint.").optional(),
32
+ if_none_match_etag: zod.z.string().describe("An ETag value to prevent updates if the item already exists. If provided and the ETag matches, returns 412 error. Used to detect if the item has changed.").optional()
33
+ });
34
+ const OneDriveUpdateFileContent_FileObjectSchema = zod.z.object({}).describe("Container for OneDrive-specific file metadata in the response (shape mirrors upload_file).");
35
+ const OneDriveUpdateFileContentOutput = zod.z.object({
36
+ id: zod.z.string().describe("ID of the updated DriveItem. Same as input item_id unless conflict_behavior caused a rename. Populated only when `file` was provided.").nullable().optional(),
37
+ file: OneDriveUpdateFileContent_FileObjectSchema.nullable().optional(),
38
+ name: zod.z.string().describe("Final name of the updated DriveItem. Populated only when `file` was provided.").nullable().optional(),
39
+ size: zod.z.number().int().describe("Final size of the file in bytes. Populated only when `file` was provided.").nullable().optional(),
40
+ uploadUrl: zod.z.string().describe("The resumable upload URL where file bytes should be uploaded using PUT requests. Returned only when `file` was not provided.").nullable().optional(),
41
+ expirationDateTime: zod.z.string().describe("The expiration time of the upload session. Returned only when `file` was not provided.").nullable().optional(),
42
+ nextExpectedRanges: zod.z.array(zod.z.string()).describe("Array of byte ranges still needed for the upload (e.g., ['26-']). Returned only when `file` was not provided.").nullable().optional()
43
+ });
44
+ const oneDriveUpdateFileContent = require_action.action("ONE_DRIVE_UPDATE_FILE_CONTENT", {
45
+ slug: "one_drive-update-file-content",
46
+ name: "Update File Content",
47
+ description: "Tool to update an existing file's content in OneDrive. When called without a `file` parameter, creates an upload session and returns its uploadUrl (legacy behavior — caller drives the PUT uploads). When called with a `file` (FileUploadable), the action streams the file's bytes in chunks via the upload session and returns the final updated DriveItem. The item's ID is preserved (existing share links remain valid) unless conflict_behavior=rename causes the server to create a new item.",
48
+ input: OneDriveUpdateFileContentInput,
49
+ output: OneDriveUpdateFileContentOutput
50
+ });
51
+ //#endregion
52
+ exports.oneDriveUpdateFileContent = oneDriveUpdateFileContent;
53
+
54
+ //# sourceMappingURL=update-file-content.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-file-content.cjs","names":["z","action"],"sources":["../../src/actions/update-file-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateFileContentInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Optional file content to upload. When provided, the action creates an upload session, streams the file bytes in chunks, and returns the updated DriveItem (id/name/size/file). When omitted, the action only creates the upload session and returns its uploadUrl + session metadata, leaving subsequent PUT uploads to the caller (legacy behavior).\").optional(),\n item_id: z.string().describe(\"The unique identifier of the DriveItem (file) to update.\"),\n site_id: z.string().describe(\"The unique identifier of the SharePoint site. If provided, uses /sites/{siteId}/drive. Mutually exclusive with drive_id, group_id, and user_id.\").optional(),\n user_id: z.string().describe(\"The unique identifier of the user. If provided, uses /users/{userId}/drive. Mutually exclusive with drive_id, site_id, and group_id.\").optional(),\n drive_id: z.string().describe(\"The unique identifier of the drive. If not provided, uses /me/drive. Mutually exclusive with site_id, group_id, and user_id.\").optional(),\n group_id: z.string().describe(\"The unique identifier of the group. If provided, uses /groups/{groupId}/drive. Mutually exclusive with drive_id, site_id, and user_id.\").optional(),\n defer_commit: z.boolean().describe(\"If true, the final file creation is deferred until an explicit completion request is made. Useful for very large files when the caller drives the upload themselves. Ignored when `file` is provided — the chunked upload always commits the session at the end.\").optional(),\n media_source: z.object({\n contentCategory: z.string().describe(\"Enumeration value that indicates the media content category.\").optional(),\n}).describe(\"Media source information. Only on OneDrive for Business and SharePoint.\").optional(),\n if_match_etag: z.string().describe(\"An ETag value to prevent lost updates. If provided, the update will only proceed if the current file's ETag matches this value. Returns 412 error if it doesn't match.\").optional(),\n file_system_info: z.object({\n createdDateTime: z.string().describe(\"The UTC date and time the file was created on a client. ISO 8601 format.\").optional(),\n lastAccessedDateTime: z.string().describe(\"The UTC date and time the file was last accessed. ISO 8601 format.\").optional(),\n lastModifiedDateTime: z.string().describe(\"The UTC date and time the file was last modified on a client. ISO 8601 format.\").optional(),\n}).describe(\"File system information on client.\").optional(),\n conflict_behavior: z.enum([\"replace\", \"fail\", \"rename\"]).default(\"replace\").describe(\"How to handle conflicts when updating the file. 'replace' overwrites the existing content (default), 'fail' returns an error if conflict occurs, 'rename' creates a new file with a different name.\").optional(),\n drive_item_source: z.object({\n externalId: z.string().describe(\"The external identifier for the drive item from the source.\").optional(),\n application: z.string().describe(\"Enumeration value that indicates the source application.\").optional(),\n}).describe(\"Information about the drive item source. Only on OneDrive for Business and SharePoint.\").optional(),\n if_none_match_etag: z.string().describe(\"An ETag value to prevent updates if the item already exists. If provided and the ETag matches, returns 412 error. Used to detect if the item has changed.\").optional(),\n});\nconst OneDriveUpdateFileContent_FileObjectSchema: z.ZodTypeAny = z.object({}).describe(\"Container for OneDrive-specific file metadata in the response (shape mirrors upload_file).\");\nexport const OneDriveUpdateFileContentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the updated DriveItem. Same as input item_id unless conflict_behavior caused a rename. Populated only when `file` was provided.\").nullable().optional(),\n file: OneDriveUpdateFileContent_FileObjectSchema.nullable().optional(),\n name: z.string().describe(\"Final name of the updated DriveItem. Populated only when `file` was provided.\").nullable().optional(),\n size: z.number().int().describe(\"Final size of the file in bytes. Populated only when `file` was provided.\").nullable().optional(),\n uploadUrl: z.string().describe(\"The resumable upload URL where file bytes should be uploaded using PUT requests. Returned only when `file` was not provided.\").nullable().optional(),\n expirationDateTime: z.string().describe(\"The expiration time of the upload session. Returned only when `file` was not provided.\").nullable().optional(),\n nextExpectedRanges: z.array(z.string()).describe(\"Array of byte ranges still needed for the upload (e.g., ['26-']). Returned only when `file` was not provided.\").nullable().optional(),\n});\n\nexport const oneDriveUpdateFileContent = action(\"ONE_DRIVE_UPDATE_FILE_CONTENT\", {\n slug: \"one_drive-update-file-content\",\n name: \"Update File Content\",\n description: \"Tool to update an existing file's content in OneDrive. When called without a `file` parameter, creates an upload session and returns its uploadUrl (legacy behavior — caller drives the PUT uploads). When called with a `file` (FileUploadable), the action streams the file's bytes in chunks via the upload session and returns the final updated DriveItem. The item's ID is preserved (existing share links remain valid) unless conflict_behavior=rename causes the server to create a new item.\",\n input: OneDriveUpdateFileContentInput,\n output: OneDriveUpdateFileContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA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O,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxL,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-file-content.d.ts
4
+ declare const OneDriveUpdateFileContentInput: z.ZodTypeAny;
5
+ declare const OneDriveUpdateFileContentOutput: z.ZodTypeAny;
6
+ declare const oneDriveUpdateFileContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { oneDriveUpdateFileContent };
9
+ //# sourceMappingURL=update-file-content.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-file-content.d.cts","names":[],"sources":["../../src/actions/update-file-content.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UA2B7C;AAAA,cAEW,+BAAA,EAAiC,CAAA,CAAE,UAQ9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-file-content.d.ts
4
+ declare const OneDriveUpdateFileContentInput: z.ZodTypeAny;
5
+ declare const OneDriveUpdateFileContentOutput: z.ZodTypeAny;
6
+ declare const oneDriveUpdateFileContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { oneDriveUpdateFileContent };
9
+ //# sourceMappingURL=update-file-content.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-file-content.d.mts","names":[],"sources":["../../src/actions/update-file-content.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UA2B7C;AAAA,cAEW,+BAAA,EAAiC,CAAA,CAAE,UAQ9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,53 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-file-content.ts
4
+ const OneDriveUpdateFileContentInput = z.object({
5
+ file: z.object({
6
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
8
+ mimetype: z.string().describe("The MIME type of the file")
9
+ }).describe("Optional file content to upload. When provided, the action creates an upload session, streams the file bytes in chunks, and returns the updated DriveItem (id/name/size/file). When omitted, the action only creates the upload session and returns its uploadUrl + session metadata, leaving subsequent PUT uploads to the caller (legacy behavior).").optional(),
10
+ item_id: z.string().describe("The unique identifier of the DriveItem (file) to update."),
11
+ site_id: z.string().describe("The unique identifier of the SharePoint site. If provided, uses /sites/{siteId}/drive. Mutually exclusive with drive_id, group_id, and user_id.").optional(),
12
+ user_id: z.string().describe("The unique identifier of the user. If provided, uses /users/{userId}/drive. Mutually exclusive with drive_id, site_id, and group_id.").optional(),
13
+ drive_id: z.string().describe("The unique identifier of the drive. If not provided, uses /me/drive. Mutually exclusive with site_id, group_id, and user_id.").optional(),
14
+ group_id: z.string().describe("The unique identifier of the group. If provided, uses /groups/{groupId}/drive. Mutually exclusive with drive_id, site_id, and user_id.").optional(),
15
+ defer_commit: z.boolean().describe("If true, the final file creation is deferred until an explicit completion request is made. Useful for very large files when the caller drives the upload themselves. Ignored when `file` is provided — the chunked upload always commits the session at the end.").optional(),
16
+ media_source: z.object({ contentCategory: z.string().describe("Enumeration value that indicates the media content category.").optional() }).describe("Media source information. Only on OneDrive for Business and SharePoint.").optional(),
17
+ if_match_etag: z.string().describe("An ETag value to prevent lost updates. If provided, the update will only proceed if the current file's ETag matches this value. Returns 412 error if it doesn't match.").optional(),
18
+ file_system_info: z.object({
19
+ createdDateTime: z.string().describe("The UTC date and time the file was created on a client. ISO 8601 format.").optional(),
20
+ lastAccessedDateTime: z.string().describe("The UTC date and time the file was last accessed. ISO 8601 format.").optional(),
21
+ lastModifiedDateTime: z.string().describe("The UTC date and time the file was last modified on a client. ISO 8601 format.").optional()
22
+ }).describe("File system information on client.").optional(),
23
+ conflict_behavior: z.enum([
24
+ "replace",
25
+ "fail",
26
+ "rename"
27
+ ]).default("replace").describe("How to handle conflicts when updating the file. 'replace' overwrites the existing content (default), 'fail' returns an error if conflict occurs, 'rename' creates a new file with a different name.").optional(),
28
+ drive_item_source: z.object({
29
+ externalId: z.string().describe("The external identifier for the drive item from the source.").optional(),
30
+ application: z.string().describe("Enumeration value that indicates the source application.").optional()
31
+ }).describe("Information about the drive item source. Only on OneDrive for Business and SharePoint.").optional(),
32
+ if_none_match_etag: z.string().describe("An ETag value to prevent updates if the item already exists. If provided and the ETag matches, returns 412 error. Used to detect if the item has changed.").optional()
33
+ });
34
+ const OneDriveUpdateFileContent_FileObjectSchema = z.object({}).describe("Container for OneDrive-specific file metadata in the response (shape mirrors upload_file).");
35
+ const oneDriveUpdateFileContent = action("ONE_DRIVE_UPDATE_FILE_CONTENT", {
36
+ slug: "one_drive-update-file-content",
37
+ name: "Update File Content",
38
+ description: "Tool to update an existing file's content in OneDrive. When called without a `file` parameter, creates an upload session and returns its uploadUrl (legacy behavior — caller drives the PUT uploads). When called with a `file` (FileUploadable), the action streams the file's bytes in chunks via the upload session and returns the final updated DriveItem. The item's ID is preserved (existing share links remain valid) unless conflict_behavior=rename causes the server to create a new item.",
39
+ input: OneDriveUpdateFileContentInput,
40
+ output: z.object({
41
+ id: z.string().describe("ID of the updated DriveItem. Same as input item_id unless conflict_behavior caused a rename. Populated only when `file` was provided.").nullable().optional(),
42
+ file: OneDriveUpdateFileContent_FileObjectSchema.nullable().optional(),
43
+ name: z.string().describe("Final name of the updated DriveItem. Populated only when `file` was provided.").nullable().optional(),
44
+ size: z.number().int().describe("Final size of the file in bytes. Populated only when `file` was provided.").nullable().optional(),
45
+ uploadUrl: z.string().describe("The resumable upload URL where file bytes should be uploaded using PUT requests. Returned only when `file` was not provided.").nullable().optional(),
46
+ expirationDateTime: z.string().describe("The expiration time of the upload session. Returned only when `file` was not provided.").nullable().optional(),
47
+ nextExpectedRanges: z.array(z.string()).describe("Array of byte ranges still needed for the upload (e.g., ['26-']). Returned only when `file` was not provided.").nullable().optional()
48
+ })
49
+ });
50
+ //#endregion
51
+ export { oneDriveUpdateFileContent };
52
+
53
+ //# sourceMappingURL=update-file-content.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-file-content.mjs","names":[],"sources":["../../src/actions/update-file-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateFileContentInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Optional file content to upload. When provided, the action creates an upload session, streams the file bytes in chunks, and returns the updated DriveItem (id/name/size/file). When omitted, the action only creates the upload session and returns its uploadUrl + session metadata, leaving subsequent PUT uploads to the caller (legacy behavior).\").optional(),\n item_id: z.string().describe(\"The unique identifier of the DriveItem (file) to update.\"),\n site_id: z.string().describe(\"The unique identifier of the SharePoint site. If provided, uses /sites/{siteId}/drive. Mutually exclusive with drive_id, group_id, and user_id.\").optional(),\n user_id: z.string().describe(\"The unique identifier of the user. If provided, uses /users/{userId}/drive. Mutually exclusive with drive_id, site_id, and group_id.\").optional(),\n drive_id: z.string().describe(\"The unique identifier of the drive. If not provided, uses /me/drive. Mutually exclusive with site_id, group_id, and user_id.\").optional(),\n group_id: z.string().describe(\"The unique identifier of the group. If provided, uses /groups/{groupId}/drive. Mutually exclusive with drive_id, site_id, and user_id.\").optional(),\n defer_commit: z.boolean().describe(\"If true, the final file creation is deferred until an explicit completion request is made. Useful for very large files when the caller drives the upload themselves. Ignored when `file` is provided — the chunked upload always commits the session at the end.\").optional(),\n media_source: z.object({\n contentCategory: z.string().describe(\"Enumeration value that indicates the media content category.\").optional(),\n}).describe(\"Media source information. Only on OneDrive for Business and SharePoint.\").optional(),\n if_match_etag: z.string().describe(\"An ETag value to prevent lost updates. If provided, the update will only proceed if the current file's ETag matches this value. Returns 412 error if it doesn't match.\").optional(),\n file_system_info: z.object({\n createdDateTime: z.string().describe(\"The UTC date and time the file was created on a client. ISO 8601 format.\").optional(),\n lastAccessedDateTime: z.string().describe(\"The UTC date and time the file was last accessed. ISO 8601 format.\").optional(),\n lastModifiedDateTime: z.string().describe(\"The UTC date and time the file was last modified on a client. ISO 8601 format.\").optional(),\n}).describe(\"File system information on client.\").optional(),\n conflict_behavior: z.enum([\"replace\", \"fail\", \"rename\"]).default(\"replace\").describe(\"How to handle conflicts when updating the file. 'replace' overwrites the existing content (default), 'fail' returns an error if conflict occurs, 'rename' creates a new file with a different name.\").optional(),\n drive_item_source: z.object({\n externalId: z.string().describe(\"The external identifier for the drive item from the source.\").optional(),\n application: z.string().describe(\"Enumeration value that indicates the source application.\").optional(),\n}).describe(\"Information about the drive item source. Only on OneDrive for Business and SharePoint.\").optional(),\n if_none_match_etag: z.string().describe(\"An ETag value to prevent updates if the item already exists. If provided and the ETag matches, returns 412 error. Used to detect if the item has changed.\").optional(),\n});\nconst OneDriveUpdateFileContent_FileObjectSchema: z.ZodTypeAny = z.object({}).describe(\"Container for OneDrive-specific file metadata in the response (shape mirrors upload_file).\");\nexport const OneDriveUpdateFileContentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the updated DriveItem. Same as input item_id unless conflict_behavior caused a rename. Populated only when `file` was provided.\").nullable().optional(),\n file: OneDriveUpdateFileContent_FileObjectSchema.nullable().optional(),\n name: z.string().describe(\"Final name of the updated DriveItem. Populated only when `file` was provided.\").nullable().optional(),\n size: z.number().int().describe(\"Final size of the file in bytes. Populated only when `file` was provided.\").nullable().optional(),\n uploadUrl: z.string().describe(\"The resumable upload URL where file bytes should be uploaded using PUT requests. Returned only when `file` was not provided.\").nullable().optional(),\n expirationDateTime: z.string().describe(\"The expiration time of the upload session. Returned only when `file` was not provided.\").nullable().optional(),\n nextExpectedRanges: z.array(z.string()).describe(\"Array of byte ranges still needed for the upload (e.g., ['26-']). Returned only when `file` was not provided.\").nullable().optional(),\n});\n\nexport const oneDriveUpdateFileContent = action(\"ONE_DRIVE_UPDATE_FILE_CONTENT\", {\n slug: \"one_drive-update-file-content\",\n name: \"Update File Content\",\n description: \"Tool to update an existing file's content in OneDrive. When called without a `file` parameter, creates an upload session and returns its uploadUrl (legacy behavior — caller drives the PUT uploads). When called with a `file` (FileUploadable), the action streams the file's bytes in chunks via the upload session and returns the final updated DriveItem. The item's ID is preserved (existing share links remain valid) unless conflict_behavior=rename causes the server to create a new item.\",\n input: OneDriveUpdateFileContentInput,\n output: OneDriveUpdateFileContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,uVAAuV,CAAC,CAAC,SAAS;CAC5W,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACzL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS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C,CAAC,CAAC,SAAS,4FAA4F;AAWnL,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf2D,EAAE,OAAO;EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrL,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnL,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxL,CAOU;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-sharepoint-item-permission.ts
4
+ const OneDriveUpdateSharepointItemPermissionInput = zod.z.object({
5
+ roles: zod.z.array(zod.z.string()).describe("Roles to set on the permission, such as read or write."),
6
+ item_id: zod.z.string().describe("Optional SharePoint list item ID. Provide this to update a list-item permission; omit it to update a list-level permission.").optional(),
7
+ list_id: zod.z.string().describe("The unique Microsoft Graph ID of the SharePoint list."),
8
+ site_id: zod.z.string().describe("The Microsoft Graph SharePoint site ID in composite format, usually 'hostname,site-collection-id,web-id'."),
9
+ permission_id: zod.z.string().describe("The Microsoft Graph permission ID to update.")
10
+ });
11
+ const OneDriveUpdateSharepointItemPermissionOutput = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Microsoft Graph response payload.") }).passthrough();
12
+ const oneDriveUpdateSharepointItemPermission = require_action.action("ONE_DRIVE_UPDATE_SHAREPOINT_ITEM_PERMISSION", {
13
+ slug: "one_drive-update-sharepoint-item-permission",
14
+ name: "Update SharePoint Item Permission",
15
+ description: "Update an application permission on a SharePoint list or list item using Microsoft Graph beta.",
16
+ input: OneDriveUpdateSharepointItemPermissionInput,
17
+ output: OneDriveUpdateSharepointItemPermissionOutput
18
+ });
19
+ //#endregion
20
+ exports.oneDriveUpdateSharepointItemPermission = oneDriveUpdateSharepointItemPermission;
21
+
22
+ //# sourceMappingURL=update-sharepoint-item-permission.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-sharepoint-item-permission.cjs","names":["z","action"],"sources":["../../src/actions/update-sharepoint-item-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OneDriveUpdateSharepointItemPermissionInput: z.ZodTypeAny = z.object({\n roles: z.array(z.string()).describe(\"Roles to set on the permission, such as read or write.\"),\n item_id: z.string().describe(\"Optional SharePoint list item ID. Provide this to update a list-item permission; omit it to update a list-level permission.\").optional(),\n list_id: z.string().describe(\"The unique Microsoft Graph ID of the SharePoint list.\"),\n site_id: z.string().describe(\"The Microsoft Graph SharePoint site ID in composite format, usually 'hostname,site-collection-id,web-id'.\"),\n permission_id: z.string().describe(\"The Microsoft Graph permission ID to update.\"),\n});\nexport const OneDriveUpdateSharepointItemPermissionOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Microsoft Graph response payload.\"),\n}).passthrough();\n\nexport const oneDriveUpdateSharepointItemPermission = action(\"ONE_DRIVE_UPDATE_SHAREPOINT_ITEM_PERMISSION\", {\n slug: \"one_drive-update-sharepoint-item-permission\",\n name: \"Update SharePoint Item Permission\",\n description: \"Update an application permission on a SharePoint list or list item using Microsoft Graph beta.\",\n input: OneDriveUpdateSharepointItemPermissionInput,\n output: OneDriveUpdateSharepointItemPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACrK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CACxI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AACnF,CAAC;AACD,MAAa,+CAA6DA,IAAAA,EAAE,OAAO,EACjF,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,EACtF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yCAAyCC,eAAAA,OAAO,+CAA+C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}