@keystrokehq/notion 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/add-multiple-page-content.cjs +13 -13
  5. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.cts +90 -3
  7. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.d.mts +90 -3
  9. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  10. package/dist/actions/add-multiple-page-content.mjs +13 -13
  11. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  12. package/dist/actions/append-code-blocks.cjs +100 -100
  13. package/dist/actions/append-code-blocks.cjs.map +1 -1
  14. package/dist/actions/append-code-blocks.d.cts +867 -3
  15. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  16. package/dist/actions/append-code-blocks.d.mts +867 -3
  17. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  18. package/dist/actions/append-code-blocks.mjs +100 -100
  19. package/dist/actions/append-code-blocks.mjs.map +1 -1
  20. package/dist/actions/append-layout-blocks.cjs +91 -91
  21. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  22. package/dist/actions/append-layout-blocks.d.cts +652 -3
  23. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  24. package/dist/actions/append-layout-blocks.d.mts +652 -3
  25. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  26. package/dist/actions/append-layout-blocks.mjs +91 -91
  27. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  28. package/dist/actions/append-media-blocks.cjs +125 -125
  29. package/dist/actions/append-media-blocks.cjs.map +1 -1
  30. package/dist/actions/append-media-blocks.d.cts +1039 -3
  31. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  32. package/dist/actions/append-media-blocks.d.mts +1039 -3
  33. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  34. package/dist/actions/append-media-blocks.mjs +125 -125
  35. package/dist/actions/append-media-blocks.mjs.map +1 -1
  36. package/dist/actions/append-table-blocks.cjs +87 -87
  37. package/dist/actions/append-table-blocks.cjs.map +1 -1
  38. package/dist/actions/append-table-blocks.d.cts +630 -3
  39. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  40. package/dist/actions/append-table-blocks.d.mts +630 -3
  41. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  42. package/dist/actions/append-table-blocks.mjs +87 -87
  43. package/dist/actions/append-table-blocks.mjs.map +1 -1
  44. package/dist/actions/append-task-blocks.cjs +101 -101
  45. package/dist/actions/append-task-blocks.cjs.map +1 -1
  46. package/dist/actions/append-task-blocks.d.cts +845 -3
  47. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  48. package/dist/actions/append-task-blocks.d.mts +845 -3
  49. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  50. package/dist/actions/append-task-blocks.mjs +101 -101
  51. package/dist/actions/append-task-blocks.mjs.map +1 -1
  52. package/dist/actions/append-text-blocks.cjs +118 -118
  53. package/dist/actions/append-text-blocks.cjs.map +1 -1
  54. package/dist/actions/append-text-blocks.d.cts +1116 -3
  55. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  56. package/dist/actions/append-text-blocks.d.mts +1116 -3
  57. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  58. package/dist/actions/append-text-blocks.mjs +118 -118
  59. package/dist/actions/append-text-blocks.mjs.map +1 -1
  60. package/dist/actions/archive-notion-page.cjs +43 -43
  61. package/dist/actions/archive-notion-page.cjs.map +1 -1
  62. package/dist/actions/archive-notion-page.d.cts +78 -3
  63. package/dist/actions/archive-notion-page.d.cts.map +1 -1
  64. package/dist/actions/archive-notion-page.d.mts +78 -3
  65. package/dist/actions/archive-notion-page.d.mts.map +1 -1
  66. package/dist/actions/archive-notion-page.mjs +43 -43
  67. package/dist/actions/archive-notion-page.mjs.map +1 -1
  68. package/dist/actions/create-comment.cjs.map +1 -1
  69. package/dist/actions/create-comment.d.cts +46 -3
  70. package/dist/actions/create-comment.d.cts.map +1 -1
  71. package/dist/actions/create-comment.d.mts +46 -3
  72. package/dist/actions/create-comment.d.mts.map +1 -1
  73. package/dist/actions/create-comment.mjs.map +1 -1
  74. package/dist/actions/create-database.cjs +44 -44
  75. package/dist/actions/create-database.cjs.map +1 -1
  76. package/dist/actions/create-database.d.cts +140 -3
  77. package/dist/actions/create-database.d.cts.map +1 -1
  78. package/dist/actions/create-database.d.mts +140 -3
  79. package/dist/actions/create-database.d.mts.map +1 -1
  80. package/dist/actions/create-database.mjs +44 -44
  81. package/dist/actions/create-database.mjs.map +1 -1
  82. package/dist/actions/create-file-upload.cjs +9 -9
  83. package/dist/actions/create-file-upload.cjs.map +1 -1
  84. package/dist/actions/create-file-upload.d.cts +38 -3
  85. package/dist/actions/create-file-upload.d.cts.map +1 -1
  86. package/dist/actions/create-file-upload.d.mts +38 -3
  87. package/dist/actions/create-file-upload.d.mts.map +1 -1
  88. package/dist/actions/create-file-upload.mjs +9 -9
  89. package/dist/actions/create-file-upload.mjs.map +1 -1
  90. package/dist/actions/create-notion-page.cjs +41 -41
  91. package/dist/actions/create-notion-page.cjs.map +1 -1
  92. package/dist/actions/create-notion-page.d.cts +83 -3
  93. package/dist/actions/create-notion-page.d.cts.map +1 -1
  94. package/dist/actions/create-notion-page.d.mts +83 -3
  95. package/dist/actions/create-notion-page.d.mts.map +1 -1
  96. package/dist/actions/create-notion-page.mjs +41 -41
  97. package/dist/actions/create-notion-page.mjs.map +1 -1
  98. package/dist/actions/delete-block.cjs +84 -84
  99. package/dist/actions/delete-block.cjs.map +1 -1
  100. package/dist/actions/delete-block.d.cts +2181 -3
  101. package/dist/actions/delete-block.d.cts.map +1 -1
  102. package/dist/actions/delete-block.d.mts +2181 -3
  103. package/dist/actions/delete-block.d.mts.map +1 -1
  104. package/dist/actions/delete-block.mjs +84 -84
  105. package/dist/actions/delete-block.mjs.map +1 -1
  106. package/dist/actions/duplicate-page.cjs +49 -49
  107. package/dist/actions/duplicate-page.cjs.map +1 -1
  108. package/dist/actions/duplicate-page.d.cts +90 -3
  109. package/dist/actions/duplicate-page.d.cts.map +1 -1
  110. package/dist/actions/duplicate-page.d.mts +90 -3
  111. package/dist/actions/duplicate-page.d.mts.map +1 -1
  112. package/dist/actions/duplicate-page.mjs +49 -49
  113. package/dist/actions/duplicate-page.mjs.map +1 -1
  114. package/dist/actions/fetch-all-block-contents.cjs +91 -91
  115. package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
  116. package/dist/actions/fetch-all-block-contents.d.cts +38 -3
  117. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
  118. package/dist/actions/fetch-all-block-contents.d.mts +38 -3
  119. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
  120. package/dist/actions/fetch-all-block-contents.mjs +91 -91
  121. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  122. package/dist/actions/fetch-block-contents.cjs +97 -97
  123. package/dist/actions/fetch-block-contents.cjs.map +1 -1
  124. package/dist/actions/fetch-block-contents.d.cts +687 -3
  125. package/dist/actions/fetch-block-contents.d.cts.map +1 -1
  126. package/dist/actions/fetch-block-contents.d.mts +687 -3
  127. package/dist/actions/fetch-block-contents.d.mts.map +1 -1
  128. package/dist/actions/fetch-block-contents.mjs +97 -97
  129. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  130. package/dist/actions/fetch-block-metadata.cjs +81 -81
  131. package/dist/actions/fetch-block-metadata.cjs.map +1 -1
  132. package/dist/actions/fetch-block-metadata.d.cts +2103 -3
  133. package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
  134. package/dist/actions/fetch-block-metadata.d.mts +2103 -3
  135. package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
  136. package/dist/actions/fetch-block-metadata.mjs +81 -81
  137. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  138. package/dist/actions/fetch-comments.cjs +55 -55
  139. package/dist/actions/fetch-comments.cjs.map +1 -1
  140. package/dist/actions/fetch-comments.d.cts +148 -3
  141. package/dist/actions/fetch-comments.d.cts.map +1 -1
  142. package/dist/actions/fetch-comments.d.mts +148 -3
  143. package/dist/actions/fetch-comments.d.mts.map +1 -1
  144. package/dist/actions/fetch-comments.mjs +55 -55
  145. package/dist/actions/fetch-comments.mjs.map +1 -1
  146. package/dist/actions/fetch-data.cjs +76 -76
  147. package/dist/actions/fetch-data.cjs.map +1 -1
  148. package/dist/actions/fetch-data.d.cts +594 -3
  149. package/dist/actions/fetch-data.d.cts.map +1 -1
  150. package/dist/actions/fetch-data.d.mts +594 -3
  151. package/dist/actions/fetch-data.d.mts.map +1 -1
  152. package/dist/actions/fetch-data.mjs +76 -76
  153. package/dist/actions/fetch-data.mjs.map +1 -1
  154. package/dist/actions/fetch-database.cjs +38 -38
  155. package/dist/actions/fetch-database.cjs.map +1 -1
  156. package/dist/actions/fetch-database.d.cts +89 -3
  157. package/dist/actions/fetch-database.d.cts.map +1 -1
  158. package/dist/actions/fetch-database.d.mts +89 -3
  159. package/dist/actions/fetch-database.d.mts.map +1 -1
  160. package/dist/actions/fetch-database.mjs +38 -38
  161. package/dist/actions/fetch-database.mjs.map +1 -1
  162. package/dist/actions/fetch-row.cjs +56 -56
  163. package/dist/actions/fetch-row.cjs.map +1 -1
  164. package/dist/actions/fetch-row.d.cts +151 -3
  165. package/dist/actions/fetch-row.d.cts.map +1 -1
  166. package/dist/actions/fetch-row.d.mts +151 -3
  167. package/dist/actions/fetch-row.d.mts.map +1 -1
  168. package/dist/actions/fetch-row.mjs +56 -56
  169. package/dist/actions/fetch-row.mjs.map +1 -1
  170. package/dist/actions/get-about-user.cjs +13 -13
  171. package/dist/actions/get-about-user.cjs.map +1 -1
  172. package/dist/actions/get-about-user.d.cts +44 -3
  173. package/dist/actions/get-about-user.d.cts.map +1 -1
  174. package/dist/actions/get-about-user.d.mts +44 -3
  175. package/dist/actions/get-about-user.d.mts.map +1 -1
  176. package/dist/actions/get-about-user.mjs +13 -13
  177. package/dist/actions/get-about-user.mjs.map +1 -1
  178. package/dist/actions/get-page-markdown.cjs +5 -5
  179. package/dist/actions/get-page-markdown.cjs.map +1 -1
  180. package/dist/actions/get-page-markdown.d.cts +15 -3
  181. package/dist/actions/get-page-markdown.d.cts.map +1 -1
  182. package/dist/actions/get-page-markdown.d.mts +15 -3
  183. package/dist/actions/get-page-markdown.d.mts.map +1 -1
  184. package/dist/actions/get-page-markdown.mjs +5 -5
  185. package/dist/actions/get-page-markdown.mjs.map +1 -1
  186. package/dist/actions/get-page-property-action.cjs.map +1 -1
  187. package/dist/actions/get-page-property-action.d.cts +13 -3
  188. package/dist/actions/get-page-property-action.d.cts.map +1 -1
  189. package/dist/actions/get-page-property-action.d.mts +13 -3
  190. package/dist/actions/get-page-property-action.d.mts.map +1 -1
  191. package/dist/actions/get-page-property-action.mjs.map +1 -1
  192. package/dist/actions/insert-row-database.cjs +50 -50
  193. package/dist/actions/insert-row-database.cjs.map +1 -1
  194. package/dist/actions/insert-row-database.d.cts +165 -3
  195. package/dist/actions/insert-row-database.d.cts.map +1 -1
  196. package/dist/actions/insert-row-database.d.mts +165 -3
  197. package/dist/actions/insert-row-database.d.mts.map +1 -1
  198. package/dist/actions/insert-row-database.mjs +50 -50
  199. package/dist/actions/insert-row-database.mjs.map +1 -1
  200. package/dist/actions/insert-row-from-nl.cjs +2 -2
  201. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  202. package/dist/actions/insert-row-from-nl.d.cts +19 -3
  203. package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
  204. package/dist/actions/insert-row-from-nl.d.mts +19 -3
  205. package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
  206. package/dist/actions/insert-row-from-nl.mjs +2 -2
  207. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  208. package/dist/actions/list-data-source-templates.cjs +6 -6
  209. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  210. package/dist/actions/list-data-source-templates.d.cts +19 -3
  211. package/dist/actions/list-data-source-templates.d.cts.map +1 -1
  212. package/dist/actions/list-data-source-templates.d.mts +19 -3
  213. package/dist/actions/list-data-source-templates.d.mts.map +1 -1
  214. package/dist/actions/list-data-source-templates.mjs +6 -6
  215. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  216. package/dist/actions/list-file-uploads.cjs +9 -9
  217. package/dist/actions/list-file-uploads.cjs.map +1 -1
  218. package/dist/actions/list-file-uploads.d.cts +32 -3
  219. package/dist/actions/list-file-uploads.d.cts.map +1 -1
  220. package/dist/actions/list-file-uploads.d.mts +32 -3
  221. package/dist/actions/list-file-uploads.d.mts.map +1 -1
  222. package/dist/actions/list-file-uploads.mjs +9 -9
  223. package/dist/actions/list-file-uploads.mjs.map +1 -1
  224. package/dist/actions/list-users.cjs +14 -14
  225. package/dist/actions/list-users.cjs.map +1 -1
  226. package/dist/actions/list-users.d.cts +58 -3
  227. package/dist/actions/list-users.d.cts.map +1 -1
  228. package/dist/actions/list-users.d.mts +58 -3
  229. package/dist/actions/list-users.d.mts.map +1 -1
  230. package/dist/actions/list-users.mjs +14 -14
  231. package/dist/actions/list-users.mjs.map +1 -1
  232. package/dist/actions/move-page.cjs +44 -44
  233. package/dist/actions/move-page.cjs.map +1 -1
  234. package/dist/actions/move-page.d.cts +92 -3
  235. package/dist/actions/move-page.d.cts.map +1 -1
  236. package/dist/actions/move-page.d.mts +92 -3
  237. package/dist/actions/move-page.d.mts.map +1 -1
  238. package/dist/actions/move-page.mjs +44 -44
  239. package/dist/actions/move-page.mjs.map +1 -1
  240. package/dist/actions/query-data-source.cjs +35 -35
  241. package/dist/actions/query-data-source.cjs.map +1 -1
  242. package/dist/actions/query-data-source.d.cts +161 -3
  243. package/dist/actions/query-data-source.d.cts.map +1 -1
  244. package/dist/actions/query-data-source.d.mts +161 -3
  245. package/dist/actions/query-data-source.d.mts.map +1 -1
  246. package/dist/actions/query-data-source.mjs +35 -35
  247. package/dist/actions/query-data-source.mjs.map +1 -1
  248. package/dist/actions/query-database-with-filter.cjs +73 -73
  249. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  250. package/dist/actions/query-database-with-filter.d.cts +216 -3
  251. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  252. package/dist/actions/query-database-with-filter.d.mts +216 -3
  253. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  254. package/dist/actions/query-database-with-filter.mjs +73 -73
  255. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  256. package/dist/actions/query-database.cjs +61 -61
  257. package/dist/actions/query-database.cjs.map +1 -1
  258. package/dist/actions/query-database.d.cts +209 -3
  259. package/dist/actions/query-database.d.cts.map +1 -1
  260. package/dist/actions/query-database.d.mts +209 -3
  261. package/dist/actions/query-database.d.mts.map +1 -1
  262. package/dist/actions/query-database.mjs +61 -61
  263. package/dist/actions/query-database.mjs.map +1 -1
  264. package/dist/actions/replace-page-content.cjs +133 -133
  265. package/dist/actions/replace-page-content.cjs.map +1 -1
  266. package/dist/actions/replace-page-content.d.cts +1836 -3
  267. package/dist/actions/replace-page-content.d.cts.map +1 -1
  268. package/dist/actions/replace-page-content.d.mts +1836 -3
  269. package/dist/actions/replace-page-content.d.mts.map +1 -1
  270. package/dist/actions/replace-page-content.mjs +133 -133
  271. package/dist/actions/replace-page-content.mjs.map +1 -1
  272. package/dist/actions/retrieve-comment.cjs.map +1 -1
  273. package/dist/actions/retrieve-comment.d.cts +7 -3
  274. package/dist/actions/retrieve-comment.d.cts.map +1 -1
  275. package/dist/actions/retrieve-comment.d.mts +7 -3
  276. package/dist/actions/retrieve-comment.d.mts.map +1 -1
  277. package/dist/actions/retrieve-comment.mjs.map +1 -1
  278. package/dist/actions/retrieve-database-property.cjs +42 -42
  279. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  280. package/dist/actions/retrieve-database-property.d.cts +78 -3
  281. package/dist/actions/retrieve-database-property.d.cts.map +1 -1
  282. package/dist/actions/retrieve-database-property.d.mts +78 -3
  283. package/dist/actions/retrieve-database-property.d.mts.map +1 -1
  284. package/dist/actions/retrieve-database-property.mjs +42 -42
  285. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  286. package/dist/actions/retrieve-file-upload.cjs +6 -6
  287. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  288. package/dist/actions/retrieve-file-upload.d.cts +25 -3
  289. package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
  290. package/dist/actions/retrieve-file-upload.d.mts +25 -3
  291. package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
  292. package/dist/actions/retrieve-file-upload.mjs +6 -6
  293. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  294. package/dist/actions/retrieve-page.cjs +55 -55
  295. package/dist/actions/retrieve-page.cjs.map +1 -1
  296. package/dist/actions/retrieve-page.d.cts +139 -3
  297. package/dist/actions/retrieve-page.d.cts.map +1 -1
  298. package/dist/actions/retrieve-page.d.mts +139 -3
  299. package/dist/actions/retrieve-page.d.mts.map +1 -1
  300. package/dist/actions/retrieve-page.mjs +55 -55
  301. package/dist/actions/retrieve-page.mjs.map +1 -1
  302. package/dist/actions/search-notion-page.cjs +82 -82
  303. package/dist/actions/search-notion-page.cjs.map +1 -1
  304. package/dist/actions/search-notion-page.d.cts +751 -3
  305. package/dist/actions/search-notion-page.d.cts.map +1 -1
  306. package/dist/actions/search-notion-page.d.mts +751 -3
  307. package/dist/actions/search-notion-page.d.mts.map +1 -1
  308. package/dist/actions/search-notion-page.mjs +82 -82
  309. package/dist/actions/search-notion-page.mjs.map +1 -1
  310. package/dist/actions/send-file-upload.cjs +8 -8
  311. package/dist/actions/send-file-upload.cjs.map +1 -1
  312. package/dist/actions/send-file-upload.d.cts +33 -3
  313. package/dist/actions/send-file-upload.d.cts.map +1 -1
  314. package/dist/actions/send-file-upload.d.mts +33 -3
  315. package/dist/actions/send-file-upload.d.mts.map +1 -1
  316. package/dist/actions/send-file-upload.mjs +8 -8
  317. package/dist/actions/send-file-upload.mjs.map +1 -1
  318. package/dist/actions/update-block.cjs +94 -94
  319. package/dist/actions/update-block.cjs.map +1 -1
  320. package/dist/actions/update-block.d.cts +564 -3
  321. package/dist/actions/update-block.d.cts.map +1 -1
  322. package/dist/actions/update-block.d.mts +564 -3
  323. package/dist/actions/update-block.d.mts.map +1 -1
  324. package/dist/actions/update-block.mjs +94 -94
  325. package/dist/actions/update-block.mjs.map +1 -1
  326. package/dist/actions/update-page.cjs +46 -46
  327. package/dist/actions/update-page.cjs.map +1 -1
  328. package/dist/actions/update-page.d.cts +103 -3
  329. package/dist/actions/update-page.d.cts.map +1 -1
  330. package/dist/actions/update-page.d.mts +103 -3
  331. package/dist/actions/update-page.d.mts.map +1 -1
  332. package/dist/actions/update-page.mjs +46 -46
  333. package/dist/actions/update-page.mjs.map +1 -1
  334. package/dist/actions/update-row-database.cjs +50 -50
  335. package/dist/actions/update-row-database.cjs.map +1 -1
  336. package/dist/actions/update-row-database.d.cts +127 -3
  337. package/dist/actions/update-row-database.d.cts.map +1 -1
  338. package/dist/actions/update-row-database.d.mts +127 -3
  339. package/dist/actions/update-row-database.d.mts.map +1 -1
  340. package/dist/actions/update-row-database.mjs +50 -50
  341. package/dist/actions/update-row-database.mjs.map +1 -1
  342. package/dist/actions/update-schema-database.cjs +59 -59
  343. package/dist/actions/update-schema-database.cjs.map +1 -1
  344. package/dist/actions/update-schema-database.d.cts +315 -3
  345. package/dist/actions/update-schema-database.d.cts.map +1 -1
  346. package/dist/actions/update-schema-database.d.mts +315 -3
  347. package/dist/actions/update-schema-database.d.mts.map +1 -1
  348. package/dist/actions/update-schema-database.mjs +59 -59
  349. package/dist/actions/update-schema-database.mjs.map +1 -1
  350. package/dist/actions/upsert-row-database.cjs +32 -32
  351. package/dist/actions/upsert-row-database.cjs.map +1 -1
  352. package/dist/actions/upsert-row-database.d.cts +242 -3
  353. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  354. package/dist/actions/upsert-row-database.d.mts +242 -3
  355. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  356. package/dist/actions/upsert-row-database.mjs +32 -32
  357. package/dist/actions/upsert-row-database.mjs.map +1 -1
  358. package/dist/execute.cjs +1 -1
  359. package/dist/execute.cjs.map +1 -1
  360. package/dist/execute.mjs +1 -1
  361. package/dist/execute.mjs.map +1 -1
  362. package/package.json +2 -2
