@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":"append-task-blocks.d.mts","names":[],"sources":["../../src/actions/append-task-blocks.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA8E4B;AAAA,cA6M3D,4BAAA,EAA8B,CAAA,CAAE,UAOuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"append-task-blocks.d.mts","names":[],"sources":["../../src/actions/append-task-blocks.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2R3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS5B,sBAAA,gCAAsB,wBAAA"}
@@ -32,9 +32,9 @@ const NotionAppendTaskBlocksInput = z.object({
32
32
  checked: z.boolean().default(false).describe("Whether the to-do item is checked/completed.").optional(),
33
33
  rich_text: z.array(z.object({
34
34
  text: z.object({
35
- link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
35
+ link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
36
36
  content: 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: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
39
39
  annotations: z.object({
40
40
  bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -63,11 +63,11 @@ const NotionAppendTaskBlocksInput = z.object({
63
63
  italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
64
64
  underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
65
65
  strikethrough: 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 for the to-do text.")
68
- }).describe("To-do content."),
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 for the to-do text.")
68
+ }).passthrough().describe("To-do content."),
69
69
  object: z.string().default("block").describe("Always 'block'.").optional()
70
- }).describe("A to-do/checkbox block object."),
70
+ }).passthrough().describe("A to-do/checkbox block object."),
71
71
  z.object({
72
72
  type: z.string().default("toggle").describe("Block type.").optional(),
73
73
  object: z.string().default("block").describe("Always 'block'.").optional(),
@@ -95,9 +95,9 @@ const NotionAppendTaskBlocksInput = z.object({
95
95
  ]).default("default").describe("Color of the toggle.").optional(),
96
96
  rich_text: z.array(z.object({
97
97
  text: z.object({
98
- link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
98
+ link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
99
99
  content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
100
- }).describe("The text content object."),
100
+ }).passthrough().describe("The text content object."),
101
101
  type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
102
102
  annotations: z.object({
103
103
  bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -126,10 +126,10 @@ const NotionAppendTaskBlocksInput = z.object({
126
126
  italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
127
127
  underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
128
128
  strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
129
- }).describe("Text styling annotations for rich text.").nullable().optional()
130
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the toggle header text.")
131
- }).describe("Toggle content.")
132
- }).describe("A toggle block object (collapsible content)."),
129
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
130
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the toggle header text.")
131
+ }).passthrough().describe("Toggle content.")
132
+ }).passthrough().describe("A toggle block object (collapsible content)."),
133
133
  z.object({
134
134
  type: z.string().default("callout").describe("Block type.").optional(),
135
135
  object: z.string().default("block").describe("Always 'block'.").optional(),
@@ -137,7 +137,7 @@ const NotionAppendTaskBlocksInput = z.object({
137
137
  icon: z.object({
138
138
  type: z.string().default("emoji").describe("Icon type.").optional(),
139
139
  emoji: z.string().describe("Emoji character for the icon.")
140
- }).describe("Emoji icon for callout blocks.").nullable().optional(),
140
+ }).passthrough().describe("Emoji icon for callout blocks.").nullable().optional(),
141
141
  color: z.enum([
142
142
  "default",
143
143
  "gray",
@@ -161,9 +161,9 @@ const NotionAppendTaskBlocksInput = z.object({
161
161
  ]).default("default").describe("Background color of the callout.").optional(),
162
162
  rich_text: z.array(z.object({
163
163
  text: z.object({
164
- link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
164
+ link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
165
165
  content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
166
- }).describe("The text content object."),
166
+ }).passthrough().describe("The text content object."),
167
167
  type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
168
168
  annotations: z.object({
169
169
  bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
@@ -192,133 +192,133 @@ const NotionAppendTaskBlocksInput = z.object({
192
192
  italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
193
193
  underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
194
194
  strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
195
- }).describe("Text styling annotations for rich text.").nullable().optional()
196
- }).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the callout text.")
197
- }).describe("Callout content.")
198
- }).describe("A callout block object (highlighted content with icon).")
195
+ }).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
196
+ }).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the callout text.")
197
+ }).passthrough().describe("Callout content.")
198
+ }).passthrough().describe("A callout block object (highlighted content with icon).")
199
199
  ])).describe("Array of task/interactive block objects to append. Supported types:\n- to_do: Checkbox task item (can be checked/unchecked)\n- toggle: Collapsible section (click to expand/collapse)\n- callout: Highlighted box with emoji icon (for important notes)\n\n⚠️ Text content limited to 2000 characters per rich_text text.content field.\nMax 100 blocks per request. Max 2 levels of nesting allowed.")
