@keystrokehq/notion 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/add-multiple-page-content.cjs +8 -8
  5. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.cts +88 -3
  7. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.d.mts +88 -3
  9. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  10. package/dist/actions/add-multiple-page-content.mjs +8 -8
  11. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  12. package/dist/actions/append-code-blocks.cjs +44 -44
  13. package/dist/actions/append-code-blocks.cjs.map +1 -1
  14. package/dist/actions/append-code-blocks.d.cts +849 -3
  15. package/dist/actions/append-code-blocks.d.cts.map +1 -1
  16. package/dist/actions/append-code-blocks.d.mts +849 -3
  17. package/dist/actions/append-code-blocks.d.mts.map +1 -1
  18. package/dist/actions/append-code-blocks.mjs +44 -44
  19. package/dist/actions/append-code-blocks.mjs.map +1 -1
  20. package/dist/actions/append-layout-blocks.cjs +44 -44
  21. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  22. package/dist/actions/append-layout-blocks.d.cts +642 -3
  23. package/dist/actions/append-layout-blocks.d.cts.map +1 -1
  24. package/dist/actions/append-layout-blocks.d.mts +642 -3
  25. package/dist/actions/append-layout-blocks.d.mts.map +1 -1
  26. package/dist/actions/append-layout-blocks.mjs +44 -44
  27. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  28. package/dist/actions/append-media-blocks.cjs +44 -44
  29. package/dist/actions/append-media-blocks.cjs.map +1 -1
  30. package/dist/actions/append-media-blocks.d.cts +996 -3
  31. package/dist/actions/append-media-blocks.d.cts.map +1 -1
  32. package/dist/actions/append-media-blocks.d.mts +996 -3
  33. package/dist/actions/append-media-blocks.d.mts.map +1 -1
  34. package/dist/actions/append-media-blocks.mjs +44 -44
  35. package/dist/actions/append-media-blocks.mjs.map +1 -1
  36. package/dist/actions/append-table-blocks.cjs +44 -44
  37. package/dist/actions/append-table-blocks.cjs.map +1 -1
  38. package/dist/actions/append-table-blocks.d.cts +624 -3
  39. package/dist/actions/append-table-blocks.d.cts.map +1 -1
  40. package/dist/actions/append-table-blocks.d.mts +624 -3
  41. package/dist/actions/append-table-blocks.d.mts.map +1 -1
  42. package/dist/actions/append-table-blocks.mjs +44 -44
  43. package/dist/actions/append-table-blocks.mjs.map +1 -1
  44. package/dist/actions/append-task-blocks.cjs +44 -44
  45. package/dist/actions/append-task-blocks.cjs.map +1 -1
  46. package/dist/actions/append-task-blocks.d.cts +826 -3
  47. package/dist/actions/append-task-blocks.d.cts.map +1 -1
  48. package/dist/actions/append-task-blocks.d.mts +826 -3
  49. package/dist/actions/append-task-blocks.d.mts.map +1 -1
  50. package/dist/actions/append-task-blocks.mjs +44 -44
  51. package/dist/actions/append-task-blocks.mjs.map +1 -1
  52. package/dist/actions/append-text-blocks.cjs +44 -44
  53. package/dist/actions/append-text-blocks.cjs.map +1 -1
  54. package/dist/actions/append-text-blocks.d.cts +1080 -3
  55. package/dist/actions/append-text-blocks.d.cts.map +1 -1
  56. package/dist/actions/append-text-blocks.d.mts +1080 -3
  57. package/dist/actions/append-text-blocks.d.mts.map +1 -1
  58. package/dist/actions/append-text-blocks.mjs +44 -44
  59. package/dist/actions/append-text-blocks.mjs.map +1 -1
  60. package/dist/actions/archive-notion-page.cjs +27 -27
  61. package/dist/actions/archive-notion-page.cjs.map +1 -1
  62. package/dist/actions/archive-notion-page.d.cts +78 -3
  63. package/dist/actions/archive-notion-page.d.cts.map +1 -1
  64. package/dist/actions/archive-notion-page.d.mts +78 -3
  65. package/dist/actions/archive-notion-page.d.mts.map +1 -1
  66. package/dist/actions/archive-notion-page.mjs +27 -27
  67. package/dist/actions/archive-notion-page.mjs.map +1 -1
  68. package/dist/actions/create-comment.cjs.map +1 -1
  69. package/dist/actions/create-comment.d.cts +46 -3
  70. package/dist/actions/create-comment.d.cts.map +1 -1
  71. package/dist/actions/create-comment.d.mts +46 -3
  72. package/dist/actions/create-comment.d.mts.map +1 -1
  73. package/dist/actions/create-comment.mjs.map +1 -1
  74. package/dist/actions/create-database.cjs +31 -31
  75. package/dist/actions/create-database.cjs.map +1 -1
  76. package/dist/actions/create-database.d.cts +139 -3
  77. package/dist/actions/create-database.d.cts.map +1 -1
  78. package/dist/actions/create-database.d.mts +139 -3
  79. package/dist/actions/create-database.d.mts.map +1 -1
  80. package/dist/actions/create-database.mjs +31 -31
  81. package/dist/actions/create-database.mjs.map +1 -1
  82. package/dist/actions/create-file-upload.cjs +8 -8
  83. package/dist/actions/create-file-upload.cjs.map +1 -1
  84. package/dist/actions/create-file-upload.d.cts +38 -3
  85. package/dist/actions/create-file-upload.d.cts.map +1 -1
  86. package/dist/actions/create-file-upload.d.mts +38 -3
  87. package/dist/actions/create-file-upload.d.mts.map +1 -1
  88. package/dist/actions/create-file-upload.mjs +8 -8
  89. package/dist/actions/create-file-upload.mjs.map +1 -1
  90. package/dist/actions/create-notion-page.cjs +29 -29
  91. package/dist/actions/create-notion-page.cjs.map +1 -1
  92. package/dist/actions/create-notion-page.d.cts +83 -3
  93. package/dist/actions/create-notion-page.d.cts.map +1 -1
  94. package/dist/actions/create-notion-page.d.mts +83 -3
  95. package/dist/actions/create-notion-page.d.mts.map +1 -1
  96. package/dist/actions/create-notion-page.mjs +29 -29
  97. package/dist/actions/create-notion-page.mjs.map +1 -1
  98. package/dist/actions/delete-block.cjs +53 -53
  99. package/dist/actions/delete-block.cjs.map +1 -1
  100. package/dist/actions/delete-block.d.cts +2181 -3
  101. package/dist/actions/delete-block.d.cts.map +1 -1
  102. package/dist/actions/delete-block.d.mts +2181 -3
  103. package/dist/actions/delete-block.d.mts.map +1 -1
  104. package/dist/actions/delete-block.mjs +53 -53
  105. package/dist/actions/delete-block.mjs.map +1 -1
  106. package/dist/actions/duplicate-page.cjs +31 -31
  107. package/dist/actions/duplicate-page.cjs.map +1 -1
  108. package/dist/actions/duplicate-page.d.cts +90 -3
  109. package/dist/actions/duplicate-page.d.cts.map +1 -1
  110. package/dist/actions/duplicate-page.d.mts +90 -3
  111. package/dist/actions/duplicate-page.d.mts.map +1 -1
  112. package/dist/actions/duplicate-page.mjs +31 -31
  113. package/dist/actions/duplicate-page.mjs.map +1 -1
  114. package/dist/actions/fetch-all-block-contents.cjs +45 -45
  115. package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
  116. package/dist/actions/fetch-all-block-contents.d.cts +38 -3
  117. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
  118. package/dist/actions/fetch-all-block-contents.d.mts +38 -3
  119. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
  120. package/dist/actions/fetch-all-block-contents.mjs +45 -45
  121. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  122. package/dist/actions/fetch-block-contents.cjs +57 -57
  123. package/dist/actions/fetch-block-contents.cjs.map +1 -1
  124. package/dist/actions/fetch-block-contents.d.cts +687 -3
  125. package/dist/actions/fetch-block-contents.d.cts.map +1 -1
  126. package/dist/actions/fetch-block-contents.d.mts +687 -3
  127. package/dist/actions/fetch-block-contents.d.mts.map +1 -1
  128. package/dist/actions/fetch-block-contents.mjs +57 -57
  129. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  130. package/dist/actions/fetch-block-metadata.cjs +51 -51
  131. package/dist/actions/fetch-block-metadata.cjs.map +1 -1
  132. package/dist/actions/fetch-block-metadata.d.cts +2103 -3
  133. package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
  134. package/dist/actions/fetch-block-metadata.d.mts +2103 -3
  135. package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
  136. package/dist/actions/fetch-block-metadata.mjs +51 -51
  137. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  138. package/dist/actions/fetch-comments.cjs +37 -37
  139. package/dist/actions/fetch-comments.cjs.map +1 -1
  140. package/dist/actions/fetch-comments.d.cts +148 -3
  141. package/dist/actions/fetch-comments.d.cts.map +1 -1
  142. package/dist/actions/fetch-comments.d.mts +148 -3
  143. package/dist/actions/fetch-comments.d.mts.map +1 -1
  144. package/dist/actions/fetch-comments.mjs +37 -37
  145. package/dist/actions/fetch-comments.mjs.map +1 -1
  146. package/dist/actions/fetch-data.cjs +51 -51
  147. package/dist/actions/fetch-data.cjs.map +1 -1
  148. package/dist/actions/fetch-data.d.cts +594 -3
  149. package/dist/actions/fetch-data.d.cts.map +1 -1
  150. package/dist/actions/fetch-data.d.mts +594 -3
  151. package/dist/actions/fetch-data.d.mts.map +1 -1
  152. package/dist/actions/fetch-data.mjs +51 -51
  153. package/dist/actions/fetch-data.mjs.map +1 -1
  154. package/dist/actions/fetch-database.cjs +27 -27
  155. package/dist/actions/fetch-database.cjs.map +1 -1
  156. package/dist/actions/fetch-database.d.cts +89 -3
  157. package/dist/actions/fetch-database.d.cts.map +1 -1
  158. package/dist/actions/fetch-database.d.mts +89 -3
  159. package/dist/actions/fetch-database.d.mts.map +1 -1
  160. package/dist/actions/fetch-database.mjs +27 -27
  161. package/dist/actions/fetch-database.mjs.map +1 -1
  162. package/dist/actions/fetch-row.cjs +35 -35
  163. package/dist/actions/fetch-row.cjs.map +1 -1
  164. package/dist/actions/fetch-row.d.cts +151 -3
  165. package/dist/actions/fetch-row.d.cts.map +1 -1
  166. package/dist/actions/fetch-row.d.mts +151 -3
  167. package/dist/actions/fetch-row.d.mts.map +1 -1
  168. package/dist/actions/fetch-row.mjs +35 -35
  169. package/dist/actions/fetch-row.mjs.map +1 -1
  170. package/dist/actions/get-about-user.cjs +7 -7
  171. package/dist/actions/get-about-user.cjs.map +1 -1
  172. package/dist/actions/get-about-user.d.cts +44 -3
  173. package/dist/actions/get-about-user.d.cts.map +1 -1
  174. package/dist/actions/get-about-user.d.mts +44 -3
  175. package/dist/actions/get-about-user.d.mts.map +1 -1
  176. package/dist/actions/get-about-user.mjs +7 -7
  177. package/dist/actions/get-about-user.mjs.map +1 -1
  178. package/dist/actions/get-page-markdown.cjs +4 -4
  179. package/dist/actions/get-page-markdown.cjs.map +1 -1
  180. package/dist/actions/get-page-markdown.d.cts +15 -3
  181. package/dist/actions/get-page-markdown.d.cts.map +1 -1
  182. package/dist/actions/get-page-markdown.d.mts +15 -3
  183. package/dist/actions/get-page-markdown.d.mts.map +1 -1
  184. package/dist/actions/get-page-markdown.mjs +4 -4
  185. package/dist/actions/get-page-markdown.mjs.map +1 -1
  186. package/dist/actions/get-page-property-action.cjs.map +1 -1
  187. package/dist/actions/get-page-property-action.d.cts +13 -3
  188. package/dist/actions/get-page-property-action.d.cts.map +1 -1
  189. package/dist/actions/get-page-property-action.d.mts +13 -3
  190. package/dist/actions/get-page-property-action.d.mts.map +1 -1
  191. package/dist/actions/get-page-property-action.mjs.map +1 -1
  192. package/dist/actions/insert-row-database.cjs +30 -30
  193. package/dist/actions/insert-row-database.cjs.map +1 -1
  194. package/dist/actions/insert-row-database.d.cts +163 -3
  195. package/dist/actions/insert-row-database.d.cts.map +1 -1
  196. package/dist/actions/insert-row-database.d.mts +163 -3
  197. package/dist/actions/insert-row-database.d.mts.map +1 -1
  198. package/dist/actions/insert-row-database.mjs +30 -30
  199. package/dist/actions/insert-row-database.mjs.map +1 -1
  200. package/dist/actions/insert-row-from-nl.cjs +1 -1
  201. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  202. package/dist/actions/insert-row-from-nl.d.cts +19 -3
  203. package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
  204. package/dist/actions/insert-row-from-nl.d.mts +19 -3
  205. package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
  206. package/dist/actions/insert-row-from-nl.mjs +1 -1
  207. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  208. package/dist/actions/list-data-source-templates.cjs +4 -4
  209. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  210. package/dist/actions/list-data-source-templates.d.cts +19 -3
  211. package/dist/actions/list-data-source-templates.d.cts.map +1 -1
  212. package/dist/actions/list-data-source-templates.d.mts +19 -3
  213. package/dist/actions/list-data-source-templates.d.mts.map +1 -1
  214. package/dist/actions/list-data-source-templates.mjs +4 -4
  215. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  216. package/dist/actions/list-file-uploads.cjs +7 -7
  217. package/dist/actions/list-file-uploads.cjs.map +1 -1
  218. package/dist/actions/list-file-uploads.d.cts +32 -3
  219. package/dist/actions/list-file-uploads.d.cts.map +1 -1
  220. package/dist/actions/list-file-uploads.d.mts +32 -3
  221. package/dist/actions/list-file-uploads.d.mts.map +1 -1
  222. package/dist/actions/list-file-uploads.mjs +7 -7
  223. package/dist/actions/list-file-uploads.mjs.map +1 -1
  224. package/dist/actions/list-users.cjs +6 -6
  225. package/dist/actions/list-users.cjs.map +1 -1
  226. package/dist/actions/list-users.d.cts +58 -3
  227. package/dist/actions/list-users.d.cts.map +1 -1
  228. package/dist/actions/list-users.d.mts +58 -3
  229. package/dist/actions/list-users.d.mts.map +1 -1
  230. package/dist/actions/list-users.mjs +6 -6
  231. package/dist/actions/list-users.mjs.map +1 -1
  232. package/dist/actions/move-page.cjs +27 -27
  233. package/dist/actions/move-page.cjs.map +1 -1
  234. package/dist/actions/move-page.d.cts +90 -3
  235. package/dist/actions/move-page.d.cts.map +1 -1
  236. package/dist/actions/move-page.d.mts +90 -3
  237. package/dist/actions/move-page.d.mts.map +1 -1
  238. package/dist/actions/move-page.mjs +27 -27
  239. package/dist/actions/move-page.mjs.map +1 -1
  240. package/dist/actions/query-data-source.cjs +18 -18
  241. package/dist/actions/query-data-source.cjs.map +1 -1
  242. package/dist/actions/query-data-source.d.cts +159 -3
  243. package/dist/actions/query-data-source.d.cts.map +1 -1
  244. package/dist/actions/query-data-source.d.mts +159 -3
  245. package/dist/actions/query-data-source.d.mts.map +1 -1
  246. package/dist/actions/query-data-source.mjs +18 -18
  247. package/dist/actions/query-data-source.mjs.map +1 -1
  248. package/dist/actions/query-database-with-filter.cjs +49 -49
  249. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  250. package/dist/actions/query-database-with-filter.d.cts +214 -3
  251. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  252. package/dist/actions/query-database-with-filter.d.mts +214 -3
  253. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  254. package/dist/actions/query-database-with-filter.mjs +49 -49
  255. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  256. package/dist/actions/query-database.cjs +38 -38
  257. package/dist/actions/query-database.cjs.map +1 -1
  258. package/dist/actions/query-database.d.cts +208 -3
  259. package/dist/actions/query-database.d.cts.map +1 -1
  260. package/dist/actions/query-database.d.mts +208 -3
  261. package/dist/actions/query-database.d.mts.map +1 -1
  262. package/dist/actions/query-database.mjs +38 -38
  263. package/dist/actions/query-database.mjs.map +1 -1
  264. package/dist/actions/replace-page-content.cjs +3 -3
  265. package/dist/actions/replace-page-content.cjs.map +1 -1
  266. package/dist/actions/replace-page-content.d.cts +1706 -3
  267. package/dist/actions/replace-page-content.d.cts.map +1 -1
  268. package/dist/actions/replace-page-content.d.mts +1706 -3
  269. package/dist/actions/replace-page-content.d.mts.map +1 -1
  270. package/dist/actions/replace-page-content.mjs +3 -3
  271. package/dist/actions/replace-page-content.mjs.map +1 -1
  272. package/dist/actions/retrieve-comment.cjs.map +1 -1
  273. package/dist/actions/retrieve-comment.d.cts +7 -3
  274. package/dist/actions/retrieve-comment.d.cts.map +1 -1
  275. package/dist/actions/retrieve-comment.d.mts +7 -3
  276. package/dist/actions/retrieve-comment.d.mts.map +1 -1
  277. package/dist/actions/retrieve-comment.mjs.map +1 -1
  278. package/dist/actions/retrieve-database-property.cjs +19 -19
  279. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  280. package/dist/actions/retrieve-database-property.d.cts +78 -3
  281. package/dist/actions/retrieve-database-property.d.cts.map +1 -1
  282. package/dist/actions/retrieve-database-property.d.mts +78 -3
  283. package/dist/actions/retrieve-database-property.d.mts.map +1 -1
  284. package/dist/actions/retrieve-database-property.mjs +19 -19
  285. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  286. package/dist/actions/retrieve-file-upload.cjs +5 -5
  287. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  288. package/dist/actions/retrieve-file-upload.d.cts +25 -3
  289. package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
  290. package/dist/actions/retrieve-file-upload.d.mts +25 -3
  291. package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
  292. package/dist/actions/retrieve-file-upload.mjs +5 -5
  293. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  294. package/dist/actions/retrieve-page.cjs +34 -34
  295. package/dist/actions/retrieve-page.cjs.map +1 -1
  296. package/dist/actions/retrieve-page.d.cts +139 -3
  297. package/dist/actions/retrieve-page.d.cts.map +1 -1
  298. package/dist/actions/retrieve-page.d.mts +139 -3
  299. package/dist/actions/retrieve-page.d.mts.map +1 -1
  300. package/dist/actions/retrieve-page.mjs +34 -34
  301. package/dist/actions/retrieve-page.mjs.map +1 -1
  302. package/dist/actions/search-notion-page.cjs +54 -54
  303. package/dist/actions/search-notion-page.cjs.map +1 -1
  304. package/dist/actions/search-notion-page.d.cts +751 -3
  305. package/dist/actions/search-notion-page.d.cts.map +1 -1
  306. package/dist/actions/search-notion-page.d.mts +751 -3
  307. package/dist/actions/search-notion-page.d.mts.map +1 -1
  308. package/dist/actions/search-notion-page.mjs +54 -54
  309. package/dist/actions/search-notion-page.mjs.map +1 -1
  310. package/dist/actions/send-file-upload.cjs +7 -7
  311. package/dist/actions/send-file-upload.cjs.map +1 -1
  312. package/dist/actions/send-file-upload.d.cts +33 -3
  313. package/dist/actions/send-file-upload.d.cts.map +1 -1
  314. package/dist/actions/send-file-upload.d.mts +33 -3
  315. package/dist/actions/send-file-upload.d.mts.map +1 -1
  316. package/dist/actions/send-file-upload.mjs +7 -7
  317. package/dist/actions/send-file-upload.mjs.map +1 -1
  318. package/dist/actions/update-block.cjs +55 -55
  319. package/dist/actions/update-block.cjs.map +1 -1
  320. package/dist/actions/update-block.d.cts +564 -3
  321. package/dist/actions/update-block.d.cts.map +1 -1
  322. package/dist/actions/update-block.d.mts +564 -3
  323. package/dist/actions/update-block.d.mts.map +1 -1
  324. package/dist/actions/update-block.mjs +55 -55
  325. package/dist/actions/update-block.mjs.map +1 -1
  326. package/dist/actions/update-page.cjs +32 -32
  327. package/dist/actions/update-page.cjs.map +1 -1
  328. package/dist/actions/update-page.d.cts +103 -3
  329. package/dist/actions/update-page.d.cts.map +1 -1
  330. package/dist/actions/update-page.d.mts +103 -3
  331. package/dist/actions/update-page.d.mts.map +1 -1
  332. package/dist/actions/update-page.mjs +32 -32
  333. package/dist/actions/update-page.mjs.map +1 -1
  334. package/dist/actions/update-row-database.cjs +31 -31
  335. package/dist/actions/update-row-database.cjs.map +1 -1
  336. package/dist/actions/update-row-database.d.cts +126 -3
  337. package/dist/actions/update-row-database.d.cts.map +1 -1
  338. package/dist/actions/update-row-database.d.mts +126 -3
  339. package/dist/actions/update-row-database.d.mts.map +1 -1
  340. package/dist/actions/update-row-database.mjs +31 -31
  341. package/dist/actions/update-row-database.mjs.map +1 -1
  342. package/dist/actions/update-schema-database.cjs +51 -51
  343. package/dist/actions/update-schema-database.cjs.map +1 -1
  344. package/dist/actions/update-schema-database.d.cts +314 -3
  345. package/dist/actions/update-schema-database.d.cts.map +1 -1
  346. package/dist/actions/update-schema-database.d.mts +314 -3
  347. package/dist/actions/update-schema-database.d.mts.map +1 -1
  348. package/dist/actions/update-schema-database.mjs +51 -51
  349. package/dist/actions/update-schema-database.mjs.map +1 -1
  350. package/dist/actions/upsert-row-database.cjs +4 -4
  351. package/dist/actions/upsert-row-database.cjs.map +1 -1
  352. package/dist/actions/upsert-row-database.d.cts +218 -3
  353. package/dist/actions/upsert-row-database.d.cts.map +1 -1
  354. package/dist/actions/upsert-row-database.d.mts +218 -3
  355. package/dist/actions/upsert-row-database.d.mts.map +1 -1
  356. package/dist/actions/upsert-row-database.mjs +4 -4
  357. package/dist/actions/upsert-row-database.mjs.map +1 -1
  358. package/dist/execute.cjs +1 -1
  359. package/dist/execute.cjs.map +1 -1
  360. package/dist/execute.mjs +1 -1
  361. package/dist/execute.mjs.map +1 -1
  362. package/package.json +2 -2
