@keystrokehq/notion 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/add-multiple-page-content.cjs +13 -13
  5. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.cts +90 -3
  7. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.d.mts +90 -3
  9. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  10. package/dist/actions/add-multiple-page-content.mjs +13 -13
  11. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  12. package/dist/actions/append-code-blocks.cjs +100 -100
  13. package/dist/actions/append-code-blocks.cjs.map +1 -1
  14. package/dist/actions/append-code-blocks.d.cts +867 -3
  15. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  16. package/dist/actions/append-code-blocks.d.mts +867 -3
  17. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  18. package/dist/actions/append-code-blocks.mjs +100 -100
  19. package/dist/actions/append-code-blocks.mjs.map +1 -1
  20. package/dist/actions/append-layout-blocks.cjs +91 -91
  21. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  22. package/dist/actions/append-layout-blocks.d.cts +652 -3
  23. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  24. package/dist/actions/append-layout-blocks.d.mts +652 -3
  25. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  26. package/dist/actions/append-layout-blocks.mjs +91 -91
  27. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  28. package/dist/actions/append-media-blocks.cjs +125 -125
  29. package/dist/actions/append-media-blocks.cjs.map +1 -1
  30. package/dist/actions/append-media-blocks.d.cts +1039 -3
  31. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  32. package/dist/actions/append-media-blocks.d.mts +1039 -3
  33. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  34. package/dist/actions/append-media-blocks.mjs +125 -125
  35. package/dist/actions/append-media-blocks.mjs.map +1 -1
  36. package/dist/actions/append-table-blocks.cjs +87 -87
  37. package/dist/actions/append-table-blocks.cjs.map +1 -1
  38. package/dist/actions/append-table-blocks.d.cts +630 -3
  39. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  40. package/dist/actions/append-table-blocks.d.mts +630 -3
  41. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  42. package/dist/actions/append-table-blocks.mjs +87 -87
  43. package/dist/actions/append-table-blocks.mjs.map +1 -1
  44. package/dist/actions/append-task-blocks.cjs +101 -101
  45. package/dist/actions/append-task-blocks.cjs.map +1 -1
  46. package/dist/actions/append-task-blocks.d.cts +845 -3
  47. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  48. package/dist/actions/append-task-blocks.d.mts +845 -3
  49. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  50. package/dist/actions/append-task-blocks.mjs +101 -101
  51. package/dist/actions/append-task-blocks.mjs.map +1 -1
  52. package/dist/actions/append-text-blocks.cjs +118 -118
  53. package/dist/actions/append-text-blocks.cjs.map +1 -1
  54. package/dist/actions/append-text-blocks.d.cts +1116 -3
  55. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  56. package/dist/actions/append-text-blocks.d.mts +1116 -3
  57. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  58. package/dist/actions/append-text-blocks.mjs +118 -118
  59. package/dist/actions/append-text-blocks.mjs.map +1 -1
  60. package/dist/actions/archive-notion-page.cjs +43 -43
  61. package/dist/actions/archive-notion-page.cjs.map +1 -1
  62. package/dist/actions/archive-notion-page.d.cts +78 -3
  63. package/dist/actions/archive-notion-page.d.cts.map +1 -1
  64. package/dist/actions/archive-notion-page.d.mts +78 -3
  65. package/dist/actions/archive-notion-page.d.mts.map +1 -1
  66. package/dist/actions/archive-notion-page.mjs +43 -43
  67. package/dist/actions/archive-notion-page.mjs.map +1 -1
  68. package/dist/actions/create-comment.cjs.map +1 -1
  69. package/dist/actions/create-comment.d.cts +46 -3
  70. package/dist/actions/create-comment.d.cts.map +1 -1
  71. package/dist/actions/create-comment.d.mts +46 -3
  72. package/dist/actions/create-comment.d.mts.map +1 -1
  73. package/dist/actions/create-comment.mjs.map +1 -1
  74. package/dist/actions/create-database.cjs +44 -44
  75. package/dist/actions/create-database.cjs.map +1 -1
  76. package/dist/actions/create-database.d.cts +140 -3
  77. package/dist/actions/create-database.d.cts.map +1 -1
  78. package/dist/actions/create-database.d.mts +140 -3
  79. package/dist/actions/create-database.d.mts.map +1 -1
  80. package/dist/actions/create-database.mjs +44 -44
  81. package/dist/actions/create-database.mjs.map +1 -1
  82. package/dist/actions/create-file-upload.cjs +9 -9
  83. package/dist/actions/create-file-upload.cjs.map +1 -1
  84. package/dist/actions/create-file-upload.d.cts +38 -3
  85. package/dist/actions/create-file-upload.d.cts.map +1 -1
  86. package/dist/actions/create-file-upload.d.mts +38 -3
  87. package/dist/actions/create-file-upload.d.mts.map +1 -1
  88. package/dist/actions/create-file-upload.mjs +9 -9
  89. package/dist/actions/create-file-upload.mjs.map +1 -1
  90. package/dist/actions/create-notion-page.cjs +41 -41
  91. package/dist/actions/create-notion-page.cjs.map +1 -1
  92. package/dist/actions/create-notion-page.d.cts +83 -3
  93. package/dist/actions/create-notion-page.d.cts.map +1 -1
  94. package/dist/actions/create-notion-page.d.mts +83 -3
  95. package/dist/actions/create-notion-page.d.mts.map +1 -1
  96. package/dist/actions/create-notion-page.mjs +41 -41
  97. package/dist/actions/create-notion-page.mjs.map +1 -1
  98. package/dist/actions/delete-block.cjs +84 -84
  99. package/dist/actions/delete-block.cjs.map +1 -1
  100. package/dist/actions/delete-block.d.cts +2181 -3
  101. package/dist/actions/delete-block.d.cts.map +1 -1
  102. package/dist/actions/delete-block.d.mts +2181 -3
  103. package/dist/actions/delete-block.d.mts.map +1 -1
  104. package/dist/actions/delete-block.mjs +84 -84
  105. package/dist/actions/delete-block.mjs.map +1 -1
  106. package/dist/actions/duplicate-page.cjs +49 -49
  107. package/dist/actions/duplicate-page.cjs.map +1 -1
  108. package/dist/actions/duplicate-page.d.cts +90 -3
  109. package/dist/actions/duplicate-page.d.cts.map +1 -1
  110. package/dist/actions/duplicate-page.d.mts +90 -3
  111. package/dist/actions/duplicate-page.d.mts.map +1 -1
  112. package/dist/actions/duplicate-page.mjs +49 -49
  113. package/dist/actions/duplicate-page.mjs.map +1 -1
  114. package/dist/actions/fetch-all-block-contents.cjs +91 -91
  115. package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
  116. package/dist/actions/fetch-all-block-contents.d.cts +38 -3
  117. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
  118. package/dist/actions/fetch-all-block-contents.d.mts +38 -3
  119. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
  120. package/dist/actions/fetch-all-block-contents.mjs +91 -91
  121. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  122. package/dist/actions/fetch-block-contents.cjs +97 -97
  123. package/dist/actions/fetch-block-contents.cjs.map +1 -1
  124. package/dist/actions/fetch-block-contents.d.cts +687 -3
  125. package/dist/actions/fetch-block-contents.d.cts.map +1 -1
  126. package/dist/actions/fetch-block-contents.d.mts +687 -3
  127. package/dist/actions/fetch-block-contents.d.mts.map +1 -1
  128. package/dist/actions/fetch-block-contents.mjs +97 -97
  129. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  130. package/dist/actions/fetch-block-metadata.cjs +81 -81
  131. package/dist/actions/fetch-block-metadata.cjs.map +1 -1
  132. package/dist/actions/fetch-block-metadata.d.cts +2103 -3
  133. package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
  134. package/dist/actions/fetch-block-metadata.d.mts +2103 -3
  135. package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
  136. package/dist/actions/fetch-block-metadata.mjs +81 -81
  137. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  138. package/dist/actions/fetch-comments.cjs +55 -55
  139. package/dist/actions/fetch-comments.cjs.map +1 -1
  140. package/dist/actions/fetch-comments.d.cts +148 -3
  141. package/dist/actions/fetch-comments.d.cts.map +1 -1
  142. package/dist/actions/fetch-comments.d.mts +148 -3
  143. package/dist/actions/fetch-comments.d.mts.map +1 -1
  144. package/dist/actions/fetch-comments.mjs +55 -55
  145. package/dist/actions/fetch-comments.mjs.map +1 -1
  146. package/dist/actions/fetch-data.cjs +76 -76
  147. package/dist/actions/fetch-data.cjs.map +1 -1
  148. package/dist/actions/fetch-data.d.cts +594 -3
  149. package/dist/actions/fetch-data.d.cts.map +1 -1
  150. package/dist/actions/fetch-data.d.mts +594 -3
  151. package/dist/actions/fetch-data.d.mts.map +1 -1
  152. package/dist/actions/fetch-data.mjs +76 -76
  153. package/dist/actions/fetch-data.mjs.map +1 -1
  154. package/dist/actions/fetch-database.cjs +38 -38
  155. package/dist/actions/fetch-database.cjs.map +1 -1
  156. package/dist/actions/fetch-database.d.cts +89 -3
  157. package/dist/actions/fetch-database.d.cts.map +1 -1
  158. package/dist/actions/fetch-database.d.mts +89 -3
  159. package/dist/actions/fetch-database.d.mts.map +1 -1
  160. package/dist/actions/fetch-database.mjs +38 -38
  161. package/dist/actions/fetch-database.mjs.map +1 -1
  162. package/dist/actions/fetch-row.cjs +56 -56
  163. package/dist/actions/fetch-row.cjs.map +1 -1
  164. package/dist/actions/fetch-row.d.cts +151 -3
  165. package/dist/actions/fetch-row.d.cts.map +1 -1
  166. package/dist/actions/fetch-row.d.mts +151 -3
  167. package/dist/actions/fetch-row.d.mts.map +1 -1
  168. package/dist/actions/fetch-row.mjs +56 -56
  169. package/dist/actions/fetch-row.mjs.map +1 -1
  170. package/dist/actions/get-about-user.cjs +13 -13
  171. package/dist/actions/get-about-user.cjs.map +1 -1
  172. package/dist/actions/get-about-user.d.cts +44 -3
  173. package/dist/actions/get-about-user.d.cts.map +1 -1
  174. package/dist/actions/get-about-user.d.mts +44 -3
  175. package/dist/actions/get-about-user.d.mts.map +1 -1
  176. package/dist/actions/get-about-user.mjs +13 -13
  177. package/dist/actions/get-about-user.mjs.map +1 -1
  178. package/dist/actions/get-page-markdown.cjs +5 -5
  179. package/dist/actions/get-page-markdown.cjs.map +1 -1
  180. package/dist/actions/get-page-markdown.d.cts +15 -3
  181. package/dist/actions/get-page-markdown.d.cts.map +1 -1
  182. package/dist/actions/get-page-markdown.d.mts +15 -3
  183. package/dist/actions/get-page-markdown.d.mts.map +1 -1
  184. package/dist/actions/get-page-markdown.mjs +5 -5
  185. package/dist/actions/get-page-markdown.mjs.map +1 -1
  186. package/dist/actions/get-page-property-action.cjs.map +1 -1
  187. package/dist/actions/get-page-property-action.d.cts +13 -3
  188. package/dist/actions/get-page-property-action.d.cts.map +1 -1
  189. package/dist/actions/get-page-property-action.d.mts +13 -3
  190. package/dist/actions/get-page-property-action.d.mts.map +1 -1
  191. package/dist/actions/get-page-property-action.mjs.map +1 -1
  192. package/dist/actions/insert-row-database.cjs +50 -50
  193. package/dist/actions/insert-row-database.cjs.map +1 -1
  194. package/dist/actions/insert-row-database.d.cts +165 -3
  195. package/dist/actions/insert-row-database.d.cts.map +1 -1
  196. package/dist/actions/insert-row-database.d.mts +165 -3
  197. package/dist/actions/insert-row-database.d.mts.map +1 -1
  198. package/dist/actions/insert-row-database.mjs +50 -50
  199. package/dist/actions/insert-row-database.mjs.map +1 -1
  200. package/dist/actions/insert-row-from-nl.cjs +2 -2
  201. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  202. package/dist/actions/insert-row-from-nl.d.cts +19 -3
  203. package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
  204. package/dist/actions/insert-row-from-nl.d.mts +19 -3
  205. package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
  206. package/dist/actions/insert-row-from-nl.mjs +2 -2
  207. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  208. package/dist/actions/list-data-source-templates.cjs +6 -6
  209. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  210. package/dist/actions/list-data-source-templates.d.cts +19 -3
  211. package/dist/actions/list-data-source-templates.d.cts.map +1 -1
  212. package/dist/actions/list-data-source-templates.d.mts +19 -3
  213. package/dist/actions/list-data-source-templates.d.mts.map +1 -1
  214. package/dist/actions/list-data-source-templates.mjs +6 -6
  215. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  216. package/dist/actions/list-file-uploads.cjs +9 -9
  217. package/dist/actions/list-file-uploads.cjs.map +1 -1
  218. package/dist/actions/list-file-uploads.d.cts +32 -3
  219. package/dist/actions/list-file-uploads.d.cts.map +1 -1
  220. package/dist/actions/list-file-uploads.d.mts +32 -3
  221. package/dist/actions/list-file-uploads.d.mts.map +1 -1
  222. package/dist/actions/list-file-uploads.mjs +9 -9
  223. package/dist/actions/list-file-uploads.mjs.map +1 -1
  224. package/dist/actions/list-users.cjs +14 -14
  225. package/dist/actions/list-users.cjs.map +1 -1
  226. package/dist/actions/list-users.d.cts +58 -3
  227. package/dist/actions/list-users.d.cts.map +1 -1
  228. package/dist/actions/list-users.d.mts +58 -3
  229. package/dist/actions/list-users.d.mts.map +1 -1
  230. package/dist/actions/list-users.mjs +14 -14
  231. package/dist/actions/list-users.mjs.map +1 -1
  232. package/dist/actions/move-page.cjs +44 -44
  233. package/dist/actions/move-page.cjs.map +1 -1
  234. package/dist/actions/move-page.d.cts +92 -3
  235. package/dist/actions/move-page.d.cts.map +1 -1
  236. package/dist/actions/move-page.d.mts +92 -3
  237. package/dist/actions/move-page.d.mts.map +1 -1
  238. package/dist/actions/move-page.mjs +44 -44
  239. package/dist/actions/move-page.mjs.map +1 -1
  240. package/dist/actions/query-data-source.cjs +35 -35
  241. package/dist/actions/query-data-source.cjs.map +1 -1
  242. package/dist/actions/query-data-source.d.cts +161 -3
  243. package/dist/actions/query-data-source.d.cts.map +1 -1
  244. package/dist/actions/query-data-source.d.mts +161 -3
  245. package/dist/actions/query-data-source.d.mts.map +1 -1
  246. package/dist/actions/query-data-source.mjs +35 -35
  247. package/dist/actions/query-data-source.mjs.map +1 -1
  248. package/dist/actions/query-database-with-filter.cjs +73 -73
  249. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  250. package/dist/actions/query-database-with-filter.d.cts +216 -3
  251. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  252. package/dist/actions/query-database-with-filter.d.mts +216 -3
  253. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  254. package/dist/actions/query-database-with-filter.mjs +73 -73
  255. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  256. package/dist/actions/query-database.cjs +61 -61
  257. package/dist/actions/query-database.cjs.map +1 -1
  258. package/dist/actions/query-database.d.cts +209 -3
  259. package/dist/actions/query-database.d.cts.map +1 -1
  260. package/dist/actions/query-database.d.mts +209 -3
  261. package/dist/actions/query-database.d.mts.map +1 -1
  262. package/dist/actions/query-database.mjs +61 -61
  263. package/dist/actions/query-database.mjs.map +1 -1
  264. package/dist/actions/replace-page-content.cjs +133 -133
  265. package/dist/actions/replace-page-content.cjs.map +1 -1
  266. package/dist/actions/replace-page-content.d.cts +1836 -3
  267. package/dist/actions/replace-page-content.d.cts.map +1 -1
  268. package/dist/actions/replace-page-content.d.mts +1836 -3
  269. package/dist/actions/replace-page-content.d.mts.map +1 -1
  270. package/dist/actions/replace-page-content.mjs +133 -133
  271. package/dist/actions/replace-page-content.mjs.map +1 -1
  272. package/dist/actions/retrieve-comment.cjs.map +1 -1
  273. package/dist/actions/retrieve-comment.d.cts +7 -3
  274. package/dist/actions/retrieve-comment.d.cts.map +1 -1
  275. package/dist/actions/retrieve-comment.d.mts +7 -3
  276. package/dist/actions/retrieve-comment.d.mts.map +1 -1
  277. package/dist/actions/retrieve-comment.mjs.map +1 -1
  278. package/dist/actions/retrieve-database-property.cjs +42 -42
  279. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  280. package/dist/actions/retrieve-database-property.d.cts +78 -3
  281. package/dist/actions/retrieve-database-property.d.cts.map +1 -1
  282. package/dist/actions/retrieve-database-property.d.mts +78 -3
  283. package/dist/actions/retrieve-database-property.d.mts.map +1 -1
  284. package/dist/actions/retrieve-database-property.mjs +42 -42
  285. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  286. package/dist/actions/retrieve-file-upload.cjs +6 -6
  287. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  288. package/dist/actions/retrieve-file-upload.d.cts +25 -3
  289. package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
  290. package/dist/actions/retrieve-file-upload.d.mts +25 -3
  291. package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
  292. package/dist/actions/retrieve-file-upload.mjs +6 -6
  293. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  294. package/dist/actions/retrieve-page.cjs +55 -55
  295. package/dist/actions/retrieve-page.cjs.map +1 -1
  296. package/dist/actions/retrieve-page.d.cts +139 -3
  297. package/dist/actions/retrieve-page.d.cts.map +1 -1
  298. package/dist/actions/retrieve-page.d.mts +139 -3
  299. package/dist/actions/retrieve-page.d.mts.map +1 -1
  300. package/dist/actions/retrieve-page.mjs +55 -55
  301. package/dist/actions/retrieve-page.mjs.map +1 -1
  302. package/dist/actions/search-notion-page.cjs +82 -82
  303. package/dist/actions/search-notion-page.cjs.map +1 -1
  304. package/dist/actions/search-notion-page.d.cts +751 -3
  305. package/dist/actions/search-notion-page.d.cts.map +1 -1
  306. package/dist/actions/search-notion-page.d.mts +751 -3
  307. package/dist/actions/search-notion-page.d.mts.map +1 -1
  308. package/dist/actions/search-notion-page.mjs +82 -82
  309. package/dist/actions/search-notion-page.mjs.map +1 -1
  310. package/dist/actions/send-file-upload.cjs +8 -8
  311. package/dist/actions/send-file-upload.cjs.map +1 -1
  312. package/dist/actions/send-file-upload.d.cts +33 -3
  313. package/dist/actions/send-file-upload.d.cts.map +1 -1
  314. package/dist/actions/send-file-upload.d.mts +33 -3
  315. package/dist/actions/send-file-upload.d.mts.map +1 -1
  316. package/dist/actions/send-file-upload.mjs +8 -8
  317. package/dist/actions/send-file-upload.mjs.map +1 -1
  318. package/dist/actions/update-block.cjs +94 -94
  319. package/dist/actions/update-block.cjs.map +1 -1
  320. package/dist/actions/update-block.d.cts +564 -3
  321. package/dist/actions/update-block.d.cts.map +1 -1
  322. package/dist/actions/update-block.d.mts +564 -3
  323. package/dist/actions/update-block.d.mts.map +1 -1
  324. package/dist/actions/update-block.mjs +94 -94
  325. package/dist/actions/update-block.mjs.map +1 -1
  326. package/dist/actions/update-page.cjs +46 -46
  327. package/dist/actions/update-page.cjs.map +1 -1
  328. package/dist/actions/update-page.d.cts +103 -3
  329. package/dist/actions/update-page.d.cts.map +1 -1
  330. package/dist/actions/update-page.d.mts +103 -3
  331. package/dist/actions/update-page.d.mts.map +1 -1
  332. package/dist/actions/update-page.mjs +46 -46
  333. package/dist/actions/update-page.mjs.map +1 -1
  334. package/dist/actions/update-row-database.cjs +50 -50
  335. package/dist/actions/update-row-database.cjs.map +1 -1
  336. package/dist/actions/update-row-database.d.cts +127 -3
  337. package/dist/actions/update-row-database.d.cts.map +1 -1
  338. package/dist/actions/update-row-database.d.mts +127 -3
  339. package/dist/actions/update-row-database.d.mts.map +1 -1
  340. package/dist/actions/update-row-database.mjs +50 -50
  341. package/dist/actions/update-row-database.mjs.map +1 -1
  342. package/dist/actions/update-schema-database.cjs +59 -59
  343. package/dist/actions/update-schema-database.cjs.map +1 -1
  344. package/dist/actions/update-schema-database.d.cts +315 -3
  345. package/dist/actions/update-schema-database.d.cts.map +1 -1
  346. package/dist/actions/update-schema-database.d.mts +315 -3
  347. package/dist/actions/update-schema-database.d.mts.map +1 -1
  348. package/dist/actions/update-schema-database.mjs +59 -59
  349. package/dist/actions/update-schema-database.mjs.map +1 -1
  350. package/dist/actions/upsert-row-database.cjs +32 -32
  351. package/dist/actions/upsert-row-database.cjs.map +1 -1
  352. package/dist/actions/upsert-row-database.d.cts +242 -3
  353. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  354. package/dist/actions/upsert-row-database.d.mts +242 -3
  355. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  356. package/dist/actions/upsert-row-database.mjs +32 -32
  357. package/dist/actions/upsert-row-database.mjs.map +1 -1
  358. package/dist/execute.cjs +1 -1
  359. package/dist/execute.cjs.map +1 -1
  360. package/dist/execute.mjs +1 -1
  361. package/dist/execute.mjs.map +1 -1
  362. package/package.json +2 -2
