@keystrokehq/notion 0.1.0 → 0.1.2

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 (362) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/add-multiple-page-content.cjs +8 -8
  5. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.cts +88 -3
  7. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.d.mts +88 -3
  9. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  10. package/dist/actions/add-multiple-page-content.mjs +8 -8
  11. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  12. package/dist/actions/append-code-blocks.cjs +44 -44
  13. package/dist/actions/append-code-blocks.cjs.map +1 -1
  14. package/dist/actions/append-code-blocks.d.cts +849 -3
  15. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  16. package/dist/actions/append-code-blocks.d.mts +849 -3
  17. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  18. package/dist/actions/append-code-blocks.mjs +44 -44
  19. package/dist/actions/append-code-blocks.mjs.map +1 -1
  20. package/dist/actions/append-layout-blocks.cjs +44 -44
  21. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  22. package/dist/actions/append-layout-blocks.d.cts +642 -3
  23. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  24. package/dist/actions/append-layout-blocks.d.mts +642 -3
  25. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  26. package/dist/actions/append-layout-blocks.mjs +44 -44
  27. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  28. package/dist/actions/append-media-blocks.cjs +44 -44
  29. package/dist/actions/append-media-blocks.cjs.map +1 -1
  30. package/dist/actions/append-media-blocks.d.cts +996 -3
  31. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  32. package/dist/actions/append-media-blocks.d.mts +996 -3
  33. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  34. package/dist/actions/append-media-blocks.mjs +44 -44
  35. package/dist/actions/append-media-blocks.mjs.map +1 -1
  36. package/dist/actions/append-table-blocks.cjs +44 -44
  37. package/dist/actions/append-table-blocks.cjs.map +1 -1
  38. package/dist/actions/append-table-blocks.d.cts +624 -3
  39. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  40. package/dist/actions/append-table-blocks.d.mts +624 -3
  41. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  42. package/dist/actions/append-table-blocks.mjs +44 -44
  43. package/dist/actions/append-table-blocks.mjs.map +1 -1
  44. package/dist/actions/append-task-blocks.cjs +44 -44
  45. package/dist/actions/append-task-blocks.cjs.map +1 -1
  46. package/dist/actions/append-task-blocks.d.cts +826 -3
  47. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  48. package/dist/actions/append-task-blocks.d.mts +826 -3
  49. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  50. package/dist/actions/append-task-blocks.mjs +44 -44
  51. package/dist/actions/append-task-blocks.mjs.map +1 -1
  52. package/dist/actions/append-text-blocks.cjs +44 -44
  53. package/dist/actions/append-text-blocks.cjs.map +1 -1
  54. package/dist/actions/append-text-blocks.d.cts +1080 -3
  55. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  56. package/dist/actions/append-text-blocks.d.mts +1080 -3
  57. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  58. package/dist/actions/append-text-blocks.mjs +44 -44
  59. package/dist/actions/append-text-blocks.mjs.map +1 -1
  60. package/dist/actions/archive-notion-page.cjs +27 -27
  61. package/dist/actions/archive-notion-page.cjs.map +1 -1
  62. package/dist/actions/archive-notion-page.d.cts +78 -3
  63. package/dist/actions/archive-notion-page.d.cts.map +1 -1
  64. package/dist/actions/archive-notion-page.d.mts +78 -3
  65. package/dist/actions/archive-notion-page.d.mts.map +1 -1
  66. package/dist/actions/archive-notion-page.mjs +27 -27
  67. package/dist/actions/archive-notion-page.mjs.map +1 -1
  68. package/dist/actions/create-comment.cjs.map +1 -1
  69. package/dist/actions/create-comment.d.cts +46 -3
  70. package/dist/actions/create-comment.d.cts.map +1 -1
  71. package/dist/actions/create-comment.d.mts +46 -3
  72. package/dist/actions/create-comment.d.mts.map +1 -1
  73. package/dist/actions/create-comment.mjs.map +1 -1
  74. package/dist/actions/create-database.cjs +31 -31
  75. package/dist/actions/create-database.cjs.map +1 -1
  76. package/dist/actions/create-database.d.cts +139 -3
  77. package/dist/actions/create-database.d.cts.map +1 -1
  78. package/dist/actions/create-database.d.mts +139 -3
  79. package/dist/actions/create-database.d.mts.map +1 -1
  80. package/dist/actions/create-database.mjs +31 -31
  81. package/dist/actions/create-database.mjs.map +1 -1
  82. package/dist/actions/create-file-upload.cjs +8 -8
  83. package/dist/actions/create-file-upload.cjs.map +1 -1
  84. package/dist/actions/create-file-upload.d.cts +38 -3
  85. package/dist/actions/create-file-upload.d.cts.map +1 -1
  86. package/dist/actions/create-file-upload.d.mts +38 -3
  87. package/dist/actions/create-file-upload.d.mts.map +1 -1
  88. package/dist/actions/create-file-upload.mjs +8 -8
  89. package/dist/actions/create-file-upload.mjs.map +1 -1
  90. package/dist/actions/create-notion-page.cjs +29 -29
  91. package/dist/actions/create-notion-page.cjs.map +1 -1
  92. package/dist/actions/create-notion-page.d.cts +83 -3
  93. package/dist/actions/create-notion-page.d.cts.map +1 -1
  94. package/dist/actions/create-notion-page.d.mts +83 -3
  95. package/dist/actions/create-notion-page.d.mts.map +1 -1
  96. package/dist/actions/create-notion-page.mjs +29 -29
  97. package/dist/actions/create-notion-page.mjs.map +1 -1
  98. package/dist/actions/delete-block.cjs +53 -53
  99. package/dist/actions/delete-block.cjs.map +1 -1
  100. package/dist/actions/delete-block.d.cts +2181 -3
  101. package/dist/actions/delete-block.d.cts.map +1 -1
  102. package/dist/actions/delete-block.d.mts +2181 -3
  103. package/dist/actions/delete-block.d.mts.map +1 -1
  104. package/dist/actions/delete-block.mjs +53 -53
  105. package/dist/actions/delete-block.mjs.map +1 -1
  106. package/dist/actions/duplicate-page.cjs +31 -31
  107. package/dist/actions/duplicate-page.cjs.map +1 -1
  108. package/dist/actions/duplicate-page.d.cts +90 -3
  109. package/dist/actions/duplicate-page.d.cts.map +1 -1
  110. package/dist/actions/duplicate-page.d.mts +90 -3
  111. package/dist/actions/duplicate-page.d.mts.map +1 -1
  112. package/dist/actions/duplicate-page.mjs +31 -31
  113. package/dist/actions/duplicate-page.mjs.map +1 -1
  114. package/dist/actions/fetch-all-block-contents.cjs +45 -45
  115. package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
  116. package/dist/actions/fetch-all-block-contents.d.cts +38 -3
  117. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
  118. package/dist/actions/fetch-all-block-contents.d.mts +38 -3
  119. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
  120. package/dist/actions/fetch-all-block-contents.mjs +45 -45
  121. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  122. package/dist/actions/fetch-block-contents.cjs +57 -57
  123. package/dist/actions/fetch-block-contents.cjs.map +1 -1
  124. package/dist/actions/fetch-block-contents.d.cts +687 -3
  125. package/dist/actions/fetch-block-contents.d.cts.map +1 -1
  126. package/dist/actions/fetch-block-contents.d.mts +687 -3
  127. package/dist/actions/fetch-block-contents.d.mts.map +1 -1
  128. package/dist/actions/fetch-block-contents.mjs +57 -57
  129. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  130. package/dist/actions/fetch-block-metadata.cjs +51 -51
  131. package/dist/actions/fetch-block-metadata.cjs.map +1 -1
  132. package/dist/actions/fetch-block-metadata.d.cts +2103 -3
  133. package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
  134. package/dist/actions/fetch-block-metadata.d.mts +2103 -3
  135. package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
  136. package/dist/actions/fetch-block-metadata.mjs +51 -51
  137. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  138. package/dist/actions/fetch-comments.cjs +37 -37
  139. package/dist/actions/fetch-comments.cjs.map +1 -1
  140. package/dist/actions/fetch-comments.d.cts +148 -3
  141. package/dist/actions/fetch-comments.d.cts.map +1 -1
  142. package/dist/actions/fetch-comments.d.mts +148 -3
  143. package/dist/actions/fetch-comments.d.mts.map +1 -1
  144. package/dist/actions/fetch-comments.mjs +37 -37
  145. package/dist/actions/fetch-comments.mjs.map +1 -1
  146. package/dist/actions/fetch-data.cjs +51 -51
  147. package/dist/actions/fetch-data.cjs.map +1 -1
  148. package/dist/actions/fetch-data.d.cts +594 -3
  149. package/dist/actions/fetch-data.d.cts.map +1 -1
  150. package/dist/actions/fetch-data.d.mts +594 -3
  151. package/dist/actions/fetch-data.d.mts.map +1 -1
  152. package/dist/actions/fetch-data.mjs +51 -51
  153. package/dist/actions/fetch-data.mjs.map +1 -1
  154. package/dist/actions/fetch-database.cjs +27 -27
  155. package/dist/actions/fetch-database.cjs.map +1 -1
  156. package/dist/actions/fetch-database.d.cts +89 -3
  157. package/dist/actions/fetch-database.d.cts.map +1 -1
  158. package/dist/actions/fetch-database.d.mts +89 -3
  159. package/dist/actions/fetch-database.d.mts.map +1 -1
  160. package/dist/actions/fetch-database.mjs +27 -27
  161. package/dist/actions/fetch-database.mjs.map +1 -1
  162. package/dist/actions/fetch-row.cjs +35 -35
  163. package/dist/actions/fetch-row.cjs.map +1 -1
  164. package/dist/actions/fetch-row.d.cts +151 -3
  165. package/dist/actions/fetch-row.d.cts.map +1 -1
  166. package/dist/actions/fetch-row.d.mts +151 -3
  167. package/dist/actions/fetch-row.d.mts.map +1 -1
  168. package/dist/actions/fetch-row.mjs +35 -35
  169. package/dist/actions/fetch-row.mjs.map +1 -1
  170. package/dist/actions/get-about-user.cjs +7 -7
  171. package/dist/actions/get-about-user.cjs.map +1 -1
  172. package/dist/actions/get-about-user.d.cts +44 -3
  173. package/dist/actions/get-about-user.d.cts.map +1 -1
  174. package/dist/actions/get-about-user.d.mts +44 -3
  175. package/dist/actions/get-about-user.d.mts.map +1 -1
  176. package/dist/actions/get-about-user.mjs +7 -7
  177. package/dist/actions/get-about-user.mjs.map +1 -1
  178. package/dist/actions/get-page-markdown.cjs +4 -4
  179. package/dist/actions/get-page-markdown.cjs.map +1 -1
  180. package/dist/actions/get-page-markdown.d.cts +15 -3
  181. package/dist/actions/get-page-markdown.d.cts.map +1 -1
  182. package/dist/actions/get-page-markdown.d.mts +15 -3
  183. package/dist/actions/get-page-markdown.d.mts.map +1 -1
  184. package/dist/actions/get-page-markdown.mjs +4 -4
  185. package/dist/actions/get-page-markdown.mjs.map +1 -1
  186. package/dist/actions/get-page-property-action.cjs.map +1 -1
  187. package/dist/actions/get-page-property-action.d.cts +13 -3
  188. package/dist/actions/get-page-property-action.d.cts.map +1 -1
  189. package/dist/actions/get-page-property-action.d.mts +13 -3
  190. package/dist/actions/get-page-property-action.d.mts.map +1 -1
  191. package/dist/actions/get-page-property-action.mjs.map +1 -1
  192. package/dist/actions/insert-row-database.cjs +30 -30
  193. package/dist/actions/insert-row-database.cjs.map +1 -1
  194. package/dist/actions/insert-row-database.d.cts +163 -3
  195. package/dist/actions/insert-row-database.d.cts.map +1 -1
  196. package/dist/actions/insert-row-database.d.mts +163 -3
  197. package/dist/actions/insert-row-database.d.mts.map +1 -1
  198. package/dist/actions/insert-row-database.mjs +30 -30
  199. package/dist/actions/insert-row-database.mjs.map +1 -1
  200. package/dist/actions/insert-row-from-nl.cjs +1 -1
  201. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  202. package/dist/actions/insert-row-from-nl.d.cts +19 -3
  203. package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
  204. package/dist/actions/insert-row-from-nl.d.mts +19 -3
  205. package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
  206. package/dist/actions/insert-row-from-nl.mjs +1 -1
  207. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  208. package/dist/actions/list-data-source-templates.cjs +4 -4
  209. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  210. package/dist/actions/list-data-source-templates.d.cts +19 -3
  211. package/dist/actions/list-data-source-templates.d.cts.map +1 -1
  212. package/dist/actions/list-data-source-templates.d.mts +19 -3
  213. package/dist/actions/list-data-source-templates.d.mts.map +1 -1
  214. package/dist/actions/list-data-source-templates.mjs +4 -4
  215. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  216. package/dist/actions/list-file-uploads.cjs +7 -7
  217. package/dist/actions/list-file-uploads.cjs.map +1 -1
  218. package/dist/actions/list-file-uploads.d.cts +32 -3
  219. package/dist/actions/list-file-uploads.d.cts.map +1 -1
  220. package/dist/actions/list-file-uploads.d.mts +32 -3
  221. package/dist/actions/list-file-uploads.d.mts.map +1 -1
  222. package/dist/actions/list-file-uploads.mjs +7 -7
  223. package/dist/actions/list-file-uploads.mjs.map +1 -1
  224. package/dist/actions/list-users.cjs +6 -6
  225. package/dist/actions/list-users.cjs.map +1 -1
  226. package/dist/actions/list-users.d.cts +58 -3
  227. package/dist/actions/list-users.d.cts.map +1 -1
  228. package/dist/actions/list-users.d.mts +58 -3
  229. package/dist/actions/list-users.d.mts.map +1 -1
  230. package/dist/actions/list-users.mjs +6 -6
  231. package/dist/actions/list-users.mjs.map +1 -1
  232. package/dist/actions/move-page.cjs +27 -27
  233. package/dist/actions/move-page.cjs.map +1 -1
  234. package/dist/actions/move-page.d.cts +90 -3
  235. package/dist/actions/move-page.d.cts.map +1 -1
  236. package/dist/actions/move-page.d.mts +90 -3
  237. package/dist/actions/move-page.d.mts.map +1 -1
  238. package/dist/actions/move-page.mjs +27 -27
  239. package/dist/actions/move-page.mjs.map +1 -1
  240. package/dist/actions/query-data-source.cjs +18 -18
  241. package/dist/actions/query-data-source.cjs.map +1 -1
  242. package/dist/actions/query-data-source.d.cts +159 -3
  243. package/dist/actions/query-data-source.d.cts.map +1 -1
  244. package/dist/actions/query-data-source.d.mts +159 -3
  245. package/dist/actions/query-data-source.d.mts.map +1 -1
  246. package/dist/actions/query-data-source.mjs +18 -18
  247. package/dist/actions/query-data-source.mjs.map +1 -1
  248. package/dist/actions/query-database-with-filter.cjs +49 -49
  249. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  250. package/dist/actions/query-database-with-filter.d.cts +214 -3
  251. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  252. package/dist/actions/query-database-with-filter.d.mts +214 -3
  253. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  254. package/dist/actions/query-database-with-filter.mjs +49 -49
  255. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  256. package/dist/actions/query-database.cjs +38 -38
  257. package/dist/actions/query-database.cjs.map +1 -1
  258. package/dist/actions/query-database.d.cts +208 -3
  259. package/dist/actions/query-database.d.cts.map +1 -1
  260. package/dist/actions/query-database.d.mts +208 -3
  261. package/dist/actions/query-database.d.mts.map +1 -1
  262. package/dist/actions/query-database.mjs +38 -38
  263. package/dist/actions/query-database.mjs.map +1 -1
  264. package/dist/actions/replace-page-content.cjs +3 -3
  265. package/dist/actions/replace-page-content.cjs.map +1 -1
  266. package/dist/actions/replace-page-content.d.cts +1706 -3
  267. package/dist/actions/replace-page-content.d.cts.map +1 -1
  268. package/dist/actions/replace-page-content.d.mts +1706 -3
  269. package/dist/actions/replace-page-content.d.mts.map +1 -1
  270. package/dist/actions/replace-page-content.mjs +3 -3
  271. package/dist/actions/replace-page-content.mjs.map +1 -1
  272. package/dist/actions/retrieve-comment.cjs.map +1 -1
  273. package/dist/actions/retrieve-comment.d.cts +7 -3
  274. package/dist/actions/retrieve-comment.d.cts.map +1 -1
  275. package/dist/actions/retrieve-comment.d.mts +7 -3
  276. package/dist/actions/retrieve-comment.d.mts.map +1 -1
  277. package/dist/actions/retrieve-comment.mjs.map +1 -1
  278. package/dist/actions/retrieve-database-property.cjs +19 -19
  279. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  280. package/dist/actions/retrieve-database-property.d.cts +78 -3
  281. package/dist/actions/retrieve-database-property.d.cts.map +1 -1
  282. package/dist/actions/retrieve-database-property.d.mts +78 -3
  283. package/dist/actions/retrieve-database-property.d.mts.map +1 -1
  284. package/dist/actions/retrieve-database-property.mjs +19 -19
  285. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  286. package/dist/actions/retrieve-file-upload.cjs +5 -5
  287. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  288. package/dist/actions/retrieve-file-upload.d.cts +25 -3
  289. package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
  290. package/dist/actions/retrieve-file-upload.d.mts +25 -3
  291. package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
  292. package/dist/actions/retrieve-file-upload.mjs +5 -5
  293. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  294. package/dist/actions/retrieve-page.cjs +34 -34
  295. package/dist/actions/retrieve-page.cjs.map +1 -1
  296. package/dist/actions/retrieve-page.d.cts +139 -3
  297. package/dist/actions/retrieve-page.d.cts.map +1 -1
  298. package/dist/actions/retrieve-page.d.mts +139 -3
  299. package/dist/actions/retrieve-page.d.mts.map +1 -1
  300. package/dist/actions/retrieve-page.mjs +34 -34
  301. package/dist/actions/retrieve-page.mjs.map +1 -1
  302. package/dist/actions/search-notion-page.cjs +54 -54
  303. package/dist/actions/search-notion-page.cjs.map +1 -1
  304. package/dist/actions/search-notion-page.d.cts +751 -3
  305. package/dist/actions/search-notion-page.d.cts.map +1 -1
  306. package/dist/actions/search-notion-page.d.mts +751 -3
  307. package/dist/actions/search-notion-page.d.mts.map +1 -1
  308. package/dist/actions/search-notion-page.mjs +54 -54
  309. package/dist/actions/search-notion-page.mjs.map +1 -1
  310. package/dist/actions/send-file-upload.cjs +7 -7
  311. package/dist/actions/send-file-upload.cjs.map +1 -1
  312. package/dist/actions/send-file-upload.d.cts +33 -3
  313. package/dist/actions/send-file-upload.d.cts.map +1 -1
  314. package/dist/actions/send-file-upload.d.mts +33 -3
  315. package/dist/actions/send-file-upload.d.mts.map +1 -1
  316. package/dist/actions/send-file-upload.mjs +7 -7
  317. package/dist/actions/send-file-upload.mjs.map +1 -1
  318. package/dist/actions/update-block.cjs +55 -55
  319. package/dist/actions/update-block.cjs.map +1 -1
  320. package/dist/actions/update-block.d.cts +564 -3
  321. package/dist/actions/update-block.d.cts.map +1 -1
  322. package/dist/actions/update-block.d.mts +564 -3
  323. package/dist/actions/update-block.d.mts.map +1 -1
  324. package/dist/actions/update-block.mjs +55 -55
  325. package/dist/actions/update-block.mjs.map +1 -1
  326. package/dist/actions/update-page.cjs +32 -32
  327. package/dist/actions/update-page.cjs.map +1 -1
  328. package/dist/actions/update-page.d.cts +103 -3
  329. package/dist/actions/update-page.d.cts.map +1 -1
  330. package/dist/actions/update-page.d.mts +103 -3
  331. package/dist/actions/update-page.d.mts.map +1 -1
  332. package/dist/actions/update-page.mjs +32 -32
  333. package/dist/actions/update-page.mjs.map +1 -1
  334. package/dist/actions/update-row-database.cjs +31 -31
  335. package/dist/actions/update-row-database.cjs.map +1 -1
  336. package/dist/actions/update-row-database.d.cts +126 -3
  337. package/dist/actions/update-row-database.d.cts.map +1 -1
  338. package/dist/actions/update-row-database.d.mts +126 -3
  339. package/dist/actions/update-row-database.d.mts.map +1 -1
  340. package/dist/actions/update-row-database.mjs +31 -31
  341. package/dist/actions/update-row-database.mjs.map +1 -1
  342. package/dist/actions/update-schema-database.cjs +51 -51
  343. package/dist/actions/update-schema-database.cjs.map +1 -1
  344. package/dist/actions/update-schema-database.d.cts +314 -3
  345. package/dist/actions/update-schema-database.d.cts.map +1 -1
  346. package/dist/actions/update-schema-database.d.mts +314 -3
  347. package/dist/actions/update-schema-database.d.mts.map +1 -1
  348. package/dist/actions/update-schema-database.mjs +51 -51
  349. package/dist/actions/update-schema-database.mjs.map +1 -1
  350. package/dist/actions/upsert-row-database.cjs +4 -4
  351. package/dist/actions/upsert-row-database.cjs.map +1 -1
  352. package/dist/actions/upsert-row-database.d.cts +218 -3
  353. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  354. package/dist/actions/upsert-row-database.d.mts +218 -3
  355. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  356. package/dist/actions/upsert-row-database.mjs +4 -4
  357. package/dist/actions/upsert-row-database.mjs.map +1 -1
  358. package/dist/execute.cjs +1 -1
  359. package/dist/execute.cjs.map +1 -1
  360. package/dist/execute.mjs +1 -1
  361. package/dist/execute.mjs.map +1 -1
  362. package/package.json +2 -2
