@keystrokehq/notion 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +8 -8
  5. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.cts +88 -3
  7. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.d.mts +88 -3
  9. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  10. package/dist/actions/add-multiple-page-content.mjs +8 -8
  11. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  12. package/dist/actions/append-code-blocks.cjs +44 -44
  13. package/dist/actions/append-code-blocks.cjs.map +1 -1
  14. package/dist/actions/append-code-blocks.d.cts +849 -3
  15. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  16. package/dist/actions/append-code-blocks.d.mts +849 -3
  17. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  18. package/dist/actions/append-code-blocks.mjs +44 -44
  19. package/dist/actions/append-code-blocks.mjs.map +1 -1
  20. package/dist/actions/append-layout-blocks.cjs +44 -44
  21. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  22. package/dist/actions/append-layout-blocks.d.cts +642 -3
  23. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  24. package/dist/actions/append-layout-blocks.d.mts +642 -3
  25. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  26. package/dist/actions/append-layout-blocks.mjs +44 -44
  27. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  28. package/dist/actions/append-media-blocks.cjs +44 -44
  29. package/dist/actions/append-media-blocks.cjs.map +1 -1
  30. package/dist/actions/append-media-blocks.d.cts +996 -3
  31. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  32. package/dist/actions/append-media-blocks.d.mts +996 -3
  33. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  34. package/dist/actions/append-media-blocks.mjs +44 -44
  35. package/dist/actions/append-media-blocks.mjs.map +1 -1
  36. package/dist/actions/append-table-blocks.cjs +44 -44
  37. package/dist/actions/append-table-blocks.cjs.map +1 -1
  38. package/dist/actions/append-table-blocks.d.cts +624 -3
  39. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  40. package/dist/actions/append-table-blocks.d.mts +624 -3
  41. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  42. package/dist/actions/append-table-blocks.mjs +44 -44
  43. package/dist/actions/append-table-blocks.mjs.map +1 -1
  44. package/dist/actions/append-task-blocks.cjs +44 -44
  45. package/dist/actions/append-task-blocks.cjs.map +1 -1
  46. package/dist/actions/append-task-blocks.d.cts +826 -3
  47. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  48. package/dist/actions/append-task-blocks.d.mts +826 -3
  49. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  50. package/dist/actions/append-task-blocks.mjs +44 -44
  51. package/dist/actions/append-task-blocks.mjs.map +1 -1
  52. package/dist/actions/append-text-blocks.cjs +44 -44
  53. package/dist/actions/append-text-blocks.cjs.map +1 -1
  54. package/dist/actions/append-text-blocks.d.cts +1080 -3
  55. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  56. package/dist/actions/append-text-blocks.d.mts +1080 -3
  57. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  58. package/dist/actions/append-text-blocks.mjs +44 -44
  59. package/dist/actions/append-text-blocks.mjs.map +1 -1
  60. package/dist/actions/archive-notion-page.cjs +27 -27
  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 +27 -27
  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 +31 -31
  75. package/dist/actions/create-database.cjs.map +1 -1
  76. package/dist/actions/create-database.d.cts +139 -3
  77. package/dist/actions/create-database.d.cts.map +1 -1
  78. package/dist/actions/create-database.d.mts +139 -3
  79. package/dist/actions/create-database.d.mts.map +1 -1
  80. package/dist/actions/create-database.mjs +31 -31
  81. package/dist/actions/create-database.mjs.map +1 -1
  82. package/dist/actions/create-file-upload.cjs +8 -8
  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 +8 -8
  89. package/dist/actions/create-file-upload.mjs.map +1 -1
  90. package/dist/actions/create-notion-page.cjs +29 -29
  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 +29 -29
  97. package/dist/actions/create-notion-page.mjs.map +1 -1
  98. package/dist/actions/delete-block.cjs +53 -53
  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 +53 -53
  105. package/dist/actions/delete-block.mjs.map +1 -1
  106. package/dist/actions/duplicate-page.cjs +31 -31
  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 +31 -31
  113. package/dist/actions/duplicate-page.mjs.map +1 -1
  114. package/dist/actions/fetch-all-block-contents.cjs +45 -45
  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 +45 -45
  121. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  122. package/dist/actions/fetch-block-contents.cjs +57 -57
  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 +57 -57
  129. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  130. package/dist/actions/fetch-block-metadata.cjs +51 -51
  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 +51 -51
  137. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  138. package/dist/actions/fetch-comments.cjs +37 -37
  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 +37 -37
  145. package/dist/actions/fetch-comments.mjs.map +1 -1
  146. package/dist/actions/fetch-data.cjs +51 -51
  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 +51 -51
  153. package/dist/actions/fetch-data.mjs.map +1 -1
  154. package/dist/actions/fetch-database.cjs +27 -27
  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 +27 -27
  161. package/dist/actions/fetch-database.mjs.map +1 -1
  162. package/dist/actions/fetch-row.cjs +35 -35
  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 +35 -35
  169. package/dist/actions/fetch-row.mjs.map +1 -1
  170. package/dist/actions/get-about-user.cjs +7 -7
  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 +7 -7
  177. package/dist/actions/get-about-user.mjs.map +1 -1
  178. package/dist/actions/get-page-markdown.cjs +4 -4
  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 +4 -4
  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 +30 -30
  193. package/dist/actions/insert-row-database.cjs.map +1 -1
  194. package/dist/actions/insert-row-database.d.cts +163 -3
  195. package/dist/actions/insert-row-database.d.cts.map +1 -1
  196. package/dist/actions/insert-row-database.d.mts +163 -3
  197. package/dist/actions/insert-row-database.d.mts.map +1 -1
  198. package/dist/actions/insert-row-database.mjs +30 -30
  199. package/dist/actions/insert-row-database.mjs.map +1 -1
  200. package/dist/actions/insert-row-from-nl.cjs +1 -1
  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 +1 -1
  207. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  208. package/dist/actions/list-data-source-templates.cjs +4 -4
  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 +4 -4
  215. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  216. package/dist/actions/list-file-uploads.cjs +7 -7
  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 +7 -7
  223. package/dist/actions/list-file-uploads.mjs.map +1 -1
  224. package/dist/actions/list-users.cjs +6 -6
  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 +6 -6
  231. package/dist/actions/list-users.mjs.map +1 -1
  232. package/dist/actions/move-page.cjs +27 -27
  233. package/dist/actions/move-page.cjs.map +1 -1
  234. package/dist/actions/move-page.d.cts +90 -3
  235. package/dist/actions/move-page.d.cts.map +1 -1
  236. package/dist/actions/move-page.d.mts +90 -3
  237. package/dist/actions/move-page.d.mts.map +1 -1
  238. package/dist/actions/move-page.mjs +27 -27
  239. package/dist/actions/move-page.mjs.map +1 -1
  240. package/dist/actions/query-data-source.cjs +18 -18
  241. package/dist/actions/query-data-source.cjs.map +1 -1
  242. package/dist/actions/query-data-source.d.cts +159 -3
  243. package/dist/actions/query-data-source.d.cts.map +1 -1
  244. package/dist/actions/query-data-source.d.mts +159 -3
  245. package/dist/actions/query-data-source.d.mts.map +1 -1
  246. package/dist/actions/query-data-source.mjs +18 -18
  247. package/dist/actions/query-data-source.mjs.map +1 -1
  248. package/dist/actions/query-database-with-filter.cjs +49 -49
  249. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  250. package/dist/actions/query-database-with-filter.d.cts +214 -3
  251. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  252. package/dist/actions/query-database-with-filter.d.mts +214 -3
  253. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  254. package/dist/actions/query-database-with-filter.mjs +49 -49
  255. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  256. package/dist/actions/query-database.cjs +38 -38
  257. package/dist/actions/query-database.cjs.map +1 -1
  258. package/dist/actions/query-database.d.cts +208 -3
  259. package/dist/actions/query-database.d.cts.map +1 -1
  260. package/dist/actions/query-database.d.mts +208 -3
  261. package/dist/actions/query-database.d.mts.map +1 -1
  262. package/dist/actions/query-database.mjs +38 -38
  263. package/dist/actions/query-database.mjs.map +1 -1
  264. package/dist/actions/replace-page-content.cjs +3 -3
  265. package/dist/actions/replace-page-content.cjs.map +1 -1
  266. package/dist/actions/replace-page-content.d.cts +1706 -3
  267. package/dist/actions/replace-page-content.d.cts.map +1 -1
  268. package/dist/actions/replace-page-content.d.mts +1706 -3
  269. package/dist/actions/replace-page-content.d.mts.map +1 -1
  270. package/dist/actions/replace-page-content.mjs +3 -3
  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 +19 -19
  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 +19 -19
  285. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  286. package/dist/actions/retrieve-file-upload.cjs +5 -5
  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 +5 -5
  293. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  294. package/dist/actions/retrieve-page.cjs +34 -34
  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 +34 -34
  301. package/dist/actions/retrieve-page.mjs.map +1 -1
  302. package/dist/actions/search-notion-page.cjs +54 -54
  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 +54 -54
  309. package/dist/actions/search-notion-page.mjs.map +1 -1
  310. package/dist/actions/send-file-upload.cjs +7 -7
  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 +7 -7
  317. package/dist/actions/send-file-upload.mjs.map +1 -1
  318. package/dist/actions/update-block.cjs +55 -55
  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 +55 -55
  325. package/dist/actions/update-block.mjs.map +1 -1
  326. package/dist/actions/update-page.cjs +32 -32
  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 +32 -32
  333. package/dist/actions/update-page.mjs.map +1 -1
  334. package/dist/actions/update-row-database.cjs +31 -31
  335. package/dist/actions/update-row-database.cjs.map +1 -1
  336. package/dist/actions/update-row-database.d.cts +126 -3
  337. package/dist/actions/update-row-database.d.cts.map +1 -1
  338. package/dist/actions/update-row-database.d.mts +126 -3
  339. package/dist/actions/update-row-database.d.mts.map +1 -1
  340. package/dist/actions/update-row-database.mjs +31 -31
  341. package/dist/actions/update-row-database.mjs.map +1 -1
  342. package/dist/actions/update-schema-database.cjs +51 -51
  343. package/dist/actions/update-schema-database.cjs.map +1 -1
  344. package/dist/actions/update-schema-database.d.cts +314 -3
  345. package/dist/actions/update-schema-database.d.cts.map +1 -1
  346. package/dist/actions/update-schema-database.d.mts +314 -3
  347. package/dist/actions/update-schema-database.d.mts.map +1 -1
  348. package/dist/actions/update-schema-database.mjs +51 -51
  349. package/dist/actions/update-schema-database.mjs.map +1 -1
  350. package/dist/actions/upsert-row-database.cjs +4 -4
  351. package/dist/actions/upsert-row-database.cjs.map +1 -1
  352. package/dist/actions/upsert-row-database.d.cts +218 -3
  353. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  354. package/dist/actions/upsert-row-database.d.mts +218 -3
  355. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  356. package/dist/actions/upsert-row-database.mjs +4 -4
  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
