@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 +1 @@
1
- {"version":3,"file":"update-row-database.mjs","names":[],"sources":["../../src/actions/update-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateRowDatabaseInput: z.ZodTypeAny = z.object({\n icon: z.string().describe(\"The emoji to be used as the icon for the page. Must be a single emoji character (e.g., '😻', '🤔'). Empty strings or whitespace-only values are ignored.\").optional(),\n cover: z.string().describe(\"URL of an external image to be used as the cover for the page (e.g., 'https://google.com/image.png'). Empty strings or whitespace-only values are ignored.\").optional(),\n row_id: z.string().describe(\"REQUIRED: The page UUID of the database row to update. This is a PAGE ID (not a database ID). A database row in Notion is actually a page - use the page's UUID here. Format: 32-character UUID with hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5'). NOT a URL or page title. Find this ID in the page URL or via 'Copy link' in Notion. NOTE: To update DATABASE structure/schema, use NOTION_UPDATE_SCHEMA_DATABASE instead. This action only updates individual rows/pages within a database.\"),\n delete_row: z.boolean().default(false).describe(\"If true, the row (page) will be archived, effectively deleting it from the active view. If the page is already archived, the action will return success with the current page state. If false, the row will be updated with other provided data.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place.\"),\n value: z.string().describe(\"Value formatted according to the property type:\\n- title, rich_text - text string (max 2000 chars, truncated if longer)\\n- number - numeric string ex. \\\"23.4\\\"\\n- select - single option name (no commas). For multiple values, use multi_select.\\n- multi_select - comma separated values ex. \\\"India,USA\\\"\\n- date - ISO 8601. Single: \\\"2021-05-11\\\". Range: \\\"2021-05-11/2021-05-15\\\" (slash-separated).\\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\\n- url - a URL string.\\n- files - comma separated HTTPS URLs only (no file:// or http://).\\n- checkbox - \\\"True\\\" or \\\"False\\\"\"),\n})).default([]).describe(\"List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.\").optional(),\n});\nconst NotionUpdateRowDatabase_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\"),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\"),\n}).describe(\"Standard emoji icon.\");\nconst NotionUpdateRowDatabase_CustomEmojiObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL to the emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionUpdateRowDatabase_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\"),\n custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionUpdateRowDatabase_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionUpdateRowDatabase_FileIconWithHostedSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\"),\n}).describe(\"File icon with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_FileUploadObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\"),\n}).describe(\"File uploaded via API.\");\nconst NotionUpdateRowDatabase_FileIconWithUploadSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\"),\n}).describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"File icon with external URL.\");\nconst NotionUpdateRowDatabase_CoverWithHostedSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\"),\n}).describe(\"Cover with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_CoverWithUploadSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"Cover with uploaded file.\");\nconst NotionUpdateRowDatabase_CoverWithExternalSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"Cover with external URL.\");\nconst NotionUpdateRowDatabase_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"database_id\\\".\"),\n database_id: z.string().describe(\"The database identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a database.\");\nconst NotionUpdateRowDatabase_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"data_source_id\\\".\"),\n database_id: z.string().describe(\"The parent database identifier in UUIDv4 format.\"),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a data source.\");\nconst NotionUpdateRowDatabase_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"page_id\\\".\"),\n page_id: z.string().describe(\"The page identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a page.\");\nconst NotionUpdateRowDatabase_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Parent is the workspace.\");\nconst NotionUpdateRowDatabase_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"block_id\\\".\"),\n block_id: z.string().describe(\"The block identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a block.\");\nconst NotionUpdateRowDatabase_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user in UUID format.\"),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n}).describe(\"Partial user object representing a Notion user.\");\nexport const NotionUpdateRowDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionUpdateRowDatabase_EmojiIconSchema, NotionUpdateRowDatabase_CustomEmojiIconSchema, NotionUpdateRowDatabase_FileIconWithHostedSchema, NotionUpdateRowDatabase_FileIconWithUploadSchema, NotionUpdateRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionUpdateRowDatabase_CoverWithHostedSchema, NotionUpdateRowDatabase_CoverWithUploadSchema, NotionUpdateRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\"),\n parent: z.union([NotionUpdateRowDatabase_DatabaseParentSchema, NotionUpdateRowDatabase_DataSourceParentSchema, NotionUpdateRowDatabase_PageParentSchema, NotionUpdateRowDatabase_WorkspaceParentSchema, NotionUpdateRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived (deleted).\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys correspond to property names defined in the parent database schema, and values are property value objects specific to each property type.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when this page was last updated, in ISO 8601 format.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the execution layer explaining any special handling performed.\").nullable().optional(),\n}).describe(\"Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.\");\n\nexport const notionUpdateRowDatabase = action(\"NOTION_UPDATE_ROW_DATABASE\", {\n slug: \"notion-update-row-database\",\n name: \"Update Database Row (Page)\",\n description: \"Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.\",\n input: NotionUpdateRowDatabaseInput,\n output: NotionUpdateRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J,CAAC,CAAC,SAAS;CAClM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0eAA0e;CACtgB,YAAY,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;CAC7S,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC,CAAC,CAAC,SAAS,mnBAAmnB;EACj5B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,usBAAusB;CACpuB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,weAAwe,CAAC,CAAC,SAAS;AAC5gB,CAAC;AACD,MAA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrO,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC9E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,CAAC,CAAC,CAAC,SAAS,mHAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-row-database.mjs","names":[],"sources":["../../src/actions/update-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateRowDatabaseInput = z.object({\n icon: z.string().describe(\"The emoji to be used as the icon for the page. Must be a single emoji character (e.g., '😻', '🤔'). Empty strings or whitespace-only values are ignored.\").optional(),\n cover: z.string().describe(\"URL of an external image to be used as the cover for the page (e.g., 'https://google.com/image.png'). Empty strings or whitespace-only values are ignored.\").optional(),\n row_id: z.string().describe(\"REQUIRED: The page UUID of the database row to update. This is a PAGE ID (not a database ID). A database row in Notion is actually a page - use the page's UUID here. Format: 32-character UUID with hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5'). NOT a URL or page title. Find this ID in the page URL or via 'Copy link' in Notion. NOTE: To update DATABASE structure/schema, use NOTION_UPDATE_SCHEMA_DATABASE instead. This action only updates individual rows/pages within a database.\"),\n delete_row: z.boolean().default(false).describe(\"If true, the row (page) will be archived, effectively deleting it from the active view. If the page is already archived, the action will return success with the current page state. If false, the row will be updated with other provided data.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place.\"),\n value: z.string().describe(\"Value formatted according to the property type:\\n- title, rich_text - text string (max 2000 chars, truncated if longer)\\n- number - numeric string ex. \\\"23.4\\\"\\n- select - single option name (no commas). For multiple values, use multi_select.\\n- multi_select - comma separated values ex. \\\"India,USA\\\"\\n- date - ISO 8601. Single: \\\"2021-05-11\\\". Range: \\\"2021-05-11/2021-05-15\\\" (slash-separated).\\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\\n- url - a URL string.\\n- files - comma separated HTTPS URLs only (no file:// or http://).\\n- checkbox - \\\"True\\\" or \\\"False\\\"\"),\n})).default([]).describe(\"List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.\").optional(),\n});\nconst NotionUpdateRowDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\").nullable(),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\").nullable(),\n}).describe(\"Standard emoji icon.\");\nconst NotionUpdateRowDatabase_CustomEmojiObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionUpdateRowDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\").nullable(),\n custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionUpdateRowDatabase_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionUpdateRowDatabase_FileIconWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).describe(\"File icon with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\").nullable(),\n}).describe(\"File uploaded via API.\");\nconst NotionUpdateRowDatabase_FileIconWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"File icon with external URL.\");\nconst NotionUpdateRowDatabase_CoverWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).describe(\"Cover with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_CoverWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"Cover with uploaded file.\");\nconst NotionUpdateRowDatabase_CoverWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"Cover with external URL.\");\nconst NotionUpdateRowDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always \\\"database_id\\\".\").nullable(),\n database_id: z.string().describe(\"The database identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a database.\");\nconst NotionUpdateRowDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"data_source_id\\\".\").nullable(),\n database_id: z.string().describe(\"The parent database identifier in UUIDv4 format.\").nullable(),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a data source.\");\nconst NotionUpdateRowDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always \\\"page_id\\\".\").nullable(),\n page_id: z.string().describe(\"The page identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a page.\");\nconst NotionUpdateRowDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).describe(\"Parent is the workspace.\");\nconst NotionUpdateRowDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always \\\"block_id\\\".\").nullable(),\n block_id: z.string().describe(\"The block identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a block.\");\nconst NotionUpdateRowDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user in UUID format.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).describe(\"Partial user object representing a Notion user.\");\nexport const NotionUpdateRowDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionUpdateRowDatabase_EmojiIconSchema, NotionUpdateRowDatabase_CustomEmojiIconSchema, NotionUpdateRowDatabase_FileIconWithHostedSchema, NotionUpdateRowDatabase_FileIconWithUploadSchema, NotionUpdateRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionUpdateRowDatabase_CoverWithHostedSchema, NotionUpdateRowDatabase_CoverWithUploadSchema, NotionUpdateRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\").nullable(),\n parent: z.union([NotionUpdateRowDatabase_DatabaseParentSchema, NotionUpdateRowDatabase_DataSourceParentSchema, NotionUpdateRowDatabase_PageParentSchema, NotionUpdateRowDatabase_WorkspaceParentSchema, NotionUpdateRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived (deleted).\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys correspond to property names defined in the parent database schema, and values are property value objects specific to each property type.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when this page was last updated, in ISO 8601 format.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the execution layer explaining any special handling performed.\").nullable().optional(),\n}).describe(\"Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.\");\n\nexport const notionUpdateRowDatabase = action(\"NOTION_UPDATE_ROW_DATABASE\", {\n slug: \"notion-update-row-database\",\n name: \"Update Database Row (Page)\",\n description: \"Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.\",\n input: NotionUpdateRowDatabaseInput,\n output: NotionUpdateRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J,CAAC,CAAC,SAAS;CAClM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0eAA0e;CACtgB,YAAY,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;CAC7S,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAA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AkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,CAAC,CAAC,CAAC,SAAS,mHAOF;AACV,CAAC"}
@@ -38,45 +38,45 @@ const NotionUpdateSchemaDatabaseInput = zod.z.object({
38
38
  description: zod.z.string().describe("New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.").optional()
39
39
  });
40
40
  const NotionUpdateSchemaDatabase_NotionFileSchema = zod.z.object({
41
- url: zod.z.string().describe("Authenticated temporary URL to the file, valid for one hour."),
42
- expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
41
+ url: zod.z.string().describe("Authenticated temporary URL to the file, valid for one hour.").nullable(),
42
+ expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
43
43
  }).passthrough();
44
- const NotionUpdateSchemaDatabase_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.") }).passthrough();
44
+ const NotionUpdateSchemaDatabase_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.").nullable() }).passthrough();
45
45
  const NotionUpdateSchemaDatabase_FileObjectSchema = zod.z.object({
46
46
  file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),
47
- type: zod.z.string().describe("Type of file: 'external', 'file', or 'file_upload'."),
47
+ type: zod.z.string().describe("Type of file: 'external', 'file', or 'file_upload'.").nullable(),
48
48
  external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),
49
49
  file_upload: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional()
50
50
  }).passthrough();
