@keystrokehq/notion 0.1.0 → 0.1.3

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 +13 -13
  5. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.cts +90 -3
  7. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.d.mts +90 -3
  9. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  10. package/dist/actions/add-multiple-page-content.mjs +13 -13
  11. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  12. package/dist/actions/append-code-blocks.cjs +100 -100
  13. package/dist/actions/append-code-blocks.cjs.map +1 -1
  14. package/dist/actions/append-code-blocks.d.cts +867 -3
  15. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  16. package/dist/actions/append-code-blocks.d.mts +867 -3
  17. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  18. package/dist/actions/append-code-blocks.mjs +100 -100
  19. package/dist/actions/append-code-blocks.mjs.map +1 -1
  20. package/dist/actions/append-layout-blocks.cjs +91 -91
  21. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  22. package/dist/actions/append-layout-blocks.d.cts +652 -3
  23. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  24. package/dist/actions/append-layout-blocks.d.mts +652 -3
  25. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  26. package/dist/actions/append-layout-blocks.mjs +91 -91
  27. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  28. package/dist/actions/append-media-blocks.cjs +125 -125
  29. package/dist/actions/append-media-blocks.cjs.map +1 -1
  30. package/dist/actions/append-media-blocks.d.cts +1039 -3
  31. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  32. package/dist/actions/append-media-blocks.d.mts +1039 -3
  33. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  34. package/dist/actions/append-media-blocks.mjs +125 -125
  35. package/dist/actions/append-media-blocks.mjs.map +1 -1
  36. package/dist/actions/append-table-blocks.cjs +87 -87
  37. package/dist/actions/append-table-blocks.cjs.map +1 -1
  38. package/dist/actions/append-table-blocks.d.cts +630 -3
  39. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  40. package/dist/actions/append-table-blocks.d.mts +630 -3
  41. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  42. package/dist/actions/append-table-blocks.mjs +87 -87
  43. package/dist/actions/append-table-blocks.mjs.map +1 -1
  44. package/dist/actions/append-task-blocks.cjs +101 -101
  45. package/dist/actions/append-task-blocks.cjs.map +1 -1
  46. package/dist/actions/append-task-blocks.d.cts +845 -3
  47. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  48. package/dist/actions/append-task-blocks.d.mts +845 -3
  49. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  50. package/dist/actions/append-task-blocks.mjs +101 -101
  51. package/dist/actions/append-task-blocks.mjs.map +1 -1
  52. package/dist/actions/append-text-blocks.cjs +118 -118
  53. package/dist/actions/append-text-blocks.cjs.map +1 -1
  54. package/dist/actions/append-text-blocks.d.cts +1116 -3
  55. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  56. package/dist/actions/append-text-blocks.d.mts +1116 -3
  57. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  58. package/dist/actions/append-text-blocks.mjs +118 -118
  59. package/dist/actions/append-text-blocks.mjs.map +1 -1
  60. package/dist/actions/archive-notion-page.cjs +43 -43
  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 +43 -43
  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 +44 -44
  75. package/dist/actions/create-database.cjs.map +1 -1
  76. package/dist/actions/create-database.d.cts +140 -3
  77. package/dist/actions/create-database.d.cts.map +1 -1
  78. package/dist/actions/create-database.d.mts +140 -3
  79. package/dist/actions/create-database.d.mts.map +1 -1
  80. package/dist/actions/create-database.mjs +44 -44
  81. package/dist/actions/create-database.mjs.map +1 -1
  82. package/dist/actions/create-file-upload.cjs +9 -9
  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 +9 -9
  89. package/dist/actions/create-file-upload.mjs.map +1 -1
  90. package/dist/actions/create-notion-page.cjs +41 -41
  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 +41 -41
  97. package/dist/actions/create-notion-page.mjs.map +1 -1
  98. package/dist/actions/delete-block.cjs +84 -84
  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 +84 -84
  105. package/dist/actions/delete-block.mjs.map +1 -1
  106. package/dist/actions/duplicate-page.cjs +49 -49
  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 +49 -49
  113. package/dist/actions/duplicate-page.mjs.map +1 -1
  114. package/dist/actions/fetch-all-block-contents.cjs +91 -91
  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 +91 -91
  121. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  122. package/dist/actions/fetch-block-contents.cjs +97 -97
  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 +97 -97
  129. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  130. package/dist/actions/fetch-block-metadata.cjs +81 -81
  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 +81 -81
  137. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  138. package/dist/actions/fetch-comments.cjs +55 -55
  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 +55 -55
  145. package/dist/actions/fetch-comments.mjs.map +1 -1
  146. package/dist/actions/fetch-data.cjs +76 -76
  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 +76 -76
  153. package/dist/actions/fetch-data.mjs.map +1 -1
  154. package/dist/actions/fetch-database.cjs +38 -38
  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 +38 -38
  161. package/dist/actions/fetch-database.mjs.map +1 -1
  162. package/dist/actions/fetch-row.cjs +56 -56
  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 +56 -56
  169. package/dist/actions/fetch-row.mjs.map +1 -1
  170. package/dist/actions/get-about-user.cjs +13 -13
  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 +13 -13
  177. package/dist/actions/get-about-user.mjs.map +1 -1
  178. package/dist/actions/get-page-markdown.cjs +5 -5
  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 +5 -5
  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 +50 -50
  193. package/dist/actions/insert-row-database.cjs.map +1 -1
  194. package/dist/actions/insert-row-database.d.cts +165 -3
  195. package/dist/actions/insert-row-database.d.cts.map +1 -1
  196. package/dist/actions/insert-row-database.d.mts +165 -3
  197. package/dist/actions/insert-row-database.d.mts.map +1 -1
  198. package/dist/actions/insert-row-database.mjs +50 -50
  199. package/dist/actions/insert-row-database.mjs.map +1 -1
  200. package/dist/actions/insert-row-from-nl.cjs +2 -2
  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 +2 -2
  207. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  208. package/dist/actions/list-data-source-templates.cjs +6 -6
  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 +6 -6
  215. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  216. package/dist/actions/list-file-uploads.cjs +9 -9
  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 +9 -9
  223. package/dist/actions/list-file-uploads.mjs.map +1 -1
  224. package/dist/actions/list-users.cjs +14 -14
  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 +14 -14
  231. package/dist/actions/list-users.mjs.map +1 -1
  232. package/dist/actions/move-page.cjs +44 -44
  233. package/dist/actions/move-page.cjs.map +1 -1
  234. package/dist/actions/move-page.d.cts +92 -3
  235. package/dist/actions/move-page.d.cts.map +1 -1
  236. package/dist/actions/move-page.d.mts +92 -3
  237. package/dist/actions/move-page.d.mts.map +1 -1
  238. package/dist/actions/move-page.mjs +44 -44
  239. package/dist/actions/move-page.mjs.map +1 -1
  240. package/dist/actions/query-data-source.cjs +35 -35
  241. package/dist/actions/query-data-source.cjs.map +1 -1
  242. package/dist/actions/query-data-source.d.cts +161 -3
  243. package/dist/actions/query-data-source.d.cts.map +1 -1
  244. package/dist/actions/query-data-source.d.mts +161 -3
  245. package/dist/actions/query-data-source.d.mts.map +1 -1
  246. package/dist/actions/query-data-source.mjs +35 -35
  247. package/dist/actions/query-data-source.mjs.map +1 -1
  248. package/dist/actions/query-database-with-filter.cjs +73 -73
  249. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  250. package/dist/actions/query-database-with-filter.d.cts +216 -3
  251. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  252. package/dist/actions/query-database-with-filter.d.mts +216 -3
  253. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  254. package/dist/actions/query-database-with-filter.mjs +73 -73
  255. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  256. package/dist/actions/query-database.cjs +61 -61
  257. package/dist/actions/query-database.cjs.map +1 -1
  258. package/dist/actions/query-database.d.cts +209 -3
  259. package/dist/actions/query-database.d.cts.map +1 -1
  260. package/dist/actions/query-database.d.mts +209 -3
  261. package/dist/actions/query-database.d.mts.map +1 -1
  262. package/dist/actions/query-database.mjs +61 -61
  263. package/dist/actions/query-database.mjs.map +1 -1
  264. package/dist/actions/replace-page-content.cjs +133 -133
  265. package/dist/actions/replace-page-content.cjs.map +1 -1
  266. package/dist/actions/replace-page-content.d.cts +1836 -3
  267. package/dist/actions/replace-page-content.d.cts.map +1 -1
  268. package/dist/actions/replace-page-content.d.mts +1836 -3
  269. package/dist/actions/replace-page-content.d.mts.map +1 -1
  270. package/dist/actions/replace-page-content.mjs +133 -133
  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 +42 -42
  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 +42 -42
  285. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  286. package/dist/actions/retrieve-file-upload.cjs +6 -6
  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 +6 -6
  293. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  294. package/dist/actions/retrieve-page.cjs +55 -55
  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 +55 -55
  301. package/dist/actions/retrieve-page.mjs.map +1 -1
  302. package/dist/actions/search-notion-page.cjs +82 -82
  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 +82 -82
  309. package/dist/actions/search-notion-page.mjs.map +1 -1
  310. package/dist/actions/send-file-upload.cjs +8 -8
  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 +8 -8
  317. package/dist/actions/send-file-upload.mjs.map +1 -1
  318. package/dist/actions/update-block.cjs +94 -94
  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 +94 -94
  325. package/dist/actions/update-block.mjs.map +1 -1
  326. package/dist/actions/update-page.cjs +46 -46
  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 +46 -46
  333. package/dist/actions/update-page.mjs.map +1 -1
  334. package/dist/actions/update-row-database.cjs +50 -50
  335. package/dist/actions/update-row-database.cjs.map +1 -1
  336. package/dist/actions/update-row-database.d.cts +127 -3
  337. package/dist/actions/update-row-database.d.cts.map +1 -1
  338. package/dist/actions/update-row-database.d.mts +127 -3
  339. package/dist/actions/update-row-database.d.mts.map +1 -1
  340. package/dist/actions/update-row-database.mjs +50 -50
  341. package/dist/actions/update-row-database.mjs.map +1 -1
  342. package/dist/actions/update-schema-database.cjs +59 -59
  343. package/dist/actions/update-schema-database.cjs.map +1 -1
  344. package/dist/actions/update-schema-database.d.cts +315 -3
  345. package/dist/actions/update-schema-database.d.cts.map +1 -1
  346. package/dist/actions/update-schema-database.d.mts +315 -3
  347. package/dist/actions/update-schema-database.d.mts.map +1 -1
  348. package/dist/actions/update-schema-database.mjs +59 -59
  349. package/dist/actions/update-schema-database.mjs.map +1 -1
  350. package/dist/actions/upsert-row-database.cjs +32 -32
  351. package/dist/actions/upsert-row-database.cjs.map +1 -1
  352. package/dist/actions/upsert-row-database.d.cts +242 -3
  353. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  354. package/dist/actions/upsert-row-database.d.mts +242 -3
  355. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  356. package/dist/actions/upsert-row-database.mjs +32 -32
  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
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/send-file-upload.d.ts
4
- declare const NotionSendFileUploadInput: z.ZodTypeAny;
5
- declare const NotionSendFileUploadOutput: z.ZodTypeAny;
6
- declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionSendFileUploadInput: z.ZodObject<{
5
+ file: z.ZodObject<{
6
+ name: z.ZodString;
7
+ s3key: z.ZodOptional<z.ZodString>;
8
+ mimetype: z.ZodString;
9
+ }, z.core.$strip>;
10
+ part_number: z.ZodOptional<z.ZodNumber>;
11
+ file_upload_id: z.ZodString;
12
+ file_content_base64: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const NotionSendFileUploadOutput: z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ object: z.ZodNullable<z.ZodString>;
17
+ status: z.ZodNullable<z.ZodString>;
18
+ archived: z.ZodNullable<z.ZodBoolean>;
19
+ filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ expiry_time: z.ZodNullable<z.ZodString>;
22
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ created_time: z.ZodNullable<z.ZodString>;
24
+ content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ last_edited_time: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$loose>;
27
+ declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ file: {
29
+ name: string;
30
+ mimetype: string;
31
+ s3key?: string | undefined;
32
+ };
33
+ file_upload_id: string;
34
+ part_number?: number | undefined;
35
+ file_content_base64?: string | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { notionSendFileUpload };
9
39
  //# sourceMappingURL=send-file-upload.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-file-upload.d.mts","names":[],"sources":["../../src/actions/send-file-upload.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UASxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAYzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"send-file-upload.d.mts","names":[],"sources":["../../src/actions/send-file-upload.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc1B,oBAAA,gCAAoB,wBAAA"}
@@ -15,18 +15,18 @@ const notionSendFileUpload = action("NOTION_SEND_FILE_UPLOAD", {
15
15
  file_content_base64: z.string().describe("Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.").optional()
16
16
  }),
17
17
  output: z.object({
18
- id: z.string().describe("Unique identifier (UUID) for the file upload."),
19
- object: z.string().describe("Always set to 'file_upload'. Identifies the object type."),
20
- status: z.string().describe("Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'."),
21
- archived: z.boolean().describe("Indicates whether the file upload has been archived."),
18
+ id: z.string().describe("Unique identifier (UUID) for the file upload.").nullable(),
19
+ object: z.string().describe("Always set to 'file_upload'. Identifies the object type.").nullable(),
20
+ status: z.string().describe("Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.").nullable(),
21
+ archived: z.boolean().describe("Indicates whether the file upload has been archived.").nullable(),
22
22
  filename: z.string().describe("Name of the uploaded file.").nullable().optional(),
23
23
  request_id: z.string().describe("Request identifier for tracking the file upload operation.").nullable().optional(),
24
- expiry_time: z.string().describe("ISO 8601 timestamp when the file upload will expire."),
24
+ expiry_time: z.string().describe("ISO 8601 timestamp when the file upload will expire.").nullable(),
25
25
  content_type: z.string().describe("The MIME content type of the uploaded file.").nullable().optional(),
26
- created_time: z.string().describe("ISO 8601 timestamp when the file upload was created."),
26
+ created_time: z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
27
27
  content_length: z.number().int().describe("The total size of the file in bytes.").nullable().optional(),
28
- last_edited_time: z.string().describe("ISO 8601 timestamp when the file upload was last modified.")
29
- })
28
+ last_edited_time: z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
29
+ }).passthrough()
30
30
  });
