@keystrokehq/notion 0.1.2 → 0.1.4

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 (280) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/add-multiple-page-content.cjs +5 -5
  3. package/dist/actions/add-multiple-page-content.cjs.map +1 -1
  4. package/dist/actions/add-multiple-page-content.d.cts +30 -16
  5. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.mts +30 -16
  7. package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
  8. package/dist/actions/add-multiple-page-content.mjs +5 -5
  9. package/dist/actions/add-multiple-page-content.mjs.map +1 -1
  10. package/dist/actions/append-code-blocks.cjs +60 -60
  11. package/dist/actions/append-code-blocks.cjs.map +1 -1
  12. package/dist/actions/append-code-blocks.d.cts +178 -148
  13. package/dist/actions/append-code-blocks.d.mts +178 -148
  14. package/dist/actions/append-code-blocks.mjs +60 -60
  15. package/dist/actions/append-code-blocks.mjs.map +1 -1
  16. package/dist/actions/append-layout-blocks.cjs +51 -51
  17. package/dist/actions/append-layout-blocks.cjs.map +1 -1
  18. package/dist/actions/append-layout-blocks.d.cts +162 -140
  19. package/dist/actions/append-layout-blocks.d.mts +162 -140
  20. package/dist/actions/append-layout-blocks.mjs +51 -51
  21. package/dist/actions/append-layout-blocks.mjs.map +1 -1
  22. package/dist/actions/append-media-blocks.cjs +85 -85
  23. package/dist/actions/append-media-blocks.cjs.map +1 -1
  24. package/dist/actions/append-media-blocks.d.cts +228 -173
  25. package/dist/actions/append-media-blocks.d.mts +228 -173
  26. package/dist/actions/append-media-blocks.mjs +85 -85
  27. package/dist/actions/append-media-blocks.mjs.map +1 -1
  28. package/dist/actions/append-table-blocks.cjs +47 -47
  29. package/dist/actions/append-table-blocks.cjs.map +1 -1
  30. package/dist/actions/append-table-blocks.d.cts +154 -136
  31. package/dist/actions/append-table-blocks.d.mts +154 -136
  32. package/dist/actions/append-table-blocks.mjs +47 -47
  33. package/dist/actions/append-table-blocks.mjs.map +1 -1
  34. package/dist/actions/append-task-blocks.cjs +61 -61
  35. package/dist/actions/append-task-blocks.cjs.map +1 -1
  36. package/dist/actions/append-task-blocks.d.cts +180 -149
  37. package/dist/actions/append-task-blocks.d.mts +180 -149
  38. package/dist/actions/append-task-blocks.mjs +61 -61
  39. package/dist/actions/append-task-blocks.mjs.map +1 -1
  40. package/dist/actions/append-text-blocks.cjs +78 -78
  41. package/dist/actions/append-text-blocks.cjs.map +1 -1
  42. package/dist/actions/append-text-blocks.d.cts +214 -166
  43. package/dist/actions/append-text-blocks.d.mts +214 -166
  44. package/dist/actions/append-text-blocks.mjs +78 -78
  45. package/dist/actions/append-text-blocks.mjs.map +1 -1
  46. package/dist/actions/archive-notion-page.cjs +17 -17
  47. package/dist/actions/archive-notion-page.cjs.map +1 -1
  48. package/dist/actions/archive-notion-page.d.cts +33 -21
  49. package/dist/actions/archive-notion-page.d.mts +33 -21
  50. package/dist/actions/archive-notion-page.mjs +17 -17
  51. package/dist/actions/archive-notion-page.mjs.map +1 -1
  52. package/dist/actions/create-comment.d.cts +21 -9
  53. package/dist/actions/create-comment.d.mts +21 -9
  54. package/dist/actions/create-database.cjs +15 -15
  55. package/dist/actions/create-database.cjs.map +1 -1
  56. package/dist/actions/create-database.d.cts +39 -26
  57. package/dist/actions/create-database.d.mts +39 -26
  58. package/dist/actions/create-database.mjs +15 -15
  59. package/dist/actions/create-database.mjs.map +1 -1
  60. package/dist/actions/create-file-upload.cjs +1 -1
  61. package/dist/actions/create-file-upload.cjs.map +1 -1
  62. package/dist/actions/create-file-upload.d.cts +14 -2
  63. package/dist/actions/create-file-upload.d.mts +14 -2
  64. package/dist/actions/create-file-upload.mjs +1 -1
  65. package/dist/actions/create-file-upload.mjs.map +1 -1
  66. package/dist/actions/create-notion-page.cjs +14 -14
  67. package/dist/actions/create-notion-page.cjs.map +1 -1
  68. package/dist/actions/create-notion-page.d.cts +31 -19
  69. package/dist/actions/create-notion-page.d.mts +31 -19
  70. package/dist/actions/create-notion-page.mjs +14 -14
  71. package/dist/actions/create-notion-page.mjs.map +1 -1
  72. package/dist/actions/delete-block.cjs +46 -46
  73. package/dist/actions/delete-block.cjs.map +1 -1
  74. package/dist/actions/delete-block.d.cts +345 -333
  75. package/dist/actions/delete-block.d.mts +345 -333
  76. package/dist/actions/delete-block.mjs +46 -46
  77. package/dist/actions/delete-block.mjs.map +1 -1
  78. package/dist/actions/duplicate-page.cjs +20 -20
  79. package/dist/actions/duplicate-page.cjs.map +1 -1
  80. package/dist/actions/duplicate-page.d.cts +37 -25
  81. package/dist/actions/duplicate-page.d.mts +37 -25
  82. package/dist/actions/duplicate-page.mjs +20 -20
  83. package/dist/actions/duplicate-page.mjs.map +1 -1
  84. package/dist/actions/fetch-all-block-contents.cjs +58 -58
  85. package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
  86. package/dist/actions/fetch-all-block-contents.d.cts +17 -5
  87. package/dist/actions/fetch-all-block-contents.d.mts +17 -5
  88. package/dist/actions/fetch-all-block-contents.mjs +58 -58
  89. package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
  90. package/dist/actions/fetch-block-contents.cjs +49 -49
  91. package/dist/actions/fetch-block-contents.cjs.map +1 -1
  92. package/dist/actions/fetch-block-contents.d.cts +185 -173
  93. package/dist/actions/fetch-block-contents.d.mts +185 -173
  94. package/dist/actions/fetch-block-contents.mjs +49 -49
  95. package/dist/actions/fetch-block-contents.mjs.map +1 -1
  96. package/dist/actions/fetch-block-metadata.cjs +43 -43
  97. package/dist/actions/fetch-block-metadata.cjs.map +1 -1
  98. package/dist/actions/fetch-block-metadata.d.cts +304 -292
  99. package/dist/actions/fetch-block-metadata.d.mts +304 -292
  100. package/dist/actions/fetch-block-metadata.mjs +43 -43
  101. package/dist/actions/fetch-block-metadata.mjs.map +1 -1
  102. package/dist/actions/fetch-comments.cjs +24 -24
  103. package/dist/actions/fetch-comments.cjs.map +1 -1
  104. package/dist/actions/fetch-comments.d.cts +42 -30
  105. package/dist/actions/fetch-comments.d.mts +42 -30
  106. package/dist/actions/fetch-comments.mjs +24 -24
  107. package/dist/actions/fetch-comments.mjs.map +1 -1
  108. package/dist/actions/fetch-data.cjs +33 -33
  109. package/dist/actions/fetch-data.cjs.map +1 -1
  110. package/dist/actions/fetch-data.d.cts +122 -110
  111. package/dist/actions/fetch-data.d.mts +122 -110
  112. package/dist/actions/fetch-data.mjs +33 -33
  113. package/dist/actions/fetch-data.mjs.map +1 -1
  114. package/dist/actions/fetch-database.cjs +13 -13
  115. package/dist/actions/fetch-database.cjs.map +1 -1
  116. package/dist/actions/fetch-database.d.cts +31 -19
  117. package/dist/actions/fetch-database.d.mts +31 -19
  118. package/dist/actions/fetch-database.mjs +13 -13
  119. package/dist/actions/fetch-database.mjs.map +1 -1
  120. package/dist/actions/fetch-row.cjs +23 -23
  121. package/dist/actions/fetch-row.cjs.map +1 -1
  122. package/dist/actions/fetch-row.d.cts +51 -39
  123. package/dist/actions/fetch-row.d.mts +51 -39
  124. package/dist/actions/fetch-row.mjs +23 -23
  125. package/dist/actions/fetch-row.mjs.map +1 -1
  126. package/dist/actions/get-about-user.cjs +6 -6
  127. package/dist/actions/get-about-user.cjs.map +1 -1
  128. package/dist/actions/get-about-user.d.cts +20 -8
  129. package/dist/actions/get-about-user.d.mts +20 -8
  130. package/dist/actions/get-about-user.mjs +6 -6
  131. package/dist/actions/get-about-user.mjs.map +1 -1
  132. package/dist/actions/get-page-markdown.cjs +1 -1
  133. package/dist/actions/get-page-markdown.cjs.map +1 -1
  134. package/dist/actions/get-page-markdown.d.cts +14 -2
  135. package/dist/actions/get-page-markdown.d.mts +14 -2
  136. package/dist/actions/get-page-markdown.mjs +1 -1
  137. package/dist/actions/get-page-markdown.mjs.map +1 -1
  138. package/dist/actions/get-page-property-action.d.cts +13 -1
  139. package/dist/actions/get-page-property-action.d.mts +13 -1
  140. package/dist/actions/insert-row-database.cjs +22 -22
  141. package/dist/actions/insert-row-database.cjs.map +1 -1
  142. package/dist/actions/insert-row-database.d.cts +52 -38
  143. package/dist/actions/insert-row-database.d.mts +52 -38
  144. package/dist/actions/insert-row-database.mjs +22 -22
  145. package/dist/actions/insert-row-database.mjs.map +1 -1
  146. package/dist/actions/insert-row-from-nl.cjs +1 -1
  147. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  148. package/dist/actions/insert-row-from-nl.d.cts +14 -2
  149. package/dist/actions/insert-row-from-nl.d.mts +14 -2
  150. package/dist/actions/insert-row-from-nl.mjs +1 -1
  151. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  152. package/dist/actions/list-data-source-templates.cjs +2 -2
  153. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  154. package/dist/actions/list-data-source-templates.d.cts +15 -3
  155. package/dist/actions/list-data-source-templates.d.mts +15 -3
  156. package/dist/actions/list-data-source-templates.mjs +2 -2
  157. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  158. package/dist/actions/list-file-uploads.cjs +2 -2
  159. package/dist/actions/list-file-uploads.cjs.map +1 -1
  160. package/dist/actions/list-file-uploads.d.cts +15 -3
  161. package/dist/actions/list-file-uploads.d.mts +15 -3
  162. package/dist/actions/list-file-uploads.mjs +2 -2
  163. package/dist/actions/list-file-uploads.mjs.map +1 -1
  164. package/dist/actions/list-users.cjs +8 -8
  165. package/dist/actions/list-users.cjs.map +1 -1
  166. package/dist/actions/list-users.d.cts +22 -10
  167. package/dist/actions/list-users.d.mts +22 -10
  168. package/dist/actions/list-users.mjs +8 -8
  169. package/dist/actions/list-users.mjs.map +1 -1
  170. package/dist/actions/move-page.cjs +18 -18
  171. package/dist/actions/move-page.cjs.map +1 -1
  172. package/dist/actions/move-page.d.cts +36 -22
  173. package/dist/actions/move-page.d.mts +36 -22
  174. package/dist/actions/move-page.mjs +18 -18
  175. package/dist/actions/move-page.mjs.map +1 -1
  176. package/dist/actions/query-data-source.cjs +18 -18
  177. package/dist/actions/query-data-source.cjs.map +1 -1
  178. package/dist/actions/query-data-source.d.cts +42 -28
  179. package/dist/actions/query-data-source.d.cts.map +1 -1
  180. package/dist/actions/query-data-source.d.mts +42 -28
  181. package/dist/actions/query-data-source.d.mts.map +1 -1
  182. package/dist/actions/query-data-source.mjs +18 -18
  183. package/dist/actions/query-data-source.mjs.map +1 -1
  184. package/dist/actions/query-database-with-filter.cjs +25 -25
  185. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  186. package/dist/actions/query-database-with-filter.d.cts +63 -49
  187. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  188. package/dist/actions/query-database-with-filter.d.mts +63 -49
  189. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  190. package/dist/actions/query-database-with-filter.mjs +25 -25
  191. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  192. package/dist/actions/query-database.cjs +24 -24
  193. package/dist/actions/query-database.cjs.map +1 -1
  194. package/dist/actions/query-database.d.cts +62 -49
  195. package/dist/actions/query-database.d.mts +62 -49
  196. package/dist/actions/query-database.mjs +24 -24
  197. package/dist/actions/query-database.mjs.map +1 -1
  198. package/dist/actions/replace-page-content.cjs +130 -130
  199. package/dist/actions/replace-page-content.cjs.map +1 -1
  200. package/dist/actions/replace-page-content.d.cts +274 -132
  201. package/dist/actions/replace-page-content.d.mts +274 -132
  202. package/dist/actions/replace-page-content.mjs +130 -130
  203. package/dist/actions/replace-page-content.mjs.map +1 -1
  204. package/dist/actions/retrieve-comment.d.cts +13 -1
  205. package/dist/actions/retrieve-comment.d.mts +13 -1
  206. package/dist/actions/retrieve-database-property.cjs +25 -25
  207. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  208. package/dist/actions/retrieve-database-property.d.cts +41 -29
  209. package/dist/actions/retrieve-database-property.d.mts +41 -29
  210. package/dist/actions/retrieve-database-property.mjs +25 -25
  211. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  212. package/dist/actions/retrieve-file-upload.cjs +1 -1
  213. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  214. package/dist/actions/retrieve-file-upload.d.cts +14 -2
  215. package/dist/actions/retrieve-file-upload.d.mts +14 -2
  216. package/dist/actions/retrieve-file-upload.mjs +1 -1
  217. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  218. package/dist/actions/retrieve-page.cjs +23 -23
  219. package/dist/actions/retrieve-page.cjs.map +1 -1
  220. package/dist/actions/retrieve-page.d.cts +49 -37
  221. package/dist/actions/retrieve-page.d.mts +49 -37
  222. package/dist/actions/retrieve-page.mjs +23 -23
  223. package/dist/actions/retrieve-page.mjs.map +1 -1
  224. package/dist/actions/search-notion-page.cjs +34 -34
  225. package/dist/actions/search-notion-page.cjs.map +1 -1
  226. package/dist/actions/search-notion-page.d.cts +152 -140
  227. package/dist/actions/search-notion-page.d.mts +152 -140
  228. package/dist/actions/search-notion-page.mjs +34 -34
  229. package/dist/actions/search-notion-page.mjs.map +1 -1
  230. package/dist/actions/send-file-upload.cjs +1 -1
  231. package/dist/actions/send-file-upload.cjs.map +1 -1
  232. package/dist/actions/send-file-upload.d.cts +14 -2
  233. package/dist/actions/send-file-upload.d.mts +14 -2
  234. package/dist/actions/send-file-upload.mjs +1 -1
  235. package/dist/actions/send-file-upload.mjs.map +1 -1
  236. package/dist/actions/update-block.cjs +47 -47
  237. package/dist/actions/update-block.cjs.map +1 -1
  238. package/dist/actions/update-block.d.cts +154 -142
  239. package/dist/actions/update-block.d.cts.map +1 -1
  240. package/dist/actions/update-block.d.mts +154 -142
  241. package/dist/actions/update-block.d.mts.map +1 -1
  242. package/dist/actions/update-block.mjs +47 -47
  243. package/dist/actions/update-block.mjs.map +1 -1
  244. package/dist/actions/update-page.cjs +16 -16
  245. package/dist/actions/update-page.cjs.map +1 -1
  246. package/dist/actions/update-page.d.cts +36 -24
  247. package/dist/actions/update-page.d.mts +36 -24
  248. package/dist/actions/update-page.mjs +16 -16
  249. package/dist/actions/update-page.mjs.map +1 -1
  250. package/dist/actions/update-row-database.cjs +21 -21
  251. package/dist/actions/update-row-database.cjs.map +1 -1
  252. package/dist/actions/update-row-database.d.cts +42 -29
  253. package/dist/actions/update-row-database.d.mts +42 -29
  254. package/dist/actions/update-row-database.mjs +21 -21
  255. package/dist/actions/update-row-database.mjs.map +1 -1
  256. package/dist/actions/update-schema-database.cjs +8 -8
  257. package/dist/actions/update-schema-database.cjs.map +1 -1
  258. package/dist/actions/update-schema-database.d.cts +25 -12
  259. package/dist/actions/update-schema-database.d.mts +25 -12
  260. package/dist/actions/update-schema-database.mjs +8 -8
  261. package/dist/actions/update-schema-database.mjs.map +1 -1
  262. package/dist/actions/upsert-row-database.cjs +28 -28
  263. package/dist/actions/upsert-row-database.cjs.map +1 -1
  264. package/dist/actions/upsert-row-database.d.cts +67 -31
  265. package/dist/actions/upsert-row-database.d.mts +67 -31
  266. package/dist/actions/upsert-row-database.mjs +28 -28
  267. package/dist/actions/upsert-row-database.mjs.map +1 -1
  268. package/dist/app.cjs +5 -2
  269. package/dist/app.cjs.map +1 -1
  270. package/dist/app.d.cts +9 -1
  271. package/dist/app.d.cts.map +1 -1
  272. package/dist/app.d.mts +9 -1
  273. package/dist/app.d.mts.map +1 -1
  274. package/dist/app.mjs +3 -1
  275. package/dist/app.mjs.map +1 -1
  276. package/dist/execute.cjs +1 -1
  277. package/dist/execute.cjs.map +1 -1
  278. package/dist/execute.mjs +1 -1
  279. package/dist/execute.mjs.map +1 -1
  280. package/package.json +1 -1