@@ -6,66 +6,66 @@ const NotionArchiveNotionPageInput = zod.z.object({
6
6
  page_id: zod.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 = zod.z.object({
9
- type: zod.z.string().describe("The constant string 'emoji'."),
10
- emoji: zod.z.string().describe("The emoji character itself.")
9
+ type: zod.z.string().describe("The constant string 'emoji'.").nullable(),
10
+ emoji: zod.z.string().describe("The emoji character itself.").nullable()
11
11
  });
12
12
  const NotionArchiveNotionPage_CustomEmojiDataSchema = zod.z.object({
13
- id: zod.z.string().describe("Unique identifier for the custom emoji."),
14
- url: zod.z.string().describe("HTTPS URL pointing to the emoji image."),
15
- name: zod.z.string().describe("Display name of the custom emoji.")
13
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
14
+ url: zod.z.string().describe("HTTPS URL pointing to the emoji image.").nullable(),
15
+ name: zod.z.string().describe("Display name of the custom emoji.").nullable()
16
16
  });
17
17
  const NotionArchiveNotionPage_CustomEmojiIconSchema = zod.z.object({
18
- type: zod.z.string().describe("The constant value 'custom_emoji'."),
18
+ type: zod.z.string().describe("The constant value 'custom_emoji'.").nullable(),
19
19
  custom_emoji: NotionArchiveNotionPage_CustomEmojiDataSchema.nullable()
20
20
  });
21
- const NotionArchiveNotionPage_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("Publicly accessible HTTPS link to remote content.") });
21
+ const NotionArchiveNotionPage_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("Publicly accessible HTTPS link to remote content.").nullable() });
22
22
  const NotionArchiveNotionPage_ExternalIconSchema = zod.z.object({
23
- type: zod.z.string().describe("The constant string 'external'."),
23
+ type: zod.z.string().describe("The constant string 'external'.").nullable(),
24
24
  external: NotionArchiveNotionPage_ExternalFileSchema.nullable()
25
25
  });
