@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
@@ -32,9 +32,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
32
32
  ]).default("default").describe("Color of the paragraph text or background.").optional(),
33
33
  rich_text: zod.z.array(zod.z.object({
34
34
  text: zod.z.object({
35
- link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
35
+ link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
36
36
  content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
37
- }).describe("The text content object."),
37
+ }).passthrough().describe("The text content object."),
38
38
  type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
39
39
  annotations: zod.z.object({
40
40
  bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -63,10 +63,10 @@ const NotionAppendTextBlocksInput = zod.z.object({
63
63
  italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
64
64
  underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
65
65
  strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
66
- }).describe("Text styling annotations for rich text.").nullable().optional()
67
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects. Each text.content is limited to 2000 chars.")
68
- }).describe("Paragraph content.")
69
- }).describe("A paragraph block object."),
66
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
67
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects. Each text.content is limited to 2000 chars.")
68
+ }).passthrough().describe("Paragraph content.")
69
+ }).passthrough().describe("A paragraph block object."),
70
70
  zod.z.object({
71
71
  type: zod.z.string().default("heading_1").describe("Block type.").optional(),
72
72
  object: zod.z.string().default("block").describe("Always 'block'.").optional(),
@@ -94,9 +94,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
94
94
  ]).default("default").describe("Color of the heading.").optional(),
95
95
  rich_text: zod.z.array(zod.z.object({
96
96
  text: zod.z.object({
97
- link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
97
+ link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
98
98
  content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
99
- }).describe("The text content object."),
99
+ }).passthrough().describe("The text content object."),
100
100
  type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
101
101
  annotations: zod.z.object({
102
102
  bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -125,11 +125,11 @@ const NotionAppendTextBlocksInput = zod.z.object({
125
125
  italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
126
126
  underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
127
127
  strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
128
- }).describe("Text styling annotations for rich text.").nullable().optional()
129
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
128
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
129
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
130
130
  is_toggleable: zod.z.boolean().default(false).describe("Whether the heading can be toggled to show/hide content.").optional()
131
- }).describe("Heading 1 content.")
132
- }).describe("A heading 1 block object (largest heading)."),
131
+ }).passthrough().describe("Heading 1 content.")
132
+ }).passthrough().describe("A heading 1 block object (largest heading)."),
133
133
  zod.z.object({
134
134
  type: zod.z.string().default("heading_2").describe("Block type.").optional(),
135
135
  object: zod.z.string().default("block").describe("Always 'block'.").optional(),
@@ -157,9 +157,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
157
157
  ]).default("default").describe("Color of the heading.").optional(),
158
158
  rich_text: zod.z.array(zod.z.object({
159
159
  text: zod.z.object({
160
- link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
160
+ link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
161
161
  content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
162
- }).describe("The text content object."),
162
+ }).passthrough().describe("The text content object."),
163
163
  type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
164
164
  annotations: zod.z.object({
165
165
  bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -188,11 +188,11 @@ const NotionAppendTextBlocksInput = zod.z.object({
188
188
  italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
189
189
  underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
190
190
  strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
191
- }).describe("Text styling annotations for rich text.").nullable().optional()
192
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
191
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
192
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
193
193
  is_toggleable: zod.z.boolean().default(false).describe("Whether the heading can be toggled to show/hide content.").optional()
194
- }).describe("Heading 2 content.")
195
- }).describe("A heading 2 block object (medium heading)."),
194
+ }).passthrough().describe("Heading 2 content.")
195
+ }).passthrough().describe("A heading 2 block object (medium heading)."),
196
196
  zod.z.object({
197
197
  type: zod.z.string().default("heading_3").describe("Block type.").optional(),
198
198
  object: zod.z.string().default("block").describe("Always 'block'.").optional(),
@@ -220,9 +220,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
220
220
  ]).default("default").describe("Color of the heading.").optional(),