51
51
  const NotionUpdateSchemaDatabase_CustomEmojiSchema = zod.z.object({
52
- id: zod.z.string().describe("Unique identifier for the custom emoji."),
53
- url: zod.z.string().describe("Public URL to the emoji image."),
54
- name: zod.z.string().describe("Display name of the custom emoji.")
52
+ id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
53
+ url: zod.z.string().describe("Public URL to the emoji image.").nullable(),
54
+ name: zod.z.string().describe("Display name of the custom emoji.").nullable()
55
55
  }).passthrough();
56
56
  const NotionUpdateSchemaDatabase_EmojiObjectSchema = zod.z.object({
57
- type: zod.z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'."),
57
+ type: zod.z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.").nullable(),
58
58
  emoji: zod.z.string().describe("Emoji character when type is 'emoji'.").nullable().optional(),
59
59
  custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional()
60
60
  }).passthrough();
61
- const NotionUpdateSchemaDatabase_LinkInfoSchema = zod.z.object({ url: zod.z.string().describe("URL of the hyperlink.") }).passthrough().describe("Link information for hyperlinked text.");
61
+ const NotionUpdateSchemaDatabase_LinkInfoSchema = zod.z.object({ url: zod.z.string().describe("URL of the hyperlink.").nullable() }).passthrough().describe("Link information for hyperlinked text.");
62
62
  const NotionUpdateSchemaDatabase_TextContentSchema = zod.z.object({
63
63
  link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),
64
- content: zod.z.string().describe("The actual text content.")
64
+ content: zod.z.string().describe("The actual text content.").nullable()
65
65
  }).passthrough().describe("Text content within a rich text object.");