200
200
  }).describe("Request model for appending task blocks to a Notion page.");
201
- const NotionAppendTaskBlocks_EmptyBlockObjectSchema = z.object({}).describe("Empty object for the 'block' field in list responses.\n\nThe Notion API returns an empty object {} for this field.");
201
+ const NotionAppendTaskBlocks_EmptyBlockObjectSchema = z.record(z.string(), z.unknown()).describe("Empty object for the 'block' field in list responses.\n\nThe Notion API returns an empty object {} for this field.");
202
202
  const NotionAppendTaskBlocks_NotionHostedFileResponseSchema = z.object({
203
- url: z.string().describe("Temporary URL for the file."),
204
- expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
205
- }).describe("Notion-hosted file in API responses.");
206
- const NotionAppendTaskBlocks_TextLinkSchema = z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.");
203
+ url: z.string().describe("Temporary URL for the file.").nullable(),
204
+ expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
205
+ }).passthrough().describe("Notion-hosted file in API responses.");
206
+ const NotionAppendTaskBlocks_TextLinkSchema = z.object({ url: z.string().describe("The URL the text links to.").nullable() }).passthrough().describe("Link object for hyperlinked text.");
207
207
  const NotionAppendTaskBlocks_RichTextTextContentSchema = z.object({
208
208
  link: NotionAppendTaskBlocks_TextLinkSchema.nullable().optional(),
209
- content: z.string().describe("The actual text content.")
210
- }).describe("Text content object in rich text responses.");
209
+ content: z.string().describe("The actual text content.").nullable()
210
+ }).passthrough().describe("Text content object in rich text responses.");
211
211
  const NotionAppendTaskBlocks_RichTextAnnotationsResponseSchema = z.object({
212
- bold: z.boolean().describe("Whether the text is bold."),
213
- code: z.boolean().describe("Whether the text is inline code."),
214
- color: z.string().describe("Color of the text or background."),
215
- italic: z.boolean().describe("Whether the text is italic."),
216
- underline: z.boolean().describe("Whether the text is underlined."),
217
- strikethrough: z.boolean().describe("Whether the text has strikethrough.")
218
- }).describe("Text styling annotations returned in API responses.");
212
+ bold: z.boolean().describe("Whether the text is bold.").nullable(),
213
+ code: z.boolean().describe("Whether the text is inline code.").nullable(),
214
+ color: z.string().describe("Color of the text or background.").nullable(),
215
+ italic: z.boolean().describe("Whether the text is italic.").nullable(),
216
+ underline: z.boolean().describe("Whether the text is underlined.").nullable(),
217
+ strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
218
+ }).passthrough().describe("Text styling annotations returned in API responses.");
219
219
  const NotionAppendTaskBlocks_RichTextResponseSchema = z.object({
220
220
  href: z.string().describe("URL if the text is a link.").nullable().optional(),
221
221
  text: NotionAppendTaskBlocks_RichTextTextContentSchema.nullable().optional(),
222
- type: z.string().describe("Type of rich text (text, mention, equation)."),
223
- plain_text: z.string().describe("Plain text without formatting."),
222
+ type: z.string().describe("Type of rich text (text, mention, equation).").nullable(),
223
+ plain_text: z.string().describe("Plain text without formatting.").nullable(),
224
224
  annotations: NotionAppendTaskBlocks_RichTextAnnotationsResponseSchema.nullable()
225
- }).describe("Rich text object returned in API responses.");
226
- const NotionAppendTaskBlocks_ExternalFileResponseSchema = z.object({ url: z.string().describe("URL of the external file.") }).describe("External file URL in API responses.");
225
+ }).passthrough().describe("Rich text object returned in API responses.");
226
+ const NotionAppendTaskBlocks_ExternalFileResponseSchema = z.object({ url: z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL in API responses.");
227
227
  const NotionAppendTaskBlocks_PdfBlockContentSchema = z.object({
228
228
  file: NotionAppendTaskBlocks_NotionHostedFileResponseSchema.nullable().optional(),
229
- type: z.string().describe("PDF source type (external, file)."),
229
+ type: z.string().describe("PDF source type (external, file).").nullable(),
230
230
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("PDF caption as rich text.").nullable().optional(),
231
231
  external: NotionAppendTaskBlocks_ExternalFileResponseSchema.nullable().optional()
232
- }).describe("Content of a PDF block in API responses.");
232
+ }).passthrough().describe("Content of a PDF block in API responses.");
233
233
  const NotionAppendTaskBlocks_CodeBlockContentSchema = z.object({
234
234
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Code block caption.").nullable().optional(),
235
- language: z.string().describe("Programming language of the code."),
235
+ language: z.string().describe("Programming language of the code.").nullable(),
236
236
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the code.")
237
- }).describe("Content of a code block in API responses.");
237
+ }).passthrough().describe("Content of a code block in API responses.");
238
238
  const NotionAppendTaskBlocks_FileBlockContentSchema = z.object({
239
239
  file: NotionAppendTaskBlocks_NotionHostedFileResponseSchema.nullable().optional(),
240
240
  name: z.string().describe("Name of the file.").nullable().optional(),
241
- type: z.string().describe("File source type (external, file)."),
241
+ type: z.string().describe("File source type (external, file).").nullable(),
242
242
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("File caption as rich text.").nullable().optional(),
243
243
  external: NotionAppendTaskBlocks_ExternalFileResponseSchema.nullable().optional()
244
- }).describe("Content of a file block in API responses.");
244
+ }).passthrough().describe("Content of a file block in API responses.");
245
245
  const NotionAppendTaskBlocks_AudioBlockContentSchema = z.object({
246
246
  file: NotionAppendTaskBlocks_NotionHostedFileResponseSchema.nullable().optional(),
247
- type: z.string().describe("Audio source type (external, file)."),
247
+ type: z.string().describe("Audio source type (external, file).").nullable(),
248
248
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Audio caption as rich text.").nullable().optional(),
249
249
  external: NotionAppendTaskBlocks_ExternalFileResponseSchema.nullable().optional()
250
- }).describe("Content of an audio block in API responses.");
250
+ }).passthrough().describe("Content of an audio block in API responses.");
251
251
  const NotionAppendTaskBlocks_EmbedBlockContentSchema = z.object({
252
- url: z.string().describe("URL of the embedded content."),
252
+ url: z.string().describe("URL of the embedded content.").nullable(),
253
253
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Embed caption as rich text.").nullable().optional()
254
- }).describe("Content of an embed block in API responses.");
254
+ }).passthrough().describe("Content of an embed block in API responses.");
255
255
  const NotionAppendTaskBlocks_ImageBlockContentSchema = z.object({
256
256
  file: NotionAppendTaskBlocks_NotionHostedFileResponseSchema.nullable().optional(),
257
- type: z.string().describe("Image source type (external, file)."),
257
+ type: z.string().describe("Image source type (external, file).").nullable(),
258
258
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Image caption as rich text.").nullable().optional(),
259
259
  external: NotionAppendTaskBlocks_ExternalFileResponseSchema.nullable().optional()
260
- }).describe("Content of an image block in API responses.");
260
+ }).passthrough().describe("Content of an image block in API responses.");
261
261
  const NotionAppendTaskBlocks_QuoteBlockContentSchema = z.object({
262
262
  color: z.string().default("default").describe("Color of the quote.").nullable().optional(),
263
263
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the quote.")
264
- }).describe("Content of a quote block in API responses.");
264
+ }).passthrough().describe("Content of a quote block in API responses.");
265
265
  const NotionAppendTaskBlocks_TableBlockContentSchema = z.object({
266
- table_width: z.number().int().describe("Number of columns in the table."),
267
- has_row_header: z.boolean().describe("Whether the first column is a header."),
268
- has_column_header: z.boolean().describe("Whether the first row is a header.")
269
- }).describe("Content of a table block in API responses.");
266
+ table_width: z.number().int().describe("Number of columns in the table.").nullable(),
267
+ has_row_header: z.boolean().describe("Whether the first column is a header.").nullable(),
268
+ has_column_header: z.boolean().describe("Whether the first row is a header.").nullable()
269
+ }).passthrough().describe("Content of a table block in API responses.");
270
270
  const NotionAppendTaskBlocks_ToDoBlockContentSchema = z.object({
271
271
  color: z.string().default("default").describe("Color of the to-do item.").nullable().optional(),
272
272
  checked: z.boolean().default(false).describe("Whether the to-do is checked.").nullable().optional(),
273
273
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the to-do item.")
274
- }).describe("Content of a to-do block in API responses.");
274
+ }).passthrough().describe("Content of a to-do block in API responses.");
275
275
  const NotionAppendTaskBlocks_VideoBlockContentSchema = z.object({
276
276
  file: NotionAppendTaskBlocks_NotionHostedFileResponseSchema.nullable().optional(),
277
- type: z.string().describe("Video source type (external, file)."),
277
+ type: z.string().describe("Video source type (external, file).").nullable(),
278
278
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Video caption as rich text.").nullable().optional(),
279
279
  external: NotionAppendTaskBlocks_ExternalFileResponseSchema.nullable().optional()
280
- }).describe("Content of a video block in API responses.");
281
- const NotionAppendTaskBlocks_ColumnBlockContentSchema = z.object({}).describe("Content of a column block (empty object).");
280
+ }).passthrough().describe("Content of a video block in API responses.");
281
+ const NotionAppendTaskBlocks_ColumnBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a column block (empty object).");
282
282
  const NotionAppendTaskBlocks_BlockParentSchema = z.object({
283
283
  type: z.enum([
284
284
  "page_id",
285
285
  "block_id",
286
286
  "data_source_id"
287
- ]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'."),
287
+ ]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'.").nullable(),
288
288
  page_id: z.string().describe("UUID of the parent page (when type is 'page_id').").nullable().optional(),
289
289
  block_id: z.string().describe("UUID of the parent block (when type is 'block_id').").nullable().optional(),
290
290
  data_source_id: z.string().describe("UUID of the parent data source (when type is 'data_source_id').").nullable().optional()
291
- }).describe("Information about a block's parent.");
291
+ }).passthrough().describe("Information about a block's parent.");
292
292
  const NotionAppendTaskBlocks_ToggleBlockContentSchema = z.object({
293
293
  color: z.string().default("default").describe("Color of the toggle.").nullable().optional(),
294
294
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the toggle.")
295
- }).describe("Content of a toggle block in API responses.");
295
+ }).passthrough().describe("Content of a toggle block in API responses.");
296
296
  const NotionAppendTaskBlocks_IconEmojiResponseSchema = z.object({
297
- type: z.string().describe("Icon type, always 'emoji'."),
298
- emoji: z.string().describe("Emoji character for the icon.")
299
- }).describe("Emoji icon in API response.");
297
+ type: z.string().describe("Icon type, always 'emoji'.").nullable(),
298
+ emoji: z.string().describe("Emoji character for the icon.").nullable()
299
+ }).passthrough().describe("Emoji icon in API response.");
300
300
  const NotionAppendTaskBlocks_CustomEmojiObjectSchema = z.object({
301
- id: z.string().describe("Unique identifier for the custom emoji."),
302
- url: z.string().describe("HTTPS URL pointing to the custom emoji image."),
303
- name: z.string().describe("Display name of the custom emoji.")
304
- }).describe("Custom emoji object in API response.");
301
+ id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
302
+ url: z.string().describe("HTTPS URL pointing to the custom emoji image.").nullable(),
303
+ name: z.string().describe("Display name of the custom emoji.").nullable()
304
+ }).passthrough().describe("Custom emoji object in API response.");
305
305
  const NotionAppendTaskBlocks_IconCustomEmojiResponseSchema = z.object({
306
- type: z.string().describe("Icon type, always 'custom_emoji'."),
306
+ type: z.string().describe("Icon type, always 'custom_emoji'.").nullable(),
307
307
  custom_emoji: NotionAppendTaskBlocks_CustomEmojiObjectSchema.nullable()
308
- }).describe("Custom emoji icon in API response.");
309
- const NotionAppendTaskBlocks_ExternalFileObjectSchema = z.object({ url: z.string().describe("URL of the external file.") }).describe("External file URL object in API response.");
308
+ }).passthrough().describe("Custom emoji icon in API response.");
309
+ const NotionAppendTaskBlocks_ExternalFileObjectSchema = z.object({ url: z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL object in API response.");
310
310
  const NotionAppendTaskBlocks_IconExternalResponseSchema = z.object({
311
- type: z.string().describe("Icon type, always 'external'."),
311
+ type: z.string().describe("Icon type, always 'external'.").nullable(),
312
312
  external: NotionAppendTaskBlocks_ExternalFileObjectSchema.nullable()
313
- }).describe("External file icon in API response.");
313
+ }).passthrough().describe("External file icon in API response.");
314
314
  const NotionAppendTaskBlocks_NotionFileObjectSchema = z.object({
315
- url: z.string().describe("Authenticated S3 URL to the file."),
315
+ url: z.string().describe("Authenticated S3 URL to the file.").nullable(),
316
316
  expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable().optional()
317
- }).describe("Notion-hosted file object in API response.");
317
+ }).passthrough().describe("Notion-hosted file object in API response.");
318
318
  const NotionAppendTaskBlocks_IconFileResponseSchema = z.object({
319
319
  file: NotionAppendTaskBlocks_NotionFileObjectSchema.nullable(),
320
- type: z.string().describe("Icon type, always 'file'.")
321
- }).describe("Notion-hosted file icon in API response.");
320
+ type: z.string().describe("Icon type, always 'file'.").nullable()
321
+ }).passthrough().describe("Notion-hosted file icon in API response.");
322
322
  const NotionAppendTaskBlocks_CalloutBlockContentSchema = z.object({
323
323
  icon: z.union([
324
324
  NotionAppendTaskBlocks_IconEmojiResponseSchema,
@@ -328,44 +328,44 @@ const NotionAppendTaskBlocks_CalloutBlockContentSchema = z.object({
328
328
  ]).nullable().optional(),
329
329
  color: z.string().default("default").describe("Color of the callout.").nullable().optional(),
330
330
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the callout.")
331
- }).describe("Content of a callout block in API responses.");
332
- const NotionAppendTaskBlocks_DividerBlockContentSchema = z.object({}).describe("Content of a divider block (empty object).");
331
+ }).passthrough().describe("Content of a callout block in API responses.");
332
+ const NotionAppendTaskBlocks_DividerBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a divider block (empty object).");
333
333
  const NotionAppendTaskBlocks_BookmarkBlockContentSchema = z.object({
334
- url: z.string().describe("URL of the bookmarked page."),
334
+ url: z.string().describe("URL of the bookmarked page.").nullable(),
335
335
  caption: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Bookmark caption as rich text.").nullable().optional()
336
- }).describe("Content of a bookmark block in API responses.");
337
- const NotionAppendTaskBlocks_EquationBlockContentSchema = z.object({ expression: z.string().describe("LaTeX expression for the equation.") }).describe("Content of an equation block in API responses.");
336
+ }).passthrough().describe("Content of a bookmark block in API responses.");
337
+ const NotionAppendTaskBlocks_EquationBlockContentSchema = z.object({ expression: z.string().describe("LaTeX expression for the equation.").nullable() }).passthrough().describe("Content of an equation block in API responses.");
338
338
  const NotionAppendTaskBlocks_HeadingBlockContentSchema = z.object({
339
339
  color: z.string().default("default").describe("Color of the heading.").nullable().optional(),
340
340
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the heading."),
341
341
  is_toggleable: z.boolean().default(false).describe("Whether the heading is toggleable.").nullable().optional()
342
- }).describe("Content of a heading block in API responses.");
342
+ }).passthrough().describe("Content of a heading block in API responses.");
343
343
  const NotionAppendTaskBlocks_ParagraphBlockContentSchema = z.object({
344
344
  color: z.string().default("default").describe("Color of the paragraph.").nullable().optional(),
345
345
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the paragraph.")
346
- }).describe("Content of a paragraph block in API responses.");
347
- const NotionAppendTaskBlocks_TableRowBlockContentSchema = z.object({ cells: z.array(z.array(NotionAppendTaskBlocks_RichTextResponseSchema)).describe("Array of cell contents (each cell is an array of rich text).") }).describe("Content of a table row block in API responses.");
348
- const NotionAppendTaskBlocks_BreadcrumbBlockContentSchema = z.object({}).describe("Content of a breadcrumb block (empty object).");
346
+ }).passthrough().describe("Content of a paragraph block in API responses.");
347
+ const NotionAppendTaskBlocks_TableRowBlockContentSchema = z.object({ cells: z.array(z.array(NotionAppendTaskBlocks_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.");
348
+ const NotionAppendTaskBlocks_BreadcrumbBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a breadcrumb block (empty object).");
349
349
  const NotionAppendTaskBlocks_PartialUserSchema = z.object({
350
- id: z.string().describe("Unique identifier for the user (UUID format)."),
351
- object: z.string().describe("Always 'user'.")
352
- }).describe("Partial user object representing a Notion user.");
353
- const NotionAppendTaskBlocks_ColumnListBlockContentSchema = z.object({}).describe("Content of a column list block (empty object).");
354
- const NotionAppendTaskBlocks_TableOfContentsBlockContentSchema = z.object({ color: z.string().default("default").describe("Color of the table of contents.").nullable().optional() }).describe("Content of a table of contents block in API responses.");
350
+ id: z.string().describe("Unique identifier for the user (UUID format).").nullable(),
351
+ object: z.string().describe("Always 'user'.").nullable()
352
+ }).passthrough().describe("Partial user object representing a Notion user.");
353
+ const NotionAppendTaskBlocks_ColumnListBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a column list block (empty object).");
354
+ const NotionAppendTaskBlocks_TableOfContentsBlockContentSchema = z.object({ color: 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.");
355
355
  const NotionAppendTaskBlocks_BulletedListItemBlockContentSchema = z.object({
356
356
  color: z.string().default("default").describe("Color of the list item.").nullable().optional(),
357
357
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
358
- }).describe("Content of a bulleted list item block in API responses.");
358
+ }).passthrough().describe("Content of a bulleted list item block in API responses.");
359
359
  const NotionAppendTaskBlocks_NumberedListItemBlockContentSchema = z.object({
360
360
  color: z.string().default("default").describe("Color of the list item.").nullable().optional(),
361
361
  rich_text: z.array(NotionAppendTaskBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
362
- }).describe("Content of a numbered list item block in API responses.");
362
+ }).passthrough().describe("Content of a numbered list item block in API responses.");
363
363
  const NotionAppendTaskBlocks_BlockSchema = z.object({
364
- id: z.string().describe("Unique identifier for the block (UUID v4 format)."),
364
+ id: z.string().describe("Unique identifier for the block (UUID v4 format).").nullable(),
365
365
  pdf: NotionAppendTaskBlocks_PdfBlockContentSchema.nullable().optional(),
366
366
  code: NotionAppendTaskBlocks_CodeBlockContentSchema.nullable().optional(),
367
367
  file: NotionAppendTaskBlocks_FileBlockContentSchema.nullable().optional(),
368
- type: z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark')."),
368
+ type: z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark').").nullable(),
369
369
  audio: NotionAppendTaskBlocks_AudioBlockContentSchema.nullable().optional(),
370
370
  embed: NotionAppendTaskBlocks_EmbedBlockContentSchema.nullable().optional(),
371
371
  image: NotionAppendTaskBlocks_ImageBlockContentSchema.nullable().optional(),
@@ -374,7 +374,7 @@ const NotionAppendTaskBlocks_BlockSchema = z.object({
374
374
  to_do: NotionAppendTaskBlocks_ToDoBlockContentSchema.nullable().optional(),
375
375
  video: NotionAppendTaskBlocks_VideoBlockContentSchema.nullable().optional(),
376
376
  column: NotionAppendTaskBlocks_ColumnBlockContentSchema.nullable().optional(),
377
- object: z.string().describe("Always 'block'."),
377
+ object: z.string().describe("Always 'block'.").nullable(),
378
378
  parent: NotionAppendTaskBlocks_BlockParentSchema.nullable().optional(),
379
379
  toggle: NotionAppendTaskBlocks_ToggleBlockContentSchema.nullable().optional(),
380
380
  callout: NotionAppendTaskBlocks_CalloutBlockContentSchema.nullable().optional(),
@@ -398,20 +398,20 @@ const NotionAppendTaskBlocks_BlockSchema = z.object({
398
398
  table_of_contents: NotionAppendTaskBlocks_TableOfContentsBlockContentSchema.nullable().optional(),
399
399
  bulleted_list_item: NotionAppendTaskBlocks_BulletedListItemBlockContentSchema.nullable().optional(),
400
400
  numbered_list_item: NotionAppendTaskBlocks_NumberedListItemBlockContentSchema.nullable().optional()
401
- }).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.");
401
+ }).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.");
402
402
  const notionAppendTaskBlocks = action("NOTION_APPEND_TASK_BLOCKS", {
403
403
  slug: "notion-append-task-blocks",
404
404
  name: "Append task blocks (to-do, toggle, callout)",
405
405
  description: "Append task blocks (to-do, toggle, callout) to a Notion page or block. Supported block types: - to_do: Checkbox items (checkable/uncheckable) - toggle: Collapsible sections - callout: Highlighted boxes with emoji icons All three types support nested children (up to 2 levels of nesting). block_id must be a page or block that supports children (e.g., page, toggle, paragraph, list items, quote, callout, to_do). Blocks like divider, breadcrumb, equation do NOT support children. Limits: 2000 chars per text.content, max 100 blocks per request. For other blocks: append_text_blocks, append_code_blocks, append_media_blocks, append_layout_blocks, append_table_blocks.",
406
406
  input: NotionAppendTaskBlocksInput,
407
407
  output: z.object({
408
- type: z.string().describe("The type of items in the results array. Always 'block'."),
408
+ type: z.string().describe("The type of items in the results array. Always 'block'.").nullable(),
409
409
  block: NotionAppendTaskBlocks_EmptyBlockObjectSchema.nullable(),
410
- object: z.string().describe("Always 'list' for paginated responses."),
410
+ object: z.string().describe("Always 'list' for paginated responses.").nullable(),
411
411
  results: z.array(NotionAppendTaskBlocks_BlockSchema).describe("Array of newly created block objects that were appended as children."),
412
- has_more: z.boolean().describe("Whether there are more results available beyond this page."),
412
+ has_more: z.boolean().describe("Whether there are more results available beyond this page.").nullable(),
413
413
  next_cursor: z.string().describe("Cursor for pagination. Null if there are no more results.").nullable().optional()
414
- }).describe("Standard response model for all append block actions.")
414
+ }).passthrough().describe("Standard response model for all append block actions.")
415
415
  });
416
416
  //#endregion
417
417
  export { notionAppendTaskBlocks };