@@ -9,19 +9,19 @@ declare const NotionCreateDatabaseInput: z.ZodObject<{
9
9
  type: z.ZodEnum<{
10
10
  number: "number";
11
11
  date: "date";
12
+ title: "title";
12
13
  url: "url";
13
14
  rich_text: "rich_text";
14
15
  created_by: "created_by";
15
16
  created_time: "created_time";
16
17
  last_edited_by: "last_edited_by";
17
18
  last_edited_time: "last_edited_time";
18
- title: "title";
19
+ email: "email";
19
20
  select: "select";
20
21
  multi_select: "multi_select";
21
22
  people: "people";
22
23
  files: "files";
23
24
  checkbox: "checkbox";
24
- email: "email";
25
25
  phone_number: "phone_number";
26
26
  formula: "formula";
27
27
  relation: "relation";
@@ -32,7 +32,7 @@ declare const NotionCreateDatabaseInput: z.ZodObject<{
32
32
  }>;
33
33
  database_id: z.ZodOptional<z.ZodString>;
34
34
  relation_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
35
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
36
  }, z.core.$strip>;
37
37
  declare const NotionCreateDatabaseOutput: z.ZodObject<{
38
38
  id: z.ZodNullable<z.ZodString>;
@@ -41,36 +41,36 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
41
41
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  url: z.ZodNullable<z.ZodString>;
43
43
  expiry_time: z.ZodNullable<z.ZodString>;
44
- }, z.core.$strip>>>;
44
+ }, z.core.$loose>>>;
45
45
  type: z.ZodNullable<z.ZodString>;