26
26
  const NotionArchiveNotionPage_NotionHostedFileSchema = zod.z.object({
27
- url: zod.z.string().describe("An authenticated HTTP GET URL to the file. The URL is valid for one hour."),
28
- expiry_time: zod.z.string().describe("Timestamp in ISO 8601 format indicating when access expires.")
27
+ url: zod.z.string().describe("An authenticated HTTP GET URL to the file. The URL is valid for one hour.").nullable(),
28
+ expiry_time: zod.z.string().describe("Timestamp in ISO 8601 format indicating when access expires.").nullable()
29
29
  });
30
30
  const NotionArchiveNotionPage_FileIconSchema = zod.z.object({
31
31
  file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),
32
- type: zod.z.string().describe("The constant string 'file'.")
32
+ type: zod.z.string().describe("The constant string 'file'.").nullable()
33
33
  });
34
34
  const NotionArchiveNotionPage_ExternalCoverSchema = zod.z.object({
35
- type: zod.z.string().describe("The constant string 'external'."),
35
+ type: zod.z.string().describe("The constant string 'external'.").nullable(),
36
36
  external: NotionArchiveNotionPage_ExternalFileSchema.nullable()
37
37
  });
38
38
  const NotionArchiveNotionPage_FileCoverSchema = zod.z.object({
39
39
  file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),
40
- type: zod.z.string().describe("The constant string 'file'.")
40
+ type: zod.z.string().describe("The constant string 'file'.").nullable()
41
41
  });