@@ -1,9 +1,171 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/insert-row-database.d.ts
4
- declare const NotionInsertRowDatabaseInput: z.ZodTypeAny;
5
- declare const NotionInsertRowDatabaseOutput: z.ZodTypeAny;
6
- declare const notionInsertRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionInsertRowDatabaseInput: z.ZodObject<{
5
+ icon: z.ZodOptional<z.ZodString>;
6
+ cover: z.ZodOptional<z.ZodString>;
7
+ properties: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
8
+ name: z.ZodString;
9
+ type: z.ZodEnum<{
10
+ number: "number";
11
+ date: "date";
12
+ url: "url";
13
+ title: "title";
14
+ created_by: "created_by";
15
+ created_time: "created_time";
16
+ last_edited_by: "last_edited_by";
17
+ last_edited_time: "last_edited_time";
18
+ rich_text: "rich_text";
19
+ select: "select";
20
+ multi_select: "multi_select";
21
+ people: "people";
22
+ files: "files";
23
+ checkbox: "checkbox";
24
+ email: "email";
25
+ phone_number: "phone_number";
26
+ formula: "formula";
27
+ relation: "relation";
28
+ rollup: "rollup";
29
+ status: "status";
30
+ place: "place";
31
+ unique_id: "unique_id";
32
+ }>;
33
+ value: z.ZodString;
34
+ }, z.core.$loose>>>>;
35
+ database_id: z.ZodString;
36
+ child_blocks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
37
+ bold: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
38
+ code: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
39
+ link: z.ZodOptional<z.ZodString>;
40
+ color: z.ZodOptional<z.ZodDefault<z.ZodString>>;
41
+ italic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42
+ content: z.ZodOptional<z.ZodString>;
43
+ underline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
44
+ strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
45
+ block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
46
+ file: "file";
47
+ paragraph: "paragraph";
48
+ heading_1: "heading_1";
49
+ heading_2: "heading_2";
50
+ heading_3: "heading_3";
51
+ bulleted_list_item: "bulleted_list_item";
52
+ numbered_list_item: "numbered_list_item";
53
+ to_do: "to_do";
54
+ toggle: "toggle";
55
+ quote: "quote";
56
+ callout: "callout";
57
+ divider: "divider";
58
+ image: "image";
59
+ video: "video";
60
+ }>>>;
61
+ }, z.core.$loose>>>>;
62
+ }, z.core.$strip>;
63
+ declare const NotionInsertRowDatabaseOutput: z.ZodObject<{
64
+ id: z.ZodNullable<z.ZodString>;
65
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
67
+ type: z.ZodNullable<z.ZodString>;
68
+ emoji: z.ZodNullable<z.ZodString>;
69
+ }, z.core.$loose>, z.ZodObject<{
70
+ type: z.ZodNullable<z.ZodString>;
71
+ custom_emoji: z.ZodNullable<z.ZodObject<{
72
+ id: z.ZodNullable<z.ZodString>;
73
+ url: z.ZodNullable<z.ZodString>;
74
+ name: z.ZodNullable<z.ZodString>;
75
+ }, z.core.$loose>>;
76
+ }, z.core.$loose>, z.ZodObject<{
77
+ file: z.ZodNullable<z.ZodObject<{
78
+ url: z.ZodNullable<z.ZodString>;
79
+ expiry_time: z.ZodNullable<z.ZodString>;
80
+ }, z.core.$loose>>;
81
+ type: z.ZodNullable<z.ZodString>;
82
+ }, z.core.$loose>, z.ZodObject<{
83
+ type: z.ZodNullable<z.ZodString>;
84
+ file_upload: z.ZodNullable<z.ZodObject<{
85
+ id: z.ZodNullable<z.ZodString>;
86
+ }, z.core.$loose>>;
87
+ }, z.core.$loose>, z.ZodObject<{
88
+ type: z.ZodNullable<z.ZodString>;
89
+ external: z.ZodNullable<z.ZodObject<{
90
+ url: z.ZodNullable<z.ZodString>;
91
+ }, z.core.$loose>>;
92
+ }, z.core.$loose>]>>>;
93
+ cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
94
+ file: z.ZodNullable<z.ZodObject<{
95
+ url: z.ZodNullable<z.ZodString>;
96
+ expiry_time: z.ZodNullable<z.ZodString>;
97
+ }, z.core.$loose>>;
98
+ type: z.ZodNullable<z.ZodString>;
99
+ }, z.core.$loose>, z.ZodObject<{
100
+ type: z.ZodNullable<z.ZodString>;
101
+ file_upload: z.ZodNullable<z.ZodObject<{
102
+ id: z.ZodNullable<z.ZodString>;
103
+ }, z.core.$loose>>;
104
+ }, z.core.$loose>, z.ZodObject<{
105
+ type: z.ZodNullable<z.ZodString>;
106
+ external: z.ZodNullable<z.ZodObject<{
107
+ url: z.ZodNullable<z.ZodString>;
108
+ }, z.core.$loose>>;
109
+ }, z.core.$loose>]>>>;
110
+ object: z.ZodNullable<z.ZodString>;
111
+ parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
112
+ type: z.ZodNullable<z.ZodString>;
113
+ database_id: z.ZodNullable<z.ZodString>;
114
+ }, z.core.$loose>, z.ZodObject<{
115
+ type: z.ZodNullable<z.ZodString>;
116
+ database_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ data_source_id: z.ZodNullable<z.ZodString>;
118
+ }, z.core.$loose>, z.ZodObject<{
119
+ type: z.ZodNullable<z.ZodString>;
120
+ page_id: z.ZodNullable<z.ZodString>;
121
+ }, z.core.$loose>, z.ZodObject<{
122
+ type: z.ZodNullable<z.ZodString>;
123
+ workspace: z.ZodNullable<z.ZodBoolean>;
124
+ }, z.core.$loose>, z.ZodObject<{
125
+ type: z.ZodNullable<z.ZodString>;
126
+ block_id: z.ZodNullable<z.ZodString>;
127
+ }, z.core.$loose>]>>>;
128
+ archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
129
+ in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
130
+ is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
131
+ created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
132
+ id: z.ZodNullable<z.ZodString>;
133
+ object: z.ZodNullable<z.ZodString>;
134
+ }, z.core.$loose>>>;
135
+ properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
136
+ public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
140
+ id: z.ZodNullable<z.ZodString>;
141
+ object: z.ZodNullable<z.ZodString>;
142
+ }, z.core.$loose>>>;
143
+ last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ }, z.core.$loose>;
146
+ declare const notionInsertRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
147
+ database_id: string;
148
+ icon?: string | undefined;
149
+ cover?: string | undefined;
150
+ properties?: {
151
+ [x: string]: unknown;
152
+ name: string;
153
+ type: "number" | "date" | "url" | "title" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "rich_text" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
154
+ value: string;
155
+ }[] | undefined;
156
+ child_blocks?: {
157
+ [x: string]: unknown;
158
+ bold?: boolean | undefined;
159
+ code?: boolean | undefined;
160
+ link?: string | undefined;
161
+ color?: string | undefined;
162
+ italic?: boolean | undefined;
163
+ content?: string | undefined;
164
+ underline?: boolean | undefined;
165
+ strikethrough?: boolean | undefined;
166
+ block_property?: "file" | "paragraph" | "heading_1" | "heading_2" | "heading_3" | "bulleted_list_item" | "numbered_list_item" | "to_do" | "toggle" | "quote" | "callout" | "divider" | "image" | "video" | undefined;
167
+ }[] | undefined;
168
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
169
  //#endregion