@@ -9,90 +9,90 @@ const NotionUpdateBlockInput = z.object({
9
9
  additional_properties: z.record(z.string(), z.unknown()).describe("Optional dictionary of type-specific properties. Common examples: 'checked' (boolean) for to_do blocks to mark complete/incomplete, 'color' (string like 'blue_background', 'gray', 'red') for text styling, 'is_toggleable' (boolean) for heading blocks to make them collapsible, 'icon' (object with 'type' and 'emoji' fields) for callout blocks. NOTE: Cannot use 'archived' here - use NOTION_DELETE_BLOCK to remove blocks instead. NOTE: Null/None values are automatically filtered out (omitting a property preserves its existing value).").optional()
10
10
  }).describe("Input parameters for updating a Notion block.");
11
11
  const NotionUpdateBlock_FileObjectSchema = z.object({
12
- url: z.string().describe("Temporary authenticated URL valid for one hour"),
13
- expiry_time: z.string().describe("ISO 8601 datetime when the URL expires")
12
+ url: z.string().describe("Temporary authenticated URL valid for one hour").nullable(),
13
+ expiry_time: z.string().describe("ISO 8601 datetime when the URL expires").nullable()
14
14
  }).describe("Notion-hosted file object.");
15
15
  const NotionUpdateBlock_TextContentSchema = z.object({
16
16
  link: z.object({}).describe("Link information with url key, or null").nullable().optional(),
17
- content: z.string().describe("The actual text content")
17
+ content: z.string().describe("The actual text content").nullable()
18
18
  }).describe("Text content object within rich text.");
