@keystrokehq/notion 0.0.16 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/README.md +11 -41
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-multiple-page-content.cjs +80 -0
  7. package/dist/actions/add-multiple-page-content.cjs.map +1 -0
  8. package/dist/actions/add-multiple-page-content.d.cts +94 -0
  9. package/dist/actions/add-multiple-page-content.d.cts.map +1 -0
  10. package/dist/actions/add-multiple-page-content.d.mts +94 -0
  11. package/dist/actions/add-multiple-page-content.d.mts.map +1 -0
  12. package/dist/actions/add-multiple-page-content.mjs +79 -0
  13. package/dist/actions/add-multiple-page-content.mjs.map +1 -0
  14. package/dist/actions/append-code-blocks.cjs +446 -0
  15. package/dist/actions/append-code-blocks.cjs.map +1 -0
  16. package/dist/actions/append-code-blocks.d.cts +855 -0
  17. package/dist/actions/append-code-blocks.d.cts.map +1 -0
  18. package/dist/actions/append-code-blocks.d.mts +855 -0
  19. package/dist/actions/append-code-blocks.d.mts.map +1 -0
  20. package/dist/actions/append-code-blocks.mjs +445 -0
  21. package/dist/actions/append-code-blocks.mjs.map +1 -0
  22. package/dist/actions/append-layout-blocks.cjs +278 -0
  23. package/dist/actions/append-layout-blocks.cjs.map +1 -0
  24. package/dist/actions/append-layout-blocks.d.cts +648 -0
  25. package/dist/actions/append-layout-blocks.d.cts.map +1 -0
  26. package/dist/actions/append-layout-blocks.d.mts +648 -0
  27. package/dist/actions/append-layout-blocks.d.mts.map +1 -0
  28. package/dist/actions/append-layout-blocks.mjs +277 -0
  29. package/dist/actions/append-layout-blocks.mjs.map +1 -0
  30. package/dist/actions/append-media-blocks.cjs +491 -0
  31. package/dist/actions/append-media-blocks.cjs.map +1 -0
  32. package/dist/actions/append-media-blocks.d.cts +1002 -0
  33. package/dist/actions/append-media-blocks.d.cts.map +1 -0
  34. package/dist/actions/append-media-blocks.d.mts +1002 -0
  35. package/dist/actions/append-media-blocks.d.mts.map +1 -0
  36. package/dist/actions/append-media-blocks.mjs +490 -0
  37. package/dist/actions/append-media-blocks.mjs.map +1 -0
  38. package/dist/actions/append-table-blocks.cjs +267 -0
  39. package/dist/actions/append-table-blocks.cjs.map +1 -0
  40. package/dist/actions/append-table-blocks.d.cts +630 -0
  41. package/dist/actions/append-table-blocks.d.cts.map +1 -0
  42. package/dist/actions/append-table-blocks.d.mts +630 -0
  43. package/dist/actions/append-table-blocks.d.mts.map +1 -0
  44. package/dist/actions/append-table-blocks.mjs +266 -0
  45. package/dist/actions/append-table-blocks.mjs.map +1 -0
  46. package/dist/actions/append-task-blocks.cjs +420 -0
  47. package/dist/actions/append-task-blocks.cjs.map +1 -0
  48. package/dist/actions/append-task-blocks.d.cts +832 -0
  49. package/dist/actions/append-task-blocks.d.cts.map +1 -0
  50. package/dist/actions/append-task-blocks.d.mts +832 -0
  51. package/dist/actions/append-task-blocks.d.mts.map +1 -0
  52. package/dist/actions/append-task-blocks.mjs +419 -0
  53. package/dist/actions/append-task-blocks.mjs.map +1 -0
  54. package/dist/actions/append-text-blocks.cjs +604 -0
  55. package/dist/actions/append-text-blocks.cjs.map +1 -0
  56. package/dist/actions/append-text-blocks.d.cts +1086 -0
  57. package/dist/actions/append-text-blocks.d.cts.map +1 -0
  58. package/dist/actions/append-text-blocks.d.mts +1086 -0
  59. package/dist/actions/append-text-blocks.d.mts.map +1 -0
  60. package/dist/actions/append-text-blocks.mjs +603 -0
  61. package/dist/actions/append-text-blocks.mjs.map +1 -0
  62. package/dist/actions/archive-notion-page.cjs +104 -0
  63. package/dist/actions/archive-notion-page.cjs.map +1 -0
  64. package/dist/actions/archive-notion-page.d.cts +84 -0
  65. package/dist/actions/archive-notion-page.d.cts.map +1 -0
  66. package/dist/actions/archive-notion-page.d.mts +84 -0
  67. package/dist/actions/archive-notion-page.d.mts.map +1 -0
  68. package/dist/actions/archive-notion-page.mjs +103 -0
  69. package/dist/actions/archive-notion-page.mjs.map +1 -0
  70. package/dist/actions/create-comment.cjs +45 -0
  71. package/dist/actions/create-comment.cjs.map +1 -0
  72. package/dist/actions/create-comment.d.cts +52 -0
  73. package/dist/actions/create-comment.d.cts.map +1 -0
  74. package/dist/actions/create-comment.d.mts +52 -0
  75. package/dist/actions/create-comment.d.mts.map +1 -0
  76. package/dist/actions/create-comment.mjs +42 -0
  77. package/dist/actions/create-comment.mjs.map +1 -0
  78. package/dist/actions/create-database.cjs +125 -0
  79. package/dist/actions/create-database.cjs.map +1 -0
  80. package/dist/actions/create-database.d.cts +145 -0
  81. package/dist/actions/create-database.d.cts.map +1 -0
  82. package/dist/actions/create-database.d.mts +145 -0
  83. package/dist/actions/create-database.d.mts.map +1 -0
  84. package/dist/actions/create-database.mjs +124 -0
  85. package/dist/actions/create-database.mjs.map +1 -0
  86. package/dist/actions/create-file-upload.cjs +45 -0
  87. package/dist/actions/create-file-upload.cjs.map +1 -0
  88. package/dist/actions/create-file-upload.d.cts +44 -0
  89. package/dist/actions/create-file-upload.d.cts.map +1 -0
  90. package/dist/actions/create-file-upload.d.mts +44 -0
  91. package/dist/actions/create-file-upload.d.mts.map +1 -0
  92. package/dist/actions/create-file-upload.mjs +42 -0
  93. package/dist/actions/create-file-upload.mjs.map +1 -0
  94. package/dist/actions/create-notion-page.cjs +94 -0
  95. package/dist/actions/create-notion-page.cjs.map +1 -0
  96. package/dist/actions/create-notion-page.d.cts +89 -0
  97. package/dist/actions/create-notion-page.d.cts.map +1 -0
  98. package/dist/actions/create-notion-page.d.mts +89 -0
  99. package/dist/actions/create-notion-page.d.mts.map +1 -0
  100. package/dist/actions/create-notion-page.mjs +93 -0
  101. package/dist/actions/create-notion-page.mjs.map +1 -0
  102. package/dist/actions/delete-block.cjs +411 -0
  103. package/dist/actions/delete-block.cjs.map +1 -0
  104. package/dist/actions/delete-block.d.cts +2187 -0
  105. package/dist/actions/delete-block.d.cts.map +1 -0
  106. package/dist/actions/delete-block.d.mts +2187 -0
  107. package/dist/actions/delete-block.d.mts.map +1 -0
  108. package/dist/actions/delete-block.mjs +410 -0
  109. package/dist/actions/delete-block.mjs.map +1 -0
  110. package/dist/actions/duplicate-page.cjs +119 -0
  111. package/dist/actions/duplicate-page.cjs.map +1 -0
  112. package/dist/actions/duplicate-page.d.cts +96 -0
  113. package/dist/actions/duplicate-page.d.cts.map +1 -0
  114. package/dist/actions/duplicate-page.d.mts +96 -0
  115. package/dist/actions/duplicate-page.d.mts.map +1 -0
  116. package/dist/actions/duplicate-page.mjs +118 -0
  117. package/dist/actions/duplicate-page.mjs.map +1 -0
  118. package/dist/actions/fetch-all-block-contents.cjs +270 -0
  119. package/dist/actions/fetch-all-block-contents.cjs.map +1 -0
  120. package/dist/actions/fetch-all-block-contents.d.cts +44 -0
  121. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -0
  122. package/dist/actions/fetch-all-block-contents.d.mts +44 -0
  123. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -0
  124. package/dist/actions/fetch-all-block-contents.mjs +269 -0
  125. package/dist/actions/fetch-all-block-contents.mjs.map +1 -0
  126. package/dist/actions/fetch-block-contents.cjs +232 -0
  127. package/dist/actions/fetch-block-contents.cjs.map +1 -0
  128. package/dist/actions/fetch-block-contents.d.cts +693 -0
  129. package/dist/actions/fetch-block-contents.d.cts.map +1 -0
  130. package/dist/actions/fetch-block-contents.d.mts +693 -0
  131. package/dist/actions/fetch-block-contents.d.mts.map +1 -0
  132. package/dist/actions/fetch-block-contents.mjs +231 -0
  133. package/dist/actions/fetch-block-contents.mjs.map +1 -0
  134. package/dist/actions/fetch-block-metadata.cjs +406 -0
  135. package/dist/actions/fetch-block-metadata.cjs.map +1 -0
  136. package/dist/actions/fetch-block-metadata.d.cts +2109 -0
  137. package/dist/actions/fetch-block-metadata.d.cts.map +1 -0
  138. package/dist/actions/fetch-block-metadata.d.mts +2109 -0
  139. package/dist/actions/fetch-block-metadata.d.mts.map +1 -0
  140. package/dist/actions/fetch-block-metadata.mjs +405 -0
  141. package/dist/actions/fetch-block-metadata.mjs.map +1 -0
  142. package/dist/actions/fetch-comments.cjs +136 -0
  143. package/dist/actions/fetch-comments.cjs.map +1 -0
  144. package/dist/actions/fetch-comments.d.cts +154 -0
  145. package/dist/actions/fetch-comments.d.cts.map +1 -0
  146. package/dist/actions/fetch-comments.d.mts +154 -0
  147. package/dist/actions/fetch-comments.d.mts.map +1 -0
  148. package/dist/actions/fetch-comments.mjs +135 -0
  149. package/dist/actions/fetch-comments.mjs.map +1 -0
  150. package/dist/actions/fetch-data.cjs +227 -0
  151. package/dist/actions/fetch-data.cjs.map +1 -0
  152. package/dist/actions/fetch-data.d.cts +600 -0
  153. package/dist/actions/fetch-data.d.cts.map +1 -0
  154. package/dist/actions/fetch-data.d.mts +600 -0
  155. package/dist/actions/fetch-data.d.mts.map +1 -0
  156. package/dist/actions/fetch-data.mjs +226 -0
  157. package/dist/actions/fetch-data.mjs.map +1 -0
  158. package/dist/actions/fetch-database.cjs +84 -0
  159. package/dist/actions/fetch-database.cjs.map +1 -0
  160. package/dist/actions/fetch-database.d.cts +95 -0
  161. package/dist/actions/fetch-database.d.cts.map +1 -0
  162. package/dist/actions/fetch-database.d.mts +95 -0
  163. package/dist/actions/fetch-database.d.mts.map +1 -0
  164. package/dist/actions/fetch-database.mjs +83 -0
  165. package/dist/actions/fetch-database.mjs.map +1 -0
  166. package/dist/actions/fetch-row.cjs +133 -0
  167. package/dist/actions/fetch-row.cjs.map +1 -0
  168. package/dist/actions/fetch-row.d.cts +157 -0
  169. package/dist/actions/fetch-row.d.cts.map +1 -0
  170. package/dist/actions/fetch-row.d.mts +157 -0
  171. package/dist/actions/fetch-row.d.mts.map +1 -0
  172. package/dist/actions/fetch-row.mjs +132 -0
  173. package/dist/actions/fetch-row.mjs.map +1 -0
  174. package/dist/actions/get-about-user.cjs +46 -0
  175. package/dist/actions/get-about-user.cjs.map +1 -0
  176. package/dist/actions/get-about-user.d.cts +50 -0
  177. package/dist/actions/get-about-user.d.cts.map +1 -0
  178. package/dist/actions/get-about-user.d.mts +50 -0
  179. package/dist/actions/get-about-user.d.mts.map +1 -0
  180. package/dist/actions/get-about-user.mjs +45 -0
  181. package/dist/actions/get-about-user.mjs.map +1 -0
  182. package/dist/actions/get-page-markdown.cjs +25 -0
  183. package/dist/actions/get-page-markdown.cjs.map +1 -0
  184. package/dist/actions/get-page-markdown.d.cts +21 -0
  185. package/dist/actions/get-page-markdown.d.cts.map +1 -0
  186. package/dist/actions/get-page-markdown.d.mts +21 -0
  187. package/dist/actions/get-page-markdown.d.mts.map +1 -0
  188. package/dist/actions/get-page-markdown.mjs +22 -0
  189. package/dist/actions/get-page-markdown.mjs.map +1 -0
  190. package/dist/actions/get-page-property-action.cjs +21 -0
  191. package/dist/actions/get-page-property-action.cjs.map +1 -0
  192. package/dist/actions/get-page-property-action.d.cts +19 -0
  193. package/dist/actions/get-page-property-action.d.cts.map +1 -0
  194. package/dist/actions/get-page-property-action.d.mts +19 -0
  195. package/dist/actions/get-page-property-action.d.mts.map +1 -0
  196. package/dist/actions/get-page-property-action.mjs +18 -0
  197. package/dist/actions/get-page-property-action.mjs.map +1 -0
  198. package/dist/actions/index.cjs +91 -0
  199. package/dist/actions/index.d.cts +46 -0
  200. package/dist/actions/index.d.mts +46 -0
  201. package/dist/actions/index.mjs +46 -0
  202. package/dist/actions/insert-row-database.cjs +176 -0
  203. package/dist/actions/insert-row-database.cjs.map +1 -0
  204. package/dist/actions/insert-row-database.d.cts +169 -0
  205. package/dist/actions/insert-row-database.d.cts.map +1 -0
  206. package/dist/actions/insert-row-database.d.mts +169 -0
  207. package/dist/actions/insert-row-database.d.mts.map +1 -0
  208. package/dist/actions/insert-row-database.mjs +175 -0
  209. package/dist/actions/insert-row-database.mjs.map +1 -0
  210. package/dist/actions/insert-row-from-nl.cjs +27 -0
  211. package/dist/actions/insert-row-from-nl.cjs.map +1 -0
  212. package/dist/actions/insert-row-from-nl.d.cts +25 -0
  213. package/dist/actions/insert-row-from-nl.d.cts.map +1 -0
  214. package/dist/actions/insert-row-from-nl.d.mts +25 -0
  215. package/dist/actions/insert-row-from-nl.d.mts.map +1 -0
  216. package/dist/actions/insert-row-from-nl.mjs +24 -0
  217. package/dist/actions/insert-row-from-nl.mjs.map +1 -0
  218. package/dist/actions/list-data-source-templates.cjs +29 -0
  219. package/dist/actions/list-data-source-templates.cjs.map +1 -0
  220. package/dist/actions/list-data-source-templates.d.cts +25 -0
  221. package/dist/actions/list-data-source-templates.d.cts.map +1 -0
  222. package/dist/actions/list-data-source-templates.d.mts +25 -0
  223. package/dist/actions/list-data-source-templates.d.mts.map +1 -0
  224. package/dist/actions/list-data-source-templates.mjs +28 -0
  225. package/dist/actions/list-data-source-templates.mjs.map +1 -0
  226. package/dist/actions/list-file-uploads.cjs +43 -0
  227. package/dist/actions/list-file-uploads.cjs.map +1 -0
  228. package/dist/actions/list-file-uploads.d.cts +38 -0
  229. package/dist/actions/list-file-uploads.d.cts.map +1 -0
  230. package/dist/actions/list-file-uploads.d.mts +38 -0
  231. package/dist/actions/list-file-uploads.d.mts.map +1 -0
  232. package/dist/actions/list-file-uploads.mjs +42 -0
  233. package/dist/actions/list-file-uploads.mjs.map +1 -0
  234. package/dist/actions/list-users.cjs +58 -0
  235. package/dist/actions/list-users.cjs.map +1 -0
  236. package/dist/actions/list-users.d.cts +64 -0
  237. package/dist/actions/list-users.d.cts.map +1 -0
  238. package/dist/actions/list-users.d.mts +64 -0
  239. package/dist/actions/list-users.d.mts.map +1 -0
  240. package/dist/actions/list-users.mjs +57 -0
  241. package/dist/actions/list-users.mjs.map +1 -0
  242. package/dist/actions/move-page.cjs +110 -0
  243. package/dist/actions/move-page.cjs.map +1 -0
  244. package/dist/actions/move-page.d.cts +96 -0
  245. package/dist/actions/move-page.d.cts.map +1 -0
  246. package/dist/actions/move-page.d.mts +96 -0
  247. package/dist/actions/move-page.d.mts.map +1 -0
  248. package/dist/actions/move-page.mjs +109 -0
  249. package/dist/actions/move-page.mjs.map +1 -0
  250. package/dist/actions/query-data-source.cjs +118 -0
  251. package/dist/actions/query-data-source.cjs.map +1 -0
  252. package/dist/actions/query-data-source.d.cts +165 -0
  253. package/dist/actions/query-data-source.d.cts.map +1 -0
  254. package/dist/actions/query-data-source.d.mts +165 -0
  255. package/dist/actions/query-data-source.d.mts.map +1 -0
  256. package/dist/actions/query-data-source.mjs +117 -0
  257. package/dist/actions/query-data-source.mjs.map +1 -0
  258. package/dist/actions/query-database-with-filter.cjs +172 -0
  259. package/dist/actions/query-database-with-filter.cjs.map +1 -0
  260. package/dist/actions/query-database-with-filter.d.cts +220 -0
  261. package/dist/actions/query-database-with-filter.d.cts.map +1 -0
  262. package/dist/actions/query-database-with-filter.d.mts +220 -0
  263. package/dist/actions/query-database-with-filter.d.mts.map +1 -0
  264. package/dist/actions/query-database-with-filter.mjs +171 -0
  265. package/dist/actions/query-database-with-filter.mjs.map +1 -0
  266. package/dist/actions/query-database.cjs +171 -0
  267. package/dist/actions/query-database.cjs.map +1 -0
  268. package/dist/actions/query-database.d.cts +214 -0
  269. package/dist/actions/query-database.d.cts.map +1 -0
  270. package/dist/actions/query-database.d.mts +214 -0
  271. package/dist/actions/query-database.d.mts.map +1 -0
  272. package/dist/actions/query-database.mjs +170 -0
  273. package/dist/actions/query-database.mjs.map +1 -0
  274. package/dist/actions/replace-page-content.cjs +1175 -0
  275. package/dist/actions/replace-page-content.cjs.map +1 -0
  276. package/dist/actions/replace-page-content.d.cts +1712 -0
  277. package/dist/actions/replace-page-content.d.cts.map +1 -0
  278. package/dist/actions/replace-page-content.d.mts +1712 -0
  279. package/dist/actions/replace-page-content.d.mts.map +1 -0
  280. package/dist/actions/replace-page-content.mjs +1172 -0
  281. package/dist/actions/replace-page-content.mjs.map +1 -0
  282. package/dist/actions/retrieve-comment.cjs +16 -0
  283. package/dist/actions/retrieve-comment.cjs.map +1 -0
  284. package/dist/actions/retrieve-comment.d.cts +13 -0
  285. package/dist/actions/retrieve-comment.d.cts.map +1 -0
  286. package/dist/actions/retrieve-comment.d.mts +13 -0
  287. package/dist/actions/retrieve-comment.d.mts.map +1 -0
  288. package/dist/actions/retrieve-comment.mjs +13 -0
  289. package/dist/actions/retrieve-comment.mjs.map +1 -0
  290. package/dist/actions/retrieve-database-property.cjs +80 -0
  291. package/dist/actions/retrieve-database-property.cjs.map +1 -0
  292. package/dist/actions/retrieve-database-property.d.cts +84 -0
  293. package/dist/actions/retrieve-database-property.d.cts.map +1 -0
  294. package/dist/actions/retrieve-database-property.d.mts +84 -0
  295. package/dist/actions/retrieve-database-property.d.mts.map +1 -0
  296. package/dist/actions/retrieve-database-property.mjs +79 -0
  297. package/dist/actions/retrieve-database-property.mjs.map +1 -0
  298. package/dist/actions/retrieve-file-upload.cjs +34 -0
  299. package/dist/actions/retrieve-file-upload.cjs.map +1 -0
  300. package/dist/actions/retrieve-file-upload.d.cts +31 -0
  301. package/dist/actions/retrieve-file-upload.d.cts.map +1 -0
  302. package/dist/actions/retrieve-file-upload.d.mts +31 -0
  303. package/dist/actions/retrieve-file-upload.d.mts.map +1 -0
  304. package/dist/actions/retrieve-file-upload.mjs +31 -0
  305. package/dist/actions/retrieve-file-upload.mjs.map +1 -0
  306. package/dist/actions/retrieve-page.cjs +129 -0
  307. package/dist/actions/retrieve-page.cjs.map +1 -0
  308. package/dist/actions/retrieve-page.d.cts +145 -0
  309. package/dist/actions/retrieve-page.d.cts.map +1 -0
  310. package/dist/actions/retrieve-page.d.mts +145 -0
  311. package/dist/actions/retrieve-page.d.mts.map +1 -0
  312. package/dist/actions/retrieve-page.mjs +128 -0
  313. package/dist/actions/retrieve-page.mjs.map +1 -0
  314. package/dist/actions/search-notion-page.cjs +245 -0
  315. package/dist/actions/search-notion-page.cjs.map +1 -0
  316. package/dist/actions/search-notion-page.d.cts +757 -0
  317. package/dist/actions/search-notion-page.d.cts.map +1 -0
  318. package/dist/actions/search-notion-page.d.mts +757 -0
  319. package/dist/actions/search-notion-page.d.mts.map +1 -0
  320. package/dist/actions/search-notion-page.mjs +244 -0
  321. package/dist/actions/search-notion-page.mjs.map +1 -0
  322. package/dist/actions/send-file-upload.cjs +37 -0
  323. package/dist/actions/send-file-upload.cjs.map +1 -0
  324. package/dist/actions/send-file-upload.d.cts +39 -0
  325. package/dist/actions/send-file-upload.d.cts.map +1 -0
  326. package/dist/actions/send-file-upload.d.mts +39 -0
  327. package/dist/actions/send-file-upload.d.mts.map +1 -0
  328. package/dist/actions/send-file-upload.mjs +34 -0
  329. package/dist/actions/send-file-upload.mjs.map +1 -0
  330. package/dist/actions/update-block.cjs +250 -0
  331. package/dist/actions/update-block.cjs.map +1 -0
  332. package/dist/actions/update-block.d.cts +570 -0
  333. package/dist/actions/update-block.d.cts.map +1 -0
  334. package/dist/actions/update-block.d.mts +570 -0
  335. package/dist/actions/update-block.d.mts.map +1 -0
  336. package/dist/actions/update-block.mjs +249 -0
  337. package/dist/actions/update-block.mjs.map +1 -0
  338. package/dist/actions/update-page.cjs +115 -0
  339. package/dist/actions/update-page.cjs.map +1 -0
  340. package/dist/actions/update-page.d.cts +109 -0
  341. package/dist/actions/update-page.d.cts.map +1 -0
  342. package/dist/actions/update-page.d.mts +109 -0
  343. package/dist/actions/update-page.d.mts.map +1 -0
  344. package/dist/actions/update-page.mjs +114 -0
  345. package/dist/actions/update-page.mjs.map +1 -0
  346. package/dist/actions/update-row-database.cjs +149 -0
  347. package/dist/actions/update-row-database.cjs.map +1 -0
  348. package/dist/actions/update-row-database.d.cts +132 -0
  349. package/dist/actions/update-row-database.d.cts.map +1 -0
  350. package/dist/actions/update-row-database.d.mts +132 -0
  351. package/dist/actions/update-row-database.d.mts.map +1 -0
  352. package/dist/actions/update-row-database.mjs +148 -0
  353. package/dist/actions/update-row-database.mjs.map +1 -0
  354. package/dist/actions/update-schema-database.cjs +198 -0
  355. package/dist/actions/update-schema-database.cjs.map +1 -0
  356. package/dist/actions/update-schema-database.d.cts +320 -0
  357. package/dist/actions/update-schema-database.d.cts.map +1 -0
  358. package/dist/actions/update-schema-database.d.mts +320 -0
  359. package/dist/actions/update-schema-database.d.mts.map +1 -0
  360. package/dist/actions/update-schema-database.mjs +197 -0
  361. package/dist/actions/update-schema-database.mjs.map +1 -0
  362. package/dist/actions/upsert-row-database.cjs +141 -0
  363. package/dist/actions/upsert-row-database.cjs.map +1 -0
  364. package/dist/actions/upsert-row-database.d.cts +224 -0
  365. package/dist/actions/upsert-row-database.d.cts.map +1 -0
  366. package/dist/actions/upsert-row-database.d.mts +224 -0
  367. package/dist/actions/upsert-row-database.d.mts.map +1 -0
  368. package/dist/actions/upsert-row-database.mjs +140 -0
  369. package/dist/actions/upsert-row-database.mjs.map +1 -0
  370. package/dist/app.cjs +9 -0
  371. package/dist/app.cjs.map +1 -0
  372. package/dist/app.d.cts +5 -0
  373. package/dist/app.d.cts.map +1 -0
  374. package/dist/app.d.mts +5 -0
  375. package/dist/app.d.mts.map +1 -0
  376. package/dist/app.mjs +10 -0
  377. package/dist/app.mjs.map +1 -0
  378. package/dist/catalog.cjs +15 -0
  379. package/dist/catalog.cjs.map +1 -0
  380. package/dist/catalog.d.cts +14 -0
  381. package/dist/catalog.d.cts.map +1 -0
  382. package/dist/catalog.d.mts +14 -0
  383. package/dist/catalog.d.mts.map +1 -0
  384. package/dist/catalog.mjs +15 -0
  385. package/dist/catalog.mjs.map +1 -0
  386. package/dist/execute.cjs +18 -0
  387. package/dist/execute.cjs.map +1 -0
  388. package/dist/execute.mjs +18 -0
  389. package/dist/execute.mjs.map +1 -0
  390. package/dist/index.cjs +96 -0
  391. package/dist/index.d.cts +48 -0
  392. package/dist/index.d.mts +48 -5
  393. package/dist/index.mjs +49 -7
  394. package/package.json +31 -53
  395. package/LICENSE +0 -21
  396. package/dist/credential-sets/index.d.mts +0 -2
  397. package/dist/credential-sets/index.mjs +0 -4
  398. package/dist/notion-webhook.credential-set-5tXWld_L.d.mts +0 -53
  399. package/dist/notion-webhook.credential-set-D_tczh8M.mjs +0 -25
  400. package/dist/notion.credential-set-BfA-EG9z.mjs +0 -44
  401. package/dist/operations/index.d.mts +0 -1104
  402. package/dist/operations/index.mjs +0 -32
  403. package/dist/schemas/index.d.mts +0 -190
  404. package/dist/schemas/index.mjs +0 -3
  405. package/dist/search-D4wvUAjS.mjs +0 -277
  406. package/dist/update-page.operation-6lf05oVs.d.mts +0 -1147
  407. package/dist/update-page.operation-BQWJrCll.mjs +0 -794
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-notion-page.d.mts","names":[],"sources":["../../src/actions/search-notion-page.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAuM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA"}
@@ -0,0 +1,244 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/search-notion-page.ts
4
+ const NotionSearchNotionPageInput = z.object({
5
+ query: z.string().default("").describe("Text to search for in page and database titles. Use specific search terms to find items by title (primary approach). Note: Notion's search has known limitations - indexing is not immediate and recently shared items may not appear. If a specific query returns empty results, try an empty query as a fallback to list all accessible items and filter client-side.").optional(),
6
+ direction: z.string().describe("Specifies the sort direction for the results. Required if `timestamp` is provided. Valid values are `ascending` or `descending`.").optional(),
7
+ page_size: z.number().int().default(25).describe("The number of items to include in the response. Must be an integer between 1 and 100, inclusive. Defaults to 25.").optional(),
8
+ timestamp: z.string().describe("The timestamp field to sort the results by. Currently, the only supported value is `last_edited_time`. If provided, `direction` must also be specified.").optional(),
9
+ filter_value: z.enum(["page", "database"]).default("page").describe("Filters results by object type: 'page' or 'database'. Note: When searching databases, Notion's search may not find recently shared or newly created databases due to indexing delays. If specific database searches return empty results, try an empty query with filter_value='database' as a fallback to list all accessible databases.").optional(),
10
+ start_cursor: z.string().describe("An opaque cursor value from a previous response's `next_cursor` field. Must be exactly as returned by the API - do not pass page IDs, database IDs, or any other identifiers. If `None`, empty, or invalid, results start from the beginning.").optional(),
11
+ filter_property: z.string().default("object").describe("The property to filter the search results by. Currently, the only supported value is `object`, which filters by the type specified in `filter_value`. Defaults to `object`.").optional(),
12
+ filter_properties: z.array(z.string()).describe("List of property names to include in the response for page results. When specified, only these properties will be returned in each page's 'properties' object, reducing response size. Useful for database pages with many custom properties. If not specified, all properties are returned. Note: This filter is applied client-side after receiving the API response.").optional()
13
+ });
14
+ const NotionSearchNotionPage_FileFileSchema = z.object({
15
+ url: z.string().nullable(),
16
+ expiry_time: z.string().nullable()
17
+ });
18
+ const NotionSearchNotionPage_ExternalFileSchema = z.object({ url: z.string().nullable() });
19
+ const NotionSearchNotionPage_FileUploadSchema = z.object({ id: z.string().nullable() });
20
+ const NotionSearchNotionPage_CustomEmojiInfoSchema = z.object({
21
+ id: z.string().describe("The ID of the custom emoji.").nullable(),
22
+ url: z.string().describe("The URL of the custom emoji image.").nullable().optional(),
23
+ name: z.string().describe("The name of the custom emoji.").nullable().optional()
24
+ }).describe("Custom emoji details.");
25
+ const NotionSearchNotionPage_FileObjectSchema = z.object({
26
+ file: NotionSearchNotionPage_FileFileSchema.nullable().optional(),
27
+ name: z.string().nullable().optional(),
28
+ type: z.enum([
29
+ "file",
30
+ "file_upload",
31
+ "external",
32
+ "custom_emoji"
33
+ ]).nullable(),
34
+ external: NotionSearchNotionPage_ExternalFileSchema.nullable().optional(),
35
+ file_upload: NotionSearchNotionPage_FileUploadSchema.nullable().optional(),
36
+ custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional()
37
+ });
38
+ const NotionSearchNotionPage_EmojiObjectSchema = z.object({
39
+ type: z.string().describe("Always 'emoji'.").nullable(),
40
+ emoji: z.string().describe("The emoji character.").nullable()
41
+ }).describe("Standard emoji icon object.");
42
+ const NotionSearchNotionPage_CustomEmojiObjectSchema = z.object({
43
+ type: z.string().describe("Always 'custom_emoji'.").nullable(),
44
+ custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional()
45
+ }).describe("Custom emoji icon object for workspace-uploaded emojis.");
46
+ const NotionSearchNotionPage_ParentSchema = z.object({
47
+ type: z.enum([
48
+ "page_id",
49
+ "workspace",
50
+ "block_id",
51
+ "database_id",
52
+ "data_source_id"
53
+ ]).nullable(),
54
+ page_id: z.string().nullable().optional(),
55
+ block_id: z.string().nullable().optional(),
56
+ workspace: z.boolean().nullable().optional(),
57
+ database_id: z.string().nullable().optional(),
58
+ data_source_id: z.string().nullable().optional()
59
+ });
60
+ const NotionSearchNotionPage_PersonInfoSchema = z.object({ email: z.string().describe("The email address of the person. Only available if integration has user capability permissions.").nullable().optional() }).describe("Person-specific information for user objects.");
61
+ const NotionSearchNotionPage_BotOwnerUserSchema = z.object({
62
+ id: z.string().describe("UUID of the owner user.").nullable(),
63
+ name: z.string().describe("Display name of the owner.").nullable().optional(),
64
+ type: z.string().describe("User type.").nullable().optional(),
65
+ object: z.string().describe("Always 'user'.").nullable(),
66
+ person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),
67
+ avatar_url: z.string().describe("Avatar URL of the owner.").nullable().optional()
68
+ }).describe("User reference for bot owner when type is 'user'.");
69
+ const NotionSearchNotionPage_BotOwnerSchema = z.object({
70
+ type: z.enum(["workspace", "user"]).describe("The type of owner - either 'workspace' or 'user'.").nullable(),
71
+ user: NotionSearchNotionPage_BotOwnerUserSchema.nullable().optional(),
72
+ workspace: z.boolean().describe("Boolean value when owner type is workspace.").nullable().optional()
73
+ }).describe("Owner information for bot users.");
74
+ const NotionSearchNotionPage_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum file size allowed for uploads in bytes.").nullable().optional() }).describe("Workspace limit restrictions for bot users.");
75
+ const NotionSearchNotionPage_BotInfoSchema = z.object({
76
+ owner: NotionSearchNotionPage_BotOwnerSchema.nullable().optional(),
77
+ workspace_id: z.string().describe("ID of the bot's workspace.").nullable().optional(),
78
+ workspace_name: z.string().describe("Name of the workspace that owns the bot. Null if owner type is 'user'.").nullable().optional(),
79
+ workspace_limits: NotionSearchNotionPage_WorkspaceLimitsSchema.nullable().optional()
80
+ }).describe("Bot-specific information for user objects.");
81
+ const NotionSearchNotionPage_PartialUserSchema = z.object({
82
+ id: z.string().describe("UUID identifier for the user.").nullable(),
83
+ bot: NotionSearchNotionPage_BotInfoSchema.nullable().optional(),
84
+ name: z.string().describe("Display name of the user.").nullable().optional(),
85
+ type: z.enum(["person", "bot"]).describe("The type of user - 'person' or 'bot'.").nullable().optional(),
86
+ object: z.string().describe("Always 'user'.").nullable(),
87
+ person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),
88
+ avatar_url: z.string().describe("URL of the user's avatar image.").nullable().optional()
89
+ }).describe("Represents a user in Notion (person or bot).");
90
+ const NotionSearchNotionPage_PageSchema = z.object({
91
+ id: z.string().describe("UUID of the page.").nullable(),
92
+ url: z.string().describe("URL of the page.").nullable(),
93
+ icon: z.union([
94
+ NotionSearchNotionPage_FileObjectSchema,
95
+ NotionSearchNotionPage_EmojiObjectSchema,
96
+ NotionSearchNotionPage_CustomEmojiObjectSchema
97
+ ]).nullable().optional(),
98
+ cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),
99
+ object: z.string().describe("Always 'page'.").nullable(),
100
+ parent: NotionSearchNotionPage_ParentSchema.nullable(),
101
+ archived: z.boolean().describe("Whether the page is archived.").nullable(),
102
+ in_trash: z.boolean().describe("Whether the page is in trash.").nullable(),
103
+ is_locked: z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
104
+ created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
105
+ properties: z.object({}).describe("Map of property names to their values. Structure varies by property type."),
106
+ public_url: z.string().describe("Public URL if page is published.").nullable().optional(),
107
+ created_time: z.string().describe("ISO 8601 timestamp when page was created.").nullable(),
108
+ last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
109
+ last_edited_time: z.string().describe("ISO 8601 timestamp of last edit.").nullable()
110
+ }).describe("Represents a Notion page object.");
111
+ const NotionSearchNotionPage_LinkObjectSchema = z.object({
112
+ url: z.string().describe("The URL the text links to.").nullable(),
113
+ type: z.string().describe("Optional link type (e.g., 'url').").nullable().optional()
114
+ }).describe("Link object for inline links in text.");
115
+ const NotionSearchNotionPage_RichTextTextSchema = z.object({
116
+ link: NotionSearchNotionPage_LinkObjectSchema.nullable().optional(),
117
+ content: z.string().describe("The text content.").nullable()
118
+ }).describe("Text content for rich text objects.");
119
+ const NotionSearchNotionPage_DateMentionValueSchema = z.object({
120
+ end: z.string().describe("End date in ISO 8601 format for ranges.").nullable().optional(),
121
+ start: z.string().describe("Start date in ISO 8601 format.").nullable(),
122
+ time_zone: z.string().describe("Time zone for the date.").nullable().optional()
123
+ }).describe("Date value for date mentions.");
124
+ const NotionSearchNotionPage_PageMentionSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).describe("Page mention reference.");
125
+ const NotionSearchNotionPage_UserMentionSchema = z.object({
126
+ id: z.string().describe("UUID of the mentioned user.").nullable(),
127
+ object: z.string().describe("Always 'user'.").nullable()
128
+ }).describe("User mention reference.");
129
+ const NotionSearchNotionPage_DatabaseMentionSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).describe("Database mention reference.");
130
+ const NotionSearchNotionPage_LinkPreviewMentionSchema = z.object({ url: z.string().describe("The URL of the link preview.").nullable() }).describe("Link preview mention reference.");
131
+ const NotionSearchNotionPage_TemplateMentionDateSchema = z.object({
132
+ type: z.string().describe("Always 'template_mention_date'.").nullable(),
133
+ template_mention_date: z.enum(["today", "now"]).describe("The template date value - 'today' or 'now'.").nullable()
134
+ }).describe("Template mention for dates.");
135
+ const NotionSearchNotionPage_TemplateMentionUserSchema = z.object({
136
+ type: z.string().describe("Always 'template_mention_user'.").nullable(),
137
+ template_mention_user: z.string().describe("The template user value - always 'me'.").nullable()
138
+ }).describe("Template mention for users.");
139
+ const NotionSearchNotionPage_MentionObjectSchema = z.object({
140
+ date: NotionSearchNotionPage_DateMentionValueSchema.nullable().optional(),
141
+ page: NotionSearchNotionPage_PageMentionSchema.nullable().optional(),
142
+ type: z.enum([
143
+ "user",
144
+ "page",
145
+ "database",
146
+ "date",
147
+ "link_preview",
148
+ "template_mention"
149
+ ]).describe("The type of mention.").nullable(),
150
+ user: NotionSearchNotionPage_UserMentionSchema.nullable().optional(),
151
+ database: NotionSearchNotionPage_DatabaseMentionSchema.nullable().optional(),
152
+ link_preview: NotionSearchNotionPage_LinkPreviewMentionSchema.nullable().optional(),
153
+ template_mention: z.union([NotionSearchNotionPage_TemplateMentionDateSchema, NotionSearchNotionPage_TemplateMentionUserSchema]).nullable().optional()
154
+ }).describe("Mention object that can reference users, pages, databases, dates, or link previews.");
155
+ const NotionSearchNotionPage_RichTextEquationSchema = z.object({ expression: z.string().describe("The LaTeX equation expression.").nullable() }).describe("Equation content for rich text objects.");
156
+ const NotionSearchNotionPage_AnnotationsSchema = z.object({
157
+ bold: z.boolean().describe("Whether the text is bold.").nullable(),
158
+ code: z.boolean().describe("Whether the text is code-formatted.").nullable(),
159
+ color: z.string().describe("Text color.").nullable(),
160
+ italic: z.boolean().describe("Whether the text is italic.").nullable(),
161
+ underline: z.boolean().describe("Whether the text is underlined.").nullable(),
162
+ strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
163
+ }).describe("Text styling annotations.");
164
+ const NotionSearchNotionPage_RichTextSchema = z.object({
165
+ href: z.string().describe("The URL of any link in the text.").nullable().optional(),
166
+ text: NotionSearchNotionPage_RichTextTextSchema.nullable().optional(),
167
+ type: z.enum([
168
+ "text",
169
+ "mention",
170
+ "equation"
171
+ ]).describe("The type of rich text - 'text', 'mention', or 'equation'.").nullable(),
172
+ mention: NotionSearchNotionPage_MentionObjectSchema.nullable().optional(),
173
+ equation: NotionSearchNotionPage_RichTextEquationSchema.nullable().optional(),
174
+ plain_text: z.string().describe("The plain text representation.").nullable(),
175
+ annotations: NotionSearchNotionPage_AnnotationsSchema.nullable()
176
+ }).describe("Rich text object that can contain text, mentions, or equations.");
177
+ const NotionSearchNotionPage_DataSourceSchema = z.object({
178
+ id: z.string().describe("UUID of the data source.").nullable(),
179
+ icon: z.union([
180
+ NotionSearchNotionPage_FileObjectSchema,
181
+ NotionSearchNotionPage_EmojiObjectSchema,
182
+ NotionSearchNotionPage_CustomEmojiObjectSchema
183
+ ]).nullable().optional(),
184
+ title: z.array(NotionSearchNotionPage_RichTextSchema).describe("Title as rich text array.").nullable().optional(),
185
+ object: z.string().describe("Always 'data_source'.").nullable(),
186
+ parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),
187
+ archived: z.boolean().describe("Whether archived.").nullable().optional(),
188
+ in_trash: z.boolean().describe("Whether in trash.").nullable().optional(),
189
+ created_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),
190
+ properties: z.object({}).describe("Schema mapping property names to property definitions."),
191
+ description: z.array(NotionSearchNotionPage_RichTextSchema).describe("Description as rich text array.").nullable().optional(),
192
+ created_time: z.string().describe("ISO 8601 timestamp when created.").nullable().optional(),
193
+ last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),
194
+ database_parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),
195
+ last_edited_time: z.string().describe("ISO 8601 timestamp of last edit.").nullable().optional()
196
+ }).describe("Represents a Notion data source object.");
197
+ const NotionSearchNotionPage_DatabaseSchema = z.object({
198
+ id: z.string().describe("UUID of the database.").nullable(),
199
+ url: z.string().describe("URL of the database.").nullable(),
200
+ icon: z.union([
201
+ NotionSearchNotionPage_FileObjectSchema,
202
+ NotionSearchNotionPage_EmojiObjectSchema,
203
+ NotionSearchNotionPage_CustomEmojiObjectSchema
204
+ ]).nullable().optional(),
205
+ cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),
206
+ title: z.array(NotionSearchNotionPage_RichTextSchema).describe("Database title as rich text array.").nullable().optional(),
207
+ object: z.string().describe("Always 'database'.").nullable(),
208
+ parent: NotionSearchNotionPage_ParentSchema.nullable(),
209
+ archived: z.boolean().default(false).describe("Whether the database is archived.").nullable().optional(),
210
+ in_trash: z.boolean().describe("Whether the database is in trash.").nullable(),
211
+ is_inline: z.boolean().describe("Whether the database is inline.").nullable().optional(),
212
+ created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
213
+ properties: z.object({}).describe("Map of property names to property schema definitions."),
214
+ public_url: z.string().describe("Public URL if database is published.").nullable().optional(),
215
+ description: z.array(NotionSearchNotionPage_RichTextSchema).describe("Database description as rich text array.").nullable().optional(),
216
+ created_time: z.string().describe("ISO 8601 timestamp when created.").nullable(),
217
+ last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
218
+ last_edited_time: z.string().describe("ISO 8601 timestamp of last edit.").nullable()
219
+ }).describe("Represents a Notion database object.");
220
+ const NotionSearchNotionPage_PageOrDatabaseMarkerSchema = z.record(z.string(), z.unknown()).describe("Empty marker object for union discriminator in search responses.");
221
+ const notionSearchNotionPage = action("NOTION_SEARCH_NOTION_PAGE", {
222
+ slug: "notion-search-notion-page",
223
+ name: "Search Notion pages and databases",
224
+ description: "Searches Notion pages and databases by title. Use specific search terms to find items by title (primary approach). KNOWN LIMITATIONS: (1) Search indexing is not immediate - recently shared items may not appear. (2) Search is not exhaustive - results may be incomplete. (3) Database pages return all custom properties with full nested structures, which can create large responses for databases with many properties - use filter_properties to reduce response size. FALLBACK STRATEGY: If a specific title search returns empty results despite knowing items exist, try an empty query to list all accessible items and filter client-side.",
225
+ input: NotionSearchNotionPageInput,
226
+ output: z.object({
227
+ type: z.string().describe("Union type discriminator.").nullable().optional(),
228
+ object: z.string().describe("Indicates a paginated list response.").nullable(),
229
+ results: z.array(z.union([
230
+ NotionSearchNotionPage_PageSchema,
231
+ NotionSearchNotionPage_DataSourceSchema,
232
+ NotionSearchNotionPage_DatabaseSchema
233
+ ])).describe("Array of search results. Each item is either a Page, Data source, or Database object."),
234
+ has_more: z.boolean().describe("True if there are more results after this page; otherwise false.").nullable(),
235
+ request_id: z.string().describe("Request ID from the Notion API.").nullable().optional(),
236
+ next_cursor: z.string().describe("A cursor to be used as start_cursor for the next page of results, or null if there are no more results.").nullable().optional(),
237
+ page_or_database: NotionSearchNotionPage_PageOrDatabaseMarkerSchema.nullable().optional(),
238
+ composio_execution_message: z.string().describe("Message from the action execution indicating any modifications or warnings about the request parameters.").nullable().optional()
239
+ }).describe("Paginated list of search results matching the query. Results are Page, Data source, or Database objects shared with the integration.")
240
+ });
241
+ //#endregion
242
+ export { notionSearchNotionPage };
243
+
244
+ //# sourceMappingURL=search-notion-page.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-notion-page.mjs","names":[],"sources":["../../src/actions/search-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSearchNotionPageInput = z.object({\n query: z.string().default(\"\").describe(\"Text to search for in page and database titles. Use specific search terms to find items by title (primary approach). Note: Notion's search has known limitations - indexing is not immediate and recently shared items may not appear. If a specific query returns empty results, try an empty query as a fallback to list all accessible items and filter client-side.\").optional(),\n direction: z.string().describe(\"Specifies the sort direction for the results. Required if `timestamp` is provided. Valid values are `ascending` or `descending`.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to include in the response. Must be an integer between 1 and 100, inclusive. Defaults to 25.\").optional(),\n timestamp: z.string().describe(\"The timestamp field to sort the results by. Currently, the only supported value is `last_edited_time`. If provided, `direction` must also be specified.\").optional(),\n filter_value: z.enum([\"page\", \"database\"]).default(\"page\").describe(\"Filters results by object type: 'page' or 'database'. Note: When searching databases, Notion's search may not find recently shared or newly created databases due to indexing delays. If specific database searches return empty results, try an empty query with filter_value='database' as a fallback to list all accessible databases.\").optional(),\n start_cursor: z.string().describe(\"An opaque cursor value from a previous response's `next_cursor` field. Must be exactly as returned by the API - do not pass page IDs, database IDs, or any other identifiers. If `None`, empty, or invalid, results start from the beginning.\").optional(),\n filter_property: z.string().default(\"object\").describe(\"The property to filter the search results by. Currently, the only supported value is `object`, which filters by the type specified in `filter_value`. Defaults to `object`.\").optional(),\n filter_properties: z.array(z.string()).describe(\"List of property names to include in the response for page results. When specified, only these properties will be returned in each page's 'properties' object, reducing response size. Useful for database pages with many custom properties. If not specified, all properties are returned. Note: This filter is applied client-side after receiving the API response.\").optional(),\n});\nconst NotionSearchNotionPage_FileFileSchema = z.object({\n url: z.string().nullable(),\n expiry_time: z.string().nullable(),\n});\nconst NotionSearchNotionPage_ExternalFileSchema = z.object({\n url: z.string().nullable(),\n});\nconst NotionSearchNotionPage_FileUploadSchema = z.object({\n id: z.string().nullable(),\n});\nconst NotionSearchNotionPage_CustomEmojiInfoSchema = z.object({\n id: z.string().describe(\"The ID of the custom emoji.\").nullable(),\n url: z.string().describe(\"The URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"The name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji details.\");\nconst NotionSearchNotionPage_FileObjectSchema = z.object({\n file: NotionSearchNotionPage_FileFileSchema.nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.enum([\"file\", \"file_upload\", \"external\", \"custom_emoji\"]).nullable(),\n external: NotionSearchNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionSearchNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional(),\n});\nconst NotionSearchNotionPage_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).describe(\"Standard emoji icon object.\");\nconst NotionSearchNotionPage_CustomEmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional(),\n}).describe(\"Custom emoji icon object for workspace-uploaded emojis.\");\nconst NotionSearchNotionPage_ParentSchema = z.object({\n type: z.enum([\"page_id\", \"workspace\", \"block_id\", \"database_id\", \"data_source_id\"]).nullable(),\n page_id: z.string().nullable().optional(),\n block_id: z.string().nullable().optional(),\n workspace: z.boolean().nullable().optional(),\n database_id: z.string().nullable().optional(),\n data_source_id: z.string().nullable().optional(),\n});\nconst NotionSearchNotionPage_PersonInfoSchema = z.object({\n email: z.string().describe(\"The email address of the person. Only available if integration has user capability permissions.\").nullable().optional(),\n}).describe(\"Person-specific information for user objects.\");\nconst NotionSearchNotionPage_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the owner user.\").nullable(),\n name: z.string().describe(\"Display name of the owner.\").nullable().optional(),\n type: z.string().describe(\"User type.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL of the owner.\").nullable().optional(),\n}).describe(\"User reference for bot owner when type is 'user'.\");\nconst NotionSearchNotionPage_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner - either 'workspace' or 'user'.\").nullable(),\n user: NotionSearchNotionPage_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Boolean value when owner type is workspace.\").nullable().optional(),\n}).describe(\"Owner information for bot users.\");\nconst NotionSearchNotionPage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file size allowed for uploads in bytes.\").nullable().optional(),\n}).describe(\"Workspace limit restrictions for bot users.\");\nconst NotionSearchNotionPage_BotInfoSchema = z.object({\n owner: NotionSearchNotionPage_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"ID of the bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot. Null if owner type is 'user'.\").nullable().optional(),\n workspace_limits: NotionSearchNotionPage_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific information for user objects.\");\nconst NotionSearchNotionPage_PartialUserSchema = z.object({\n id: z.string().describe(\"UUID identifier for the user.\").nullable(),\n bot: NotionSearchNotionPage_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"The type of user - 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).describe(\"Represents a user in Notion (person or bot).\");\nconst NotionSearchNotionPage_PageSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n url: z.string().describe(\"URL of the page.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Map of property names to their values. Structure varies by property type.\"),\n public_url: z.string().describe(\"Public URL if page is published.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when page was created.\").nullable(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable(),\n}).describe(\"Represents a Notion page object.\");\nconst NotionSearchNotionPage_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL the text links to.\").nullable(),\n type: z.string().describe(\"Optional link type (e.g., 'url').\").nullable().optional(),\n}).describe(\"Link object for inline links in text.\");\nconst NotionSearchNotionPage_RichTextTextSchema = z.object({\n link: NotionSearchNotionPage_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The text content.\").nullable(),\n}).describe(\"Text content for rich text objects.\");\nconst NotionSearchNotionPage_DateMentionValueSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format for ranges.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n time_zone: z.string().describe(\"Time zone for the date.\").nullable().optional(),\n}).describe(\"Date value for date mentions.\");\nconst NotionSearchNotionPage_PageMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).describe(\"Page mention reference.\");\nconst NotionSearchNotionPage_UserMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).describe(\"User mention reference.\");\nconst NotionSearchNotionPage_DatabaseMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).describe(\"Database mention reference.\");\nconst NotionSearchNotionPage_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"The URL of the link preview.\").nullable(),\n}).describe(\"Link preview mention reference.\");\nconst NotionSearchNotionPage_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Always 'template_mention_date'.\").nullable(),\n template_mention_date: z.enum([\"today\", \"now\"]).describe(\"The template date value - 'today' or 'now'.\").nullable(),\n}).describe(\"Template mention for dates.\");\nconst NotionSearchNotionPage_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Always 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"The template user value - always 'me'.\").nullable(),\n}).describe(\"Template mention for users.\");\nconst NotionSearchNotionPage_MentionObjectSchema = z.object({\n date: NotionSearchNotionPage_DateMentionValueSchema.nullable().optional(),\n page: NotionSearchNotionPage_PageMentionSchema.nullable().optional(),\n type: z.enum([\"user\", \"page\", \"database\", \"date\", \"link_preview\", \"template_mention\"]).describe(\"The type of mention.\").nullable(),\n user: NotionSearchNotionPage_UserMentionSchema.nullable().optional(),\n database: NotionSearchNotionPage_DatabaseMentionSchema.nullable().optional(),\n link_preview: NotionSearchNotionPage_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionSearchNotionPage_TemplateMentionDateSchema, NotionSearchNotionPage_TemplateMentionUserSchema]).nullable().optional(),\n}).describe(\"Mention object that can reference users, pages, databases, dates, or link previews.\");\nconst NotionSearchNotionPage_RichTextEquationSchema = z.object({\n expression: z.string().describe(\"The LaTeX equation expression.\").nullable(),\n}).describe(\"Equation content for rich text objects.\");\nconst NotionSearchNotionPage_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code-formatted.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).describe(\"Text styling annotations.\");\nconst NotionSearchNotionPage_RichTextSchema = z.object({\n href: z.string().describe(\"The URL of any link in the text.\").nullable().optional(),\n text: NotionSearchNotionPage_RichTextTextSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"The type of rich text - 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionSearchNotionPage_MentionObjectSchema.nullable().optional(),\n equation: NotionSearchNotionPage_RichTextEquationSchema.nullable().optional(),\n plain_text: z.string().describe(\"The plain text representation.\").nullable(),\n annotations: NotionSearchNotionPage_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object that can contain text, mentions, or equations.\");\nconst NotionSearchNotionPage_DataSourceSchema = z.object({\n id: z.string().describe(\"UUID of the data source.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n title: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'data_source'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether in trash.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Schema mapping property names to property definitions.\"),\n description: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),\n database_parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable().optional(),\n}).describe(\"Represents a Notion data source object.\");\nconst NotionSearchNotionPage_DatabaseSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n url: z.string().describe(\"URL of the database.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),\n title: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Map of property names to property schema definitions.\"),\n public_url: z.string().describe(\"Public URL if database is published.\").nullable().optional(),\n description: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when created.\").nullable(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable(),\n}).describe(\"Represents a Notion database object.\");\nconst NotionSearchNotionPage_PageOrDatabaseMarkerSchema = z.record(z.string(), z.unknown()).describe(\"Empty marker object for union discriminator in search responses.\");\nexport const NotionSearchNotionPageOutput = z.object({\n type: z.string().describe(\"Union type discriminator.\").nullable().optional(),\n object: z.string().describe(\"Indicates a paginated list response.\").nullable(),\n results: z.array(z.union([NotionSearchNotionPage_PageSchema, NotionSearchNotionPage_DataSourceSchema, NotionSearchNotionPage_DatabaseSchema])).describe(\"Array of search results. Each item is either a Page, Data source, or Database object.\"),\n has_more: z.boolean().describe(\"True if there are more results after this page; otherwise false.\").nullable(),\n request_id: z.string().describe(\"Request ID from the Notion API.\").nullable().optional(),\n next_cursor: z.string().describe(\"A cursor to be used as start_cursor for the next page of results, or null if there are no more results.\").nullable().optional(),\n page_or_database: NotionSearchNotionPage_PageOrDatabaseMarkerSchema.nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the action execution indicating any modifications or warnings about the request parameters.\").nullable().optional(),\n}).describe(\"Paginated list of search results matching the query. Results are Page, Data source, or Database objects shared with the integration.\");\n\nexport const notionSearchNotionPage = action(\"NOTION_SEARCH_NOTION_PAGE\", {\n slug: \"notion-search-notion-page\",\n name: \"Search Notion pages and databases\",\n description: \"Searches Notion pages and databases by title. Use specific search terms to find items by title (primary approach). KNOWN LIMITATIONS: (1) Search indexing is not immediate - recently shared items may not appear. (2) Search is not exhaustive - results may be incomplete. (3) Database pages return all custom properties with full nested structures, which can create large responses for databases with many properties - use filter_properties to reduce response size. FALLBACK STRATEGY: If a specific title search returns empty results despite knowing items exist, try an empty query to list all accessible items and filter client-side.\",\n input: NotionSearchNotionPageInput,\n output: NotionSearchNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yWAAyW,CAAC,CAAC,SAAS;CAC3Z,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CAC5K,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC9K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACnM,cAAc,EAAE,KAAK,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,QAAQ,M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AC,CAAC,CAAC,SAAS,kEAAkE;AAYvK,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,MAAM,EAAE,MAAM;GAAC;GAAmC;GAAyC;EAAqC,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;EAC/O,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChK,kBAAkB,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACxF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,CAAC,CAAC,CAAC,SAAS,sIAOF;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/send-file-upload.ts
4
+ const NotionSendFileUploadInput = zod.z.object({
5
+ file: zod.z.object({
6
+ name: zod.z.string().describe("The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg')."),
7
+ s3key: zod.z.string().describe("A file reference key. Required only when NOT using file_content_base64 or file_path.").optional(),
8
+ mimetype: zod.z.string().describe("The MIME type of the file.")
9
+ }).describe("File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt')."),
10
+ part_number: zod.z.number().int().describe("Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.").optional(),
11
+ file_upload_id: zod.z.string().describe("Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action."),
12
+ file_content_base64: zod.z.string().describe("Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.").optional()
13
+ });
14
+ const NotionSendFileUploadOutput = zod.z.object({
15
+ id: zod.z.string().describe("Unique identifier (UUID) for the file upload.").nullable(),
16
+ object: zod.z.string().describe("Always set to 'file_upload'. Identifies the object type.").nullable(),
17
+ status: zod.z.string().describe("Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.").nullable(),
18
+ archived: zod.z.boolean().describe("Indicates whether the file upload has been archived.").nullable(),
19
+ filename: zod.z.string().describe("Name of the uploaded file.").nullable().optional(),
20
+ request_id: zod.z.string().describe("Request identifier for tracking the file upload operation.").nullable().optional(),
21
+ expiry_time: zod.z.string().describe("ISO 8601 timestamp when the file upload will expire.").nullable(),
22
+ content_type: zod.z.string().describe("The MIME content type of the uploaded file.").nullable().optional(),
23
+ created_time: zod.z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
24
+ content_length: zod.z.number().int().describe("The total size of the file in bytes.").nullable().optional(),
25
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
26
+ });
27
+ const notionSendFileUpload = require_action.action("NOTION_SEND_FILE_UPLOAD", {
28
+ slug: "notion-send-file-upload",
29
+ name: "Send file upload",
30
+ description: "Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.",
31
+ input: NotionSendFileUploadInput,
32
+ output: NotionSendFileUploadOutput
33
+ });
34
+ //#endregion
35
+ exports.notionSendFileUpload = notionSendFileUpload;
36
+
37
+ //# sourceMappingURL=send-file-upload.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n});\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;EACvH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC5D,CAAC,CAAC,CAAC,SAAS,gIAAgI;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CAC9N,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CACpJ,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;AACjO,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACjI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/G,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/send-file-upload.d.ts
4
+ declare const NotionSendFileUploadInput: z.ZodObject<{
5
+ file: z.ZodObject<{
6
+ name: z.ZodString;
7
+ s3key: z.ZodOptional<z.ZodString>;
8
+ mimetype: z.ZodString;
9
+ }, z.core.$strip>;
10
+ part_number: z.ZodOptional<z.ZodNumber>;
11
+ file_upload_id: z.ZodString;
12
+ file_content_base64: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const NotionSendFileUploadOutput: z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ object: z.ZodNullable<z.ZodString>;
17
+ status: z.ZodNullable<z.ZodString>;
18
+ archived: z.ZodNullable<z.ZodBoolean>;
19
+ filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ expiry_time: z.ZodNullable<z.ZodString>;
22
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ created_time: z.ZodNullable<z.ZodString>;
24
+ content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ last_edited_time: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>;
27
+ declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ file: {
29
+ name: string;
30
+ mimetype: string;
31
+ s3key?: string | undefined;
32
+ };
33
+ file_upload_id: string;
34
+ part_number?: number | undefined;
35
+ file_content_base64?: string | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ //#endregion
38
+ export { notionSendFileUpload };
39
+ //# sourceMappingURL=send-file-upload.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-file-upload.d.cts","names":[],"sources":["../../src/actions/send-file-upload.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc1B,oBAAA,gCAAoB,wBAAA"}
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/send-file-upload.d.ts
4
+ declare const NotionSendFileUploadInput: z.ZodObject<{
5
+ file: z.ZodObject<{
6
+ name: z.ZodString;
7
+ s3key: z.ZodOptional<z.ZodString>;
8
+ mimetype: z.ZodString;
9
+ }, z.core.$strip>;
10
+ part_number: z.ZodOptional<z.ZodNumber>;
11
+ file_upload_id: z.ZodString;
12
+ file_content_base64: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const NotionSendFileUploadOutput: z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ object: z.ZodNullable<z.ZodString>;
17
+ status: z.ZodNullable<z.ZodString>;
18
+ archived: z.ZodNullable<z.ZodBoolean>;
19
+ filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ expiry_time: z.ZodNullable<z.ZodString>;
22
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ created_time: z.ZodNullable<z.ZodString>;
24
+ content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ last_edited_time: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>;
27
+ declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ file: {
29
+ name: string;
30
+ mimetype: string;
31
+ s3key?: string | undefined;
32
+ };
33
+ file_upload_id: string;
34
+ part_number?: number | undefined;
35
+ file_content_base64?: string | undefined;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ //#endregion
38
+ export { notionSendFileUpload };
39
+ //# sourceMappingURL=send-file-upload.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-file-upload.d.mts","names":[],"sources":["../../src/actions/send-file-upload.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc1B,oBAAA,gCAAoB,wBAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const notionSendFileUpload = action("NOTION_SEND_FILE_UPLOAD", {
4
+ slug: "notion-send-file-upload",
5
+ name: "Send file upload",
6
+ description: "Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.",
7
+ input: z.object({
8
+ file: z.object({
9
+ name: z.string().describe("The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg')."),
10
+ s3key: z.string().describe("A file reference key. Required only when NOT using file_content_base64 or file_path.").optional(),
11
+ mimetype: z.string().describe("The MIME type of the file.")
12
+ }).describe("File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt')."),
13
+ part_number: z.number().int().describe("Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.").optional(),
14
+ file_upload_id: z.string().describe("Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action."),
15
+ file_content_base64: z.string().describe("Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.").optional()
16
+ }),
17
+ output: z.object({
18
+ id: z.string().describe("Unique identifier (UUID) for the file upload.").nullable(),
19
+ object: z.string().describe("Always set to 'file_upload'. Identifies the object type.").nullable(),
20
+ status: z.string().describe("Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.").nullable(),
21
+ archived: z.boolean().describe("Indicates whether the file upload has been archived.").nullable(),
22
+ filename: z.string().describe("Name of the uploaded file.").nullable().optional(),
23
+ request_id: z.string().describe("Request identifier for tracking the file upload operation.").nullable().optional(),
24
+ expiry_time: z.string().describe("ISO 8601 timestamp when the file upload will expire.").nullable(),
25
+ content_type: z.string().describe("The MIME content type of the uploaded file.").nullable().optional(),
26
+ created_time: z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
27
+ content_length: z.number().int().describe("The total size of the file in bytes.").nullable().optional(),
28
+ last_edited_time: z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
29
+ })
30
+ });
31
+ //#endregion
32
+ export { notionSendFileUpload };
33
+
34
+ //# sourceMappingURL=send-file-upload.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-file-upload.mjs","names":[],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n});\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;AA4BA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;GACvH,OAAO,EAAE,OAAO,CAAC,CAAC,SA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