66
66
  const NotionUpdateSchemaDatabase_DateMentionSchema = zod.z.object({
67
67
  end: zod.z.string().describe("End date in ISO 8601 format, if range.").nullable().optional(),
68
- start: zod.z.string().describe("Start date in ISO 8601 format.")
68
+ start: zod.z.string().describe("Start date in ISO 8601 format.").nullable()
69
69
  }).passthrough().describe("Date information for a date mention.");
70
- const NotionUpdateSchemaDatabase_PageReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the page.") }).passthrough().describe("Reference to a Notion page.");
70
+ const NotionUpdateSchemaDatabase_PageReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the page.").nullable() }).passthrough().describe("Reference to a Notion page.");
71
71
  const NotionUpdateSchemaDatabase_BotOwnerUserSchema = zod.z.object({
72
- id: zod.z.string().describe("UUID of the user."),
72
+ id: zod.z.string().describe("UUID of the user.").nullable(),
73
73
  name: zod.z.string().describe("Display name.").nullable().optional(),
74
74
  type: zod.z.string().describe("Type: 'person' or 'bot'.").nullable().optional(),
75
75
  object: zod.z.string().default("user").describe("Always 'user'.").nullable().optional(),
76
76
  avatar_url: zod.z.string().describe("Avatar URL.").nullable().optional()
77
77
  }).passthrough().describe("User reference in bot owner context (simplified to avoid circular reference).");
78
78
  const NotionUpdateSchemaDatabase_BotOwnerSchema = zod.z.object({
79
- type: zod.z.string().describe("Type of owner: 'workspace' or 'user'."),
79
+ type: zod.z.string().describe("Type of owner: 'workspace' or 'user'.").nullable(),
80
80
  user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),
81
81
  workspace: zod.z.boolean().describe("True when owner type is 'workspace'.").nullable().optional()
82
82
  }).passthrough().describe("Owner information for a bot.");
@@ -89,82 +89,82 @@ const NotionUpdateSchemaDatabase_BotInfoSchema = zod.z.object({
89
89
  }).passthrough().describe("Bot-specific information for user objects.");
90
90
  const NotionUpdateSchemaDatabase_PersonInfoSchema = zod.z.object({ email: zod.z.string().describe("Email address of person. Only present if integration has user capabilities.").nullable().optional() }).passthrough().describe("Person-specific information for user objects.");