@@ -1,9 +1,84 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/archive-notion-page.d.ts
4
- declare const NotionArchiveNotionPageInput: z.ZodTypeAny;
5
- declare const NotionArchiveNotionPageOutput: z.ZodTypeAny;
6
- declare const notionArchiveNotionPage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionArchiveNotionPageInput: z.ZodObject<{
5
+ archive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ page_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const NotionArchiveNotionPageOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
12
+ type: z.ZodNullable<z.ZodString>;
13
+ emoji: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$loose>, z.ZodObject<{
15
+ type: z.ZodNullable<z.ZodString>;
16
+ custom_emoji: z.ZodNullable<z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ url: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>, z.ZodObject<{
22
+ type: z.ZodNullable<z.ZodString>;
23
+ external: z.ZodNullable<z.ZodObject<{
24
+ url: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>, z.ZodObject<{
27
+ file: z.ZodNullable<z.ZodObject<{
28
+ url: z.ZodNullable<z.ZodString>;
29
+ expiry_time: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$loose>>;
31
+ type: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$loose>]>>>;
33
+ cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ external: z.ZodNullable<z.ZodObject<{
36
+ url: z.ZodNullable<z.ZodString>;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>, z.ZodObject<{
39
+ file: z.ZodNullable<z.ZodObject<{
40
+ url: z.ZodNullable<z.ZodString>;
41
+ expiry_time: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$loose>>;
43
+ type: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>]>>>;
45
+ object: z.ZodNullable<z.ZodString>;
46
+ parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
47
+ type: z.ZodNullable<z.ZodString>;
48
+ database_id: z.ZodNullable<z.ZodString>;
49
+ }, z.core.$loose>, z.ZodObject<{
50
+ type: z.ZodNullable<z.ZodString>;
51
+ database_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ data_source_id: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$loose>, z.ZodObject<{
54
+ type: z.ZodNullable<z.ZodString>;
55
+ page_id: z.ZodNullable<z.ZodString>;
56
+ }, z.core.$loose>, z.ZodObject<{
57
+ type: z.ZodNullable<z.ZodString>;
58
+ workspace: z.ZodNullable<z.ZodBoolean>;
59
+ }, z.core.$loose>, z.ZodObject<{
60
+ type: z.ZodNullable<z.ZodString>;
61
+ block_id: z.ZodNullable<z.ZodString>;
62
+ }, z.core.$loose>]>>>;
63
+ archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
64
+ in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
65
+ created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
+ id: z.ZodNullable<z.ZodString>;
67
+ object: z.ZodNullable<z.ZodString>;
68
+ }, z.core.$loose>>>;
69
+ properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
70
+ public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
+ id: z.ZodNullable<z.ZodString>;
74
+ object: z.ZodNullable<z.ZodString>;
75
+ }, z.core.$loose>>>;
76
+ last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$loose>;
78
+ declare const notionArchiveNotionPage: import("@keystrokehq/action").WorkflowActionDefinition<{
79
+ page_id: string;
80
+ archive?: boolean | undefined;
81
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
82
  //#endregion
8
83
  export { notionArchiveNotionPage };
9
84
  //# sourceMappingURL=archive-notion-page.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-notion-page.d.mts","names":[],"sources":["../../src/actions/archive-notion-page.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cA8DW,6BAAA,EAA+B,CAAA,CAAE,UAe5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"archive-notion-page.d.mts","names":[],"sources":["../../src/actions/archive-notion-page.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAiE5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiB7B,uBAAA,gCAAuB,wBAAA"}
@@ -6,71 +6,71 @@ const NotionArchiveNotionPageInput = z.object({
6
6
  page_id: z.string().describe("The unique identifier (UUID) of the Notion page to be archived or unarchived. Must be a page ID, not a database ID. Note: Workspace-level pages (pages that sit at the root of your workspace with no parent page or database) cannot be archived via the API - only pages nested under other pages or databases can be archived programmatically. Page IDs can be obtained using NOTION_SEARCH_NOTION_PAGE with filter_value='page' or from the 'id' field of page objects returned by other Notion actions.")
7
7
  });
8
8
  const NotionArchiveNotionPage_EmojiIconSchema = z.object({
9
- type: z.string().describe("The constant string 'emoji'."),
10
- emoji: z.string().describe("The emoji character itself.")
11
- });
9
+ type: z.string().describe("The constant string 'emoji'.").nullable(),
10
+ emoji: z.string().describe("The emoji character itself.").nullable()
11
+ }).passthrough();
12
12
  const NotionArchiveNotionPage_CustomEmojiDataSchema = z.object({
13
- id: z.string().describe("Unique identifier for the custom emoji."),
14
- url: z.string().describe("HTTPS URL pointing to the emoji image."),
15
- name: z.string().describe("Display name of the custom emoji.")
16
- });
13
+ id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
14
+ url: z.string().describe("HTTPS URL pointing to the emoji image.").nullable(),
15
+ name: z.string().describe("Display name of the custom emoji.").nullable()
16
+ }).passthrough();
17
17
  const NotionArchiveNotionPage_CustomEmojiIconSchema = z.object({
18
- type: z.string().describe("The constant value 'custom_emoji'."),
18
+ type: z.string().describe("The constant value 'custom_emoji'.").nullable(),
19
19
  custom_emoji: NotionArchiveNotionPage_CustomEmojiDataSchema.nullable()
20
- });
21
- const NotionArchiveNotionPage_ExternalFileSchema = z.object({ url: z.string().describe("Publicly accessible HTTPS link to remote content.") });
20
+ }).passthrough();
21
+ const NotionArchiveNotionPage_ExternalFileSchema = z.object({ url: z.string().describe("Publicly accessible HTTPS link to remote content.").nullable() }).passthrough();
22
22
  const NotionArchiveNotionPage_ExternalIconSchema = z.object({
23
- type: z.string().describe("The constant string 'external'."),
23
+ type: z.string().describe("The constant string 'external'.").nullable(),
24
24
  external: NotionArchiveNotionPage_ExternalFileSchema.nullable()
25
- });
25
+ }).passthrough();
26
26
  const NotionArchiveNotionPage_NotionHostedFileSchema = z.object({
27
- url: z.string().describe("An authenticated HTTP GET URL to the file. The URL is valid for one hour."),
28
- expiry_time: z.string().describe("Timestamp in ISO 8601 format indicating when access expires.")
29
- });
27
+ url: z.string().describe("An authenticated HTTP GET URL to the file. The URL is valid for one hour.").nullable(),
28
+ expiry_time: z.string().describe("Timestamp in ISO 8601 format indicating when access expires.").nullable()
29
+ }).passthrough();
30
30
  const NotionArchiveNotionPage_FileIconSchema = z.object({
31
31
  file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),
32
- type: z.string().describe("The constant string 'file'.")
33
- });
32
+ type: z.string().describe("The constant string 'file'.").nullable()
33
+ }).passthrough();
34
34
  const NotionArchiveNotionPage_ExternalCoverSchema = z.object({
35
- type: z.string().describe("The constant string 'external'."),
35
+ type: z.string().describe("The constant string 'external'.").nullable(),
36
36
  external: NotionArchiveNotionPage_ExternalFileSchema.nullable()
37
- });
37
+ }).passthrough();
38
38
  const NotionArchiveNotionPage_FileCoverSchema = z.object({
39
39
  file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),
40
- type: z.string().describe("The constant string 'file'.")
41
- });
40
+ type: z.string().describe("The constant string 'file'.").nullable()
41
+ }).passthrough();
42
42
  const NotionArchiveNotionPage_DatabaseParentSchema = z.object({
43
- type: z.string().describe("The constant string 'database_id'."),
44
- database_id: z.string().describe("UUIDv4 string identifying the parent database.")
45
- });
43
+ type: z.string().describe("The constant string 'database_id'.").nullable(),
44
+ database_id: z.string().describe("UUIDv4 string identifying the parent database.").nullable()
45
+ }).passthrough();
46
46
  const NotionArchiveNotionPage_DataSourceParentSchema = z.object({
47
- type: z.string().describe("The constant string 'data_source_id'."),
47
+ type: z.string().describe("The constant string 'data_source_id'.").nullable(),
48
48
  database_id: z.string().describe("UUIDv4 string for the grandparent database (convenience field).").nullable().optional(),
49
- data_source_id: z.string().describe("UUIDv4 string identifying the parent data source.")
50
- });
49
+ data_source_id: z.string().describe("UUIDv4 string identifying the parent data source.").nullable()
50
+ }).passthrough();
51
51
  const NotionArchiveNotionPage_PageParentSchema = z.object({
52
- type: z.string().describe("The constant string 'page_id'."),
53
- page_id: z.string().describe("UUIDv4 string identifying the parent page.")
54
- });
52
+ type: z.string().describe("The constant string 'page_id'.").nullable(),
53
+ page_id: z.string().describe("UUIDv4 string identifying the parent page.").nullable()
54
+ }).passthrough();
55
55
  const NotionArchiveNotionPage_WorkspaceParentSchema = z.object({
56
- type: z.string().describe("The constant string 'workspace'."),
57
- workspace: z.boolean().describe("Always true, indicating the page is at workspace level.")
58
- });
56
+ type: z.string().describe("The constant string 'workspace'.").nullable(),
57
+ workspace: z.boolean().describe("Always true, indicating the page is at workspace level.").nullable()
58
+ }).passthrough();
59
59
  const NotionArchiveNotionPage_BlockParentSchema = z.object({
60
- type: z.string().describe("The constant string 'block_id'."),
61
- block_id: z.string().describe("UUIDv4 string identifying the parent block.")
62
- });
60
+ type: z.string().describe("The constant string 'block_id'.").nullable(),
61
+ block_id: z.string().describe("UUIDv4 string identifying the parent block.").nullable()
62
+ }).passthrough();
63
63
  const NotionArchiveNotionPage_UserPartialSchema = z.object({
64
- id: z.string().describe("UUID string identifying the user uniquely."),
65
- object: z.string().describe("Always \"user\".")
66
- });
64
+ id: z.string().describe("UUID string identifying the user uniquely.").nullable(),
65
+ object: z.string().describe("Always \"user\".").nullable()
66
+ }).passthrough();
67
67
  const notionArchiveNotionPage = action("NOTION_ARCHIVE_NOTION_PAGE", {
68
68
  slug: "notion-archive-notion-page",
69
69
  name: "Archive Notion Page",
70
70
  description: "Archives (moves to trash) or unarchives (restores from trash) a specified Notion page. Limitation: Workspace-level pages (top-level pages with no parent page or database) cannot be archived via the API and must be archived manually in the Notion UI.",
71
71
  input: NotionArchiveNotionPageInput,
72
72
  output: z.object({
73
- id: z.string().describe("Unique page identifier in UUIDv4 format."),
73
+ id: z.string().describe("Unique page identifier in UUIDv4 format.").nullable(),
74
74
  url: z.string().describe("Standard Notion page URL.").nullable().optional(),
75
75
  icon: z.union([
76
76
  NotionArchiveNotionPage_EmojiIconSchema,
@@ -79,7 +79,7 @@ const notionArchiveNotionPage = action("NOTION_ARCHIVE_NOTION_PAGE", {
79
79
  NotionArchiveNotionPage_FileIconSchema
80
80
  ]).nullable().optional(),
81
81
  cover: z.union([NotionArchiveNotionPage_ExternalCoverSchema, NotionArchiveNotionPage_FileCoverSchema]).nullable().optional(),
82
- object: z.string().describe("Always the literal value 'page'."),
82
+ object: z.string().describe("Always the literal value 'page'.").nullable(),
83
83
  parent: z.union([
84
84
  NotionArchiveNotionPage_DatabaseParentSchema,
85
85
  NotionArchiveNotionPage_DataSourceParentSchema,
@@ -90,12 +90,12 @@ const notionArchiveNotionPage = action("NOTION_ARCHIVE_NOTION_PAGE", {
90
90
  archived: z.boolean().describe("Indicates whether the page is archived. Set to true when the page is archived.").nullable().optional(),
91
91
  in_trash: z.boolean().describe("Indicates whether the page is in trash. Set to true when the page is archived.").nullable().optional(),
92
92
  created_by: NotionArchiveNotionPage_UserPartialSchema.nullable().optional(),
93
- properties: z.object({}).describe("Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.").nullable().optional(),
93
+ 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.").nullable().optional(),
94
94
  public_url: z.string().describe("Public web URL if the page is published; otherwise null.").nullable().optional(),
95
95
  created_time: z.string().describe("Creation timestamp in ISO 8601 format.").nullable().optional(),
96
96
  last_edited_by: NotionArchiveNotionPage_UserPartialSchema.nullable().optional(),
97
97
  last_edited_time: z.string().describe("Most recent modification timestamp in ISO 8601 format.").nullable().optional()
98
- })
98
+ }).passthrough()
99
99
  });
100
100
  //#endregion
101
101
  export { notionArchiveNotionPage };
@@ -1 +1 @@
1
- {"version":3,"file":"archive-notion-page.mjs","names":[],"sources":["../../src/actions/archive-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionArchiveNotionPageInput: z.ZodTypeAny = z.object({\n archive: z.boolean().default(true).describe(\"Set to `true` to move the page to trash (archive), or `false` to restore it from trash (unarchive). Defaults to `true`.\").optional(),\n page_id: z.string().describe(\"The unique identifier (UUID) of the Notion page to be archived or unarchived. Must be a page ID, not a database ID. Note: Workspace-level pages (pages that sit at the root of your workspace with no parent page or database) cannot be archived via the API - only pages nested under other pages or databases can be archived programmatically. Page IDs can be obtained using NOTION_SEARCH_NOTION_PAGE with filter_value='page' or from the 'id' field of page objects returned by other Notion actions.\"),\n});\nconst NotionArchiveNotionPage_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'emoji'.\"),\n emoji: z.string().describe(\"The emoji character itself.\"),\n});\nconst NotionArchiveNotionPage_CustomEmojiDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL pointing to the emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n});\nconst NotionArchiveNotionPage_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant value 'custom_emoji'.\"),\n custom_emoji: NotionArchiveNotionPage_CustomEmojiDataSchema.nullable(),\n});\nconst NotionArchiveNotionPage_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible HTTPS link to remote content.\"),\n});\nconst NotionArchiveNotionPage_ExternalIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'external'.\"),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n});\nconst NotionArchiveNotionPage_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"An authenticated HTTP GET URL to the file. The URL is valid for one hour.\"),\n expiry_time: z.string().describe(\"Timestamp in ISO 8601 format indicating when access expires.\"),\n});\nconst NotionArchiveNotionPage_FileIconSchema: z.ZodTypeAny = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\"),\n});\nconst NotionArchiveNotionPage_ExternalCoverSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'external'.\"),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n});\nconst NotionArchiveNotionPage_FileCoverSchema: z.ZodTypeAny = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\"),\n});\nconst NotionArchiveNotionPage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'database_id'.\"),\n database_id: z.string().describe(\"UUIDv4 string identifying the parent database.\"),\n});\nconst NotionArchiveNotionPage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'data_source_id'.\"),\n database_id: z.string().describe(\"UUIDv4 string for the grandparent database (convenience field).\").nullable().optional(),\n data_source_id: z.string().describe(\"UUIDv4 string identifying the parent data source.\"),\n});\nconst NotionArchiveNotionPage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'page_id'.\"),\n page_id: z.string().describe(\"UUIDv4 string identifying the parent page.\"),\n});\nconst NotionArchiveNotionPage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'workspace'.\"),\n workspace: z.boolean().describe(\"Always true, indicating the page is at workspace level.\"),\n});\nconst NotionArchiveNotionPage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The constant string 'block_id'.\"),\n block_id: z.string().describe(\"UUIDv4 string identifying the parent block.\"),\n});\nconst NotionArchiveNotionPage_UserPartialSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID string identifying the user uniquely.\"),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n});\nexport const NotionArchiveNotionPageOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique page identifier in UUIDv4 format.\"),\n url: z.string().describe(\"Standard Notion page URL.\").nullable().optional(),\n icon: z.union([NotionArchiveNotionPage_EmojiIconSchema, NotionArchiveNotionPage_CustomEmojiIconSchema, NotionArchiveNotionPage_ExternalIconSchema, NotionArchiveNotionPage_FileIconSchema]).nullable().optional(),\n cover: z.union([NotionArchiveNotionPage_ExternalCoverSchema, NotionArchiveNotionPage_FileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always the literal value 'page'.\"),\n parent: z.union([NotionArchiveNotionPage_DatabaseParentSchema, NotionArchiveNotionPage_DataSourceParentSchema, NotionArchiveNotionPage_PageParentSchema, NotionArchiveNotionPage_WorkspaceParentSchema, NotionArchiveNotionPage_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Indicates whether the page is archived. Set to true when the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Indicates whether the page is in trash. Set to true when the page is archived.\").nullable().optional(),\n created_by: NotionArchiveNotionPage_UserPartialSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\").nullable().optional(),\n public_url: z.string().describe(\"Public web URL if the page is published; otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionArchiveNotionPage_UserPartialSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Most recent modification timestamp in ISO 8601 format.\").nullable().optional(),\n});\n\nexport const notionArchiveNotionPage = action(\"NOTION_ARCHIVE_NOTION_PAGE\", {\n slug: \"notion-archive-notion-page\",\n name: \"Archive Notion Page\",\n description: \"Archives (moves to trash) or unarchives (restores from trash) a specified Notion page. Limitation: Workspace-level pages (top-level pages with no parent page or database) cannot be archived via the API and must be archived manually in the Notion UI.\",\n input: NotionArchiveNotionPageInput,\n output: NotionArchiveNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,SAAS,EAAE,QAAQ,CA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AAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,MAAM;GAAC;GAAyC;GAA+C;GAA4C;EAAsC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChN,OAAO,EAAE,MAAM,CAAC,6CAA6C,uCAAuC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC9D,QAAQ,EAAE,MAAM;GAAC;GAA8C;GAAgD;GAA0C;GAA+C;EAAyC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxQ,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC9E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"archive-notion-page.mjs","names":[],"sources":["../../src/actions/archive-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionArchiveNotionPageInput = z.object({\n archive: z.boolean().default(true).describe(\"Set to `true` to move the page to trash (archive), or `false` to restore it from trash (unarchive). Defaults to `true`.\").optional(),\n page_id: z.string().describe(\"The unique identifier (UUID) of the Notion page to be archived or unarchived. Must be a page ID, not a database ID. Note: Workspace-level pages (pages that sit at the root of your workspace with no parent page or database) cannot be archived via the API - only pages nested under other pages or databases can be archived programmatically. Page IDs can be obtained using NOTION_SEARCH_NOTION_PAGE with filter_value='page' or from the 'id' field of page objects returned by other Notion actions.\"),\n});\nconst NotionArchiveNotionPage_EmojiIconSchema = z.object({\n type: z.string().describe(\"The constant string 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character itself.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_CustomEmojiDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL pointing to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"The constant value 'custom_emoji'.\").nullable(),\n custom_emoji: NotionArchiveNotionPage_CustomEmojiDataSchema.nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"Publicly accessible HTTPS link to remote content.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_ExternalIconSchema = z.object({\n type: z.string().describe(\"The constant string 'external'.\").nullable(),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"An authenticated HTTP GET URL to the file. The URL is valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Timestamp in ISO 8601 format indicating when access expires.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_FileIconSchema = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_ExternalCoverSchema = z.object({\n type: z.string().describe(\"The constant string 'external'.\").nullable(),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_FileCoverSchema = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"The constant string 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 string identifying the parent database.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"The constant string 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 string for the grandparent database (convenience field).\").nullable().optional(),\n data_source_id: z.string().describe(\"UUIDv4 string identifying the parent data source.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_PageParentSchema = z.object({\n type: z.string().describe(\"The constant string 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUIDv4 string identifying the parent page.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"The constant string 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true, indicating the page is at workspace level.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_BlockParentSchema = z.object({\n type: z.string().describe(\"The constant string 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUIDv4 string identifying the parent block.\").nullable(),\n}).passthrough();\nconst NotionArchiveNotionPage_UserPartialSchema = z.object({\n id: z.string().describe(\"UUID string identifying the user uniquely.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough();\nexport const NotionArchiveNotionPageOutput = z.object({\n id: z.string().describe(\"Unique page identifier in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"Standard Notion page URL.\").nullable().optional(),\n icon: z.union([NotionArchiveNotionPage_EmojiIconSchema, NotionArchiveNotionPage_CustomEmojiIconSchema, NotionArchiveNotionPage_ExternalIconSchema, NotionArchiveNotionPage_FileIconSchema]).nullable().optional(),\n cover: z.union([NotionArchiveNotionPage_ExternalCoverSchema, NotionArchiveNotionPage_FileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always the literal value 'page'.\").nullable(),\n parent: z.union([NotionArchiveNotionPage_DatabaseParentSchema, NotionArchiveNotionPage_DataSourceParentSchema, NotionArchiveNotionPage_PageParentSchema, NotionArchiveNotionPage_WorkspaceParentSchema, NotionArchiveNotionPage_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Indicates whether the page is archived. Set to true when the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Indicates whether the page is in trash. Set to true when the page is archived.\").nullable().optional(),\n created_by: NotionArchiveNotionPage_UserPartialSchema.nullable().optional(),\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.\").nullable().optional(),\n public_url: z.string().describe(\"Public web URL if the page is published; otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionArchiveNotionPage_UserPartialSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Most recent modification timestamp in ISO 8601 format.\").nullable().optional(),\n}).passthrough();\n\nexport const notionArchiveNotionPage = action(\"NOTION_ARCHIVE_NOTION_PAGE\", {\n slug: \"notion-archive-notion-page\",\n name: \"Archive Notion Page\",\n description: \"Archives (moves to trash) or unarchives (restores from trash) a specified Notion page. Limitation: Workspace-level pages (top-level pages with no parent page or database) cannot be archived via the API and must be archived manually in the Notion UI.\",\n input: NotionArchiveNotionPageInput,\n output: NotionArchiveNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yHAAyH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,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7M,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC9E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateCommentInput: z.ZodTypeAny = 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.ZodTypeAny = 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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SAAS,qMAAqM,CAAC,CAAC,SAAS;CACnP,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;AAC/T,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,QAAQ;AAEjE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-comment.cjs","names":["z","action"],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateCommentInput = z.object({\n comment: z.object({\n bold: z.boolean().default(false).describe(\"Indicates if the text is bold.\").optional(),\n code: z.boolean().default(false).describe(\"Indicates if the text is formatted as code.\").optional(),\n link: z.string().describe(\"URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.\").optional(),\n color: z.string().default(\"default\").describe(\"The color of the text background or text itself.\").optional(),\n italic: z.boolean().default(false).describe(\"Indicates if the text is italic.\").optional(),\n content: z.string().describe(\"The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.\").optional(),\n underline: z.boolean().default(false).describe(\"Indicates if the text is underlined.\").optional(),\n strikethrough: z.boolean().default(false).describe(\"Indicates if the text has strikethrough.\").optional(),\n block_property: z.enum([\"paragraph\", \"heading_1\", \"heading_2\", \"heading_3\", \"callout\", \"to_do\", \"toggle\", \"quote\", \"bulleted_list_item\", \"numbered_list_item\", \"file\", \"image\", \"video\", \"divider\"]).default(\"paragraph\").describe(\"The block property of the block to be added. **Common text blocks:** `paragraph`, `heading_1`, `heading_2`, `heading_3`, `callout`, `to_do`, `toggle`, `quote`, `bulleted_list_item`, `numbered_list_item`. **Special blocks:** `divider` (creates a horizontal divider line, no content required). **Media/embed blocks:** `file`, `image`, `video` (requires `link` field with external URL - direct file uploads not supported). \\n\\n**NOTE:** Notion API only supports heading levels 1-3. heading_4, heading_5, etc. are automatically converted to heading_3.\").optional(),\n}).describe(\"Content of the comment as a NotionRichText object or a JSON string. Simplest form: {'content': 'Looks good!'} or {'text': 'Looks good!'} (both 'content' and 'text' are accepted as the field name). Can also be passed as a JSON string: '{\\\"content\\\": \\\"Looks good!\\\"}'. Optional styling fields: bold, italic, etc. The 'link' field is for external URLs only (e.g., 'https://example.com'), NOT for page IDs. Do NOT wrap this in a list or use Notion API block JSON.\"),\n discussion_id: z.string().describe(\"The ID of an existing discussion thread to which the comment will be added. This is required if `parent_page_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens).\").optional(),\n parent_page_id: z.string().describe(\"The ID of the Notion page where the comment will be added. This is required if `discussion_id` is not provided. Must be a valid UUID (32 hex characters with or without hyphens). Page IDs can be obtained using other Notion actions that fetch page details or list pages.\").optional(),\n});\nexport const NotionCreateCommentOutput = z.unknown();\n\nexport const notionCreateComment = action(\"NOTION_CREATE_COMMENT\", {\n slug: \"notion-create-comment\",\n name: \"Create comment\",\n description: \"Adds a comment to a Notion page (via `parent_page_id`) OR to an existing discussion thread (via `discussion_id`); cannot create new discussion threads on specific blocks (inline comments).\",\n input: NotionCreateCommentInput,\n output: NotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,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reateCommentInput: z.ZodTypeAny;
5
- declare const NotionCreateCommentOutput: z.ZodTypeAny;
6
- declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionCreateCommentInput: z.ZodObject<{
5
+ comment: z.ZodObject<{
6
+ bold: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ code: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ link: z.ZodOptional<z.ZodString>;
9
+ color: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ italic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ content: z.ZodOptional<z.ZodString>;
12
+ underline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
+ file: "file";
16
+ paragraph: "paragraph";
17
+ heading_1: "heading_1";
18
+ heading_2: "heading_2";
19
+ heading_3: "heading_3";
20
+ bulleted_list_item: "bulleted_list_item";
21
+ 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
+ }>>>;
30
+ }, z.core.$strip>;
31
+ discussion_id: z.ZodOptional<z.ZodString>;
32
+ parent_page_id: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ declare const NotionCreateCommentOutput: z.ZodUnknown;
35
+ declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ comment: {
37
+ bold?: boolean | undefined;
38
+ code?: boolean | undefined;
39
+ link?: string | undefined;
40
+ color?: string | undefined;
41
+ italic?: boolean | undefined;
42
+ content?: string | undefined;
43
+ underline?: boolean | undefined;
44
+ strikethrough?: boolean | undefined;
45
+ block_property?: "file" | "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]>;
7
50
  //#endregion
8
51
  export { notionCreateComment };
9
52
  //# sourceMappingURL=create-comment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAcvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAAwB;AAAA,cAErD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-comment.d.cts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,UAAc;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-comment.d.ts
4
- declare const NotionCreateCommentInput: z.ZodTypeAny;
5
- declare const NotionCreateCommentOutput: z.ZodTypeAny;
6
- declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionCreateCommentInput: z.ZodObject<{
5
+ comment: z.ZodObject<{
6
+ bold: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ code: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ link: z.ZodOptional<z.ZodString>;
9
+ color: z.ZodOptional<z.ZodDefault<z.ZodString>>;
10
+ italic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ content: z.ZodOptional<z.ZodString>;
12
+ underline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ strikethrough: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ block_property: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
15
+ file: "file";
16
+ paragraph: "paragraph";
17
+ heading_1: "heading_1";
18
+ heading_2: "heading_2";
19
+ heading_3: "heading_3";
20
+ bulleted_list_item: "bulleted_list_item";
21
+ 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
+ }>>>;
30
+ }, z.core.$strip>;
31
+ discussion_id: z.ZodOptional<z.ZodString>;
32
+ parent_page_id: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ declare const NotionCreateCommentOutput: z.ZodUnknown;
35
+ declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ comment: {
37
+ bold?: boolean | undefined;
38
+ code?: boolean | undefined;
39
+ link?: string | undefined;
40
+ color?: string | undefined;
41
+ italic?: boolean | undefined;
42
+ content?: string | undefined;
43
+ underline?: boolean | undefined;
44
+ strikethrough?: boolean | undefined;
45
+ block_property?: "file" | "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]>;
7
50
  //#endregion
8
51
  export { notionCreateComment };
9
52
  //# 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,EAA0B,CAAA,CAAE,UAcvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAAwB;AAAA,cAErD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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 +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.ZodTypeAny = 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.ZodTypeAny = 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;CAC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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"}
@@ -32,86 +32,86 @@ const NotionCreateDatabaseInput = zod.z.object({
32
32
  ]).describe("The type of the property, which determines the kind of data it will store. Valid types are defined by the PropertyType enum."),
33
33
  database_id: zod.z.string().describe("UUID of the database to relate to. Required when type is 'relation'. Must be a valid UUID format (32 hex characters, with or without hyphens). Placeholder values like 'PLACEHOLDER_PROJECT' are not allowed.").optional(),
34
34
  relation_type: zod.z.string().default("single_property").describe("Relationship type, either 'single_property' or 'dual_property'.").optional()
35
- })).describe("Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.").optional()
35
+ }).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()
36
36
  });
37
37
  const NotionCreateDatabase__NotionFileSchema = zod.z.object({
38
- url: zod.z.string().describe("Authenticated URL to the file (valid for one hour)."),
39
- expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
40
- }).describe("Notion-hosted file.");
41
- const NotionCreateDatabase__ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the externally hosted file.") }).describe("External file URL.");
38
+ url: zod.z.string().describe("Authenticated URL to the file (valid for one hour).").nullable(),
39
+ expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
40
+ }).passthrough().describe("Notion-hosted file.");
41
+ const NotionCreateDatabase__ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL of the externally hosted file.").nullable() }).passthrough().describe("External file URL.");
42
42
  const NotionCreateDatabase__CustomEmojiSchema = zod.z.object({
43
- id: zod.z.string().describe("Unique identifier for the custom emoji."),
44
- url: zod.z.string().describe("HTTPS URL to the custom emoji image."),
45
- name: zod.z.string().describe("Display name of the custom emoji.")
46
- }).describe("Custom emoji details.");
43
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
44
+ url: zod.z.string().describe("HTTPS URL to the custom emoji image.").nullable(),
45
+ name: zod.z.string().describe("Display name of the custom emoji.").nullable()
46
+ }).passthrough().describe("Custom emoji details.");
47
47
  const NotionCreateDatabase__IconSchema = zod.z.object({
48
48
  file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),
49
- type: zod.z.string().describe("Icon type: 'emoji', 'custom_emoji', 'external', or 'file'."),
49
+ type: zod.z.string().describe("Icon type: 'emoji', 'custom_emoji', 'external', or 'file'.").nullable(),
50
50
  emoji: zod.z.string().describe("Emoji character (present when type is 'emoji').").nullable().optional(),
51
51
  external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),
52
52
  custom_emoji: NotionCreateDatabase__CustomEmojiSchema.nullable().optional()
53
- }).describe("Database icon (emoji or file object).");
53
+ }).passthrough().describe("Database icon (emoji or file object).");
54
54
  const NotionCreateDatabase__CoverSchema = zod.z.object({
55
55
  file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),
56
- type: zod.z.string().describe("Cover type: 'external' or 'file'."),
56
+ type: zod.z.string().describe("Cover type: 'external' or 'file'.").nullable(),
57
57
  external: NotionCreateDatabase__ExternalFileSchema.nullable().optional()
58
- }).describe("Database cover image (file object).");
59
- const NotionCreateDatabase__LinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.") }).describe("Link object for rich text.");
58
+ }).passthrough().describe("Database cover image (file object).");
59
+ const NotionCreateDatabase__LinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.").nullable() }).passthrough().describe("Link object for rich text.");
60
60
  const NotionCreateDatabase__TextContentSchema = zod.z.object({
61
61
  link: NotionCreateDatabase__LinkSchema.nullable().optional(),
62
- content: zod.z.string().describe("The text content.")
63
- }).describe("Text content object for rich text.");
62
+ content: zod.z.string().describe("The text content.").nullable()
63
+ }).passthrough().describe("Text content object for rich text.");
64
64
  const NotionCreateDatabase__AnnotationsSchema = zod.z.object({
65
- bold: zod.z.boolean().describe("Whether the text is bold."),
66
- code: zod.z.boolean().describe("Whether the text is formatted as code."),
67
- color: zod.z.string().describe("Color of the text (e.g., 'default', 'blue', 'red', etc.)."),
68
- italic: zod.z.boolean().describe("Whether the text is italic."),
69
- underline: zod.z.boolean().describe("Whether the text is underlined."),
70
- strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
71
- }).describe("Styling information for rich text.");
65
+ bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
66
+ code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
67
+ color: zod.z.string().describe("Color of the text (e.g., 'default', 'blue', 'red', etc.).").nullable(),
68
+ italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
69
+ underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
70
+ strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
71
+ }).passthrough().describe("Styling information for rich text.");
72
72
  const NotionCreateDatabase__RichTextSchema = zod.z.object({
73
73
  href: zod.z.string().describe("URL for links or null if no link.").nullable().optional(),
74
74
  text: NotionCreateDatabase__TextContentSchema.nullable().optional(),
75
- type: zod.z.string().describe("Type of rich text object: 'text', 'mention', or 'equation'."),
76
- plain_text: zod.z.string().describe("Plain text representation without formatting."),
75
+ type: zod.z.string().describe("Type of rich text object: 'text', 'mention', or 'equation'.").nullable(),
76
+ plain_text: zod.z.string().describe("Plain text representation without formatting.").nullable(),
77
77
  annotations: NotionCreateDatabase__AnnotationsSchema.nullable()
78
- }).describe("Rich text object representing formatted text.");
78
+ }).passthrough().describe("Rich text object representing formatted text.");
79
79
  const NotionCreateDatabase__ParentSchema = zod.z.object({
80
- type: zod.z.string().describe("Parent type: 'page_id', 'workspace', or 'block_id'."),
80
+ type: zod.z.string().describe("Parent type: 'page_id', 'workspace', or 'block_id'.").nullable(),
81
81
  page_id: zod.z.string().describe("UUID of the parent page (present when type is 'page_id').").nullable().optional(),
82
82
  block_id: zod.z.string().describe("UUID of the parent block (present when type is 'block_id').").nullable().optional(),
83
83
  workspace: zod.z.boolean().describe("Always true when type is 'workspace'.").nullable().optional()
84
- }).describe("Parent location of the database (page, workspace, or block).");
84
+ }).passthrough().describe("Parent location of the database (page, workspace, or block).");
85
85
  const NotionCreateDatabase__PartialUserSchema = zod.z.object({
86
- id: zod.z.string().describe("Unique identifier for the user (UUID format)."),
87
- object: zod.z.string().describe("Always \"user\".")
88
- }).describe("Partial Notion user object for created_by/last_edited_by contexts.");
86
+ id: zod.z.string().describe("Unique identifier for the user (UUID format).").nullable(),
87
+ object: zod.z.string().describe("Always \"user\".").nullable()
88
+ }).passthrough().describe("Partial Notion user object for created_by/last_edited_by contexts.");
89
89
  const NotionCreateDatabase__DataSourceRefSchema = zod.z.object({
90
- id: zod.z.string().describe("Unique identifier for the data source (UUID format)."),
91
- name: zod.z.string().describe("Name of the data source.")
92
- }).describe("Minimal data source object embedded in Database responses.");
90
+ id: zod.z.string().describe("Unique identifier for the data source (UUID format).").nullable(),
91
+ name: zod.z.string().describe("Name of the data source.").nullable()
92
+ }).passthrough().describe("Minimal data source object embedded in Database responses.");
93
93
  const NotionCreateDatabaseOutput = zod.z.object({
94
- id: zod.z.string().describe("Unique identifier for the database (UUID format)."),
95
- url: zod.z.string().describe("The URL of the database in Notion."),
94
+ id: zod.z.string().describe("Unique identifier for the database (UUID format).").nullable(),
95
+ url: zod.z.string().describe("The URL of the database in Notion.").nullable(),
96
96
  icon: NotionCreateDatabase__IconSchema.nullable().optional(),
97
97
  cover: NotionCreateDatabase__CoverSchema.nullable().optional(),
98
98
  title: zod.z.array(NotionCreateDatabase__RichTextSchema).describe("Array of rich text objects representing the database title/name as it appears in Notion."),
99
- object: zod.z.string().describe("Always \"database\"."),
99
+ object: zod.z.string().describe("Always \"database\".").nullable(),
100
100
  parent: NotionCreateDatabase__ParentSchema.nullable(),
101
- archived: zod.z.boolean().describe("Whether the database is archived."),
102
- in_trash: zod.z.boolean().describe("Whether the database is in the trash."),
103
- is_inline: zod.z.boolean().describe("Whether the database appears inline on the page (true) or as a full page database (false)."),
101
+ archived: zod.z.boolean().describe("Whether the database is archived.").nullable(),
102
+ in_trash: zod.z.boolean().describe("Whether the database is in the trash.").nullable(),
103
+ is_inline: zod.z.boolean().describe("Whether the database appears inline on the page (true) or as a full page database (false).").nullable(),
104
104
  created_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),
105
- properties: zod.z.object({}).describe("Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings."),
105
+ properties: zod.z.record(zod.z.string(), zod.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."),
106
106
  public_url: zod.z.string().describe("Public web URL if the database is published to the web, otherwise null.").nullable().optional(),
107
107
  request_id: zod.z.string().describe("Unique identifier for the API request (used for debugging and support).").nullable().optional(),
108
108
  description: zod.z.array(NotionCreateDatabase__RichTextSchema).describe("Array of rich text objects representing the database description.").nullable().optional(),
109
- created_time: zod.z.string().describe("ISO 8601 timestamp when the database was created."),
109
+ created_time: zod.z.string().describe("ISO 8601 timestamp when the database was created.").nullable(),
110
110
  data_sources: zod.z.array(NotionCreateDatabase__DataSourceRefSchema).describe("List of child data sources in the database (available in API version 2025-09-03+). Each database has one or more data sources.").nullable().optional(),
111
111
  last_edited_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),
112
112
  developer_survey: zod.z.string().describe("URL to a feedback survey (may appear in API responses).").nullable().optional(),
113
- last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the database was last edited.")
114
- }).describe("Response body returned by POST /v1/databases. Matches Notion Database object.");
113
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
114
+ }).passthrough().describe("Response body returned by POST /v1/databases. Matches Notion Database object.");
115
115
  const notionCreateDatabase = require_action.action("NOTION_CREATE_DATABASE", {
116
116
  slug: "notion-create-database",
117
117
  name: "Create Notion Database",