@@ -1,9 +1,157 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-row.d.ts
4
- declare const NotionFetchRowInput: z.ZodTypeAny;
5
- declare const NotionFetchRowOutput: z.ZodTypeAny;
6
- declare const notionFetchRow: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionFetchRowInput: z.ZodObject<{
5
+ page_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const NotionFetchRowOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ url: z.ZodNullable<z.ZodString>;
10
+ icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
11
+ type: z.ZodNullable<z.ZodString>;
12
+ emoji: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodNullable<z.ZodString>;
15
+ custom_emoji: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ type: z.ZodNullable<z.ZodString>;
22
+ external: z.ZodNullable<z.ZodObject<{
23
+ url: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodNullable<z.ZodString>;
27
+ file_upload: z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ file: z.ZodNullable<z.ZodObject<{
32
+ url: z.ZodNullable<z.ZodString>;
33
+ expiry_time: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ type: z.ZodNullable<z.ZodString>;
36
+ }, z.core.$strip>]>>>;
37
+ cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
38
+ type: z.ZodNullable<z.ZodString>;
39
+ external: z.ZodNullable<z.ZodObject<{
40
+ url: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ type: z.ZodNullable<z.ZodString>;
44
+ file_upload: z.ZodNullable<z.ZodObject<{
45
+ id: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ file: z.ZodNullable<z.ZodObject<{
49
+ url: z.ZodNullable<z.ZodString>;
50
+ expiry_time: z.ZodNullable<z.ZodString>;
51
+ }, z.core.$strip>>;
52
+ type: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$strip>]>>>;
54
+ object: z.ZodNullable<z.ZodString>;
55
+ parent: z.ZodUnion<readonly [z.ZodObject<{
56
+ type: z.ZodNullable<z.ZodString>;
57
+ data_source_id: z.ZodNullable<z.ZodString>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodNullable<z.ZodString>;
60
+ database_id: z.ZodNullable<z.ZodString>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ type: z.ZodNullable<z.ZodString>;
63
+ page_id: z.ZodNullable<z.ZodString>;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ type: z.ZodNullable<z.ZodString>;
66
+ workspace: z.ZodNullable<z.ZodBoolean>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ type: z.ZodNullable<z.ZodString>;
69
+ block_id: z.ZodNullable<z.ZodString>;
70
+ }, z.core.$strip>]>;
71
+ archived: z.ZodNullable<z.ZodBoolean>;
72
+ in_trash: z.ZodNullable<z.ZodBoolean>;
73
+ is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
74
+ created_by: z.ZodNullable<z.ZodObject<{
75
+ id: z.ZodNullable<z.ZodString>;
76
+ bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
+ owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
78
+ type: z.ZodNullable<z.ZodString>;
79
+ workspace: z.ZodNullable<z.ZodBoolean>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodNullable<z.ZodString>;
82
+ user: z.ZodNullable<z.ZodObject<{
83
+ id: z.ZodNullable<z.ZodString>;
84
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ object: z.ZodNullable<z.ZodString>;
87
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
88
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ }, z.core.$strip>>>;
90
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ }, z.core.$strip>>;
92
+ }, z.core.$strip>]>>>;
93
+ workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
+ max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>>;
99
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
101
+ person: "person";
102
+ bot: "bot";
103
+ }>>>;
104
+ object: z.ZodNullable<z.ZodString>;
105
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ }, z.core.$strip>>>;
108
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ }, z.core.$strip>>;
110
+ properties: z.ZodObject<{}, z.core.$strip>;
111
+ public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ created_time: z.ZodNullable<z.ZodString>;
114
+ last_edited_by: z.ZodNullable<z.ZodObject<{
115
+ id: z.ZodNullable<z.ZodString>;
116
+ bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
+ owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
118
+ type: z.ZodNullable<z.ZodString>;
119
+ workspace: z.ZodNullable<z.ZodBoolean>;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ type: z.ZodNullable<z.ZodString>;
122
+ user: z.ZodNullable<z.ZodObject<{
123
+ id: z.ZodNullable<z.ZodString>;
124
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ object: z.ZodNullable<z.ZodString>;
127
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
128
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ }, z.core.$strip>>>;
130
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ }, z.core.$strip>>;
132
+ }, z.core.$strip>]>>>;
133
+ workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
136
+ max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
137
+ }, z.core.$strip>>>;
138
+ }, z.core.$strip>>>;
139
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
141
+ person: "person";
142
+ bot: "bot";
143
+ }>>>;
144
+ object: z.ZodNullable<z.ZodString>;
145
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
146
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ }, z.core.$strip>>>;
148
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ }, z.core.$strip>>;
150
+ last_edited_time: z.ZodNullable<z.ZodString>;
151
+ }, z.core.$strip>;
152
+ declare const notionFetchRow: import("@keystrokehq/action").WorkflowActionDefinition<{
153
+ page_id: string;
154
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
155
  //#endregion
8
156
  export { notionFetchRow };
9
157
  //# sourceMappingURL=fetch-row.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-row.d.cts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAElC;AAAA,cA6FW,oBAAA,EAAsB,CAAA,CAAE,UAiB6O;AAAA,cAErQ,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-row.d.cts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cA+FnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBpB,cAAA,gCAAc,wBAAA"}
@@ -1,9 +1,157 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-row.d.ts
4
- declare const NotionFetchRowInput: z.ZodTypeAny;
5
- declare const NotionFetchRowOutput: z.ZodTypeAny;
6
- declare const notionFetchRow: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NotionFetchRowInput: z.ZodObject<{
5
+ page_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const NotionFetchRowOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ url: z.ZodNullable<z.ZodString>;
10
+ icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
11
+ type: z.ZodNullable<z.ZodString>;
12
+ emoji: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodNullable<z.ZodString>;
15
+ custom_emoji: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ type: z.ZodNullable<z.ZodString>;
22
+ external: z.ZodNullable<z.ZodObject<{
23
+ url: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodNullable<z.ZodString>;
27
+ file_upload: z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ file: z.ZodNullable<z.ZodObject<{
32
+ url: z.ZodNullable<z.ZodString>;
33
+ expiry_time: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ type: z.ZodNullable<z.ZodString>;
36
+ }, z.core.$strip>]>>>;
37
+ cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
38
+ type: z.ZodNullable<z.ZodString>;
39
+ external: z.ZodNullable<z.ZodObject<{
40
+ url: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ type: z.ZodNullable<z.ZodString>;
44
+ file_upload: z.ZodNullable<z.ZodObject<{
45
+ id: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ file: z.ZodNullable<z.ZodObject<{
49
+ url: z.ZodNullable<z.ZodString>;
50
+ expiry_time: z.ZodNullable<z.ZodString>;
51
+ }, z.core.$strip>>;
52
+ type: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$strip>]>>>;
54
+ object: z.ZodNullable<z.ZodString>;
55
+ parent: z.ZodUnion<readonly [z.ZodObject<{
56
+ type: z.ZodNullable<z.ZodString>;
57
+ data_source_id: z.ZodNullable<z.ZodString>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodNullable<z.ZodString>;
60
+ database_id: z.ZodNullable<z.ZodString>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ type: z.ZodNullable<z.ZodString>;
63
+ page_id: z.ZodNullable<z.ZodString>;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ type: z.ZodNullable<z.ZodString>;
66
+ workspace: z.ZodNullable<z.ZodBoolean>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ type: z.ZodNullable<z.ZodString>;
69
+ block_id: z.ZodNullable<z.ZodString>;
70
+ }, z.core.$strip>]>;
71
+ archived: z.ZodNullable<z.ZodBoolean>;
72
+ in_trash: z.ZodNullable<z.ZodBoolean>;
73
+ is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
74
+ created_by: z.ZodNullable<z.ZodObject<{
75
+ id: z.ZodNullable<z.ZodString>;
76
+ bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
+ owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
78
+ type: z.ZodNullable<z.ZodString>;
79
+ workspace: z.ZodNullable<z.ZodBoolean>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodNullable<z.ZodString>;
82
+ user: z.ZodNullable<z.ZodObject<{
83
+ id: z.ZodNullable<z.ZodString>;
84
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ object: z.ZodNullable<z.ZodString>;
87
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
88
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ }, z.core.$strip>>>;
90
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ }, z.core.$strip>>;
92
+ }, z.core.$strip>]>>>;
93
+ workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
+ max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>>;
99
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
101
+ person: "person";
102
+ bot: "bot";
103
+ }>>>;
104
+ object: z.ZodNullable<z.ZodString>;
105
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ }, z.core.$strip>>>;
108
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ }, z.core.$strip>>;
110
+ properties: z.ZodObject<{}, z.core.$strip>;
111
+ public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ created_time: z.ZodNullable<z.ZodString>;
114
+ last_edited_by: z.ZodNullable<z.ZodObject<{
115
+ id: z.ZodNullable<z.ZodString>;
116
+ bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
+ owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
118
+ type: z.ZodNullable<z.ZodString>;
119
+ workspace: z.ZodNullable<z.ZodBoolean>;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ type: z.ZodNullable<z.ZodString>;
122
+ user: z.ZodNullable<z.ZodObject<{
123
+ id: z.ZodNullable<z.ZodString>;
124
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ object: z.ZodNullable<z.ZodString>;
127
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
128
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ }, z.core.$strip>>>;
130
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ }, z.core.$strip>>;
132
+ }, z.core.$strip>]>>>;
133
+ workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
136
+ max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
137
+ }, z.core.$strip>>>;
138
+ }, z.core.$strip>>>;
139
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
141
+ person: "person";
142
+ bot: "bot";
143
+ }>>>;
144
+ object: z.ZodNullable<z.ZodString>;
145
+ person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
146
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ }, z.core.$strip>>>;
148
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ }, z.core.$strip>>;
150
+ last_edited_time: z.ZodNullable<z.ZodString>;
151
+ }, z.core.$strip>;
152
+ declare const notionFetchRow: import("@keystrokehq/action").WorkflowActionDefinition<{
153
+ page_id: string;
154
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
155
  //#endregion
8
156
  export { notionFetchRow };
9
157
  //# sourceMappingURL=fetch-row.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-row.d.mts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAElC;AAAA,cA6FW,oBAAA,EAAsB,CAAA,CAAE,UAiB6O;AAAA,cAErQ,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-row.d.mts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cA+FnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBpB,cAAA,gCAAc,wBAAA"}
@@ -3,71 +3,71 @@ import { z } from "zod";
3
3
  //#region src/actions/fetch-row.ts
4
4
  const NotionFetchRowInput = z.object({ page_id: z.string().describe("The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.") });
5
5
  const NotionFetchRow_EmojiObjectSchema = z.object({
6
- type: z.string(),
7
- emoji: z.string()
6
+ type: z.string().nullable(),
7
+ emoji: z.string().nullable()
8
8
  });
9
9
  const NotionFetchRow_CustomEmojiDetailsSchema = z.object({
10
- id: z.string().describe("Unique identifier for the custom emoji (UUID)."),
10
+ id: z.string().describe("Unique identifier for the custom emoji (UUID).").nullable(),
11
11
  url: z.string().describe("URL to the custom emoji image.").nullable().optional(),
12
12
  name: z.string().describe("Name of the custom emoji.").nullable().optional()
13
13
  }).describe("Custom emoji details.");
14
14
  const NotionFetchRow_CustomEmojiIconSchema = z.object({
15
- type: z.string(),
15
+ type: z.string().nullable(),
16
16
  custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable()
17
17
  });
18
- const NotionFetchRow_ExternalFileDetailsSchema = z.object({ url: z.string().describe("URL to the externally hosted file.") });
18
+ const NotionFetchRow_ExternalFileDetailsSchema = z.object({ url: z.string().describe("URL to the externally hosted file.").nullable() });
19
19
  const NotionFetchRow_FileObjectExternalSchema = z.object({
20
- type: z.string(),
20
+ type: z.string().nullable(),
21
21
  external: NotionFetchRow_ExternalFileDetailsSchema.nullable()
22
22
  });
23
- const NotionFetchRow_FileUploadDetailsSchema = z.object({ id: z.string().describe("ID of the uploaded file (UUID).") });
23
+ const NotionFetchRow_FileUploadDetailsSchema = z.object({ id: z.string().describe("ID of the uploaded file (UUID).").nullable() });
24
24
  const NotionFetchRow_FileObjectFileUploadSchema = z.object({
25
- type: z.string(),
25
+ type: z.string().nullable(),
26
26
  file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable()
27
27
  });
28
28
  const NotionFetchRow_NotionHostedFileDetailsSchema = z.object({
29
- url: z.string().describe("Authenticated URL to the file, valid for one hour."),
30
- expiry_time: z.string().describe("Expiration time of the temporary URL (ISO 8601 format).")
29
+ url: z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
30
+ expiry_time: z.string().describe("Expiration time of the temporary URL (ISO 8601 format).").nullable()
31
31
  });
32
32
  const NotionFetchRow_FileObjectFileSchema = z.object({
33
33
  file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),
34
- type: z.string()
34
+ type: z.string().nullable()
35
35
  });