19
19
  const NotionUpdateBlock_AnnotationsSchema = z.object({
20
- bold: z.boolean().describe("Whether the text is bold"),
21
- code: z.boolean().describe("Whether the text is formatted as code"),
22
- color: z.string().describe("Text color: default, blue, green, red, gray, brown, orange, yellow, pink, purple, or with _background suffix for background colors"),
23
- italic: z.boolean().describe("Whether the text is italic"),
24
- underline: z.boolean().describe("Whether the text is underlined"),
25
- strikethrough: z.boolean().describe("Whether the text has strikethrough")
20
+ bold: z.boolean().describe("Whether the text is bold").nullable(),
21
+ code: z.boolean().describe("Whether the text is formatted as code").nullable(),
22
+ color: z.string().describe("Text color: default, blue, green, red, gray, brown, orange, yellow, pink, purple, or with _background suffix for background colors").nullable(),
23
+ italic: z.boolean().describe("Whether the text is italic").nullable(),
24
+ underline: z.boolean().describe("Whether the text is underlined").nullable(),
25
+ strikethrough: z.boolean().describe("Whether the text has strikethrough").nullable()
26
26
  }).describe("Styling information for rich text.");
27
27
  const NotionUpdateBlock_RichTextSchema = z.object({
28
28
  href: z.string().describe("URL for links or Notion mentions, or null").nullable().optional(),
29
29
  text: NotionUpdateBlock_TextContentSchema.nullable().optional(),
30
- type: z.string().describe("Type of rich text: text, mention, or equation"),
31
- plain_text: z.string().describe("Plain text representation without formatting"),
30
+ type: z.string().describe("Type of rich text: text, mention, or equation").nullable(),
31
+ plain_text: z.string().describe("Plain text representation without formatting").nullable(),
32
32
  annotations: NotionUpdateBlock_AnnotationsSchema.nullable()
33
33
  }).describe("Rich text object containing formatted text content.");
34
- const NotionUpdateBlock_ExternalObjectSchema = z.object({ url: z.string().describe("URL of the externally hosted resource") }).describe("External file/media URL object.");
35
- const NotionUpdateBlock_FileUploadObjectSchema = z.object({ id: z.string().describe("UUIDv4 identifier referencing the uploaded file") }).describe("API-uploaded file reference.");
34
+ const NotionUpdateBlock_ExternalObjectSchema = z.object({ url: z.string().describe("URL of the externally hosted resource").nullable() }).describe("External file/media URL object.");
35
+ const NotionUpdateBlock_FileUploadObjectSchema = z.object({ id: z.string().describe("UUIDv4 identifier referencing the uploaded file").nullable() }).describe("API-uploaded file reference.");
36
36
  const NotionUpdateBlock_PdfBlockSchema = z.object({
37
37
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
38
- type: z.string().describe("Type of PDF: external, file, or file_upload"),
38
+ type: z.string().describe("Type of PDF: external, file, or file_upload").nullable(),
39
39
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the PDF caption").nullable().optional(),
40
40
  external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),
41
41
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional()
42
42
  }).describe("PDF block-specific properties.");
43
43
  const NotionUpdateBlock_CodeBlockSchema = z.object({
44
44
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the code caption").nullable().optional(),
45
- language: z.string().describe("Programming language for syntax highlighting"),
45
+ language: z.string().describe("Programming language for syntax highlighting").nullable(),
46
46
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the code content")
47
47
  }).describe("Code block-specific properties.");
48
48
  const NotionUpdateBlock_FileBlockSchema = z.object({
49
49
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
50
- type: z.string().describe("Type of file: external, file, or file_upload"),
50
+ type: z.string().describe("Type of file: external, file, or file_upload").nullable(),
51
51
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the file caption").nullable().optional(),
52
52
  external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),
53
53
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional()
54
54
  }).describe("File block-specific properties.");
55
55
  const NotionUpdateBlock_AudioBlockSchema = z.object({
56
56
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
57
- type: z.string().describe("Type of audio: external, file, or file_upload"),
57
+ type: z.string().describe("Type of audio: external, file, or file_upload").nullable(),
58
58
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the audio caption").nullable().optional(),
59
59
  external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),
60
60
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional()
61
61
  }).describe("Audio block-specific properties.");
62
- const NotionUpdateBlock_EmbedBlockSchema = z.object({ url: z.string().describe("URL of the embedded content") }).describe("Embed block-specific properties.");
62
+ const NotionUpdateBlock_EmbedBlockSchema = z.object({ url: z.string().describe("URL of the embedded content").nullable() }).describe("Embed block-specific properties.");
63
63
  const NotionUpdateBlock_ImageBlockSchema = z.object({
64
64
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
65
- type: z.string().describe("Type of image: external, file, or file_upload"),
65
+ type: z.string().describe("Type of image: external, file, or file_upload").nullable(),
66
66
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the image caption").nullable().optional(),
67
67
  external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),
68
68
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional()
69
69
  }).describe("Image block-specific properties.");
70
70
  const NotionUpdateBlock_QuoteBlockSchema = z.object({
71
- color: z.string().describe("Color of the quote"),
71
+ color: z.string().describe("Color of the quote").nullable(),
72
72
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
73
73
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the quote content")
74
74
  }).describe("Quote block-specific properties.");
75
75
  const NotionUpdateBlock_TableBlockSchema = z.object({
76
- table_width: z.number().int().describe("Number of columns in the table (immutable after creation)"),
77
- has_row_header: z.boolean().describe("Whether the table has a row header"),
78
- has_column_header: z.boolean().describe("Whether the table has a column header")
76
+ table_width: z.number().int().describe("Number of columns in the table (immutable after creation)").nullable(),
77
+ has_row_header: z.boolean().describe("Whether the table has a row header").nullable(),
78
+ has_column_header: z.boolean().describe("Whether the table has a column header").nullable()
79
79
  }).describe("Table block-specific properties.");
80
80
  const NotionUpdateBlock_ToDoBlockSchema = z.object({
81
- color: z.string().describe("Color of the to-do item"),
82
- checked: z.boolean().describe("Whether the to-do is checked"),
81
+ color: z.string().describe("Color of the to-do item").nullable(),
82
+ checked: z.boolean().describe("Whether the to-do is checked").nullable(),
83
83
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
84
84
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the to-do content")
85
85
  }).describe("To-do block-specific properties.");
86
86
  const NotionUpdateBlock_VideoBlockSchema = z.object({
87
87
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
88
- type: z.string().describe("Type of video: external, file, or file_upload"),
88
+ type: z.string().describe("Type of video: external, file, or file_upload").nullable(),
89
89
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the video caption").nullable().optional(),
90
90
  external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),
91
91
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional()
92
92
  }).describe("Video block-specific properties.");
93
93
  const NotionUpdateBlock_ColumnBlockSchema = z.object({ width_ratio: z.number().describe("Width ratio of the column between 0 and 1").nullable().optional() }).describe("Column block-specific properties.");