46
46
  emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
48
  url: z.ZodNullable<z.ZodString>;
49
- }, z.core.$strip>>>;
49
+ }, z.core.$loose>>>;
50
50
  custom_emoji: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
51
  id: z.ZodNullable<z.ZodString>;
52
52
  url: z.ZodNullable<z.ZodString>;
53
53
  name: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>>>;
55
- }, z.core.$strip>>>;
54
+ }, z.core.$loose>>>;
55
+ }, z.core.$loose>>>;
56
56
  cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
57
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
58
  url: z.ZodNullable<z.ZodString>;
59
59
  expiry_time: z.ZodNullable<z.ZodString>;
60
- }, z.core.$strip>>>;
60
+ }, z.core.$loose>>>;
61
61
  type: z.ZodNullable<z.ZodString>;
62
62
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
63
  url: z.ZodNullable<z.ZodString>;
64
- }, z.core.$strip>>>;
65
- }, z.core.$strip>>>;
64
+ }, z.core.$loose>>>;
65
+ }, z.core.$loose>>>;
66
66
  title: z.ZodArray<z.ZodObject<{
67
67
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
69
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
70
  url: z.ZodNullable<z.ZodString>;
71
- }, z.core.$strip>>>;
71
+ }, z.core.$loose>>>;
72
72
  content: z.ZodNullable<z.ZodString>;
73
- }, z.core.$strip>>>;
73
+ }, z.core.$loose>>>;
74
74
  type: z.ZodNullable<z.ZodString>;
75
75
  plain_text: z.ZodNullable<z.ZodString>;
76
76
  annotations: z.ZodNullable<z.ZodObject<{
@@ -80,23 +80,23 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
80
80
  italic: z.ZodNullable<z.ZodBoolean>;
81
81
  underline: z.ZodNullable<z.ZodBoolean>;
82
82
  strikethrough: z.ZodNullable<z.ZodBoolean>;
83
- }, z.core.$strip>>;
84
- }, z.core.$strip>>;
83
+ }, z.core.$loose>>;
84
+ }, z.core.$loose>>;
85
85
  object: z.ZodNullable<z.ZodString>;
86
86
  parent: z.ZodNullable<z.ZodObject<{
87
87
  type: z.ZodNullable<z.ZodString>;
88
88
  page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
89
  block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
90
  workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
91
- }, z.core.$strip>>;
91
+ }, z.core.$loose>>;
92
92
  archived: z.ZodNullable<z.ZodBoolean>;
93
93
  in_trash: z.ZodNullable<z.ZodBoolean>;
94
94
  is_inline: z.ZodNullable<z.ZodBoolean>;
95
95
  created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
96
  id: z.ZodNullable<z.ZodString>;
97
97
  object: z.ZodNullable<z.ZodString>;
98
- }, z.core.$strip>>>;
99
- properties: z.ZodObject<{}, z.core.$strip>;
98
+ }, z.core.$loose>>>;
99
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
100
100
  public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
101
  request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -104,9 +104,9 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
104
104
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
105
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
106
  url: z.ZodNullable<z.ZodString>;