36
36
  const NotionFetchRow_ParentDataSourceSchema = z.object({
37
- type: z.string(),
38
- data_source_id: z.string().describe("Data source ID (UUID).")
37
+ type: z.string().nullable(),
38
+ data_source_id: z.string().describe("Data source ID (UUID).").nullable()
39
39
  });
40
40
  const NotionFetchRow_ParentDatabaseSchema = z.object({
41
- type: z.string(),
42
- database_id: z.string().describe("Database ID (UUID).")
41
+ type: z.string().nullable(),
42
+ database_id: z.string().describe("Database ID (UUID).").nullable()
43
43
  });
44
44
  const NotionFetchRow_ParentPageSchema = z.object({
45
- type: z.string(),
46
- page_id: z.string().describe("Page ID (UUID).")
45
+ type: z.string().nullable(),
46
+ page_id: z.string().describe("Page ID (UUID).").nullable()
47
47
  });
48
48
  const NotionFetchRow_ParentWorkspaceSchema = z.object({
49
- type: z.string(),
50
- workspace: z.boolean()
49
+ type: z.string().nullable(),
50
+ workspace: z.boolean().nullable()
51
51
  });
52
52
  const NotionFetchRow_ParentBlockSchema = z.object({
53
- type: z.string(),
54
- block_id: z.string().describe("Block ID (UUID).")
53
+ type: z.string().nullable(),
54
+ block_id: z.string().describe("Block ID (UUID).").nullable()
55
55
  });