42
42
  const NotionArchiveNotionPage_DatabaseParentSchema = zod.z.object({
43
- type: zod.z.string().describe("The constant string 'database_id'."),
44
- database_id: zod.z.string().describe("UUIDv4 string identifying the parent database.")
43
+ type: zod.z.string().describe("The constant string 'database_id'.").nullable(),
44
+ database_id: zod.z.string().describe("UUIDv4 string identifying the parent database.").nullable()
45
45
  });
46
46
  const NotionArchiveNotionPage_DataSourceParentSchema = zod.z.object({
47
- type: zod.z.string().describe("The constant string 'data_source_id'."),
47
+ type: zod.z.string().describe("The constant string 'data_source_id'.").nullable(),
48
48
  database_id: zod.z.string().describe("UUIDv4 string for the grandparent database (convenience field).").nullable().optional(),
49
- data_source_id: zod.z.string().describe("UUIDv4 string identifying the parent data source.")
49
+ data_source_id: zod.z.string().describe("UUIDv4 string identifying the parent data source.").nullable()
50
50
  });
51
51
  const NotionArchiveNotionPage_PageParentSchema = zod.z.object({
52
- type: zod.z.string().describe("The constant string 'page_id'."),
53
- page_id: zod.z.string().describe("UUIDv4 string identifying the parent page.")
52
+ type: zod.z.string().describe("The constant string 'page_id'.").nullable(),
53
+ page_id: zod.z.string().describe("UUIDv4 string identifying the parent page.").nullable()
54
54
  });