8
170
  export { notionInsertRowDatabase };
9
171
  //# sourceMappingURL=insert-row-database.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"insert-row-database.d.cts","names":[],"sources":["../../src/actions/insert-row-database.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAoB3C;AAAA,cAyEW,6BAAA,EAA+B,CAAA,CAAE,UAkByH;AAAA,cAE1J,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"insert-row-database.d.cts","names":[],"sources":["../../src/actions/insert-row-database.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6F5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,171 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/insert-row-database.d.ts
4
- declare const NotionInsertRowDatabaseInput: z.ZodTypeAny;
5
- declare const NotionInsertRowDatabaseOutput: z.ZodTypeAny;
6
- declare const notionInsertRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionInsertRowDatabaseInput: z.ZodObject<{
5
+ icon: z.ZodOptional<z.ZodString>;
6
+ cover: z.ZodOptional<z.ZodString>;
7
+ properties: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
8
+ name: z.ZodString;
9
+ type: z.ZodEnum<{
10
+ number: "number";
11
+ date: "date";
12
+ url: "url";
13
+ title: "title";
14
+ created_by: "created_by";
15
+ created_time: "created_time";
16
+ last_edited_by: "last_edited_by";
17
+ last_edited_time: "last_edited_time";
18
+ rich_text: "rich_text";
19
+ select: "select";
20
+ multi_select: "multi_select";
21
+ people: "people";
22
+ files: "files";
23
+ checkbox: "checkbox";
24
+ email: "email";
25
+ phone_number: "phone_number";
26
+ formula: "formula";
27
+ relation: "relation";
28
+ rollup: "rollup";
29
+ status: "status";
30
+ place: "place";
31
+ unique_id: "unique_id";
32
+ }>;
33
+ value: z.ZodString;
34
+ }, z.core.$loose>>>>;
35
+ database_id: z.ZodString;
36
+ child_blocks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
37
+ bold: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
38
+ code: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
39
+ link: z.ZodOptional<z.ZodString>;
40
+ color: z.ZodOptional<z.ZodDefault<z.ZodString>>;
41
+ italic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42
+ content: z.ZodOptional<z.ZodString>;
43
+ underline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
44
+ strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
45
+ block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
46
+ file: "file";
47
+ paragraph: "paragraph";
48
+ heading_1: "heading_1";
49
+ heading_2: "heading_2";
50
+ heading_3: "heading_3";
51
+ bulleted_list_item: "bulleted_list_item";
52
+ numbered_list_item: "numbered_list_item";
53
+ to_do: "to_do";
54
+ toggle: "toggle";
55
+ quote: "quote";
56
+ callout: "callout";
57
+ divider: "divider";
58
+ image: "image";
59
+ video: "video";
60
+ }>>>;
61
+ }, z.core.$loose>>>>;
62
+ }, z.core.$strip>;
63
+ declare const NotionInsertRowDatabaseOutput: z.ZodObject<{
64
+ id: z.ZodNullable<z.ZodString>;
65
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
67
+ type: z.ZodNullable<z.ZodString>;
68
+ emoji: z.ZodNullable<z.ZodString>;
69
+ }, z.core.$loose>, z.ZodObject<{
70
+ type: z.ZodNullable<z.ZodString>;
71
+ custom_emoji: z.ZodNullable<z.ZodObject<{
72
+ id: z.ZodNullable<z.ZodString>;
73
+ url: z.ZodNullable<z.ZodString>;
74
+ name: z.ZodNullable<z.ZodString>;
75
+ }, z.core.$loose>>;
76
+ }, z.core.$loose>, z.ZodObject<{
77
+ file: z.ZodNullable<z.ZodObject<{
78
+ url: z.ZodNullable<z.ZodString>;
79
+ expiry_time: z.ZodNullable<z.ZodString>;
80
+ }, z.core.$loose>>;
81
+ type: z.ZodNullable<z.ZodString>;
82
+ }, z.core.$loose>, z.ZodObject<{
83
+ type: z.ZodNullable<z.ZodString>;
84
+ file_upload: z.ZodNullable<z.ZodObject<{
85
+ id: z.ZodNullable<z.ZodString>;
86
+ }, z.core.$loose>>;
87
+ }, z.core.$loose>, z.ZodObject<{
88
+ type: z.ZodNullable<z.ZodString>;
89
+ external: z.ZodNullable<z.ZodObject<{
90
+ url: z.ZodNullable<z.ZodString>;
91
+ }, z.core.$loose>>;
92
+ }, z.core.$loose>]>>>;
93
+ cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
94
+ file: z.ZodNullable<z.ZodObject<{
95
+ url: z.ZodNullable<z.ZodString>;
96
+ expiry_time: z.ZodNullable<z.ZodString>;
97
+ }, z.core.$loose>>;
98
+ type: z.ZodNullable<z.ZodString>;
99
+ }, z.core.$loose>, z.ZodObject<{
100
+ type: z.ZodNullable<z.ZodString>;
101
+ file_upload: z.ZodNullable<z.ZodObject<{
102
+ id: z.ZodNullable<z.ZodString>;
103
+ }, z.core.$loose>>;
104
+ }, z.core.$loose>, z.ZodObject<{
105
+ type: z.ZodNullable<z.ZodString>;
106
+ external: z.ZodNullable<z.ZodObject<{
107
+ url: z.ZodNullable<z.ZodString>;
108
+ }, z.core.$loose>>;
109
+ }, z.core.$loose>]>>>;
110
+ object: z.ZodNullable<z.ZodString>;
111
+ parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
112
+ type: z.ZodNullable<z.ZodString>;
113
+ database_id: z.ZodNullable<z.ZodString>;
114
+ }, z.core.$loose>, z.ZodObject<{
115
+ type: z.ZodNullable<z.ZodString>;
116
+ database_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ data_source_id: z.ZodNullable<z.ZodString>;
118
+ }, z.core.$loose>, z.ZodObject<{
119
+ type: z.ZodNullable<z.ZodString>;
120
+ page_id: z.ZodNullable<z.ZodString>;
121
+ }, z.core.$loose>, z.ZodObject<{
122
+ type: z.ZodNullable<z.ZodString>;
123
+ workspace: z.ZodNullable<z.ZodBoolean>;
124
+ }, z.core.$loose>, z.ZodObject<{
125
+ type: z.ZodNullable<z.ZodString>;
126
+ block_id: z.ZodNullable<z.ZodString>;
127
+ }, z.core.$loose>]>>>;
128
+ archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
129
+ in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
130
+ is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
131
+ created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
132
+ id: z.ZodNullable<z.ZodString>;
133
+ object: z.ZodNullable<z.ZodString>;
134
+ }, z.core.$loose>>>;
135
+ properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
136
+ public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
140
+ id: z.ZodNullable<z.ZodString>;
141
+ object: z.ZodNullable<z.ZodString>;
142
+ }, z.core.$loose>>>;
143
+ last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ }, z.core.$loose>;
146
+ declare const notionInsertRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
147
+ database_id: string;
148
+ icon?: string | undefined;
149
+ cover?: string | undefined;
150
+ properties?: {
151
+ [x: string]: unknown;
152
+ name: string;
153
+ type: "number" | "date" | "url" | "title" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "rich_text" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
154
+ value: string;
155
+ }[] | undefined;
156
+ child_blocks?: {
157
+ [x: string]: unknown;
158
+ bold?: boolean | undefined;
159
+ code?: boolean | undefined;
160
+ link?: string | undefined;
161
+ color?: string | undefined;
162
+ italic?: boolean | undefined;
163
+ content?: string | undefined;
164
+ underline?: boolean | undefined;
165
+ strikethrough?: boolean | undefined;
166
+ block_property?: "file" | "paragraph" | "heading_1" | "heading_2" | "heading_3" | "bulleted_list_item" | "numbered_list_item" | "to_do" | "toggle" | "quote" | "callout" | "divider" | "image" | "video" | undefined;
167
+ }[] | undefined;
168
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
169
  //#endregion