56
56
  const NotionFetchRow_BotOwnerWorkspaceSchema = z.object({
57
- type: z.string().describe("Always \"workspace\"."),
58
- workspace: z.boolean().describe("Boolean flag indicating workspace ownership.")
57
+ type: z.string().describe("Always \"workspace\".").nullable(),
58
+ workspace: z.boolean().describe("Boolean flag indicating workspace ownership.").nullable()
59
59
  }).describe("Bot owner when owned by a workspace.");
60
60
  const NotionFetchRow_PersonDetailsSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability).").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
61
61
  const NotionFetchRow_BotOwnerUserDetailsSchema = z.object({
62
- id: z.string().describe("Unique identifier for the user (UUID)."),
62
+ id: z.string().describe("Unique identifier for the user (UUID).").nullable(),
63
63
  name: z.string().describe("Display name of the user.").nullable().optional(),
64
64
  type: z.string().describe("Type of user - always 'person' for bot owners.").nullable().optional(),
65
- object: z.string().describe("Always \"user\"."),
65
+ object: z.string().describe("Always \"user\".").nullable(),
66
66
  person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
67
67
  avatar_url: z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
68
68
  }).describe("Simplified user details for bot owner to avoid circular reference.\n\nWhen a bot is owned by a user, this contains the basic info of that user.");