94
94
  const NotionUpdateBlock_ParentObjectSchema = z.object({
95
- type: z.string().describe("The type of parent. Possible values: database_id, data_source_id, page_id, workspace, block_id"),
95
+ type: z.string().describe("The type of parent. Possible values: database_id, data_source_id, page_id, workspace, block_id").nullable(),
96
96
  page_id: z.string().describe("UUIDv4 identifier of the parent page (present when type is 'page_id')").nullable().optional(),
97
97
  block_id: z.string().describe("UUIDv4 identifier of the parent block (present when type is 'block_id')").nullable().optional(),
98
98
  workspace: z.boolean().describe("Always true when type is 'workspace', indicating a top-level page").nullable().optional(),
@@ -100,33 +100,33 @@ const NotionUpdateBlock_ParentObjectSchema = z.object({
100
100
  data_source_id: z.string().describe("UUIDv4 identifier of the parent data source (present when type is 'data_source_id')").nullable().optional()
101
101
  }).describe("Information about the block's parent.");
102
102
  const NotionUpdateBlock_ToggleBlockSchema = z.object({
103
- color: z.string().describe("Color of the toggle"),
103
+ color: z.string().describe("Color of the toggle").nullable(),
104
104
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
105
105
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the toggle content")
106
106
  }).describe("Toggle block-specific properties.");
107
107
  const NotionUpdateBlock_EmojiIconSchema = z.object({
108
- type: z.string().describe("Always 'emoji'"),
109
- emoji: z.string().describe("The emoji character")
108
+ type: z.string().describe("Always 'emoji'").nullable(),
109
+ emoji: z.string().describe("The emoji character").nullable()
110
110
  }).describe("Emoji icon object.");
111
111
  const NotionUpdateBlock_CustomEmojiDetailsSchema = z.object({
112
- id: z.string().describe("UUID identifier of the custom emoji"),
113
- url: z.string().describe("S3 hosted image URL for the custom emoji"),
114
- name: z.string().describe("Name of the custom emoji")
112
+ id: z.string().describe("UUID identifier of the custom emoji").nullable(),
113
+ url: z.string().describe("S3 hosted image URL for the custom emoji").nullable(),
114
+ name: z.string().describe("Name of the custom emoji").nullable()
115
115
  }).describe("Custom emoji details.");
116
116
  const NotionUpdateBlock_CustomEmojiIconSchema = z.object({
117
- type: z.string().describe("Always 'custom_emoji'"),
117
+ type: z.string().describe("Always 'custom_emoji'").nullable(),
118
118
  custom_emoji: NotionUpdateBlock_CustomEmojiDetailsSchema.nullable()
119
119
  }).describe("Custom emoji icon object.");
120
120
  const NotionUpdateBlock_ExternalFileIconSchema = z.object({
121
- type: z.string().describe("Always 'external'"),
121
+ type: z.string().describe("Always 'external'").nullable(),
122
122
  external: NotionUpdateBlock_ExternalObjectSchema.nullable()
123
123
  }).describe("External file icon object.");
124
124
  const NotionUpdateBlock_NotionFileIconSchema = z.object({
125
125
  file: NotionUpdateBlock_FileObjectSchema.nullable(),
126
- type: z.string().describe("Always 'file'")
126
+ type: z.string().describe("Always 'file'").nullable()
127
127
  }).describe("Notion-hosted file icon object.");
128
128
  const NotionUpdateBlock_UploadedFileIconSchema = z.object({
129
- type: z.string().describe("Always 'file_upload'"),
129
+ type: z.string().describe("Always 'file_upload'").nullable(),
130
130
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable()
131
131
  }).describe("API-uploaded file icon object.");
132
132
  const NotionUpdateBlock_CalloutBlockSchema = z.object({
@@ -137,58 +137,58 @@ const NotionUpdateBlock_CalloutBlockSchema = z.object({
137
137
  NotionUpdateBlock_NotionFileIconSchema,
138
138
  NotionUpdateBlock_UploadedFileIconSchema
139
139
  ]).nullable().optional(),
140
- color: z.string().describe("Color of the callout"),
140
+ color: z.string().describe("Color of the callout").nullable(),
141
141
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the callout content")
142
142
  }).describe("Callout block-specific properties.");
143
143
  const NotionUpdateBlock_DividerBlockSchema = z.object({}).describe("Divider block-specific properties (empty object).");
144
144
  const NotionUpdateBlock_BookmarkBlockSchema = z.object({
145
- url: z.string().describe("URL of the bookmarked page"),
145
+ url: z.string().describe("URL of the bookmarked page").nullable(),
146
146
  caption: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the bookmark caption").nullable().optional()
147
147
  }).describe("Bookmark block-specific properties.");
148
- const NotionUpdateBlock_EquationBlockSchema = z.object({ expression: z.string().describe("LaTeX formula string for the equation") }).describe("Equation block-specific properties.");
148
+ const NotionUpdateBlock_EquationBlockSchema = z.object({ expression: z.string().describe("LaTeX formula string for the equation").nullable() }).describe("Equation block-specific properties.");
149
149
  const NotionUpdateBlock_TemplateBlockSchema = z.object({
150
150
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects that define the template content").nullable().optional(),
151
151
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the template button text")
152
152
  }).describe("Template block-specific properties.");
153
153
  const NotionUpdateBlock_HeadingBlockSchema = z.object({
154
- color: z.string().describe("Color of the heading"),
154
+ color: z.string().describe("Color of the heading").nullable(),
155
155
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the heading content"),
156
- is_toggleable: z.boolean().describe("Whether the heading can be toggled to show/hide content")
156
+ is_toggleable: z.boolean().describe("Whether the heading can be toggled to show/hide content").nullable()
157
157
  }).describe("Heading block-specific properties (heading_1, heading_2, heading_3).");
158
158
  const NotionUpdateBlock_ParagraphBlockSchema = z.object({
159
- color: z.string().describe("Color of the block"),
159
+ color: z.string().describe("Color of the block").nullable(),
160
160
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
161
161
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the paragraph content")
162
162
  }).describe("Paragraph block-specific properties.");
163
163
  const NotionUpdateBlock_TableRowBlockSchema = z.object({ cells: z.array(z.array(NotionUpdateBlock_RichTextSchema)).describe("Array of arrays, where each inner array contains rich text objects representing a cell's content") }).describe("Table row block-specific properties.");
164
164
  const NotionUpdateBlock_BreadcrumbBlockSchema = z.object({}).describe("Breadcrumb block-specific properties (empty object).");
165
- const NotionUpdateBlock_ChildPageBlockSchema = z.object({ title: z.string().describe("Title of the child page") }).describe("Child page block-specific properties.");
165
+ const NotionUpdateBlock_ChildPageBlockSchema = z.object({ title: z.string().describe("Title of the child page").nullable() }).describe("Child page block-specific properties.");
166
166
  const NotionUpdateBlock_PartialUserSchema = z.object({
167
- id: z.string().describe("UUIDv4 identifier of the user"),
168
- object: z.string().describe("Always 'user'")
167
+ id: z.string().describe("UUIDv4 identifier of the user").nullable(),
168
+ object: z.string().describe("Always 'user'").nullable()
169
169
  }).describe("Partial user object representing a Notion user.");
170
170
  const NotionUpdateBlock_ColumnListBlockSchema = z.object({}).describe("Column list block-specific properties (empty object).");
171
- const NotionUpdateBlock_LinkPreviewBlockSchema = z.object({ url: z.string().describe("URL of the link preview") }).describe("Link preview block-specific properties.");
171
+ const NotionUpdateBlock_LinkPreviewBlockSchema = z.object({ url: z.string().describe("URL of the link preview").nullable() }).describe("Link preview block-specific properties.");
172
172
  const NotionUpdateBlock_LinkToPageBlockSchema = z.object({
173
- type: z.string().describe("Type of linked page: page_id, database_id, or comment_id"),
173
+ type: z.string().describe("Type of linked page: page_id, database_id, or comment_id").nullable(),
174
174
  page_id: z.string().describe("UUIDv4 identifier of the linked page").nullable().optional(),
175
175
  comment_id: z.string().describe("UUIDv4 identifier of the linked comment").nullable().optional(),
176
176
  database_id: z.string().describe("UUIDv4 identifier of the linked database").nullable().optional()
177
177
  }).describe("Link to page block-specific properties.");
178
- const NotionUpdateBlock_SyncedFromBlockSchema = z.object({ block_id: z.string().describe("UUIDv4 identifier of the original synced block") }).describe("Reference to the original synced block.");
178
+ const NotionUpdateBlock_SyncedFromBlockSchema = z.object({ block_id: z.string().describe("UUIDv4 identifier of the original synced block").nullable() }).describe("Reference to the original synced block.");
179
179
  const NotionUpdateBlock_SyncedBlockSchema = z.object({
180
180
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
181
181
  synced_from: NotionUpdateBlock_SyncedFromBlockSchema.nullable().optional()
182
182
  }).describe("Synced block-specific properties.");
183
- const NotionUpdateBlock_ChildDatabaseBlockSchema = z.object({ title: z.string().describe("Title of the child database") }).describe("Child database block-specific properties.");
183
+ const NotionUpdateBlock_ChildDatabaseBlockSchema = z.object({ title: z.string().describe("Title of the child database").nullable() }).describe("Child database block-specific properties.");
184
184
  const NotionUpdateBlock_TableOfContentsBlockSchema = z.object({ color: z.string().describe("Color of the table of contents").nullable().optional() }).describe("Table of contents block-specific properties.");
185
185
  const NotionUpdateBlock_BulletedListItemBlockSchema = z.object({
186
- color: z.string().describe("Color of the list item"),
186
+ color: z.string().describe("Color of the list item").nullable(),
187
187
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
188
188
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the list item content")
189
189
  }).describe("Bulleted list item block-specific properties.");
190
190
  const NotionUpdateBlock_NumberedListItemBlockSchema = z.object({
191
- color: z.string().describe("Color of the list item"),
191
+ color: z.string().describe("Color of the list item").nullable(),
192
192
  children: z.array(z.record(z.string(), z.unknown())).describe("Array of nested block objects").nullable().optional(),
193
193
  rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the list item content")
194
194
  }).describe("Numbered list item block-specific properties.");
@@ -198,11 +198,11 @@ const notionUpdateBlock = action("NOTION_UPDATE_BLOCK", {
198
198
  description: "Updates existing Notion block's text content. ⚠️ CRITICAL: Content limited to 2000 chars. Cannot change block type or archive blocks. Content exceeding 2000 chars will fail with validation error. For longer content, split across multiple blocks using add_multiple_page_content.",
199
199
  input: NotionUpdateBlockInput,
200
200
  output: z.object({
201
- id: z.string().describe("Unique identifier of the block in UUIDv4 format"),
201
+ id: z.string().describe("Unique identifier of the block in UUIDv4 format").nullable(),
202
202
  pdf: NotionUpdateBlock_PdfBlockSchema.nullable().optional(),
203
203
  code: NotionUpdateBlock_CodeBlockSchema.nullable().optional(),
204
204
  file: NotionUpdateBlock_FileBlockSchema.nullable().optional(),
205
- type: z.string().describe("The type of block. Possible values include: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider, breadcrumb, table_of_contents, column_list, column, link_to_page, synced_block, template, link_preview, table, table_row, embed, bookmark, image, video, pdf, file, audio, child_page, child_database, equation, and others"),
205
+ type: z.string().describe("The type of block. Possible values include: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider, breadcrumb, table_of_contents, column_list, column, link_to_page, synced_block, template, link_preview, table, table_row, embed, bookmark, image, video, pdf, file, audio, child_page, child_database, equation, and others").nullable(),
206
206
  audio: NotionUpdateBlock_AudioBlockSchema.nullable().optional(),
207
207
  embed: NotionUpdateBlock_EmbedBlockSchema.nullable().optional(),
208
208
  image: NotionUpdateBlock_ImageBlockSchema.nullable().optional(),
@@ -211,7 +211,7 @@ const notionUpdateBlock = action("NOTION_UPDATE_BLOCK", {
211
211
  to_do: NotionUpdateBlock_ToDoBlockSchema.nullable().optional(),
212
212
  video: NotionUpdateBlock_VideoBlockSchema.nullable().optional(),
213
213
  column: NotionUpdateBlock_ColumnBlockSchema.nullable().optional(),
214
- object: z.string().describe("Always 'block'"),
214
+ object: z.string().describe("Always 'block'").nullable(),
215
215
  parent: NotionUpdateBlock_ParentObjectSchema.nullable(),
216
216
  toggle: NotionUpdateBlock_ToggleBlockSchema.nullable().optional(),
217
217
  callout: NotionUpdateBlock_CalloutBlockSchema.nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"update-block.mjs","names":[],"sources":["../../src/actions/update-block.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateBlockInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The new text content for the block. Replaces existing text content entirely. ⚠️ CRITICAL: Notion API enforces a HARD LIMIT of 2000 characters per text.content field. Content exceeding 2000 chars will cause a validation error. For longer content, split across multiple blocks using append_block_children or add_multiple_page_content.\"),\n block_id: z.string().describe(\"Identifier of the Notion block to be updated. Must be a valid UUID (with or without dashes). To find a block's ID, other Notion actions that list or retrieve blocks can be used. For updating content within a page (which is also a block), its ID can be obtained using actions like `NOTION_FETCH_DATA` to get page IDs and titles.\"),\n language: z.string().describe(\"Programming language for code blocks. Required when block_type='code'. Supported values include: 'abap', 'arduino', 'bash', 'basic', 'c', 'clojure', 'coffeescript', 'c++', 'c#', 'css', 'dart', 'diff', 'docker', 'elixir', 'elm', 'erlang', 'flow', 'fortran', 'f#', 'gherkin', 'glsl', 'go', 'graphql', 'groovy', 'haskell', 'html', 'java', 'javascript', 'json', 'julia', 'kotlin', 'latex', 'less', 'lisp', 'livescript', 'lua', 'makefile', 'markdown', 'markup', 'matlab', 'mermaid', 'nix', 'objective-c', 'ocaml', 'pascal', 'perl', 'php', 'plain text', 'powershell', 'prolog', 'protobuf', 'python', 'r', 'reason', 'ruby', 'rust', 'sass', 'scala', 'scheme', 'scss', 'shell', 'sql', 'swift', 'typescript', 'vb.net', 'verilog', 'vhdl', 'visual basic', 'webassembly', 'xml', 'yaml', 'java/c/c++/c#'. If not provided for a code block, the existing language will be preserved.\").optional(),\n block_type: z.string().describe(\"The type of the block being updated. If not provided, the action will automatically detect the block type by fetching the block first (adds 1 extra API call). If provided, it must match the EXISTING block's type - you cannot change a block's type. Supported types: 'paragraph', 'heading_1', 'heading_2', 'heading_3', 'bulleted_list_item', 'numbered_list_item', 'to_do', 'toggle', 'code', 'quote', 'callout'.\").optional(),\n additional_properties: z.record(z.string(), z.unknown()).describe(\"Optional dictionary of type-specific properties. Common examples: 'checked' (boolean) for to_do blocks to mark complete/incomplete, 'color' (string like 'blue_background', 'gray', 'red') for text styling, 'is_toggleable' (boolean) for heading blocks to make them collapsible, 'icon' (object with 'type' and 'emoji' fields) for callout blocks. NOTE: Cannot use 'archived' here - use NOTION_DELETE_BLOCK to remove blocks instead. NOTE: Null/None values are automatically filtered out (omitting a property preserves its existing value).\").optional(),\n}).describe(\"Input parameters for updating a Notion block.\");\nconst NotionUpdateBlock_FileObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Temporary authenticated URL valid for one hour\"),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires\"),\n}).describe(\"Notion-hosted file object.\");\nconst NotionUpdateBlock_TextContentSchema: z.ZodTypeAny = z.object({\n link: z.object({}).describe(\"Link information with url key, or null\").nullable().optional(),\n content: z.string().describe(\"The actual text content\"),\n}).describe(\"Text content object within rich text.\");\nconst NotionUpdateBlock_AnnotationsSchema: z.ZodTypeAny = z.object({\n bold: z.boolean().describe(\"Whether the text is bold\"),\n code: z.boolean().describe(\"Whether the text is formatted as code\"),\n color: z.string().describe(\"Text color: default, blue, green, red, gray, brown, orange, yellow, pink, purple, or with _background suffix for background colors\"),\n italic: z.boolean().describe(\"Whether the text is italic\"),\n underline: z.boolean().describe(\"Whether the text is underlined\"),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough\"),\n}).describe(\"Styling information for rich text.\");\nconst NotionUpdateBlock_RichTextSchema: z.ZodTypeAny = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, or null\").nullable().optional(),\n text: NotionUpdateBlock_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: text, mention, or equation\"),\n plain_text: z.string().describe(\"Plain text representation without formatting\"),\n annotations: NotionUpdateBlock_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object containing formatted text content.\");\nconst NotionUpdateBlock_ExternalObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the externally hosted resource\"),\n}).describe(\"External file/media URL object.\");\nconst NotionUpdateBlock_FileUploadObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUIDv4 identifier referencing the uploaded file\"),\n}).describe(\"API-uploaded file reference.\");\nconst NotionUpdateBlock_PdfBlockSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of PDF: external, file, or file_upload\"),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the PDF caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"PDF block-specific properties.\");\nconst NotionUpdateBlock_CodeBlockSchema: z.ZodTypeAny = z.object({\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the code caption\").nullable().optional(),\n language: z.string().describe(\"Programming language for syntax highlighting\"),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the code content\"),\n}).describe(\"Code block-specific properties.\");\nconst NotionUpdateBlock_FileBlockSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: external, file, or file_upload\"),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the file caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"File block-specific properties.\");\nconst NotionUpdateBlock_AudioBlockSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of audio: external, file, or file_upload\"),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the audio caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"Audio block-specific properties.\");\nconst NotionUpdateBlock_EmbedBlockSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the embedded content\"),\n}).describe(\"Embed block-specific properties.\");\nconst NotionUpdateBlock_ImageBlockSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of image: external, file, or file_upload\"),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the image caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"Image block-specific properties.\");\nconst NotionUpdateBlock_QuoteBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the quote\"),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the quote content\"),\n}).describe(\"Quote block-specific properties.\");\nconst NotionUpdateBlock_TableBlockSchema: z.ZodTypeAny = z.object({\n table_width: z.number().int().describe(\"Number of columns in the table (immutable after creation)\"),\n has_row_header: z.boolean().describe(\"Whether the table has a row header\"),\n has_column_header: z.boolean().describe(\"Whether the table has a column header\"),\n}).describe(\"Table block-specific properties.\");\nconst NotionUpdateBlock_ToDoBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the to-do item\"),\n checked: z.boolean().describe(\"Whether the to-do is checked\"),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the to-do content\"),\n}).describe(\"To-do block-specific properties.\");\nconst NotionUpdateBlock_VideoBlockSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of video: external, file, or file_upload\"),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the video caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"Video block-specific properties.\");\nconst NotionUpdateBlock_ColumnBlockSchema: z.ZodTypeAny = z.object({\n width_ratio: z.number().describe(\"Width ratio of the column between 0 and 1\").nullable().optional(),\n}).describe(\"Column block-specific properties.\");\nconst NotionUpdateBlock_ParentObjectSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The type of parent. Possible values: database_id, data_source_id, page_id, workspace, block_id\"),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page (present when type is 'page_id')\").nullable().optional(),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block (present when type is 'block_id')\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level page\").nullable().optional(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (present when type is 'database_id')\").nullable().optional(),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source (present when type is 'data_source_id')\").nullable().optional(),\n}).describe(\"Information about the block's parent.\");\nconst NotionUpdateBlock_ToggleBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the toggle\"),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the toggle content\"),\n}).describe(\"Toggle block-specific properties.\");\nconst NotionUpdateBlock_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'emoji'\"),\n emoji: z.string().describe(\"The emoji character\"),\n}).describe(\"Emoji icon object.\");\nconst NotionUpdateBlock_CustomEmojiDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID identifier of the custom emoji\"),\n url: z.string().describe(\"S3 hosted image URL for the custom emoji\"),\n name: z.string().describe(\"Name of the custom emoji\"),\n}).describe(\"Custom emoji details.\");\nconst NotionUpdateBlock_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'custom_emoji'\"),\n custom_emoji: NotionUpdateBlock_CustomEmojiDetailsSchema.nullable(),\n}).describe(\"Custom emoji icon object.\");\nconst NotionUpdateBlock_ExternalFileIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'\"),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable(),\n}).describe(\"External file icon object.\");\nconst NotionUpdateBlock_NotionFileIconSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable(),\n type: z.string().describe(\"Always 'file'\"),\n}).describe(\"Notion-hosted file icon object.\");\nconst NotionUpdateBlock_UploadedFileIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'file_upload'\"),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable(),\n}).describe(\"API-uploaded file icon object.\");\nconst NotionUpdateBlock_CalloutBlockSchema: z.ZodTypeAny = z.object({\n icon: z.union([NotionUpdateBlock_EmojiIconSchema, NotionUpdateBlock_CustomEmojiIconSchema, NotionUpdateBlock_ExternalFileIconSchema, NotionUpdateBlock_NotionFileIconSchema, NotionUpdateBlock_UploadedFileIconSchema]).nullable().optional(),\n color: z.string().describe(\"Color of the callout\"),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the callout content\"),\n}).describe(\"Callout block-specific properties.\");\nconst NotionUpdateBlock_DividerBlockSchema: z.ZodTypeAny = z.object({}).describe(\"Divider block-specific properties (empty object).\");\nconst NotionUpdateBlock_BookmarkBlockSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the bookmarked page\"),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the bookmark caption\").nullable().optional(),\n}).describe(\"Bookmark block-specific properties.\");\nconst NotionUpdateBlock_EquationBlockSchema: z.ZodTypeAny = z.object({\n expression: z.string().describe(\"LaTeX formula string for the equation\"),\n}).describe(\"Equation block-specific properties.\");\nconst NotionUpdateBlock_TemplateBlockSchema: z.ZodTypeAny = z.object({\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects that define the template content\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the template button text\"),\n}).describe(\"Template block-specific properties.\");\nconst NotionUpdateBlock_HeadingBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the heading\"),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the heading content\"),\n is_toggleable: z.boolean().describe(\"Whether the heading can be toggled to show/hide content\"),\n}).describe(\"Heading block-specific properties (heading_1, heading_2, heading_3).\");\nconst NotionUpdateBlock_ParagraphBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the block\"),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the paragraph content\"),\n}).describe(\"Paragraph block-specific properties.\");\nconst NotionUpdateBlock_TableRowBlockSchema: z.ZodTypeAny = z.object({\n cells: z.array(z.array(NotionUpdateBlock_RichTextSchema)).describe(\"Array of arrays, where each inner array contains rich text objects representing a cell's content\"),\n}).describe(\"Table row block-specific properties.\");\nconst NotionUpdateBlock_BreadcrumbBlockSchema: z.ZodTypeAny = z.object({}).describe(\"Breadcrumb block-specific properties (empty object).\");\nconst NotionUpdateBlock_ChildPageBlockSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the child page\"),\n}).describe(\"Child page block-specific properties.\");\nconst NotionUpdateBlock_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUIDv4 identifier of the user\"),\n object: z.string().describe(\"Always 'user'\"),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionUpdateBlock_ColumnListBlockSchema: z.ZodTypeAny = z.object({}).describe(\"Column list block-specific properties (empty object).\");\nconst NotionUpdateBlock_LinkPreviewBlockSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the link preview\"),\n}).describe(\"Link preview block-specific properties.\");\nconst NotionUpdateBlock_LinkToPageBlockSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of linked page: page_id, database_id, or comment_id\"),\n page_id: z.string().describe(\"UUIDv4 identifier of the linked page\").nullable().optional(),\n comment_id: z.string().describe(\"UUIDv4 identifier of the linked comment\").nullable().optional(),\n database_id: z.string().describe(\"UUIDv4 identifier of the linked database\").nullable().optional(),\n}).describe(\"Link to page block-specific properties.\");\nconst NotionUpdateBlock_SyncedFromBlockSchema: z.ZodTypeAny = z.object({\n block_id: z.string().describe(\"UUIDv4 identifier of the original synced block\"),\n}).describe(\"Reference to the original synced block.\");\nconst NotionUpdateBlock_SyncedBlockSchema: z.ZodTypeAny = z.object({\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n synced_from: NotionUpdateBlock_SyncedFromBlockSchema.nullable().optional(),\n}).describe(\"Synced block-specific properties.\");\nconst NotionUpdateBlock_ChildDatabaseBlockSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the child database\"),\n}).describe(\"Child database block-specific properties.\");\nconst NotionUpdateBlock_TableOfContentsBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the table of contents\").nullable().optional(),\n}).describe(\"Table of contents block-specific properties.\");\nconst NotionUpdateBlock_BulletedListItemBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the list item\"),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the list item content\"),\n}).describe(\"Bulleted list item block-specific properties.\");\nconst NotionUpdateBlock_NumberedListItemBlockSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color of the list item\"),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the list item content\"),\n}).describe(\"Numbered list item block-specific properties.\");\nexport const NotionUpdateBlockOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the block in UUIDv4 format\"),\n pdf: NotionUpdateBlock_PdfBlockSchema.nullable().optional(),\n code: NotionUpdateBlock_CodeBlockSchema.nullable().optional(),\n file: NotionUpdateBlock_FileBlockSchema.nullable().optional(),\n type: z.string().describe(\"The type of block. Possible values include: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider, breadcrumb, table_of_contents, column_list, column, link_to_page, synced_block, template, link_preview, table, table_row, embed, bookmark, image, video, pdf, file, audio, child_page, child_database, equation, and others\"),\n audio: NotionUpdateBlock_AudioBlockSchema.nullable().optional(),\n embed: NotionUpdateBlock_EmbedBlockSchema.nullable().optional(),\n image: NotionUpdateBlock_ImageBlockSchema.nullable().optional(),\n quote: NotionUpdateBlock_QuoteBlockSchema.nullable().optional(),\n table: NotionUpdateBlock_TableBlockSchema.nullable().optional(),\n to_do: NotionUpdateBlock_ToDoBlockSchema.nullable().optional(),\n video: NotionUpdateBlock_VideoBlockSchema.nullable().optional(),\n column: NotionUpdateBlock_ColumnBlockSchema.nullable().optional(),\n object: z.string().describe(\"Always 'block'\"),\n parent: NotionUpdateBlock_ParentObjectSchema.nullable(),\n toggle: NotionUpdateBlock_ToggleBlockSchema.nullable().optional(),\n callout: NotionUpdateBlock_CalloutBlockSchema.nullable().optional(),\n divider: NotionUpdateBlock_DividerBlockSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the block has been archived (deleted)\").nullable().optional(),\n bookmark: NotionUpdateBlock_BookmarkBlockSchema.nullable().optional(),\n equation: NotionUpdateBlock_EquationBlockSchema.nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the block is in the trash\").nullable().optional(),\n template: NotionUpdateBlock_TemplateBlockSchema.nullable().optional(),\n heading_1: NotionUpdateBlock_HeadingBlockSchema.nullable().optional(),\n heading_2: NotionUpdateBlock_HeadingBlockSchema.nullable().optional(),\n heading_3: NotionUpdateBlock_HeadingBlockSchema.nullable().optional(),\n paragraph: NotionUpdateBlock_ParagraphBlockSchema.nullable().optional(),\n table_row: NotionUpdateBlock_TableRowBlockSchema.nullable().optional(),\n breadcrumb: NotionUpdateBlock_BreadcrumbBlockSchema.nullable().optional(),\n child_page: NotionUpdateBlock_ChildPageBlockSchema.nullable().optional(),\n created_by: NotionUpdateBlock_PartialUserSchema.nullable().optional(),\n column_list: NotionUpdateBlock_ColumnListBlockSchema.nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 datetime string indicating when the block was created\").nullable().optional(),\n has_children: z.boolean().describe(\"Whether the block has child blocks nested within it\").nullable().optional(),\n link_preview: NotionUpdateBlock_LinkPreviewBlockSchema.nullable().optional(),\n link_to_page: NotionUpdateBlock_LinkToPageBlockSchema.nullable().optional(),\n synced_block: NotionUpdateBlock_SyncedBlockSchema.nullable().optional(),\n child_database: NotionUpdateBlock_ChildDatabaseBlockSchema.nullable().optional(),\n last_edited_by: NotionUpdateBlock_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 datetime string indicating when the block was last edited\").nullable().optional(),\n table_of_contents: NotionUpdateBlock_TableOfContentsBlockSchema.nullable().optional(),\n bulleted_list_item: NotionUpdateBlock_BulletedListItemBlockSchema.nullable().optional(),\n numbered_list_item: NotionUpdateBlock_NumberedListItemBlockSchema.nullable().optional(),\n}).describe(\"Complete Block object returned by PATCH /v1/blocks/{block_id}.\\n\\nThe Update a Block endpoint returns a complete Block object with updated content.\\nThe response structure matches the Block object schema.\");\n\nexport const notionUpdateBlock = action(\"NOTION_UPDATE_BLOCK\", {\n slug: \"notion-update-block\",\n name: \"Update block\",\n description: \"Updates existing Notion block's text content. ⚠️ CRITICAL: Content limited to 2000 chars. Cannot change block type or archive blocks. Content exceeding 2000 chars will fail with validation error. For longer content, split across multiple blocks using add_multiple_page_content.\",\n input: NotionUpdateBlockInput,\n output: NotionUpdateBlockOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8UAA8U;CAC3W,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU;CACvW,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,m2BAAm2B,CAAC,CAAC,SAAS;CAC54B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yZAAyZ,CAAC,CAAC,SAAS;CACpc,uBAAuB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uhBAAuhB,CAAC,CAAC,SAAS;AACtmB,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,qCAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AACxD,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0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version":3,"file":"update-block.mjs","names":[],"sources":["../../src/actions/update-block.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateBlockInput = z.object({\n content: z.string().describe(\"The new text content for the block. Replaces existing text content entirely. ⚠️ CRITICAL: Notion API enforces a HARD LIMIT of 2000 characters per text.content field. Content exceeding 2000 chars will cause a validation error. For longer content, split across multiple blocks using append_block_children or add_multiple_page_content.\"),\n block_id: z.string().describe(\"Identifier of the Notion block to be updated. Must be a valid UUID (with or without dashes). To find a block's ID, other Notion actions that list or retrieve blocks can be used. For updating content within a page (which is also a block), its ID can be obtained using actions like `NOTION_FETCH_DATA` to get page IDs and titles.\"),\n language: z.string().describe(\"Programming language for code blocks. Required when block_type='code'. Supported values include: 'abap', 'arduino', 'bash', 'basic', 'c', 'clojure', 'coffeescript', 'c++', 'c#', 'css', 'dart', 'diff', 'docker', 'elixir', 'elm', 'erlang', 'flow', 'fortran', 'f#', 'gherkin', 'glsl', 'go', 'graphql', 'groovy', 'haskell', 'html', 'java', 'javascript', 'json', 'julia', 'kotlin', 'latex', 'less', 'lisp', 'livescript', 'lua', 'makefile', 'markdown', 'markup', 'matlab', 'mermaid', 'nix', 'objective-c', 'ocaml', 'pascal', 'perl', 'php', 'plain text', 'powershell', 'prolog', 'protobuf', 'python', 'r', 'reason', 'ruby', 'rust', 'sass', 'scala', 'scheme', 'scss', 'shell', 'sql', 'swift', 'typescript', 'vb.net', 'verilog', 'vhdl', 'visual basic', 'webassembly', 'xml', 'yaml', 'java/c/c++/c#'. If not provided for a code block, the existing language will be preserved.\").optional(),\n block_type: z.string().describe(\"The type of the block being updated. If not provided, the action will automatically detect the block type by fetching the block first (adds 1 extra API call). If provided, it must match the EXISTING block's type - you cannot change a block's type. Supported types: 'paragraph', 'heading_1', 'heading_2', 'heading_3', 'bulleted_list_item', 'numbered_list_item', 'to_do', 'toggle', 'code', 'quote', 'callout'.\").optional(),\n additional_properties: z.record(z.string(), z.unknown()).describe(\"Optional dictionary of type-specific properties. Common examples: 'checked' (boolean) for to_do blocks to mark complete/incomplete, 'color' (string like 'blue_background', 'gray', 'red') for text styling, 'is_toggleable' (boolean) for heading blocks to make them collapsible, 'icon' (object with 'type' and 'emoji' fields) for callout blocks. NOTE: Cannot use 'archived' here - use NOTION_DELETE_BLOCK to remove blocks instead. NOTE: Null/None values are automatically filtered out (omitting a property preserves its existing value).\").optional(),\n}).describe(\"Input parameters for updating a Notion block.\");\nconst NotionUpdateBlock_FileObjectSchema = z.object({\n url: z.string().describe(\"Temporary authenticated URL valid for one hour\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires\").nullable(),\n}).describe(\"Notion-hosted file object.\");\nconst NotionUpdateBlock_TextContentSchema = z.object({\n link: z.object({}).describe(\"Link information with url key, or null\").nullable().optional(),\n content: z.string().describe(\"The actual text content\").nullable(),\n}).describe(\"Text content object within rich text.\");\nconst NotionUpdateBlock_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code\").nullable(),\n color: z.string().describe(\"Text color: default, blue, green, red, gray, brown, orange, yellow, pink, purple, or with _background suffix for background colors\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough\").nullable(),\n}).describe(\"Styling information for rich text.\");\nconst NotionUpdateBlock_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, or null\").nullable().optional(),\n text: NotionUpdateBlock_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: text, mention, or equation\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting\").nullable(),\n annotations: NotionUpdateBlock_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object containing formatted text content.\");\nconst NotionUpdateBlock_ExternalObjectSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted resource\").nullable(),\n}).describe(\"External file/media URL object.\");\nconst NotionUpdateBlock_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUIDv4 identifier referencing the uploaded file\").nullable(),\n}).describe(\"API-uploaded file reference.\");\nconst NotionUpdateBlock_PdfBlockSchema = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of PDF: external, file, or file_upload\").nullable(),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the PDF caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"PDF block-specific properties.\");\nconst NotionUpdateBlock_CodeBlockSchema = z.object({\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the code caption\").nullable().optional(),\n language: z.string().describe(\"Programming language for syntax highlighting\").nullable(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the code content\"),\n}).describe(\"Code block-specific properties.\");\nconst NotionUpdateBlock_FileBlockSchema = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: external, file, or file_upload\").nullable(),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the file caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"File block-specific properties.\");\nconst NotionUpdateBlock_AudioBlockSchema = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of audio: external, file, or file_upload\").nullable(),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the audio caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"Audio block-specific properties.\");\nconst NotionUpdateBlock_EmbedBlockSchema = z.object({\n url: z.string().describe(\"URL of the embedded content\").nullable(),\n}).describe(\"Embed block-specific properties.\");\nconst NotionUpdateBlock_ImageBlockSchema = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of image: external, file, or file_upload\").nullable(),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the image caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"Image block-specific properties.\");\nconst NotionUpdateBlock_QuoteBlockSchema = z.object({\n color: z.string().describe(\"Color of the quote\").nullable(),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the quote content\"),\n}).describe(\"Quote block-specific properties.\");\nconst NotionUpdateBlock_TableBlockSchema = z.object({\n table_width: z.number().int().describe(\"Number of columns in the table (immutable after creation)\").nullable(),\n has_row_header: z.boolean().describe(\"Whether the table has a row header\").nullable(),\n has_column_header: z.boolean().describe(\"Whether the table has a column header\").nullable(),\n}).describe(\"Table block-specific properties.\");\nconst NotionUpdateBlock_ToDoBlockSchema = z.object({\n color: z.string().describe(\"Color of the to-do item\").nullable(),\n checked: z.boolean().describe(\"Whether the to-do is checked\").nullable(),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the to-do content\"),\n}).describe(\"To-do block-specific properties.\");\nconst NotionUpdateBlock_VideoBlockSchema = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of video: external, file, or file_upload\").nullable(),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the video caption\").nullable().optional(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable().optional(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable().optional(),\n}).describe(\"Video block-specific properties.\");\nconst NotionUpdateBlock_ColumnBlockSchema = z.object({\n width_ratio: z.number().describe(\"Width ratio of the column between 0 and 1\").nullable().optional(),\n}).describe(\"Column block-specific properties.\");\nconst NotionUpdateBlock_ParentObjectSchema = z.object({\n type: z.string().describe(\"The type of parent. Possible values: database_id, data_source_id, page_id, workspace, block_id\").nullable(),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page (present when type is 'page_id')\").nullable().optional(),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block (present when type is 'block_id')\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level page\").nullable().optional(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (present when type is 'database_id')\").nullable().optional(),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source (present when type is 'data_source_id')\").nullable().optional(),\n}).describe(\"Information about the block's parent.\");\nconst NotionUpdateBlock_ToggleBlockSchema = z.object({\n color: z.string().describe(\"Color of the toggle\").nullable(),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the toggle content\"),\n}).describe(\"Toggle block-specific properties.\");\nconst NotionUpdateBlock_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'\").nullable(),\n emoji: z.string().describe(\"The emoji character\").nullable(),\n}).describe(\"Emoji icon object.\");\nconst NotionUpdateBlock_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"UUID identifier of the custom emoji\").nullable(),\n url: z.string().describe(\"S3 hosted image URL for the custom emoji\").nullable(),\n name: z.string().describe(\"Name of the custom emoji\").nullable(),\n}).describe(\"Custom emoji details.\");\nconst NotionUpdateBlock_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'\").nullable(),\n custom_emoji: NotionUpdateBlock_CustomEmojiDetailsSchema.nullable(),\n}).describe(\"Custom emoji icon object.\");\nconst NotionUpdateBlock_ExternalFileIconSchema = z.object({\n type: z.string().describe(\"Always 'external'\").nullable(),\n external: NotionUpdateBlock_ExternalObjectSchema.nullable(),\n}).describe(\"External file icon object.\");\nconst NotionUpdateBlock_NotionFileIconSchema = z.object({\n file: NotionUpdateBlock_FileObjectSchema.nullable(),\n type: z.string().describe(\"Always 'file'\").nullable(),\n}).describe(\"Notion-hosted file icon object.\");\nconst NotionUpdateBlock_UploadedFileIconSchema = z.object({\n type: z.string().describe(\"Always 'file_upload'\").nullable(),\n file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable(),\n}).describe(\"API-uploaded file icon object.\");\nconst NotionUpdateBlock_CalloutBlockSchema = z.object({\n icon: z.union([NotionUpdateBlock_EmojiIconSchema, NotionUpdateBlock_CustomEmojiIconSchema, NotionUpdateBlock_ExternalFileIconSchema, NotionUpdateBlock_NotionFileIconSchema, NotionUpdateBlock_UploadedFileIconSchema]).nullable().optional(),\n color: z.string().describe(\"Color of the callout\").nullable(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the callout content\"),\n}).describe(\"Callout block-specific properties.\");\nconst NotionUpdateBlock_DividerBlockSchema = z.object({}).describe(\"Divider block-specific properties (empty object).\");\nconst NotionUpdateBlock_BookmarkBlockSchema = z.object({\n url: z.string().describe(\"URL of the bookmarked page\").nullable(),\n caption: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects for the bookmark caption\").nullable().optional(),\n}).describe(\"Bookmark block-specific properties.\");\nconst NotionUpdateBlock_EquationBlockSchema = z.object({\n expression: z.string().describe(\"LaTeX formula string for the equation\").nullable(),\n}).describe(\"Equation block-specific properties.\");\nconst NotionUpdateBlock_TemplateBlockSchema = z.object({\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects that define the template content\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the template button text\"),\n}).describe(\"Template block-specific properties.\");\nconst NotionUpdateBlock_HeadingBlockSchema = z.object({\n color: z.string().describe(\"Color of the heading\").nullable(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the heading content\"),\n is_toggleable: z.boolean().describe(\"Whether the heading can be toggled to show/hide content\").nullable(),\n}).describe(\"Heading block-specific properties (heading_1, heading_2, heading_3).\");\nconst NotionUpdateBlock_ParagraphBlockSchema = z.object({\n color: z.string().describe(\"Color of the block\").nullable(),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the paragraph content\"),\n}).describe(\"Paragraph block-specific properties.\");\nconst NotionUpdateBlock_TableRowBlockSchema = z.object({\n cells: z.array(z.array(NotionUpdateBlock_RichTextSchema)).describe(\"Array of arrays, where each inner array contains rich text objects representing a cell's content\"),\n}).describe(\"Table row block-specific properties.\");\nconst NotionUpdateBlock_BreadcrumbBlockSchema = z.object({}).describe(\"Breadcrumb block-specific properties (empty object).\");\nconst NotionUpdateBlock_ChildPageBlockSchema = z.object({\n title: z.string().describe(\"Title of the child page\").nullable(),\n}).describe(\"Child page block-specific properties.\");\nconst NotionUpdateBlock_PartialUserSchema = z.object({\n id: z.string().describe(\"UUIDv4 identifier of the user\").nullable(),\n object: z.string().describe(\"Always 'user'\").nullable(),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionUpdateBlock_ColumnListBlockSchema = z.object({}).describe(\"Column list block-specific properties (empty object).\");\nconst NotionUpdateBlock_LinkPreviewBlockSchema = z.object({\n url: z.string().describe(\"URL of the link preview\").nullable(),\n}).describe(\"Link preview block-specific properties.\");\nconst NotionUpdateBlock_LinkToPageBlockSchema = z.object({\n type: z.string().describe(\"Type of linked page: page_id, database_id, or comment_id\").nullable(),\n page_id: z.string().describe(\"UUIDv4 identifier of the linked page\").nullable().optional(),\n comment_id: z.string().describe(\"UUIDv4 identifier of the linked comment\").nullable().optional(),\n database_id: z.string().describe(\"UUIDv4 identifier of the linked database\").nullable().optional(),\n}).describe(\"Link to page block-specific properties.\");\nconst NotionUpdateBlock_SyncedFromBlockSchema = z.object({\n block_id: z.string().describe(\"UUIDv4 identifier of the original synced block\").nullable(),\n}).describe(\"Reference to the original synced block.\");\nconst NotionUpdateBlock_SyncedBlockSchema = z.object({\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n synced_from: NotionUpdateBlock_SyncedFromBlockSchema.nullable().optional(),\n}).describe(\"Synced block-specific properties.\");\nconst NotionUpdateBlock_ChildDatabaseBlockSchema = z.object({\n title: z.string().describe(\"Title of the child database\").nullable(),\n}).describe(\"Child database block-specific properties.\");\nconst NotionUpdateBlock_TableOfContentsBlockSchema = z.object({\n color: z.string().describe(\"Color of the table of contents\").nullable().optional(),\n}).describe(\"Table of contents block-specific properties.\");\nconst NotionUpdateBlock_BulletedListItemBlockSchema = z.object({\n color: z.string().describe(\"Color of the list item\").nullable(),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the list item content\"),\n}).describe(\"Bulleted list item block-specific properties.\");\nconst NotionUpdateBlock_NumberedListItemBlockSchema = z.object({\n color: z.string().describe(\"Color of the list item\").nullable(),\n children: z.array(z.record(z.string(), z.unknown())).describe(\"Array of nested block objects\").nullable().optional(),\n rich_text: z.array(NotionUpdateBlock_RichTextSchema).describe(\"Array of rich text objects containing the list item content\"),\n}).describe(\"Numbered list item block-specific properties.\");\nexport const NotionUpdateBlockOutput = z.object({\n id: z.string().describe(\"Unique identifier of the block in UUIDv4 format\").nullable(),\n pdf: NotionUpdateBlock_PdfBlockSchema.nullable().optional(),\n code: NotionUpdateBlock_CodeBlockSchema.nullable().optional(),\n file: NotionUpdateBlock_FileBlockSchema.nullable().optional(),\n type: z.string().describe(\"The type of block. Possible values include: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider, breadcrumb, table_of_contents, column_list, column, link_to_page, synced_block, template, link_preview, table, table_row, embed, bookmark, image, video, pdf, file, audio, child_page, child_database, equation, and others\").nullable(),\n audio: NotionUpdateBlock_AudioBlockSchema.nullable().optional(),\n embed: NotionUpdateBlock_EmbedBlockSchema.nullable().optional(),\n image: NotionUpdateBlock_ImageBlockSchema.nullable().optional(),\n quote: NotionUpdateBlock_QuoteBlockSchema.nullable().optional(),\n table: NotionUpdateBlock_TableBlockSchema.nullable().optional(),\n to_do: NotionUpdateBlock_ToDoBlockSchema.nullable().optional(),\n video: NotionUpdateBlock_VideoBlockSchema.nullable().optional(),\n column: NotionUpdateBlock_ColumnBlockSchema.nullable().optional(),\n object: z.string().describe(\"Always 'block'\").nullable(),\n parent: NotionUpdateBlock_ParentObjectSchema.nullable(),\n toggle: NotionUpdateBlock_ToggleBlockSchema.nullable().optional(),\n callout: NotionUpdateBlock_CalloutBlockSchema.nullable().optional(),\n divider: NotionUpdateBlock_DividerBlockSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the block has been archived (deleted)\").nullable().optional(),\n bookmark: NotionUpdateBlock_BookmarkBlockSchema.nullable().optional(),\n equation: NotionUpdateBlock_EquationBlockSchema.nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the block is in the trash\").nullable().optional(),\n template: NotionUpdateBlock_TemplateBlockSchema.nullable().optional(),\n heading_1: NotionUpdateBlock_HeadingBlockSchema.nullable().optional(),\n heading_2: NotionUpdateBlock_HeadingBlockSchema.nullable().optional(),\n heading_3: NotionUpdateBlock_HeadingBlockSchema.nullable().optional(),\n paragraph: NotionUpdateBlock_ParagraphBlockSchema.nullable().optional(),\n table_row: NotionUpdateBlock_TableRowBlockSchema.nullable().optional(),\n breadcrumb: NotionUpdateBlock_BreadcrumbBlockSchema.nullable().optional(),\n child_page: NotionUpdateBlock_ChildPageBlockSchema.nullable().optional(),\n created_by: NotionUpdateBlock_PartialUserSchema.nullable().optional(),\n column_list: NotionUpdateBlock_ColumnListBlockSchema.nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 datetime string indicating when the block was created\").nullable().optional(),\n has_children: z.boolean().describe(\"Whether the block has child blocks nested within it\").nullable().optional(),\n link_preview: NotionUpdateBlock_LinkPreviewBlockSchema.nullable().optional(),\n link_to_page: NotionUpdateBlock_LinkToPageBlockSchema.nullable().optional(),\n synced_block: NotionUpdateBlock_SyncedBlockSchema.nullable().optional(),\n child_database: NotionUpdateBlock_ChildDatabaseBlockSchema.nullable().optional(),\n last_edited_by: NotionUpdateBlock_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 datetime string indicating when the block was last edited\").nullable().optional(),\n table_of_contents: NotionUpdateBlock_TableOfContentsBlockSchema.nullable().optional(),\n bulleted_list_item: NotionUpdateBlock_BulletedListItemBlockSchema.nullable().optional(),\n numbered_list_item: NotionUpdateBlock_NumberedListItemBlockSchema.nullable().optional(),\n}).describe(\"Complete Block object returned by PATCH /v1/blocks/{block_id}.\\n\\nThe Update a Block endpoint returns a complete Block object with updated content.\\nThe response structure matches the Block object schema.\");\n\nexport const notionUpdateBlock = action(\"NOTION_UPDATE_BLOCK\", {\n slug: \"notion-update-block\",\n name: \"Update block\",\n description: \"Updates existing Notion block's text content. ⚠️ CRITICAL: Content limited to 2000 chars. Cannot change block type or archive blocks. Content exceeding 2000 chars will fail with validation error. For longer content, split across multiple blocks using add_multiple_page_content.\",\n input: NotionUpdateBlockInput,\n output: NotionUpdateBlockOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8UAA8U;CAC3W,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU;CACvW,UAAU,EAAE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G,cAAc,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC3E,cAAc,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACtE,gBAAgB,2CAA2C,SAAS,CAAC,CAAC,SAAS;EAC/E,gBAAgB,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,mBAAmB,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACpF,oBAAoB,8CAA8C,SAAS,CAAC,CAAC,SAAS;EACtF,oBAAoB,8CAA8C,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,SAAS,8MAOF;AACV,CAAC"}
@@ -9,67 +9,67 @@ const NotionUpdatePageInput = zod.z.object({
9
9
  properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary mapping property names to property value objects. IMPORTANT: Property names are workspace-specific and case-sensitive. Before updating, use NOTION_FETCH_ROW (for database pages) or NOTION_FETCH_DATABASE to discover the exact property names available in your database. Common properties like 'Status', 'Name', or 'Tags' may have different names in your workspace (e.g., 'Task Name', 'Priority'). For status/select properties, valid option values also vary by workspace - check the database schema for available options. Values must be wrapped in property type objects - never send plain values. Example: {'Status': {'select': {'name': 'Done'}}} not {'Status': 'Done'}. For relation properties, IDs must be valid UUIDs (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).").optional()
10
10
  });
11
11
  const NotionUpdatePage_EmojiIconSchema = zod.z.object({
12
- type: zod.z.string().describe("Always 'emoji'."),
13
- emoji: zod.z.string().describe("Emoji character.")
12
+ type: zod.z.string().describe("Always 'emoji'.").nullable(),
13
+ emoji: zod.z.string().describe("Emoji character.").nullable()
14
14
  }).describe("Emoji icon object.");
15
15
  const NotionUpdatePage_CustomEmojiDataSchema = zod.z.object({
16
- id: zod.z.string().describe("Unique identifier for the custom emoji."),
17
- url: zod.z.string().describe("HTTPS URL pointing to the emoji image."),
18
- name: zod.z.string().describe("Display name of the custom emoji.")
16
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
17
+ url: zod.z.string().describe("HTTPS URL pointing to the emoji image.").nullable(),
18
+ name: zod.z.string().describe("Display name of the custom emoji.").nullable()
19
19
  }).describe("Custom emoji data object.");
20
20
  const NotionUpdatePage_CustomEmojiIconSchema = zod.z.object({
21
- type: zod.z.string().describe("Always 'custom_emoji'."),
21
+ type: zod.z.string().describe("Always 'custom_emoji'.").nullable(),
22
22
  custom_emoji: NotionUpdatePage_CustomEmojiDataSchema.nullable()
23
23
  }).describe("Custom emoji icon object.");
24
24
  const NotionUpdatePage_FileObjectSchema = zod.z.object({
25
- url: zod.z.string().describe("Authenticated HTTP GET URL, valid for one hour."),
26
- expiry_time: zod.z.string().describe("ISO 8601 datetime when URL expires.")
25
+ url: zod.z.string().describe("Authenticated HTTP GET URL, valid for one hour.").nullable(),
26
+ expiry_time: zod.z.string().describe("ISO 8601 datetime when URL expires.").nullable()
27
27
  }).describe("File object for Notion-hosted files (manual UI uploads).");
28
28
  const NotionUpdatePage_NotionHostedFileSchema = zod.z.object({
29
29
  file: NotionUpdatePage_FileObjectSchema.nullable(),
30
- type: zod.z.string().describe("Always 'file'.")
30
+ type: zod.z.string().describe("Always 'file'.").nullable()
31
31
  }).describe("Wrapper for Notion-hosted file.");
32
- const NotionUpdatePage_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUID referencing an uploaded file.") }).describe("File object for API-uploaded files via File Upload API.");
32
+ const NotionUpdatePage_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUID referencing an uploaded file.").nullable() }).describe("File object for API-uploaded files via File Upload API.");
33
33
  const NotionUpdatePage_APIUploadedFileSchema = zod.z.object({
34
- type: zod.z.string().describe("Always 'file_upload'."),
34
+ type: zod.z.string().describe("Always 'file_upload'.").nullable(),
35
35
  file_upload: NotionUpdatePage_FileUploadObjectSchema.nullable()
36
36
  }).describe("Wrapper for API-uploaded file.");
37
- const NotionUpdatePage_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to external file.") }).describe("File object for externally hosted files (never expires).");
37
+ const NotionUpdatePage_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to external file.").nullable() }).describe("File object for externally hosted files (never expires).");
38
38
  const NotionUpdatePage_ExternalFileSchema = zod.z.object({
39
- type: zod.z.string().describe("Always 'external'."),
39
+ type: zod.z.string().describe("Always 'external'.").nullable(),
40
40
  external: NotionUpdatePage_ExternalFileObjectSchema.nullable()
41
41
  }).describe("Wrapper for externally hosted file.");
42
42
  const NotionUpdatePage_DatabaseParentSchema = zod.z.object({
43
- type: zod.z.string().describe("Always 'database_id'."),
44
- database_id: zod.z.string().describe("UUID of parent database.")
43
+ type: zod.z.string().describe("Always 'database_id'.").nullable(),
44
+ database_id: zod.z.string().describe("UUID of parent database.").nullable()
45
45
  }).describe("Database parent object.");
46
46
  const NotionUpdatePage_DataSourceParentSchema = zod.z.object({
47
- type: zod.z.string().describe("Always 'data_source_id'."),
47
+ type: zod.z.string().describe("Always 'data_source_id'.").nullable(),
48
48
  database_id: zod.z.string().describe("UUID of parent database (convenience reference).").nullable().optional(),
49
- data_source_id: zod.z.string().describe("UUID of parent data source.")
49
+ data_source_id: zod.z.string().describe("UUID of parent data source.").nullable()
50
50
  }).describe("Data source parent object (includes convenience database_id reference).");
51
51
  const NotionUpdatePage_PageParentSchema = zod.z.object({
52
- type: zod.z.string().describe("Always 'page_id'."),
53
- page_id: zod.z.string().describe("UUID of parent page.")
52
+ type: zod.z.string().describe("Always 'page_id'.").nullable(),
53
+ page_id: zod.z.string().describe("UUID of parent page.").nullable()
54
54
  }).describe("Page parent object for hierarchical nesting.");
55
55
  const NotionUpdatePage_WorkspaceParentSchema = zod.z.object({
56
- type: zod.z.string().describe("Always 'workspace'."),
57
- workspace: zod.z.boolean().describe("Always true.")
56
+ type: zod.z.string().describe("Always 'workspace'.").nullable(),
57
+ workspace: zod.z.boolean().describe("Always true.").nullable()
58
58
  }).describe("Workspace parent object for top-level entities.");
59
59
  const NotionUpdatePage_BlockParentSchema = zod.z.object({
60
- type: zod.z.string().describe("Always 'block_id'."),
61
- block_id: zod.z.string().describe("UUID of parent block.")
60
+ type: zod.z.string().describe("Always 'block_id'.").nullable(),
61
+ block_id: zod.z.string().describe("UUID of parent block.").nullable()
62
62
  }).describe("Block parent object for inline/nested pages.");
63
63
  const NotionUpdatePage_PartialUserSchema = zod.z.object({
64
- id: zod.z.string().describe("Unique identifier for the user (UUID)."),
64
+ id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
65
65
  name: zod.z.string().describe("User's display name in Notion.").nullable().optional(),
66
66
  type: zod.z.string().describe("User type: 'person' or 'bot'.").nullable().optional(),
67
- object: zod.z.string().describe("Always 'user'."),
67
+ object: zod.z.string().describe("Always 'user'.").nullable(),
68
68
  avatar_url: zod.z.string().describe("URL to user's avatar image.").nullable().optional()
69
69
  }).describe("Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.");
70
70
  const NotionUpdatePageOutput = zod.z.object({
71
- id: zod.z.string().describe("Unique identifier for the page."),
72
- url: zod.z.string().describe("The URL of the Notion page."),
71
+ id: zod.z.string().describe("Unique identifier for the page.").nullable(),
72
+ url: zod.z.string().describe("The URL of the Notion page.").nullable(),
73
73
  icon: zod.z.union([
74
74
  NotionUpdatePage_EmojiIconSchema,
75
75
  NotionUpdatePage_CustomEmojiIconSchema,
@@ -82,7 +82,7 @@ const NotionUpdatePageOutput = zod.z.object({
82
82
  NotionUpdatePage_APIUploadedFileSchema,
83
83
  NotionUpdatePage_ExternalFileSchema
84
84
  ]).nullable().optional(),
85
- object: zod.z.string().describe("Type of object. Always \"page\" for page objects."),
85
+ object: zod.z.string().describe("Type of object. Always \"page\" for page objects.").nullable(),
86
86
  parent: zod.z.union([
87
87
  NotionUpdatePage_DatabaseParentSchema,
88
88
  NotionUpdatePage_DataSourceParentSchema,
@@ -90,16 +90,16 @@ const NotionUpdatePageOutput = zod.z.object({
90
90
  NotionUpdatePage_WorkspaceParentSchema,
91
91
  NotionUpdatePage_BlockParentSchema
92
92
  ]),
93
- archived: zod.z.boolean().describe("Whether the page is archived."),
94
- in_trash: zod.z.boolean().describe("Whether the page is in Trash."),
93
+ archived: zod.z.boolean().describe("Whether the page is archived.").nullable(),
94
+ in_trash: zod.z.boolean().describe("Whether the page is in Trash.").nullable(),
95
95
  is_locked: zod.z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
96
96
  created_by: NotionUpdatePage_PartialUserSchema.nullable(),
97
97
  properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The page's properties. Property names and structures vary by workspace/database schema."),
98
98
  public_url: zod.z.string().describe("Public page URL if published to web; otherwise null.").nullable().optional(),
99
99
  request_id: zod.z.string().describe("Request ID from the Notion API.").nullable().optional(),
100
- created_time: zod.z.string().describe("Date and time when the page was created."),
100
+ created_time: zod.z.string().describe("Date and time when the page was created.").nullable(),
101
101
  last_edited_by: NotionUpdatePage_PartialUserSchema.nullable(),
102
- last_edited_time: zod.z.string().describe("Date and time when the page was last edited."),
102
+ last_edited_time: zod.z.string().describe("Date and time when the page was last edited.").nullable(),
103
103
  composio_execution_message: zod.z.string().describe("Message about any automatic transformations applied during execution (e.g., content chunking for long text).").nullable().optional()
104
104
  });
105
105
  const notionUpdatePage = require_action.action("NOTION_UPDATE_PAGE", {