107
- }, z.core.$strip>>>;
107
+ }, z.core.$loose>>>;
108
108
  content: z.ZodNullable<z.ZodString>;
109
- }, z.core.$strip>>>;
109
+ }, z.core.$loose>>>;
110
110
  type: z.ZodNullable<z.ZodString>;
111
111
  plain_text: z.ZodNullable<z.ZodString>;
112
112
  annotations: z.ZodNullable<z.ZodObject<{
@@ -116,30 +116,43 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
116
116
  italic: z.ZodNullable<z.ZodBoolean>;
117
117
  underline: z.ZodNullable<z.ZodBoolean>;
118
118
  strikethrough: z.ZodNullable<z.ZodBoolean>;
119
- }, z.core.$strip>>;
120
- }, z.core.$strip>>>>;
119
+ }, z.core.$loose>>;
120
+ }, z.core.$loose>>>>;
121
121
  created_time: z.ZodNullable<z.ZodString>;
122
122
  data_sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
123
123
  id: z.ZodNullable<z.ZodString>;
124
124
  name: z.ZodNullable<z.ZodString>;
125
- }, z.core.$strip>>>>;
125
+ }, z.core.$loose>>>>;
126
126
  last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
127
127
  id: z.ZodNullable<z.ZodString>;
128
128
  object: z.ZodNullable<z.ZodString>;
129
- }, z.core.$strip>>>;
129
+ }, z.core.$loose>>>;
130
130
  developer_survey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
131
  last_edited_time: z.ZodNullable<z.ZodString>;
132
- }, z.core.$strip>;
132
+ }, z.core.$loose>;
133
133
  declare const notionCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
134
134
  title: string;
135
135
  parent_id: string;
136
136
  properties?: {
137
+ [x: string]: unknown;
137
138
  name: string;
138
- type: "number" | "date" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "title" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
139
+ type: "number" | "date" | "title" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "email" | "select" | "multi_select" | "people" | "files" | "checkbox" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
139
140
  database_id?: string | undefined;
140
141
  relation_type?: string | undefined;
141
142
  }[] | undefined;
142
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
143
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
144
+ connectionId: z.ZodString;
145
+ entityId: z.ZodString;
146
+ instanceId: z.ZodString;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ accessToken: z.ZodString;
149
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
150
+ connectionId: z.ZodString;
151
+ entityId: z.ZodString;
152
+ instanceId: z.ZodString;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ accessToken: z.ZodString;
155
+ }, z.core.$strip>>]>;
143
156
  //#endregion
144
157
  export { notionCreateDatabase };
145
158
  //# sourceMappingURL=create-database.d.cts.map
@@ -9,19 +9,19 @@ declare const NotionCreateDatabaseInput: z.ZodObject<{
9
9
  type: z.ZodEnum<{
10
10
  number: "number";
11
11
  date: "date";
12
+ title: "title";
12
13
  url: "url";
13
14
  rich_text: "rich_text";
14
15
  created_by: "created_by";
15
16
  created_time: "created_time";
16
17
  last_edited_by: "last_edited_by";
17
18
  last_edited_time: "last_edited_time";
18
- title: "title";
19
+ email: "email";
19
20
  select: "select";
20
21
  multi_select: "multi_select";
21
22
  people: "people";
22
23
  files: "files";
23
24
  checkbox: "checkbox";
24
- email: "email";
25
25
  phone_number: "phone_number";
26
26
  formula: "formula";
27
27
  relation: "relation";
@@ -32,7 +32,7 @@ declare const NotionCreateDatabaseInput: z.ZodObject<{
32
32
  }>;
33
33
  database_id: z.ZodOptional<z.ZodString>;
34
34
  relation_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
35
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
36
  }, z.core.$strip>;
37
37
  declare const NotionCreateDatabaseOutput: z.ZodObject<{
38
38
  id: z.ZodNullable<z.ZodString>;
@@ -41,36 +41,36 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
41
41
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  url: z.ZodNullable<z.ZodString>;
43
43
  expiry_time: z.ZodNullable<z.ZodString>;
44
- }, z.core.$strip>>>;
44
+ }, z.core.$loose>>>;
45
45
  type: z.ZodNullable<z.ZodString>;
46
46
  emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
48
  url: z.ZodNullable<z.ZodString>;
49
- }, z.core.$strip>>>;
49
+ }, z.core.$loose>>>;
50
50
  custom_emoji: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
51
  id: z.ZodNullable<z.ZodString>;
52
52
  url: z.ZodNullable<z.ZodString>;
53
53
  name: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>>>;
55
- }, z.core.$strip>>>;
54
+ }, z.core.$loose>>>;
55
+ }, z.core.$loose>>>;
56
56
  cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
57
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
58
  url: z.ZodNullable<z.ZodString>;
59
59
  expiry_time: z.ZodNullable<z.ZodString>;
60
- }, z.core.$strip>>>;
60
+ }, z.core.$loose>>>;
61
61
  type: z.ZodNullable<z.ZodString>;
62
62
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
63
  url: z.ZodNullable<z.ZodString>;
64
- }, z.core.$strip>>>;
65
- }, z.core.$strip>>>;
64
+ }, z.core.$loose>>>;
65
+ }, z.core.$loose>>>;
66
66
  title: z.ZodArray<z.ZodObject<{
67
67
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
69
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
70
  url: z.ZodNullable<z.ZodString>;
71
- }, z.core.$strip>>>;
71
+ }, z.core.$loose>>>;
72
72
  content: z.ZodNullable<z.ZodString>;
73
- }, z.core.$strip>>>;
73
+ }, z.core.$loose>>>;
74
74
  type: z.ZodNullable<z.ZodString>;
75
75
  plain_text: z.ZodNullable<z.ZodString>;
76
76
  annotations: z.ZodNullable<z.ZodObject<{
@@ -80,23 +80,23 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
80
80
  italic: z.ZodNullable<z.ZodBoolean>;
81
81
  underline: z.ZodNullable<z.ZodBoolean>;
82
82
  strikethrough: z.ZodNullable<z.ZodBoolean>;
83
- }, z.core.$strip>>;
84
- }, z.core.$strip>>;
83
+ }, z.core.$loose>>;
84
+ }, z.core.$loose>>;
85
85
  object: z.ZodNullable<z.ZodString>;
86
86
  parent: z.ZodNullable<z.ZodObject<{
87
87
  type: z.ZodNullable<z.ZodString>;
88
88
  page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
89
  block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
90
  workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
91
- }, z.core.$strip>>;
91
+ }, z.core.$loose>>;
92
92
  archived: z.ZodNullable<z.ZodBoolean>;
93
93
  in_trash: z.ZodNullable<z.ZodBoolean>;
94
94
  is_inline: z.ZodNullable<z.ZodBoolean>;
95
95
  created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
96
  id: z.ZodNullable<z.ZodString>;
97
97
  object: z.ZodNullable<z.ZodString>;
98
- }, z.core.$strip>>>;
99
- properties: z.ZodObject<{}, z.core.$strip>;
98
+ }, z.core.$loose>>>;
99
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
100
100
  public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
101
  request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -104,9 +104,9 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
104
104
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
105
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
106
  url: z.ZodNullable<z.ZodString>;
107
- }, z.core.$strip>>>;
107
+ }, z.core.$loose>>>;
108
108
  content: z.ZodNullable<z.ZodString>;
109
- }, z.core.$strip>>>;
109
+ }, z.core.$loose>>>;
110
110
  type: z.ZodNullable<z.ZodString>;
111
111
  plain_text: z.ZodNullable<z.ZodString>;