69
69
  const NotionFetchRow_BotOwnerUserSchema = z.object({
70
- type: z.string().describe("Always \"user\"."),
70
+ type: z.string().describe("Always \"user\".").nullable(),
71
71
  user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable()
72
72
  }).describe("Bot owner when owned by a user.");
73
73
  const NotionFetchRow_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum uploadable file size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
@@ -78,11 +78,11 @@ const NotionFetchRow_BotDetailsSchema = z.object({
78
78
  workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional()
79
79
  }).describe("Bot-specific details when user type is 'bot'.");
80
80
  const NotionFetchRow_PartialUserSchema = z.object({
81
- id: z.string().describe("Unique identifier for the user (UUID)."),
81
+ id: z.string().describe("Unique identifier for the user (UUID).").nullable(),
82
82
  bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),
83
83
  name: z.string().describe("Display name of the user.").nullable().optional(),
84
84
  type: z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
85
- object: z.string().describe("Always \"user\"."),
85
+ object: z.string().describe("Always \"user\".").nullable(),
86
86
  person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
87
87
  avatar_url: z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
88
88
  });
@@ -92,8 +92,8 @@ const notionFetchRow = action("NOTION_FETCH_ROW", {
92
92
  description: "Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.",
93
93
  input: NotionFetchRowInput,
94
94
  output: z.object({
95
- id: z.string().describe("Unique identifier of the page (UUIDv4 format)."),
96
- url: z.string().describe("The URL of the Notion page."),
95
+ id: z.string().describe("Unique identifier of the page (UUIDv4 format).").nullable(),
96
+ url: z.string().describe("The URL of the Notion page.").nullable(),
97
97
  icon: z.union([
98
98
  NotionFetchRow_EmojiObjectSchema,
99
99
  NotionFetchRow_CustomEmojiIconSchema,
@@ -106,7 +106,7 @@ const notionFetchRow = action("NOTION_FETCH_ROW", {
106
106
  NotionFetchRow_FileObjectFileUploadSchema,
107
107
  NotionFetchRow_FileObjectFileSchema
108
108
  ]).nullable().optional(),
109
- object: z.string().describe("Always \"page\"."),
109
+ object: z.string().describe("Always \"page\".").nullable(),
110
110
  parent: z.union([
111
111
  NotionFetchRow_ParentDataSourceSchema,
112
112
  NotionFetchRow_ParentDatabaseSchema,
@@ -114,16 +114,16 @@ const notionFetchRow = action("NOTION_FETCH_ROW", {
114
114
  NotionFetchRow_ParentWorkspaceSchema,
115
115
  NotionFetchRow_ParentBlockSchema
116
116
  ]),
117
- archived: z.boolean().describe("Whether the page is archived."),
118
- in_trash: z.boolean().describe("Whether the page is in the trash."),
117
+ archived: z.boolean().describe("Whether the page is archived.").nullable(),
118
+ in_trash: z.boolean().describe("Whether the page is in the trash.").nullable(),
119
119
  is_locked: z.boolean().nullable().optional(),
120
120
  created_by: NotionFetchRow_PartialUserSchema.nullable(),
121
121
  properties: z.object({}).describe("Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data."),
122
122
  public_url: z.string().describe("The public page URL if the page has been published to the web, otherwise null.").nullable().optional(),
123
123
  request_id: z.string().nullable().optional(),
124
- created_time: z.string().describe("Date and time when this page was created (ISO 8601 format)."),
124
+ created_time: z.string().describe("Date and time when this page was created (ISO 8601 format).").nullable(),
125
125
  last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),
126
- last_edited_time: z.string().describe("Date and time when this page was last edited (ISO 8601 format).")
126
+ last_edited_time: z.string().describe("Date and time when this page was last edited (ISO 8601 format).").nullable()
127
127
  }).describe("NOTION_FETCH_ROW - Response Schema\n\nResponse for fetching a Notion database row (page). Returns the page object directly\nfrom the Notion API without additional wrapping, preserving all fields and structures\nfrom Notion's official Retrieve a Page response.")
128
128
  });
129
129
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-row.mjs","names":[],"sources":["../../src/actions/fetch-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchRowInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n emoji: z.string(),\n});\nconst NotionFetchRow_CustomEmojiDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\"),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionFetchRow_ExternalFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n});\nconst NotionFetchRow_FileObjectExternalSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionFetchRow_FileUploadDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\"),\n});\nconst NotionFetchRow_FileObjectFileUploadSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n});\nconst NotionFetchRow_NotionHostedFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\"),\n});\nconst NotionFetchRow_FileObjectFileSchema: z.ZodTypeAny = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string(),\n});\nconst NotionFetchRow_ParentDataSourceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\"),\n});\nconst NotionFetchRow_ParentDatabaseSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n database_id: z.string().describe(\"Database ID (UUID).\"),\n});\nconst NotionFetchRow_ParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n page_id: z.string().describe(\"Page ID (UUID).\"),\n});\nconst NotionFetchRow_ParentWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n});\nconst NotionFetchRow_ParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n block_id: z.string().describe(\"Block ID (UUID).\"),\n});\nconst NotionFetchRow_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\"),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\"),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n});\nexport const NotionFetchRowOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n url: z.string().describe(\"The URL of the Notion page.\"),\n icon: z.union([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\"),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\"),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\"),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionFetchRow_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\"),\n last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\"),\n}).describe(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO;CACf,OAAO,EAAE,OAAO;AAClB,CAAC;AACD,MAAM,0CAAw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O;CACP,QAxBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACtD,MAAM,EAAE,MAAM;GAAC;GAAkC;GAAsC;GAAyC;GAA2C;EAAmC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrO,OAAO,EAAE,MAAM;GAAC;GAAyC;GAA2C;EAAmC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC9C,QAAQ,EAAE,MAAM;GAAC;GAAuC;GAAqC;GAAiC;GAAsC;EAAgC,CAAC;EACrM,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;EAC9D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;EAClE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,YAAY,iCAAiC,SAAS;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI;EAClK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC/F,gBAAgB,iCAAiC,SAAS;EAC1D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzG,CAAC,CAAC,CAAC,SAAS,qQAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-row.mjs","names":[],"sources":["../../src/actions/fetch-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchRowInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n});\nconst NotionFetchRow_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionFetchRow_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n});\nconst NotionFetchRow_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionFetchRow_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n});\nconst NotionFetchRow_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n});\nconst NotionFetchRow_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\").nullable(),\n});\nconst NotionFetchRow_FileObjectFileSchema = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n});\nconst NotionFetchRow_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n});\nconst NotionFetchRow_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_BotOwnerWorkspaceSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\").nullable(),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n});\nexport const NotionFetchRowOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionFetchRow_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\").nullable(),\n last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\").nullable(),\n}).describe(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,cAAc,wCAAwC,SAAS;AACjE,CAAC;AAC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AACV,CAAC"}
@@ -4,15 +4,15 @@ let zod = require("zod");
4
4
  const NotionGetAboutUserInput = zod.z.object({ user_id: zod.z.string().describe("The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.") });
5
5
  const NotionGetAboutUser_PersonInfoSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.").nullable().optional() });
6
6
  const NotionGetAboutUser_NestedPersonUserSchema = zod.z.object({
7
- id: zod.z.string().describe("Unique identifier of the person who authorized the integration."),
7
+ id: zod.z.string().describe("Unique identifier of the person who authorized the integration.").nullable(),
8
8
  name: zod.z.string().describe("Person’s display name, if available.").nullable().optional(),
9
- type: zod.z.string().describe("Type of nested user; for an authorizing human this is \"person\"."),
10
- object: zod.z.string().describe("Always \"user\" for the nested user object."),
9
+ type: zod.z.string().describe("Type of nested user; for an authorizing human this is \"person\".").nullable(),
10
+ object: zod.z.string().describe("Always \"user\" for the nested user object.").nullable(),
11
11
  person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),
12
12
  avatar_url: zod.z.string().describe("URL of the person's avatar image, if set.").nullable().optional()
13
13
  });