8
170
  export { notionInsertRowDatabase };
9
171
  //# sourceMappingURL=insert-row-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"insert-row-database.d.mts","names":[],"sources":["../../src/actions/insert-row-database.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAoB3C;AAAA,cAyEW,6BAAA,EAA+B,CAAA,CAAE,UAkByH;AAAA,cAE1J,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"insert-row-database.d.mts","names":[],"sources":["../../src/actions/insert-row-database.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6F5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB7B,uBAAA,gCAAuB,wBAAA"}
@@ -31,7 +31,7 @@ const NotionInsertRowDatabaseInput = z.object({
31
31
  "unique_id"
32
32
  ]).describe("Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place."),
33
33
  value: z.string().describe("Value formatted according to the property type:\n- title, rich_text - text string (max 2000 chars, truncated if longer)\n- number - numeric string ex. \"23.4\"\n- select - single option name (no commas). For multiple values, use multi_select.\n- multi_select - comma separated values ex. \"India,USA\"\n- date - ISO 8601. Single: \"2021-05-11\". Range: \"2021-05-11/2021-05-15\" (slash-separated).\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\n- url - a URL string.\n- files - comma separated HTTPS URLs only (no file:// or http://).\n- checkbox - \"True\" or \"False\"")
34
- })).default([]).describe("Property values for the new page. Accepts a LIST of objects or a JSON-encoded string. Each object must include: `name` (exact property name, case-sensitive), `type` (property data type), and `value` (string-formatted value).\n\nProperty names AND types are CASE-SENSITIVE and must match your Notion database schema exactly. Each database has exactly ONE 'title' type property; all other text properties use 'rich_text'. Use NOTION_FETCH_DATA with fetch_type='databases' to find exact property names and types.\n\nCORRECT FORMAT (list of property objects):\n[\n {\"name\": \"Task Name\", \"type\": \"title\", \"value\": \"Finalize Q3 report\"},\n {\"name\": \"Priority\", \"type\": \"select\", \"value\": \"High\"},\n {\"name\": \"Tags\", \"type\": \"multi_select\", \"value\": \"Work,Personal\"},\n {\"name\": \"Due Date\", \"type\": \"date\", \"value\": \"2024-06-01T12:00:00.000-04:00\"},\n {\"name\": \"Completed\", \"type\": \"checkbox\", \"value\": \"False\"}\n]\n\nINCORRECT FORMAT (dict - causes validation error): {\"Task Name\": \"value\", \"Priority\": \"High\"}\n\n'status' vs 'select' TYPE CONFUSION:\n- Dropdown lists use type='select' - even if the property is NAMED 'Status'.\n- The 'status' type is a special Notion property with workflow groups ('To-do', 'In progress', 'Complete').\n- Use NOTION_FETCH_DATA to verify the actual type in your database schema.\n\nPROPERTY TYPE ERRORS:\n- 'X is not a property that exists': Check schema - wrong property name or wrong type.\n- 'X is expected to be Y': Wrong type specified - use the type shown in the error.\n\nValue formatting rules by type:\n- `title` / `rich_text`: Plain text string (max 2000 chars).\n- `number`: String of a number (e.g., \"23.4\").\n- `select`: Single option name. Commas NOT allowed - use 'multi_select' for multiple values.\n- `multi_select`: Comma-separated option names (e.g., \"Work,Personal\"). Options must exist in schema.\n- `date`: ISO 8601. Single: \"2024-06-01T12:00:00.000-04:00\". Range: \"start/end\" separated by \"/\".\n- `people`: Comma-separated Notion user IDs.\n- `relation`: Comma-separated page UUIDs (NOT text/titles). Use NOTION_QUERY_DATABASE to get page IDs.\n- `checkbox`: \"True\" or \"False\".\n- `url`: Valid URL string.\n- `files`: Comma-separated URLs.\n- `email`: Valid email string.\n- `phone_number`: Phone number string. Only use if database property type is 'Phone'.").optional(),
34
+ }).passthrough()).default([]).describe("Property values for the new page. Accepts a LIST of objects or a JSON-encoded string. Each object must include: `name` (exact property name, case-sensitive), `type` (property data type), and `value` (string-formatted value).\n\nProperty names AND types are CASE-SENSITIVE and must match your Notion database schema exactly. Each database has exactly ONE 'title' type property; all other text properties use 'rich_text'. Use NOTION_FETCH_DATA with fetch_type='databases' to find exact property names and types.\n\nCORRECT FORMAT (list of property objects):\n[\n {\"name\": \"Task Name\", \"type\": \"title\", \"value\": \"Finalize Q3 report\"},\n {\"name\": \"Priority\", \"type\": \"select\", \"value\": \"High\"},\n {\"name\": \"Tags\", \"type\": \"multi_select\", \"value\": \"Work,Personal\"},\n {\"name\": \"Due Date\", \"type\": \"date\", \"value\": \"2024-06-01T12:00:00.000-04:00\"},\n {\"name\": \"Completed\", \"type\": \"checkbox\", \"value\": \"False\"}\n]\n\nINCORRECT FORMAT (dict - causes validation error): {\"Task Name\": \"value\", \"Priority\": \"High\"}\n\n'status' vs 'select' TYPE CONFUSION:\n- Dropdown lists use type='select' - even if the property is NAMED 'Status'.\n- The 'status' type is a special Notion property with workflow groups ('To-do', 'In progress', 'Complete').\n- Use NOTION_FETCH_DATA to verify the actual type in your database schema.\n\nPROPERTY TYPE ERRORS:\n- 'X is not a property that exists': Check schema - wrong property name or wrong type.\n- 'X is expected to be Y': Wrong type specified - use the type shown in the error.\n\nValue formatting rules by type:\n- `title` / `rich_text`: Plain text string (max 2000 chars).\n- `number`: String of a number (e.g., \"23.4\").\n- `select`: Single option name. Commas NOT allowed - use 'multi_select' for multiple values.\n- `multi_select`: Comma-separated option names (e.g., \"Work,Personal\"). Options must exist in schema.\n- `date`: ISO 8601. Single: \"2024-06-01T12:00:00.000-04:00\". Range: \"start/end\" separated by \"/\".\n- `people`: Comma-separated Notion user IDs.\n- `relation`: Comma-separated page UUIDs (NOT text/titles). Use NOTION_QUERY_DATABASE to get page IDs.\n- `checkbox`: \"True\" or \"False\".\n- `url`: Valid URL string.\n- `files`: Comma-separated URLs.\n- `email`: Valid email string.\n- `phone_number`: Phone number string. Only use if database property type is 'Phone'.").optional(),
35
35
  database_id: z.string().describe("Identifier (UUID) of the Notion database where the new page (row) will be inserted. Can be provided with or without hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5' or '598337872cf94fdf8782e53db20768a5'). This ID must correspond to an existing database that has been explicitly shared with your integration. IMPORTANT: The database must be shared with your integration in Notion settings, otherwise you will get a 404 error. NOTE: Databases with multiple data sources (synced databases or combined views) are not supported by this integration. Use the `NOTION_FETCH_DATA` action to find available database IDs that are already shared with your integration."),