55
55
  const NotionArchiveNotionPage_WorkspaceParentSchema = zod.z.object({
56
- type: zod.z.string().describe("The constant string 'workspace'."),
57
- workspace: zod.z.boolean().describe("Always true, indicating the page is at workspace level.")
56
+ type: zod.z.string().describe("The constant string 'workspace'.").nullable(),
57
+ workspace: zod.z.boolean().describe("Always true, indicating the page is at workspace level.").nullable()
58
58
  });
59
59
  const NotionArchiveNotionPage_BlockParentSchema = zod.z.object({
60
- type: zod.z.string().describe("The constant string 'block_id'."),
61
- block_id: zod.z.string().describe("UUIDv4 string identifying the parent block.")
60
+ type: zod.z.string().describe("The constant string 'block_id'.").nullable(),
61
+ block_id: zod.z.string().describe("UUIDv4 string identifying the parent block.").nullable()
62
62
  });
63
63
  const NotionArchiveNotionPage_UserPartialSchema = zod.z.object({
64
- id: zod.z.string().describe("UUID string identifying the user uniquely."),
65
- object: zod.z.string().describe("Always \"user\".")
64
+ id: zod.z.string().describe("UUID string identifying the user uniquely.").nullable(),
65
+ object: zod.z.string().describe("Always \"user\".").nullable()
66
66
  });