221
221
  rich_text: zod.z.array(zod.z.object({
222
222
  text: zod.z.object({
223
- link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
223
+ link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
224
224
  content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
225
- }).describe("The text content object."),
225
+ }).passthrough().describe("The text content object."),
226
226
  type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
227
227
  annotations: zod.z.object({
228
228
  bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -251,11 +251,11 @@ const NotionAppendTextBlocksInput = zod.z.object({
251
251
  italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
252
252
  underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
253
253
  strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
254
- }).describe("Text styling annotations for rich text.").nullable().optional()
255
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
254
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
255
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
256
256
  is_toggleable: zod.z.boolean().default(false).describe("Whether the heading can be toggled to show/hide content.").optional()
257
- }).describe("Heading 3 content.")
258
- }).describe("A heading 3 block object (smallest heading)."),
257
+ }).passthrough().describe("Heading 3 content.")
258
+ }).passthrough().describe("A heading 3 block object (smallest heading)."),
259
259
  zod.z.object({
260
260
  type: zod.z.string().default("bulleted_list_item").describe("Block type.").optional(),
261
261
  object: zod.z.string().default("block").describe("Always 'block'.").optional(),
@@ -283,9 +283,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
283
283
  ]).default("default").describe("Color of the list item.").optional(),
284
284
  rich_text: zod.z.array(zod.z.object({
285
285
  text: zod.z.object({
286
- link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
286
+ link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
287
287
  content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
288
- }).describe("The text content object."),
288
+ }).passthrough().describe("The text content object."),
289
289
  type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
290
290
  annotations: zod.z.object({
291
291
  bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -314,10 +314,10 @@ const NotionAppendTextBlocksInput = zod.z.object({
314
314
  italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
315
315
  underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
316
316
  strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
317
- }).describe("Text styling annotations for rich text.").nullable().optional()
318
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
319
- }).describe("Bulleted list item content.")
320
- }).describe("A bulleted list item block object."),
317
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
318
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
319
+ }).passthrough().describe("Bulleted list item content.")
320
+ }).passthrough().describe("A bulleted list item block object."),
321
321
  zod.z.object({
322
322
  type: zod.z.string().default("numbered_list_item").describe("Block type.").optional(),
323
323
  object: zod.z.string().default("block").describe("Always 'block'.").optional(),
@@ -345,9 +345,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
345
345
  ]).default("default").describe("Color of the list item.").optional(),
346
346
  rich_text: zod.z.array(zod.z.object({
347
347
  text: zod.z.object({
348
- link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
348
+ link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
349
349
  content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
350
- }).describe("The text content object."),
350
+ }).passthrough().describe("The text content object."),
351
351
  type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
352
352
  annotations: zod.z.object({
353
353
  bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -376,133 +376,133 @@ const NotionAppendTextBlocksInput = zod.z.object({
376
376
  italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
377
377
  underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
378
378
  strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
379
- }).describe("Text styling annotations for rich text.").nullable().optional()
380
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
381
- }).describe("Numbered list item content.")
382
- }).describe("A numbered list item block object.")
379
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
380
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
381
+ }).passthrough().describe("Numbered list item content.")
382
+ }).passthrough().describe("A numbered list item block object.")
383
383
  ])).describe("Array of text block objects to append (also accepts 'blocks' as parameter name). Supported types:\n- paragraph: Regular text paragraph\n- heading_1, heading_2, heading_3: Section headings\n- bulleted_list_item: Bullet point\n- numbered_list_item: Numbered list item\n\n⚠️ Text content limited to 2000 characters per rich_text text.content field.\nMax 100 blocks per request.")
384
384
  }).describe("Request model for appending text blocks to a Notion page.");
