@keystrokehq/notion 0.1.3 → 0.1.5

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 (373) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-multiple-page-content.cjs +1 -0
  4. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  5. package/dist/actions/add-multiple-page-content.d.cts +11 -27
  6. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  7. package/dist/actions/add-multiple-page-content.d.mts +11 -27
  8. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  9. package/dist/actions/add-multiple-page-content.mjs +1 -0
  10. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  11. package/dist/actions/append-code-blocks.cjs +1 -0
  12. package/dist/actions/append-code-blocks.cjs.map +1 -1
  13. package/dist/actions/append-code-blocks.d.cts +5 -94
  14. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  15. package/dist/actions/append-code-blocks.d.mts +5 -94
  16. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  17. package/dist/actions/append-code-blocks.mjs +1 -0
  18. package/dist/actions/append-code-blocks.mjs.map +1 -1
  19. package/dist/actions/append-layout-blocks.cjs +1 -0
  20. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  21. package/dist/actions/append-layout-blocks.d.cts +5 -49
  22. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  23. package/dist/actions/append-layout-blocks.d.mts +5 -49
  24. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  25. package/dist/actions/append-layout-blocks.mjs +1 -0
  26. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  27. package/dist/actions/append-media-blocks.cjs +1 -0
  28. package/dist/actions/append-media-blocks.cjs.map +1 -1
  29. package/dist/actions/append-media-blocks.d.cts +5 -209
  30. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  31. package/dist/actions/append-media-blocks.d.mts +5 -209
  32. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  33. package/dist/actions/append-media-blocks.mjs +1 -0
  34. package/dist/actions/append-media-blocks.mjs.map +1 -1
  35. package/dist/actions/append-table-blocks.cjs +1 -0
  36. package/dist/actions/append-table-blocks.cjs.map +1 -1
  37. package/dist/actions/append-table-blocks.d.cts +5 -36
  38. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  39. package/dist/actions/append-table-blocks.d.mts +5 -36
  40. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  41. package/dist/actions/append-table-blocks.mjs +1 -0
  42. package/dist/actions/append-table-blocks.mjs.map +1 -1
  43. package/dist/actions/append-task-blocks.cjs +1 -0
  44. package/dist/actions/append-task-blocks.cjs.map +1 -1
  45. package/dist/actions/append-task-blocks.d.cts +5 -100
  46. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  47. package/dist/actions/append-task-blocks.d.mts +5 -100
  48. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  49. package/dist/actions/append-task-blocks.mjs +1 -0
  50. package/dist/actions/append-task-blocks.mjs.map +1 -1
  51. package/dist/actions/append-text-blocks.cjs +1 -0
  52. package/dist/actions/append-text-blocks.cjs.map +1 -1
  53. package/dist/actions/append-text-blocks.d.cts +5 -184
  54. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  55. package/dist/actions/append-text-blocks.d.mts +5 -184
  56. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  57. package/dist/actions/append-text-blocks.mjs +1 -0
  58. package/dist/actions/append-text-blocks.mjs.map +1 -1
  59. package/dist/actions/archive-notion-page.cjs +1 -0
  60. package/dist/actions/archive-notion-page.cjs.map +1 -1
  61. package/dist/actions/archive-notion-page.d.cts +3 -4
  62. package/dist/actions/archive-notion-page.d.cts.map +1 -1
  63. package/dist/actions/archive-notion-page.d.mts +3 -4
  64. package/dist/actions/archive-notion-page.d.mts.map +1 -1
  65. package/dist/actions/archive-notion-page.mjs +1 -0
  66. package/dist/actions/archive-notion-page.mjs.map +1 -1
  67. package/dist/actions/create-comment.cjs +1 -0
  68. package/dist/actions/create-comment.cjs.map +1 -1
  69. package/dist/actions/create-comment.d.cts +11 -23
  70. package/dist/actions/create-comment.d.cts.map +1 -1
  71. package/dist/actions/create-comment.d.mts +11 -23
  72. package/dist/actions/create-comment.d.mts.map +1 -1
  73. package/dist/actions/create-comment.mjs +1 -0
  74. package/dist/actions/create-comment.mjs.map +1 -1
  75. package/dist/actions/create-database.cjs +1 -0
  76. package/dist/actions/create-database.cjs.map +1 -1
  77. package/dist/actions/create-database.d.cts +5 -13
  78. package/dist/actions/create-database.d.cts.map +1 -1
  79. package/dist/actions/create-database.d.mts +5 -13
  80. package/dist/actions/create-database.d.mts.map +1 -1
  81. package/dist/actions/create-database.mjs +1 -0
  82. package/dist/actions/create-database.mjs.map +1 -1
  83. package/dist/actions/create-file-upload.cjs +1 -0
  84. package/dist/actions/create-file-upload.cjs.map +1 -1
  85. package/dist/actions/create-file-upload.d.cts +3 -7
  86. package/dist/actions/create-file-upload.d.cts.map +1 -1
  87. package/dist/actions/create-file-upload.d.mts +3 -7
  88. package/dist/actions/create-file-upload.d.mts.map +1 -1
  89. package/dist/actions/create-file-upload.mjs +1 -0
  90. package/dist/actions/create-file-upload.mjs.map +1 -1
  91. package/dist/actions/create-notion-page.cjs +1 -0
  92. package/dist/actions/create-notion-page.cjs.map +1 -1
  93. package/dist/actions/create-notion-page.d.cts +3 -7
  94. package/dist/actions/create-notion-page.d.cts.map +1 -1
  95. package/dist/actions/create-notion-page.d.mts +3 -7
  96. package/dist/actions/create-notion-page.d.mts.map +1 -1
  97. package/dist/actions/create-notion-page.mjs +1 -0
  98. package/dist/actions/create-notion-page.mjs.map +1 -1
  99. package/dist/actions/delete-block.cjs +1 -0
  100. package/dist/actions/delete-block.cjs.map +1 -1
  101. package/dist/actions/delete-block.d.cts +43 -43
  102. package/dist/actions/delete-block.d.cts.map +1 -1
  103. package/dist/actions/delete-block.d.mts +43 -43
  104. package/dist/actions/delete-block.d.mts.map +1 -1
  105. package/dist/actions/delete-block.mjs +1 -0
  106. package/dist/actions/delete-block.mjs.map +1 -1
  107. package/dist/actions/duplicate-page.cjs +1 -0
  108. package/dist/actions/duplicate-page.cjs.map +1 -1
  109. package/dist/actions/duplicate-page.d.cts +3 -5
  110. package/dist/actions/duplicate-page.d.cts.map +1 -1
  111. package/dist/actions/duplicate-page.d.mts +3 -5
  112. package/dist/actions/duplicate-page.d.mts.map +1 -1
  113. package/dist/actions/duplicate-page.mjs +1 -0
  114. package/dist/actions/duplicate-page.mjs.map +1 -1
  115. package/dist/actions/fetch-all-block-contents.cjs +1 -0
  116. package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
  117. package/dist/actions/fetch-all-block-contents.d.cts +3 -8
  118. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
  119. package/dist/actions/fetch-all-block-contents.d.mts +3 -8
  120. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
  121. package/dist/actions/fetch-all-block-contents.mjs +1 -0
  122. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  123. package/dist/actions/fetch-block-contents.cjs +1 -0
  124. package/dist/actions/fetch-block-contents.cjs.map +1 -1
  125. package/dist/actions/fetch-block-contents.d.cts +3 -5
  126. package/dist/actions/fetch-block-contents.d.cts.map +1 -1
  127. package/dist/actions/fetch-block-contents.d.mts +3 -5
  128. package/dist/actions/fetch-block-contents.d.mts.map +1 -1
  129. package/dist/actions/fetch-block-contents.mjs +1 -0
  130. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  131. package/dist/actions/fetch-block-metadata.cjs +1 -0
  132. package/dist/actions/fetch-block-metadata.cjs.map +1 -1
  133. package/dist/actions/fetch-block-metadata.d.cts +42 -42
  134. package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
  135. package/dist/actions/fetch-block-metadata.d.mts +42 -42
  136. package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
  137. package/dist/actions/fetch-block-metadata.mjs +1 -0
  138. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  139. package/dist/actions/fetch-comments.cjs +1 -0
  140. package/dist/actions/fetch-comments.cjs.map +1 -1
  141. package/dist/actions/fetch-comments.d.cts +7 -10
  142. package/dist/actions/fetch-comments.d.cts.map +1 -1
  143. package/dist/actions/fetch-comments.d.mts +7 -10
  144. package/dist/actions/fetch-comments.d.mts.map +1 -1
  145. package/dist/actions/fetch-comments.mjs +1 -0
  146. package/dist/actions/fetch-comments.mjs.map +1 -1
  147. package/dist/actions/fetch-data.cjs +1 -0
  148. package/dist/actions/fetch-data.cjs.map +1 -1
  149. package/dist/actions/fetch-data.d.cts +29 -34
  150. package/dist/actions/fetch-data.d.cts.map +1 -1
  151. package/dist/actions/fetch-data.d.mts +29 -34
  152. package/dist/actions/fetch-data.d.mts.map +1 -1
  153. package/dist/actions/fetch-data.mjs +1 -0
  154. package/dist/actions/fetch-data.mjs.map +1 -1
  155. package/dist/actions/fetch-database.cjs +1 -0
  156. package/dist/actions/fetch-database.cjs.map +1 -1
  157. package/dist/actions/fetch-database.d.cts +3 -3
  158. package/dist/actions/fetch-database.d.cts.map +1 -1
  159. package/dist/actions/fetch-database.d.mts +3 -3
  160. package/dist/actions/fetch-database.d.mts.map +1 -1
  161. package/dist/actions/fetch-database.mjs +1 -0
  162. package/dist/actions/fetch-database.mjs.map +1 -1
  163. package/dist/actions/fetch-row.cjs +1 -0
  164. package/dist/actions/fetch-row.cjs.map +1 -1
  165. package/dist/actions/fetch-row.d.cts +5 -5
  166. package/dist/actions/fetch-row.d.cts.map +1 -1
  167. package/dist/actions/fetch-row.d.mts +5 -5
  168. package/dist/actions/fetch-row.d.mts.map +1 -1
  169. package/dist/actions/fetch-row.mjs +1 -0
  170. package/dist/actions/fetch-row.mjs.map +1 -1
  171. package/dist/actions/get-about-user.cjs +1 -0
  172. package/dist/actions/get-about-user.cjs.map +1 -1
  173. package/dist/actions/get-about-user.d.cts +4 -4
  174. package/dist/actions/get-about-user.d.cts.map +1 -1
  175. package/dist/actions/get-about-user.d.mts +4 -4
  176. package/dist/actions/get-about-user.d.mts.map +1 -1
  177. package/dist/actions/get-about-user.mjs +1 -0
  178. package/dist/actions/get-about-user.mjs.map +1 -1
  179. package/dist/actions/get-page-markdown.cjs +1 -0
  180. package/dist/actions/get-page-markdown.cjs.map +1 -1
  181. package/dist/actions/get-page-markdown.d.cts +3 -4
  182. package/dist/actions/get-page-markdown.d.cts.map +1 -1
  183. package/dist/actions/get-page-markdown.d.mts +3 -4
  184. package/dist/actions/get-page-markdown.d.mts.map +1 -1
  185. package/dist/actions/get-page-markdown.mjs +1 -0
  186. package/dist/actions/get-page-markdown.mjs.map +1 -1
  187. package/dist/actions/get-page-property-action.cjs +1 -0
  188. package/dist/actions/get-page-property-action.cjs.map +1 -1
  189. package/dist/actions/get-page-property-action.d.cts +3 -6
  190. package/dist/actions/get-page-property-action.d.cts.map +1 -1
  191. package/dist/actions/get-page-property-action.d.mts +3 -6
  192. package/dist/actions/get-page-property-action.d.mts.map +1 -1
  193. package/dist/actions/get-page-property-action.mjs +1 -0
  194. package/dist/actions/get-page-property-action.mjs.map +1 -1
  195. package/dist/actions/insert-row-database.cjs +1 -0
  196. package/dist/actions/insert-row-database.cjs.map +1 -1
  197. package/dist/actions/insert-row-database.d.cts +13 -33
  198. package/dist/actions/insert-row-database.d.cts.map +1 -1
  199. package/dist/actions/insert-row-database.d.mts +13 -33
  200. package/dist/actions/insert-row-database.d.mts.map +1 -1
  201. package/dist/actions/insert-row-database.mjs +1 -0
  202. package/dist/actions/insert-row-database.mjs.map +1 -1
  203. package/dist/actions/insert-row-from-nl.cjs +1 -0
  204. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  205. package/dist/actions/insert-row-from-nl.d.cts +3 -6
  206. package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
  207. package/dist/actions/insert-row-from-nl.d.mts +3 -6
  208. package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
  209. package/dist/actions/insert-row-from-nl.mjs +1 -0
  210. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  211. package/dist/actions/list-data-source-templates.cjs +1 -0
  212. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  213. package/dist/actions/list-data-source-templates.d.cts +3 -5
  214. package/dist/actions/list-data-source-templates.d.cts.map +1 -1
  215. package/dist/actions/list-data-source-templates.d.mts +3 -5
  216. package/dist/actions/list-data-source-templates.d.mts.map +1 -1
  217. package/dist/actions/list-data-source-templates.mjs +1 -0
  218. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  219. package/dist/actions/list-file-uploads.cjs +1 -0
  220. package/dist/actions/list-file-uploads.cjs.map +1 -1
  221. package/dist/actions/list-file-uploads.d.cts +3 -4
  222. package/dist/actions/list-file-uploads.d.cts.map +1 -1
  223. package/dist/actions/list-file-uploads.d.mts +3 -4
  224. package/dist/actions/list-file-uploads.d.mts.map +1 -1
  225. package/dist/actions/list-file-uploads.mjs +1 -0
  226. package/dist/actions/list-file-uploads.mjs.map +1 -1
  227. package/dist/actions/list-users.cjs +1 -0
  228. package/dist/actions/list-users.cjs.map +1 -1
  229. package/dist/actions/list-users.d.cts +5 -6
  230. package/dist/actions/list-users.d.cts.map +1 -1
  231. package/dist/actions/list-users.d.mts +5 -6
  232. package/dist/actions/list-users.d.mts.map +1 -1
  233. package/dist/actions/list-users.mjs +1 -0
  234. package/dist/actions/list-users.mjs.map +1 -1
  235. package/dist/actions/move-page.cjs +1 -0
  236. package/dist/actions/move-page.cjs.map +1 -1
  237. package/dist/actions/move-page.d.cts +3 -12
  238. package/dist/actions/move-page.d.cts.map +1 -1
  239. package/dist/actions/move-page.d.mts +3 -12
  240. package/dist/actions/move-page.d.mts.map +1 -1
  241. package/dist/actions/move-page.mjs +1 -0
  242. package/dist/actions/move-page.mjs.map +1 -1
  243. package/dist/actions/query-data-source.cjs +1 -0
  244. package/dist/actions/query-data-source.cjs.map +1 -1
  245. package/dist/actions/query-data-source.d.cts +8 -21
  246. package/dist/actions/query-data-source.d.cts.map +1 -1
  247. package/dist/actions/query-data-source.d.mts +8 -21
  248. package/dist/actions/query-data-source.d.mts.map +1 -1
  249. package/dist/actions/query-data-source.mjs +1 -0
  250. package/dist/actions/query-data-source.mjs.map +1 -1
  251. package/dist/actions/query-database-with-filter.cjs +1 -0
  252. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  253. package/dist/actions/query-database-with-filter.d.cts +3 -16
  254. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  255. package/dist/actions/query-database-with-filter.d.mts +3 -16
  256. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  257. package/dist/actions/query-database-with-filter.mjs +1 -0
  258. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  259. package/dist/actions/query-database.cjs +1 -0
  260. package/dist/actions/query-database.cjs.map +1 -1
  261. package/dist/actions/query-database.d.cts +3 -10
  262. package/dist/actions/query-database.d.cts.map +1 -1
  263. package/dist/actions/query-database.d.mts +3 -10
  264. package/dist/actions/query-database.d.mts.map +1 -1
  265. package/dist/actions/query-database.mjs +1 -0
  266. package/dist/actions/query-database.mjs.map +1 -1
  267. package/dist/actions/replace-page-content.cjs +1 -0
  268. package/dist/actions/replace-page-content.cjs.map +1 -1
  269. package/dist/actions/replace-page-content.d.cts +3 -642
  270. package/dist/actions/replace-page-content.d.cts.map +1 -1
  271. package/dist/actions/replace-page-content.d.mts +3 -642
  272. package/dist/actions/replace-page-content.d.mts.map +1 -1
  273. package/dist/actions/replace-page-content.mjs +1 -0
  274. package/dist/actions/replace-page-content.mjs.map +1 -1
  275. package/dist/actions/retrieve-comment.cjs +1 -0
  276. package/dist/actions/retrieve-comment.cjs.map +1 -1
  277. package/dist/actions/retrieve-comment.d.cts +3 -3
  278. package/dist/actions/retrieve-comment.d.cts.map +1 -1
  279. package/dist/actions/retrieve-comment.d.mts +3 -3
  280. package/dist/actions/retrieve-comment.d.mts.map +1 -1
  281. package/dist/actions/retrieve-comment.mjs +1 -0
  282. package/dist/actions/retrieve-comment.mjs.map +1 -1
  283. package/dist/actions/retrieve-database-property.cjs +1 -0
  284. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  285. package/dist/actions/retrieve-database-property.d.cts +3 -4
  286. package/dist/actions/retrieve-database-property.d.cts.map +1 -1
  287. package/dist/actions/retrieve-database-property.d.mts +3 -4
  288. package/dist/actions/retrieve-database-property.d.mts.map +1 -1
  289. package/dist/actions/retrieve-database-property.mjs +1 -0
  290. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  291. package/dist/actions/retrieve-file-upload.cjs +1 -0
  292. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  293. package/dist/actions/retrieve-file-upload.d.cts +3 -3
  294. package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
  295. package/dist/actions/retrieve-file-upload.d.mts +3 -3
  296. package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
  297. package/dist/actions/retrieve-file-upload.mjs +1 -0
  298. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  299. package/dist/actions/retrieve-page.cjs +1 -0
  300. package/dist/actions/retrieve-page.cjs.map +1 -1
  301. package/dist/actions/retrieve-page.d.cts +5 -5
  302. package/dist/actions/retrieve-page.d.cts.map +1 -1
  303. package/dist/actions/retrieve-page.d.mts +5 -5
  304. package/dist/actions/retrieve-page.d.mts.map +1 -1
  305. package/dist/actions/retrieve-page.mjs +1 -0
  306. package/dist/actions/retrieve-page.mjs.map +1 -1
  307. package/dist/actions/search-notion-page.cjs +1 -0
  308. package/dist/actions/search-notion-page.cjs.map +1 -1
  309. package/dist/actions/search-notion-page.d.cts +25 -32
  310. package/dist/actions/search-notion-page.d.cts.map +1 -1
  311. package/dist/actions/search-notion-page.d.mts +25 -32
  312. package/dist/actions/search-notion-page.d.mts.map +1 -1
  313. package/dist/actions/search-notion-page.mjs +1 -0
  314. package/dist/actions/search-notion-page.mjs.map +1 -1
  315. package/dist/actions/send-file-upload.cjs +1 -0
  316. package/dist/actions/send-file-upload.cjs.map +1 -1
  317. package/dist/actions/send-file-upload.d.cts +3 -10
  318. package/dist/actions/send-file-upload.d.cts.map +1 -1
  319. package/dist/actions/send-file-upload.d.mts +3 -10
  320. package/dist/actions/send-file-upload.d.mts.map +1 -1
  321. package/dist/actions/send-file-upload.mjs +1 -0
  322. package/dist/actions/send-file-upload.mjs.map +1 -1
  323. package/dist/actions/update-block.cjs +1 -0
  324. package/dist/actions/update-block.cjs.map +1 -1
  325. package/dist/actions/update-block.d.cts +3 -7
  326. package/dist/actions/update-block.d.cts.map +1 -1
  327. package/dist/actions/update-block.d.mts +3 -7
  328. package/dist/actions/update-block.d.mts.map +1 -1
  329. package/dist/actions/update-block.mjs +1 -0
  330. package/dist/actions/update-block.mjs.map +1 -1
  331. package/dist/actions/update-page.cjs +1 -0
  332. package/dist/actions/update-page.cjs.map +1 -1
  333. package/dist/actions/update-page.d.cts +3 -7
  334. package/dist/actions/update-page.d.cts.map +1 -1
  335. package/dist/actions/update-page.d.mts +3 -7
  336. package/dist/actions/update-page.d.mts.map +1 -1
  337. package/dist/actions/update-page.mjs +1 -0
  338. package/dist/actions/update-page.mjs.map +1 -1
  339. package/dist/actions/update-row-database.cjs +1 -0
  340. package/dist/actions/update-row-database.cjs.map +1 -1
  341. package/dist/actions/update-row-database.d.cts +5 -14
  342. package/dist/actions/update-row-database.d.cts.map +1 -1
  343. package/dist/actions/update-row-database.d.mts +5 -14
  344. package/dist/actions/update-row-database.d.mts.map +1 -1
  345. package/dist/actions/update-row-database.mjs +1 -0
  346. package/dist/actions/update-row-database.mjs.map +1 -1
  347. package/dist/actions/update-schema-database.cjs +1 -0
  348. package/dist/actions/update-schema-database.cjs.map +1 -1
  349. package/dist/actions/update-schema-database.d.cts +5 -16
  350. package/dist/actions/update-schema-database.d.cts.map +1 -1
  351. package/dist/actions/update-schema-database.d.mts +5 -16
  352. package/dist/actions/update-schema-database.d.mts.map +1 -1
  353. package/dist/actions/update-schema-database.mjs +1 -0
  354. package/dist/actions/update-schema-database.mjs.map +1 -1
  355. package/dist/actions/upsert-row-database.cjs +1 -0
  356. package/dist/actions/upsert-row-database.cjs.map +1 -1
  357. package/dist/actions/upsert-row-database.d.cts +3 -124
  358. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  359. package/dist/actions/upsert-row-database.d.mts +3 -124
  360. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  361. package/dist/actions/upsert-row-database.mjs +1 -0
  362. package/dist/actions/upsert-row-database.mjs.map +1 -1
  363. package/dist/app.cjs +5 -2
  364. package/dist/app.cjs.map +1 -1
  365. package/dist/app.d.cts +7 -1
  366. package/dist/app.d.cts.map +1 -1
  367. package/dist/app.d.mts +7 -1
  368. package/dist/app.d.mts.map +1 -1
  369. package/dist/app.mjs +3 -2
  370. package/dist/app.mjs.map +1 -1
  371. package/dist/index.d.cts +1 -1
  372. package/dist/index.d.mts +1 -1
  373. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { notion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-comment.d.ts
@@ -13,40 +15,26 @@ declare const NotionCreateCommentInput: z.ZodObject<{
13
15
  strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
16
  block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
17
  file: "file";
16
- paragraph: "paragraph";
18
+ quote: "quote";
19
+ image: "image";
20
+ to_do: "to_do";
21
+ video: "video";
22
+ toggle: "toggle";
23
+ callout: "callout";
24
+ divider: "divider";
17
25
  heading_1: "heading_1";
18
26
  heading_2: "heading_2";
19
27
  heading_3: "heading_3";
28
+ paragraph: "paragraph";
20
29
  bulleted_list_item: "bulleted_list_item";
21
30
  numbered_list_item: "numbered_list_item";
22
- to_do: "to_do";
23
- toggle: "toggle";
24
- quote: "quote";
25
- callout: "callout";
26
- divider: "divider";
27
- image: "image";
28
- video: "video";
29
31
  }>>>;
30
32
  }, z.core.$strip>;