67
67
  const NotionArchiveNotionPageOutput = zod.z.object({
68
- id: zod.z.string().describe("Unique page identifier in UUIDv4 format."),
68
+ id: zod.z.string().describe("Unique page identifier in UUIDv4 format.").nullable(),
69
69
  url: zod.z.string().describe("Standard Notion page URL.").nullable().optional(),
70
70
  icon: zod.z.union([
71
71
  NotionArchiveNotionPage_EmojiIconSchema,
@@ -74,7 +74,7 @@ const NotionArchiveNotionPageOutput = zod.z.object({
74
74
  NotionArchiveNotionPage_FileIconSchema
75
75
  ]).nullable().optional(),
76
76
  cover: zod.z.union([NotionArchiveNotionPage_ExternalCoverSchema, NotionArchiveNotionPage_FileCoverSchema]).nullable().optional(),
77
- object: zod.z.string().describe("Always the literal value 'page'."),
77
+ object: zod.z.string().describe("Always the literal value 'page'.").nullable(),
78
78
  parent: zod.z.union([
79
79
  NotionArchiveNotionPage_DatabaseParentSchema,
80
80
  NotionArchiveNotionPage_DataSourceParentSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"archive-notion-page.cjs","names":["z","action"],"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,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAChL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+eAA+e;AAC9gB,CAAC;AACD,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC1D,CAAC;AACD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAC/D,CAAC;AACD,MAAM,gDAA8DA,IAAAA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C,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC9D,QAAQA,IAAAA,EAAE,MAAM;EAAC;EAA8C;EAAgD;EAA0C;EAA+C;CAAyC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxQ,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"archive-notion-page.cjs","names":["z","action"],"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});\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});\nconst NotionArchiveNotionPage_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"The constant value 'custom_emoji'.\").nullable(),\n custom_emoji: NotionArchiveNotionPage_CustomEmojiDataSchema.nullable(),\n});\nconst NotionArchiveNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"Publicly accessible HTTPS link to remote content.\").nullable(),\n});\nconst NotionArchiveNotionPage_ExternalIconSchema = z.object({\n type: z.string().describe(\"The constant string 'external'.\").nullable(),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n});\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});\nconst NotionArchiveNotionPage_FileIconSchema = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\").nullable(),\n});\nconst NotionArchiveNotionPage_ExternalCoverSchema = z.object({\n type: z.string().describe(\"The constant string 'external'.\").nullable(),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n});\nconst NotionArchiveNotionPage_FileCoverSchema = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\").nullable(),\n});\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});\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});\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});\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});\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});\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});\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.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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAChL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+eAA+e;AAC9gB,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CA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CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -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.$strip>, 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.$strip>>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ type: z.ZodNullable<z.ZodString>;
23
+ external: z.ZodNullable<z.ZodObject<{
24
+ url: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ file: z.ZodNullable<z.ZodObject<{
28
+ url: z.ZodNullable<z.ZodString>;
29
+ expiry_time: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ type: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$strip>]>>>;
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.$strip>>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ file: z.ZodNullable<z.ZodObject<{
40
+ url: z.ZodNullable<z.ZodString>;
41
+ expiry_time: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ type: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>]>>>;
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.$strip>, 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.$strip>, z.ZodObject<{
54
+ type: z.ZodNullable<z.ZodString>;
55
+ page_id: z.ZodNullable<z.ZodString>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodNullable<z.ZodString>;
58
+ workspace: z.ZodNullable<z.ZodBoolean>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ type: z.ZodNullable<z.ZodString>;
61
+ block_id: z.ZodNullable<z.ZodString>;
62
+ }, z.core.$strip>]>>>;
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.$strip>>>;
69
+ properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
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.$strip>>>;
76
+ last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$strip>;
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.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-notion-page.d.cts","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.cts","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"}
@@ -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.$strip>, 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.$strip>>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ type: z.ZodNullable<z.ZodString>;
23
+ external: z.ZodNullable<z.ZodObject<{
24
+ url: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ file: z.ZodNullable<z.ZodObject<{
28
+ url: z.ZodNullable<z.ZodString>;
29
+ expiry_time: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ type: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$strip>]>>>;
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.$strip>>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ file: z.ZodNullable<z.ZodObject<{
40
+ url: z.ZodNullable<z.ZodString>;
41
+ expiry_time: z.ZodNullable<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ type: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>]>>>;
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.$strip>, 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.$strip>, z.ZodObject<{
54
+ type: z.ZodNullable<z.ZodString>;
55
+ page_id: z.ZodNullable<z.ZodString>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodNullable<z.ZodString>;
58
+ workspace: z.ZodNullable<z.ZodBoolean>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ type: z.ZodNullable<z.ZodString>;
61
+ block_id: z.ZodNullable<z.ZodString>;
62
+ }, z.core.$strip>]>>>;
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.$strip>>>;
69
+ properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
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.$strip>>>;
76
+ last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$strip>;
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,63 +6,63 @@ 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.")
9
+ type: z.string().describe("The constant string 'emoji'.").nullable(),
10
+ emoji: z.string().describe("The emoji character itself.").nullable()
11
11
  });
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.")
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
16
  });
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
20
  });
21
- const NotionArchiveNotionPage_ExternalFileSchema = z.object({ url: z.string().describe("Publicly accessible HTTPS link to remote content.") });
21
+ const NotionArchiveNotionPage_ExternalFileSchema = z.object({ url: z.string().describe("Publicly accessible HTTPS link to remote content.").nullable() });
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
  });
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.")
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
29
  });
30
30
  const NotionArchiveNotionPage_FileIconSchema = z.object({
31
31
  file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),
32
- type: z.string().describe("The constant string 'file'.")
32
+ type: z.string().describe("The constant string 'file'.").nullable()
33
33
  });
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
  });
38
38
  const NotionArchiveNotionPage_FileCoverSchema = z.object({
39
39
  file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),
40
- type: z.string().describe("The constant string 'file'.")
40
+ type: z.string().describe("The constant string 'file'.").nullable()
41
41
  });
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.")
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
45
  });
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.")
49
+ data_source_id: z.string().describe("UUIDv4 string identifying the parent data source.").nullable()
50
50
  });
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.")
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
54
  });
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.")
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
58
  });
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.")
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
62
  });
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\".")
64
+ id: z.string().describe("UUID string identifying the user uniquely.").nullable(),
65
+ object: z.string().describe("Always \"user\".").nullable()
66
66
  });