14
14
  const NotionGetAboutUser_BotOwnerSchema = zod.z.object({
15
- type: zod.z.enum(["workspace", "user"]).describe("The type of owner for this bot."),
15
+ type: zod.z.enum(["workspace", "user"]).describe("The type of owner for this bot.").nullable(),
16
16
  user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),
17
17
  workspace: zod.z.boolean().describe("Present and true when the owner.type is \"workspace\".").nullable().optional()
18
18
  });
@@ -24,11 +24,11 @@ const NotionGetAboutUser_BotInfoSchema = zod.z.object({
24
24
  workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional()
25
25
  });
26
26
  const NotionGetAboutUserOutput = zod.z.object({
27
- id: zod.z.string().describe("Unique identifier for this user."),
27
+ id: zod.z.string().describe("Unique identifier for this user.").nullable(),
28
28
  bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),
29
29
  name: zod.z.string().describe("User's display name. May be null or omitted.").nullable().optional(),
30
- type: zod.z.enum(["person", "bot"]).describe("Type of the user; \"person\" or \"bot\"."),
31
- object: zod.z.string().describe("Always the string \"user\"."),
30
+ type: zod.z.enum(["person", "bot"]).describe("Type of the user; \"person\" or \"bot\".").nullable(),
31
+ object: zod.z.string().describe("Always the string \"user\".").nullable(),
32
32
  person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),