91
91
  const NotionUpdateSchemaDatabase_PartialUserSchema = zod.z.object({
92
- id: zod.z.string().describe("Unique identifier for the user (UUID)."),
92
+ id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
93
93
  bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),
94
94
  name: zod.z.string().describe("Display name of the user.").nullable().optional(),
95
95
  type: zod.z.string().describe("Type of user: 'person' or 'bot'.").nullable().optional(),
96
- object: zod.z.string().describe("Always 'user' for user objects."),
96
+ object: zod.z.string().describe("Always 'user' for user objects.").nullable(),
97
97
  person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),
98
98
  avatar_url: zod.z.string().describe("URL to the user's avatar image.").nullable().optional()
99
99
  }).passthrough().describe("Notion user object representing a person or bot.");
100
- const NotionUpdateSchemaDatabase_DatabaseReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the database.") }).passthrough().describe("Reference to a Notion database.");
101
- const NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview.") }).passthrough().describe("Link preview mention information.");
100
+ const NotionUpdateSchemaDatabase_DatabaseReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the database.").nullable() }).passthrough().describe("Reference to a Notion database.");
101
+ const NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = zod.z.object({ url: zod.z.string().describe("URL of the link preview.").nullable() }).passthrough().describe("Link preview mention information.");
102
102
  const NotionUpdateSchemaDatabase_TemplateMentionDateSchema = zod.z.object({
103
- type: zod.z.string().describe("Type: 'template_mention_date'."),
104
- template_mention_date: zod.z.string().describe("Template date value: 'today' or 'now'.")
103
+ type: zod.z.string().describe("Type: 'template_mention_date'.").nullable(),
104
+ template_mention_date: zod.z.string().describe("Template date value: 'today' or 'now'.").nullable()
105
105
  }).passthrough().describe("Template mention for dates.");
106
106
  const NotionUpdateSchemaDatabase_TemplateMentionUserSchema = zod.z.object({
107
- type: zod.z.string().describe("Type: 'template_mention_user'."),
108
- template_mention_user: zod.z.string().describe("Template user value: 'me'.")
107
+ type: zod.z.string().describe("Type: 'template_mention_user'.").nullable(),
108
+ template_mention_user: zod.z.string().describe("Template user value: 'me'.").nullable()
109
109
  }).passthrough().describe("Template mention for users.");
110
110
  const NotionUpdateSchemaDatabase_MentionObjectSchema = zod.z.object({
111
111
  date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),
112
112
  page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),
113
- type: zod.z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'."),
113
+ type: zod.z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.").nullable(),
114
114
  user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),
115
115
  database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),
116
116
  link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),
117
117
  template_mention: zod.z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional()
118
118
  }).passthrough().describe("Mention object within rich text.");
119
- const NotionUpdateSchemaDatabase_EquationObjectSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX expression string.") }).passthrough().describe("LaTeX equation within rich text.");
119
+ const NotionUpdateSchemaDatabase_EquationObjectSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX expression string.").nullable() }).passthrough().describe("LaTeX equation within rich text.");
120
120
  const NotionUpdateSchemaDatabase_AnnotationsSchema = zod.z.object({
121
- bold: zod.z.boolean().describe("Whether the text is bold."),
122
- code: zod.z.boolean().describe("Whether the text is formatted as code."),
123
- color: zod.z.string().describe("Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants."),
124
- italic: zod.z.boolean().describe("Whether the text is italic."),
125
- underline: zod.z.boolean().describe("Whether the text is underlined."),
126
- strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
121
+ bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
122
+ code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
123
+ color: zod.z.string().describe("Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.").nullable(),
124
+ italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
125
+ underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
126
+ strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
127
127
  }).passthrough().describe("Styling annotations for rich text.");
128
128
  const NotionUpdateSchemaDatabase_RichTextObjectSchema = zod.z.object({
129
129
  href: zod.z.string().describe("URL when the text is a hyperlink, null otherwise.").nullable().optional(),
130
130
  text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),
131
- type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
131
+ type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
132
132
  mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),
133
133
  equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),
134
- plain_text: zod.z.string().describe("Unformatted plain text content."),
134
+ plain_text: zod.z.string().describe("Unformatted plain text content.").nullable(),
135
135
  annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable()
136
136
  }).passthrough().describe("Rich text object for formatted text, mentions, and equations.");
137
137
  const NotionUpdateSchemaDatabase_ParentWorkspaceSchema = zod.z.object({
138
- type: zod.z.string().describe("Type of parent: 'workspace'."),
139
- workspace: zod.z.boolean().describe("Always true when type is 'workspace', indicating a top-level database.")
138
+ type: zod.z.string().describe("Type of parent: 'workspace'.").nullable(),
139
+ workspace: zod.z.boolean().describe("Always true when type is 'workspace', indicating a top-level database.").nullable()
140
140
  });
141
141
  const NotionUpdateSchemaDatabase_ParentPageSchema = zod.z.object({
142
- type: zod.z.string().describe("Type of parent: 'page_id'."),
143
- page_id: zod.z.string().describe("UUID of the parent page (when type is 'page_id').")
142
+ type: zod.z.string().describe("Type of parent: 'page_id'.").nullable(),
143
+ page_id: zod.z.string().describe("UUID of the parent page (when type is 'page_id').").nullable()
144
144
  });
145
145
  const NotionUpdateSchemaDatabase_ParentBlockSchema = zod.z.object({
146
- type: zod.z.string().describe("Type of parent: 'block_id'."),
147
- block_id: zod.z.string().describe("UUID of the parent block (when type is 'block_id').")
146
+ type: zod.z.string().describe("Type of parent: 'block_id'.").nullable(),
147
+ block_id: zod.z.string().describe("UUID of the parent block (when type is 'block_id').").nullable()
148
148
  });