67
67
  const notionArchiveNotionPage = action("NOTION_ARCHIVE_NOTION_PAGE", {
68
68
  slug: "notion-archive-notion-page",
@@ -70,7 +70,7 @@ const notionArchiveNotionPage = action("NOTION_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,
@@ -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,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAChL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+eAA+e;AAC9gB,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC1D,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAC/D,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,cAAc,8CAA8C,SAAS;AACvE,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO,EACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EAC9E,CA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AC,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});\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});\nconst NotionArchiveNotionPage_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"The constant value 'custom_emoji'.\").nullable(),\n custom_emoji: NotionArchiveNotionPage_CustomEmojiDataSchema.nullable(),\n});\nconst NotionArchiveNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"Publicly accessible HTTPS link to remote content.\").nullable(),\n});\nconst NotionArchiveNotionPage_ExternalIconSchema = z.object({\n type: z.string().describe(\"The constant string 'external'.\").nullable(),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n});\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});\nconst NotionArchiveNotionPage_FileIconSchema = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\").nullable(),\n});\nconst NotionArchiveNotionPage_ExternalCoverSchema = z.object({\n type: z.string().describe(\"The constant string 'external'.\").nullable(),\n external: NotionArchiveNotionPage_ExternalFileSchema.nullable(),\n});\nconst NotionArchiveNotionPage_FileCoverSchema = z.object({\n file: NotionArchiveNotionPage_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"The constant string 'file'.\").nullable(),\n});\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});\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});\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});\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});\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});\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});\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.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,+BAA+B,EAAE,OAAO;CACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAChL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+eAA+e;AAC9gB,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACrE,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC1E,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,cAAc,8CAA8C,SAAS;AACvE,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO,EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACzF,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,E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;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 +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_id`); cannot create new discussion threads on specific blocks (inline comments).\",\n input: NotionCreateCommentInput,\n output: NotionCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;EACzR,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uXAAuX,CAAC,CAAC,SAAS;EAC/Z,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAChG,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACxG,gBAAgBA,IAAAA,EAAE,KAAK;GAAC;GAAa;GAAa;GAAa;GAAa;GAAW;GAAS;GAAU;GAAS;GAAsB;GAAsB;GAAQ;GAAS;GAAS;EAAS,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,qiBAAqiB,CAAC,CAAC,SAAS;CACrxB,CAAC,CAAC,CAAC,SAAS,8cAA8c;CACxd,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACnP,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;AAC/T,CAAC;AACD,MAAa,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,SAA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;AACV,CAAC"}
@@ -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
+ quote: "quote";
17
+ image: "image";
18
+ to_do: "to_do";
19
+ video: "video";
20
+ toggle: "toggle";
21
+ callout: "callout";
22
+ divider: "divider";
23
+ heading_1: "heading_1";
24
+ heading_2: "heading_2";
25
+ heading_3: "heading_3";
26
+ paragraph: "paragraph";
27
+ bulleted_list_item: "bulleted_list_item";
28
+ numbered_list_item: "numbered_list_item";
29
+ }>>>;
30
+ }, z.core.$strip>;
31
+ discussion_id: z.ZodOptional<z.ZodString>;
32
+ parent_page_id: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ declare const NotionCreateCommentOutput: z.ZodUnknown;
35
+ declare const notionCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ comment: {
37
+ bold?: boolean | undefined;
38
+ code?: boolean | undefined;
39
+ link?: string | undefined;
40
+ color?: string | undefined;
41
+ italic?: boolean | undefined;
42
+ content?: string | undefined;
43
+ underline?: boolean | undefined;
44
+ strikethrough?: boolean | undefined;
45
+ block_property?: "file" | "quote" | "image" | "to_do" | "video" | "toggle" | "callout" | "divider" | "heading_1" | "heading_2" | "heading_3" | "paragraph" | "bulleted_list_item" | "numbered_list_item" | undefined;
46
+ };
47
+ discussion_id?: string | undefined;
48
+ parent_page_id?: string | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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"}