31
33
  discussion_id: z.ZodOptional<z.ZodString>;
32
34
  parent_page_id: z.ZodOptional<z.ZodString>;
33
35
  }, z.core.$strip>;
34
36
  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" | "paragraph" | "heading_1" | "heading_2" | "heading_3" | "bulleted_list_item" | "numbered_list_item" | "to_do" | "toggle" | "quote" | "callout" | "divider" | "image" | "video" | 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]>;
37
+ declare const notionCreateComment: AppAction<typeof NotionCreateCommentInput, typeof NotionCreateCommentOutput, typeof notion.credential>;
50
38
  //#endregion
51
39
  export { notionCreateComment };
52
40
  //# sourceMappingURL=create-comment.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,UAAc;AAAA,cAEvC,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const notionCreateComment = action("NOTION_CREATE_COMMENT", {
@@ -1 +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"}
1
+ {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\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: AppAction<\n typeof NotionCreateCommentInput,\n typeof NotionCreateCommentOutput,\n typeof notion.credential\n> = 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":";;;AAuBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBsC,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,CAWS;CACP,QAXuC,EAAE,QAWjC;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-database.ts
@@ -1 +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}).passthrough()).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}).passthrough().describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown()).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}).passthrough().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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AA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2NAA2N;CAClR,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,aAAaA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChO,gBAAgB,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAC5E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\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}).passthrough()).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}).passthrough().describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown()).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}).passthrough().describe(\"Response body returned by POST /v1/databases. Matches Notion Database object.\");\n\nexport const notionCreateDatabase: AppAction<\n typeof NotionCreateDatabaseInput,\n typeof NotionCreateDatabaseOutput,\n typeof notion.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,CAAC,SAAS,2xBAA2xB,CAAC,CAAC,SAAS;AACj0B,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,YAAY,CAAC,CAAC,SAAS,qBAAqB;AAC/C,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,KAAKA,IAAAA,EAAE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,CAAC,SAAS;CACrH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { notion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-database.d.ts
@@ -9,13 +11,13 @@ declare const NotionCreateDatabaseInput: z.ZodObject<{
9
11
  type: z.ZodEnum<{
10
12
  number: "number";
11
13
  date: "date";
12
- url: "url";
13
14
  title: "title";
15
+ url: "url";
16
+ rich_text: "rich_text";
14
17
  created_by: "created_by";
15
18
  created_time: "created_time";
16
19
  last_edited_by: "last_edited_by";
17
20
  last_edited_time: "last_edited_time";
18
- rich_text: "rich_text";
19
21
  select: "select";
20
22
  multi_select: "multi_select";
21
23
  people: "people";
@@ -130,17 +132,7 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
130
132
  developer_survey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
133
  last_edited_time: z.ZodNullable<z.ZodString>;
132
134
  }, z.core.$loose>;
133
- declare const notionCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
134
- title: string;
135
- parent_id: string;
136
- properties?: {
137
- [x: string]: unknown;
138
- name: string;
139
- 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";
140
- database_id?: string | undefined;
141
- relation_type?: string | undefined;
142
- }[] | undefined;
143
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
135
+ declare const notionCreateDatabase: AppAction<typeof NotionCreateDatabaseInput, typeof NotionCreateDatabaseOutput, typeof notion.credential>;
144
136
  //#endregion
145
137
  export { notionCreateDatabase };
146
138
  //# sourceMappingURL=create-database.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { notion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-database.d.ts
@@ -9,13 +11,13 @@ declare const NotionCreateDatabaseInput: z.ZodObject<{
9
11
  type: z.ZodEnum<{
10
12
  number: "number";
11
13
  date: "date";
12
- url: "url";
13
14
  title: "title";
15
+ url: "url";
16
+ rich_text: "rich_text";
14
17
  created_by: "created_by";
15
18
  created_time: "created_time";
16
19
  last_edited_by: "last_edited_by";
17
20
  last_edited_time: "last_edited_time";
18
- rich_text: "rich_text";
19
21
  select: "select";
20
22
  multi_select: "multi_select";
21
23
  people: "people";
@@ -130,17 +132,7 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
130
132
  developer_survey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
133
  last_edited_time: z.ZodNullable<z.ZodString>;
132
134
  }, z.core.$loose>;
133
- declare const notionCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
134
- title: string;
135
- parent_id: string;
136
- properties?: {
137
- [x: string]: unknown;
138
- name: string;
139
- 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";
140
- database_id?: string | undefined;
141
- relation_type?: string | undefined;
142
- }[] | undefined;
143
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
135
+ declare const notionCreateDatabase: AppAction<typeof NotionCreateDatabaseInput, typeof NotionCreateDatabaseOutput, typeof notion.credential>;
144
136
  //#endregion
145
137
  export { notionCreateDatabase };
146
138
  //# sourceMappingURL=create-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuB1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-database.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.mjs","names":[],"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}).passthrough()).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}).passthrough().describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown()).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}).passthrough().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,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC3K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,owBAAowB;CACnyB,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,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,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;EA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,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC5E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\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}).passthrough()).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}).passthrough().describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown()).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}).passthrough().describe(\"Response body returned by POST /v1/databases. Matches Notion Database object.\");\n\nexport const notionCreateDatabase: AppAction<\n typeof NotionCreateDatabaseInput,\n typeof NotionCreateDatabaseOutput,\n typeof notion.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC3K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,owBAAowB;CACnyB,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,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,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;EAC3P,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,i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AkB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-file-upload.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/create-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateFileUploadInput = z.object({\n mode: z.enum([\"single_part\", \"multi_part\", \"external_url\"]).describe(\"Upload mode: 'single_part' for direct upload (default, up to 20 MB), 'multi_part' for chunked uploads (requires paid Notion workspace), or 'external_url' to import from a public URL. Note: Free workspaces are limited to 5 MB files and cannot use multi_part mode.\").optional(),\n filename: z.string().describe(\"Human-readable file name with extension. Required for external_url; for multi_part, supply to infer extension or pair with content_type; optional for single-part. Supported extensions: Audio (.aac, .adts, .mid, .midi, .mp3, .mpga, .m4a, .m4b, .mp4, .oga, .ogg, .wav, .wma); Document (.pdf, .txt, .json, .doc, .dot, .docx, .dotx, .xls, .xlt, .xla, .xlsx, .xltx, .ppt, .pot, .pps, .ppa, .pptx, .potx); Image (.gif, .heic, .jpeg, .jpg, .png, .svg, .tif, .tiff, .webp, .ico); Video (.amv, .asf, .wmv, .avi, .f4v, .flv, .gifv, .m4v, .mp4, .mkv, .webm, .mov, .qt, .mpeg).\").optional(),\n content_type: z.string().describe(\"MIME type of the file. Required in multi_part if filename lacks extension; optional for single-part.\").optional(),\n external_url: z.string().describe(\"Public HTTPS URL to import. Required when mode='external_url'. Must expose Content-Type and Content-Length.\").optional(),\n number_of_parts: z.number().int().describe(\"Total parts for a multi-part upload; required when mode='multi_part'.\").optional(),\n});\nexport const NotionCreateFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload. Required for subsequent upload and attachment operations.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current status of the file upload. Initially set to 'pending' after creation. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived. Set to false initially.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file, provided during the Create a file upload step. Initially null until the file is actually uploaded. Maximum length is 900 bytes including extension.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n upload_url: z.string().describe(\"The endpoint URL where binary file contents should be transmitted in the next step. Only present for pending uploads with status 'pending'.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire. The file must be attached within one hour or it will transition to an archived state.\").nullable(),\n complete_url: z.string().describe(\"URL for completing a multi-part file upload. Only present for pending multi-part uploads (mode=multi_part).\").nullable().optional(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file. Initially null until the file is actually uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.string().describe(\"The total size of the file in bytes. Initially null until the file is actually uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionCreateFileUpload = action(\"NOTION_CREATE_FILE_UPLOAD\", {\n slug: \"notion-create-file-upload\",\n name: \"Create Notion file upload\",\n description: \"Tool to create a Notion FileUpload object and retrieve an upload URL. Use when you need to automate attaching local or external files directly into Notion without external hosting.\",\n input: NotionCreateFileUploadInput,\n output: NotionCreateFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/create-file-upload.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionCreateFileUploadInput = z.object({\n mode: z.enum([\"single_part\", \"multi_part\", \"external_url\"]).describe(\"Upload mode: 'single_part' for direct upload (default, up to 20 MB), 'multi_part' for chunked uploads (requires paid Notion workspace), or 'external_url' to import from a public URL. Note: Free workspaces are limited to 5 MB files and cannot use multi_part mode.\").optional(),\n filename: z.string().describe(\"Human-readable file name with extension. Required for external_url; for multi_part, supply to infer extension or pair with content_type; optional for single-part. Supported extensions: Audio (.aac, .adts, .mid, .midi, .mp3, .mpga, .m4a, .m4b, .mp4, .oga, .ogg, .wav, .wma); Document (.pdf, .txt, .json, .doc, .dot, .docx, .dotx, .xls, .xlt, .xla, .xlsx, .xltx, .ppt, .pot, .pps, .ppa, .pptx, .potx); Image (.gif, .heic, .jpeg, .jpg, .png, .svg, .tif, .tiff, .webp, .ico); Video (.amv, .asf, .wmv, .avi, .f4v, .flv, .gifv, .m4v, .mp4, .mkv, .webm, .mov, .qt, .mpeg).\").optional(),\n content_type: z.string().describe(\"MIME type of the file. Required in multi_part if filename lacks extension; optional for single-part.\").optional(),\n external_url: z.string().describe(\"Public HTTPS URL to import. Required when mode='external_url'. Must expose Content-Type and Content-Length.\").optional(),\n number_of_parts: z.number().int().describe(\"Total parts for a multi-part upload; required when mode='multi_part'.\").optional(),\n});\nexport const NotionCreateFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload. Required for subsequent upload and attachment operations.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current status of the file upload. Initially set to 'pending' after creation. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived. Set to false initially.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file, provided during the Create a file upload step. Initially null until the file is actually uploaded. Maximum length is 900 bytes including extension.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n upload_url: z.string().describe(\"The endpoint URL where binary file contents should be transmitted in the next step. Only present for pending uploads with status 'pending'.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire. The file must be attached within one hour or it will transition to an archived state.\").nullable(),\n complete_url: z.string().describe(\"URL for completing a multi-part file upload. Only present for pending multi-part uploads (mode=multi_part).\").nullable().optional(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file. Initially null until the file is actually uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.string().describe(\"The total size of the file in bytes. Initially null until the file is actually uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionCreateFileUpload: AppAction<\n typeof NotionCreateFileUploadInput,\n typeof NotionCreateFileUploadOutput,\n typeof notion.credential\n> = action(\"NOTION_CREATE_FILE_UPLOAD\", {\n slug: \"notion-create-file-upload\",\n name: \"Create Notion file upload\",\n description: \"Tool to create a Notion FileUpload object and retrieve an upload URL. Use when you need to automate attaching local or external files directly into Notion without external hosting.\",\n input: NotionCreateFileUploadInput,\n output: NotionCreateFileUploadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;CAAc,CAAC,CAAC,CAAC,SAAS,wQAAwQ,CAAC,CAAC,SAAS;CACxV,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ujBAAujB,CAAC,CAAC,SAAS;CAChmB,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC/H,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC5I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACtN,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpO,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACxL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACxL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { notion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-file-upload.d.ts
@@ -32,13 +34,7 @@ declare const NotionCreateFileUploadOutput: z.ZodObject<{
32
34
  content_length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  last_edited_time: z.ZodNullable<z.ZodString>;
34
36
  }, z.core.$loose>;
35
- declare const notionCreateFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- mode?: "single_part" | "multi_part" | "external_url" | undefined;
37
- filename?: string | undefined;
38
- content_type?: string | undefined;
39
- external_url?: string | undefined;
40
- number_of_parts?: number | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const notionCreateFileUpload: AppAction<typeof NotionCreateFileUploadInput, typeof NotionCreateFileUploadOutput, typeof notion.credential>;
42
38
  //#endregion
43
39
  export { notionCreateFileUpload };
44
40
  //# sourceMappingURL=create-file-upload.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-file-upload.d.cts","names":[],"sources":["../../src/actions/create-file-upload.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-file-upload.d.cts","names":[],"sources":["../../src/actions/create-file-upload.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { notion } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-file-upload.d.ts
@@ -32,13 +34,7 @@ declare const NotionCreateFileUploadOutput: z.ZodObject<{
32
34
  content_length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  last_edited_time: z.ZodNullable<z.ZodString>;
34
36
  }, z.core.$loose>;
35
- declare const notionCreateFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- mode?: "single_part" | "multi_part" | "external_url" | undefined;
37
- filename?: string | undefined;
38
- content_type?: string | undefined;
39
- external_url?: string | undefined;
40
- number_of_parts?: number | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const notionCreateFileUpload: AppAction<typeof NotionCreateFileUploadInput, typeof NotionCreateFileUploadOutput, typeof notion.credential>;
42
38
  //#endregion
43
39
  export { notionCreateFileUpload };
44
40
  //# sourceMappingURL=create-file-upload.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-file-upload.d.mts","names":[],"sources":["../../src/actions/create-file-upload.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-file-upload.d.mts","names":[],"sources":["../../src/actions/create-file-upload.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const notionCreateFileUpload = action("NOTION_CREATE_FILE_UPLOAD", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-file-upload.mjs","names":[],"sources":["../../src/actions/create-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateFileUploadInput = z.object({\n mode: z.enum([\"single_part\", \"multi_part\", \"external_url\"]).describe(\"Upload mode: 'single_part' for direct upload (default, up to 20 MB), 'multi_part' for chunked uploads (requires paid Notion workspace), or 'external_url' to import from a public URL. Note: Free workspaces are limited to 5 MB files and cannot use multi_part mode.\").optional(),\n filename: z.string().describe(\"Human-readable file name with extension. Required for external_url; for multi_part, supply to infer extension or pair with content_type; optional for single-part. Supported extensions: Audio (.aac, .adts, .mid, .midi, .mp3, .mpga, .m4a, .m4b, .mp4, .oga, .ogg, .wav, .wma); Document (.pdf, .txt, .json, .doc, .dot, .docx, .dotx, .xls, .xlt, .xla, .xlsx, .xltx, .ppt, .pot, .pps, .ppa, .pptx, .potx); Image (.gif, .heic, .jpeg, .jpg, .png, .svg, .tif, .tiff, .webp, .ico); Video (.amv, .asf, .wmv, .avi, .f4v, .flv, .gifv, .m4v, .mp4, .mkv, .webm, .mov, .qt, .mpeg).\").optional(),\n content_type: z.string().describe(\"MIME type of the file. Required in multi_part if filename lacks extension; optional for single-part.\").optional(),\n external_url: z.string().describe(\"Public HTTPS URL to import. Required when mode='external_url'. Must expose Content-Type and Content-Length.\").optional(),\n number_of_parts: z.number().int().describe(\"Total parts for a multi-part upload; required when mode='multi_part'.\").optional(),\n});\nexport const NotionCreateFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload. Required for subsequent upload and attachment operations.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current status of the file upload. Initially set to 'pending' after creation. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived. Set to false initially.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file, provided during the Create a file upload step. Initially null until the file is actually uploaded. Maximum length is 900 bytes including extension.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n upload_url: z.string().describe(\"The endpoint URL where binary file contents should be transmitted in the next step. Only present for pending uploads with status 'pending'.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire. The file must be attached within one hour or it will transition to an archived state.\").nullable(),\n complete_url: z.string().describe(\"URL for completing a multi-part file upload. Only present for pending multi-part uploads (mode=multi_part).\").nullable().optional(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file. Initially null until the file is actually uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.string().describe(\"The total size of the file in bytes. Initially null until the file is actually uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionCreateFileUpload = action(\"NOTION_CREATE_FILE_UPLOAD\", {\n slug: \"notion-create-file-upload\",\n name: \"Create Notion file upload\",\n description: \"Tool to create a Notion FileUpload object and retrieve an upload URL. Use when you need to automate attaching local or external files directly into Notion without external hosting.\",\n input: NotionCreateFileUploadInput,\n output: NotionCreateFileUploadOutput,\n});\n"],"mappings":";;AA2BA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3ByC,EAAE,OAAO;EAClD,MAAM,EAAE,KAAK;GAAC;GAAe;GAAc;EAAc,CAAC,CAAC,CAAC,SAAS,wQAAwQ,CAAC,CAAC,SAAS;EACxV,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,ujBAAujB,CAAC,CAAC,SAAS;EAChmB,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/H,CAqBS;CACP,QArB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EAC5I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;EACtN,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpO,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;EACxL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EACxL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-file-upload.mjs","names":[],"sources":["../../src/actions/create-file-upload.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionCreateFileUploadInput = z.object({\n mode: z.enum([\"single_part\", \"multi_part\", \"external_url\"]).describe(\"Upload mode: 'single_part' for direct upload (default, up to 20 MB), 'multi_part' for chunked uploads (requires paid Notion workspace), or 'external_url' to import from a public URL. Note: Free workspaces are limited to 5 MB files and cannot use multi_part mode.\").optional(),\n filename: z.string().describe(\"Human-readable file name with extension. Required for external_url; for multi_part, supply to infer extension or pair with content_type; optional for single-part. Supported extensions: Audio (.aac, .adts, .mid, .midi, .mp3, .mpga, .m4a, .m4b, .mp4, .oga, .ogg, .wav, .wma); Document (.pdf, .txt, .json, .doc, .dot, .docx, .dotx, .xls, .xlt, .xla, .xlsx, .xltx, .ppt, .pot, .pps, .ppa, .pptx, .potx); Image (.gif, .heic, .jpeg, .jpg, .png, .svg, .tif, .tiff, .webp, .ico); Video (.amv, .asf, .wmv, .avi, .f4v, .flv, .gifv, .m4v, .mp4, .mkv, .webm, .mov, .qt, .mpeg).\").optional(),\n content_type: z.string().describe(\"MIME type of the file. Required in multi_part if filename lacks extension; optional for single-part.\").optional(),\n external_url: z.string().describe(\"Public HTTPS URL to import. Required when mode='external_url'. Must expose Content-Type and Content-Length.\").optional(),\n number_of_parts: z.number().int().describe(\"Total parts for a multi-part upload; required when mode='multi_part'.\").optional(),\n});\nexport const NotionCreateFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload. Required for subsequent upload and attachment operations.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current status of the file upload. Initially set to 'pending' after creation. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived. Set to false initially.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file, provided during the Create a file upload step. Initially null until the file is actually uploaded. Maximum length is 900 bytes including extension.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n upload_url: z.string().describe(\"The endpoint URL where binary file contents should be transmitted in the next step. Only present for pending uploads with status 'pending'.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire. The file must be attached within one hour or it will transition to an archived state.\").nullable(),\n complete_url: z.string().describe(\"URL for completing a multi-part file upload. Only present for pending multi-part uploads (mode=multi_part).\").nullable().optional(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file. Initially null until the file is actually uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.string().describe(\"The total size of the file in bytes. Initially null until the file is actually uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionCreateFileUpload: AppAction<\n typeof NotionCreateFileUploadInput,\n typeof NotionCreateFileUploadOutput,\n typeof notion.credential\n> = action(\"NOTION_CREATE_FILE_UPLOAD\", {\n slug: \"notion-create-file-upload\",\n name: \"Create Notion file upload\",\n description: \"Tool to create a Notion FileUpload object and retrieve an upload URL. Use when you need to automate attaching local or external files directly into Notion without external hosting.\",\n input: NotionCreateFileUploadInput,\n output: NotionCreateFileUploadOutput,\n});\n"],"mappings":";;;AA6BA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/ByC,EAAE,OAAO;EAClD,MAAM,EAAE,KAAK;GAAC;GAAe;GAAc;EAAc,CAAC,CAAC,CAAC,SAAS,wQAAwQ,CAAC,CAAC,SAAS;EACxV,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,ujBAAujB,CAAC,CAAC,SAAS;EAChmB,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/H,CAyBS;CACP,QAzB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EAC5I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;EACtN,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpO,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;EACxL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EACxL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-notion-page.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-notion-page.cjs","names":["z","action"],"sources":["../../src/actions/create-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateNotionPageInput = z.object({\n icon: z.string().describe(\"An emoji to be used as the icon for the new page. Must be a single emoji character. If the title starts with this emoji, it will be stripped from the title text to prevent duplication.\").optional(),\n cover: z.string().describe(\"The URL of an image to be used as the cover for the new page. The URL must be publicly accessible.\").optional(),\n title: z.string().describe(\"The title of the new page to be created. If an icon emoji is provided and the title starts with the same emoji, it will be automatically removed from the title to avoid duplication.\"),\n markdown: z.string().describe(\"Page content as Notion-flavored Markdown. When provided, the page will be created from this markdown string. If properties.title is omitted, the first # h1 heading will be extracted as the page title. This parameter is mutually exclusive with children and content parameters.\").optional(),\n parent_id: z.string().describe(\"CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.\"),\n});\nconst NotionCreateNotionPage_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to access the file (valid for 1 hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file object.\");\nconst NotionCreateNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the file.\").nullable(),\n}).passthrough().describe(\"External file object.\");\nconst NotionCreateNotionPage_FileUploadSchema = z.object({\n id: z.string().describe(\"UUID of the completed file upload.\").nullable(),\n}).passthrough().describe(\"API-uploaded file object.\");\nconst NotionCreateNotionPage_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji object.\");\nconst NotionCreateNotionPage_IconSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionCreateNotionPage_CustomEmojiSchema.nullable().optional(),\n}).passthrough().describe(\"Page icon, can be an emoji or file object.\");\nconst NotionCreateNotionPage_CoverSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of cover: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n}).passthrough().describe(\"Page cover image as a file object.\");\nconst NotionCreateNotionPage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough().describe(\"Parent is a database.\");\nconst NotionCreateNotionPage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough().describe(\"Parent is a data source.\");\nconst NotionCreateNotionPage_PageParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough().describe(\"Parent is a page.\");\nconst NotionCreateNotionPage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n workspace: z.boolean().describe(\"Always true, indicating a top-level page.\").nullable(),\n}).passthrough().describe(\"Parent is workspace (top-level page).\");\nconst NotionCreateNotionPage_BlockParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough().describe(\"Parent is a block.\");\nconst NotionCreateNotionPage_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough().describe(\"User object representing who created or edited the page.\");\nexport const NotionCreateNotionPageOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: NotionCreateNotionPage_IconSchema.nullable().optional(),\n cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: z.union([NotionCreateNotionPage_DatabaseParentSchema, NotionCreateNotionPage_DataSourceParentSchema, NotionCreateNotionPage_PageParentSchema, NotionCreateNotionPage_WorkspaceParentSchema, NotionCreateNotionPage_BlockParentSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionCreateNotionPage_UserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The publicly accessible URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, formatted as an ISO 8601 datetime string.\").nullable(),\n last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited, formatted as an ISO 8601 datetime string.\").nullable(),\n}).passthrough().describe(\"Response from creating a Notion page.\");\n\nexport const notionCreateNotionPage = action(\"NOTION_CREATE_NOTION_PAGE\", {\n slug: \"notion-create-notion-page\",\n name: \"Create Notion page\",\n description: \"Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters\",\n input: NotionCreateNotionPageInput,\n output: NotionCreateNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CAC/N,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CAClN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qRAAqR,CAAC,CAAC,SAAS;CAC9T,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uoBAAuoB;AACxqB,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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AC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,gBAAgB,kCAAkC,SAAS;CAC3D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-notion-page.cjs","names":["z","action"],"sources":["../../src/actions/create-notion-page.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionCreateNotionPageInput = z.object({\n icon: z.string().describe(\"An emoji to be used as the icon for the new page. Must be a single emoji character. If the title starts with this emoji, it will be stripped from the title text to prevent duplication.\").optional(),\n cover: z.string().describe(\"The URL of an image to be used as the cover for the new page. The URL must be publicly accessible.\").optional(),\n title: z.string().describe(\"The title of the new page to be created. If an icon emoji is provided and the title starts with the same emoji, it will be automatically removed from the title to avoid duplication.\"),\n markdown: z.string().describe(\"Page content as Notion-flavored Markdown. When provided, the page will be created from this markdown string. If properties.title is omitted, the first # h1 heading will be extracted as the page title. This parameter is mutually exclusive with children and content parameters.\").optional(),\n parent_id: z.string().describe(\"CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.\"),\n});\nconst NotionCreateNotionPage_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to access the file (valid for 1 hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file object.\");\nconst NotionCreateNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the file.\").nullable(),\n}).passthrough().describe(\"External file object.\");\nconst NotionCreateNotionPage_FileUploadSchema = z.object({\n id: z.string().describe(\"UUID of the completed file upload.\").nullable(),\n}).passthrough().describe(\"API-uploaded file object.\");\nconst NotionCreateNotionPage_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji object.\");\nconst NotionCreateNotionPage_IconSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionCreateNotionPage_CustomEmojiSchema.nullable().optional(),\n}).passthrough().describe(\"Page icon, can be an emoji or file object.\");\nconst NotionCreateNotionPage_CoverSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of cover: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n}).passthrough().describe(\"Page cover image as a file object.\");\nconst NotionCreateNotionPage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough().describe(\"Parent is a database.\");\nconst NotionCreateNotionPage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough().describe(\"Parent is a data source.\");\nconst NotionCreateNotionPage_PageParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough().describe(\"Parent is a page.\");\nconst NotionCreateNotionPage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n workspace: z.boolean().describe(\"Always true, indicating a top-level page.\").nullable(),\n}).passthrough().describe(\"Parent is workspace (top-level page).\");\nconst NotionCreateNotionPage_BlockParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough().describe(\"Parent is a block.\");\nconst NotionCreateNotionPage_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough().describe(\"User object representing who created or edited the page.\");\nexport const NotionCreateNotionPageOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: NotionCreateNotionPage_IconSchema.nullable().optional(),\n cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: z.union([NotionCreateNotionPage_DatabaseParentSchema, NotionCreateNotionPage_DataSourceParentSchema, NotionCreateNotionPage_PageParentSchema, NotionCreateNotionPage_WorkspaceParentSchema, NotionCreateNotionPage_BlockParentSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionCreateNotionPage_UserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The publicly accessible URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, formatted as an ISO 8601 datetime string.\").nullable(),\n last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited, formatted as an ISO 8601 datetime string.\").nullable(),\n}).passthrough().describe(\"Response from creating a Notion page.\");\n\nexport const notionCreateNotionPage: AppAction<\n typeof NotionCreateNotionPageInput,\n typeof NotionCreateNotionPageOutput,\n typeof notion.credential\n> = action(\"NOTION_CREATE_NOTION_PAGE\", {\n slug: \"notion-create-notion-page\",\n name: \"Create Notion page\",\n description: \"Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters\",\n input: NotionCreateNotionPageInput,\n output: NotionCreateNotionPageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CAC/N,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CAClN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qRAAqR,CAAC,CAAC,SAA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C,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACvD,QAAQA,IAAAA,EAAE,MAAM;EAAC;EAA6C;EAA+C;EAAyC;EAA8C;CAAwC,CAAC;CAC7O,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAY,kCAAkC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gIAAgI;CACvL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,gBAAgB,kCAAkC,SAAS;CAC3D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { notion } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-notion-page.d.ts
@@ -77,13 +79,7 @@ declare const NotionCreateNotionPageOutput: z.ZodObject<{
77
79
  }, z.core.$loose>>;
78
80
  last_edited_time: z.ZodNullable<z.ZodString>;
79
81
  }, z.core.$loose>;
80
- declare const notionCreateNotionPage: import("@keystrokehq/action").WorkflowActionDefinition<{
81
- title: string;
82
- parent_id: string;
83
- icon?: string | undefined;
84
- cover?: string | undefined;
85
- markdown?: string | undefined;
86
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
82
+ declare const notionCreateNotionPage: AppAction<typeof NotionCreateNotionPageInput, typeof NotionCreateNotionPageOutput, typeof notion.credential>;
87
83
  //#endregion
88
84
  export { notionCreateNotionPage };
89
85
  //# sourceMappingURL=create-notion-page.d.cts.map