31
31
  //#endregion
32
32
  export { notionSendFileUpload };
@@ -1 +1 @@
1
- {"version":3,"file":"send-file-upload.mjs","names":[],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\"),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\"),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\"),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\"),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\"),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\"),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\"),\n});\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;AA4BA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;GACvH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;GAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC5D,CAAC,CAAC,CAAC,SAAS,gIAAgI;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAC9N,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;EACpJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACjO,CAmBS;CACP,QAnBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;EACtH,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACxF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACpG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"send-file-upload.mjs","names":[],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;AA4BA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;GACvH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;GAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC5D,CAAC,CAAC,CAAC,SAAS,gIAAgI;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAC9N,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;EACpJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACjO,CAmBS;CACP,QAnBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EACjI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -9,126 +9,126 @@ const NotionUpdateBlockInput = zod.z.object({
9
9
  additional_properties: zod.z.record(zod.z.string(), zod.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 = zod.z.object({
12
- url: zod.z.string().describe("Temporary authenticated URL valid for one hour"),
13
- expiry_time: zod.z.string().describe("ISO 8601 datetime when the URL expires")
14
- }).describe("Notion-hosted file object.");
12
+ url: zod.z.string().describe("Temporary authenticated URL valid for one hour").nullable(),
13
+ expiry_time: zod.z.string().describe("ISO 8601 datetime when the URL expires").nullable()
14
+ }).passthrough().describe("Notion-hosted file object.");
15
15
  const NotionUpdateBlock_TextContentSchema = zod.z.object({
16
- link: zod.z.object({}).describe("Link information with url key, or null").nullable().optional(),
17
- content: zod.z.string().describe("The actual text content")
18
- }).describe("Text content object within rich text.");
16
+ link: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Link information with url key, or null").nullable().optional(),
17
+ content: zod.z.string().describe("The actual text content").nullable()
18
+ }).passthrough().describe("Text content object within rich text.");
19
19
  const NotionUpdateBlock_AnnotationsSchema = zod.z.object({
20
- bold: zod.z.boolean().describe("Whether the text is bold"),
21
- code: zod.z.boolean().describe("Whether the text is formatted as code"),
22
- color: zod.z.string().describe("Text color: default, blue, green, red, gray, brown, orange, yellow, pink, purple, or with _background suffix for background colors"),
23
- italic: zod.z.boolean().describe("Whether the text is italic"),
24
- underline: zod.z.boolean().describe("Whether the text is underlined"),
25
- strikethrough: zod.z.boolean().describe("Whether the text has strikethrough")
26
- }).describe("Styling information for rich text.");
20
+ bold: zod.z.boolean().describe("Whether the text is bold").nullable(),
21
+ code: zod.z.boolean().describe("Whether the text is formatted as code").nullable(),
22
+ color: zod.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: zod.z.boolean().describe("Whether the text is italic").nullable(),
24
+ underline: zod.z.boolean().describe("Whether the text is underlined").nullable(),
25
+ strikethrough: zod.z.boolean().describe("Whether the text has strikethrough").nullable()
26
+ }).passthrough().describe("Styling information for rich text.");
27
27
  const NotionUpdateBlock_RichTextSchema = zod.z.object({
28
28
  href: zod.z.string().describe("URL for links or Notion mentions, or null").nullable().optional(),
29
29
  text: NotionUpdateBlock_TextContentSchema.nullable().optional(),
30
- type: zod.z.string().describe("Type of rich text: text, mention, or equation"),
31
- plain_text: zod.z.string().describe("Plain text representation without formatting"),
30
+ type: zod.z.string().describe("Type of rich text: text, mention, or equation").nullable(),
31
+ plain_text: zod.z.string().describe("Plain text representation without formatting").nullable(),
32
32
  annotations: NotionUpdateBlock_AnnotationsSchema.nullable()
33
- }).describe("Rich text object containing formatted text content.");
34
- const NotionUpdateBlock_ExternalObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the externally hosted resource") }).describe("External file/media URL object.");
35
- const NotionUpdateBlock_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUIDv4 identifier referencing the uploaded file") }).describe("API-uploaded file reference.");
33
+ }).passthrough().describe("Rich text object containing formatted text content.");
34
+ const NotionUpdateBlock_ExternalObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the externally hosted resource").nullable() }).passthrough().describe("External file/media URL object.");
35
+ const NotionUpdateBlock_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUIDv4 identifier referencing the uploaded file").nullable() }).passthrough().describe("API-uploaded file reference.");
36
36
  const NotionUpdateBlock_PdfBlockSchema = zod.z.object({
37
37
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
38
- type: zod.z.string().describe("Type of PDF: external, file, or file_upload"),
38
+ type: zod.z.string().describe("Type of PDF: external, file, or file_upload").nullable(),
39
39
  caption: zod.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
- }).describe("PDF block-specific properties.");
42
+ }).passthrough().describe("PDF block-specific properties.");
43
43
  const NotionUpdateBlock_CodeBlockSchema = zod.z.object({
44
44
  caption: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the code caption").nullable().optional(),
45
- language: zod.z.string().describe("Programming language for syntax highlighting"),
45
+ language: zod.z.string().describe("Programming language for syntax highlighting").nullable(),
46
46
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the code content")
47
- }).describe("Code block-specific properties.");
47
+ }).passthrough().describe("Code block-specific properties.");
48
48
  const NotionUpdateBlock_FileBlockSchema = zod.z.object({
49
49
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
50
- type: zod.z.string().describe("Type of file: external, file, or file_upload"),
50
+ type: zod.z.string().describe("Type of file: external, file, or file_upload").nullable(),
51
51
  caption: zod.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
- }).describe("File block-specific properties.");
54
+ }).passthrough().describe("File block-specific properties.");
55
55
  const NotionUpdateBlock_AudioBlockSchema = zod.z.object({
56
56
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
57
- type: zod.z.string().describe("Type of audio: external, file, or file_upload"),
57
+ type: zod.z.string().describe("Type of audio: external, file, or file_upload").nullable(),
58
58
  caption: zod.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
- }).describe("Audio block-specific properties.");
62
- const NotionUpdateBlock_EmbedBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the embedded content") }).describe("Embed block-specific properties.");
61
+ }).passthrough().describe("Audio block-specific properties.");
62
+ const NotionUpdateBlock_EmbedBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the embedded content").nullable() }).passthrough().describe("Embed block-specific properties.");
63
63
  const NotionUpdateBlock_ImageBlockSchema = zod.z.object({
64
64
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
65
- type: zod.z.string().describe("Type of image: external, file, or file_upload"),
65
+ type: zod.z.string().describe("Type of image: external, file, or file_upload").nullable(),
66
66
  caption: zod.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
- }).describe("Image block-specific properties.");
69
+ }).passthrough().describe("Image block-specific properties.");
70
70
  const NotionUpdateBlock_QuoteBlockSchema = zod.z.object({
71
- color: zod.z.string().describe("Color of the quote"),
71
+ color: zod.z.string().describe("Color of the quote").nullable(),
72
72
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
73
73
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the quote content")
74
- }).describe("Quote block-specific properties.");
74
+ }).passthrough().describe("Quote block-specific properties.");
75
75
  const NotionUpdateBlock_TableBlockSchema = zod.z.object({
76
- table_width: zod.z.number().int().describe("Number of columns in the table (immutable after creation)"),
77
- has_row_header: zod.z.boolean().describe("Whether the table has a row header"),
78
- has_column_header: zod.z.boolean().describe("Whether the table has a column header")
79
- }).describe("Table block-specific properties.");
76
+ table_width: zod.z.number().int().describe("Number of columns in the table (immutable after creation)").nullable(),
77
+ has_row_header: zod.z.boolean().describe("Whether the table has a row header").nullable(),
78
+ has_column_header: zod.z.boolean().describe("Whether the table has a column header").nullable()
79
+ }).passthrough().describe("Table block-specific properties.");
80
80
  const NotionUpdateBlock_ToDoBlockSchema = zod.z.object({
81
- color: zod.z.string().describe("Color of the to-do item"),
82
- checked: zod.z.boolean().describe("Whether the to-do is checked"),
81
+ color: zod.z.string().describe("Color of the to-do item").nullable(),
82
+ checked: zod.z.boolean().describe("Whether the to-do is checked").nullable(),
83
83
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
84
84
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the to-do content")
85
- }).describe("To-do block-specific properties.");
85
+ }).passthrough().describe("To-do block-specific properties.");
86
86
  const NotionUpdateBlock_VideoBlockSchema = zod.z.object({
87
87
  file: NotionUpdateBlock_FileObjectSchema.nullable().optional(),
88
- type: zod.z.string().describe("Type of video: external, file, or file_upload"),
88
+ type: zod.z.string().describe("Type of video: external, file, or file_upload").nullable(),
89
89
  caption: zod.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
- }).describe("Video block-specific properties.");
93
- const NotionUpdateBlock_ColumnBlockSchema = zod.z.object({ width_ratio: zod.z.number().describe("Width ratio of the column between 0 and 1").nullable().optional() }).describe("Column block-specific properties.");
92
+ }).passthrough().describe("Video block-specific properties.");
93
+ const NotionUpdateBlock_ColumnBlockSchema = zod.z.object({ width_ratio: zod.z.number().describe("Width ratio of the column between 0 and 1").nullable().optional() }).passthrough().describe("Column block-specific properties.");
94
94
  const NotionUpdateBlock_ParentObjectSchema = zod.z.object({
95
- type: zod.z.string().describe("The type of parent. Possible values: database_id, data_source_id, page_id, workspace, block_id"),
95
+ type: zod.z.string().describe("The type of parent. Possible values: database_id, data_source_id, page_id, workspace, block_id").nullable(),
96
96
  page_id: zod.z.string().describe("UUIDv4 identifier of the parent page (present when type is 'page_id')").nullable().optional(),
97
97
  block_id: zod.z.string().describe("UUIDv4 identifier of the parent block (present when type is 'block_id')").nullable().optional(),
98
98
  workspace: zod.z.boolean().describe("Always true when type is 'workspace', indicating a top-level page").nullable().optional(),
99
99
  database_id: zod.z.string().describe("UUIDv4 identifier of the parent database (present when type is 'database_id')").nullable().optional(),
100
100
  data_source_id: zod.z.string().describe("UUIDv4 identifier of the parent data source (present when type is 'data_source_id')").nullable().optional()
101
- }).describe("Information about the block's parent.");
101
+ }).passthrough().describe("Information about the block's parent.");
102
102
  const NotionUpdateBlock_ToggleBlockSchema = zod.z.object({
103
- color: zod.z.string().describe("Color of the toggle"),
103
+ color: zod.z.string().describe("Color of the toggle").nullable(),
104
104
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
105
105
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the toggle content")
106
- }).describe("Toggle block-specific properties.");
106
+ }).passthrough().describe("Toggle block-specific properties.");
107
107
  const NotionUpdateBlock_EmojiIconSchema = zod.z.object({
108
- type: zod.z.string().describe("Always 'emoji'"),
109
- emoji: zod.z.string().describe("The emoji character")
110
- }).describe("Emoji icon object.");
108
+ type: zod.z.string().describe("Always 'emoji'").nullable(),
109
+ emoji: zod.z.string().describe("The emoji character").nullable()
110
+ }).passthrough().describe("Emoji icon object.");
111
111
  const NotionUpdateBlock_CustomEmojiDetailsSchema = zod.z.object({
112
- id: zod.z.string().describe("UUID identifier of the custom emoji"),
113
- url: zod.z.string().describe("S3 hosted image URL for the custom emoji"),
114
- name: zod.z.string().describe("Name of the custom emoji")
115
- }).describe("Custom emoji details.");
112
+ id: zod.z.string().describe("UUID identifier of the custom emoji").nullable(),
113
+ url: zod.z.string().describe("S3 hosted image URL for the custom emoji").nullable(),
114
+ name: zod.z.string().describe("Name of the custom emoji").nullable()
115
+ }).passthrough().describe("Custom emoji details.");
116
116
  const NotionUpdateBlock_CustomEmojiIconSchema = zod.z.object({
117
- type: zod.z.string().describe("Always 'custom_emoji'"),
117
+ type: zod.z.string().describe("Always 'custom_emoji'").nullable(),
118
118
  custom_emoji: NotionUpdateBlock_CustomEmojiDetailsSchema.nullable()
119
- }).describe("Custom emoji icon object.");
119
+ }).passthrough().describe("Custom emoji icon object.");
120
120
  const NotionUpdateBlock_ExternalFileIconSchema = zod.z.object({
121
- type: zod.z.string().describe("Always 'external'"),
121
+ type: zod.z.string().describe("Always 'external'").nullable(),
122
122
  external: NotionUpdateBlock_ExternalObjectSchema.nullable()
123
- }).describe("External file icon object.");
123
+ }).passthrough().describe("External file icon object.");
124
124
  const NotionUpdateBlock_NotionFileIconSchema = zod.z.object({
125
125
  file: NotionUpdateBlock_FileObjectSchema.nullable(),
126
- type: zod.z.string().describe("Always 'file'")
127
- }).describe("Notion-hosted file icon object.");
126
+ type: zod.z.string().describe("Always 'file'").nullable()
127
+ }).passthrough().describe("Notion-hosted file icon object.");
128
128
  const NotionUpdateBlock_UploadedFileIconSchema = zod.z.object({
129
- type: zod.z.string().describe("Always 'file_upload'"),
129
+ type: zod.z.string().describe("Always 'file_upload'").nullable(),
130
130
  file_upload: NotionUpdateBlock_FileUploadObjectSchema.nullable()
131
- }).describe("API-uploaded file icon object.");
131
+ }).passthrough().describe("API-uploaded file icon object.");
132
132
  const NotionUpdateBlock_CalloutBlockSchema = zod.z.object({
133
133
  icon: zod.z.union([
134
134
  NotionUpdateBlock_EmojiIconSchema,
@@ -137,67 +137,67 @@ const NotionUpdateBlock_CalloutBlockSchema = zod.z.object({
137
137
  NotionUpdateBlock_NotionFileIconSchema,
138
138
  NotionUpdateBlock_UploadedFileIconSchema
139
139
  ]).nullable().optional(),
140
- color: zod.z.string().describe("Color of the callout"),
140
+ color: zod.z.string().describe("Color of the callout").nullable(),
141
141
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the callout content")
142
- }).describe("Callout block-specific properties.");
143
- const NotionUpdateBlock_DividerBlockSchema = zod.z.object({}).describe("Divider block-specific properties (empty object).");
142
+ }).passthrough().describe("Callout block-specific properties.");
143
+ const NotionUpdateBlock_DividerBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Divider block-specific properties (empty object).");
144
144
  const NotionUpdateBlock_BookmarkBlockSchema = zod.z.object({
145
- url: zod.z.string().describe("URL of the bookmarked page"),
145
+ url: zod.z.string().describe("URL of the bookmarked page").nullable(),
146
146
  caption: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects for the bookmark caption").nullable().optional()
147
- }).describe("Bookmark block-specific properties.");
148
- const NotionUpdateBlock_EquationBlockSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX formula string for the equation") }).describe("Equation block-specific properties.");
147
+ }).passthrough().describe("Bookmark block-specific properties.");
148
+ const NotionUpdateBlock_EquationBlockSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX formula string for the equation").nullable() }).passthrough().describe("Equation block-specific properties.");
149
149
  const NotionUpdateBlock_TemplateBlockSchema = zod.z.object({
150
150
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects that define the template content").nullable().optional(),
151
151
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the template button text")
152
- }).describe("Template block-specific properties.");
152
+ }).passthrough().describe("Template block-specific properties.");
153
153
  const NotionUpdateBlock_HeadingBlockSchema = zod.z.object({
154
- color: zod.z.string().describe("Color of the heading"),
154
+ color: zod.z.string().describe("Color of the heading").nullable(),
155
155
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the heading content"),
156
- is_toggleable: zod.z.boolean().describe("Whether the heading can be toggled to show/hide content")
157
- }).describe("Heading block-specific properties (heading_1, heading_2, heading_3).");
156
+ is_toggleable: zod.z.boolean().describe("Whether the heading can be toggled to show/hide content").nullable()
157
+ }).passthrough().describe("Heading block-specific properties (heading_1, heading_2, heading_3).");
158
158
  const NotionUpdateBlock_ParagraphBlockSchema = zod.z.object({
159
- color: zod.z.string().describe("Color of the block"),
159
+ color: zod.z.string().describe("Color of the block").nullable(),
160
160
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
161
161
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the paragraph content")
162
- }).describe("Paragraph block-specific properties.");
163
- const NotionUpdateBlock_TableRowBlockSchema = zod.z.object({ cells: zod.z.array(zod.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
- const NotionUpdateBlock_BreadcrumbBlockSchema = zod.z.object({}).describe("Breadcrumb block-specific properties (empty object).");
165
- const NotionUpdateBlock_ChildPageBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child page") }).describe("Child page block-specific properties.");
162
+ }).passthrough().describe("Paragraph block-specific properties.");
163
+ const NotionUpdateBlock_TableRowBlockSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionUpdateBlock_RichTextSchema)).describe("Array of arrays, where each inner array contains rich text objects representing a cell's content") }).passthrough().describe("Table row block-specific properties.");
164
+ const NotionUpdateBlock_BreadcrumbBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Breadcrumb block-specific properties (empty object).");
165
+ const NotionUpdateBlock_ChildPageBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child page").nullable() }).passthrough().describe("Child page block-specific properties.");
166
166
  const NotionUpdateBlock_PartialUserSchema = zod.z.object({
167
- id: zod.z.string().describe("UUIDv4 identifier of the user"),
168
- object: zod.z.string().describe("Always 'user'")
169
- }).describe("Partial user object representing a Notion user.");
170
- const NotionUpdateBlock_ColumnListBlockSchema = zod.z.object({}).describe("Column list block-specific properties (empty object).");
171
- const NotionUpdateBlock_LinkPreviewBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview") }).describe("Link preview block-specific properties.");
167
+ id: zod.z.string().describe("UUIDv4 identifier of the user").nullable(),
168
+ object: zod.z.string().describe("Always 'user'").nullable()
169
+ }).passthrough().describe("Partial user object representing a Notion user.");
170
+ const NotionUpdateBlock_ColumnListBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Column list block-specific properties (empty object).");
171
+ const NotionUpdateBlock_LinkPreviewBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview").nullable() }).passthrough().describe("Link preview block-specific properties.");
172
172
  const NotionUpdateBlock_LinkToPageBlockSchema = zod.z.object({
173
- type: zod.z.string().describe("Type of linked page: page_id, database_id, or comment_id"),
173
+ type: zod.z.string().describe("Type of linked page: page_id, database_id, or comment_id").nullable(),
174
174
  page_id: zod.z.string().describe("UUIDv4 identifier of the linked page").nullable().optional(),
175
175
  comment_id: zod.z.string().describe("UUIDv4 identifier of the linked comment").nullable().optional(),
176
176
  database_id: zod.z.string().describe("UUIDv4 identifier of the linked database").nullable().optional()
177
- }).describe("Link to page block-specific properties.");
178
- const NotionUpdateBlock_SyncedFromBlockSchema = zod.z.object({ block_id: zod.z.string().describe("UUIDv4 identifier of the original synced block") }).describe("Reference to the original synced block.");
177
+ }).passthrough().describe("Link to page block-specific properties.");
178
+ const NotionUpdateBlock_SyncedFromBlockSchema = zod.z.object({ block_id: zod.z.string().describe("UUIDv4 identifier of the original synced block").nullable() }).passthrough().describe("Reference to the original synced block.");
179
179
  const NotionUpdateBlock_SyncedBlockSchema = zod.z.object({
180
180
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
181
181
  synced_from: NotionUpdateBlock_SyncedFromBlockSchema.nullable().optional()
182
- }).describe("Synced block-specific properties.");
183
- const NotionUpdateBlock_ChildDatabaseBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child database") }).describe("Child database block-specific properties.");
184
- const NotionUpdateBlock_TableOfContentsBlockSchema = zod.z.object({ color: zod.z.string().describe("Color of the table of contents").nullable().optional() }).describe("Table of contents block-specific properties.");
182
+ }).passthrough().describe("Synced block-specific properties.");
183
+ const NotionUpdateBlock_ChildDatabaseBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child database").nullable() }).passthrough().describe("Child database block-specific properties.");
184
+ const NotionUpdateBlock_TableOfContentsBlockSchema = zod.z.object({ color: zod.z.string().describe("Color of the table of contents").nullable().optional() }).passthrough().describe("Table of contents block-specific properties.");
185
185
  const NotionUpdateBlock_BulletedListItemBlockSchema = zod.z.object({
186
- color: zod.z.string().describe("Color of the list item"),
186
+ color: zod.z.string().describe("Color of the list item").nullable(),
187
187
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
188
188
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the list item content")
189
- }).describe("Bulleted list item block-specific properties.");
189
+ }).passthrough().describe("Bulleted list item block-specific properties.");
190
190
  const NotionUpdateBlock_NumberedListItemBlockSchema = zod.z.object({
191
- color: zod.z.string().describe("Color of the list item"),
191
+ color: zod.z.string().describe("Color of the list item").nullable(),
192
192
  children: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of nested block objects").nullable().optional(),
193
193
  rich_text: zod.z.array(NotionUpdateBlock_RichTextSchema).describe("Array of rich text objects containing the list item content")
194
- }).describe("Numbered list item block-specific properties.");
194
+ }).passthrough().describe("Numbered list item block-specific properties.");
195
195
  const NotionUpdateBlockOutput = zod.z.object({
196
- id: zod.z.string().describe("Unique identifier of the block in UUIDv4 format"),
196
+ id: zod.z.string().describe("Unique identifier of the block in UUIDv4 format").nullable(),
197
197
  pdf: NotionUpdateBlock_PdfBlockSchema.nullable().optional(),
198
198
  code: NotionUpdateBlock_CodeBlockSchema.nullable().optional(),
199
199
  file: NotionUpdateBlock_FileBlockSchema.nullable().optional(),
200
- type: zod.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"),
200
+ type: zod.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(),
201
201
  audio: NotionUpdateBlock_AudioBlockSchema.nullable().optional(),
202
202
  embed: NotionUpdateBlock_EmbedBlockSchema.nullable().optional(),
203
203
  image: NotionUpdateBlock_ImageBlockSchema.nullable().optional(),
@@ -206,7 +206,7 @@ const NotionUpdateBlockOutput = zod.z.object({
206
206
  to_do: NotionUpdateBlock_ToDoBlockSchema.nullable().optional(),
207
207
  video: NotionUpdateBlock_VideoBlockSchema.nullable().optional(),
208
208
  column: NotionUpdateBlock_ColumnBlockSchema.nullable().optional(),
209
- object: zod.z.string().describe("Always 'block'"),
209
+ object: zod.z.string().describe("Always 'block'").nullable(),
210
210
  parent: NotionUpdateBlock_ParentObjectSchema.nullable(),
211
211
  toggle: NotionUpdateBlock_ToggleBlockSchema.nullable().optional(),
212
212
  callout: NotionUpdateBlock_CalloutBlockSchema.nullable().optional(),
@@ -236,7 +236,7 @@ const NotionUpdateBlockOutput = zod.z.object({
236
236
  table_of_contents: NotionUpdateBlock_TableOfContentsBlockSchema.nullable().optional(),
237
237
  bulleted_list_item: NotionUpdateBlock_BulletedListItemBlockSchema.nullable().optional(),
238
238
  numbered_list_item: NotionUpdateBlock_NumberedListItemBlockSchema.nullable().optional()
239
- }).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.");
239
+ }).passthrough().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.");
240
240
  const notionUpdateBlock = require_action.action("NOTION_UPDATE_BLOCK", {
241
241
  slug: "notion-update-block",
242
242
  name: "Update block",