149
149
  const NotionUpdateSchemaDatabase_ParentDatabaseSchema = zod.z.object({
150
- type: zod.z.string().describe("Type of parent: 'database_id'."),
151
- database_id: zod.z.string().describe("UUID of the parent database (when type is 'database_id').")
150
+ type: zod.z.string().describe("Type of parent: 'database_id'.").nullable(),
151
+ database_id: zod.z.string().describe("UUID of the parent database (when type is 'database_id').").nullable()
152
152
  });
153
153
  const NotionUpdateSchemaDatabase_ParentDataSourceSchema = zod.z.object({
154
- type: zod.z.string().describe("Type of parent: 'data_source_id'."),
155
- data_source_id: zod.z.string().describe("UUID of the parent data source (when type is 'data_source_id').")
154
+ type: zod.z.string().describe("Type of parent: 'data_source_id'.").nullable(),
155
+ data_source_id: zod.z.string().describe("UUID of the parent data source (when type is 'data_source_id').").nullable()
156
156
  });
157
157
  const NotionUpdateSchemaDatabase_DataSourceSummarySchema = zod.z.object({
158
- id: zod.z.string(),
159
- name: zod.z.string()
158
+ id: zod.z.string().nullable(),
159
+ name: zod.z.string().nullable()
160
160
  });
161
161
  const NotionUpdateSchemaDatabaseOutput = zod.z.object({
162
- id: zod.z.string().describe("Unique identifier for the database (UUID format)."),
163
- url: zod.z.string().describe("The URL of the database in Notion."),
162
+ id: zod.z.string().describe("Unique identifier for the database (UUID format).").nullable(),
163
+ url: zod.z.string().describe("The URL of the database in Notion.").nullable(),
164
164
  icon: zod.z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),
165
165
  cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),
166
166
  title: zod.z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe("Database name as an array of rich text objects."),
167
- object: zod.z.string().describe("Always 'database' for database objects."),
167
+ object: zod.z.string().describe("Always 'database' for database objects.").nullable(),
168
168
  parent: zod.z.union([
169
169
  NotionUpdateSchemaDatabase_ParentWorkspaceSchema,
170
170
  NotionUpdateSchemaDatabase_ParentPageSchema,
@@ -172,18 +172,18 @@ const NotionUpdateSchemaDatabaseOutput = zod.z.object({
172
172
  NotionUpdateSchemaDatabase_ParentDatabaseSchema,
173
173
  NotionUpdateSchemaDatabase_ParentDataSourceSchema
174
174
  ]),
175
- archived: zod.z.boolean().describe("Whether the database is archived."),
175
+ archived: zod.z.boolean().describe("Whether the database is archived.").nullable(),
176
176
  in_trash: zod.z.boolean().describe("Whether the database is in trash.").nullable().optional(),
177
- is_inline: zod.z.boolean().describe("Whether the database appears as an inline block (true) or as a child page (false)."),
177
+ is_inline: zod.z.boolean().describe("Whether the database appears as an inline block (true) or as a child page (false).").nullable(),
178
178
  created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
179
179
  properties: zod.z.object({}).describe("Database schema properties representing columns, where each key is a property name or ID mapping to a property object.").nullable().optional(),
180
180
  public_url: zod.z.string().describe("The public URL of the database if it has been shared publicly, null otherwise.").nullable().optional(),
181
181
  request_id: zod.z.string().nullable().optional(),
182
182
  description: zod.z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe("Database description as an array of rich text objects.").nullable().optional(),
183
- created_time: zod.z.string().describe("ISO 8601 timestamp of when the database was created."),
183
+ created_time: zod.z.string().describe("ISO 8601 timestamp of when the database was created.").nullable(),
184
184
  data_sources: zod.z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe("List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.").nullable().optional(),
185
185
  last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
186
- last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.")
186
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.").nullable()
187
187
  }).passthrough();