36
36
  child_blocks: z.array(z.object({
37
37
  bold: z.boolean().default(false).describe("Indicates if the text is bold.").optional(),
@@ -58,83 +58,83 @@ const NotionInsertRowDatabaseInput = z.object({
58
58
  "video",
59
59
  "divider"
60
60
  ]).default("paragraph").describe("The block property of the block to be added. **Common text blocks:** `paragraph`, `heading_1`, `heading_2`, `heading_3`, `callout`, `to_do`, `toggle`, `quote`, `bulleted_list_item`, `numbered_list_item`. **Special blocks:** `divider` (creates a horizontal divider line, no content required). **Media/embed blocks:** `file`, `image`, `video` (requires `link` field with external URL - direct file uploads not supported). \n\n**NOTE:** Notion API only supports heading levels 1-3. heading_4, heading_5, etc. are automatically converted to heading_3.").optional()
61
- }).describe("Include these fields in the json: {'content': 'Some words', 'link': 'https://random-link.com'. For content styling, refer to https://developers.notion.com/reference/rich-text.\n\nENHANCED: The 'content' field now automatically detects and parses markdown formatting - supports bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Headers (# ## ###) are handled via block_property.")).default([]).describe("A list of `NotionRichText` objects defining content blocks (e.g., paragraphs, headings, media) to append to the new page's body. Accepts either a list of objects OR a JSON-encoded string representing a list. If omitted, the page body will be empty. \n\n**Supported block types:** paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote, bulleted_list_item, numbered_list_item, divider, image, video, file. \n\n**Media blocks (image, video, file):** Require the `link` field with an external URL. The Notion API does not support uploading files directly - you must provide publicly accessible URLs.\n\n**Note:** Notion API limits children to 100 blocks per request. If more than 100 blocks are provided, the action will automatically create the page with the first 100 blocks and then append remaining blocks in subsequent API calls.").optional()
61
+ }).passthrough().describe("Include these fields in the json: {'content': 'Some words', 'link': 'https://random-link.com'. For content styling, refer to https://developers.notion.com/reference/rich-text.\n\nENHANCED: The 'content' field now automatically detects and parses markdown formatting - supports bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Headers (# ## ###) are handled via block_property.")).default([]).describe("A list of `NotionRichText` objects defining content blocks (e.g., paragraphs, headings, media) to append to the new page's body. Accepts either a list of objects OR a JSON-encoded string representing a list. If omitted, the page body will be empty. \n\n**Supported block types:** paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote, bulleted_list_item, numbered_list_item, divider, image, video, file. \n\n**Media blocks (image, video, file):** Require the `link` field with an external URL. The Notion API does not support uploading files directly - you must provide publicly accessible URLs.\n\n**Note:** Notion API limits children to 100 blocks per request. If more than 100 blocks are provided, the action will automatically create the page with the first 100 blocks and then append remaining blocks in subsequent API calls.").optional()
62
62
  });