385
- const NotionAppendTextBlocks_EmptyBlockObjectSchema = zod.z.object({}).describe("Empty object for the 'block' field in list responses.\n\nThe Notion API returns an empty object {} for this field.");
385
+ const NotionAppendTextBlocks_EmptyBlockObjectSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty object for the 'block' field in list responses.\n\nThe Notion API returns an empty object {} for this field.");
386
386
  const NotionAppendTextBlocks_NotionHostedFileResponseSchema = zod.z.object({
387
- url: zod.z.string().describe("Temporary URL for the file."),
388
- expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
389
- }).describe("Notion-hosted file in API responses.");
390
- const NotionAppendTextBlocks_TextLinkSchema = zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.");
387
+ url: zod.z.string().describe("Temporary URL for the file.").nullable(),
388
+ expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
389
+ }).passthrough().describe("Notion-hosted file in API responses.");
390
+ const NotionAppendTextBlocks_TextLinkSchema = zod.z.object({ url: zod.z.string().describe("The URL the text links to.").nullable() }).passthrough().describe("Link object for hyperlinked text.");
391
391
  const NotionAppendTextBlocks_RichTextTextContentSchema = zod.z.object({
392
392
  link: NotionAppendTextBlocks_TextLinkSchema.nullable().optional(),
393
- content: zod.z.string().describe("The actual text content.")
394
- }).describe("Text content object in rich text responses.");
393
+ content: zod.z.string().describe("The actual text content.").nullable()
394
+ }).passthrough().describe("Text content object in rich text responses.");
395
395
  const NotionAppendTextBlocks_RichTextAnnotationsResponseSchema = zod.z.object({
396
- bold: zod.z.boolean().describe("Whether the text is bold."),
397
- code: zod.z.boolean().describe("Whether the text is inline code."),
398
- color: zod.z.string().describe("Color of the text or background."),
399
- italic: zod.z.boolean().describe("Whether the text is italic."),
400
- underline: zod.z.boolean().describe("Whether the text is underlined."),
401
- strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
402
- }).describe("Text styling annotations returned in API responses.");
396
+ bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
397
+ code: zod.z.boolean().describe("Whether the text is inline code.").nullable(),
398
+ color: zod.z.string().describe("Color of the text or background.").nullable(),
399
+ italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
400
+ underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
401
+ strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
402
+ }).passthrough().describe("Text styling annotations returned in API responses.");
403
403
  const NotionAppendTextBlocks_RichTextResponseSchema = zod.z.object({
404
404
  href: zod.z.string().describe("URL if the text is a link.").nullable().optional(),
405
405
  text: NotionAppendTextBlocks_RichTextTextContentSchema.nullable().optional(),
406
- type: zod.z.string().describe("Type of rich text (text, mention, equation)."),
407
- plain_text: zod.z.string().describe("Plain text without formatting."),
406
+ type: zod.z.string().describe("Type of rich text (text, mention, equation).").nullable(),
407
+ plain_text: zod.z.string().describe("Plain text without formatting.").nullable(),
408
408
  annotations: NotionAppendTextBlocks_RichTextAnnotationsResponseSchema.nullable()
409
- }).describe("Rich text object returned in API responses.");
410
- const NotionAppendTextBlocks_ExternalFileResponseSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.") }).describe("External file URL in API responses.");
409
+ }).passthrough().describe("Rich text object returned in API responses.");
410
+ const NotionAppendTextBlocks_ExternalFileResponseSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL in API responses.");
411
411
  const NotionAppendTextBlocks_PdfBlockContentSchema = zod.z.object({
412
412
  file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
413
- type: zod.z.string().describe("PDF source type (external, file)."),
413
+ type: zod.z.string().describe("PDF source type (external, file).").nullable(),
414
414
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("PDF caption as rich text.").nullable().optional(),
415
415
  external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
416
- }).describe("Content of a PDF block in API responses.");
416
+ }).passthrough().describe("Content of a PDF block in API responses.");
417
417
  const NotionAppendTextBlocks_CodeBlockContentSchema = zod.z.object({
418
418
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Code block caption.").nullable().optional(),
419
- language: zod.z.string().describe("Programming language of the code."),
419
+ language: zod.z.string().describe("Programming language of the code.").nullable(),
420
420
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the code.")
421
- }).describe("Content of a code block in API responses.");
421
+ }).passthrough().describe("Content of a code block in API responses.");
422
422
  const NotionAppendTextBlocks_FileBlockContentSchema = zod.z.object({
423
423
  file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
424
424
  name: zod.z.string().describe("Name of the file.").nullable().optional(),
425
- type: zod.z.string().describe("File source type (external, file)."),
425
+ type: zod.z.string().describe("File source type (external, file).").nullable(),
426
426
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("File caption as rich text.").nullable().optional(),
427
427
  external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
428
- }).describe("Content of a file block in API responses.");
428
+ }).passthrough().describe("Content of a file block in API responses.");
429
429
  const NotionAppendTextBlocks_AudioBlockContentSchema = zod.z.object({
430
430
  file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
431
- type: zod.z.string().describe("Audio source type (external, file)."),
431
+ type: zod.z.string().describe("Audio source type (external, file).").nullable(),
432
432
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Audio caption as rich text.").nullable().optional(),
433
433
  external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
434
- }).describe("Content of an audio block in API responses.");
434
+ }).passthrough().describe("Content of an audio block in API responses.");
435
435
  const NotionAppendTextBlocks_EmbedBlockContentSchema = zod.z.object({
436
- url: zod.z.string().describe("URL of the embedded content."),
436
+ url: zod.z.string().describe("URL of the embedded content.").nullable(),
437
437
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Embed caption as rich text.").nullable().optional()
438
- }).describe("Content of an embed block in API responses.");
438
+ }).passthrough().describe("Content of an embed block in API responses.");
439
439
  const NotionAppendTextBlocks_ImageBlockContentSchema = zod.z.object({
440
440
  file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
441
- type: zod.z.string().describe("Image source type (external, file)."),
441
+ type: zod.z.string().describe("Image source type (external, file).").nullable(),
442
442
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Image caption as rich text.").nullable().optional(),
443
443
  external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
444
- }).describe("Content of an image block in API responses.");
444
+ }).passthrough().describe("Content of an image block in API responses.");
445
445
  const NotionAppendTextBlocks_QuoteBlockContentSchema = zod.z.object({
446
446
  color: zod.z.string().default("default").describe("Color of the quote.").nullable().optional(),
447
447
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the quote.")
448
- }).describe("Content of a quote block in API responses.");
448
+ }).passthrough().describe("Content of a quote block in API responses.");
449
449
  const NotionAppendTextBlocks_TableBlockContentSchema = zod.z.object({
450
- table_width: zod.z.number().int().describe("Number of columns in the table."),
451
- has_row_header: zod.z.boolean().describe("Whether the first column is a header."),
452
- has_column_header: zod.z.boolean().describe("Whether the first row is a header.")
453
- }).describe("Content of a table block in API responses.");
450
+ table_width: zod.z.number().int().describe("Number of columns in the table.").nullable(),
451
+ has_row_header: zod.z.boolean().describe("Whether the first column is a header.").nullable(),
452
+ has_column_header: zod.z.boolean().describe("Whether the first row is a header.").nullable()
453
+ }).passthrough().describe("Content of a table block in API responses.");
454
454
  const NotionAppendTextBlocks_ToDoBlockContentSchema = zod.z.object({
455
455
  color: zod.z.string().default("default").describe("Color of the to-do item.").nullable().optional(),
456
456
  checked: zod.z.boolean().default(false).describe("Whether the to-do is checked.").nullable().optional(),
457
457
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the to-do item.")
458
- }).describe("Content of a to-do block in API responses.");
458
+ }).passthrough().describe("Content of a to-do block in API responses.");
459
459
  const NotionAppendTextBlocks_VideoBlockContentSchema = zod.z.object({
460
460
  file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
461
- type: zod.z.string().describe("Video source type (external, file)."),
461
+ type: zod.z.string().describe("Video source type (external, file).").nullable(),
462
462
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Video caption as rich text.").nullable().optional(),
463
463
  external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
464
- }).describe("Content of a video block in API responses.");
465
- const NotionAppendTextBlocks_ColumnBlockContentSchema = zod.z.object({}).describe("Content of a column block (empty object).");
464
+ }).passthrough().describe("Content of a video block in API responses.");
465
+ const NotionAppendTextBlocks_ColumnBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a column block (empty object).");
466
466
  const NotionAppendTextBlocks_BlockParentSchema = zod.z.object({
467
467
  type: zod.z.enum([
468
468
  "page_id",
469
469
  "block_id",
470
470
  "data_source_id"
471
- ]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'."),
471
+ ]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'.").nullable(),
472
472
  page_id: zod.z.string().describe("UUID of the parent page (when type is 'page_id').").nullable().optional(),
473
473
  block_id: zod.z.string().describe("UUID of the parent block (when type is 'block_id').").nullable().optional(),
474
474
  data_source_id: zod.z.string().describe("UUID of the parent data source (when type is 'data_source_id').").nullable().optional()
475
- }).describe("Information about a block's parent.");
475
+ }).passthrough().describe("Information about a block's parent.");
476
476
  const NotionAppendTextBlocks_ToggleBlockContentSchema = zod.z.object({
477
477
  color: zod.z.string().default("default").describe("Color of the toggle.").nullable().optional(),
478
478
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the toggle.")
479
- }).describe("Content of a toggle block in API responses.");
479
+ }).passthrough().describe("Content of a toggle block in API responses.");
480
480
  const NotionAppendTextBlocks_IconEmojiResponseSchema = zod.z.object({
481
- type: zod.z.string().describe("Icon type, always 'emoji'."),
482
- emoji: zod.z.string().describe("Emoji character for the icon.")
483
- }).describe("Emoji icon in API response.");
481
+ type: zod.z.string().describe("Icon type, always 'emoji'.").nullable(),
482
+ emoji: zod.z.string().describe("Emoji character for the icon.").nullable()
483
+ }).passthrough().describe("Emoji icon in API response.");
484
484
  const NotionAppendTextBlocks_CustomEmojiObjectSchema = zod.z.object({
485
- id: zod.z.string().describe("Unique identifier for the custom emoji."),
486
- url: zod.z.string().describe("HTTPS URL pointing to the custom emoji image."),
487
- name: zod.z.string().describe("Display name of the custom emoji.")
488
- }).describe("Custom emoji object in API response.");
485
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
486
+ url: zod.z.string().describe("HTTPS URL pointing to the custom emoji image.").nullable(),
487
+ name: zod.z.string().describe("Display name of the custom emoji.").nullable()
488
+ }).passthrough().describe("Custom emoji object in API response.");
489
489
  const NotionAppendTextBlocks_IconCustomEmojiResponseSchema = zod.z.object({
490
- type: zod.z.string().describe("Icon type, always 'custom_emoji'."),
490
+ type: zod.z.string().describe("Icon type, always 'custom_emoji'.").nullable(),
491
491
  custom_emoji: NotionAppendTextBlocks_CustomEmojiObjectSchema.nullable()
492
- }).describe("Custom emoji icon in API response.");
493
- const NotionAppendTextBlocks_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.") }).describe("External file URL object in API response.");
492
+ }).passthrough().describe("Custom emoji icon in API response.");
493
+ const NotionAppendTextBlocks_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL object in API response.");
494
494
  const NotionAppendTextBlocks_IconExternalResponseSchema = zod.z.object({
495
- type: zod.z.string().describe("Icon type, always 'external'."),
495
+ type: zod.z.string().describe("Icon type, always 'external'.").nullable(),
496
496
  external: NotionAppendTextBlocks_ExternalFileObjectSchema.nullable()
497
- }).describe("External file icon in API response.");
497
+ }).passthrough().describe("External file icon in API response.");
498
498
  const NotionAppendTextBlocks_NotionFileObjectSchema = zod.z.object({
499
- url: zod.z.string().describe("Authenticated S3 URL to the file."),
499
+ url: zod.z.string().describe("Authenticated S3 URL to the file.").nullable(),
500
500
  expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable().optional()
501
- }).describe("Notion-hosted file object in API response.");
501
+ }).passthrough().describe("Notion-hosted file object in API response.");
502
502
  const NotionAppendTextBlocks_IconFileResponseSchema = zod.z.object({
503
503
  file: NotionAppendTextBlocks_NotionFileObjectSchema.nullable(),
504
- type: zod.z.string().describe("Icon type, always 'file'.")
505
- }).describe("Notion-hosted file icon in API response.");
504
+ type: zod.z.string().describe("Icon type, always 'file'.").nullable()
505
+ }).passthrough().describe("Notion-hosted file icon in API response.");
506
506
  const NotionAppendTextBlocks_CalloutBlockContentSchema = zod.z.object({
507
507
  icon: zod.z.union([
508
508
  NotionAppendTextBlocks_IconEmojiResponseSchema,
@@ -512,44 +512,44 @@ const NotionAppendTextBlocks_CalloutBlockContentSchema = zod.z.object({
512
512
  ]).nullable().optional(),
513
513
  color: zod.z.string().default("default").describe("Color of the callout.").nullable().optional(),
514
514
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the callout.")
515
- }).describe("Content of a callout block in API responses.");
516
- const NotionAppendTextBlocks_DividerBlockContentSchema = zod.z.object({}).describe("Content of a divider block (empty object).");
515
+ }).passthrough().describe("Content of a callout block in API responses.");
516
+ const NotionAppendTextBlocks_DividerBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a divider block (empty object).");
517
517
  const NotionAppendTextBlocks_BookmarkBlockContentSchema = zod.z.object({
518
- url: zod.z.string().describe("URL of the bookmarked page."),
518
+ url: zod.z.string().describe("URL of the bookmarked page.").nullable(),
519
519
  caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Bookmark caption as rich text.").nullable().optional()
520
- }).describe("Content of a bookmark block in API responses.");
521
- const NotionAppendTextBlocks_EquationBlockContentSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX expression for the equation.") }).describe("Content of an equation block in API responses.");
520
+ }).passthrough().describe("Content of a bookmark block in API responses.");
521
+ const NotionAppendTextBlocks_EquationBlockContentSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX expression for the equation.").nullable() }).passthrough().describe("Content of an equation block in API responses.");
522
522
  const NotionAppendTextBlocks_HeadingBlockContentSchema = zod.z.object({
523
523
  color: zod.z.string().default("default").describe("Color of the heading.").nullable().optional(),
524
524
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the heading."),
525
525
  is_toggleable: zod.z.boolean().default(false).describe("Whether the heading is toggleable.").nullable().optional()
526
- }).describe("Content of a heading block in API responses.");
526
+ }).passthrough().describe("Content of a heading block in API responses.");
527
527
  const NotionAppendTextBlocks_ParagraphBlockContentSchema = zod.z.object({
528
528
  color: zod.z.string().default("default").describe("Color of the paragraph.").nullable().optional(),
529
529
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the paragraph.")
530
- }).describe("Content of a paragraph block in API responses.");
531
- const NotionAppendTextBlocks_TableRowBlockContentSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema)).describe("Array of cell contents (each cell is an array of rich text).") }).describe("Content of a table row block in API responses.");
532
- const NotionAppendTextBlocks_BreadcrumbBlockContentSchema = zod.z.object({}).describe("Content of a breadcrumb block (empty object).");
530
+ }).passthrough().describe("Content of a paragraph block in API responses.");
531
+ const NotionAppendTextBlocks_TableRowBlockContentSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema)).describe("Array of cell contents (each cell is an array of rich text).") }).passthrough().describe("Content of a table row block in API responses.");
532
+ const NotionAppendTextBlocks_BreadcrumbBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a breadcrumb block (empty object).");
533
533
  const NotionAppendTextBlocks_PartialUserSchema = zod.z.object({
534
- id: zod.z.string().describe("Unique identifier for the user (UUID format)."),
535
- object: zod.z.string().describe("Always 'user'.")
536
- }).describe("Partial user object representing a Notion user.");
537
- const NotionAppendTextBlocks_ColumnListBlockContentSchema = zod.z.object({}).describe("Content of a column list block (empty object).");
538
- const NotionAppendTextBlocks_TableOfContentsBlockContentSchema = zod.z.object({ color: zod.z.string().default("default").describe("Color of the table of contents.").nullable().optional() }).describe("Content of a table of contents block in API responses.");
534
+ id: zod.z.string().describe("Unique identifier for the user (UUID format).").nullable(),
535
+ object: zod.z.string().describe("Always 'user'.").nullable()
536
+ }).passthrough().describe("Partial user object representing a Notion user.");
537
+ const NotionAppendTextBlocks_ColumnListBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a column list block (empty object).");
538
+ const NotionAppendTextBlocks_TableOfContentsBlockContentSchema = zod.z.object({ color: zod.z.string().default("default").describe("Color of the table of contents.").nullable().optional() }).passthrough().describe("Content of a table of contents block in API responses.");
539
539
  const NotionAppendTextBlocks_BulletedListItemBlockContentSchema = zod.z.object({
540
540
  color: zod.z.string().default("default").describe("Color of the list item.").nullable().optional(),
541
541
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
542
- }).describe("Content of a bulleted list item block in API responses.");
542
+ }).passthrough().describe("Content of a bulleted list item block in API responses.");
543
543
  const NotionAppendTextBlocks_NumberedListItemBlockContentSchema = zod.z.object({
544
544
  color: zod.z.string().default("default").describe("Color of the list item.").nullable().optional(),
545
545
  rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
546
- }).describe("Content of a numbered list item block in API responses.");
546
+ }).passthrough().describe("Content of a numbered list item block in API responses.");
547
547
  const NotionAppendTextBlocks_BlockSchema = zod.z.object({
548
- id: zod.z.string().describe("Unique identifier for the block (UUID v4 format)."),
548
+ id: zod.z.string().describe("Unique identifier for the block (UUID v4 format).").nullable(),
549
549
  pdf: NotionAppendTextBlocks_PdfBlockContentSchema.nullable().optional(),
550
550
  code: NotionAppendTextBlocks_CodeBlockContentSchema.nullable().optional(),
551
551
  file: NotionAppendTextBlocks_FileBlockContentSchema.nullable().optional(),
552
- type: zod.z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark')."),
552
+ type: zod.z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark').").nullable(),
553
553
  audio: NotionAppendTextBlocks_AudioBlockContentSchema.nullable().optional(),
554
554
  embed: NotionAppendTextBlocks_EmbedBlockContentSchema.nullable().optional(),
555
555
  image: NotionAppendTextBlocks_ImageBlockContentSchema.nullable().optional(),
@@ -558,7 +558,7 @@ const NotionAppendTextBlocks_BlockSchema = zod.z.object({
558
558
  to_do: NotionAppendTextBlocks_ToDoBlockContentSchema.nullable().optional(),
559
559
  video: NotionAppendTextBlocks_VideoBlockContentSchema.nullable().optional(),
560
560
  column: NotionAppendTextBlocks_ColumnBlockContentSchema.nullable().optional(),
561
- object: zod.z.string().describe("Always 'block'."),
561
+ object: zod.z.string().describe("Always 'block'.").nullable(),
562
562
  parent: NotionAppendTextBlocks_BlockParentSchema.nullable().optional(),
563
563
  toggle: NotionAppendTextBlocks_ToggleBlockContentSchema.nullable().optional(),
564
564
  callout: NotionAppendTextBlocks_CalloutBlockContentSchema.nullable().optional(),
@@ -582,15 +582,15 @@ const NotionAppendTextBlocks_BlockSchema = zod.z.object({
582
582
  table_of_contents: NotionAppendTextBlocks_TableOfContentsBlockContentSchema.nullable().optional(),
583
583
  bulleted_list_item: NotionAppendTextBlocks_BulletedListItemBlockContentSchema.nullable().optional(),
584
584
  numbered_list_item: NotionAppendTextBlocks_NumberedListItemBlockContentSchema.nullable().optional()
585
- }).describe("Notion block object returned in the results array.\n\nContains common block metadata and type-specific content fields.\nOnly one of the block type content fields will be populated based on the 'type' field.");
585
+ }).passthrough().describe("Notion block object returned in the results array.\n\nContains common block metadata and type-specific content fields.\nOnly one of the block type content fields will be populated based on the 'type' field.");
586
586
  const NotionAppendTextBlocksOutput = zod.z.object({
587
- type: zod.z.string().describe("The type of items in the results array. Always 'block'."),
587
+ type: zod.z.string().describe("The type of items in the results array. Always 'block'.").nullable(),
588
588
  block: NotionAppendTextBlocks_EmptyBlockObjectSchema.nullable(),
589
- object: zod.z.string().describe("Always 'list' for paginated responses."),
589
+ object: zod.z.string().describe("Always 'list' for paginated responses.").nullable(),
590
590
  results: zod.z.array(NotionAppendTextBlocks_BlockSchema).describe("Array of newly created block objects that were appended as children."),
591
- has_more: zod.z.boolean().describe("Whether there are more results available beyond this page."),
591
+ has_more: zod.z.boolean().describe("Whether there are more results available beyond this page.").nullable(),
592
592
  next_cursor: zod.z.string().describe("Cursor for pagination. Null if there are no more results.").nullable().optional()
593
- }).describe("Standard response model for all append block actions.");
593
+ }).passthrough().describe("Standard response model for all append block actions.");
594
594
  const notionAppendTextBlocks = require_action.action("NOTION_APPEND_TEXT_BLOCKS", {
595
595
  slug: "notion-append-text-blocks",
596
596
  name: "Append text blocks (paragraphs, headings, lists)",