@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 +1 @@
1
- {"version":3,"file":"duplicate-page.mjs","names":[],"sources":["../../src/actions/duplicate-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionDuplicatePageInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"An optional new title for the duplicated page. If not provided, the title of the original page will be used, prefixed with 'Copy of'.\").optional(),\n page_id: z.string().describe(\"The unique identifier (UUID v4) of the Notion page to be duplicated. Ensure this page exists and is accessible.\"),\n parent_id: z.string().describe(\"The unique identifier (UUID v4) of the Notion page or database that will serve as the parent for the duplicated page. If a database ID is provided, the new page is created as a row in that database with properties preserved. If a page ID is provided, the new page is created as a child page with only the title. This ID cannot be the same as `page_id`.\"),\n}).describe(\"Defines the parameters for duplicating a Notion page.\");\nconst NotionDuplicatePage_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'emoji'.\"),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\"),\n}).describe(\"Standard emoji icon.\");\nconst NotionDuplicatePage_CustomEmojiMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID format).\"),\n url: z.string().describe(\"URL to the custom emoji image.\"),\n name: z.string().describe(\"Name of the custom emoji.\"),\n}).describe(\"Custom emoji metadata.\");\nconst NotionDuplicatePage_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\"),\n custom_emoji: NotionDuplicatePage_CustomEmojiMetadataSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionDuplicatePage_ExternalFileMetadataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n}).describe(\"External file metadata.\");\nconst NotionDuplicatePage_ExternalIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionDuplicatePage_ExternalFileMetadataSchema.nullable(),\n}).describe(\"External file icon.\");\nconst NotionDuplicatePage_NotionFileMetadataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Timestamp when the URL expires (ISO 8601 format).\"),\n}).describe(\"Notion-hosted file metadata.\");\nconst NotionDuplicatePage_NotionFileIconSchema: z.ZodTypeAny = z.object({\n file: NotionDuplicatePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Notion-hosted file icon.\");\nconst NotionDuplicatePage_FileUploadMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of a File Upload object with status 'uploaded' (UUID format).\"),\n}).describe(\"File upload metadata.\");\nconst NotionDuplicatePage_FileUploadIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'file_upload'.\"),\n file_upload: NotionDuplicatePage_FileUploadMetadataSchema.nullable(),\n}).describe(\"API-uploaded file icon.\");\nconst NotionDuplicatePage_ExternalCoverSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionDuplicatePage_ExternalFileMetadataSchema.nullable(),\n}).describe(\"External cover image.\");\nconst NotionDuplicatePage_NotionFileCoverSchema: z.ZodTypeAny = z.object({\n file: NotionDuplicatePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Notion-hosted cover image.\");\nconst NotionDuplicatePage_FileUploadCoverSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'file_upload'.\"),\n file_upload: NotionDuplicatePage_FileUploadMetadataSchema.nullable(),\n}).describe(\"API-uploaded cover image.\");\nconst NotionDuplicatePage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'database_id'.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n}).describe(\"Database parent (deprecated for pages, use data_source_id).\");\nconst NotionDuplicatePage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\"),\n database_id: z.string().describe(\"UUID of the containing database (convenience field).\"),\n data_source_id: z.string().describe(\"UUID of the parent data source.\"),\n}).describe(\"Data source parent (for pages in databases).\");\nconst NotionDuplicatePage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'page_id'.\"),\n page_id: z.string().describe(\"UUID of the parent page.\"),\n}).describe(\"Page parent.\");\nconst NotionDuplicatePage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'workspace'.\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Workspace parent.\");\nconst NotionDuplicatePage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'block_id'.\"),\n block_id: z.string().describe(\"UUID of the parent block.\"),\n}).describe(\"Block parent.\");\nconst NotionDuplicatePage_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"Partial user object.\");\nexport const NotionDuplicatePageOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page (UUIDv4 format).\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionDuplicatePage_EmojiIconSchema, NotionDuplicatePage_CustomEmojiIconSchema, NotionDuplicatePage_ExternalIconSchema, NotionDuplicatePage_NotionFileIconSchema, NotionDuplicatePage_FileUploadIconSchema]).nullable().optional(),\n cover: z.union([NotionDuplicatePage_ExternalCoverSchema, NotionDuplicatePage_NotionFileCoverSchema, NotionDuplicatePage_FileUploadCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: z.union([NotionDuplicatePage_DatabaseParentSchema, NotionDuplicatePage_DataSourceParentSchema, NotionDuplicatePage_PageParentSchema, NotionDuplicatePage_WorkspaceParentSchema, NotionDuplicatePage_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page has been archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionDuplicatePage_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Each property key maps to a PropertyValue object with an id, type, and type-specific value. For database pages, properties conform to the database schema. For standalone pages, typically only a 'title' property is present.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when the page was created (ISO 8601 format).\").nullable().optional(),\n last_edited_by: NotionDuplicatePage_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when the page was last edited (ISO 8601 format).\").nullable().optional(),\n}).describe(\"Page object returned when duplicating a page. Note: Notion API does not have a dedicated 'duplicate page' endpoint. Duplication is achieved by creating a page with a template parameter, which returns a standard page object.\");\n\nexport const notionDuplicatePage = action(\"NOTION_DUPLICATE_PAGE\", {\n slug: \"notion-duplicate-page\",\n name: \"Duplicate page\",\n description: \"Duplicates a Notion page, including all its content, properties, and nested blocks, under a specified parent page or workspace.\",\n input: NotionDuplicatePageInput,\n output: NotionDuplicatePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC7K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kWAAkW;AACnY,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM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AS;EACxF,YAAY,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6PAA6P,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrT,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,gBAAgB,sCAAsC,SAAS,CAAC,CAAC,SAAS;EAC1E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,iOAOF;AACV,CAAC"}
1
+ {"version":3,"file":"duplicate-page.mjs","names":[],"sources":["../../src/actions/duplicate-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionDuplicatePageInput = z.object({\n title: z.string().describe(\"An optional new title for the duplicated page. If not provided, the title of the original page will be used, prefixed with 'Copy of'.\").optional(),\n page_id: z.string().describe(\"The unique identifier (UUID v4) of the Notion page to be duplicated. Ensure this page exists and is accessible.\"),\n parent_id: z.string().describe(\"The unique identifier (UUID v4) of the Notion page or database that will serve as the parent for the duplicated page. If a database ID is provided, the new page is created as a row in that database with properties preserved. If a page ID is provided, the new page is created as a child page with only the title. This ID cannot be the same as `page_id`.\"),\n}).describe(\"Defines the parameters for duplicating a Notion page.\");\nconst NotionDuplicatePage_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\").nullable(),\n}).passthrough().describe(\"Standard emoji icon.\");\nconst NotionDuplicatePage_CustomEmojiMetadataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID format).\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji metadata.\");\nconst NotionDuplicatePage_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionDuplicatePage_CustomEmojiMetadataSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon.\");\nconst NotionDuplicatePage_ExternalFileMetadataSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough().describe(\"External file metadata.\");\nconst NotionDuplicatePage_ExternalIconSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionDuplicatePage_ExternalFileMetadataSchema.nullable(),\n}).passthrough().describe(\"External file icon.\");\nconst NotionDuplicatePage_NotionFileMetadataSchema = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Timestamp when the URL expires (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Notion-hosted file metadata.\");\nconst NotionDuplicatePage_NotionFileIconSchema = z.object({\n file: NotionDuplicatePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file icon.\");\nconst NotionDuplicatePage_FileUploadMetadataSchema = z.object({\n id: z.string().describe(\"ID of a File Upload object with status 'uploaded' (UUID format).\").nullable(),\n}).passthrough().describe(\"File upload metadata.\");\nconst NotionDuplicatePage_FileUploadIconSchema = z.object({\n type: z.string().describe(\"Always 'file_upload'.\").nullable(),\n file_upload: NotionDuplicatePage_FileUploadMetadataSchema.nullable(),\n}).passthrough().describe(\"API-uploaded file icon.\");\nconst NotionDuplicatePage_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionDuplicatePage_ExternalFileMetadataSchema.nullable(),\n}).passthrough().describe(\"External cover image.\");\nconst NotionDuplicatePage_NotionFileCoverSchema = z.object({\n file: NotionDuplicatePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough().describe(\"Notion-hosted cover image.\");\nconst NotionDuplicatePage_FileUploadCoverSchema = z.object({\n type: z.string().describe(\"Always 'file_upload'.\").nullable(),\n file_upload: NotionDuplicatePage_FileUploadMetadataSchema.nullable(),\n}).passthrough().describe(\"API-uploaded cover image.\");\nconst NotionDuplicatePage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough().describe(\"Database parent (deprecated for pages, use data_source_id).\");\nconst NotionDuplicatePage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the containing database (convenience field).\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough().describe(\"Data source parent (for pages in databases).\");\nconst NotionDuplicatePage_PageParentSchema = z.object({\n type: z.string().describe(\"Always 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough().describe(\"Page parent.\");\nconst NotionDuplicatePage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).passthrough().describe(\"Workspace parent.\");\nconst NotionDuplicatePage_BlockParentSchema = z.object({\n type: z.string().describe(\"Always 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough().describe(\"Block parent.\");\nconst NotionDuplicatePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough().describe(\"Partial user object.\");\nexport const NotionDuplicatePageOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionDuplicatePage_EmojiIconSchema, NotionDuplicatePage_CustomEmojiIconSchema, NotionDuplicatePage_ExternalIconSchema, NotionDuplicatePage_NotionFileIconSchema, NotionDuplicatePage_FileUploadIconSchema]).nullable().optional(),\n cover: z.union([NotionDuplicatePage_ExternalCoverSchema, NotionDuplicatePage_NotionFileCoverSchema, NotionDuplicatePage_FileUploadCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: z.union([NotionDuplicatePage_DatabaseParentSchema, NotionDuplicatePage_DataSourceParentSchema, NotionDuplicatePage_PageParentSchema, NotionDuplicatePage_WorkspaceParentSchema, NotionDuplicatePage_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page has been archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionDuplicatePage_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Each property key maps to a PropertyValue object with an id, type, and type-specific value. For database pages, properties conform to the database schema. For standalone pages, typically only a 'title' property is present.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when the page was created (ISO 8601 format).\").nullable().optional(),\n last_edited_by: NotionDuplicatePage_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when the page was last edited (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Page object returned when duplicating a page. Note: Notion API does not have a dedicated 'duplicate page' endpoint. Duplication is achieved by creating a page with a template parameter, which returns a standard page object.\");\n\nexport const notionDuplicatePage = action(\"NOTION_DUPLICATE_PAGE\", {\n slug: \"notion-duplicate-page\",\n name: \"Duplicate page\",\n description: \"Duplicates a Notion page, including all its content, properties, and nested blocks, under a specified parent page or workspace.\",\n input: NotionDuplicatePageInput,\n output: NotionDuplicatePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,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AG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6PAA6P,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1U,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,gBAAgB,sCAAsC,SAAS,CAAC,CAAC,SAAS;EAC1E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iOAOhB;AACV,CAAC"}
@@ -9,140 +9,140 @@ const NotionFetchAllBlockContentsInput = zod.z.object({
9
9
  recursive: zod.z.boolean().default(false).describe("If true, fetches nested children for blocks with 'has_children' set to true, appending all descendants to the output list. Subject to max_depth and max_blocks limits.").optional(),
10
10
  max_blocks: zod.z.number().int().default(5e3).describe("Maximum total blocks to return when recursive=true. Prevents runaway fetches on extremely large block trees. Defaults to 5000. When limit is reached, blocks fetched so far are returned with a warning in the response.").optional()
11
11
  }).describe("Request parameters for fetching all block children with optional recursion.");
12
- const NotionFetchAllBlockContents_BlockPaginationMetadataSchema = zod.z.object({}).describe("Type-specific pagination metadata for block results.\nFor block children endpoint, this is typically an empty object.");
12
+ const NotionFetchAllBlockContents_BlockPaginationMetadataSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Type-specific pagination metadata for block results.\nFor block children endpoint, this is typically an empty object.");
13
13
  const NotionFetchAllBlockContents_HostedFileSchema = zod.z.object({
14
- url: zod.z.string().describe("URL of the hosted file (authenticated and temporary)."),
14
+ url: zod.z.string().describe("URL of the hosted file (authenticated and temporary).").nullable(),
15
15
  expiry_time: zod.z.string().describe("Expiration time of the file URL in ISO 8601 format.").nullable().optional()
16
- }).describe("Hosted file information.");
17
- const NotionFetchAllBlockContents_TextLinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.") }).describe("Link object within text.");
16
+ }).passthrough().describe("Hosted file information.");
17
+ const NotionFetchAllBlockContents_TextLinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.").nullable() }).passthrough().describe("Link object within text.");
18
18
  const NotionFetchAllBlockContents_TextContentSchema = zod.z.object({
19
19
  link: NotionFetchAllBlockContents_TextLinkSchema.nullable().optional(),
20
- content: zod.z.string().describe("Actual text content.")
21
- }).describe("Text-specific content.");
20
+ content: zod.z.string().describe("Actual text content.").nullable()
21
+ }).passthrough().describe("Text-specific content.");
22
22
  const NotionFetchAllBlockContents_DateMentionValueSchema = zod.z.object({
23
23
  end: zod.z.string().describe("End date in ISO 8601 format, or null for single dates.").nullable().optional(),
24
- start: zod.z.string().describe("Start date in ISO 8601 format."),
24
+ start: zod.z.string().describe("Start date in ISO 8601 format.").nullable(),
25
25
  time_zone: zod.z.string().describe("Time zone information if applicable.").nullable().optional()
26
- }).describe("Date value within a mention.");
27
- const NotionFetchAllBlockContents_PageMentionReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUIDv4 identifier for the mentioned page.") }).describe("Page reference within a mention.");
28
- const NotionFetchAllBlockContents_BotOwnerSchema = zod.z.object({ type: zod.z.string().describe("Either 'workspace' or 'user'.").nullable().optional() }).describe("Bot owner information.");
26
+ }).passthrough().describe("Date value within a mention.");
27
+ const NotionFetchAllBlockContents_PageMentionReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUIDv4 identifier for the mentioned page.").nullable() }).passthrough().describe("Page reference within a mention.");
28
+ const NotionFetchAllBlockContents_BotOwnerSchema = zod.z.object({ type: zod.z.string().describe("Either 'workspace' or 'user'.").nullable().optional() }).passthrough().describe("Bot owner information.");
29
29
  const NotionFetchAllBlockContents_BotInfoSchema = zod.z.object({
30
30
  owner: NotionFetchAllBlockContents_BotOwnerSchema.nullable().optional(),
31
31
  workspace_name: zod.z.string().describe("Workspace name; null if owner is a user.").nullable().optional()
32
- }).describe("Bot-specific user information.");
33
- const NotionFetchAllBlockContents_PersonInfoSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person. Only present if integration has user capabilities.").nullable().optional() }).describe("Person-specific user information.");
32
+ }).passthrough().describe("Bot-specific user information.");
33
+ const NotionFetchAllBlockContents_PersonInfoSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person. Only present if integration has user capabilities.").nullable().optional() }).passthrough().describe("Person-specific user information.");
34
34
  const NotionFetchAllBlockContents_UserSchema = zod.z.object({
35
- id: zod.z.string().describe("Unique identifier for the user (UUID)."),
35
+ id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
36
36
  bot: NotionFetchAllBlockContents_BotInfoSchema.nullable().optional(),
37
37
  name: zod.z.string().describe("User's name as displayed in Notion.").nullable().optional(),
38
38
  type: zod.z.string().describe("Either 'person' or 'bot'.").nullable().optional(),
39
- object: zod.z.string().describe("Always 'user'."),
39
+ object: zod.z.string().describe("Always 'user'.").nullable(),
40
40
  person: NotionFetchAllBlockContents_PersonInfoSchema.nullable().optional(),
41
41
  avatar_url: zod.z.string().describe("URL of the user's chosen avatar image.").nullable().optional()
42
- }).describe("User object representing a Notion user.");
43
- const NotionFetchAllBlockContents_DatabaseMentionReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUIDv4 identifier for the mentioned database.") }).describe("Database reference within a mention.");
44
- const NotionFetchAllBlockContents_LinkPreviewMentionValueSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview.") }).describe("Link preview value within a mention.");
42
+ }).passthrough().describe("User object representing a Notion user.");
43
+ const NotionFetchAllBlockContents_DatabaseMentionReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUIDv4 identifier for the mentioned database.").nullable() }).passthrough().describe("Database reference within a mention.");
44
+ const NotionFetchAllBlockContents_LinkPreviewMentionValueSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview.").nullable() }).passthrough().describe("Link preview value within a mention.");
45
45
  const NotionFetchAllBlockContents_TemplateMentionDateValueSchema = zod.z.object({
46
- type: zod.z.string().describe("Type of template mention date: 'template_mention_date'."),
47
- template_mention_date: zod.z.string().describe("Template date value: 'today' or 'now'.")
48
- }).describe("Template mention date value.");
46
+ type: zod.z.string().describe("Type of template mention date: 'template_mention_date'.").nullable(),
47
+ template_mention_date: zod.z.string().describe("Template date value: 'today' or 'now'.").nullable()
48
+ }).passthrough().describe("Template mention date value.");
49
49
  const NotionFetchAllBlockContents_TemplateMentionUserValueSchema = zod.z.object({
50
- type: zod.z.string().describe("Type of template mention user: 'template_mention_user'."),
51
- template_mention_user: zod.z.string().describe("Template user value: 'me'.")
52
- }).describe("Template mention user value.");
50
+ type: zod.z.string().describe("Type of template mention user: 'template_mention_user'.").nullable(),
51
+ template_mention_user: zod.z.string().describe("Template user value: 'me'.").nullable()
52
+ }).passthrough().describe("Template mention user value.");
53
53
  const NotionFetchAllBlockContents_MentionObjectSchema = zod.z.object({
54
54
  date: NotionFetchAllBlockContents_DateMentionValueSchema.nullable().optional(),
55
55
  page: NotionFetchAllBlockContents_PageMentionReferenceSchema.nullable().optional(),
56
- type: zod.z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'."),
56
+ type: zod.z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.").nullable(),
57
57
  user: NotionFetchAllBlockContents_UserSchema.nullable().optional(),
58
58
  database: NotionFetchAllBlockContents_DatabaseMentionReferenceSchema.nullable().optional(),
59
59
  link_preview: NotionFetchAllBlockContents_LinkPreviewMentionValueSchema.nullable().optional(),
60
60
  template_mention: zod.z.union([NotionFetchAllBlockContents_TemplateMentionDateValueSchema, NotionFetchAllBlockContents_TemplateMentionUserValueSchema]).nullable().optional()
61
- }).describe("Mention object containing reference to database, date, link_preview, page, template_mention, or user.");
62
- const NotionFetchAllBlockContents_EquationContentSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX formula representation.") }).describe("Equation-specific content.");
61
+ }).passthrough().describe("Mention object containing reference to database, date, link_preview, page, template_mention, or user.");
62
+ const NotionFetchAllBlockContents_EquationContentSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX formula representation.").nullable() }).passthrough().describe("Equation-specific content.");
63
63
  const NotionFetchAllBlockContents_AnnotationsSchema = zod.z.object({
64
- bold: zod.z.boolean().describe("Whether text is bold."),
65
- code: zod.z.boolean().describe("Whether text is formatted as code."),
66
- color: zod.z.string().describe("Color of the text (e.g., 'default', 'blue', 'green', 'red', or background variants)."),
67
- italic: zod.z.boolean().describe("Whether text is italic."),
68
- underline: zod.z.boolean().describe("Whether text is underlined."),
69
- strikethrough: zod.z.boolean().describe("Whether text has strikethrough.")
70
- }).describe("Styling configuration for rich text.");
64
+ bold: zod.z.boolean().describe("Whether text is bold.").nullable(),
65
+ code: zod.z.boolean().describe("Whether text is formatted as code.").nullable(),
66
+ color: zod.z.string().describe("Color of the text (e.g., 'default', 'blue', 'green', 'red', or background variants).").nullable(),
67
+ italic: zod.z.boolean().describe("Whether text is italic.").nullable(),
68
+ underline: zod.z.boolean().describe("Whether text is underlined.").nullable(),
69
+ strikethrough: zod.z.boolean().describe("Whether text has strikethrough.").nullable()
70
+ }).passthrough().describe("Styling configuration for rich text.");
71
71
  const NotionFetchAllBlockContents_RichTextSchema = zod.z.object({
72
72
  href: zod.z.string().describe("URL for links or Notion mentions.").nullable().optional(),
73
73
  text: NotionFetchAllBlockContents_TextContentSchema.nullable().optional(),
74
- type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
74
+ type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
75
75
  mention: NotionFetchAllBlockContents_MentionObjectSchema.nullable().optional(),
76
76
  equation: NotionFetchAllBlockContents_EquationContentSchema.nullable().optional(),
77
- plain_text: zod.z.string().describe("Unformatted text content."),
77
+ plain_text: zod.z.string().describe("Unformatted text content.").nullable(),
78
78
  annotations: NotionFetchAllBlockContents_AnnotationsSchema.nullable()
79
- }).describe("Rich text object.");
80
- const NotionFetchAllBlockContents_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.") }).describe("External file information.");
79
+ }).passthrough().describe("Rich text object.");
80
+ const NotionFetchAllBlockContents_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file information.");
81
81
  const NotionFetchAllBlockContents_FileBlockSchema = zod.z.object({
82
82
  file: NotionFetchAllBlockContents_HostedFileSchema.nullable().optional(),
83
- type: zod.z.string().describe("Type of file: 'external' or 'file'."),
83
+ type: zod.z.string().describe("Type of file: 'external' or 'file'.").nullable(),
84
84
  caption: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects for the caption.").nullable().optional(),
85
85
  external: NotionFetchAllBlockContents_ExternalFileSchema.nullable().optional()
86
- }).describe("File/Image/Video/PDF block content.");
86
+ }).passthrough().describe("File/Image/Video/PDF block content.");
87
87
  const NotionFetchAllBlockContents_CodeBlockSchema = zod.z.object({
88
88
  caption: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects for the code caption.").nullable().optional(),
89
- language: zod.z.string().describe("Programming language of the code block."),
89
+ language: zod.z.string().describe("Programming language of the code block.").nullable(),
90
90
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the code content.")
91
- }).describe("Code block content.");
92
- const NotionFetchAllBlockContents_EmbedBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the embed.") }).describe("Embed block content.");
91
+ }).passthrough().describe("Code block content.");
92
+ const NotionFetchAllBlockContents_EmbedBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the embed.").nullable() }).passthrough().describe("Embed block content.");
93
93
  const NotionFetchAllBlockContents_QuoteBlockSchema = zod.z.object({
94
94
  color: zod.z.string().describe("Color of the quote block.").nullable().optional(),
95
95
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the quote content.")
96
- }).describe("Quote block content.");
96
+ }).passthrough().describe("Quote block content.");
97
97
  const NotionFetchAllBlockContents_TableBlockSchema = zod.z.object({
98
- table_width: zod.z.number().int().describe("Number of columns in the table."),
98
+ table_width: zod.z.number().int().describe("Number of columns in the table.").nullable(),
99
99
  has_row_header: zod.z.boolean().describe("Whether the table has a row header.").nullable().optional(),
100
100
  has_column_header: zod.z.boolean().describe("Whether the table has a column header.").nullable().optional()
101
- }).describe("Table block content.");
101
+ }).passthrough().describe("Table block content.");
102
102
  const NotionFetchAllBlockContents_ToDoBlockSchema = zod.z.object({
103
103
  color: zod.z.string().describe("Color of the to-do block.").nullable().optional(),
104
104
  checked: zod.z.boolean().describe("Whether the to-do is checked.").nullable().optional(),
105
105
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the to-do content.")
106
- }).describe("To-do block content.");
107
- const NotionFetchAllBlockContents_ColumnBlockSchema = zod.z.object({}).describe("Column block content (empty object but has children blocks).");
106
+ }).passthrough().describe("To-do block content.");
107
+ const NotionFetchAllBlockContents_ColumnBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Column block content (empty object but has children blocks).");
108
108
  const NotionFetchAllBlockContents_ParentInfoSchema = zod.z.object({
109
- type: zod.z.string().describe("Type of parent: 'page_id', 'database_id', 'block_id', 'data_source_id', or 'workspace'."),
109
+ type: zod.z.string().describe("Type of parent: 'page_id', 'database_id', 'block_id', 'data_source_id', or 'workspace'.").nullable(),
110
110
  page_id: zod.z.string().describe("ID of the parent page (UUIDv4). Present when type is 'page_id'.").nullable().optional(),
111
111
  block_id: zod.z.string().describe("ID of the parent block (UUIDv4). Present when type is 'block_id'.").nullable().optional(),
112
112
  workspace: zod.z.boolean().describe("Always true when type is 'workspace', indicating a top-level block.").nullable().optional(),
113
113
  database_id: zod.z.string().describe("ID of the parent database (UUIDv4). Present when type is 'database_id'.").nullable().optional(),
114
114
  data_source_id: zod.z.string().describe("ID of the parent data source (UUIDv4). Present when type is 'data_source_id'.").nullable().optional()
115
- }).describe("Information about the block's parent.");
115
+ }).passthrough().describe("Information about the block's parent.");
116
116
  const NotionFetchAllBlockContents_ToggleBlockSchema = zod.z.object({
117
117
  color: zod.z.string().describe("Color of the toggle block.").nullable().optional(),
118
118
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the toggle content.")
119
- }).describe("Toggle block content.");
119
+ }).passthrough().describe("Toggle block content.");
120
120
  const NotionFetchAllBlockContents_EmojiIconSchema = zod.z.object({
121
121
  type: zod.z.string().default("emoji").describe("Always 'emoji' for standard emoji icons.").nullable().optional(),
122
- emoji: zod.z.string().describe("Emoji character (e.g., '😻').")
123
- }).describe("Emoji icon object.");
122
+ emoji: zod.z.string().describe("Emoji character (e.g., '😻').").nullable()
123
+ }).passthrough().describe("Emoji icon object.");
124
124
  const NotionFetchAllBlockContents_CustomEmojiValueSchema = zod.z.object({
125
- id: zod.z.string().describe("Unique identifier for the custom emoji."),
125
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
126
126
  url: zod.z.string().describe("HTTP link to the custom emoji image.").nullable().optional(),
127
127
  name: zod.z.string().describe("Display name of the custom emoji.").nullable().optional()
128
- }).describe("Custom emoji value containing id, name, and url.");
128
+ }).passthrough().describe("Custom emoji value containing id, name, and url.");
129
129
  const NotionFetchAllBlockContents_CustomEmojiIconSchema = zod.z.object({
130
130
  type: zod.z.string().default("custom_emoji").describe("Always 'custom_emoji' for custom emoji icons.").nullable().optional(),
131
131
  custom_emoji: NotionFetchAllBlockContents_CustomEmojiValueSchema.nullable()
132
- }).describe("Custom emoji icon object.");
133
- const NotionFetchAllBlockContents_ExternalIconFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the external icon file.") }).describe("External file information for icon.");
132
+ }).passthrough().describe("Custom emoji icon object.");
133
+ const NotionFetchAllBlockContents_ExternalIconFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the external icon file.").nullable() }).passthrough().describe("External file information for icon.");
134
134
  const NotionFetchAllBlockContents_ExternalIconSchema = zod.z.object({
135
135
  type: zod.z.string().default("external").describe("Always 'external' for external file icons.").nullable().optional(),
136
136
  external: NotionFetchAllBlockContents_ExternalIconFileSchema.nullable()
137
- }).describe("External file icon object.");
137
+ }).passthrough().describe("External file icon object.");
138
138
  const NotionFetchAllBlockContents_HostedIconFileSchema = zod.z.object({
139
- url: zod.z.string().describe("URL of the hosted icon file (authenticated and temporary)."),
139
+ url: zod.z.string().describe("URL of the hosted icon file (authenticated and temporary).").nullable(),
140
140
  expiry_time: zod.z.string().describe("Expiration time of the file URL in ISO 8601 format.").nullable().optional()
141
- }).describe("Hosted file information for icon.");
141
+ }).passthrough().describe("Hosted file information for icon.");
142
142
  const NotionFetchAllBlockContents_FileIconSchema = zod.z.object({
143
143
  file: NotionFetchAllBlockContents_HostedIconFileSchema.nullable(),
144
144
  type: zod.z.string().default("file").describe("Always 'file' for Notion-hosted file icons.").nullable().optional()
145
- }).describe("Notion-hosted file icon object.");
145
+ }).passthrough().describe("Notion-hosted file icon object.");
146
146
  const NotionFetchAllBlockContents_CalloutBlockSchema = zod.z.object({
147
147
  icon: zod.z.union([
148
148
  NotionFetchAllBlockContents_EmojiIconSchema,
@@ -152,48 +152,48 @@ const NotionFetchAllBlockContents_CalloutBlockSchema = zod.z.object({
152
152
  ]).nullable().optional(),
153
153
  color: zod.z.string().describe("Color of the callout block.").nullable().optional(),
154
154
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the callout content.")
155
- }).describe("Callout block content.");
156
- const NotionFetchAllBlockContents_DividerBlockSchema = zod.z.object({}).describe("Divider block content (empty object).");
155
+ }).passthrough().describe("Callout block content.");
156
+ const NotionFetchAllBlockContents_DividerBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Divider block content (empty object).");
157
157
  const NotionFetchAllBlockContents_BookmarkBlockSchema = zod.z.object({
158
- url: zod.z.string().describe("URL of the bookmark."),
158
+ url: zod.z.string().describe("URL of the bookmark.").nullable(),
159
159
  caption: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects for the bookmark caption.").nullable().optional()
160
- }).describe("Bookmark block content.");
161
- const NotionFetchAllBlockContents_EquationBlockSchema = zod.z.object({ expression: zod.z.string().describe("KaTeX compatible string representing the equation.") }).describe("Equation block content.");
162
- const NotionFetchAllBlockContents_TemplateBlockSchema = zod.z.object({ rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects for template content.") }).describe("Template block content.");
160
+ }).passthrough().describe("Bookmark block content.");
161
+ const NotionFetchAllBlockContents_EquationBlockSchema = zod.z.object({ expression: zod.z.string().describe("KaTeX compatible string representing the equation.").nullable() }).passthrough().describe("Equation block content.");
162
+ const NotionFetchAllBlockContents_TemplateBlockSchema = zod.z.object({ rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects for template content.") }).passthrough().describe("Template block content.");
163
163
  const NotionFetchAllBlockContents_HeadingBlockSchema = zod.z.object({
164
164
  color: zod.z.string().describe("Color of the heading block.").nullable().optional(),
165
165
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the heading content.")
166
- }).describe("Heading block content (heading_1, heading_2, heading_3).");
166
+ }).passthrough().describe("Heading block content (heading_1, heading_2, heading_3).");
167
167
  const NotionFetchAllBlockContents_ParagraphBlockSchema = zod.z.object({
168
168
  color: zod.z.string().describe("Color of the paragraph block (e.g., 'default', 'blue', 'green', 'red').").nullable().optional(),
169
169
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the paragraph content.")
170
- }).describe("Paragraph block content.");
171
- const NotionFetchAllBlockContents_TableRowBlockSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionFetchAllBlockContents_RichTextSchema)).describe("Array of arrays, where each inner array contains rich text objects for a cell.") }).describe("Table row block content.");
172
- const NotionFetchAllBlockContents_BreadcrumbBlockSchema = zod.z.object({}).describe("Breadcrumb block content (empty object).");
173
- const NotionFetchAllBlockContents_ChildPageBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child page.") }).describe("Child page block content.");
174
- const NotionFetchAllBlockContents_ColumnListBlockSchema = zod.z.object({}).describe("Column list block content (empty object but has children columns).");
175
- const NotionFetchAllBlockContents_UnsupportedBlockSchema = zod.z.object({}).describe("Unsupported block content.");
176
- const NotionFetchAllBlockContents_LinkPreviewBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview.") }).describe("Link preview block content.");
170
+ }).passthrough().describe("Paragraph block content.");
171
+ const NotionFetchAllBlockContents_TableRowBlockSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionFetchAllBlockContents_RichTextSchema)).describe("Array of arrays, where each inner array contains rich text objects for a cell.") }).passthrough().describe("Table row block content.");
172
+ const NotionFetchAllBlockContents_BreadcrumbBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Breadcrumb block content (empty object).");
173
+ const NotionFetchAllBlockContents_ChildPageBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child page.").nullable() }).passthrough().describe("Child page block content.");
174
+ const NotionFetchAllBlockContents_ColumnListBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Column list block content (empty object but has children columns).");
175
+ const NotionFetchAllBlockContents_UnsupportedBlockSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Unsupported block content.");
176
+ const NotionFetchAllBlockContents_LinkPreviewBlockSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview.").nullable() }).passthrough().describe("Link preview block content.");
177
177
  const NotionFetchAllBlockContents_LinkToPageBlockSchema = zod.z.object({
178
- type: zod.z.string().describe("Type of linked page: 'page_id', 'database_id', or 'comment_id'."),
178
+ type: zod.z.string().describe("Type of linked page: 'page_id', 'database_id', or 'comment_id'.").nullable(),
179
179
  page_id: zod.z.string().describe("ID of the linked page.").nullable().optional(),
180
180
  comment_id: zod.z.string().describe("ID of the linked comment.").nullable().optional(),
181
181
  database_id: zod.z.string().describe("ID of the linked database.").nullable().optional()
182
- }).describe("Link to page block content.");
183
- const NotionFetchAllBlockContents_SyncedFromInfoSchema = zod.z.object({ block_id: zod.z.string().describe("ID of the original synced block.").nullable().optional() }).describe("Synced from information.");
184
- const NotionFetchAllBlockContents_SyncedBlockSchema = zod.z.object({ synced_from: NotionFetchAllBlockContents_SyncedFromInfoSchema.nullable().optional() }).describe("Synced block content.");
185
- const NotionFetchAllBlockContents_ChildDatabaseBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child database.") }).describe("Child database block content.");
186
- const NotionFetchAllBlockContents_TableOfContentsBlockSchema = zod.z.object({ color: zod.z.string().describe("Color of the table of contents block.").nullable().optional() }).describe("Table of contents block content.");
182
+ }).passthrough().describe("Link to page block content.");
183
+ const NotionFetchAllBlockContents_SyncedFromInfoSchema = zod.z.object({ block_id: zod.z.string().describe("ID of the original synced block.").nullable().optional() }).passthrough().describe("Synced from information.");
184
+ const NotionFetchAllBlockContents_SyncedBlockSchema = zod.z.object({ synced_from: NotionFetchAllBlockContents_SyncedFromInfoSchema.nullable().optional() }).passthrough().describe("Synced block content.");
185
+ const NotionFetchAllBlockContents_ChildDatabaseBlockSchema = zod.z.object({ title: zod.z.string().describe("Title of the child database.").nullable() }).passthrough().describe("Child database block content.");
186
+ const NotionFetchAllBlockContents_TableOfContentsBlockSchema = zod.z.object({ color: zod.z.string().describe("Color of the table of contents block.").nullable().optional() }).passthrough().describe("Table of contents block content.");
187
187
  const NotionFetchAllBlockContents_ListItemBlockSchema = zod.z.object({
188
188
  color: zod.z.string().describe("Color of the list item block.").nullable().optional(),
189
189
  rich_text: zod.z.array(NotionFetchAllBlockContents_RichTextSchema).describe("Array of rich text objects containing the list item content.")
190
- }).describe("List item block content (bulleted_list_item, numbered_list_item).");
190
+ }).passthrough().describe("List item block content (bulleted_list_item, numbered_list_item).");
191
191
  const NotionFetchAllBlockContents_BlockSchema = zod.z.object({
192
- id: zod.z.string().describe("Unique identifier for the block (UUIDv4 format)."),
192
+ id: zod.z.string().describe("Unique identifier for the block (UUIDv4 format).").nullable(),
193
193
  pdf: NotionFetchAllBlockContents_FileBlockSchema.nullable().optional(),
194
194
  code: NotionFetchAllBlockContents_CodeBlockSchema.nullable().optional(),
195
195
  file: NotionFetchAllBlockContents_FileBlockSchema.nullable().optional(),
196
- type: zod.z.string().describe("Block classification type (e.g., 'paragraph', 'heading_1', 'heading_2', etc.)."),
196
+ type: zod.z.string().describe("Block classification type (e.g., 'paragraph', 'heading_1', 'heading_2', etc.).").nullable(),
197
197
  embed: NotionFetchAllBlockContents_EmbedBlockSchema.nullable().optional(),
198
198
  image: NotionFetchAllBlockContents_FileBlockSchema.nullable().optional(),
199
199
  quote: NotionFetchAllBlockContents_QuoteBlockSchema.nullable().optional(),
@@ -201,7 +201,7 @@ const NotionFetchAllBlockContents_BlockSchema = zod.z.object({
201
201
  to_do: NotionFetchAllBlockContents_ToDoBlockSchema.nullable().optional(),
202
202
  video: NotionFetchAllBlockContents_FileBlockSchema.nullable().optional(),
203
203
  column: NotionFetchAllBlockContents_ColumnBlockSchema.nullable().optional(),
204
- object: zod.z.string().describe("Always 'block'."),
204
+ object: zod.z.string().describe("Always 'block'.").nullable(),
205
205
  parent: NotionFetchAllBlockContents_ParentInfoSchema.nullable().optional(),
206
206
  toggle: NotionFetchAllBlockContents_ToggleBlockSchema.nullable().optional(),
207
207
  callout: NotionFetchAllBlockContents_CalloutBlockSchema.nullable().optional(),
@@ -232,13 +232,13 @@ const NotionFetchAllBlockContents_BlockSchema = zod.z.object({
232
232
  table_of_contents: NotionFetchAllBlockContents_TableOfContentsBlockSchema.nullable().optional(),
233
233
  bulleted_list_item: NotionFetchAllBlockContents_ListItemBlockSchema.nullable().optional(),
234
234
  numbered_list_item: NotionFetchAllBlockContents_ListItemBlockSchema.nullable().optional()
235
- }).describe("Block object with common and type-specific properties.");
235
+ }).passthrough().describe("Block object with common and type-specific properties.");
236
236
  const NotionFetchAllBlockContents_BlockAccessibilityInfoSchema = zod.z.object({
237
237
  block_type: zod.z.string().describe("The type of the block (e.g., 'page', 'paragraph', 'toggle'). Only present when block_exists is true.").nullable().optional(),
238
- block_exists: zod.z.boolean().describe("Whether the block was confirmed to exist and be accessible. True means the block exists and the integration has access to it."),
238
+ block_exists: zod.z.boolean().describe("Whether the block was confirmed to exist and be accessible. True means the block exists and the integration has access to it.").nullable(),
239
239
  has_children: zod.z.boolean().describe("Whether the block has child blocks according to its metadata. Only present when block_exists is true. When false and results are empty, it confirms the block legitimately has no children.").nullable().optional(),
240
240
  is_empty_valid: zod.z.boolean().describe("When results are empty: True means the block exists but legitimately has no children (valid empty state). False or None means something may be wrong with the block or access.").nullable().optional()
241
- }).describe("Information about the accessibility and state of the requested block.");
241
+ }).passthrough().describe("Information about the accessibility and state of the requested block.");
242
242
  const NotionFetchAllBlockContents_RecursionLimitInfoSchema = zod.z.object({
243
243
  max_depth_used: zod.z.number().int().describe("The max_depth limit that was applied.").nullable().optional(),
244
244
  max_blocks_used: zod.z.number().int().describe("The max_blocks limit that was applied.").nullable().optional(),
@@ -246,17 +246,17 @@ const NotionFetchAllBlockContents_RecursionLimitInfoSchema = zod.z.object({
246
246
  depth_limit_reached: zod.z.boolean().default(false).describe("True if max_depth limit was reached during traversal. Some nested content may not be included.").nullable().optional(),
247
247
  actual_depth_reached: zod.z.number().int().describe("The deepest nesting level actually reached during traversal.").nullable().optional(),
248
248
  total_blocks_fetched: zod.z.number().int().describe("Total number of blocks fetched (may equal max_blocks if limit was hit).").nullable().optional()
249
- }).describe("Information about recursion limits when recursive=true.");
249
+ }).passthrough().describe("Information about recursion limits when recursive=true.");
250
250
  const NotionFetchAllBlockContentsOutput = zod.z.object({
251
251
  type: zod.z.string().describe("Constant string indicating the object types within results. For this endpoint, typically 'block'.").nullable().optional(),
252
252
  block: NotionFetchAllBlockContents_BlockPaginationMetadataSchema.nullable().optional(),
253
- object: zod.z.string().describe("Always 'list' for paginated responses."),
253
+ object: zod.z.string().describe("Always 'list' for paginated responses.").nullable(),
254
254
  results: zod.z.array(NotionFetchAllBlockContents_BlockSchema).describe("Array of child block objects contained in the specified block."),
255
- has_more: zod.z.boolean().describe("Whether additional results exist beyond this page. Returns false when all results have been retrieved, true when more data is available."),
255
+ has_more: zod.z.boolean().describe("Whether additional results exist beyond this page. Returns false when all results have been retrieved, true when more data is available.").nullable(),
256
256
  block_info: NotionFetchAllBlockContents_BlockAccessibilityInfoSchema.nullable().optional(),
257
257
  next_cursor: zod.z.string().describe("Cursor value to fetch the next page of results. Only present when has_more is true. Treat as an opaque value and pass as start_cursor parameter in subsequent requests.").nullable().optional(),
258
258
  recursion_info: NotionFetchAllBlockContents_RecursionLimitInfoSchema.nullable().optional()
259
- }).describe("Response from the Notion API retrieve block children endpoint (GET /v1/blocks/{block_id}/children).");
259
+ }).passthrough().describe("Response from the Notion API retrieve block children endpoint (GET /v1/blocks/{block_id}/children).");
260
260
  const notionFetchAllBlockContents = require_action.action("NOTION_FETCH_ALL_BLOCK_CONTENTS", {
261
261
  slug: "notion-fetch-all-block-contents",
262
262
  name: "Fetch All Notion Block Contents",