63
63
  const NotionInsertRowDatabase_EmojiIconSchema = z.object({
64
- type: z.string().describe("Always \"emoji\"."),
65
- emoji: z.string().describe("The emoji character (e.g., '😻').")
66
- }).describe("Standard emoji icon.");
64
+ type: z.string().describe("Always \"emoji\".").nullable(),
65
+ emoji: z.string().describe("The emoji character (e.g., '😻').").nullable()
66
+ }).passthrough().describe("Standard emoji icon.");
67
67
  const NotionInsertRowDatabase_CustomEmojiObjectSchema = z.object({
68
- id: z.string().describe("Unique identifier for the custom emoji."),
69
- url: z.string().describe("HTTPS URL to the emoji image."),
70
- name: z.string().describe("Display name of the custom emoji.")
71
- }).describe("Custom emoji object with identifier, name, and URL.");
68
+ id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
69
+ url: z.string().describe("HTTPS URL to the emoji image.").nullable(),
70
+ name: z.string().describe("Display name of the custom emoji.").nullable()
71
+ }).passthrough().describe("Custom emoji object with identifier, name, and URL.");
72
72
  const NotionInsertRowDatabase_CustomEmojiIconSchema = z.object({
73
- type: z.string().describe("Always \"custom_emoji\"."),
73
+ type: z.string().describe("Always \"custom_emoji\".").nullable(),
74
74
  custom_emoji: NotionInsertRowDatabase_CustomEmojiObjectSchema.nullable()
75
- }).describe("Custom emoji icon.");
75
+ }).passthrough().describe("Custom emoji icon.");
76
76
  const NotionInsertRowDatabase_NotionHostedFileSchema = z.object({
77
- url: z.string().describe("Authenticated URL to the file, valid for one hour."),
78
- expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
79
- }).describe("Notion-hosted file with authenticated URL.");
77
+ url: z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
78
+ expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
79
+ }).passthrough().describe("Notion-hosted file with authenticated URL.");
80
80
  const NotionInsertRowDatabase_FileIconWithHostedSchema = z.object({
81
81
  file: NotionInsertRowDatabase_NotionHostedFileSchema.nullable(),
82
- type: z.string().describe("Always \"file\".")
83
- }).describe("File icon with Notion-hosted file.");
84
- const NotionInsertRowDatabase_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID of the uploaded file object.") }).describe("File uploaded via API.");
82
+ type: z.string().describe("Always \"file\".").nullable()
83
+ }).passthrough().describe("File icon with Notion-hosted file.");
84
+ const NotionInsertRowDatabase_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID of the uploaded file object.").nullable() }).passthrough().describe("File uploaded via API.");
85
85
  const NotionInsertRowDatabase_FileIconWithUploadSchema = z.object({
86
- type: z.string().describe("Always \"file_upload\"."),
86
+ type: z.string().describe("Always \"file_upload\".").nullable(),
87
87
  file_upload: NotionInsertRowDatabase_FileUploadObjectSchema.nullable()
88
- }).describe("File icon with uploaded file.");
89
- const NotionInsertRowDatabase_ExternalFileObjectSchema = z.object({ url: z.string().describe("Link to the externally hosted content.") }).describe("External file reference.");
88
+ }).passthrough().describe("File icon with uploaded file.");
89
+ const NotionInsertRowDatabase_ExternalFileObjectSchema = z.object({ url: z.string().describe("Link to the externally hosted content.").nullable() }).passthrough().describe("External file reference.");
90
90
  const NotionInsertRowDatabase_FileIconWithExternalSchema = z.object({
91
- type: z.string().describe("Always \"external\"."),
91
+ type: z.string().describe("Always \"external\".").nullable(),
92
92
  external: NotionInsertRowDatabase_ExternalFileObjectSchema.nullable()
93
- }).describe("File icon with external URL.");
93
+ }).passthrough().describe("File icon with external URL.");
94
94
  const NotionInsertRowDatabase_CoverWithHostedSchema = z.object({
95
95
  file: NotionInsertRowDatabase_NotionHostedFileSchema.nullable(),
96
- type: z.string().describe("Always \"file\".")
97
- }).describe("Cover with Notion-hosted file.");
96
+ type: z.string().describe("Always \"file\".").nullable()
97
+ }).passthrough().describe("Cover with Notion-hosted file.");
98
98
  const NotionInsertRowDatabase_CoverWithUploadSchema = z.object({
99
- type: z.string().describe("Always \"file_upload\"."),
99
+ type: z.string().describe("Always \"file_upload\".").nullable(),
100
100
  file_upload: NotionInsertRowDatabase_FileUploadObjectSchema.nullable()
101
- }).describe("Cover with uploaded file.");
101
+ }).passthrough().describe("Cover with uploaded file.");
102
102
  const NotionInsertRowDatabase_CoverWithExternalSchema = z.object({
103
- type: z.string().describe("Always \"external\"."),
103
+ type: z.string().describe("Always \"external\".").nullable(),
104
104
  external: NotionInsertRowDatabase_ExternalFileObjectSchema.nullable()
105
- }).describe("Cover with external URL.");
105
+ }).passthrough().describe("Cover with external URL.");
106
106
  const NotionInsertRowDatabase_DatabaseParentSchema = z.object({
107
- type: z.string().describe("Always \"database_id\"."),
108
- database_id: z.string().describe("The database identifier in UUIDv4 format.")
109
- }).describe("Parent is a database.");
107
+ type: z.string().describe("Always \"database_id\".").nullable(),
108
+ database_id: z.string().describe("The database identifier in UUIDv4 format.").nullable()
109
+ }).passthrough().describe("Parent is a database.");
110
110
  const NotionInsertRowDatabase_DataSourceParentSchema = z.object({
111
- type: z.string().describe("Always \"data_source_id\"."),
111
+ type: z.string().describe("Always \"data_source_id\".").nullable(),
112
112
  database_id: z.string().describe("The parent database identifier in UUIDv4 format.").nullable().optional(),
113
- data_source_id: z.string().describe("The data source identifier in UUIDv4 format.")
114
- }).describe("Parent is a data source.");
113
+ data_source_id: z.string().describe("The data source identifier in UUIDv4 format.").nullable()
114
+ }).passthrough().describe("Parent is a data source.");
115
115
  const NotionInsertRowDatabase_PageParentSchema = z.object({
116
- type: z.string().describe("Always \"page_id\"."),
117
- page_id: z.string().describe("The page identifier in UUIDv4 format.")
118
- }).describe("Parent is a page.");
116
+ type: z.string().describe("Always \"page_id\".").nullable(),
117
+ page_id: z.string().describe("The page identifier in UUIDv4 format.").nullable()
118
+ }).passthrough().describe("Parent is a page.");
119
119
  const NotionInsertRowDatabase_WorkspaceParentSchema = z.object({
120
- type: z.string().describe("Always \"workspace\"."),
121
- workspace: z.boolean().describe("Always true.")
122
- }).describe("Parent is the workspace.");
120
+ type: z.string().describe("Always \"workspace\".").nullable(),
121
+ workspace: z.boolean().describe("Always true.").nullable()
122
+ }).passthrough().describe("Parent is the workspace.");
123
123
  const NotionInsertRowDatabase_BlockParentSchema = z.object({
124
- type: z.string().describe("Always \"block_id\"."),
125
- block_id: z.string().describe("The block identifier in UUIDv4 format.")
126
- }).describe("Parent is a block.");
124
+ type: z.string().describe("Always \"block_id\".").nullable(),
125
+ block_id: z.string().describe("The block identifier in UUIDv4 format.").nullable()
126
+ }).passthrough().describe("Parent is a block.");
127
127
  const NotionInsertRowDatabase_PartialUserSchema = z.object({
128
- id: z.string().describe("Unique identifier for the user in UUID format."),
129
- object: z.string().describe("Always \"user\".")
130
- }).describe("Partial user object representing a Notion user.");
128
+ id: z.string().describe("Unique identifier for the user in UUID format.").nullable(),
129
+ object: z.string().describe("Always \"user\".").nullable()
130
+ }).passthrough().describe("Partial user object representing a Notion user.");
131
131
  const notionInsertRowDatabase = action("NOTION_INSERT_ROW_DATABASE", {
132
132
  slug: "notion-insert-row-database",
133
133
  name: "Insert row database",
134
134
  description: "Creates a new page (row) in a specified Notion database. Prerequisites: - Database must be shared with your integration - Property names AND types must match schema exactly (case-sensitive) - Use NOTION_FETCH_DATA with fetch_type='databases' first to get exact property names and types - Each database has ONE 'title' property; other text fields are 'rich_text' - Database must NOT have multiple data sources (synced databases are not supported) Common Errors: - 404: Database not shared with integration - 400 \"not a property\": Wrong property name - 400 \"expected to be X\": Wrong property type - 400 \"multiple_data_sources\": Database uses multiple data sources (not supported) Note: Rich text content in child_blocks is automatically truncated to 2000 characters per Notion API limits.",
135
135
  input: NotionInsertRowDatabaseInput,
136
136
  output: z.object({
137
- id: z.string().describe("Unique identifier for the page in UUIDv4 format."),
137
+ id: z.string().describe("Unique identifier for the page in UUIDv4 format.").nullable(),
138
138
  url: z.string().describe("URL of the Notion page.").nullable().optional(),
139
139
  icon: z.union([
140
140
  NotionInsertRowDatabase_EmojiIconSchema,
@@ -148,7 +148,7 @@ const notionInsertRowDatabase = action("NOTION_INSERT_ROW_DATABASE", {
148
148
  NotionInsertRowDatabase_CoverWithUploadSchema,
149
149
  NotionInsertRowDatabase_CoverWithExternalSchema
150
150
  ]).nullable().optional(),
151
- object: z.string().describe("Always \"page\". Identifies the type of object."),
151
+ object: z.string().describe("Always \"page\". Identifies the type of object.").nullable(),
152
152
  parent: z.union([
153
153
  NotionInsertRowDatabase_DatabaseParentSchema,
154
154
  NotionInsertRowDatabase_DataSourceParentSchema,
@@ -160,14 +160,14 @@ const notionInsertRowDatabase = action("NOTION_INSERT_ROW_DATABASE", {
160
160
  in_trash: z.boolean().describe("Whether the page is in the trash.").nullable().optional(),
161
161
  is_locked: z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
162
162
  created_by: NotionInsertRowDatabase_PartialUserSchema.nullable().optional(),
163
- properties: z.object({}).describe("Property values of the page. Keys are property names, values are property objects.").nullable().optional(),
163
+ properties: z.record(z.string(), z.unknown()).describe("Property values of the page. Keys are property names, values are property objects.").nullable().optional(),
164
164
  public_url: z.string().describe("Public URL if the page is published, otherwise null.").nullable().optional(),
165
165
  request_id: z.string().describe("Unique identifier for the API request.").nullable().optional(),
166
166
  created_time: z.string().describe("ISO 8601 timestamp when the page was created.").nullable().optional(),
167
167
  last_edited_by: NotionInsertRowDatabase_PartialUserSchema.nullable().optional(),
168
168
  last_edited_time: z.string().describe("ISO 8601 timestamp when the page was last edited.").nullable().optional(),
169
169
  composio_execution_message: z.string().describe("Message indicating any special handling performed during execution, such as automatic chunking of blocks when more than 100 were provided.").nullable().optional()
170
- }).describe("Response object returned when inserting a row (page) in a Notion database.\n\nReturns the complete created page object with all properties and metadata.")
170
+ }).passthrough().describe("Response object returned when inserting a row (page) in a Notion database.\n\nReturns the complete created page object with all properties and metadata.")
171
171
  });
172
172
  //#endregion
173
173
  export { notionInsertRowDatabase };