33
33
  avatar_url: zod.z.string().describe("URL of the user's avatar image, if set.").nullable().optional(),
34
34
  request_id: zod.z.string().describe("The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"get-about-user.cjs","names":["z","action"],"sources":["../../src/actions/get-about-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetAboutUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n});\nconst NotionGetAboutUser_NestedPersonUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\"),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\"),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\"),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotOwnerSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\"),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n});\nconst NotionGetAboutUser_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotInfoSchema: z.ZodTypeAny = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n});\nexport const NotionGetAboutUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this user.\"),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\"),\n object: z.string().describe(\"Always the string \\\"user\\\".\"),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n});\n\nexport const notionGetAboutUser = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAChK,CAAC;AACD,MAAM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AC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,kBAAkB,yCAAyC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,KAAK,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,KAAK,CAAC,CAAC,CAAC,SAAS,0CAA0C;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClQ,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-about-user.cjs","names":["z","action"],"sources":["../../src/actions/get-about-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetAboutUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n});\nconst NotionGetAboutUser_NestedPersonUserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\").nullable(),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\").nullable(),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n});\nconst NotionGetAboutUser_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotInfoSchema = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n});\nexport const NotionGetAboutUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for this user.\").nullable(),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\").nullable(),\n object: z.string().describe(\"Always the string \\\"user\\\".\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n});\n\nexport const notionGetAboutUser = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAChK,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7K,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,KAAK,CAAC,aAAa,MAAM,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,MAAM,0CAA0C,SAAS,CAAC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