112
112
  annotations: z.ZodNullable<z.ZodObject<{
@@ -116,30 +116,43 @@ declare const NotionCreateDatabaseOutput: z.ZodObject<{
116
116
  italic: z.ZodNullable<z.ZodBoolean>;
117
117
  underline: z.ZodNullable<z.ZodBoolean>;
118
118
  strikethrough: z.ZodNullable<z.ZodBoolean>;
119
- }, z.core.$strip>>;
120
- }, z.core.$strip>>>>;
119
+ }, z.core.$loose>>;
120
+ }, z.core.$loose>>>>;
121
121
  created_time: z.ZodNullable<z.ZodString>;
122
122
  data_sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
123
123
  id: z.ZodNullable<z.ZodString>;
124
124
  name: z.ZodNullable<z.ZodString>;
125
- }, z.core.$strip>>>>;
125
+ }, z.core.$loose>>>>;
126
126
  last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
127
127
  id: z.ZodNullable<z.ZodString>;
128
128
  object: z.ZodNullable<z.ZodString>;
129
- }, z.core.$strip>>>;
129
+ }, z.core.$loose>>>;
130
130
  developer_survey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
131
  last_edited_time: z.ZodNullable<z.ZodString>;
132
- }, z.core.$strip>;
132
+ }, z.core.$loose>;
133
133
  declare const notionCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
134
134
  title: string;
135
135
  parent_id: string;
136
136
  properties?: {
137
+ [x: string]: unknown;
137
138
  name: string;
138
- type: "number" | "date" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "title" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
139
+ type: "number" | "date" | "title" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "email" | "select" | "multi_select" | "people" | "files" | "checkbox" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
139
140
  database_id?: string | undefined;
140
141
  relation_type?: string | undefined;
141
142
  }[] | undefined;
142
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
143
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
144
+ connectionId: z.ZodString;
145
+ entityId: z.ZodString;
146
+ instanceId: z.ZodString;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ accessToken: z.ZodString;
149
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
150
+ connectionId: z.ZodString;
151
+ entityId: z.ZodString;
152
+ instanceId: z.ZodString;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ accessToken: z.ZodString;
155
+ }, z.core.$strip>>]>;
143
156
  //#endregion
144
157
  export { notionCreateDatabase };
145
158
  //# sourceMappingURL=create-database.d.mts.map
@@ -32,35 +32,35 @@ const NotionCreateDatabaseInput = z.object({
32
32
  ]).describe("The type of the property, which determines the kind of data it will store. Valid types are defined by the PropertyType enum."),
33
33
  database_id: z.string().describe("UUID of the database to relate to. Required when type is 'relation'. Must be a valid UUID format (32 hex characters, with or without hyphens). Placeholder values like 'PLACEHOLDER_PROJECT' are not allowed.").optional(),
34
34
  relation_type: z.string().default("single_property").describe("Relationship type, either 'single_property' or 'dual_property'.").optional()
35
- })).describe("Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.").optional()
35
+ }).passthrough()).describe("Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.").optional()
36
36
  });
37
37
  const NotionCreateDatabase__NotionFileSchema = z.object({
38
38
  url: z.string().describe("Authenticated URL to the file (valid for one hour).").nullable(),
39
39
  expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
40
- }).describe("Notion-hosted file.");
41
- const NotionCreateDatabase__ExternalFileSchema = z.object({ url: z.string().describe("URL of the externally hosted file.").nullable() }).describe("External file URL.");
40
+ }).passthrough().describe("Notion-hosted file.");
41
+ const NotionCreateDatabase__ExternalFileSchema = z.object({ url: z.string().describe("URL of the externally hosted file.").nullable() }).passthrough().describe("External file URL.");
42
42
  const NotionCreateDatabase__CustomEmojiSchema = z.object({
43
43
  id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
44
44
  url: z.string().describe("HTTPS URL to the custom emoji image.").nullable(),
45
45
  name: z.string().describe("Display name of the custom emoji.").nullable()
46
- }).describe("Custom emoji details.");
46
+ }).passthrough().describe("Custom emoji details.");
47
47
  const NotionCreateDatabase__IconSchema = z.object({
48
48
  file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),
49
49
  type: z.string().describe("Icon type: 'emoji', 'custom_emoji', 'external', or 'file'.").nullable(),
50
50
  emoji: z.string().describe("Emoji character (present when type is 'emoji').").nullable().optional(),
51
51
  external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),
52
52
  custom_emoji: NotionCreateDatabase__CustomEmojiSchema.nullable().optional()
53
- }).describe("Database icon (emoji or file object).");
53
+ }).passthrough().describe("Database icon (emoji or file object).");
54
54
  const NotionCreateDatabase__CoverSchema = z.object({
55
55
  file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),
56
56
  type: z.string().describe("Cover type: 'external' or 'file'.").nullable(),
57
57
  external: NotionCreateDatabase__ExternalFileSchema.nullable().optional()
58
- }).describe("Database cover image (file object).");
59
- const NotionCreateDatabase__LinkSchema = z.object({ url: z.string().describe("URL of the link.").nullable() }).describe("Link object for rich text.");
58
+ }).passthrough().describe("Database cover image (file object).");
59
+ const NotionCreateDatabase__LinkSchema = z.object({ url: z.string().describe("URL of the link.").nullable() }).passthrough().describe("Link object for rich text.");
60
60
  const NotionCreateDatabase__TextContentSchema = z.object({
61
61
  link: NotionCreateDatabase__LinkSchema.nullable().optional(),
62
62
  content: z.string().describe("The text content.").nullable()
63
- }).describe("Text content object for rich text.");
63
+ }).passthrough().describe("Text content object for rich text.");
64
64
  const NotionCreateDatabase__AnnotationsSchema = z.object({
65
65
  bold: z.boolean().describe("Whether the text is bold.").nullable(),
66
66
  code: z.boolean().describe("Whether the text is formatted as code.").nullable(),
@@ -68,28 +68,28 @@ const NotionCreateDatabase__AnnotationsSchema = z.object({
68
68
  italic: z.boolean().describe("Whether the text is italic.").nullable(),
69
69
  underline: z.boolean().describe("Whether the text is underlined.").nullable(),
70
70
  strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
71
- }).describe("Styling information for rich text.");
71
+ }).passthrough().describe("Styling information for rich text.");
72
72
  const NotionCreateDatabase__RichTextSchema = z.object({
73
73
  href: z.string().describe("URL for links or null if no link.").nullable().optional(),
74
74
  text: NotionCreateDatabase__TextContentSchema.nullable().optional(),
75
75
  type: z.string().describe("Type of rich text object: 'text', 'mention', or 'equation'.").nullable(),
76
76
  plain_text: z.string().describe("Plain text representation without formatting.").nullable(),
77
77
  annotations: NotionCreateDatabase__AnnotationsSchema.nullable()
78
- }).describe("Rich text object representing formatted text.");
78
+ }).passthrough().describe("Rich text object representing formatted text.");
79
79
  const NotionCreateDatabase__ParentSchema = z.object({
80
80
  type: z.string().describe("Parent type: 'page_id', 'workspace', or 'block_id'.").nullable(),
81
81
  page_id: z.string().describe("UUID of the parent page (present when type is 'page_id').").nullable().optional(),
82
82
  block_id: z.string().describe("UUID of the parent block (present when type is 'block_id').").nullable().optional(),
83
83
  workspace: z.boolean().describe("Always true when type is 'workspace'.").nullable().optional()
84
- }).describe("Parent location of the database (page, workspace, or block).");
84
+ }).passthrough().describe("Parent location of the database (page, workspace, or block).");
85
85
  const NotionCreateDatabase__PartialUserSchema = z.object({
86
86
  id: z.string().describe("Unique identifier for the user (UUID format).").nullable(),
87
87
  object: z.string().describe("Always \"user\".").nullable()
88
- }).describe("Partial Notion user object for created_by/last_edited_by contexts.");
88
+ }).passthrough().describe("Partial Notion user object for created_by/last_edited_by contexts.");
89
89
  const NotionCreateDatabase__DataSourceRefSchema = z.object({
90
90
  id: z.string().describe("Unique identifier for the data source (UUID format).").nullable(),
91
91
  name: z.string().describe("Name of the data source.").nullable()
92
- }).describe("Minimal data source object embedded in Database responses.");
92
+ }).passthrough().describe("Minimal data source object embedded in Database responses.");
93
93
  const notionCreateDatabase = action("NOTION_CREATE_DATABASE", {
94
94
  slug: "notion-create-database",
95
95
  name: "Create Notion Database",
@@ -107,7 +107,7 @@ const notionCreateDatabase = action("NOTION_CREATE_DATABASE", {
107
107
  in_trash: z.boolean().describe("Whether the database is in the trash.").nullable(),
108
108
  is_inline: z.boolean().describe("Whether the database appears inline on the page (true) or as a full page database (false).").nullable(),
109
109
  created_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),
110
- properties: z.object({}).describe("Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings."),
110
+ properties: z.record(z.string(), z.unknown()).describe("Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings."),
111
111
  public_url: z.string().describe("Public web URL if the database is published to the web, otherwise null.").nullable().optional(),
112
112
  request_id: z.string().describe("Unique identifier for the API request (used for debugging and support).").nullable().optional(),
113
113
  description: z.array(NotionCreateDatabase__RichTextSchema).describe("Array of rich text objects representing the database description.").nullable().optional(),
@@ -116,7 +116,7 @@ const notionCreateDatabase = action("NOTION_CREATE_DATABASE", {
116
116
  last_edited_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),
117
117
  developer_survey: z.string().describe("URL to a feedback survey (may appear in API responses).").nullable().optional(),
118
118
  last_edited_time: z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
119
- }).describe("Response body returned by POST /v1/databases. Matches Notion Database object.")
119
+ }).passthrough().describe("Response body returned by POST /v1/databases. Matches Notion Database object.")
120
120
  });
