@keystrokehq/notion 0.0.16 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/README.md +11 -41
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-multiple-page-content.cjs +80 -0
  7. package/dist/actions/add-multiple-page-content.cjs.map +1 -0
  8. package/dist/actions/add-multiple-page-content.d.cts +9 -0
  9. package/dist/actions/add-multiple-page-content.d.cts.map +1 -0
  10. package/dist/actions/add-multiple-page-content.d.mts +9 -0
  11. package/dist/actions/add-multiple-page-content.d.mts.map +1 -0
  12. package/dist/actions/add-multiple-page-content.mjs +79 -0
  13. package/dist/actions/add-multiple-page-content.mjs.map +1 -0
  14. package/dist/actions/append-code-blocks.cjs +446 -0
  15. package/dist/actions/append-code-blocks.cjs.map +1 -0
  16. package/dist/actions/append-code-blocks.d.cts +9 -0
  17. package/dist/actions/append-code-blocks.d.cts.map +1 -0
  18. package/dist/actions/append-code-blocks.d.mts +9 -0
  19. package/dist/actions/append-code-blocks.d.mts.map +1 -0
  20. package/dist/actions/append-code-blocks.mjs +445 -0
  21. package/dist/actions/append-code-blocks.mjs.map +1 -0
  22. package/dist/actions/append-layout-blocks.cjs +278 -0
  23. package/dist/actions/append-layout-blocks.cjs.map +1 -0
  24. package/dist/actions/append-layout-blocks.d.cts +9 -0
  25. package/dist/actions/append-layout-blocks.d.cts.map +1 -0
  26. package/dist/actions/append-layout-blocks.d.mts +9 -0
  27. package/dist/actions/append-layout-blocks.d.mts.map +1 -0
  28. package/dist/actions/append-layout-blocks.mjs +277 -0
  29. package/dist/actions/append-layout-blocks.mjs.map +1 -0
  30. package/dist/actions/append-media-blocks.cjs +491 -0
  31. package/dist/actions/append-media-blocks.cjs.map +1 -0
  32. package/dist/actions/append-media-blocks.d.cts +9 -0
  33. package/dist/actions/append-media-blocks.d.cts.map +1 -0
  34. package/dist/actions/append-media-blocks.d.mts +9 -0
  35. package/dist/actions/append-media-blocks.d.mts.map +1 -0
  36. package/dist/actions/append-media-blocks.mjs +490 -0
  37. package/dist/actions/append-media-blocks.mjs.map +1 -0
  38. package/dist/actions/append-table-blocks.cjs +267 -0
  39. package/dist/actions/append-table-blocks.cjs.map +1 -0
  40. package/dist/actions/append-table-blocks.d.cts +9 -0
  41. package/dist/actions/append-table-blocks.d.cts.map +1 -0
  42. package/dist/actions/append-table-blocks.d.mts +9 -0
  43. package/dist/actions/append-table-blocks.d.mts.map +1 -0
  44. package/dist/actions/append-table-blocks.mjs +266 -0
  45. package/dist/actions/append-table-blocks.mjs.map +1 -0
  46. package/dist/actions/append-task-blocks.cjs +420 -0
  47. package/dist/actions/append-task-blocks.cjs.map +1 -0
  48. package/dist/actions/append-task-blocks.d.cts +9 -0
  49. package/dist/actions/append-task-blocks.d.cts.map +1 -0
  50. package/dist/actions/append-task-blocks.d.mts +9 -0
  51. package/dist/actions/append-task-blocks.d.mts.map +1 -0
  52. package/dist/actions/append-task-blocks.mjs +419 -0
  53. package/dist/actions/append-task-blocks.mjs.map +1 -0
  54. package/dist/actions/append-text-blocks.cjs +604 -0
  55. package/dist/actions/append-text-blocks.cjs.map +1 -0
  56. package/dist/actions/append-text-blocks.d.cts +9 -0
  57. package/dist/actions/append-text-blocks.d.cts.map +1 -0
  58. package/dist/actions/append-text-blocks.d.mts +9 -0
  59. package/dist/actions/append-text-blocks.d.mts.map +1 -0
  60. package/dist/actions/append-text-blocks.mjs +603 -0
  61. package/dist/actions/append-text-blocks.mjs.map +1 -0
  62. package/dist/actions/archive-notion-page.cjs +104 -0
  63. package/dist/actions/archive-notion-page.cjs.map +1 -0
  64. package/dist/actions/archive-notion-page.d.cts +9 -0
  65. package/dist/actions/archive-notion-page.d.cts.map +1 -0
  66. package/dist/actions/archive-notion-page.d.mts +9 -0
  67. package/dist/actions/archive-notion-page.d.mts.map +1 -0
  68. package/dist/actions/archive-notion-page.mjs +103 -0
  69. package/dist/actions/archive-notion-page.mjs.map +1 -0
  70. package/dist/actions/create-comment.cjs +45 -0
  71. package/dist/actions/create-comment.cjs.map +1 -0
  72. package/dist/actions/create-comment.d.cts +9 -0
  73. package/dist/actions/create-comment.d.cts.map +1 -0
  74. package/dist/actions/create-comment.d.mts +9 -0
  75. package/dist/actions/create-comment.d.mts.map +1 -0
  76. package/dist/actions/create-comment.mjs +42 -0
  77. package/dist/actions/create-comment.mjs.map +1 -0
  78. package/dist/actions/create-database.cjs +125 -0
  79. package/dist/actions/create-database.cjs.map +1 -0
  80. package/dist/actions/create-database.d.cts +9 -0
  81. package/dist/actions/create-database.d.cts.map +1 -0
  82. package/dist/actions/create-database.d.mts +9 -0
  83. package/dist/actions/create-database.d.mts.map +1 -0
  84. package/dist/actions/create-database.mjs +124 -0
  85. package/dist/actions/create-database.mjs.map +1 -0
  86. package/dist/actions/create-file-upload.cjs +45 -0
  87. package/dist/actions/create-file-upload.cjs.map +1 -0
  88. package/dist/actions/create-file-upload.d.cts +9 -0
  89. package/dist/actions/create-file-upload.d.cts.map +1 -0
  90. package/dist/actions/create-file-upload.d.mts +9 -0
  91. package/dist/actions/create-file-upload.d.mts.map +1 -0
  92. package/dist/actions/create-file-upload.mjs +42 -0
  93. package/dist/actions/create-file-upload.mjs.map +1 -0
  94. package/dist/actions/create-notion-page.cjs +94 -0
  95. package/dist/actions/create-notion-page.cjs.map +1 -0
  96. package/dist/actions/create-notion-page.d.cts +9 -0
  97. package/dist/actions/create-notion-page.d.cts.map +1 -0
  98. package/dist/actions/create-notion-page.d.mts +9 -0
  99. package/dist/actions/create-notion-page.d.mts.map +1 -0
  100. package/dist/actions/create-notion-page.mjs +93 -0
  101. package/dist/actions/create-notion-page.mjs.map +1 -0
  102. package/dist/actions/delete-block.cjs +411 -0
  103. package/dist/actions/delete-block.cjs.map +1 -0
  104. package/dist/actions/delete-block.d.cts +9 -0
  105. package/dist/actions/delete-block.d.cts.map +1 -0
  106. package/dist/actions/delete-block.d.mts +9 -0
  107. package/dist/actions/delete-block.d.mts.map +1 -0
  108. package/dist/actions/delete-block.mjs +410 -0
  109. package/dist/actions/delete-block.mjs.map +1 -0
  110. package/dist/actions/duplicate-page.cjs +119 -0
  111. package/dist/actions/duplicate-page.cjs.map +1 -0
  112. package/dist/actions/duplicate-page.d.cts +9 -0
  113. package/dist/actions/duplicate-page.d.cts.map +1 -0
  114. package/dist/actions/duplicate-page.d.mts +9 -0
  115. package/dist/actions/duplicate-page.d.mts.map +1 -0
  116. package/dist/actions/duplicate-page.mjs +118 -0
  117. package/dist/actions/duplicate-page.mjs.map +1 -0
  118. package/dist/actions/fetch-all-block-contents.cjs +270 -0
  119. package/dist/actions/fetch-all-block-contents.cjs.map +1 -0
  120. package/dist/actions/fetch-all-block-contents.d.cts +9 -0
  121. package/dist/actions/fetch-all-block-contents.d.cts.map +1 -0
  122. package/dist/actions/fetch-all-block-contents.d.mts +9 -0
  123. package/dist/actions/fetch-all-block-contents.d.mts.map +1 -0
  124. package/dist/actions/fetch-all-block-contents.mjs +269 -0
  125. package/dist/actions/fetch-all-block-contents.mjs.map +1 -0
  126. package/dist/actions/fetch-block-contents.cjs +232 -0
  127. package/dist/actions/fetch-block-contents.cjs.map +1 -0
  128. package/dist/actions/fetch-block-contents.d.cts +9 -0
  129. package/dist/actions/fetch-block-contents.d.cts.map +1 -0
  130. package/dist/actions/fetch-block-contents.d.mts +9 -0
  131. package/dist/actions/fetch-block-contents.d.mts.map +1 -0
  132. package/dist/actions/fetch-block-contents.mjs +231 -0
  133. package/dist/actions/fetch-block-contents.mjs.map +1 -0
  134. package/dist/actions/fetch-block-metadata.cjs +406 -0
  135. package/dist/actions/fetch-block-metadata.cjs.map +1 -0
  136. package/dist/actions/fetch-block-metadata.d.cts +9 -0
  137. package/dist/actions/fetch-block-metadata.d.cts.map +1 -0
  138. package/dist/actions/fetch-block-metadata.d.mts +9 -0
  139. package/dist/actions/fetch-block-metadata.d.mts.map +1 -0
  140. package/dist/actions/fetch-block-metadata.mjs +405 -0
  141. package/dist/actions/fetch-block-metadata.mjs.map +1 -0
  142. package/dist/actions/fetch-comments.cjs +136 -0
  143. package/dist/actions/fetch-comments.cjs.map +1 -0
  144. package/dist/actions/fetch-comments.d.cts +9 -0
  145. package/dist/actions/fetch-comments.d.cts.map +1 -0
  146. package/dist/actions/fetch-comments.d.mts +9 -0
  147. package/dist/actions/fetch-comments.d.mts.map +1 -0
  148. package/dist/actions/fetch-comments.mjs +135 -0
  149. package/dist/actions/fetch-comments.mjs.map +1 -0
  150. package/dist/actions/fetch-data.cjs +227 -0
  151. package/dist/actions/fetch-data.cjs.map +1 -0
  152. package/dist/actions/fetch-data.d.cts +9 -0
  153. package/dist/actions/fetch-data.d.cts.map +1 -0
  154. package/dist/actions/fetch-data.d.mts +9 -0
  155. package/dist/actions/fetch-data.d.mts.map +1 -0
  156. package/dist/actions/fetch-data.mjs +226 -0
  157. package/dist/actions/fetch-data.mjs.map +1 -0
  158. package/dist/actions/fetch-database.cjs +84 -0
  159. package/dist/actions/fetch-database.cjs.map +1 -0
  160. package/dist/actions/fetch-database.d.cts +9 -0
  161. package/dist/actions/fetch-database.d.cts.map +1 -0
  162. package/dist/actions/fetch-database.d.mts +9 -0
  163. package/dist/actions/fetch-database.d.mts.map +1 -0
  164. package/dist/actions/fetch-database.mjs +83 -0
  165. package/dist/actions/fetch-database.mjs.map +1 -0
  166. package/dist/actions/fetch-row.cjs +133 -0
  167. package/dist/actions/fetch-row.cjs.map +1 -0
  168. package/dist/actions/fetch-row.d.cts +9 -0
  169. package/dist/actions/fetch-row.d.cts.map +1 -0
  170. package/dist/actions/fetch-row.d.mts +9 -0
  171. package/dist/actions/fetch-row.d.mts.map +1 -0
  172. package/dist/actions/fetch-row.mjs +132 -0
  173. package/dist/actions/fetch-row.mjs.map +1 -0
  174. package/dist/actions/get-about-user.cjs +46 -0
  175. package/dist/actions/get-about-user.cjs.map +1 -0
  176. package/dist/actions/get-about-user.d.cts +9 -0
  177. package/dist/actions/get-about-user.d.cts.map +1 -0
  178. package/dist/actions/get-about-user.d.mts +9 -0
  179. package/dist/actions/get-about-user.d.mts.map +1 -0
  180. package/dist/actions/get-about-user.mjs +45 -0
  181. package/dist/actions/get-about-user.mjs.map +1 -0
  182. package/dist/actions/get-page-markdown.cjs +25 -0
  183. package/dist/actions/get-page-markdown.cjs.map +1 -0
  184. package/dist/actions/get-page-markdown.d.cts +9 -0
  185. package/dist/actions/get-page-markdown.d.cts.map +1 -0
  186. package/dist/actions/get-page-markdown.d.mts +9 -0
  187. package/dist/actions/get-page-markdown.d.mts.map +1 -0
  188. package/dist/actions/get-page-markdown.mjs +22 -0
  189. package/dist/actions/get-page-markdown.mjs.map +1 -0
  190. package/dist/actions/get-page-property-action.cjs +21 -0
  191. package/dist/actions/get-page-property-action.cjs.map +1 -0
  192. package/dist/actions/get-page-property-action.d.cts +9 -0
  193. package/dist/actions/get-page-property-action.d.cts.map +1 -0
  194. package/dist/actions/get-page-property-action.d.mts +9 -0
  195. package/dist/actions/get-page-property-action.d.mts.map +1 -0
  196. package/dist/actions/get-page-property-action.mjs +18 -0
  197. package/dist/actions/get-page-property-action.mjs.map +1 -0
  198. package/dist/actions/index.cjs +91 -0
  199. package/dist/actions/index.d.cts +46 -0
  200. package/dist/actions/index.d.mts +46 -0
  201. package/dist/actions/index.mjs +46 -0
  202. package/dist/actions/insert-row-database.cjs +176 -0
  203. package/dist/actions/insert-row-database.cjs.map +1 -0
  204. package/dist/actions/insert-row-database.d.cts +9 -0
  205. package/dist/actions/insert-row-database.d.cts.map +1 -0
  206. package/dist/actions/insert-row-database.d.mts +9 -0
  207. package/dist/actions/insert-row-database.d.mts.map +1 -0
  208. package/dist/actions/insert-row-database.mjs +175 -0
  209. package/dist/actions/insert-row-database.mjs.map +1 -0
  210. package/dist/actions/insert-row-from-nl.cjs +27 -0
  211. package/dist/actions/insert-row-from-nl.cjs.map +1 -0
  212. package/dist/actions/insert-row-from-nl.d.cts +9 -0
  213. package/dist/actions/insert-row-from-nl.d.cts.map +1 -0
  214. package/dist/actions/insert-row-from-nl.d.mts +9 -0
  215. package/dist/actions/insert-row-from-nl.d.mts.map +1 -0
  216. package/dist/actions/insert-row-from-nl.mjs +24 -0
  217. package/dist/actions/insert-row-from-nl.mjs.map +1 -0
  218. package/dist/actions/list-data-source-templates.cjs +29 -0
  219. package/dist/actions/list-data-source-templates.cjs.map +1 -0
  220. package/dist/actions/list-data-source-templates.d.cts +9 -0
  221. package/dist/actions/list-data-source-templates.d.cts.map +1 -0
  222. package/dist/actions/list-data-source-templates.d.mts +9 -0
  223. package/dist/actions/list-data-source-templates.d.mts.map +1 -0
  224. package/dist/actions/list-data-source-templates.mjs +28 -0
  225. package/dist/actions/list-data-source-templates.mjs.map +1 -0
  226. package/dist/actions/list-file-uploads.cjs +43 -0
  227. package/dist/actions/list-file-uploads.cjs.map +1 -0
  228. package/dist/actions/list-file-uploads.d.cts +9 -0
  229. package/dist/actions/list-file-uploads.d.cts.map +1 -0
  230. package/dist/actions/list-file-uploads.d.mts +9 -0
  231. package/dist/actions/list-file-uploads.d.mts.map +1 -0
  232. package/dist/actions/list-file-uploads.mjs +42 -0
  233. package/dist/actions/list-file-uploads.mjs.map +1 -0
  234. package/dist/actions/list-users.cjs +58 -0
  235. package/dist/actions/list-users.cjs.map +1 -0
  236. package/dist/actions/list-users.d.cts +9 -0
  237. package/dist/actions/list-users.d.cts.map +1 -0
  238. package/dist/actions/list-users.d.mts +9 -0
  239. package/dist/actions/list-users.d.mts.map +1 -0
  240. package/dist/actions/list-users.mjs +57 -0
  241. package/dist/actions/list-users.mjs.map +1 -0
  242. package/dist/actions/move-page.cjs +110 -0
  243. package/dist/actions/move-page.cjs.map +1 -0
  244. package/dist/actions/move-page.d.cts +9 -0
  245. package/dist/actions/move-page.d.cts.map +1 -0
  246. package/dist/actions/move-page.d.mts +9 -0
  247. package/dist/actions/move-page.d.mts.map +1 -0
  248. package/dist/actions/move-page.mjs +109 -0
  249. package/dist/actions/move-page.mjs.map +1 -0
  250. package/dist/actions/query-data-source.cjs +118 -0
  251. package/dist/actions/query-data-source.cjs.map +1 -0
  252. package/dist/actions/query-data-source.d.cts +9 -0
  253. package/dist/actions/query-data-source.d.cts.map +1 -0
  254. package/dist/actions/query-data-source.d.mts +9 -0
  255. package/dist/actions/query-data-source.d.mts.map +1 -0
  256. package/dist/actions/query-data-source.mjs +117 -0
  257. package/dist/actions/query-data-source.mjs.map +1 -0
  258. package/dist/actions/query-database-with-filter.cjs +172 -0
  259. package/dist/actions/query-database-with-filter.cjs.map +1 -0
  260. package/dist/actions/query-database-with-filter.d.cts +9 -0
  261. package/dist/actions/query-database-with-filter.d.cts.map +1 -0
  262. package/dist/actions/query-database-with-filter.d.mts +9 -0
  263. package/dist/actions/query-database-with-filter.d.mts.map +1 -0
  264. package/dist/actions/query-database-with-filter.mjs +171 -0
  265. package/dist/actions/query-database-with-filter.mjs.map +1 -0
  266. package/dist/actions/query-database.cjs +171 -0
  267. package/dist/actions/query-database.cjs.map +1 -0
  268. package/dist/actions/query-database.d.cts +9 -0
  269. package/dist/actions/query-database.d.cts.map +1 -0
  270. package/dist/actions/query-database.d.mts +9 -0
  271. package/dist/actions/query-database.d.mts.map +1 -0
  272. package/dist/actions/query-database.mjs +170 -0
  273. package/dist/actions/query-database.mjs.map +1 -0
  274. package/dist/actions/replace-page-content.cjs +1175 -0
  275. package/dist/actions/replace-page-content.cjs.map +1 -0
  276. package/dist/actions/replace-page-content.d.cts +9 -0
  277. package/dist/actions/replace-page-content.d.cts.map +1 -0
  278. package/dist/actions/replace-page-content.d.mts +9 -0
  279. package/dist/actions/replace-page-content.d.mts.map +1 -0
  280. package/dist/actions/replace-page-content.mjs +1172 -0
  281. package/dist/actions/replace-page-content.mjs.map +1 -0
  282. package/dist/actions/retrieve-comment.cjs +16 -0
  283. package/dist/actions/retrieve-comment.cjs.map +1 -0
  284. package/dist/actions/retrieve-comment.d.cts +9 -0
  285. package/dist/actions/retrieve-comment.d.cts.map +1 -0
  286. package/dist/actions/retrieve-comment.d.mts +9 -0
  287. package/dist/actions/retrieve-comment.d.mts.map +1 -0
  288. package/dist/actions/retrieve-comment.mjs +13 -0
  289. package/dist/actions/retrieve-comment.mjs.map +1 -0
  290. package/dist/actions/retrieve-database-property.cjs +80 -0
  291. package/dist/actions/retrieve-database-property.cjs.map +1 -0
  292. package/dist/actions/retrieve-database-property.d.cts +9 -0
  293. package/dist/actions/retrieve-database-property.d.cts.map +1 -0
  294. package/dist/actions/retrieve-database-property.d.mts +9 -0
  295. package/dist/actions/retrieve-database-property.d.mts.map +1 -0
  296. package/dist/actions/retrieve-database-property.mjs +79 -0
  297. package/dist/actions/retrieve-database-property.mjs.map +1 -0
  298. package/dist/actions/retrieve-file-upload.cjs +34 -0
  299. package/dist/actions/retrieve-file-upload.cjs.map +1 -0
  300. package/dist/actions/retrieve-file-upload.d.cts +9 -0
  301. package/dist/actions/retrieve-file-upload.d.cts.map +1 -0
  302. package/dist/actions/retrieve-file-upload.d.mts +9 -0
  303. package/dist/actions/retrieve-file-upload.d.mts.map +1 -0
  304. package/dist/actions/retrieve-file-upload.mjs +31 -0
  305. package/dist/actions/retrieve-file-upload.mjs.map +1 -0
  306. package/dist/actions/retrieve-page.cjs +129 -0
  307. package/dist/actions/retrieve-page.cjs.map +1 -0
  308. package/dist/actions/retrieve-page.d.cts +9 -0
  309. package/dist/actions/retrieve-page.d.cts.map +1 -0
  310. package/dist/actions/retrieve-page.d.mts +9 -0
  311. package/dist/actions/retrieve-page.d.mts.map +1 -0
  312. package/dist/actions/retrieve-page.mjs +128 -0
  313. package/dist/actions/retrieve-page.mjs.map +1 -0
  314. package/dist/actions/search-notion-page.cjs +245 -0
  315. package/dist/actions/search-notion-page.cjs.map +1 -0
  316. package/dist/actions/search-notion-page.d.cts +9 -0
  317. package/dist/actions/search-notion-page.d.cts.map +1 -0
  318. package/dist/actions/search-notion-page.d.mts +9 -0
  319. package/dist/actions/search-notion-page.d.mts.map +1 -0
  320. package/dist/actions/search-notion-page.mjs +244 -0
  321. package/dist/actions/search-notion-page.mjs.map +1 -0
  322. package/dist/actions/send-file-upload.cjs +37 -0
  323. package/dist/actions/send-file-upload.cjs.map +1 -0
  324. package/dist/actions/send-file-upload.d.cts +9 -0
  325. package/dist/actions/send-file-upload.d.cts.map +1 -0
  326. package/dist/actions/send-file-upload.d.mts +9 -0
  327. package/dist/actions/send-file-upload.d.mts.map +1 -0
  328. package/dist/actions/send-file-upload.mjs +34 -0
  329. package/dist/actions/send-file-upload.mjs.map +1 -0
  330. package/dist/actions/update-block.cjs +250 -0
  331. package/dist/actions/update-block.cjs.map +1 -0
  332. package/dist/actions/update-block.d.cts +9 -0
  333. package/dist/actions/update-block.d.cts.map +1 -0
  334. package/dist/actions/update-block.d.mts +9 -0
  335. package/dist/actions/update-block.d.mts.map +1 -0
  336. package/dist/actions/update-block.mjs +249 -0
  337. package/dist/actions/update-block.mjs.map +1 -0
  338. package/dist/actions/update-page.cjs +115 -0
  339. package/dist/actions/update-page.cjs.map +1 -0
  340. package/dist/actions/update-page.d.cts +9 -0
  341. package/dist/actions/update-page.d.cts.map +1 -0
  342. package/dist/actions/update-page.d.mts +9 -0
  343. package/dist/actions/update-page.d.mts.map +1 -0
  344. package/dist/actions/update-page.mjs +114 -0
  345. package/dist/actions/update-page.mjs.map +1 -0
  346. package/dist/actions/update-row-database.cjs +149 -0
  347. package/dist/actions/update-row-database.cjs.map +1 -0
  348. package/dist/actions/update-row-database.d.cts +9 -0
  349. package/dist/actions/update-row-database.d.cts.map +1 -0
  350. package/dist/actions/update-row-database.d.mts +9 -0
  351. package/dist/actions/update-row-database.d.mts.map +1 -0
  352. package/dist/actions/update-row-database.mjs +148 -0
  353. package/dist/actions/update-row-database.mjs.map +1 -0
  354. package/dist/actions/update-schema-database.cjs +198 -0
  355. package/dist/actions/update-schema-database.cjs.map +1 -0
  356. package/dist/actions/update-schema-database.d.cts +9 -0
  357. package/dist/actions/update-schema-database.d.cts.map +1 -0
  358. package/dist/actions/update-schema-database.d.mts +9 -0
  359. package/dist/actions/update-schema-database.d.mts.map +1 -0
  360. package/dist/actions/update-schema-database.mjs +197 -0
  361. package/dist/actions/update-schema-database.mjs.map +1 -0
  362. package/dist/actions/upsert-row-database.cjs +141 -0
  363. package/dist/actions/upsert-row-database.cjs.map +1 -0
  364. package/dist/actions/upsert-row-database.d.cts +9 -0
  365. package/dist/actions/upsert-row-database.d.cts.map +1 -0
  366. package/dist/actions/upsert-row-database.d.mts +9 -0
  367. package/dist/actions/upsert-row-database.d.mts.map +1 -0
  368. package/dist/actions/upsert-row-database.mjs +140 -0
  369. package/dist/actions/upsert-row-database.mjs.map +1 -0
  370. package/dist/app.cjs +9 -0
  371. package/dist/app.cjs.map +1 -0
  372. package/dist/app.d.cts +5 -0
  373. package/dist/app.d.cts.map +1 -0
  374. package/dist/app.d.mts +5 -0
  375. package/dist/app.d.mts.map +1 -0
  376. package/dist/app.mjs +10 -0
  377. package/dist/app.mjs.map +1 -0
  378. package/dist/catalog.cjs +15 -0
  379. package/dist/catalog.cjs.map +1 -0
  380. package/dist/catalog.d.cts +14 -0
  381. package/dist/catalog.d.cts.map +1 -0
  382. package/dist/catalog.d.mts +14 -0
  383. package/dist/catalog.d.mts.map +1 -0
  384. package/dist/catalog.mjs +15 -0
  385. package/dist/catalog.mjs.map +1 -0
  386. package/dist/execute.cjs +18 -0
  387. package/dist/execute.cjs.map +1 -0
  388. package/dist/execute.mjs +18 -0
  389. package/dist/execute.mjs.map +1 -0
  390. package/dist/index.cjs +96 -0
  391. package/dist/index.d.cts +48 -0
  392. package/dist/index.d.mts +48 -5
  393. package/dist/index.mjs +49 -7
  394. package/package.json +31 -53
  395. package/LICENSE +0 -21
  396. package/dist/credential-sets/index.d.mts +0 -2
  397. package/dist/credential-sets/index.mjs +0 -4
  398. package/dist/notion-webhook.credential-set-5tXWld_L.d.mts +0 -53
  399. package/dist/notion-webhook.credential-set-D_tczh8M.mjs +0 -25
  400. package/dist/notion.credential-set-BfA-EG9z.mjs +0 -44
  401. package/dist/operations/index.d.mts +0 -1104
  402. package/dist/operations/index.mjs +0 -32
  403. package/dist/schemas/index.d.mts +0 -190
  404. package/dist/schemas/index.mjs +0 -3
  405. package/dist/search-D4wvUAjS.mjs +0 -277
  406. package/dist/update-page.operation-6lf05oVs.d.mts +0 -1147
  407. package/dist/update-page.operation-BQWJrCll.mjs +0 -794