188
188
  const notionUpdateSchemaDatabase = require_action.action("NOTION_UPDATE_SCHEMA_DATABASE", {
189
189
  slug: "notion-update-schema-database",
@@ -1 +1 @@
1
- {"version":3,"file":"update-schema-database.cjs","names":["z","action"],"sources":["../../src/actions/update-schema-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateSchemaDatabaseInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title for the database. Leave as None or omit to keep the existing title unchanged. This updates the database name visible in Notion. At least one of (title, description, or properties) must be provided.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the existing property to update. This must match the exact case-sensitive name of the property in the database.\"),\n remove: z.boolean().default(false).describe(\"Set to true to remove this property from the database. Cannot be combined with other updates.\").optional(),\n rename: z.string().describe(\"New name for the property. If None (default), the name remains unchanged.\").optional(),\n new_type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"New type for the property. If None (default), the type remains unchanged. IMPORTANT: When changing to 'relation' type, you MUST also provide 'database_id'. NOTE: Title properties CANNOT be changed to a different type - every Notion database must have exactly one title property. If you need to rename the title property, use 'rename' instead of 'new_type'.\").optional(),\n database_id: z.string().describe(\"ID of the database to relate to. REQUIRED when new_type is 'relation'. This is the UUID of the target database that this relation property will link to. The target database must be shared with your integration.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Type of relation when new_type is 'relation'. Either 'single_property' or 'dual_property'. Defaults to 'single_property'.\").optional(),\n})).default([]).describe(\"List of property (column) updates for the database schema. At least one of (title, description, or properties) must be provided. Each PropertySchemaUpdate must specify: \\n1) 'name': The EXACT case-sensitive name of the existing property\\n2) One of these actions:\\n - 'rename': Change the property name\\n - 'new_type': Change the property type (see PropertySchemaUpdate for valid types)\\n - 'remove': Set to true to delete the property\\nIMPORTANT: When changing a property to 'relation' type, you MUST also provide 'database_id' with the UUID of the target database to link to.\\nExample: [{'name': 'Status', 'new_type': 'select'}, {'name': 'Tasks', 'new_type': 'relation', 'database_id': 'abc123...'}]\").optional(),\n database_id: z.string().describe(\"REQUIRED: The UUID identifier of the Notion database to update. IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are both UUIDs but they are NOT interchangeable - passing a page ID will result in an error. Use NOTION_FETCH_DATA with get_databases=true to get available database IDs. Format: UUID with or without hyphens (e.g., 'd9824bdc-8445-4327-be8b-554d41f30b60'). The database must be shared with your integration. NOTE: At least one of (title, description, or properties) must also be provided to perform an update.\"),\n description: z.string().describe(\"New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.\").optional(),\n});\nconst NotionUpdateSchemaDatabase_NotionFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated temporary URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_FileObjectSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\"),\n external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),\n file_upload: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"Public URL to the emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_EmojiObjectSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\"),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_LinkInfoSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the hyperlink.\"),\n}).passthrough().describe(\"Link information for hyperlinked text.\");\nconst NotionUpdateSchemaDatabase_TextContentSchema: z.ZodTypeAny = z.object({\n link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\"),\n}).passthrough().describe(\"Text content within a rich text object.\");\nconst NotionUpdateSchemaDatabase_DateMentionSchema: z.ZodTypeAny = z.object({\n end: z.string().describe(\"End date in ISO 8601 format, if range.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\"),\n}).passthrough().describe(\"Date information for a date mention.\");\nconst NotionUpdateSchemaDatabase_PageReferenceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the page.\"),\n}).passthrough().describe(\"Reference to a Notion page.\");\nconst NotionUpdateSchemaDatabase_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the user.\"),\n name: z.string().describe(\"Display name.\").nullable().optional(),\n type: z.string().describe(\"Type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().default(\"user\").describe(\"Always 'user'.\").nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL.\").nullable().optional(),\n}).passthrough().describe(\"User reference in bot owner context (simplified to avoid circular reference).\");\nconst NotionUpdateSchemaDatabase_BotOwnerSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of owner: 'workspace' or 'user'.\"),\n user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"True when owner type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for a bot.\");\nconst NotionUpdateSchemaDatabase_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for a bot.\");\nconst NotionUpdateSchemaDatabase_BotInfoSchema: z.ZodTypeAny = z.object({\n owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"UUID of the workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot.\").nullable().optional(),\n workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PersonInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of person. Only present if integration has user capabilities.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user' for user objects.\"),\n person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Notion user object representing a person or bot.\");\nconst NotionUpdateSchemaDatabase_DatabaseReferenceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the database.\"),\n}).passthrough().describe(\"Reference to a Notion database.\");\nconst NotionUpdateSchemaDatabase_LinkPreviewMentionSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the link preview.\"),\n}).passthrough().describe(\"Link preview mention information.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionDateSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type: 'template_mention_date'.\"),\n template_mention_date: z.string().describe(\"Template date value: 'today' or 'now'.\"),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionUserSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type: 'template_mention_user'.\"),\n template_mention_user: z.string().describe(\"Template user value: 'me'.\"),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionUpdateSchemaDatabase_MentionObjectSchema: z.ZodTypeAny = z.object({\n date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),\n page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\"),\n user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),\n database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),\n link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object within rich text.\");\nconst NotionUpdateSchemaDatabase_EquationObjectSchema: z.ZodTypeAny = z.object({\n expression: z.string().describe(\"LaTeX expression string.\"),\n}).passthrough().describe(\"LaTeX equation within rich text.\");\nconst NotionUpdateSchemaDatabase_AnnotationsSchema: z.ZodTypeAny = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\"),\n code: z.boolean().describe(\"Whether the text is formatted as code.\"),\n color: z.string().describe(\"Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.\"),\n italic: z.boolean().describe(\"Whether the text is italic.\"),\n underline: z.boolean().describe(\"Whether the text is underlined.\"),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\"),\n}).passthrough().describe(\"Styling annotations for rich text.\");\nconst NotionUpdateSchemaDatabase_RichTextObjectSchema: z.ZodTypeAny = z.object({\n href: z.string().describe(\"URL when the text is a hyperlink, null otherwise.\").nullable().optional(),\n text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\"),\n mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),\n equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted plain text content.\"),\n annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for formatted text, mentions, and equations.\");\nconst NotionUpdateSchemaDatabase_ParentWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent: 'workspace'.\"),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level database.\"),\n});\nconst NotionUpdateSchemaDatabase_ParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent: 'page_id'.\"),\n page_id: z.string().describe(\"UUID of the parent page (when type is 'page_id').\"),\n});\nconst NotionUpdateSchemaDatabase_ParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent: 'block_id'.\"),\n block_id: z.string().describe(\"UUID of the parent block (when type is 'block_id').\"),\n});\nconst NotionUpdateSchemaDatabase_ParentDatabaseSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent: 'database_id'.\"),\n database_id: z.string().describe(\"UUID of the parent database (when type is 'database_id').\"),\n});\nconst NotionUpdateSchemaDatabase_ParentDataSourceSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent: 'data_source_id'.\"),\n data_source_id: z.string().describe(\"UUID of the parent data source (when type is 'data_source_id').\"),\n});\nconst NotionUpdateSchemaDatabase_DataSourceSummarySchema: z.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string(),\n});\nexport const NotionUpdateSchemaDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\"),\n url: z.string().describe(\"The URL of the database in Notion.\"),\n icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),\n cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),\n title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database name as an array of rich text objects.\"),\n object: z.string().describe(\"Always 'database' for database objects.\"),\n parent: z.union([NotionUpdateSchemaDatabase_ParentWorkspaceSchema, NotionUpdateSchemaDatabase_ParentPageSchema, NotionUpdateSchemaDatabase_ParentBlockSchema, NotionUpdateSchemaDatabase_ParentDatabaseSchema, NotionUpdateSchemaDatabase_ParentDataSourceSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\"),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database appears as an inline block (true) or as a child page (false).\"),\n created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Database schema properties representing columns, where each key is a property name or ID mapping to a property object.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been shared publicly, null otherwise.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\"),\n data_sources: z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe(\"List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.\").nullable().optional(),\n last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\"),\n}).passthrough();\n\nexport const notionUpdateSchemaDatabase = action(\"NOTION_UPDATE_SCHEMA_DATABASE\", {\n slug: \"notion-update-schema-database\",\n name: \"Update database schema\",\n description: \"Updates an existing Notion database's schema including title, description, and/or properties (columns). IMPORTANT NOTES: - At least one update (title, description, or properties) must be provided - The database must be shared with your integration - Property names are case-sensitive and must match exactly - When changing a property to 'relation' type, you MUST provide the database_id of the target database - Removing properties will permanently delete that column and its data - Use NOTION_FETCH_DATA first to get the exact property names and database structure Common errors: - 'database_id' missing: Ensure you're passing the database_id parameter (not page_id) - 'data_source_id' undefined: When changing to relation type, database_id is required in PropertySchemaUpdate - Property name mismatch: Names must match exactly including case and special characters\",\n input: NotionUpdateSchemaDatabaseInput,\n output: NotionUpdateSchemaDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iNAAiN,CAAC,CAAC,SAAS;CACvP,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACnJ,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC,CAAC,CAAC,SAAS,sWAAsW,CAAC,CAAC,SAAS;EACnpB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;EAChQ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iBAAiB,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,osBAAosB,CAAC,CAAC,SAAS;CACtuB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yiBAAyiB;C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C3C,aAAaA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACxF,cAAcA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5P,gBAAgB,6CAA6C,SAAS;CACtE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AAClG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-schema-database.cjs","names":["z","action"],"sources":["../../src/actions/update-schema-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateSchemaDatabaseInput = z.object({\n title: z.string().describe(\"New title for the database. Leave as None or omit to keep the existing title unchanged. This updates the database name visible in Notion. At least one of (title, description, or properties) must be provided.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the existing property to update. This must match the exact case-sensitive name of the property in the database.\"),\n remove: z.boolean().default(false).describe(\"Set to true to remove this property from the database. Cannot be combined with other updates.\").optional(),\n rename: z.string().describe(\"New name for the property. If None (default), the name remains unchanged.\").optional(),\n new_type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"New type for the property. If None (default), the type remains unchanged. IMPORTANT: When changing to 'relation' type, you MUST also provide 'database_id'. NOTE: Title properties CANNOT be changed to a different type - every Notion database must have exactly one title property. If you need to rename the title property, use 'rename' instead of 'new_type'.\").optional(),\n database_id: z.string().describe(\"ID of the database to relate to. REQUIRED when new_type is 'relation'. This is the UUID of the target database that this relation property will link to. The target database must be shared with your integration.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Type of relation when new_type is 'relation'. Either 'single_property' or 'dual_property'. Defaults to 'single_property'.\").optional(),\n})).default([]).describe(\"List of property (column) updates for the database schema. At least one of (title, description, or properties) must be provided. Each PropertySchemaUpdate must specify: \\n1) 'name': The EXACT case-sensitive name of the existing property\\n2) One of these actions:\\n - 'rename': Change the property name\\n - 'new_type': Change the property type (see PropertySchemaUpdate for valid types)\\n - 'remove': Set to true to delete the property\\nIMPORTANT: When changing a property to 'relation' type, you MUST also provide 'database_id' with the UUID of the target database to link to.\\nExample: [{'name': 'Status', 'new_type': 'select'}, {'name': 'Tasks', 'new_type': 'relation', 'database_id': 'abc123...'}]\").optional(),\n database_id: z.string().describe(\"REQUIRED: The UUID identifier of the Notion database to update. IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are both UUIDs but they are NOT interchangeable - passing a page ID will result in an error. Use NOTION_FETCH_DATA with get_databases=true to get available database IDs. Format: UUID with or without hyphens (e.g., 'd9824bdc-8445-4327-be8b-554d41f30b60'). The database must be shared with your integration. NOTE: At least one of (title, description, or properties) must also be provided to perform an update.\"),\n description: z.string().describe(\"New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.\").optional(),\n});\nconst NotionUpdateSchemaDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated temporary URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_FileObjectSchema = z.object({\n file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),\n file_upload: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_LinkInfoSchema = z.object({\n url: z.string().describe(\"URL of the hyperlink.\").nullable(),\n}).passthrough().describe(\"Link information for hyperlinked text.\");\nconst NotionUpdateSchemaDatabase_TextContentSchema = z.object({\n link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content within a rich text object.\");\nconst NotionUpdateSchemaDatabase_DateMentionSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format, if range.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n}).passthrough().describe(\"Date information for a date mention.\");\nconst NotionUpdateSchemaDatabase_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion page.\");\nconst NotionUpdateSchemaDatabase_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the user.\").nullable(),\n name: z.string().describe(\"Display name.\").nullable().optional(),\n type: z.string().describe(\"Type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().default(\"user\").describe(\"Always 'user'.\").nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL.\").nullable().optional(),\n}).passthrough().describe(\"User reference in bot owner context (simplified to avoid circular reference).\");\nconst NotionUpdateSchemaDatabase_BotOwnerSchema = z.object({\n type: z.string().describe(\"Type of owner: 'workspace' or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"True when owner type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for a bot.\");\nconst NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for a bot.\");\nconst NotionUpdateSchemaDatabase_BotInfoSchema = z.object({\n owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"UUID of the workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot.\").nullable().optional(),\n workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of person. Only present if integration has user capabilities.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user' for user objects.\").nullable(),\n person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Notion user object representing a person or bot.\");\nconst NotionUpdateSchemaDatabase_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion database.\");\nconst NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough().describe(\"Link preview mention information.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_date'.\").nullable(),\n template_mention_date: z.string().describe(\"Template date value: 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"Template user value: 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionUpdateSchemaDatabase_MentionObjectSchema = z.object({\n date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),\n page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),\n database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),\n link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object within rich text.\");\nconst NotionUpdateSchemaDatabase_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX expression string.\").nullable(),\n}).passthrough().describe(\"LaTeX equation within rich text.\");\nconst NotionUpdateSchemaDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.\").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}).passthrough().describe(\"Styling annotations for rich text.\");\nconst NotionUpdateSchemaDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL when the text is a hyperlink, null otherwise.\").nullable().optional(),\n text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),\n equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted plain text content.\").nullable(),\n annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for formatted text, mentions, and equations.\");\nconst NotionUpdateSchemaDatabase_ParentWorkspaceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level database.\").nullable(),\n});\nconst NotionUpdateSchemaDatabase_ParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (when type is 'page_id').\").nullable(),\n});\nconst NotionUpdateSchemaDatabase_ParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent: 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block (when type is 'block_id').\").nullable(),\n});\nconst NotionUpdateSchemaDatabase_ParentDatabaseSchema = z.object({\n type: z.string().describe(\"Type of parent: 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database (when type is 'database_id').\").nullable(),\n});\nconst NotionUpdateSchemaDatabase_ParentDataSourceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'data_source_id'.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source (when type is 'data_source_id').\").nullable(),\n});\nconst NotionUpdateSchemaDatabase_DataSourceSummarySchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n});\nexport const NotionUpdateSchemaDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),\n cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),\n title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database name as an array of rich text objects.\"),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionUpdateSchemaDatabase_ParentWorkspaceSchema, NotionUpdateSchemaDatabase_ParentPageSchema, NotionUpdateSchemaDatabase_ParentBlockSchema, NotionUpdateSchemaDatabase_ParentDatabaseSchema, NotionUpdateSchemaDatabase_ParentDataSourceSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database appears as an inline block (true) or as a child page (false).\").nullable(),\n created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Database schema properties representing columns, where each key is a property name or ID mapping to a property object.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been shared publicly, null otherwise.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe(\"List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.\").nullable().optional(),\n last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionUpdateSchemaDatabase = action(\"NOTION_UPDATE_SCHEMA_DATABASE\", {\n slug: \"notion-update-schema-database\",\n name: \"Update database schema\",\n description: \"Updates an existing Notion database's schema including title, description, and/or properties (columns). IMPORTANT NOTES: - At least one update (title, description, or properties) must be provided - The database must be shared with your integration - Property names are case-sensitive and must match exactly - When changing a property to 'relation' type, you MUST provide the database_id of the target database - Removing properties will permanently delete that column and its data - Use NOTION_FETCH_DATA first to get the exact property names and database structure Common errors: - 'database_id' missing: Ensure you're passing the database_id parameter (not page_id) - 'data_source_id' undefined: When changing to relation type, database_id is required in PropertySchemaUpdate - Property name mismatch: Names must match exactly including case and special characters\",\n input: NotionUpdateSchemaDatabaseInput,\n output: NotionUpdateSchemaDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iNAAiN,CAAC,CAAC,SAAS;CACvP,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACnJ,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC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