121
121
  //#endregion
122
122
  export { notionCreateDatabase };
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateDatabaseInput = z.object({\n title: z.string().describe(\"The desired title for the new database. This text will be automatically converted into Notion's rich text format when the database is created.\"),\n parent_id: z.string().describe(\"**CRITICAL: MUST BE A PAGE ID, NOT A DATABASE ID.** Databases can only be created as children of pages, not as children of other databases. Using a database ID will result in an API error: 'Can't create databases parented by a database.' HOW TO IDENTIFY PAGE vs DATABASE: Use NOTION_SEARCH_NOTION_PAGE with filter_value='page' to find pages (object='page') - only these IDs can be used here. Database IDs (object='database') are NOT valid as parent_id for this action. FORMAT: Valid 32-character UUID with hyphens (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or without hyphens (32 alphanumeric characters). Additional text after the UUID (e.g., 'uuid: Page Title') is automatically cleaned. The page must be shared with your integration, otherwise you'll receive a 404 error.\"),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"The type of the property, which determines the kind of data it will store. Valid types are defined by the PropertyType enum.\"),\n database_id: z.string().describe(\"UUID of the database to relate to. Required when type is 'relation'. Must be a valid UUID format (32 hex characters, with or without hyphens). Placeholder values like 'PLACEHOLDER_PROJECT' are not allowed.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Relationship type, either 'single_property' or 'dual_property'.\").optional(),\n})).describe(\"Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.\").optional(),\n});\nconst NotionCreateDatabase__NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file (valid for one hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).describe(\"External file URL.\");\nconst NotionCreateDatabase__CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji details.\");\nconst NotionCreateDatabase__IconSchema = z.object({\n file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Icon type: 'emoji', 'custom_emoji', 'external', or 'file'.\").nullable(),\n emoji: z.string().describe(\"Emoji character (present when type is 'emoji').\").nullable().optional(),\n external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionCreateDatabase__CustomEmojiSchema.nullable().optional(),\n}).describe(\"Database icon (emoji or file object).\");\nconst NotionCreateDatabase__CoverSchema = z.object({\n file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Cover type: 'external' or 'file'.\").nullable(),\n external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),\n}).describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).describe(\"Link object for rich text.\");\nconst NotionCreateDatabase__TextContentSchema = z.object({\n link: NotionCreateDatabase__LinkSchema.nullable().optional(),\n content: z.string().describe(\"The text content.\").nullable(),\n}).describe(\"Text content object for rich text.\");\nconst NotionCreateDatabase__AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text (e.g., 'default', 'blue', 'red', etc.).\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).describe(\"Styling information for rich text.\");\nconst NotionCreateDatabase__RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or null if no link.\").nullable().optional(),\n text: NotionCreateDatabase__TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text object: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionCreateDatabase__AnnotationsSchema.nullable(),\n}).describe(\"Rich text object representing formatted text.\");\nconst NotionCreateDatabase__ParentSchema = z.object({\n type: z.string().describe(\"Parent type: 'page_id', 'workspace', or 'block_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (present when type is 'page_id').\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block (present when type is 'block_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n}).describe(\"Parent location of the database (page, workspace, or block).\");\nconst NotionCreateDatabase__PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).describe(\"Partial Notion user object for created_by/last_edited_by contexts.\");\nconst NotionCreateDatabase__DataSourceRefSchema = z.object({\n id: z.string().describe(\"Unique identifier for the data source (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).describe(\"Minimal data source object embedded in Database responses.\");\nexport const NotionCreateDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: NotionCreateDatabase__IconSchema.nullable().optional(),\n cover: NotionCreateDatabase__CoverSchema.nullable().optional(),\n title: z.array(NotionCreateDatabase__RichTextSchema).describe(\"Array of rich text objects representing the database title/name as it appears in Notion.\"),\n object: z.string().describe(\"Always \\\"database\\\".\").nullable(),\n parent: NotionCreateDatabase__ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database appears inline on the page (true) or as a full page database (false).\").nullable(),\n created_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings.\"),\n public_url: z.string().describe(\"Public web URL if the database is published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the API request (used for debugging and support).\").nullable().optional(),\n description: z.array(NotionCreateDatabase__RichTextSchema).describe(\"Array of rich text objects representing the database description.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n data_sources: z.array(NotionCreateDatabase__DataSourceRefSchema).describe(\"List of child data sources in the database (available in API version 2025-09-03+). Each database has one or more data sources.\").nullable().optional(),\n last_edited_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),\n developer_survey: z.string().describe(\"URL to a feedback survey (may appear in API responses).\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).describe(\"Response body returned by POST /v1/databases. Matches Notion Database object.\");\n\nexport const notionCreateDatabase = action(\"NOTION_CREATE_DATABASE\", {\n slug: \"notion-create-database\",\n name: \"Create Notion Database\",\n description: \"Creates a new Notion database as a subpage under a specified parent page with a defined properties schema. IMPORTANT NOTES: - The parent page MUST be shared with your integration, otherwise you'll get a 404 error - If you encounter conflict errors (409), retry the request as Notion may experience temporary save conflicts - For relation properties, you MUST provide the database_id of the related database - Parent ID must be a valid UUID format (with or without hyphens), not a template variable Use this action exclusively for creating new databases.\",\n input: NotionCreateDatabaseInput,\n output: NotionCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC3K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,owBAAowB;CACnyB,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC,CAAC,CAAC,SAAS,8HAA8H;EAC5Z,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;EAC3P,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,iBAAiB,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,CAAC,SAAS,2xBAA2xB,CAAC,CAAC,SAAS;AACnzB,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,qBAAqB;AACjC,MAAM,2CAA2C,EAAE,OAAO,EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,SAA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NAA2N;EAC7P,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,aAAa,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChO,gBAAgB,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC5E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,+EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateDatabaseInput = z.object({\n title: z.string().describe(\"The desired title for the new database. This text will be automatically converted into Notion's rich text format when the database is created.\"),\n parent_id: z.string().describe(\"**CRITICAL: MUST BE A PAGE ID, NOT A DATABASE ID.** Databases can only be created as children of pages, not as children of other databases. Using a database ID will result in an API error: 'Can't create databases parented by a database.' HOW TO IDENTIFY PAGE vs DATABASE: Use NOTION_SEARCH_NOTION_PAGE with filter_value='page' to find pages (object='page') - only these IDs can be used here. Database IDs (object='database') are NOT valid as parent_id for this action. FORMAT: Valid 32-character UUID with hyphens (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or without hyphens (32 alphanumeric characters). Additional text after the UUID (e.g., 'uuid: Page Title') is automatically cleaned. The page must be shared with your integration, otherwise you'll receive a 404 error.\"),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"The type of the property, which determines the kind of data it will store. Valid types are defined by the PropertyType enum.\"),\n database_id: z.string().describe(\"UUID of the database to relate to. Required when type is 'relation'. Must be a valid UUID format (32 hex characters, with or without hyphens). Placeholder values like 'PLACEHOLDER_PROJECT' are not allowed.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Relationship type, either 'single_property' or 'dual_property'.\").optional(),\n}).passthrough()).describe(\"Optional list defining the schema (columns) for the new database. Each item is an object with 'name' and 'type'. If not provided, Notion creates a default database with a single 'Name' column of type 'title'. When provided, the list must include at least one property of type 'title'. Common supported property types include: 'title', 'rich_text', 'number', 'select', 'multi_select', 'status', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number'. Other types like 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by' might also be supported. IMPORTANT: For 'relation' type properties, you MUST also provide the 'database_id' field with the UUID of the related database. The related database must be shared with your integration.\").optional(),\n});\nconst NotionCreateDatabase__NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file (valid for one hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file.\");\nconst NotionCreateDatabase__ExternalFileSchema = z.object({\n url: z.string().describe(\"URL of the externally hosted file.\").nullable(),\n}).passthrough().describe(\"External file URL.\");\nconst NotionCreateDatabase__CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionCreateDatabase__IconSchema = z.object({\n file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Icon type: 'emoji', 'custom_emoji', 'external', or 'file'.\").nullable(),\n emoji: z.string().describe(\"Emoji character (present when type is 'emoji').\").nullable().optional(),\n external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionCreateDatabase__CustomEmojiSchema.nullable().optional(),\n}).passthrough().describe(\"Database icon (emoji or file object).\");\nconst NotionCreateDatabase__CoverSchema = z.object({\n file: NotionCreateDatabase__NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Cover type: 'external' or 'file'.\").nullable(),\n external: NotionCreateDatabase__ExternalFileSchema.nullable().optional(),\n}).passthrough().describe(\"Database cover image (file object).\");\nconst NotionCreateDatabase__LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().describe(\"Link object for rich text.\");\nconst NotionCreateDatabase__TextContentSchema = z.object({\n link: NotionCreateDatabase__LinkSchema.nullable().optional(),\n content: z.string().describe(\"The text content.\").nullable(),\n}).passthrough().describe(\"Text content object for rich text.\");\nconst NotionCreateDatabase__AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text (e.g., 'default', 'blue', 'red', etc.).\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling information for rich text.\");\nconst NotionCreateDatabase__RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or null if no link.\").nullable().optional(),\n text: NotionCreateDatabase__TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text object: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionCreateDatabase__AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object representing formatted text.\");\nconst NotionCreateDatabase__ParentSchema = z.object({\n type: z.string().describe(\"Parent type: 'page_id', 'workspace', or 'block_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (present when type is 'page_id').\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block (present when type is 'block_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Parent location of the database (page, workspace, or block).\");\nconst NotionCreateDatabase__PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough().describe(\"Partial Notion user object for created_by/last_edited_by contexts.\");\nconst NotionCreateDatabase__DataSourceRefSchema = z.object({\n id: z.string().describe(\"Unique identifier for the data source (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).passthrough().describe(\"Minimal data source object embedded in Database responses.\");\nexport const NotionCreateDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: NotionCreateDatabase__IconSchema.nullable().optional(),\n cover: NotionCreateDatabase__CoverSchema.nullable().optional(),\n title: z.array(NotionCreateDatabase__RichTextSchema).describe(\"Array of rich text objects representing the database title/name as it appears in Notion.\"),\n object: z.string().describe(\"Always \\\"database\\\".\").nullable(),\n parent: NotionCreateDatabase__ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database appears inline on the page (true) or as a full page database (false).\").nullable(),\n created_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Schema definition of database properties/columns. Each property is keyed by its name and contains type-specific configuration including id, name, description, type, and a type-specific object with additional settings.\"),\n public_url: z.string().describe(\"Public web URL if the database is published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the API request (used for debugging and support).\").nullable().optional(),\n description: z.array(NotionCreateDatabase__RichTextSchema).describe(\"Array of rich text objects representing the database description.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n data_sources: z.array(NotionCreateDatabase__DataSourceRefSchema).describe(\"List of child data sources in the database (available in API version 2025-09-03+). Each database has one or more data sources.\").nullable().optional(),\n last_edited_by: NotionCreateDatabase__PartialUserSchema.nullable().optional(),\n developer_survey: z.string().describe(\"URL to a feedback survey (may appear in API responses).\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).passthrough().describe(\"Response body returned by POST /v1/databases. Matches Notion Database object.\");\n\nexport const notionCreateDatabase = action(\"NOTION_CREATE_DATABASE\", {\n slug: \"notion-create-database\",\n name: \"Create Notion Database\",\n description: \"Creates a new Notion database as a subpage under a specified parent page with a defined properties schema. IMPORTANT NOTES: - The parent page MUST be shared with your integration, otherwise you'll get a 404 error - If you encounter conflict errors (409), retry the request as Notion may experience temporary save conflicts - For relation properties, you MUST provide the database_id of the related database - Parent ID must be a valid UUID format (with or without hyphens), not a template variable Use this action exclusively for creating new databases.\",\n input: NotionCreateDatabaseInput,\n output: NotionCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC3K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,owBAAowB;CACnyB,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,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H,aAAa,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChO,gBAAgB,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC5E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
@@ -31,7 +31,7 @@ const NotionCreateFileUploadOutput = zod.z.object({
31
31
  created_time: zod.z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
32
32
  content_length: zod.z.string().describe("The total size of the file in bytes. Initially null until the file is actually uploaded.").nullable().optional(),
33
33
  last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
34
- });
34
+ }).passthrough();
35
35
  const notionCreateFileUpload = require_action.action("NOTION_CREATE_FILE_UPLOAD", {
36
36
  slug: "notion-create-file-upload",
37
37
  name: "Create Notion file upload",
@@ -1 +1 @@
1
- {"version":3,"file":"create-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/create-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateFileUploadInput = z.object({\n mode: z.enum([\"single_part\", \"multi_part\", \"external_url\"]).describe(\"Upload mode: 'single_part' for direct upload (default, up to 20 MB), 'multi_part' for chunked uploads (requires paid Notion workspace), or 'external_url' to import from a public URL. Note: Free workspaces are limited to 5 MB files and cannot use multi_part mode.\").optional(),\n filename: z.string().describe(\"Human-readable file name with extension. Required for external_url; for multi_part, supply to infer extension or pair with content_type; optional for single-part. Supported extensions: Audio (.aac, .adts, .mid, .midi, .mp3, .mpga, .m4a, .m4b, .mp4, .oga, .ogg, .wav, .wma); Document (.pdf, .txt, .json, .doc, .dot, .docx, .dotx, .xls, .xlt, .xla, .xlsx, .xltx, .ppt, .pot, .pps, .ppa, .pptx, .potx); Image (.gif, .heic, .jpeg, .jpg, .png, .svg, .tif, .tiff, .webp, .ico); Video (.amv, .asf, .wmv, .avi, .f4v, .flv, .gifv, .m4v, .mp4, .mkv, .webm, .mov, .qt, .mpeg).\").optional(),\n content_type: z.string().describe(\"MIME type of the file. Required in multi_part if filename lacks extension; optional for single-part.\").optional(),\n external_url: z.string().describe(\"Public HTTPS URL to import. Required when mode='external_url'. Must expose Content-Type and Content-Length.\").optional(),\n number_of_parts: z.number().int().describe(\"Total parts for a multi-part upload; required when mode='multi_part'.\").optional(),\n});\nexport const NotionCreateFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload. Required for subsequent upload and attachment operations.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current status of the file upload. Initially set to 'pending' after creation. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived. Set to false initially.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file, provided during the Create a file upload step. Initially null until the file is actually uploaded. Maximum length is 900 bytes including extension.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n upload_url: z.string().describe(\"The endpoint URL where binary file contents should be transmitted in the next step. Only present for pending uploads with status 'pending'.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire. The file must be attached within one hour or it will transition to an archived state.\").nullable(),\n complete_url: z.string().describe(\"URL for completing a multi-part file upload. Only present for pending multi-part uploads (mode=multi_part).\").nullable().optional(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file. Initially null until the file is actually uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.string().describe(\"The total size of the file in bytes. Initially null until the file is actually uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n});\n\nexport const notionCreateFileUpload = action(\"NOTION_CREATE_FILE_UPLOAD\", {\n slug: \"notion-create-file-upload\",\n name: \"Create Notion file upload\",\n description: \"Tool to create a Notion FileUpload object and retrieve an upload URL. Use when you need to automate attaching local or external files directly into Notion without external hosting.\",\n input: NotionCreateFileUploadInput,\n output: NotionCreateFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;CAAc,CAAC,CAAC,CAAC,SAAS,wQAAwQ,CAAC,CAAC,SAAS;CACxV,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ujBAAujB,CAAC,CAAC,SAAS;CAChmB,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC/H,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC5I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACtN,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpO,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACxL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACxL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/G,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/create-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateFileUploadInput = z.object({\n mode: z.enum([\"single_part\", \"multi_part\", \"external_url\"]).describe(\"Upload mode: 'single_part' for direct upload (default, up to 20 MB), 'multi_part' for chunked uploads (requires paid Notion workspace), or 'external_url' to import from a public URL. Note: Free workspaces are limited to 5 MB files and cannot use multi_part mode.\").optional(),\n filename: z.string().describe(\"Human-readable file name with extension. Required for external_url; for multi_part, supply to infer extension or pair with content_type; optional for single-part. Supported extensions: Audio (.aac, .adts, .mid, .midi, .mp3, .mpga, .m4a, .m4b, .mp4, .oga, .ogg, .wav, .wma); Document (.pdf, .txt, .json, .doc, .dot, .docx, .dotx, .xls, .xlt, .xla, .xlsx, .xltx, .ppt, .pot, .pps, .ppa, .pptx, .potx); Image (.gif, .heic, .jpeg, .jpg, .png, .svg, .tif, .tiff, .webp, .ico); Video (.amv, .asf, .wmv, .avi, .f4v, .flv, .gifv, .m4v, .mp4, .mkv, .webm, .mov, .qt, .mpeg).\").optional(),\n content_type: z.string().describe(\"MIME type of the file. Required in multi_part if filename lacks extension; optional for single-part.\").optional(),\n external_url: z.string().describe(\"Public HTTPS URL to import. Required when mode='external_url'. Must expose Content-Type and Content-Length.\").optional(),\n number_of_parts: z.number().int().describe(\"Total parts for a multi-part upload; required when mode='multi_part'.\").optional(),\n});\nexport const NotionCreateFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload. Required for subsequent upload and attachment operations.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current status of the file upload. Initially set to 'pending' after creation. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived. Set to false initially.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file, provided during the Create a file upload step. Initially null until the file is actually uploaded. Maximum length is 900 bytes including extension.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n upload_url: z.string().describe(\"The endpoint URL where binary file contents should be transmitted in the next step. Only present for pending uploads with status 'pending'.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire. The file must be attached within one hour or it will transition to an archived state.\").nullable(),\n complete_url: z.string().describe(\"URL for completing a multi-part file upload. Only present for pending multi-part uploads (mode=multi_part).\").nullable().optional(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file. Initially null until the file is actually uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.string().describe(\"The total size of the file in bytes. Initially null until the file is actually uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionCreateFileUpload = action(\"NOTION_CREATE_FILE_UPLOAD\", {\n slug: \"notion-create-file-upload\",\n name: \"Create Notion file upload\",\n description: \"Tool to create a Notion FileUpload object and retrieve an upload URL. Use when you need to automate attaching local or external files directly into Notion without external hosting.\",\n input: NotionCreateFileUploadInput,\n output: NotionCreateFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;CAAc,CAAC,CAAC,CAAC,SAAS,wQAAwQ,CAAC,CAAC,SAAS;CACxV,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ujBAAujB,CAAC,CAAC,SAAS;CAChmB,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC/H,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,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ACP,QAAQ;AACV,CAAC"}
@@ -31,14 +31,26 @@ declare const NotionCreateFileUploadOutput: z.ZodObject<{
31
31
  created_time: z.ZodNullable<z.ZodString>;
32
32
  content_length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  last_edited_time: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>;
34
+ }, z.core.$loose>;
35
35
  declare const notionCreateFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
36
36
  mode?: "single_part" | "multi_part" | "external_url" | undefined;
37
37
  filename?: string | undefined;
38
38
  content_type?: string | undefined;
39
39
  external_url?: string | undefined;
40
40
  number_of_parts?: number | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ accessToken: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { notionCreateFileUpload };
44
56
  //# sourceMappingURL=create-file-upload.d.cts.map
@@ -31,14 +31,26 @@ declare const NotionCreateFileUploadOutput: z.ZodObject<{
31
31
  created_time: z.ZodNullable<z.ZodString>;
32
32
  content_length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  last_edited_time: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>;
34
+ }, z.core.$loose>;
35
35
  declare const notionCreateFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
36
36
  mode?: "single_part" | "multi_part" | "external_url" | undefined;
37
37
  filename?: string | undefined;
38
38
  content_type?: string | undefined;
39
39
  external_url?: string | undefined;
40
40
  number_of_parts?: number | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ accessToken: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { notionCreateFileUpload };
44
56
  //# sourceMappingURL=create-file-upload.d.mts.map
@@ -34,7 +34,7 @@ const notionCreateFileUpload = action("NOTION_CREATE_FILE_UPLOAD", {
34
34
  created_time: z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
35
35
  content_length: z.string().describe("The total size of the file in bytes. Initially null until the file is actually uploaded.").nullable().optional(),
36
36
  last_edited_time: z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
37
- })
37
+ }).passthrough()
38
38
  });
39
39
  //#endregion
40
40
  export { notionCreateFileUpload };