@keystrokehq/notion 0.0.16 → 0.1.2

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 (407) hide show
  1. package/README.md +11 -41
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-multiple-page-content.cjs +80 -0
  7. package/dist/actions/add-multiple-page-content.cjs.map +1 -0
  8. package/dist/actions/add-multiple-page-content.d.cts +94 -0
  9. package/dist/actions/add-multiple-page-content.d.cts.map +1 -0
  10. package/dist/actions/add-multiple-page-content.d.mts +94 -0
  11. package/dist/actions/add-multiple-page-content.d.mts.map +1 -0
  12. package/dist/actions/add-multiple-page-content.mjs +79 -0
  13. package/dist/actions/add-multiple-page-content.mjs.map +1 -0
  14. package/dist/actions/append-code-blocks.cjs +446 -0
  15. package/dist/actions/append-code-blocks.cjs.map +1 -0
  16. package/dist/actions/append-code-blocks.d.cts +855 -0
  17. package/dist/actions/append-code-blocks.d.cts.map +1 -0
  18. package/dist/actions/append-code-blocks.d.mts +855 -0
  19. package/dist/actions/append-code-blocks.d.mts.map +1 -0
  20. package/dist/actions/append-code-blocks.mjs +445 -0
  21. package/dist/actions/append-code-blocks.mjs.map +1 -0
  22. package/dist/actions/append-layout-blocks.cjs +278 -0
  23. package/dist/actions/append-layout-blocks.cjs.map +1 -0
  24. package/dist/actions/append-layout-blocks.d.cts +648 -0
  25. package/dist/actions/append-layout-blocks.d.cts.map +1 -0
  26. package/dist/actions/append-layout-blocks.d.mts +648 -0
  27. package/dist/actions/append-layout-blocks.d.mts.map +1 -0
  28. package/dist/actions/append-layout-blocks.mjs +277 -0
  29. package/dist/actions/append-layout-blocks.mjs.map +1 -0
  30. package/dist/actions/append-media-blocks.cjs +491 -0
  31. package/dist/actions/append-media-blocks.cjs.map +1 -0
  32. package/dist/actions/append-media-blocks.d.cts +1002 -0
  33. package/dist/actions/append-media-blocks.d.cts.map +1 -0
  34. package/dist/actions/append-media-blocks.d.mts +1002 -0
  35. package/dist/actions/append-media-blocks.d.mts.map +1 -0
  36. package/dist/actions/append-media-blocks.mjs +490 -0
  37. package/dist/actions/append-media-blocks.mjs.map +1 -0
  38. package/dist/actions/append-table-blocks.cjs +267 -0
  39. package/dist/actions/append-table-blocks.cjs.map +1 -0
  40. package/dist/actions/append-table-blocks.d.cts +630 -0
  41. package/dist/actions/append-table-blocks.d.cts.map +1 -0
  42. package/dist/actions/append-table-blocks.d.mts +630 -0
  43. package/dist/actions/append-table-blocks.d.mts.map +1 -0
  44. package/dist/actions/append-table-blocks.mjs +266 -0
  45. package/dist/actions/append-table-blocks.mjs.map +1 -0
  46. package/dist/actions/append-task-blocks.cjs +420 -0
  47. package/dist/actions/append-task-blocks.cjs.map +1 -0
  48. package/dist/actions/append-task-blocks.d.cts +832 -0
  49. package/dist/actions/append-task-blocks.d.cts.map +1 -0
  50. package/dist/actions/append-task-blocks.d.mts +832 -0
  51. package/dist/actions/append-task-blocks.d.mts.map +1 -0
  52. package/dist/actions/append-task-blocks.mjs +419 -0
  53. package/dist/actions/append-task-blocks.mjs.map +1 -0
  54. package/dist/actions/append-text-blocks.cjs +604 -0
  55. package/dist/actions/append-text-blocks.cjs.map +1 -0
  56. package/dist/actions/append-text-blocks.d.cts +1086 -0
  57. package/dist/actions/append-text-blocks.d.cts.map +1 -0
  58. package/dist/actions/append-text-blocks.d.mts +1086 -0
  59. package/dist/actions/append-text-blocks.d.mts.map +1 -0
  60. package/dist/actions/append-text-blocks.mjs +603 -0
  61. package/dist/actions/append-text-blocks.mjs.map +1 -0
  62. package/dist/actions/archive-notion-page.cjs +104 -0
  63. package/dist/actions/archive-notion-page.cjs.map +1 -0
  64. package/dist/actions/archive-notion-page.d.cts +84 -0
  65. package/dist/actions/archive-notion-page.d.cts.map +1 -0
  66. package/dist/actions/archive-notion-page.d.mts +84 -0
  67. package/dist/actions/archive-notion-page.d.mts.map +1 -0
  68. package/dist/actions/archive-notion-page.mjs +103 -0
  69. package/dist/actions/archive-notion-page.mjs.map +1 -0
  70. package/dist/actions/create-comment.cjs +45 -0
  71. package/dist/actions/create-comment.cjs.map +1 -0
  72. package/dist/actions/create-comment.d.cts +52 -0
  73. package/dist/actions/create-comment.d.cts.map +1 -0
  74. package/dist/actions/create-comment.d.mts +52 -0
  75. package/dist/actions/create-comment.d.mts.map +1 -0
  76. package/dist/actions/create-comment.mjs +42 -0
  77. package/dist/actions/create-comment.mjs.map +1 -0
  78. package/dist/actions/create-database.cjs +125 -0
  79. package/dist/actions/create-database.cjs.map +1 -0
  80. package/dist/actions/create-database.d.cts +145 -0
  81. package/dist/actions/create-database.d.cts.map +1 -0
  82. package/dist/actions/create-database.d.mts +145 -0
  83. package/dist/actions/create-database.d.mts.map +1 -0
  84. package/dist/actions/create-database.mjs +124 -0
  85. package/dist/actions/create-database.mjs.map +1 -0
  86. package/dist/actions/create-file-upload.cjs +45 -0
  87. package/dist/actions/create-file-upload.cjs.map +1 -0
  88. package/dist/actions/create-file-upload.d.cts +44 -0
  89. package/dist/actions/create-file-upload.d.cts.map +1 -0
  90. package/dist/actions/create-file-upload.d.mts +44 -0
  91. package/dist/actions/create-file-upload.d.mts.map +1 -0
  92. package/dist/actions/create-file-upload.mjs +42 -0
  93. package/dist/actions/create-file-upload.mjs.map +1 -0
  94. package/dist/actions/create-notion-page.cjs +94 -0
  95. package/dist/actions/create-notion-page.cjs.map +1 -0
  96. package/dist/actions/create-notion-page.d.cts +89 -0
  97. package/dist/actions/create-notion-page.d.cts.map +1 -0
  98. package/dist/actions/create-notion-page.d.mts +89 -0
  99. package/dist/actions/create-notion-page.d.mts.map +1 -0
  100. package/dist/actions/create-notion-page.mjs +93 -0
  101. package/dist/actions/create-notion-page.mjs.map +1 -0
  102. package/dist/actions/delete-block.cjs +411 -0
  103. package/dist/actions/delete-block.cjs.map +1 -0
  104. package/dist/actions/delete-block.d.cts +2187 -0
  105. package/dist/actions/delete-block.d.cts.map +1 -0
  106. package/dist/actions/delete-block.d.mts +2187 -0
  107. package/dist/actions/delete-block.d.mts.map +1 -0
  108. package/dist/actions/delete-block.mjs +410 -0
  109. package/dist/actions/delete-block.mjs.map +1 -0
  110. package/dist/actions/duplicate-page.cjs +119 -0
  111. package/dist/actions/duplicate-page.cjs.map +1 -0
  112. package/dist/actions/duplicate-page.d.cts +96 -0
  113. package/dist/actions/duplicate-page.d.cts.map +1 -0
  114. package/dist/actions/duplicate-page.d.mts +96 -0
  115. package/dist/actions/duplicate-page.d.mts.map +1 -0
  116. package/dist/actions/duplicate-page.mjs +118 -0
  117. package/dist/actions/duplicate-page.mjs.map +1 -0
  118. package/dist/actions/fetch-all-block-contents.cjs +270 -0
  119. package/dist/actions/fetch-all-block-contents.cjs.map +1 -0
  120. package/dist/actions/fetch-all-block-contents.d.cts +44 -0
  121. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -0
  122. package/dist/actions/fetch-all-block-contents.d.mts +44 -0
  123. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -0
  124. package/dist/actions/fetch-all-block-contents.mjs +269 -0
  125. package/dist/actions/fetch-all-block-contents.mjs.map +1 -0
  126. package/dist/actions/fetch-block-contents.cjs +232 -0
  127. package/dist/actions/fetch-block-contents.cjs.map +1 -0
  128. package/dist/actions/fetch-block-contents.d.cts +693 -0
  129. package/dist/actions/fetch-block-contents.d.cts.map +1 -0
  130. package/dist/actions/fetch-block-contents.d.mts +693 -0
  131. package/dist/actions/fetch-block-contents.d.mts.map +1 -0
  132. package/dist/actions/fetch-block-contents.mjs +231 -0
  133. package/dist/actions/fetch-block-contents.mjs.map +1 -0
  134. package/dist/actions/fetch-block-metadata.cjs +406 -0
  135. package/dist/actions/fetch-block-metadata.cjs.map +1 -0
  136. package/dist/actions/fetch-block-metadata.d.cts +2109 -0
  137. package/dist/actions/fetch-block-metadata.d.cts.map +1 -0
  138. package/dist/actions/fetch-block-metadata.d.mts +2109 -0
  139. package/dist/actions/fetch-block-metadata.d.mts.map +1 -0
  140. package/dist/actions/fetch-block-metadata.mjs +405 -0
  141. package/dist/actions/fetch-block-metadata.mjs.map +1 -0
  142. package/dist/actions/fetch-comments.cjs +136 -0
  143. package/dist/actions/fetch-comments.cjs.map +1 -0
  144. package/dist/actions/fetch-comments.d.cts +154 -0
  145. package/dist/actions/fetch-comments.d.cts.map +1 -0
  146. package/dist/actions/fetch-comments.d.mts +154 -0
  147. package/dist/actions/fetch-comments.d.mts.map +1 -0
  148. package/dist/actions/fetch-comments.mjs +135 -0
  149. package/dist/actions/fetch-comments.mjs.map +1 -0
  150. package/dist/actions/fetch-data.cjs +227 -0
  151. package/dist/actions/fetch-data.cjs.map +1 -0
  152. package/dist/actions/fetch-data.d.cts +600 -0
  153. package/dist/actions/fetch-data.d.cts.map +1 -0
  154. package/dist/actions/fetch-data.d.mts +600 -0
  155. package/dist/actions/fetch-data.d.mts.map +1 -0
  156. package/dist/actions/fetch-data.mjs +226 -0
  157. package/dist/actions/fetch-data.mjs.map +1 -0
  158. package/dist/actions/fetch-database.cjs +84 -0
  159. package/dist/actions/fetch-database.cjs.map +1 -0
  160. package/dist/actions/fetch-database.d.cts +95 -0
  161. package/dist/actions/fetch-database.d.cts.map +1 -0
  162. package/dist/actions/fetch-database.d.mts +95 -0
  163. package/dist/actions/fetch-database.d.mts.map +1 -0
  164. package/dist/actions/fetch-database.mjs +83 -0
  165. package/dist/actions/fetch-database.mjs.map +1 -0
  166. package/dist/actions/fetch-row.cjs +133 -0
  167. package/dist/actions/fetch-row.cjs.map +1 -0
  168. package/dist/actions/fetch-row.d.cts +157 -0
  169. package/dist/actions/fetch-row.d.cts.map +1 -0
  170. package/dist/actions/fetch-row.d.mts +157 -0
  171. package/dist/actions/fetch-row.d.mts.map +1 -0
  172. package/dist/actions/fetch-row.mjs +132 -0
  173. package/dist/actions/fetch-row.mjs.map +1 -0
  174. package/dist/actions/get-about-user.cjs +46 -0
  175. package/dist/actions/get-about-user.cjs.map +1 -0
  176. package/dist/actions/get-about-user.d.cts +50 -0
  177. package/dist/actions/get-about-user.d.cts.map +1 -0
  178. package/dist/actions/get-about-user.d.mts +50 -0
  179. package/dist/actions/get-about-user.d.mts.map +1 -0
  180. package/dist/actions/get-about-user.mjs +45 -0
  181. package/dist/actions/get-about-user.mjs.map +1 -0
  182. package/dist/actions/get-page-markdown.cjs +25 -0
  183. package/dist/actions/get-page-markdown.cjs.map +1 -0
  184. package/dist/actions/get-page-markdown.d.cts +21 -0
  185. package/dist/actions/get-page-markdown.d.cts.map +1 -0
  186. package/dist/actions/get-page-markdown.d.mts +21 -0
  187. package/dist/actions/get-page-markdown.d.mts.map +1 -0
  188. package/dist/actions/get-page-markdown.mjs +22 -0
  189. package/dist/actions/get-page-markdown.mjs.map +1 -0
  190. package/dist/actions/get-page-property-action.cjs +21 -0
  191. package/dist/actions/get-page-property-action.cjs.map +1 -0
  192. package/dist/actions/get-page-property-action.d.cts +19 -0
  193. package/dist/actions/get-page-property-action.d.cts.map +1 -0
  194. package/dist/actions/get-page-property-action.d.mts +19 -0
  195. package/dist/actions/get-page-property-action.d.mts.map +1 -0
  196. package/dist/actions/get-page-property-action.mjs +18 -0
  197. package/dist/actions/get-page-property-action.mjs.map +1 -0
  198. package/dist/actions/index.cjs +91 -0
  199. package/dist/actions/index.d.cts +46 -0
  200. package/dist/actions/index.d.mts +46 -0
  201. package/dist/actions/index.mjs +46 -0
  202. package/dist/actions/insert-row-database.cjs +176 -0
  203. package/dist/actions/insert-row-database.cjs.map +1 -0
  204. package/dist/actions/insert-row-database.d.cts +169 -0
  205. package/dist/actions/insert-row-database.d.cts.map +1 -0
  206. package/dist/actions/insert-row-database.d.mts +169 -0
  207. package/dist/actions/insert-row-database.d.mts.map +1 -0
  208. package/dist/actions/insert-row-database.mjs +175 -0
  209. package/dist/actions/insert-row-database.mjs.map +1 -0
  210. package/dist/actions/insert-row-from-nl.cjs +27 -0
  211. package/dist/actions/insert-row-from-nl.cjs.map +1 -0
  212. package/dist/actions/insert-row-from-nl.d.cts +25 -0
  213. package/dist/actions/insert-row-from-nl.d.cts.map +1 -0
  214. package/dist/actions/insert-row-from-nl.d.mts +25 -0
  215. package/dist/actions/insert-row-from-nl.d.mts.map +1 -0
  216. package/dist/actions/insert-row-from-nl.mjs +24 -0
  217. package/dist/actions/insert-row-from-nl.mjs.map +1 -0
  218. package/dist/actions/list-data-source-templates.cjs +29 -0
  219. package/dist/actions/list-data-source-templates.cjs.map +1 -0
  220. package/dist/actions/list-data-source-templates.d.cts +25 -0
  221. package/dist/actions/list-data-source-templates.d.cts.map +1 -0
  222. package/dist/actions/list-data-source-templates.d.mts +25 -0
  223. package/dist/actions/list-data-source-templates.d.mts.map +1 -0
  224. package/dist/actions/list-data-source-templates.mjs +28 -0
  225. package/dist/actions/list-data-source-templates.mjs.map +1 -0
  226. package/dist/actions/list-file-uploads.cjs +43 -0
  227. package/dist/actions/list-file-uploads.cjs.map +1 -0
  228. package/dist/actions/list-file-uploads.d.cts +38 -0
  229. package/dist/actions/list-file-uploads.d.cts.map +1 -0
  230. package/dist/actions/list-file-uploads.d.mts +38 -0
  231. package/dist/actions/list-file-uploads.d.mts.map +1 -0
  232. package/dist/actions/list-file-uploads.mjs +42 -0
  233. package/dist/actions/list-file-uploads.mjs.map +1 -0
  234. package/dist/actions/list-users.cjs +58 -0
  235. package/dist/actions/list-users.cjs.map +1 -0
  236. package/dist/actions/list-users.d.cts +64 -0
  237. package/dist/actions/list-users.d.cts.map +1 -0
  238. package/dist/actions/list-users.d.mts +64 -0
  239. package/dist/actions/list-users.d.mts.map +1 -0
  240. package/dist/actions/list-users.mjs +57 -0
  241. package/dist/actions/list-users.mjs.map +1 -0
  242. package/dist/actions/move-page.cjs +110 -0
  243. package/dist/actions/move-page.cjs.map +1 -0
  244. package/dist/actions/move-page.d.cts +96 -0
  245. package/dist/actions/move-page.d.cts.map +1 -0
  246. package/dist/actions/move-page.d.mts +96 -0
  247. package/dist/actions/move-page.d.mts.map +1 -0
  248. package/dist/actions/move-page.mjs +109 -0
  249. package/dist/actions/move-page.mjs.map +1 -0
  250. package/dist/actions/query-data-source.cjs +118 -0
  251. package/dist/actions/query-data-source.cjs.map +1 -0
  252. package/dist/actions/query-data-source.d.cts +165 -0
  253. package/dist/actions/query-data-source.d.cts.map +1 -0
  254. package/dist/actions/query-data-source.d.mts +165 -0
  255. package/dist/actions/query-data-source.d.mts.map +1 -0
  256. package/dist/actions/query-data-source.mjs +117 -0
  257. package/dist/actions/query-data-source.mjs.map +1 -0
  258. package/dist/actions/query-database-with-filter.cjs +172 -0
  259. package/dist/actions/query-database-with-filter.cjs.map +1 -0
  260. package/dist/actions/query-database-with-filter.d.cts +220 -0
  261. package/dist/actions/query-database-with-filter.d.cts.map +1 -0
  262. package/dist/actions/query-database-with-filter.d.mts +220 -0
  263. package/dist/actions/query-database-with-filter.d.mts.map +1 -0
  264. package/dist/actions/query-database-with-filter.mjs +171 -0
  265. package/dist/actions/query-database-with-filter.mjs.map +1 -0
  266. package/dist/actions/query-database.cjs +171 -0
  267. package/dist/actions/query-database.cjs.map +1 -0
  268. package/dist/actions/query-database.d.cts +214 -0
  269. package/dist/actions/query-database.d.cts.map +1 -0
  270. package/dist/actions/query-database.d.mts +214 -0
  271. package/dist/actions/query-database.d.mts.map +1 -0
  272. package/dist/actions/query-database.mjs +170 -0
  273. package/dist/actions/query-database.mjs.map +1 -0
  274. package/dist/actions/replace-page-content.cjs +1175 -0
  275. package/dist/actions/replace-page-content.cjs.map +1 -0
  276. package/dist/actions/replace-page-content.d.cts +1712 -0
  277. package/dist/actions/replace-page-content.d.cts.map +1 -0
  278. package/dist/actions/replace-page-content.d.mts +1712 -0
  279. package/dist/actions/replace-page-content.d.mts.map +1 -0
  280. package/dist/actions/replace-page-content.mjs +1172 -0
  281. package/dist/actions/replace-page-content.mjs.map +1 -0
  282. package/dist/actions/retrieve-comment.cjs +16 -0
  283. package/dist/actions/retrieve-comment.cjs.map +1 -0
  284. package/dist/actions/retrieve-comment.d.cts +13 -0
  285. package/dist/actions/retrieve-comment.d.cts.map +1 -0
  286. package/dist/actions/retrieve-comment.d.mts +13 -0
  287. package/dist/actions/retrieve-comment.d.mts.map +1 -0
  288. package/dist/actions/retrieve-comment.mjs +13 -0
  289. package/dist/actions/retrieve-comment.mjs.map +1 -0
  290. package/dist/actions/retrieve-database-property.cjs +80 -0
  291. package/dist/actions/retrieve-database-property.cjs.map +1 -0
  292. package/dist/actions/retrieve-database-property.d.cts +84 -0
  293. package/dist/actions/retrieve-database-property.d.cts.map +1 -0
  294. package/dist/actions/retrieve-database-property.d.mts +84 -0
  295. package/dist/actions/retrieve-database-property.d.mts.map +1 -0
  296. package/dist/actions/retrieve-database-property.mjs +79 -0
  297. package/dist/actions/retrieve-database-property.mjs.map +1 -0
  298. package/dist/actions/retrieve-file-upload.cjs +34 -0
  299. package/dist/actions/retrieve-file-upload.cjs.map +1 -0
  300. package/dist/actions/retrieve-file-upload.d.cts +31 -0
  301. package/dist/actions/retrieve-file-upload.d.cts.map +1 -0
  302. package/dist/actions/retrieve-file-upload.d.mts +31 -0
  303. package/dist/actions/retrieve-file-upload.d.mts.map +1 -0
  304. package/dist/actions/retrieve-file-upload.mjs +31 -0
  305. package/dist/actions/retrieve-file-upload.mjs.map +1 -0
  306. package/dist/actions/retrieve-page.cjs +129 -0
  307. package/dist/actions/retrieve-page.cjs.map +1 -0
  308. package/dist/actions/retrieve-page.d.cts +145 -0
  309. package/dist/actions/retrieve-page.d.cts.map +1 -0
  310. package/dist/actions/retrieve-page.d.mts +145 -0
  311. package/dist/actions/retrieve-page.d.mts.map +1 -0
  312. package/dist/actions/retrieve-page.mjs +128 -0
  313. package/dist/actions/retrieve-page.mjs.map +1 -0
  314. package/dist/actions/search-notion-page.cjs +245 -0
  315. package/dist/actions/search-notion-page.cjs.map +1 -0
  316. package/dist/actions/search-notion-page.d.cts +757 -0
  317. package/dist/actions/search-notion-page.d.cts.map +1 -0
  318. package/dist/actions/search-notion-page.d.mts +757 -0
  319. package/dist/actions/search-notion-page.d.mts.map +1 -0
  320. package/dist/actions/search-notion-page.mjs +244 -0
  321. package/dist/actions/search-notion-page.mjs.map +1 -0
  322. package/dist/actions/send-file-upload.cjs +37 -0
  323. package/dist/actions/send-file-upload.cjs.map +1 -0
  324. package/dist/actions/send-file-upload.d.cts +39 -0
  325. package/dist/actions/send-file-upload.d.cts.map +1 -0
  326. package/dist/actions/send-file-upload.d.mts +39 -0
  327. package/dist/actions/send-file-upload.d.mts.map +1 -0
  328. package/dist/actions/send-file-upload.mjs +34 -0
  329. package/dist/actions/send-file-upload.mjs.map +1 -0
  330. package/dist/actions/update-block.cjs +250 -0
  331. package/dist/actions/update-block.cjs.map +1 -0
  332. package/dist/actions/update-block.d.cts +570 -0
  333. package/dist/actions/update-block.d.cts.map +1 -0
  334. package/dist/actions/update-block.d.mts +570 -0
  335. package/dist/actions/update-block.d.mts.map +1 -0
  336. package/dist/actions/update-block.mjs +249 -0
  337. package/dist/actions/update-block.mjs.map +1 -0
  338. package/dist/actions/update-page.cjs +115 -0
  339. package/dist/actions/update-page.cjs.map +1 -0
  340. package/dist/actions/update-page.d.cts +109 -0
  341. package/dist/actions/update-page.d.cts.map +1 -0
  342. package/dist/actions/update-page.d.mts +109 -0
  343. package/dist/actions/update-page.d.mts.map +1 -0
  344. package/dist/actions/update-page.mjs +114 -0
  345. package/dist/actions/update-page.mjs.map +1 -0
  346. package/dist/actions/update-row-database.cjs +149 -0
  347. package/dist/actions/update-row-database.cjs.map +1 -0
  348. package/dist/actions/update-row-database.d.cts +132 -0
  349. package/dist/actions/update-row-database.d.cts.map +1 -0
  350. package/dist/actions/update-row-database.d.mts +132 -0
  351. package/dist/actions/update-row-database.d.mts.map +1 -0
  352. package/dist/actions/update-row-database.mjs +148 -0
  353. package/dist/actions/update-row-database.mjs.map +1 -0
  354. package/dist/actions/update-schema-database.cjs +198 -0
  355. package/dist/actions/update-schema-database.cjs.map +1 -0
  356. package/dist/actions/update-schema-database.d.cts +320 -0
  357. package/dist/actions/update-schema-database.d.cts.map +1 -0
  358. package/dist/actions/update-schema-database.d.mts +320 -0
  359. package/dist/actions/update-schema-database.d.mts.map +1 -0
  360. package/dist/actions/update-schema-database.mjs +197 -0
  361. package/dist/actions/update-schema-database.mjs.map +1 -0
  362. package/dist/actions/upsert-row-database.cjs +141 -0
  363. package/dist/actions/upsert-row-database.cjs.map +1 -0
  364. package/dist/actions/upsert-row-database.d.cts +224 -0
  365. package/dist/actions/upsert-row-database.d.cts.map +1 -0
  366. package/dist/actions/upsert-row-database.d.mts +224 -0
  367. package/dist/actions/upsert-row-database.d.mts.map +1 -0
  368. package/dist/actions/upsert-row-database.mjs +140 -0
  369. package/dist/actions/upsert-row-database.mjs.map +1 -0
  370. package/dist/app.cjs +9 -0
  371. package/dist/app.cjs.map +1 -0
  372. package/dist/app.d.cts +5 -0
  373. package/dist/app.d.cts.map +1 -0
  374. package/dist/app.d.mts +5 -0
  375. package/dist/app.d.mts.map +1 -0
  376. package/dist/app.mjs +10 -0
  377. package/dist/app.mjs.map +1 -0
  378. package/dist/catalog.cjs +15 -0
  379. package/dist/catalog.cjs.map +1 -0
  380. package/dist/catalog.d.cts +14 -0
  381. package/dist/catalog.d.cts.map +1 -0
  382. package/dist/catalog.d.mts +14 -0
  383. package/dist/catalog.d.mts.map +1 -0
  384. package/dist/catalog.mjs +15 -0
  385. package/dist/catalog.mjs.map +1 -0
  386. package/dist/execute.cjs +18 -0
  387. package/dist/execute.cjs.map +1 -0
  388. package/dist/execute.mjs +18 -0
  389. package/dist/execute.mjs.map +1 -0
  390. package/dist/index.cjs +96 -0
  391. package/dist/index.d.cts +48 -0
  392. package/dist/index.d.mts +48 -5
  393. package/dist/index.mjs +49 -7
  394. package/package.json +31 -53
  395. package/LICENSE +0 -21
  396. package/dist/credential-sets/index.d.mts +0 -2
  397. package/dist/credential-sets/index.mjs +0 -4
  398. package/dist/notion-webhook.credential-set-5tXWld_L.d.mts +0 -53
  399. package/dist/notion-webhook.credential-set-D_tczh8M.mjs +0 -25
  400. package/dist/notion.credential-set-BfA-EG9z.mjs +0 -44
  401. package/dist/operations/index.d.mts +0 -1104
  402. package/dist/operations/index.mjs +0 -32
  403. package/dist/schemas/index.d.mts +0 -190
  404. package/dist/schemas/index.mjs +0 -3
  405. package/dist/search-D4wvUAjS.mjs +0 -277
  406. package/dist/update-page.operation-6lf05oVs.d.mts +0 -1147
  407. package/dist/update-page.operation-BQWJrCll.mjs +0 -794
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-comment.ts
4
+ const NotionCreateCommentInput = zod.z.object({
5
+ comment: zod.z.object({
6
+ bold: zod.z.boolean().default(false).describe("Indicates if the text is bold.").optional(),
7
+ code: zod.z.boolean().default(false).describe("Indicates if the text is formatted as code.").optional(),
8
+ link: zod.z.string().describe("URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.").optional(),
9
+ color: zod.z.string().default("default").describe("The color of the text background or text itself.").optional(),
10
+ italic: zod.z.boolean().default(false).describe("Indicates if the text is italic.").optional(),
11
+ content: zod.z.string().describe("The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.").optional(),
12
+ underline: zod.z.boolean().default(false).describe("Indicates if the text is underlined.").optional(),
13
+ strikethrough: zod.z.boolean().default(false).describe("Indicates if the text has strikethrough.").optional(),
14
+ block_property: zod.z.enum([
15
+ "paragraph",
16
+ "heading_1",
17
+ "heading_2",
18
+ "heading_3",
19
+ "callout",
20
+ "to_do",
21
+ "toggle",
22
+ "quote",
23
+ "bulleted_list_item",
24
+ "numbered_list_item",
25
+ "file",
26
+ "image",
27
+ "video",
28
+ "divider"
29
+ ]).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()
30
+ }).describe("Content of the comment as a NotionRichText object or a JSON string. Simplest form: {'content': 'Looks good!'} or {'text': 'Looks good!'} (both 'content' and 'text' are accepted as the field name). Can also be passed as a JSON string: '{\"content\": \"Looks good!\"}'. Optional styling fields: bold, italic, etc. The 'link' field is for external URLs only (e.g., 'https://example.com'), NOT for page IDs. Do NOT wrap this in a list or use Notion API block JSON."),
31
+ discussion_id: zod.z.string().describe("The ID of an existing discussion thread to which the comment will be added. This is required if `parent_page_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens).").optional(),
32
+ parent_page_id: zod.z.string().describe("The ID of the Notion page where the comment will be added. This is required if `discussion_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens). Page IDs can be obtained using other Notion actions that fetch page details or list pages.").optional()
33
+ });
34
+ const NotionCreateCommentOutput = zod.z.unknown();
35
+ const notionCreateComment = require_action.action("NOTION_CREATE_COMMENT", {
36
+ slug: "notion-create-comment",
37
+ name: "Create comment",
38
+ description: "Adds a comment to a Notion page (via `parent_page_id`) OR to an existing discussion thread (via `discussion_id`); cannot create new discussion threads on specific blocks (inline comments).",
39
+ input: NotionCreateCommentInput,
40
+ output: NotionCreateCommentOutput
41
+ });
42
+ //#endregion
43
+ exports.notionCreateComment = notionCreateComment;
44
+
45
+ //# sourceMappingURL=create-comment.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateCommentInput = z.object({\n comment: z.object({\n bold: z.boolean().default(false).describe(\"Indicates if the text is bold.\").optional(),\n code: z.boolean().default(false).describe(\"Indicates if the text is formatted as code.\").optional(),\n link: z.string().describe(\"URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.\").optional(),\n color: z.string().default(\"default\").describe(\"The color of the text background or text itself.\").optional(),\n italic: z.boolean().default(false).describe(\"Indicates if the text is italic.\").optional(),\n content: z.string().describe(\"The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.\").optional(),\n underline: z.boolean().default(false).describe(\"Indicates if the text is underlined.\").optional(),\n strikethrough: z.boolean().default(false).describe(\"Indicates if the text has strikethrough.\").optional(),\n block_property: z.enum([\"paragraph\", \"heading_1\", \"heading_2\", \"heading_3\", \"callout\", \"to_do\", \"toggle\", \"quote\", \"bulleted_list_item\", \"numbered_list_item\", \"file\", \"image\", \"video\", \"divider\"]).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(),\n}).describe(\"Content of the comment as a NotionRichText object or a JSON string. Simplest form: {'content': 'Looks good!'} or {'text': 'Looks good!'} (both 'content' and 'text' are accepted as the field name). Can also be passed as a JSON string: '{\\\"content\\\": \\\"Looks good!\\\"}'. Optional styling fields: bold, italic, etc. The 'link' field is for external URLs only (e.g., 'https://example.com'), NOT for page IDs. Do NOT wrap this in a list or use Notion API block JSON.\"),\n discussion_id: z.string().describe(\"The ID of an existing discussion thread to which the comment will be added. This is required if `parent_page_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens).\").optional(),\n parent_page_id: z.string().describe(\"The ID of the Notion page where the comment will be added. This is required if `discussion_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens). Page IDs can be obtained using other Notion actions that fetch page details or list pages.\").optional(),\n});\nexport const NotionCreateCommentOutput = z.unknown();\n\nexport const notionCreateComment = action(\"NOTION_CREATE_COMMENT\", {\n slug: \"notion-create-comment\",\n name: \"Create comment\",\n description: \"Adds a comment to a Notion page (via `parent_page_id`) OR to an existing discussion thread (via `discussion_id`); cannot create new discussion threads on specific blocks (inline comments).\",\n input: NotionCreateCommentInput,\n output: NotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;EACzR,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uXAAuX,CAAC,CAAC,SAAS;EAC/Z,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAChG,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACxG,gBAAgBA,IAAAA,EAAE,KAAK;GAAC;GAAa;GAAa;GAAa;GAAa;GAAW;GAAS;GAAU;GAAS;GAAsB;GAAsB;GAAQ;GAAS;GAAS;EAAS,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,qiBAAqiB,CAAC,CAAC,SAAS;CACrxB,CAAC,CAAC,CAAC,SAAS,8cAA8c;CACxd,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACnP,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;AAC/T,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,QAAQ;AAEnD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-comment.d.ts
4
+ declare const NotionCreateCommentInput: z.ZodObject<{
5
+ comment: z.ZodObject<{
6
+ bold: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ code: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ link: z.ZodOptional<z.ZodString>;
9
+ color: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ italic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ content: z.ZodOptional<z.ZodString>;
12
+ underline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
+ file: "file";
16
+ quote: "quote";
17
+ image: "image";
18
+ to_do: "to_do";
19
+ video: "video";
20
+ toggle: "toggle";
21
+ callout: "callout";
22
+ divider: "divider";
23
+ heading_1: "heading_1";
24
+ heading_2: "heading_2";
25
+ heading_3: "heading_3";
26
+ paragraph: "paragraph";
27
+ bulleted_list_item: "bulleted_list_item";
28
+ numbered_list_item: "numbered_list_item";
29
+ }>>>;
30
+ }, z.core.$strip>;
31
+ discussion_id: z.ZodOptional<z.ZodString>;
32
+ parent_page_id: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ declare const NotionCreateCommentOutput: z.ZodUnknown;
35
+ declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ comment: {
37
+ bold?: boolean | undefined;
38
+ code?: boolean | undefined;
39
+ link?: string | undefined;
40
+ color?: string | undefined;
41
+ italic?: boolean | undefined;
42
+ content?: string | undefined;
43
+ underline?: boolean | undefined;
44
+ strikethrough?: boolean | undefined;
45
+ block_property?: "file" | "quote" | "image" | "to_do" | "video" | "toggle" | "callout" | "divider" | "heading_1" | "heading_2" | "heading_3" | "paragraph" | "bulleted_list_item" | "numbered_list_item" | undefined;
46
+ };
47
+ discussion_id?: string | undefined;
48
+ parent_page_id?: string | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
50
+ //#endregion
51
+ export { notionCreateComment };
52
+ //# sourceMappingURL=create-comment.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,UAAc;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA"}
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-comment.d.ts
4
+ declare const NotionCreateCommentInput: z.ZodObject<{
5
+ comment: z.ZodObject<{
6
+ bold: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ code: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ link: z.ZodOptional<z.ZodString>;
9
+ color: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ italic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ content: z.ZodOptional<z.ZodString>;
12
+ underline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
+ file: "file";
16
+ quote: "quote";
17
+ image: "image";
18
+ to_do: "to_do";
19
+ video: "video";
20
+ toggle: "toggle";
21
+ callout: "callout";
22
+ divider: "divider";
23
+ heading_1: "heading_1";
24
+ heading_2: "heading_2";
25
+ heading_3: "heading_3";
26
+ paragraph: "paragraph";
27
+ bulleted_list_item: "bulleted_list_item";
28
+ numbered_list_item: "numbered_list_item";
29
+ }>>>;
30
+ }, z.core.$strip>;
31
+ discussion_id: z.ZodOptional<z.ZodString>;
32
+ parent_page_id: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ declare const NotionCreateCommentOutput: z.ZodUnknown;
35
+ declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ comment: {
37
+ bold?: boolean | undefined;
38
+ code?: boolean | undefined;
39
+ link?: string | undefined;
40
+ color?: string | undefined;
41
+ italic?: boolean | undefined;
42
+ content?: string | undefined;
43
+ underline?: boolean | undefined;
44
+ strikethrough?: boolean | undefined;
45
+ block_property?: "file" | "quote" | "image" | "to_do" | "video" | "toggle" | "callout" | "divider" | "heading_1" | "heading_2" | "heading_3" | "paragraph" | "bulleted_list_item" | "numbered_list_item" | undefined;
46
+ };
47
+ discussion_id?: string | undefined;
48
+ parent_page_id?: string | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
50
+ //#endregion
51
+ export { notionCreateComment };
52
+ //# sourceMappingURL=create-comment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,UAAc;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const notionCreateComment = action("NOTION_CREATE_COMMENT", {
4
+ slug: "notion-create-comment",
5
+ name: "Create comment",
6
+ description: "Adds a comment to a Notion page (via `parent_page_id`) OR to an existing discussion thread (via `discussion_id`); cannot create new discussion threads on specific blocks (inline comments).",
7
+ input: z.object({
8
+ comment: z.object({
9
+ bold: z.boolean().default(false).describe("Indicates if the text is bold.").optional(),
10
+ code: z.boolean().default(false).describe("Indicates if the text is formatted as code.").optional(),
11
+ link: z.string().describe("URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.").optional(),
12
+ color: z.string().default("default").describe("The color of the text background or text itself.").optional(),
13
+ italic: z.boolean().default(false).describe("Indicates if the text is italic.").optional(),
14
+ content: z.string().describe("The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.").optional(),
15
+ underline: z.boolean().default(false).describe("Indicates if the text is underlined.").optional(),
16
+ strikethrough: z.boolean().default(false).describe("Indicates if the text has strikethrough.").optional(),
17
+ block_property: z.enum([
18
+ "paragraph",
19
+ "heading_1",
20
+ "heading_2",
21
+ "heading_3",
22
+ "callout",
23
+ "to_do",
24
+ "toggle",
25
+ "quote",
26
+ "bulleted_list_item",
27
+ "numbered_list_item",
28
+ "file",
29
+ "image",
30
+ "video",
31
+ "divider"
32
+ ]).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()
33
+ }).describe("Content of the comment as a NotionRichText object or a JSON string. Simplest form: {'content': 'Looks good!'} or {'text': 'Looks good!'} (both 'content' and 'text' are accepted as the field name). Can also be passed as a JSON string: '{\"content\": \"Looks good!\"}'. Optional styling fields: bold, italic, etc. The 'link' field is for external URLs only (e.g., 'https://example.com'), NOT for page IDs. Do NOT wrap this in a list or use Notion API block JSON."),
34
+ discussion_id: z.string().describe("The ID of an existing discussion thread to which the comment will be added. This is required if `parent_page_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens).").optional(),
35
+ parent_page_id: z.string().describe("The ID of the Notion page where the comment will be added. This is required if `discussion_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens). Page IDs can be obtained using other Notion actions that fetch page details or list pages.").optional()
36
+ }),
37
+ output: z.unknown()
38
+ });
39
+ //#endregion
40
+ export { notionCreateComment };
41
+
42
+ //# sourceMappingURL=create-comment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateCommentInput = z.object({\n comment: z.object({\n bold: z.boolean().default(false).describe(\"Indicates if the text is bold.\").optional(),\n code: z.boolean().default(false).describe(\"Indicates if the text is formatted as code.\").optional(),\n link: z.string().describe(\"URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.\").optional(),\n color: z.string().default(\"default\").describe(\"The color of the text background or text itself.\").optional(),\n italic: z.boolean().default(false).describe(\"Indicates if the text is italic.\").optional(),\n content: z.string().describe(\"The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.\").optional(),\n underline: z.boolean().default(false).describe(\"Indicates if the text is underlined.\").optional(),\n strikethrough: z.boolean().default(false).describe(\"Indicates if the text has strikethrough.\").optional(),\n block_property: z.enum([\"paragraph\", \"heading_1\", \"heading_2\", \"heading_3\", \"callout\", \"to_do\", \"toggle\", \"quote\", \"bulleted_list_item\", \"numbered_list_item\", \"file\", \"image\", \"video\", \"divider\"]).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(),\n}).describe(\"Content of the comment as a NotionRichText object or a JSON string. Simplest form: {'content': 'Looks good!'} or {'text': 'Looks good!'} (both 'content' and 'text' are accepted as the field name). Can also be passed as a JSON string: '{\\\"content\\\": \\\"Looks good!\\\"}'. Optional styling fields: bold, italic, etc. The 'link' field is for external URLs only (e.g., 'https://example.com'), NOT for page IDs. Do NOT wrap this in a list or use Notion API block JSON.\"),\n discussion_id: z.string().describe(\"The ID of an existing discussion thread to which the comment will be added. This is required if `parent_page_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens).\").optional(),\n parent_page_id: z.string().describe(\"The ID of the Notion page where the comment will be added. This is required if `discussion_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens). Page IDs can be obtained using other Notion actions that fetch page details or list pages.\").optional(),\n});\nexport const NotionCreateCommentOutput = z.unknown();\n\nexport const notionCreateComment = action(\"NOTION_CREATE_COMMENT\", {\n slug: \"notion-create-comment\",\n name: \"Create comment\",\n description: \"Adds a comment to a Notion page (via `parent_page_id`) OR to an existing discussion thread (via `discussion_id`); cannot create new discussion threads on specific blocks (inline comments).\",\n input: NotionCreateCommentInput,\n output: NotionCreateCommentOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACrF,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;GAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;GACzR,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GAC3G,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uXAAuX,CAAC,CAAC,SAAS;GAC/Z,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAChG,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;GACxG,gBAAgB,EAAE,KAAK;IAAC;IAAa;IAAa;IAAa;IAAa;IAAW;IAAS;IAAU;IAAS;IAAsB;IAAsB;IAAQ;IAAS;IAAS;GAAS,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,qiBAAqiB,CAAC,CAAC,SAAS;EACrxB,CAAC,CAAC,CAAC,SAAS,8cAA8c;EACxd,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACnP,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;CAC/T,CAOS;CACP,QAPuC,EAAE,QAOjC;AACV,CAAC"}
@@ -0,0 +1,125 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-database.ts
4
+ const NotionCreateDatabaseInput = zod.z.object({
5
+ title: zod.z.string().describe("The desired title for the new database. This text will be automatically converted into Notion's rich text format when the database is created."),
6
+ parent_id: zod.z.string().describe("**CRITICAL: MUST BE A PAGE ID, NOT A DATABASE ID.** Databases can only be created as children of pages, not as children of other databases. Using a database ID will result in an API error: 'Can't create databases parented by a database.' HOW TO IDENTIFY PAGE vs DATABASE: Use NOTION_SEARCH_NOTION_PAGE with filter_value='page' to find pages (object='page') - only these IDs can be used here. Database IDs (object='database') are NOT valid as parent_id for this action. FORMAT: Valid 32-character UUID with hyphens (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or without hyphens (32 alphanumeric characters). Additional text after the UUID (e.g., 'uuid: Page Title') is automatically cleaned. The page must be shared with your integration, otherwise you'll receive a 404 error."),
7
+ properties: zod.z.array(zod.z.object({
8
+ name: zod.z.string().describe("Name of the property"),
9
+ type: zod.z.enum([
10
+ "title",
11
+ "rich_text",
12
+ "number",
13
+ "select",
14
+ "multi_select",
15
+ "date",
16
+ "people",
17
+ "files",
18
+ "checkbox",
19
+ "url",
20
+ "email",
21
+ "phone_number",
22
+ "formula",
23
+ "relation",
24
+ "rollup",
25
+ "status",
26
+ "created_time",
27
+ "created_by",
28
+ "last_edited_time",
29
+ "last_edited_by",
30
+ "place",
31
+ "unique_id"
32
+ ]).describe("The type of the property, which determines the kind of data it will store. Valid types are defined by the PropertyType enum."),
33
+ database_id: zod.z.string().describe("UUID of the database to relate to. Required when type is 'relation'. Must be a valid UUID format (32 hex characters, with or without hyphens). Placeholder values like 'PLACEHOLDER_PROJECT' are not allowed.").optional(),
34
+ relation_type: zod.z.string().default("single_property").describe("Relationship type, either 'single_property' or 'dual_property'.").optional()
35
+ })).describe("Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.").optional()
36
+ });
37
+ const NotionCreateDatabase__NotionFileSchema = zod.z.object({
38
+ url: zod.z.string().describe("Authenticated URL to the file (valid for one hour).").nullable(),
39
+ expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
40
+ }).describe("Notion-hosted file.");
41
+ const NotionCreateDatabase__ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the externally hosted file.").nullable() }).describe("External file URL.");
42
+ const NotionCreateDatabase__CustomEmojiSchema = zod.z.object({
43
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
44
+ url: zod.z.string().describe("HTTPS URL to the custom emoji image.").nullable(),
45
+ name: zod.z.string().describe("Display name of the custom emoji.").nullable()
46
+ }).describe("Custom emoji details.");
47
+ const NotionCreateDatabase__IconSchema = zod.z.object({
48
+ file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),
49
+ type: zod.z.string().describe("Icon type: 'emoji', 'custom_emoji', 'external', or 'file'.").nullable(),
50
+ emoji: zod.z.string().describe("Emoji character (present when type is 'emoji').").nullable().optional(),
51
+ external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),
52
+ custom_emoji: NotionCreateDatabase__CustomEmojiSchema.nullable().optional()
53
+ }).describe("Database icon (emoji or file object).");
54
+ const NotionCreateDatabase__CoverSchema = zod.z.object({
55
+ file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),
56
+ type: zod.z.string().describe("Cover type: 'external' or 'file'.").nullable(),
57
+ external: NotionCreateDatabase__ExternalFileSchema.nullable().optional()
58
+ }).describe("Database cover image (file object).");
59
+ const NotionCreateDatabase__LinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.").nullable() }).describe("Link object for rich text.");
60
+ const NotionCreateDatabase__TextContentSchema = zod.z.object({
61
+ link: NotionCreateDatabase__LinkSchema.nullable().optional(),
62
+ content: zod.z.string().describe("The text content.").nullable()
63
+ }).describe("Text content object for rich text.");
64
+ const NotionCreateDatabase__AnnotationsSchema = zod.z.object({
65
+ bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
66
+ code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
67
+ color: zod.z.string().describe("Color of the text (e.g., 'default', 'blue', 'red', etc.).").nullable(),
68
+ italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
69
+ underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
70
+ strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
71
+ }).describe("Styling information for rich text.");
72
+ const NotionCreateDatabase__RichTextSchema = zod.z.object({
73
+ href: zod.z.string().describe("URL for links or null if no link.").nullable().optional(),
74
+ text: NotionCreateDatabase__TextContentSchema.nullable().optional(),
75
+ type: zod.z.string().describe("Type of rich text object: 'text', 'mention', or 'equation'.").nullable(),
76
+ plain_text: zod.z.string().describe("Plain text representation without formatting.").nullable(),
77
+ annotations: NotionCreateDatabase__AnnotationsSchema.nullable()
78
+ }).describe("Rich text object representing formatted text.");
79
+ const NotionCreateDatabase__ParentSchema = zod.z.object({
80
+ type: zod.z.string().describe("Parent type: 'page_id', 'workspace', or 'block_id'.").nullable(),
81
+ page_id: zod.z.string().describe("UUID of the parent page (present when type is 'page_id').").nullable().optional(),
82
+ block_id: zod.z.string().describe("UUID of the parent block (present when type is 'block_id').").nullable().optional(),
83
+ workspace: zod.z.boolean().describe("Always true when type is 'workspace'.").nullable().optional()
84
+ }).describe("Parent location of the database (page, workspace, or block).");
85
+ const NotionCreateDatabase__PartialUserSchema = zod.z.object({
86
+ id: zod.z.string().describe("Unique identifier for the user (UUID format).").nullable(),
87
+ object: zod.z.string().describe("Always \"user\".").nullable()
88
+ }).describe("Partial Notion user object for created_by/last_edited_by contexts.");
89
+ const NotionCreateDatabase__DataSourceRefSchema = zod.z.object({
90
+ id: zod.z.string().describe("Unique identifier for the data source (UUID format).").nullable(),
91
+ name: zod.z.string().describe("Name of the data source.").nullable()
92
+ }).describe("Minimal data source object embedded in Database responses.");
93
+ const NotionCreateDatabaseOutput = zod.z.object({
94
+ id: zod.z.string().describe("Unique identifier for the database (UUID format).").nullable(),
95
+ url: zod.z.string().describe("The URL of the database in Notion.").nullable(),
96
+ icon: NotionCreateDatabase__IconSchema.nullable().optional(),
97
+ cover: NotionCreateDatabase__CoverSchema.nullable().optional(),
98
+ title: zod.z.array(NotionCreateDatabase__RichTextSchema).describe("Array of rich text objects representing the database title/name as it appears in Notion."),
99
+ object: zod.z.string().describe("Always \"database\".").nullable(),
100
+ parent: NotionCreateDatabase__ParentSchema.nullable(),
101
+ archived: zod.z.boolean().describe("Whether the database is archived.").nullable(),
102
+ in_trash: zod.z.boolean().describe("Whether the database is in the trash.").nullable(),
103
+ is_inline: zod.z.boolean().describe("Whether the database appears inline on the page (true) or as a full page database (false).").nullable(),
104
+ created_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),
105
+ properties: zod.z.object({}).describe("Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings."),
106
+ public_url: zod.z.string().describe("Public web URL if the database is published to the web, otherwise null.").nullable().optional(),
107
+ request_id: zod.z.string().describe("Unique identifier for the API request (used for debugging and support).").nullable().optional(),
108
+ description: zod.z.array(NotionCreateDatabase__RichTextSchema).describe("Array of rich text objects representing the database description.").nullable().optional(),
109
+ created_time: zod.z.string().describe("ISO 8601 timestamp when the database was created.").nullable(),
110
+ data_sources: zod.z.array(NotionCreateDatabase__DataSourceRefSchema).describe("List of child data sources in the database (available in API version 2025-09-03+). Each database has one or more data sources.").nullable().optional(),
111
+ last_edited_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),
112
+ developer_survey: zod.z.string().describe("URL to a feedback survey (may appear in API responses).").nullable().optional(),
113
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
114
+ }).describe("Response body returned by POST /v1/databases. Matches Notion Database object.");
115
+ const notionCreateDatabase = require_action.action("NOTION_CREATE_DATABASE", {
116
+ slug: "notion-create-database",
117
+ name: "Create Notion Database",
118
+ description: "Creates a new Notion database as a subpage under a specified parent page with a defined properties schema. IMPORTANT NOTES: - The parent page MUST be shared with your integration, otherwise you'll get a 404 error - If you encounter conflict errors (409), retry the request as Notion may experience temporary save conflicts - For relation properties, you MUST provide the database_id of the related database - Parent ID must be a valid UUID format (with or without hyphens), not a template variable Use this action exclusively for creating new databases.",
119
+ input: NotionCreateDatabaseInput,
120
+ output: NotionCreateDatabaseOutput
121
+ });
122
+ //#endregion
123
+ exports.notionCreateDatabase = notionCreateDatabase;
124
+
125
+ //# sourceMappingURL=create-database.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateDatabaseInput = z.object({\n title: z.string().describe(\"The desired title for the new database. This text will be automatically converted into Notion's rich text format when the database is created.\"),\n parent_id: z.string().describe(\"**CRITICAL: MUST BE A PAGE ID, NOT A DATABASE ID.** Databases can only be created as children of pages, not as children of other databases. Using a database ID will result in an API error: 'Can't create databases parented by a database.' HOW TO IDENTIFY PAGE vs DATABASE: Use NOTION_SEARCH_NOTION_PAGE with filter_value='page' to find pages (object='page') - only these IDs can be used here. Database IDs (object='database') are NOT valid as parent_id for this action. FORMAT: Valid 32-character UUID with hyphens (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or without hyphens (32 alphanumeric characters). Additional text after the UUID (e.g., 'uuid: Page Title') is automatically cleaned. The page must be shared with your integration, otherwise you'll receive a 404 error.\"),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"The type of the property, which determines the kind of data it will store. Valid types are defined by the PropertyType enum.\"),\n database_id: z.string().describe(\"UUID of the database to relate to. Required when type is 'relation'. Must be a valid UUID format (32 hex characters, with or without hyphens). Placeholder values like 'PLACEHOLDER_PROJECT' are not allowed.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Relationship type, either 'single_property' or 'dual_property'.\").optional(),\n})).describe(\"Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.\").optional(),\n});\nconst NotionCreateDatabase__NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file (valid for one hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).describe(\"External file URL.\");\nconst NotionCreateDatabase__CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji details.\");\nconst NotionCreateDatabase__IconSchema = z.object({\n file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Icon type: 'emoji', 'custom_emoji', 'external', or 'file'.\").nullable(),\n emoji: z.string().describe(\"Emoji character (present when type is 'emoji').\").nullable().optional(),\n external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionCreateDatabase__CustomEmojiSchema.nullable().optional(),\n}).describe(\"Database icon (emoji or file object).\");\nconst NotionCreateDatabase__CoverSchema = z.object({\n file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Cover type: 'external' or 'file'.\").nullable(),\n external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),\n}).describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).describe(\"Link object for rich text.\");\nconst NotionCreateDatabase__TextContentSchema = z.object({\n link: NotionCreateDatabase__LinkSchema.nullable().optional(),\n content: z.string().describe(\"The text content.\").nullable(),\n}).describe(\"Text content object for rich text.\");\nconst NotionCreateDatabase__AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text (e.g., 'default', 'blue', 'red', etc.).\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).describe(\"Styling information for rich text.\");\nconst NotionCreateDatabase__RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or null if no link.\").nullable().optional(),\n text: NotionCreateDatabase__TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text object: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionCreateDatabase__AnnotationsSchema.nullable(),\n}).describe(\"Rich text object representing formatted text.\");\nconst NotionCreateDatabase__ParentSchema = z.object({\n type: z.string().describe(\"Parent type: 'page_id', 'workspace', or 'block_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (present when type is 'page_id').\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block (present when type is 'block_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n}).describe(\"Parent location of the database (page, workspace, or block).\");\nconst NotionCreateDatabase__PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).describe(\"Partial Notion user object for created_by/last_edited_by contexts.\");\nconst NotionCreateDatabase__DataSourceRefSchema = z.object({\n id: z.string().describe(\"Unique identifier for the data source (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).describe(\"Minimal data source object embedded in Database responses.\");\nexport const NotionCreateDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: NotionCreateDatabase__IconSchema.nullable().optional(),\n cover: NotionCreateDatabase__CoverSchema.nullable().optional(),\n title: z.array(NotionCreateDatabase__RichTextSchema).describe(\"Array of rich text objects representing the database title/name as it appears in Notion.\"),\n object: z.string().describe(\"Always \\\"database\\\".\").nullable(),\n parent: NotionCreateDatabase__ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database appears inline on the page (true) or as a full page database (false).\").nullable(),\n created_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings.\"),\n public_url: z.string().describe(\"Public web URL if the database is published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the API request (used for debugging and support).\").nullable().optional(),\n description: z.array(NotionCreateDatabase__RichTextSchema).describe(\"Array of rich text objects representing the database description.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n data_sources: z.array(NotionCreateDatabase__DataSourceRefSchema).describe(\"List of child data sources in the database (available in API version 2025-09-03+). Each database has one or more data sources.\").nullable().optional(),\n last_edited_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),\n developer_survey: z.string().describe(\"URL to a feedback survey (may appear in API responses).\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).describe(\"Response body returned by POST /v1/databases. Matches Notion Database object.\");\n\nexport const notionCreateDatabase = action(\"NOTION_CREATE_DATABASE\", {\n slug: \"notion-create-database\",\n name: \"Create Notion Database\",\n description: \"Creates a new Notion database as a subpage under a specified parent page with a defined properties schema. IMPORTANT NOTES: - The parent page MUST be shared with your integration, otherwise you'll get a 404 error - If you encounter conflict errors (409), retry the request as Notion may experience temporary save conflicts - For relation properties, you MUST provide the database_id of the related database - Parent ID must be a valid UUID format (with or without hyphens), not a template variable Use this action exclusively for creating new databases.\",\n input: NotionCreateDatabaseInput,\n output: NotionCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC3K,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,owBAAowB;CACnyB,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC,CAAC,CAAC,SAAS,8HAA8H;EAC5Z,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;EAC3P,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iBAAiB,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,CAAC,SAAS,2xBAA2xB,CAAC,CAAC,SAAS;AACnzB,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,qBAAqB;AACjC,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,KAAKA,IAAAA,EA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AC"}
@@ -0,0 +1,145 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-database.d.ts
4
+ declare const NotionCreateDatabaseInput: z.ZodObject<{
5
+ title: z.ZodString;
6
+ parent_id: z.ZodString;
7
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ name: z.ZodString;
9
+ type: z.ZodEnum<{
10
+ number: "number";
11
+ date: "date";
12
+ url: "url";
13
+ rich_text: "rich_text";
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
+ title: "title";
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
+ database_id: z.ZodOptional<z.ZodString>;
34
+ relation_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>;
37
+ declare const NotionCreateDatabaseOutput: z.ZodObject<{
38
+ id: z.ZodNullable<z.ZodString>;
39
+ url: z.ZodNullable<z.ZodString>;
40
+ icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
+ url: z.ZodNullable<z.ZodString>;
43
+ expiry_time: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>>>;
45
+ type: z.ZodNullable<z.ZodString>;
46
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
+ url: z.ZodNullable<z.ZodString>;
49
+ }, z.core.$strip>>>;
50
+ custom_emoji: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
+ id: z.ZodNullable<z.ZodString>;
52
+ url: z.ZodNullable<z.ZodString>;
53
+ name: z.ZodNullable<z.ZodString>;
54
+ }, z.core.$strip>>>;
55
+ }, z.core.$strip>>>;
56
+ cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
+ url: z.ZodNullable<z.ZodString>;
59
+ expiry_time: z.ZodNullable<z.ZodString>;
60
+ }, z.core.$strip>>>;
61
+ type: z.ZodNullable<z.ZodString>;
62
+ external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
+ url: z.ZodNullable<z.ZodString>;
64
+ }, z.core.$strip>>>;
65
+ }, z.core.$strip>>>;
66
+ title: z.ZodArray<z.ZodObject<{
67
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
+ link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
+ url: z.ZodNullable<z.ZodString>;
71
+ }, z.core.$strip>>>;
72
+ content: z.ZodNullable<z.ZodString>;
73
+ }, z.core.$strip>>>;
74
+ type: z.ZodNullable<z.ZodString>;
75
+ plain_text: z.ZodNullable<z.ZodString>;
76
+ annotations: z.ZodNullable<z.ZodObject<{
77
+ bold: z.ZodNullable<z.ZodBoolean>;
78
+ code: z.ZodNullable<z.ZodBoolean>;
79
+ color: z.ZodNullable<z.ZodString>;
80
+ italic: z.ZodNullable<z.ZodBoolean>;
81
+ underline: z.ZodNullable<z.ZodBoolean>;
82
+ strikethrough: z.ZodNullable<z.ZodBoolean>;
83
+ }, z.core.$strip>>;
84
+ }, z.core.$strip>>;
85
+ object: z.ZodNullable<z.ZodString>;
86
+ parent: z.ZodNullable<z.ZodObject<{
87
+ type: z.ZodNullable<z.ZodString>;
88
+ page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
91
+ }, z.core.$strip>>;
92
+ archived: z.ZodNullable<z.ZodBoolean>;
93
+ in_trash: z.ZodNullable<z.ZodBoolean>;
94
+ is_inline: z.ZodNullable<z.ZodBoolean>;
95
+ created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
+ id: z.ZodNullable<z.ZodString>;
97
+ object: z.ZodNullable<z.ZodString>;
98
+ }, z.core.$strip>>>;
99
+ properties: z.ZodObject<{}, z.core.$strip>;
100
+ public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
103
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
+ link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
+ url: z.ZodNullable<z.ZodString>;
107
+ }, z.core.$strip>>>;
108
+ content: z.ZodNullable<z.ZodString>;
109
+ }, z.core.$strip>>>;
110
+ type: z.ZodNullable<z.ZodString>;
111
+ plain_text: z.ZodNullable<z.ZodString>;
112
+ annotations: z.ZodNullable<z.ZodObject<{
113
+ bold: z.ZodNullable<z.ZodBoolean>;
114
+ code: z.ZodNullable<z.ZodBoolean>;
115
+ color: z.ZodNullable<z.ZodString>;
116
+ italic: z.ZodNullable<z.ZodBoolean>;
117
+ underline: z.ZodNullable<z.ZodBoolean>;
118
+ strikethrough: z.ZodNullable<z.ZodBoolean>;
119
+ }, z.core.$strip>>;
120
+ }, z.core.$strip>>>>;
121
+ created_time: z.ZodNullable<z.ZodString>;
122
+ data_sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
123
+ id: z.ZodNullable<z.ZodString>;
124
+ name: z.ZodNullable<z.ZodString>;
125
+ }, z.core.$strip>>>>;
126
+ last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
127
+ id: z.ZodNullable<z.ZodString>;
128
+ object: z.ZodNullable<z.ZodString>;
129
+ }, z.core.$strip>>>;
130
+ developer_survey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ last_edited_time: z.ZodNullable<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ declare const notionCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
134
+ title: string;
135
+ parent_id: string;
136
+ properties?: {
137
+ name: string;
138
+ type: "number" | "date" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "title" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
139
+ database_id?: string | undefined;
140
+ relation_type?: string | undefined;
141
+ }[] | undefined;
142
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
143
+ //#endregion
144
+ export { notionCreateDatabase };
145
+ //# sourceMappingURL=create-database.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuB1B,oBAAA,gCAAoB,wBAAA"}