@keystrokehq/notion 0.0.16 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/README.md +11 -41
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-multiple-page-content.cjs +80 -0
  7. package/dist/actions/add-multiple-page-content.cjs.map +1 -0
  8. package/dist/actions/add-multiple-page-content.d.cts +9 -0
  9. package/dist/actions/add-multiple-page-content.d.cts.map +1 -0
  10. package/dist/actions/add-multiple-page-content.d.mts +9 -0
  11. package/dist/actions/add-multiple-page-content.d.mts.map +1 -0
  12. package/dist/actions/add-multiple-page-content.mjs +79 -0
  13. package/dist/actions/add-multiple-page-content.mjs.map +1 -0
  14. package/dist/actions/append-code-blocks.cjs +446 -0
  15. package/dist/actions/append-code-blocks.cjs.map +1 -0
  16. package/dist/actions/append-code-blocks.d.cts +9 -0
  17. package/dist/actions/append-code-blocks.d.cts.map +1 -0
  18. package/dist/actions/append-code-blocks.d.mts +9 -0
  19. package/dist/actions/append-code-blocks.d.mts.map +1 -0
  20. package/dist/actions/append-code-blocks.mjs +445 -0
  21. package/dist/actions/append-code-blocks.mjs.map +1 -0
  22. package/dist/actions/append-layout-blocks.cjs +278 -0
  23. package/dist/actions/append-layout-blocks.cjs.map +1 -0
  24. package/dist/actions/append-layout-blocks.d.cts +9 -0
  25. package/dist/actions/append-layout-blocks.d.cts.map +1 -0
  26. package/dist/actions/append-layout-blocks.d.mts +9 -0
  27. package/dist/actions/append-layout-blocks.d.mts.map +1 -0
  28. package/dist/actions/append-layout-blocks.mjs +277 -0
  29. package/dist/actions/append-layout-blocks.mjs.map +1 -0
  30. package/dist/actions/append-media-blocks.cjs +491 -0
  31. package/dist/actions/append-media-blocks.cjs.map +1 -0
  32. package/dist/actions/append-media-blocks.d.cts +9 -0
  33. package/dist/actions/append-media-blocks.d.cts.map +1 -0
  34. package/dist/actions/append-media-blocks.d.mts +9 -0
  35. package/dist/actions/append-media-blocks.d.mts.map +1 -0
  36. package/dist/actions/append-media-blocks.mjs +490 -0
  37. package/dist/actions/append-media-blocks.mjs.map +1 -0
  38. package/dist/actions/append-table-blocks.cjs +267 -0
  39. package/dist/actions/append-table-blocks.cjs.map +1 -0
  40. package/dist/actions/append-table-blocks.d.cts +9 -0
  41. package/dist/actions/append-table-blocks.d.cts.map +1 -0
  42. package/dist/actions/append-table-blocks.d.mts +9 -0
  43. package/dist/actions/append-table-blocks.d.mts.map +1 -0
  44. package/dist/actions/append-table-blocks.mjs +266 -0
  45. package/dist/actions/append-table-blocks.mjs.map +1 -0
  46. package/dist/actions/append-task-blocks.cjs +420 -0
  47. package/dist/actions/append-task-blocks.cjs.map +1 -0
  48. package/dist/actions/append-task-blocks.d.cts +9 -0
  49. package/dist/actions/append-task-blocks.d.cts.map +1 -0
  50. package/dist/actions/append-task-blocks.d.mts +9 -0
  51. package/dist/actions/append-task-blocks.d.mts.map +1 -0
  52. package/dist/actions/append-task-blocks.mjs +419 -0
  53. package/dist/actions/append-task-blocks.mjs.map +1 -0
  54. package/dist/actions/append-text-blocks.cjs +604 -0
  55. package/dist/actions/append-text-blocks.cjs.map +1 -0
  56. package/dist/actions/append-text-blocks.d.cts +9 -0
  57. package/dist/actions/append-text-blocks.d.cts.map +1 -0
  58. package/dist/actions/append-text-blocks.d.mts +9 -0
  59. package/dist/actions/append-text-blocks.d.mts.map +1 -0
  60. package/dist/actions/append-text-blocks.mjs +603 -0
  61. package/dist/actions/append-text-blocks.mjs.map +1 -0
  62. package/dist/actions/archive-notion-page.cjs +104 -0
  63. package/dist/actions/archive-notion-page.cjs.map +1 -0
  64. package/dist/actions/archive-notion-page.d.cts +9 -0
  65. package/dist/actions/archive-notion-page.d.cts.map +1 -0
  66. package/dist/actions/archive-notion-page.d.mts +9 -0
  67. package/dist/actions/archive-notion-page.d.mts.map +1 -0
  68. package/dist/actions/archive-notion-page.mjs +103 -0
  69. package/dist/actions/archive-notion-page.mjs.map +1 -0
  70. package/dist/actions/create-comment.cjs +45 -0
  71. package/dist/actions/create-comment.cjs.map +1 -0
  72. package/dist/actions/create-comment.d.cts +9 -0
  73. package/dist/actions/create-comment.d.cts.map +1 -0
  74. package/dist/actions/create-comment.d.mts +9 -0
  75. package/dist/actions/create-comment.d.mts.map +1 -0
  76. package/dist/actions/create-comment.mjs +42 -0
  77. package/dist/actions/create-comment.mjs.map +1 -0
  78. package/dist/actions/create-database.cjs +125 -0
  79. package/dist/actions/create-database.cjs.map +1 -0
  80. package/dist/actions/create-database.d.cts +9 -0
  81. package/dist/actions/create-database.d.cts.map +1 -0
  82. package/dist/actions/create-database.d.mts +9 -0
  83. package/dist/actions/create-database.d.mts.map +1 -0
  84. package/dist/actions/create-database.mjs +124 -0
  85. package/dist/actions/create-database.mjs.map +1 -0
  86. package/dist/actions/create-file-upload.cjs +45 -0
  87. package/dist/actions/create-file-upload.cjs.map +1 -0
  88. package/dist/actions/create-file-upload.d.cts +9 -0
  89. package/dist/actions/create-file-upload.d.cts.map +1 -0
  90. package/dist/actions/create-file-upload.d.mts +9 -0
  91. package/dist/actions/create-file-upload.d.mts.map +1 -0
  92. package/dist/actions/create-file-upload.mjs +42 -0
  93. package/dist/actions/create-file-upload.mjs.map +1 -0
  94. package/dist/actions/create-notion-page.cjs +94 -0
  95. package/dist/actions/create-notion-page.cjs.map +1 -0
  96. package/dist/actions/create-notion-page.d.cts +9 -0
  97. package/dist/actions/create-notion-page.d.cts.map +1 -0
  98. package/dist/actions/create-notion-page.d.mts +9 -0
  99. package/dist/actions/create-notion-page.d.mts.map +1 -0
  100. package/dist/actions/create-notion-page.mjs +93 -0
  101. package/dist/actions/create-notion-page.mjs.map +1 -0
  102. package/dist/actions/delete-block.cjs +411 -0
  103. package/dist/actions/delete-block.cjs.map +1 -0
  104. package/dist/actions/delete-block.d.cts +9 -0
  105. package/dist/actions/delete-block.d.cts.map +1 -0
  106. package/dist/actions/delete-block.d.mts +9 -0
  107. package/dist/actions/delete-block.d.mts.map +1 -0
  108. package/dist/actions/delete-block.mjs +410 -0
  109. package/dist/actions/delete-block.mjs.map +1 -0
  110. package/dist/actions/duplicate-page.cjs +119 -0
  111. package/dist/actions/duplicate-page.cjs.map +1 -0
  112. package/dist/actions/duplicate-page.d.cts +9 -0
  113. package/dist/actions/duplicate-page.d.cts.map +1 -0
  114. package/dist/actions/duplicate-page.d.mts +9 -0
  115. package/dist/actions/duplicate-page.d.mts.map +1 -0
  116. package/dist/actions/duplicate-page.mjs +118 -0
  117. package/dist/actions/duplicate-page.mjs.map +1 -0
  118. package/dist/actions/fetch-all-block-contents.cjs +270 -0
  119. package/dist/actions/fetch-all-block-contents.cjs.map +1 -0
  120. package/dist/actions/fetch-all-block-contents.d.cts +9 -0
  121. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -0
  122. package/dist/actions/fetch-all-block-contents.d.mts +9 -0
  123. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -0
  124. package/dist/actions/fetch-all-block-contents.mjs +269 -0
  125. package/dist/actions/fetch-all-block-contents.mjs.map +1 -0
  126. package/dist/actions/fetch-block-contents.cjs +232 -0
  127. package/dist/actions/fetch-block-contents.cjs.map +1 -0
  128. package/dist/actions/fetch-block-contents.d.cts +9 -0
  129. package/dist/actions/fetch-block-contents.d.cts.map +1 -0
  130. package/dist/actions/fetch-block-contents.d.mts +9 -0
  131. package/dist/actions/fetch-block-contents.d.mts.map +1 -0
  132. package/dist/actions/fetch-block-contents.mjs +231 -0
  133. package/dist/actions/fetch-block-contents.mjs.map +1 -0
  134. package/dist/actions/fetch-block-metadata.cjs +406 -0
  135. package/dist/actions/fetch-block-metadata.cjs.map +1 -0
  136. package/dist/actions/fetch-block-metadata.d.cts +9 -0
  137. package/dist/actions/fetch-block-metadata.d.cts.map +1 -0
  138. package/dist/actions/fetch-block-metadata.d.mts +9 -0
  139. package/dist/actions/fetch-block-metadata.d.mts.map +1 -0
  140. package/dist/actions/fetch-block-metadata.mjs +405 -0
  141. package/dist/actions/fetch-block-metadata.mjs.map +1 -0
  142. package/dist/actions/fetch-comments.cjs +136 -0
  143. package/dist/actions/fetch-comments.cjs.map +1 -0
  144. package/dist/actions/fetch-comments.d.cts +9 -0
  145. package/dist/actions/fetch-comments.d.cts.map +1 -0
  146. package/dist/actions/fetch-comments.d.mts +9 -0
  147. package/dist/actions/fetch-comments.d.mts.map +1 -0
  148. package/dist/actions/fetch-comments.mjs +135 -0
  149. package/dist/actions/fetch-comments.mjs.map +1 -0
  150. package/dist/actions/fetch-data.cjs +227 -0
  151. package/dist/actions/fetch-data.cjs.map +1 -0
  152. package/dist/actions/fetch-data.d.cts +9 -0
  153. package/dist/actions/fetch-data.d.cts.map +1 -0
  154. package/dist/actions/fetch-data.d.mts +9 -0
  155. package/dist/actions/fetch-data.d.mts.map +1 -0
  156. package/dist/actions/fetch-data.mjs +226 -0
  157. package/dist/actions/fetch-data.mjs.map +1 -0
  158. package/dist/actions/fetch-database.cjs +84 -0
  159. package/dist/actions/fetch-database.cjs.map +1 -0
  160. package/dist/actions/fetch-database.d.cts +9 -0
  161. package/dist/actions/fetch-database.d.cts.map +1 -0
  162. package/dist/actions/fetch-database.d.mts +9 -0
  163. package/dist/actions/fetch-database.d.mts.map +1 -0
  164. package/dist/actions/fetch-database.mjs +83 -0
  165. package/dist/actions/fetch-database.mjs.map +1 -0
  166. package/dist/actions/fetch-row.cjs +133 -0
  167. package/dist/actions/fetch-row.cjs.map +1 -0
  168. package/dist/actions/fetch-row.d.cts +9 -0
  169. package/dist/actions/fetch-row.d.cts.map +1 -0
  170. package/dist/actions/fetch-row.d.mts +9 -0
  171. package/dist/actions/fetch-row.d.mts.map +1 -0
  172. package/dist/actions/fetch-row.mjs +132 -0
  173. package/dist/actions/fetch-row.mjs.map +1 -0
  174. package/dist/actions/get-about-user.cjs +46 -0
  175. package/dist/actions/get-about-user.cjs.map +1 -0
  176. package/dist/actions/get-about-user.d.cts +9 -0
  177. package/dist/actions/get-about-user.d.cts.map +1 -0
  178. package/dist/actions/get-about-user.d.mts +9 -0
  179. package/dist/actions/get-about-user.d.mts.map +1 -0
  180. package/dist/actions/get-about-user.mjs +45 -0
  181. package/dist/actions/get-about-user.mjs.map +1 -0
  182. package/dist/actions/get-page-markdown.cjs +25 -0
  183. package/dist/actions/get-page-markdown.cjs.map +1 -0
  184. package/dist/actions/get-page-markdown.d.cts +9 -0
  185. package/dist/actions/get-page-markdown.d.cts.map +1 -0
  186. package/dist/actions/get-page-markdown.d.mts +9 -0
  187. package/dist/actions/get-page-markdown.d.mts.map +1 -0
  188. package/dist/actions/get-page-markdown.mjs +22 -0
  189. package/dist/actions/get-page-markdown.mjs.map +1 -0
  190. package/dist/actions/get-page-property-action.cjs +21 -0
  191. package/dist/actions/get-page-property-action.cjs.map +1 -0
  192. package/dist/actions/get-page-property-action.d.cts +9 -0
  193. package/dist/actions/get-page-property-action.d.cts.map +1 -0
  194. package/dist/actions/get-page-property-action.d.mts +9 -0
  195. package/dist/actions/get-page-property-action.d.mts.map +1 -0
  196. package/dist/actions/get-page-property-action.mjs +18 -0
  197. package/dist/actions/get-page-property-action.mjs.map +1 -0
  198. package/dist/actions/index.cjs +91 -0
  199. package/dist/actions/index.d.cts +46 -0
  200. package/dist/actions/index.d.mts +46 -0
  201. package/dist/actions/index.mjs +46 -0
  202. package/dist/actions/insert-row-database.cjs +176 -0
  203. package/dist/actions/insert-row-database.cjs.map +1 -0
  204. package/dist/actions/insert-row-database.d.cts +9 -0
  205. package/dist/actions/insert-row-database.d.cts.map +1 -0
  206. package/dist/actions/insert-row-database.d.mts +9 -0
  207. package/dist/actions/insert-row-database.d.mts.map +1 -0
  208. package/dist/actions/insert-row-database.mjs +175 -0
  209. package/dist/actions/insert-row-database.mjs.map +1 -0
  210. package/dist/actions/insert-row-from-nl.cjs +27 -0
  211. package/dist/actions/insert-row-from-nl.cjs.map +1 -0
  212. package/dist/actions/insert-row-from-nl.d.cts +9 -0
  213. package/dist/actions/insert-row-from-nl.d.cts.map +1 -0
  214. package/dist/actions/insert-row-from-nl.d.mts +9 -0
  215. package/dist/actions/insert-row-from-nl.d.mts.map +1 -0
  216. package/dist/actions/insert-row-from-nl.mjs +24 -0
  217. package/dist/actions/insert-row-from-nl.mjs.map +1 -0
  218. package/dist/actions/list-data-source-templates.cjs +29 -0
  219. package/dist/actions/list-data-source-templates.cjs.map +1 -0
  220. package/dist/actions/list-data-source-templates.d.cts +9 -0
  221. package/dist/actions/list-data-source-templates.d.cts.map +1 -0
  222. package/dist/actions/list-data-source-templates.d.mts +9 -0
  223. package/dist/actions/list-data-source-templates.d.mts.map +1 -0
  224. package/dist/actions/list-data-source-templates.mjs +28 -0
  225. package/dist/actions/list-data-source-templates.mjs.map +1 -0
  226. package/dist/actions/list-file-uploads.cjs +43 -0
  227. package/dist/actions/list-file-uploads.cjs.map +1 -0
  228. package/dist/actions/list-file-uploads.d.cts +9 -0
  229. package/dist/actions/list-file-uploads.d.cts.map +1 -0
  230. package/dist/actions/list-file-uploads.d.mts +9 -0
  231. package/dist/actions/list-file-uploads.d.mts.map +1 -0
  232. package/dist/actions/list-file-uploads.mjs +42 -0
  233. package/dist/actions/list-file-uploads.mjs.map +1 -0
  234. package/dist/actions/list-users.cjs +58 -0
  235. package/dist/actions/list-users.cjs.map +1 -0
  236. package/dist/actions/list-users.d.cts +9 -0
  237. package/dist/actions/list-users.d.cts.map +1 -0
  238. package/dist/actions/list-users.d.mts +9 -0
  239. package/dist/actions/list-users.d.mts.map +1 -0
  240. package/dist/actions/list-users.mjs +57 -0
  241. package/dist/actions/list-users.mjs.map +1 -0
  242. package/dist/actions/move-page.cjs +110 -0
  243. package/dist/actions/move-page.cjs.map +1 -0
  244. package/dist/actions/move-page.d.cts +9 -0
  245. package/dist/actions/move-page.d.cts.map +1 -0
  246. package/dist/actions/move-page.d.mts +9 -0
  247. package/dist/actions/move-page.d.mts.map +1 -0
  248. package/dist/actions/move-page.mjs +109 -0
  249. package/dist/actions/move-page.mjs.map +1 -0
  250. package/dist/actions/query-data-source.cjs +118 -0
  251. package/dist/actions/query-data-source.cjs.map +1 -0
  252. package/dist/actions/query-data-source.d.cts +9 -0
  253. package/dist/actions/query-data-source.d.cts.map +1 -0
  254. package/dist/actions/query-data-source.d.mts +9 -0
  255. package/dist/actions/query-data-source.d.mts.map +1 -0
  256. package/dist/actions/query-data-source.mjs +117 -0
  257. package/dist/actions/query-data-source.mjs.map +1 -0
  258. package/dist/actions/query-database-with-filter.cjs +172 -0
  259. package/dist/actions/query-database-with-filter.cjs.map +1 -0
  260. package/dist/actions/query-database-with-filter.d.cts +9 -0
  261. package/dist/actions/query-database-with-filter.d.cts.map +1 -0
  262. package/dist/actions/query-database-with-filter.d.mts +9 -0
  263. package/dist/actions/query-database-with-filter.d.mts.map +1 -0
  264. package/dist/actions/query-database-with-filter.mjs +171 -0
  265. package/dist/actions/query-database-with-filter.mjs.map +1 -0
  266. package/dist/actions/query-database.cjs +171 -0
  267. package/dist/actions/query-database.cjs.map +1 -0
  268. package/dist/actions/query-database.d.cts +9 -0
  269. package/dist/actions/query-database.d.cts.map +1 -0
  270. package/dist/actions/query-database.d.mts +9 -0
  271. package/dist/actions/query-database.d.mts.map +1 -0
  272. package/dist/actions/query-database.mjs +170 -0
  273. package/dist/actions/query-database.mjs.map +1 -0
  274. package/dist/actions/replace-page-content.cjs +1175 -0
  275. package/dist/actions/replace-page-content.cjs.map +1 -0
  276. package/dist/actions/replace-page-content.d.cts +9 -0
  277. package/dist/actions/replace-page-content.d.cts.map +1 -0
  278. package/dist/actions/replace-page-content.d.mts +9 -0
  279. package/dist/actions/replace-page-content.d.mts.map +1 -0
  280. package/dist/actions/replace-page-content.mjs +1172 -0
  281. package/dist/actions/replace-page-content.mjs.map +1 -0
  282. package/dist/actions/retrieve-comment.cjs +16 -0
  283. package/dist/actions/retrieve-comment.cjs.map +1 -0
  284. package/dist/actions/retrieve-comment.d.cts +9 -0
  285. package/dist/actions/retrieve-comment.d.cts.map +1 -0
  286. package/dist/actions/retrieve-comment.d.mts +9 -0
  287. package/dist/actions/retrieve-comment.d.mts.map +1 -0
  288. package/dist/actions/retrieve-comment.mjs +13 -0
  289. package/dist/actions/retrieve-comment.mjs.map +1 -0
  290. package/dist/actions/retrieve-database-property.cjs +80 -0
  291. package/dist/actions/retrieve-database-property.cjs.map +1 -0
  292. package/dist/actions/retrieve-database-property.d.cts +9 -0
  293. package/dist/actions/retrieve-database-property.d.cts.map +1 -0
  294. package/dist/actions/retrieve-database-property.d.mts +9 -0
  295. package/dist/actions/retrieve-database-property.d.mts.map +1 -0
  296. package/dist/actions/retrieve-database-property.mjs +79 -0
  297. package/dist/actions/retrieve-database-property.mjs.map +1 -0
  298. package/dist/actions/retrieve-file-upload.cjs +34 -0
  299. package/dist/actions/retrieve-file-upload.cjs.map +1 -0
  300. package/dist/actions/retrieve-file-upload.d.cts +9 -0
  301. package/dist/actions/retrieve-file-upload.d.cts.map +1 -0
  302. package/dist/actions/retrieve-file-upload.d.mts +9 -0
  303. package/dist/actions/retrieve-file-upload.d.mts.map +1 -0
  304. package/dist/actions/retrieve-file-upload.mjs +31 -0
  305. package/dist/actions/retrieve-file-upload.mjs.map +1 -0
  306. package/dist/actions/retrieve-page.cjs +129 -0
  307. package/dist/actions/retrieve-page.cjs.map +1 -0
  308. package/dist/actions/retrieve-page.d.cts +9 -0
  309. package/dist/actions/retrieve-page.d.cts.map +1 -0
  310. package/dist/actions/retrieve-page.d.mts +9 -0
  311. package/dist/actions/retrieve-page.d.mts.map +1 -0
  312. package/dist/actions/retrieve-page.mjs +128 -0
  313. package/dist/actions/retrieve-page.mjs.map +1 -0
  314. package/dist/actions/search-notion-page.cjs +245 -0
  315. package/dist/actions/search-notion-page.cjs.map +1 -0
  316. package/dist/actions/search-notion-page.d.cts +9 -0
  317. package/dist/actions/search-notion-page.d.cts.map +1 -0
  318. package/dist/actions/search-notion-page.d.mts +9 -0
  319. package/dist/actions/search-notion-page.d.mts.map +1 -0
  320. package/dist/actions/search-notion-page.mjs +244 -0
  321. package/dist/actions/search-notion-page.mjs.map +1 -0
  322. package/dist/actions/send-file-upload.cjs +37 -0
  323. package/dist/actions/send-file-upload.cjs.map +1 -0
  324. package/dist/actions/send-file-upload.d.cts +9 -0
  325. package/dist/actions/send-file-upload.d.cts.map +1 -0
  326. package/dist/actions/send-file-upload.d.mts +9 -0
  327. package/dist/actions/send-file-upload.d.mts.map +1 -0
  328. package/dist/actions/send-file-upload.mjs +34 -0
  329. package/dist/actions/send-file-upload.mjs.map +1 -0
  330. package/dist/actions/update-block.cjs +250 -0
  331. package/dist/actions/update-block.cjs.map +1 -0
  332. package/dist/actions/update-block.d.cts +9 -0
  333. package/dist/actions/update-block.d.cts.map +1 -0
  334. package/dist/actions/update-block.d.mts +9 -0
  335. package/dist/actions/update-block.d.mts.map +1 -0
  336. package/dist/actions/update-block.mjs +249 -0
  337. package/dist/actions/update-block.mjs.map +1 -0
  338. package/dist/actions/update-page.cjs +115 -0
  339. package/dist/actions/update-page.cjs.map +1 -0
  340. package/dist/actions/update-page.d.cts +9 -0
  341. package/dist/actions/update-page.d.cts.map +1 -0
  342. package/dist/actions/update-page.d.mts +9 -0
  343. package/dist/actions/update-page.d.mts.map +1 -0
  344. package/dist/actions/update-page.mjs +114 -0
  345. package/dist/actions/update-page.mjs.map +1 -0
  346. package/dist/actions/update-row-database.cjs +149 -0
  347. package/dist/actions/update-row-database.cjs.map +1 -0
  348. package/dist/actions/update-row-database.d.cts +9 -0
  349. package/dist/actions/update-row-database.d.cts.map +1 -0
  350. package/dist/actions/update-row-database.d.mts +9 -0
  351. package/dist/actions/update-row-database.d.mts.map +1 -0
  352. package/dist/actions/update-row-database.mjs +148 -0
  353. package/dist/actions/update-row-database.mjs.map +1 -0
  354. package/dist/actions/update-schema-database.cjs +198 -0
  355. package/dist/actions/update-schema-database.cjs.map +1 -0
  356. package/dist/actions/update-schema-database.d.cts +9 -0
  357. package/dist/actions/update-schema-database.d.cts.map +1 -0
  358. package/dist/actions/update-schema-database.d.mts +9 -0
  359. package/dist/actions/update-schema-database.d.mts.map +1 -0
  360. package/dist/actions/update-schema-database.mjs +197 -0
  361. package/dist/actions/update-schema-database.mjs.map +1 -0
  362. package/dist/actions/upsert-row-database.cjs +141 -0
  363. package/dist/actions/upsert-row-database.cjs.map +1 -0
  364. package/dist/actions/upsert-row-database.d.cts +9 -0
  365. package/dist/actions/upsert-row-database.d.cts.map +1 -0
  366. package/dist/actions/upsert-row-database.d.mts +9 -0
  367. package/dist/actions/upsert-row-database.d.mts.map +1 -0
  368. package/dist/actions/upsert-row-database.mjs +140 -0
  369. package/dist/actions/upsert-row-database.mjs.map +1 -0
  370. package/dist/app.cjs +9 -0
  371. package/dist/app.cjs.map +1 -0
  372. package/dist/app.d.cts +5 -0
  373. package/dist/app.d.cts.map +1 -0
  374. package/dist/app.d.mts +5 -0
  375. package/dist/app.d.mts.map +1 -0
  376. package/dist/app.mjs +10 -0
  377. package/dist/app.mjs.map +1 -0
  378. package/dist/catalog.cjs +15 -0
  379. package/dist/catalog.cjs.map +1 -0
  380. package/dist/catalog.d.cts +14 -0
  381. package/dist/catalog.d.cts.map +1 -0
  382. package/dist/catalog.d.mts +14 -0
  383. package/dist/catalog.d.mts.map +1 -0
  384. package/dist/catalog.mjs +15 -0
  385. package/dist/catalog.mjs.map +1 -0
  386. package/dist/execute.cjs +18 -0
  387. package/dist/execute.cjs.map +1 -0
  388. package/dist/execute.mjs +18 -0
  389. package/dist/execute.mjs.map +1 -0
  390. package/dist/index.cjs +96 -0
  391. package/dist/index.d.cts +48 -0
  392. package/dist/index.d.mts +48 -5
  393. package/dist/index.mjs +49 -7
  394. package/package.json +31 -53
  395. package/LICENSE +0 -21
  396. package/dist/credential-sets/index.d.mts +0 -2
  397. package/dist/credential-sets/index.mjs +0 -4
  398. package/dist/notion-webhook.credential-set-5tXWld_L.d.mts +0 -53
  399. package/dist/notion-webhook.credential-set-D_tczh8M.mjs +0 -25
  400. package/dist/notion.credential-set-BfA-EG9z.mjs +0 -44
  401. package/dist/operations/index.d.mts +0 -1104
  402. package/dist/operations/index.mjs +0 -32
  403. package/dist/schemas/index.d.mts +0 -190
  404. package/dist/schemas/index.mjs +0 -3
  405. package/dist/search-D4wvUAjS.mjs +0 -277
  406. package/dist/update-page.operation-6lf05oVs.d.mts +0 -1147
  407. package/dist/update-page.operation-BQWJrCll.mjs +0 -794
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-data-source.cjs","names":["z","action"],"sources":["../../src/actions/query-data-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDataSourceInput: z.ZodTypeAny = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"ID of the data source property to sort by\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).describe(\"Sort by a data source property.\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"Timestamp field to sort by: 'created_time' or 'last_edited_time'\"),\n}).describe(\"Sort by entry timestamp.\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for property fields or TimestampSort for creation/edit times.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filter object to limit returned entries. Supports single-property filters or compound filters using 'and'/'or'.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1-100). Defaults to 100 if omitted.\").optional(),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page.\").optional(),\n data_source_id: z.string().describe(\"UUID of the Notion data source to query (with or without hyphens). URI prefixes like 'collection://' are automatically stripped.\"),\n filter_properties: z.array(z.string()).describe(\"List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.\").optional(),\n}).describe(\"Request model for querying a Notion data source.\");\nconst NotionQueryDataSource_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file reference.\");\nconst NotionQueryDataSource_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\"),\n}).describe(\"External file reference.\");\nconst NotionQueryDataSource_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object.\");\nconst NotionQueryDataSource_PageIconSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"emoji\", \"external\", \"file\", \"custom_emoji\"]).describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\"),\n emoji: z.string().describe(\"Emoji character (only present when type is 'emoji').\").nullable().optional(),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, which can be an emoji, external file, or uploaded file.\");\nconst NotionQueryDataSource_PageCoverSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"external\", \"file\"]).describe(\"Type of cover: 'external' or 'file'.\"),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n}).describe(\"Page cover image, which can be an external file or Notion-hosted file.\");\nconst NotionQueryDataSource_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"data_source_id\", \"database_id\", \"page_id\", \"workspace\"]).describe(\"Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'.\"),\n page_id: z.string().describe(\"UUID of the parent page (only present when type is 'page_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n database_id: z.string().describe(\"UUID of the parent database (only present when type is 'database_id').\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source (only present when type is 'data_source_id').\").nullable().optional(),\n}).describe(\"Information about the page's parent.\");\nconst NotionQueryDataSource_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionQueryDataSource_BotOwnerUserRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User ID of the bot owner.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"Simplified user reference for bot owner to avoid circular reference.\");\nconst NotionQueryDataSource_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionQueryDataSource_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionQueryDataSource_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionQueryDataSource_BotOwnerWorkspaceSchema, NotionQueryDataSource_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionQueryDataSource_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionQueryDataSource_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionQueryDataSource_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\"),\n bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user, either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\"),\n person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDataSource_PageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the page.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),\n cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page has been moved to trash.\").nullable().optional(),\n created_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page, determined by the parent data source's schema. Keys are property names; values are PropertyValue objects with id, type, and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly accessible URL if the page has been published to the web; otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable().optional(),\n}).describe(\"Page object contained in the data source.\");\nexport const NotionQueryDataSourceOutput: z.ZodTypeAny = z.object({\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(NotionQueryDataSource_PageSchema).describe(\"Array of page objects contained in the data source, filtered and ordered according to the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond this response. If true, use next_cursor to retrieve the next page.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor value for pagination. Use this value in the next request to retrieve additional results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for querying a Notion data source.\");\n\nexport const notionQueryDataSource = action(\"NOTION_QUERY_DATA_SOURCE\", {\n slug: \"notion-query-data-source\",\n name: \"Query data source\",\n description: \"Tool to query a Notion data source. Use when you need to retrieve pages or child data sources with filters, sorts, and pagination. Make paginated requests using cursors and optional property filters for efficient data retrieval.\",\n input: NotionQueryDataSourceInput,\n output: NotionQueryDataSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EACjC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACzE,WAAWA,IAAAA,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnG,CAAC,CAAC,CAAC,SAAS,iCAAiC,GAAGA,IAAAA,EAAE,OAAO;EACvD,WAAWA,IAAAA,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACjG,WAAWA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,kBAAkB,CAAC,CAAC,CAAC,SAAS,kEAAkE;CACrI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC3L,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC/K,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACxH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;C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AS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7L,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/query-data-source.d.ts
4
+ declare const NotionQueryDataSourceInput: z.ZodTypeAny;
5
+ declare const NotionQueryDataSourceOutput: z.ZodTypeAny;
6
+ declare const notionQueryDataSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { notionQueryDataSource };
9
+ //# sourceMappingURL=query-data-source.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-data-source.d.cts","names":[],"sources":["../../src/actions/query-data-source.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAaoB;AAAA,cAiFlD,2BAAA,EAA6B,CAAA,CAAE,UAKoB;AAAA,cAEnD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/query-data-source.d.ts
4
+ declare const NotionQueryDataSourceInput: z.ZodTypeAny;
5
+ declare const NotionQueryDataSourceOutput: z.ZodTypeAny;
6
+ declare const notionQueryDataSource: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { notionQueryDataSource };
9
+ //# sourceMappingURL=query-data-source.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-data-source.d.mts","names":[],"sources":["../../src/actions/query-data-source.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAaoB;AAAA,cAiFlD,2BAAA,EAA6B,CAAA,CAAE,UAKoB;AAAA,cAEnD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,117 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/query-data-source.ts
4
+ const NotionQueryDataSourceInput = z.object({
5
+ sorts: z.array(z.union([z.object({
6
+ property: z.string().describe("ID of the data source property to sort by"),
7
+ direction: z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending")
8
+ }).describe("Sort by a data source property."), z.object({
9
+ direction: z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending"),
10
+ timestamp: z.enum(["created_time", "last_edited_time"]).describe("Timestamp field to sort by: 'created_time' or 'last_edited_time'")
11
+ }).describe("Sort by entry timestamp.")])).describe("List of sort criteria in order of precedence. Use PropertySort for property fields or TimestampSort for creation/edit times.").optional(),
12
+ filter: z.record(z.string(), z.unknown()).describe("Filter object to limit returned entries. Supports single-property filters or compound filters using 'and'/'or'.").optional(),
13
+ page_size: z.number().int().describe("Maximum number of items to return (1-100). Defaults to 100 if omitted.").optional(),
14
+ start_cursor: z.string().describe("Cursor from a prior response's `next_cursor` for fetching the next page.").optional(),
15
+ data_source_id: z.string().describe("UUID of the Notion data source to query (with or without hyphens). URI prefixes like 'collection://' are automatically stripped."),
16
+ filter_properties: z.array(z.string()).describe("List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.").optional()
17
+ }).describe("Request model for querying a Notion data source.");
18
+ const NotionQueryDataSource_NotionHostedFileSchema = z.object({
19
+ url: z.string().describe("Authenticated URL to the file, valid for one hour."),
20
+ expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
21
+ }).describe("Notion-hosted file reference.");
22
+ const NotionQueryDataSource_ExternalFileSchema = z.object({ url: z.string().describe("HTTPS URL to the externally hosted file.") }).describe("External file reference.");
23
+ const NotionQueryDataSource_CustomEmojiSchema = z.object({
24
+ id: z.string().describe("Unique identifier of the custom emoji."),
25
+ url: z.string().describe("HTTPS URL to the custom emoji image."),
26
+ name: z.string().describe("Display name of the custom emoji.")
27
+ }).describe("Custom emoji object.");
28
+ const NotionQueryDataSource_PageIconSchema = z.object({
29
+ file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),
30
+ type: z.enum([
31
+ "emoji",
32
+ "external",
33
+ "file",
34
+ "custom_emoji"
35
+ ]).describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'."),
36
+ emoji: z.string().describe("Emoji character (only present when type is 'emoji').").nullable().optional(),
37
+ external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),
38
+ custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional()
39
+ }).describe("Page icon, which can be an emoji, external file, or uploaded file.");
40
+ const NotionQueryDataSource_PageCoverSchema = z.object({
41
+ file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),
42
+ type: z.enum(["external", "file"]).describe("Type of cover: 'external' or 'file'."),
43
+ external: NotionQueryDataSource_ExternalFileSchema.nullable().optional()
44
+ }).describe("Page cover image, which can be an external file or Notion-hosted file.");
45
+ const NotionQueryDataSource_PageParentSchema = z.object({
46
+ type: z.enum([
47
+ "data_source_id",
48
+ "database_id",
49
+ "page_id",
50
+ "workspace"
51
+ ]).describe("Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'."),
52
+ page_id: z.string().describe("UUID of the parent page (only present when type is 'page_id').").nullable().optional(),
53
+ workspace: z.boolean().describe("Always true when type is 'workspace'.").nullable().optional(),
54
+ database_id: z.string().describe("UUID of the parent database (only present when type is 'database_id').").nullable().optional(),
55
+ data_source_id: z.string().describe("UUID of the parent data source (only present when type is 'data_source_id').").nullable().optional()
56
+ }).describe("Information about the page's parent.");
57
+ const NotionQueryDataSource_BotOwnerWorkspaceSchema = z.object({
58
+ type: z.string(),
59
+ workspace: z.boolean()
60
+ }).describe("Bot owner when owned by a workspace.");
61
+ const NotionQueryDataSource_BotOwnerUserRefSchema = z.object({
62
+ id: z.string().describe("User ID of the bot owner."),
63
+ object: z.string().describe("Always 'user'.")
64
+ }).describe("Simplified user reference for bot owner to avoid circular reference.");
65
+ const NotionQueryDataSource_BotOwnerUserSchema = z.object({
66
+ type: z.string(),
67
+ user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable()
68
+ }).describe("Bot owner when owned by a user.");
69
+ const NotionQueryDataSource_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
70
+ const NotionQueryDataSource_BotDetailsSchema = z.object({
71
+ owner: z.union([NotionQueryDataSource_BotOwnerWorkspaceSchema, NotionQueryDataSource_BotOwnerUserSchema]).nullable().optional(),
72
+ workspace_id: z.string().describe("Bot's workspace ID.").nullable().optional(),
73
+ workspace_name: z.string().describe("Name of the workspace (null if owner is user).").nullable().optional(),
74
+ workspace_limits: NotionQueryDataSource_WorkspaceLimitsSchema.nullable().optional()
75
+ }).describe("Bot-specific details when user type is 'bot'.");
76
+ const NotionQueryDataSource_PersonDetailsSchema = z.object({ email: z.string().describe("Email address of the person.").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
77
+ const NotionQueryDataSource_PartialUserSchema = z.object({
78
+ id: z.string().describe("Unique identifier (UUID) of the user."),
79
+ bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),
80
+ name: z.string().describe("Display name of the user in Notion.").nullable().optional(),
81
+ type: z.enum(["person", "bot"]).describe("Type of user, either 'person' or 'bot'.").nullable().optional(),
82
+ object: z.string().describe("Always 'user'."),
83
+ person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),
84
+ avatar_url: z.string().describe("URL of the user's avatar image.").nullable().optional()
85
+ }).describe("Partial user object representing a Notion user.");
86
+ const NotionQueryDataSource_PageSchema = z.object({
87
+ id: z.string().describe("Unique identifier (UUID) of the page."),
88
+ url: z.string().describe("The URL of the Notion page.").nullable().optional(),
89
+ icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),
90
+ cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),
91
+ object: z.string().describe("Always 'page'."),
92
+ parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),
93
+ archived: z.boolean().describe("Whether the page is archived.").nullable().optional(),
94
+ in_trash: z.boolean().describe("Whether the page has been moved to trash.").nullable().optional(),
95
+ created_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),
96
+ properties: z.object({}).describe("Property values of the page, determined by the parent data source's schema. Keys are property names; values are PropertyValue objects with id, type, and type-specific fields.").nullable().optional(),
97
+ public_url: z.string().describe("The publicly accessible URL if the page has been published to the web; otherwise null.").nullable().optional(),
98
+ created_time: z.string().describe("ISO 8601 timestamp when the page was created.").nullable().optional(),
99
+ last_edited_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),
100
+ last_edited_time: z.string().describe("ISO 8601 timestamp when the page was last edited.").nullable().optional()
101
+ }).describe("Page object contained in the data source.");
102
+ const notionQueryDataSource = action("NOTION_QUERY_DATA_SOURCE", {
103
+ slug: "notion-query-data-source",
104
+ name: "Query data source",
105
+ description: "Tool to query a Notion data source. Use when you need to retrieve pages or child data sources with filters, sorts, and pagination. Make paginated requests using cursors and optional property filters for efficient data retrieval.",
106
+ input: NotionQueryDataSourceInput,
107
+ output: z.object({
108
+ object: z.string().describe("Always 'list' for paginated responses.").nullable().optional(),
109
+ results: z.array(NotionQueryDataSource_PageSchema).describe("Array of page objects contained in the data source, filtered and ordered according to the query criteria.").nullable().optional(),
110
+ has_more: z.boolean().describe("Whether there are more results available beyond this response. If true, use next_cursor to retrieve the next page.").nullable().optional(),
111
+ next_cursor: z.string().describe("Cursor value for pagination. Use this value in the next request to retrieve additional results. Null if there are no more results.").nullable().optional()
112
+ }).describe("Response model for querying a Notion data source.")
113
+ });
114
+ //#endregion
115
+ export { notionQueryDataSource };
116
+
117
+ //# sourceMappingURL=query-data-source.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-data-source.mjs","names":[],"sources":["../../src/actions/query-data-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDataSourceInput: z.ZodTypeAny = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"ID of the data source property to sort by\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).describe(\"Sort by a data source property.\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"Timestamp field to sort by: 'created_time' or 'last_edited_time'\"),\n}).describe(\"Sort by entry timestamp.\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for property fields or TimestampSort for creation/edit times.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filter object to limit returned entries. Supports single-property filters or compound filters using 'and'/'or'.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1-100). Defaults to 100 if omitted.\").optional(),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page.\").optional(),\n data_source_id: z.string().describe(\"UUID of the Notion data source to query (with or without hyphens). URI prefixes like 'collection://' are automatically stripped.\"),\n filter_properties: z.array(z.string()).describe(\"List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.\").optional(),\n}).describe(\"Request model for querying a Notion data source.\");\nconst NotionQueryDataSource_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file reference.\");\nconst NotionQueryDataSource_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\"),\n}).describe(\"External file reference.\");\nconst NotionQueryDataSource_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object.\");\nconst NotionQueryDataSource_PageIconSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"emoji\", \"external\", \"file\", \"custom_emoji\"]).describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\"),\n emoji: z.string().describe(\"Emoji character (only present when type is 'emoji').\").nullable().optional(),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, which can be an emoji, external file, or uploaded file.\");\nconst NotionQueryDataSource_PageCoverSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"external\", \"file\"]).describe(\"Type of cover: 'external' or 'file'.\"),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n}).describe(\"Page cover image, which can be an external file or Notion-hosted file.\");\nconst NotionQueryDataSource_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"data_source_id\", \"database_id\", \"page_id\", \"workspace\"]).describe(\"Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'.\"),\n page_id: z.string().describe(\"UUID of the parent page (only present when type is 'page_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n database_id: z.string().describe(\"UUID of the parent database (only present when type is 'database_id').\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source (only present when type is 'data_source_id').\").nullable().optional(),\n}).describe(\"Information about the page's parent.\");\nconst NotionQueryDataSource_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionQueryDataSource_BotOwnerUserRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User ID of the bot owner.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"Simplified user reference for bot owner to avoid circular reference.\");\nconst NotionQueryDataSource_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionQueryDataSource_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionQueryDataSource_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionQueryDataSource_BotOwnerWorkspaceSchema, NotionQueryDataSource_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionQueryDataSource_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionQueryDataSource_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionQueryDataSource_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\"),\n bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user, either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\"),\n person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDataSource_PageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the page.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),\n cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page has been moved to trash.\").nullable().optional(),\n created_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page, determined by the parent data source's schema. Keys are property names; values are PropertyValue objects with id, type, and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly accessible URL if the page has been published to the web; otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable().optional(),\n}).describe(\"Page object contained in the data source.\");\nexport const NotionQueryDataSourceOutput: z.ZodTypeAny = z.object({\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(NotionQueryDataSource_PageSchema).describe(\"Array of page objects contained in the data source, filtered and ordered according to the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond this response. If true, use next_cursor to retrieve the next page.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor value for pagination. Use this value in the next request to retrieve additional results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for querying a Notion data source.\");\n\nexport const notionQueryDataSource = action(\"NOTION_QUERY_DATA_SOURCE\", {\n slug: \"notion-query-data-source\",\n name: \"Query data source\",\n description: \"Tool to query a Notion data source. Use when you need to retrieve pages or child data sources with filters, sorts, and pagination. Make paginated requests using cursors and optional property filters for efficient data retrieval.\",\n input: NotionQueryDataSourceInput,\n output: NotionQueryDataSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;EACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACzE,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnG,CAAC,CAAC,CAAC,SAAS,iCAAiC,GAAG,EAAE,OAAO;EACvD,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACjG,WAAW,EAAE,KAAK,CAAC,gBAAgB,kBAAkB,CAAC,CAAC,CAAC,SAAS,kEAAkE;CACrI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC3L,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC/K,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,C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SAAS,CAAC,CAAC,SAAS;EAC7L,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,172 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/query-database-with-filter.ts
4
+ const NotionQueryDatabaseWithFilterInput = zod.z.object({
5
+ sorts: zod.z.array(zod.z.union([zod.z.object({
6
+ property: zod.z.string().describe("Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead."),
7
+ direction: zod.z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending")
8
+ }).describe("Sort by a database property name or ID (NOT for system timestamps)."), zod.z.object({
9
+ direction: zod.z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending"),
10
+ timestamp: zod.z.enum(["created_time", "last_edited_time"]).describe("System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.")
11
+ }).describe("Sort by a system timestamp field (created or last edited time).")])).describe("List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.").optional(),
12
+ filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\"and\": [{\"property\": \"Name\", \"title\": {...}}, {\"property\": \"Description\", \"rich_text\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\"created_time\": {\"on_or_after\": \"2024-01-01\"}} - auto-transformed to correct API format. Filter structure for database properties: {\"property\": \"<property_name>\", \"<filter_type>\": {\"<condition>\": \"<value>\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\"rollup\": {\"contains\": \"value\"}}. Instead use one of: (1) {\"rollup\": {\"any\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\"rollup\": {\"every\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\"rollup\": {\"none\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\"rollup\": {\"number\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\"rollup\": {\"date\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\"and\": [<filter1>, <filter2>]} or {\"or\": [<filter1>, <filter2>]}.").optional(),
13
+ page_size: zod.z.number().int().describe("Maximum number of items to return (1–100). Defaults to 100 if omitted.").optional(),
14
+ database_id: zod.z.string().describe("The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration."),
15
+ start_cursor: zod.z.string().describe("Cursor from a prior response's `next_cursor` for fetching the next page. Use the exact cursor value returned by Notion.").optional(),
16
+ composio_execution_message: zod.z.string().describe("Internal message about any automatic conversions made during execution.").optional()
17
+ });
18
+ const NotionQueryDatabaseWithFilter_EmojiIconSchema = zod.z.object({
19
+ type: zod.z.string().describe("Always set to 'emoji'."),
20
+ emoji: zod.z.string().describe("The emoji character.")
21
+ }).describe("Emoji icon.");
22
+ const NotionQueryDatabaseWithFilter_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to the externally hosted file.") }).describe("External file reference.");
23
+ const NotionQueryDatabaseWithFilter_ExternalFileIconSchema = zod.z.object({
24
+ type: zod.z.string().describe("Set to 'external' for externally hosted files."),
25
+ external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable()
26
+ }).describe("External file icon.");
27
+ const NotionQueryDatabaseWithFilter_NotionFileSchema = zod.z.object({
28
+ url: zod.z.string().describe("Authenticated URL to the file, valid for one hour."),
29
+ expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
30
+ }).describe("Notion-hosted file reference.");
31
+ const NotionQueryDatabaseWithFilter_NotionFileIconSchema = zod.z.object({
32
+ file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),
33
+ type: zod.z.string().describe("Set to 'file' for Notion-hosted files.")
34
+ }).describe("Notion-hosted file icon.");
35
+ const NotionQueryDatabaseWithFilter_CustomEmojiSchema = zod.z.object({
36
+ id: zod.z.string().describe("Unique identifier for the custom emoji."),
37
+ url: zod.z.string().describe("Public URL where the custom emoji image is hosted."),
38
+ name: zod.z.string().describe("Name of the custom emoji.")
39
+ }).describe("Custom emoji details.");
40
+ const NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = zod.z.object({
41
+ type: zod.z.string().describe("Set to 'custom_emoji' for custom emojis."),
42
+ custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable()
43
+ }).describe("Custom emoji icon.");
44
+ const NotionQueryDatabaseWithFilter_ExternalCoverSchema = zod.z.object({
45
+ type: zod.z.string().describe("Set to 'external' for externally hosted files."),
46
+ external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable()
47
+ }).describe("External cover image.");
48
+ const NotionQueryDatabaseWithFilter_NotionFileCoverSchema = zod.z.object({
49
+ file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),
50
+ type: zod.z.string().describe("Set to 'file' for Notion-hosted files.")
51
+ }).describe("Notion-hosted cover image.");
52
+ const NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = zod.z.object({
53
+ type: zod.z.string().describe("Set to 'database_id' for database parents."),
54
+ database_id: zod.z.string().describe("UUIDv4 identifier of the parent database.")
55
+ }).describe("Database parent.");
56
+ const NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = zod.z.object({
57
+ type: zod.z.string().describe("Set to 'data_source_id' for data source parents."),
58
+ database_id: zod.z.string().describe("UUIDv4 identifier of the parent database (convenience field)."),
59
+ data_source_id: zod.z.string().describe("UUIDv4 identifier of the parent data source.")
60
+ }).describe("Data source parent.");
61
+ const NotionQueryDatabaseWithFilter_PageIdParentSchema = zod.z.object({
62
+ type: zod.z.string().describe("Set to 'page_id' for page parents."),
63
+ page_id: zod.z.string().describe("UUIDv4 identifier of the parent page.")
64
+ }).describe("Page parent.");
65
+ const NotionQueryDatabaseWithFilter_WorkspaceParentSchema = zod.z.object({
66
+ type: zod.z.string().describe("Set to 'workspace' for workspace parents."),
67
+ workspace: zod.z.boolean().describe("Always set to true for workspace parents.")
68
+ }).describe("Workspace parent.");
69
+ const NotionQueryDatabaseWithFilter_BlockIdParentSchema = zod.z.object({
70
+ type: zod.z.string().describe("Set to 'block_id' for block parents."),
71
+ block_id: zod.z.string().describe("UUIDv4 identifier of the parent block.")
72
+ }).describe("Block parent.");
73
+ const NotionQueryDatabaseWithFilter_PartialUserSchema = zod.z.object({
74
+ id: zod.z.string().describe("Unique identifier for the user (UUID format)."),
75
+ object: zod.z.string().describe("Always set to 'user'.")
76
+ }).describe("Partial user object representing a Notion user.");
77
+ const NotionQueryDatabaseWithFilter_PageSchema = zod.z.object({
78
+ id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format)."),
79
+ url: zod.z.string().describe("The Notion URL of the page.").nullable().optional(),
80
+ icon: zod.z.union([
81
+ NotionQueryDatabaseWithFilter_EmojiIconSchema,
82
+ NotionQueryDatabaseWithFilter_ExternalFileIconSchema,
83
+ NotionQueryDatabaseWithFilter_NotionFileIconSchema,
84
+ NotionQueryDatabaseWithFilter_CustomEmojiIconSchema
85
+ ]).nullable().optional(),
86
+ cover: zod.z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),
87
+ object: zod.z.string().describe("Always set to 'page'."),
88
+ parent: zod.z.union([
89
+ NotionQueryDatabaseWithFilter_DatabaseIdParentSchema,
90
+ NotionQueryDatabaseWithFilter_DataSourceIdParentSchema,
91
+ NotionQueryDatabaseWithFilter_PageIdParentSchema,
92
+ NotionQueryDatabaseWithFilter_WorkspaceParentSchema,
93
+ NotionQueryDatabaseWithFilter_BlockIdParentSchema
94
+ ]).nullable().optional(),
95
+ archived: zod.z.boolean().describe("Whether the page is archived.").nullable().optional(),
96
+ in_trash: zod.z.boolean().describe("Whether the page is in trash.").nullable().optional(),
97
+ created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),
98
+ properties: zod.z.object({}).describe("Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.").nullable().optional(),
99
+ public_url: zod.z.string().describe("The public URL of the page if it has been published, otherwise null.").nullable().optional(),
100
+ created_time: zod.z.string().describe("ISO 8601 timestamp of when the page was created.").nullable().optional(),
101
+ last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),
102
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the page was last edited.").nullable().optional()
103
+ }).describe("Notion page object.");
104
+ const NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = zod.z.object({
105
+ bold: zod.z.boolean().describe("Whether the text is bold."),
106
+ code: zod.z.boolean().describe("Whether the text is formatted as code."),
107
+ color: zod.z.string().describe("Text color, can be 'default', 'blue', 'green', 'red', or background variants."),
108
+ italic: zod.z.boolean().describe("Whether the text is italic."),
109
+ underline: zod.z.boolean().describe("Whether the text is underlined."),
110
+ strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
111
+ }).describe("Styling configuration for rich text.");
112
+ const NotionQueryDatabaseWithFilter_RichTextSchema = zod.z.object({
113
+ href: zod.z.string().describe("URL for links or Notion mentions, null if not a link.").nullable().optional(),
114
+ type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
115
+ plain_text: zod.z.string().describe("Unformatted text content."),
116
+ annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable()
117
+ }).describe("Rich text object for Notion text content.");
118
+ const NotionQueryDatabaseWithFilter_DataSourceSchema = zod.z.object({
119
+ id: zod.z.string().describe("Unique identifier of the data source."),
120
+ name: zod.z.string().describe("Name of the data source.")
121
+ }).describe("Data source in a database.");
122
+ const NotionQueryDatabaseWithFilter_DatabaseSchema = zod.z.object({
123
+ id: zod.z.string().describe("Unique identifier of the database (UUID format)."),
124
+ url: zod.z.string().describe("The Notion URL of the database."),
125
+ icon: zod.z.union([
126
+ NotionQueryDatabaseWithFilter_EmojiIconSchema,
127
+ NotionQueryDatabaseWithFilter_ExternalFileIconSchema,
128
+ NotionQueryDatabaseWithFilter_NotionFileIconSchema,
129
+ NotionQueryDatabaseWithFilter_CustomEmojiIconSchema
130
+ ]).nullable().optional(),
131
+ cover: zod.z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),
132
+ title: zod.z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe("Database name as displayed in Notion, represented as an array of rich text objects."),
133
+ object: zod.z.string().describe("Always set to 'database'."),
134
+ parent: zod.z.union([
135
+ NotionQueryDatabaseWithFilter_DatabaseIdParentSchema,
136
+ NotionQueryDatabaseWithFilter_DataSourceIdParentSchema,
137
+ NotionQueryDatabaseWithFilter_PageIdParentSchema,
138
+ NotionQueryDatabaseWithFilter_WorkspaceParentSchema,
139
+ NotionQueryDatabaseWithFilter_BlockIdParentSchema
140
+ ]),
141
+ archived: zod.z.boolean().describe("Whether the database is archived."),
142
+ in_trash: zod.z.boolean().describe("Whether the database is in trash."),
143
+ is_inline: zod.z.boolean().describe("Whether the database is displayed inline (true) or as a full page (false)."),
144
+ created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),
145
+ public_url: zod.z.string().describe("The public URL of the database if it has been published, otherwise null.").nullable().optional(),
146
+ description: zod.z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe("Database description as an array of rich text objects.").nullable().optional(),
147
+ created_time: zod.z.string().describe("ISO 8601 timestamp of when the database was created."),
148
+ data_sources: zod.z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe("List of child data sources in the database."),
149
+ last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),
150
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.")
151
+ }).describe("Notion database object.");
152
+ const NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = zod.z.object({}).describe("Type-specific pagination metadata for page_or_database list responses.\nFor database query responses, this is always an empty object per the Notion API spec.");
153
+ const NotionQueryDatabaseWithFilterOutput = zod.z.object({
154
+ type: zod.z.string().describe("Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses."),
155
+ object: zod.z.string().describe("Always set to 'list' for paginated responses."),
156
+ results: zod.z.array(zod.z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe("Array of page and/or database objects matching the query criteria."),
157
+ has_more: zod.z.boolean().describe("Whether there are more results available beyond the current page. Returns false when the response includes the end of the list, otherwise true."),
158
+ next_cursor: zod.z.string().describe("Pagination cursor for retrieving the next page of results. Only present when has_more is true. Pass this value as start_cursor in the next request.").nullable().optional(),
159
+ page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),
160
+ composio_execution_message: zod.z.string().describe("Message about any automatic conversions made during request processing.").nullable().optional()
161
+ }).describe("Response from querying a Notion database.");
162
+ const notionQueryDatabaseWithFilter = require_action.action("NOTION_QUERY_DATABASE_WITH_FILTER", {
163
+ slug: "notion-query-database-with-filter",
164
+ name: "Query database with filter",
165
+ description: "Tool to query a Notion database with server-side filtering, sorting, and pagination. Use when you need to retrieve a subset of rows by property, date, status, or other conditions.",
166
+ input: NotionQueryDatabaseWithFilterInput,
167
+ output: NotionQueryDatabaseWithFilterOutput
168
+ });
169
+ //#endregion
170
+ exports.notionQueryDatabaseWithFilter = notionQueryDatabaseWithFilter;
171
+
172
+ //# sourceMappingURL=query-database-with-filter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-database-with-filter.cjs","names":["z","action"],"sources":["../../src/actions/query-database-with-filter.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDatabaseWithFilterInput: z.ZodTypeAny = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead.\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).describe(\"Sort by a database property name or ID (NOT for system timestamps).\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.\"),\n}).describe(\"Sort by a system timestamp field (created or last edited time).\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\\\"and\\\": [{\\\"property\\\": \\\"Name\\\", \\\"title\\\": {...}}, {\\\"property\\\": \\\"Description\\\", \\\"rich_text\\\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\\\"created_time\\\": {\\\"on_or_after\\\": \\\"2024-01-01\\\"}} - auto-transformed to correct API format. Filter structure for database properties: {\\\"property\\\": \\\"<property_name>\\\", \\\"<filter_type>\\\": {\\\"<condition>\\\": \\\"<value>\\\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\\\"rollup\\\": {\\\"contains\\\": \\\"value\\\"}}. Instead use one of: (1) {\\\"rollup\\\": {\\\"any\\\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\\\"rollup\\\": {\\\"every\\\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\\\"rollup\\\": {\\\"none\\\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\\\"rollup\\\": {\\\"number\\\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\\\"rollup\\\": {\\\"date\\\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\\\"and\\\": [<filter1>, <filter2>]} or {\\\"or\\\": [<filter1>, <filter2>]}.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1–100). Defaults to 100 if omitted.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration.\"),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page. Use the exact cursor value returned by Notion.\").optional(),\n composio_execution_message: z.string().describe(\"Internal message about any automatic conversions made during execution.\").optional(),\n});\nconst NotionQueryDatabaseWithFilter_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always set to 'emoji'.\"),\n emoji: z.string().describe(\"The emoji character.\"),\n}).describe(\"Emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\"),\n}).describe(\"External file reference.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\"),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).describe(\"External file icon.\");\nconst NotionQueryDatabaseWithFilter_NotionFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file reference.\");\nconst NotionQueryDatabaseWithFilter_NotionFileIconSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\"),\n}).describe(\"Notion-hosted file icon.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"Public URL where the custom emoji image is hosted.\"),\n name: z.string().describe(\"Name of the custom emoji.\"),\n}).describe(\"Custom emoji details.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'custom_emoji' for custom emojis.\"),\n custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalCoverSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\"),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).describe(\"External cover image.\");\nconst NotionQueryDatabaseWithFilter_NotionFileCoverSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\"),\n}).describe(\"Notion-hosted cover image.\");\nconst NotionQueryDatabaseWithFilter_DatabaseIdParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'database_id' for database parents.\"),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database.\"),\n}).describe(\"Database parent.\");\nconst NotionQueryDatabaseWithFilter_DataSourceIdParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'data_source_id' for data source parents.\"),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (convenience field).\"),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source.\"),\n}).describe(\"Data source parent.\");\nconst NotionQueryDatabaseWithFilter_PageIdParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'page_id' for page parents.\"),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page.\"),\n}).describe(\"Page parent.\");\nconst NotionQueryDatabaseWithFilter_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'workspace' for workspace parents.\"),\n workspace: z.boolean().describe(\"Always set to true for workspace parents.\"),\n}).describe(\"Workspace parent.\");\nconst NotionQueryDatabaseWithFilter_BlockIdParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Set to 'block_id' for block parents.\"),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block.\"),\n}).describe(\"Block parent.\");\nconst NotionQueryDatabaseWithFilter_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\"),\n object: z.string().describe(\"Always set to 'user'.\"),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDatabaseWithFilter_PageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always set to 'page'.\"),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the page was last edited.\").nullable().optional(),\n}).describe(\"Notion page object.\");\nconst NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema: z.ZodTypeAny = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\"),\n code: z.boolean().describe(\"Whether the text is formatted as code.\"),\n color: z.string().describe(\"Text color, can be 'default', 'blue', 'green', 'red', or background variants.\"),\n italic: z.boolean().describe(\"Whether the text is italic.\"),\n underline: z.boolean().describe(\"Whether the text is underlined.\"),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\"),\n}).describe(\"Styling configuration for rich text.\");\nconst NotionQueryDatabaseWithFilter_RichTextSchema: z.ZodTypeAny = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, null if not a link.\").nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\"),\n plain_text: z.string().describe(\"Unformatted text content.\"),\n annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable(),\n}).describe(\"Rich text object for Notion text content.\");\nconst NotionQueryDatabaseWithFilter_DataSourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the data source.\"),\n name: z.string().describe(\"Name of the data source.\"),\n}).describe(\"Data source in a database.\");\nconst NotionQueryDatabaseWithFilter_DatabaseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the database (UUID format).\"),\n url: z.string().describe(\"The Notion URL of the database.\"),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database name as displayed in Notion, represented as an array of rich text objects.\"),\n object: z.string().describe(\"Always set to 'database'.\"),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\"),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\"),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline (true) or as a full page (false).\"),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n public_url: z.string().describe(\"The public URL of the database if it has been published, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\"),\n data_sources: z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe(\"List of child data sources in the database.\"),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\"),\n}).describe(\"Notion database object.\");\nconst NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema: z.ZodTypeAny = z.object({}).describe(\"Type-specific pagination metadata for page_or_database list responses.\\nFor database query responses, this is always an empty object per the Notion API spec.\");\nexport const NotionQueryDatabaseWithFilterOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.\"),\n object: z.string().describe(\"Always set to 'list' for paginated responses.\"),\n results: z.array(z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe(\"Array of page and/or database objects matching the query criteria.\"),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page. Returns false when the response includes the end of the list, otherwise true.\"),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Only present when has_more is true. Pass this value as start_cursor in the next request.\").nullable().optional(),\n page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),\n composio_execution_message: z.string().describe(\"Message about any automatic conversions made during request processing.\").nullable().optional(),\n}).describe(\"Response from querying a Notion database.\");\n\nexport const notionQueryDatabaseWithFilter = action(\"NOTION_QUERY_DATABASE_WITH_FILTER\", {\n slug: \"notion-query-database-with-filter\",\n name: \"Query database with filter\",\n description: \"Tool to query a Notion database with server-side filtering, sorting, and pagination. Use when you need to retrieve a subset of rows by property, date, status, or other conditions.\",\n input: NotionQueryDatabaseWithFilterInput,\n output: NotionQueryDatabaseWithFilterOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EACjC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC9K,WAAWA,IAAAA,E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EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACvI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,0CAA0C,4CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;CACjM,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iJAAiJ;CAChL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5M,kBAAkB,2DAA2D,SAAS;CACtF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/query-database-with-filter.d.ts
4
+ declare const NotionQueryDatabaseWithFilterInput: z.ZodTypeAny;
5
+ declare const NotionQueryDatabaseWithFilterOutput: z.ZodTypeAny;
6
+ declare const notionQueryDatabaseWithFilter: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { notionQueryDatabaseWithFilter };
9
+ //# sourceMappingURL=query-database-with-filter.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-database-with-filter.d.cts","names":[],"sources":["../../src/actions/query-database-with-filter.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAajD;AAAA,cAoHW,mCAAA,EAAqC,CAAA,CAAE,UAQI;AAAA,cAE3C,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/query-database-with-filter.d.ts
4
+ declare const NotionQueryDatabaseWithFilterInput: z.ZodTypeAny;
5
+ declare const NotionQueryDatabaseWithFilterOutput: z.ZodTypeAny;
6
+ declare const notionQueryDatabaseWithFilter: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { notionQueryDatabaseWithFilter };
9
+ //# sourceMappingURL=query-database-with-filter.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-database-with-filter.d.mts","names":[],"sources":["../../src/actions/query-database-with-filter.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAajD;AAAA,cAoHW,mCAAA,EAAqC,CAAA,CAAE,UAQI;AAAA,cAE3C,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}