@@ -0,0 +1,198 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-schema-database.ts
4
+ const NotionUpdateSchemaDatabaseInput = zod.z.object({
5
+ title: zod.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(),
6
+ properties: zod.z.array(zod.z.object({
7
+ name: zod.z.string().describe("Name of the existing property to update. This must match the exact case-sensitive name of the property in the database."),
8
+ remove: zod.z.boolean().default(false).describe("Set to true to remove this property from the database. Cannot be combined with other updates.").optional(),
9
+ rename: zod.z.string().describe("New name for the property. If None (default), the name remains unchanged.").optional(),
10
+ new_type: zod.z.enum([
11
+ "title",
12
+ "rich_text",
13
+ "number",
14
+ "select",
15
+ "multi_select",
16
+ "date",
17
+ "people",
18
+ "files",
19
+ "checkbox",
20
+ "url",
21
+ "email",
22
+ "phone_number",
23
+ "formula",
24
+ "relation",
25
+ "rollup",
26
+ "status",
27
+ "created_time",
28
+ "created_by",
29
+ "last_edited_time",
30
+ "last_edited_by",
31
+ "place",
32
+ "unique_id"
33
+ ]).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(),
34
+ database_id: zod.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(),
35
+ relation_type: zod.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()
36
+ })).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(),
37
+ database_id: zod.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."),
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
+ });
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.")
43
+ }).passthrough();
44
+ const NotionUpdateSchemaDatabase_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.") }).passthrough();
45
+ const NotionUpdateSchemaDatabase_FileObjectSchema = zod.z.object({
46
+ file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),
47
+ type: zod.z.string().describe("Type of file: 'external', 'file', or 'file_upload'."),
48
+ external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),
49
+ file_upload: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional()
50
+ }).passthrough();
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.")
55
+ }).passthrough();
56
+ const NotionUpdateSchemaDatabase_EmojiObjectSchema = zod.z.object({
57
+ type: zod.z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'."),
58
+ emoji: zod.z.string().describe("Emoji character when type is 'emoji'.").nullable().optional(),
59
+ custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional()
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.");
62
+ const NotionUpdateSchemaDatabase_TextContentSchema = zod.z.object({
63
+ link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),
64
+ content: zod.z.string().describe("The actual text content.")
65
+ }).passthrough().describe("Text content within a rich text object.");
66
+ const NotionUpdateSchemaDatabase_DateMentionSchema = zod.z.object({
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.")
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.");
71
+ const NotionUpdateSchemaDatabase_BotOwnerUserSchema = zod.z.object({
72
+ id: zod.z.string().describe("UUID of the user."),
73
+ name: zod.z.string().describe("Display name.").nullable().optional(),
74
+ type: zod.z.string().describe("Type: 'person' or 'bot'.").nullable().optional(),
75
+ object: zod.z.string().default("user").describe("Always 'user'.").nullable().optional(),
76
+ avatar_url: zod.z.string().describe("Avatar URL.").nullable().optional()
77
+ }).passthrough().describe("User reference in bot owner context (simplified to avoid circular reference).");
78
+ const NotionUpdateSchemaDatabase_BotOwnerSchema = zod.z.object({
79
+ type: zod.z.string().describe("Type of owner: 'workspace' or 'user'."),
80
+ user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),
81
+ workspace: zod.z.boolean().describe("True when owner type is 'workspace'.").nullable().optional()
82
+ }).passthrough().describe("Owner information for a bot.");
83
+ const NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() }).passthrough().describe("Workspace limits for a bot.");
84
+ const NotionUpdateSchemaDatabase_BotInfoSchema = zod.z.object({
85
+ owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),
86
+ workspace_id: zod.z.string().describe("UUID of the workspace.").nullable().optional(),
87
+ workspace_name: zod.z.string().describe("Name of the workspace that owns the bot.").nullable().optional(),
88
+ workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional()
89
+ }).passthrough().describe("Bot-specific information for user objects.");
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
+ const NotionUpdateSchemaDatabase_PartialUserSchema = zod.z.object({
92
+ id: zod.z.string().describe("Unique identifier for the user (UUID)."),
93
+ bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),
94
+ name: zod.z.string().describe("Display name of the user.").nullable().optional(),
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."),
97
+ person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),
98
+ avatar_url: zod.z.string().describe("URL to the user's avatar image.").nullable().optional()
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.");
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'.")
105
+ }).passthrough().describe("Template mention for dates.");
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'.")
109
+ }).passthrough().describe("Template mention for users.");
110
+ const NotionUpdateSchemaDatabase_MentionObjectSchema = zod.z.object({
111
+ date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),
112
+ page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),
113
+ type: zod.z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'."),
114
+ user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),
115
+ database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),
116
+ link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),
117
+ template_mention: zod.z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional()
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.");
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.")
127
+ }).passthrough().describe("Styling annotations for rich text.");
128
+ const NotionUpdateSchemaDatabase_RichTextObjectSchema = zod.z.object({
129
+ href: zod.z.string().describe("URL when the text is a hyperlink, null otherwise.").nullable().optional(),
130
+ text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),
131
+ type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
132
+ mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),
133
+ equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),
134
+ plain_text: zod.z.string().describe("Unformatted plain text content."),
135
+ annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable()
136
+ }).passthrough().describe("Rich text object for formatted text, mentions, and equations.");
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.")
140
+ });
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').")
144
+ });
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').")
148
+ });
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').")
152
+ });
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').")
156
+ });
157
+ const NotionUpdateSchemaDatabase_DataSourceSummarySchema = zod.z.object({
158
+ id: zod.z.string(),
159
+ name: zod.z.string()
160
+ });
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."),
164
+ icon: zod.z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),
165
+ cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),
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."),
168
+ parent: zod.z.union([
169
+ NotionUpdateSchemaDatabase_ParentWorkspaceSchema,
170
+ NotionUpdateSchemaDatabase_ParentPageSchema,
171
+ NotionUpdateSchemaDatabase_ParentBlockSchema,
172
+ NotionUpdateSchemaDatabase_ParentDatabaseSchema,
173
+ NotionUpdateSchemaDatabase_ParentDataSourceSchema
174
+ ]),
175
+ archived: zod.z.boolean().describe("Whether the database is archived."),
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)."),
178
+ created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
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
+ public_url: zod.z.string().describe("The public URL of the database if it has been shared publicly, null otherwise.").nullable().optional(),
181
+ request_id: zod.z.string().nullable().optional(),
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."),
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
+ last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
186
+ last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.")
187
+ }).passthrough();
188
+ const notionUpdateSchemaDatabase = require_action.action("NOTION_UPDATE_SCHEMA_DATABASE", {
189
+ slug: "notion-update-schema-database",
190
+ name: "Update database schema",
191
+ 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",
192
+ input: NotionUpdateSchemaDatabaseInput,
193
+ output: NotionUpdateSchemaDatabaseOutput
194
+ });
195
+ //#endregion
196
+ exports.notionUpdateSchemaDatabase = notionUpdateSchemaDatabase;
197
+
198
+ //# sourceMappingURL=update-schema-database.cjs.map
@@ -0,0 +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,E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A,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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-schema-database.d.ts
4
+ declare const NotionUpdateSchemaDatabaseInput: z.ZodTypeAny;
5
+ declare const NotionUpdateSchemaDatabaseOutput: z.ZodTypeAny;
6
+ declare const notionUpdateSchemaDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { notionUpdateSchemaDatabase };
9
+ //# sourceMappingURL=update-schema-database.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-schema-database.d.cts","names":[],"sources":["../../src/actions/update-schema-database.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAY9C;AAAA,cA0IW,gCAAA,EAAkC,CAAA,CAAE,UAoBjC;AAAA,cAEH,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-schema-database.d.ts
4
+ declare const NotionUpdateSchemaDatabaseInput: z.ZodTypeAny;
5
+ declare const NotionUpdateSchemaDatabaseOutput: z.ZodTypeAny;
6
+ declare const notionUpdateSchemaDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { notionUpdateSchemaDatabase };
9
+ //# sourceMappingURL=update-schema-database.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-schema-database.d.mts","names":[],"sources":["../../src/actions/update-schema-database.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAY9C;AAAA,cA0IW,gCAAA,EAAkC,CAAA,CAAE,UAoBjC;AAAA,cAEH,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,197 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-schema-database.ts
4
+ const NotionUpdateSchemaDatabaseInput = z.object({
5
+ 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(),
6
+ properties: z.array(z.object({
7
+ 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."),
8
+ remove: z.boolean().default(false).describe("Set to true to remove this property from the database. Cannot be combined with other updates.").optional(),
9
+ rename: z.string().describe("New name for the property. If None (default), the name remains unchanged.").optional(),
10
+ new_type: z.enum([
11
+ "title",
12
+ "rich_text",
13
+ "number",
14
+ "select",
15
+ "multi_select",
16
+ "date",
17
+ "people",
18
+ "files",
19
+ "checkbox",
20
+ "url",
21
+ "email",
22
+ "phone_number",
23
+ "formula",
24
+ "relation",
25
+ "rollup",
26
+ "status",
27
+ "created_time",
28
+ "created_by",
29
+ "last_edited_time",
30
+ "last_edited_by",
31
+ "place",
32
+ "unique_id"
33
+ ]).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(),
34
+ 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(),
35
+ 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()
36
+ })).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(),
37
+ 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."),
38
+ 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()
39
+ });
40
+ const NotionUpdateSchemaDatabase_NotionFileSchema = z.object({
41
+ url: z.string().describe("Authenticated temporary URL to the file, valid for one hour."),
42
+ expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
43
+ }).passthrough();
44
+ const NotionUpdateSchemaDatabase_ExternalFileSchema = z.object({ url: z.string().describe("URL to the externally hosted file.") }).passthrough();
45
+ const NotionUpdateSchemaDatabase_FileObjectSchema = z.object({
46
+ file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),
47
+ type: z.string().describe("Type of file: 'external', 'file', or 'file_upload'."),
48
+ external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),
49
+ file_upload: z.record(z.string(), z.unknown()).nullable().optional()
50
+ }).passthrough();
51
+ const NotionUpdateSchemaDatabase_CustomEmojiSchema = z.object({
52
+ id: z.string().describe("Unique identifier for the custom emoji."),
53
+ url: z.string().describe("Public URL to the emoji image."),
54
+ name: z.string().describe("Display name of the custom emoji.")
55
+ }).passthrough();
56
+ const NotionUpdateSchemaDatabase_EmojiObjectSchema = z.object({
57
+ type: z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'."),
58
+ emoji: z.string().describe("Emoji character when type is 'emoji'.").nullable().optional(),
59
+ custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional()
60
+ }).passthrough();
61
+ const NotionUpdateSchemaDatabase_LinkInfoSchema = z.object({ url: z.string().describe("URL of the hyperlink.") }).passthrough().describe("Link information for hyperlinked text.");
62
+ const NotionUpdateSchemaDatabase_TextContentSchema = z.object({
63
+ link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),
64
+ content: z.string().describe("The actual text content.")
65
+ }).passthrough().describe("Text content within a rich text object.");
66
+ const NotionUpdateSchemaDatabase_DateMentionSchema = z.object({
67
+ end: z.string().describe("End date in ISO 8601 format, if range.").nullable().optional(),
68
+ start: z.string().describe("Start date in ISO 8601 format.")
69
+ }).passthrough().describe("Date information for a date mention.");
70
+ const NotionUpdateSchemaDatabase_PageReferenceSchema = z.object({ id: z.string().describe("UUID of the page.") }).passthrough().describe("Reference to a Notion page.");
71
+ const NotionUpdateSchemaDatabase_BotOwnerUserSchema = z.object({
72
+ id: z.string().describe("UUID of the user."),
73
+ name: z.string().describe("Display name.").nullable().optional(),
74
+ type: z.string().describe("Type: 'person' or 'bot'.").nullable().optional(),
75
+ object: z.string().default("user").describe("Always 'user'.").nullable().optional(),
76
+ avatar_url: z.string().describe("Avatar URL.").nullable().optional()
77
+ }).passthrough().describe("User reference in bot owner context (simplified to avoid circular reference).");
78
+ const NotionUpdateSchemaDatabase_BotOwnerSchema = z.object({
79
+ type: z.string().describe("Type of owner: 'workspace' or 'user'."),
80
+ user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),
81
+ workspace: z.boolean().describe("True when owner type is 'workspace'.").nullable().optional()
82
+ }).passthrough().describe("Owner information for a bot.");
83
+ const NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() }).passthrough().describe("Workspace limits for a bot.");
84
+ const NotionUpdateSchemaDatabase_BotInfoSchema = z.object({
85
+ owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),
86
+ workspace_id: z.string().describe("UUID of the workspace.").nullable().optional(),
87
+ workspace_name: z.string().describe("Name of the workspace that owns the bot.").nullable().optional(),
88
+ workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional()
89
+ }).passthrough().describe("Bot-specific information for user objects.");
90
+ const NotionUpdateSchemaDatabase_PersonInfoSchema = z.object({ email: 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
+ const NotionUpdateSchemaDatabase_PartialUserSchema = z.object({
92
+ id: z.string().describe("Unique identifier for the user (UUID)."),
93
+ bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),
94
+ name: z.string().describe("Display name of the user.").nullable().optional(),
95
+ type: z.string().describe("Type of user: 'person' or 'bot'.").nullable().optional(),
96
+ object: z.string().describe("Always 'user' for user objects."),
97
+ person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),
98
+ avatar_url: z.string().describe("URL to the user's avatar image.").nullable().optional()
99
+ }).passthrough().describe("Notion user object representing a person or bot.");
100
+ const NotionUpdateSchemaDatabase_DatabaseReferenceSchema = z.object({ id: z.string().describe("UUID of the database.") }).passthrough().describe("Reference to a Notion database.");
101
+ const NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = z.object({ url: z.string().describe("URL of the link preview.") }).passthrough().describe("Link preview mention information.");
102
+ const NotionUpdateSchemaDatabase_TemplateMentionDateSchema = z.object({
103
+ type: z.string().describe("Type: 'template_mention_date'."),
104
+ template_mention_date: z.string().describe("Template date value: 'today' or 'now'.")
105
+ }).passthrough().describe("Template mention for dates.");
106
+ const NotionUpdateSchemaDatabase_TemplateMentionUserSchema = z.object({
107
+ type: z.string().describe("Type: 'template_mention_user'."),
108
+ template_mention_user: z.string().describe("Template user value: 'me'.")
109
+ }).passthrough().describe("Template mention for users.");
110
+ const NotionUpdateSchemaDatabase_MentionObjectSchema = z.object({
111
+ date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),
112
+ page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),
113
+ type: z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'."),
114
+ user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),
115
+ database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),
116
+ link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),
117
+ template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional()
118
+ }).passthrough().describe("Mention object within rich text.");
119
+ const NotionUpdateSchemaDatabase_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX expression string.") }).passthrough().describe("LaTeX equation within rich text.");
120
+ const NotionUpdateSchemaDatabase_AnnotationsSchema = z.object({
121
+ bold: z.boolean().describe("Whether the text is bold."),
122
+ code: z.boolean().describe("Whether the text is formatted as code."),
123
+ color: 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: z.boolean().describe("Whether the text is italic."),
125
+ underline: z.boolean().describe("Whether the text is underlined."),
126
+ strikethrough: z.boolean().describe("Whether the text has strikethrough.")
127
+ }).passthrough().describe("Styling annotations for rich text.");
128
+ const NotionUpdateSchemaDatabase_RichTextObjectSchema = z.object({
129
+ href: z.string().describe("URL when the text is a hyperlink, null otherwise.").nullable().optional(),
130
+ text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),
131
+ type: z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
132
+ mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),
133
+ equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),
134
+ plain_text: z.string().describe("Unformatted plain text content."),
135
+ annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable()
136
+ }).passthrough().describe("Rich text object for formatted text, mentions, and equations.");
137
+ const NotionUpdateSchemaDatabase_ParentWorkspaceSchema = z.object({
138
+ type: z.string().describe("Type of parent: 'workspace'."),
139
+ workspace: z.boolean().describe("Always true when type is 'workspace', indicating a top-level database.")
140
+ });
141
+ const NotionUpdateSchemaDatabase_ParentPageSchema = z.object({
142
+ type: z.string().describe("Type of parent: 'page_id'."),
143
+ page_id: z.string().describe("UUID of the parent page (when type is 'page_id').")
144
+ });
145
+ const NotionUpdateSchemaDatabase_ParentBlockSchema = z.object({
146
+ type: z.string().describe("Type of parent: 'block_id'."),
147
+ block_id: z.string().describe("UUID of the parent block (when type is 'block_id').")
148
+ });
149
+ const NotionUpdateSchemaDatabase_ParentDatabaseSchema = z.object({
150
+ type: z.string().describe("Type of parent: 'database_id'."),
151
+ database_id: z.string().describe("UUID of the parent database (when type is 'database_id').")
152
+ });
153
+ const NotionUpdateSchemaDatabase_ParentDataSourceSchema = z.object({
154
+ type: z.string().describe("Type of parent: 'data_source_id'."),
155
+ data_source_id: z.string().describe("UUID of the parent data source (when type is 'data_source_id').")
156
+ });
157
+ const NotionUpdateSchemaDatabase_DataSourceSummarySchema = z.object({
158
+ id: z.string(),
159
+ name: z.string()
160
+ });
161
+ const notionUpdateSchemaDatabase = action("NOTION_UPDATE_SCHEMA_DATABASE", {
162
+ slug: "notion-update-schema-database",
163
+ name: "Update database schema",
164
+ 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",
165
+ input: NotionUpdateSchemaDatabaseInput,
166
+ output: z.object({
167
+ id: z.string().describe("Unique identifier for the database (UUID format)."),
168
+ url: z.string().describe("The URL of the database in Notion."),
169
+ icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),
170
+ cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),
171
+ title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe("Database name as an array of rich text objects."),
172
+ object: z.string().describe("Always 'database' for database objects."),
173
+ parent: z.union([
174
+ NotionUpdateSchemaDatabase_ParentWorkspaceSchema,
175
+ NotionUpdateSchemaDatabase_ParentPageSchema,
176
+ NotionUpdateSchemaDatabase_ParentBlockSchema,
177
+ NotionUpdateSchemaDatabase_ParentDatabaseSchema,
178
+ NotionUpdateSchemaDatabase_ParentDataSourceSchema
179
+ ]),
180
+ archived: z.boolean().describe("Whether the database is archived."),
181
+ in_trash: z.boolean().describe("Whether the database is in trash.").nullable().optional(),
182
+ is_inline: z.boolean().describe("Whether the database appears as an inline block (true) or as a child page (false)."),
183
+ created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
184
+ 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(),
185
+ public_url: z.string().describe("The public URL of the database if it has been shared publicly, null otherwise.").nullable().optional(),
186
+ request_id: z.string().nullable().optional(),
187
+ description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe("Database description as an array of rich text objects.").nullable().optional(),
188
+ created_time: z.string().describe("ISO 8601 timestamp of when the database was created."),
189
+ 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(),
190
+ last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
191
+ last_edited_time: z.string().describe("ISO 8601 timestamp of when the database was last edited.")
192
+ }).passthrough()
193
+ });
194
+ //#endregion
195
+ export { notionUpdateSchemaDatabase };
196
+
197
+ //# sourceMappingURL=update-schema-database.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-schema-database.mjs","names":[],"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,kCAAgD,EAAE,OAAO;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iNAAiN,CAAC,CAAC,SAAS;CACvP,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACnJ,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,UAAU,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,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,CAA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