@keystrokehq/notion 0.1.2 → 0.1.3

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 (266) 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 +18 -16
  5. package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
  6. package/dist/actions/add-multiple-page-content.d.mts +18 -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 +167 -149
  13. package/dist/actions/append-code-blocks.d.mts +167 -149
  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 +151 -141
  19. package/dist/actions/append-layout-blocks.d.mts +151 -141
  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 +217 -174
  25. package/dist/actions/append-media-blocks.d.mts +217 -174
  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 +143 -137
  31. package/dist/actions/append-table-blocks.d.mts +143 -137
  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 +169 -150
  37. package/dist/actions/append-task-blocks.d.mts +169 -150
  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 +203 -167
  43. package/dist/actions/append-text-blocks.d.mts +203 -167
  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 +20 -20
  49. package/dist/actions/archive-notion-page.d.mts +20 -20
  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 +9 -9
  53. package/dist/actions/create-comment.d.mts +9 -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 +26 -25
  57. package/dist/actions/create-database.d.mts +26 -25
  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 +1 -1
  63. package/dist/actions/create-file-upload.d.mts +1 -1
  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 +18 -18
  69. package/dist/actions/create-notion-page.d.mts +18 -18
  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 +338 -338
  75. package/dist/actions/delete-block.d.mts +338 -338
  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 +24 -24
  81. package/dist/actions/duplicate-page.d.mts +24 -24
  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 +4 -4
  87. package/dist/actions/fetch-all-block-contents.d.mts +4 -4
  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 +172 -172
  93. package/dist/actions/fetch-block-contents.d.mts +172 -172
  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 +296 -296
  99. package/dist/actions/fetch-block-metadata.d.mts +296 -296
  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 +33 -33
  105. package/dist/actions/fetch-comments.d.mts +33 -33
  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 +131 -131
  111. package/dist/actions/fetch-data.d.mts +131 -131
  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 +18 -18
  117. package/dist/actions/fetch-database.d.mts +18 -18
  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 +40 -40
  123. package/dist/actions/fetch-row.d.mts +40 -40
  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 +8 -8
  129. package/dist/actions/get-about-user.d.mts +8 -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 +1 -1
  135. package/dist/actions/get-page-markdown.d.mts +1 -1
  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/insert-row-database.cjs +22 -22
  139. package/dist/actions/insert-row-database.cjs.map +1 -1
  140. package/dist/actions/insert-row-database.d.cts +40 -38
  141. package/dist/actions/insert-row-database.d.mts +40 -38
  142. package/dist/actions/insert-row-database.mjs +22 -22
  143. package/dist/actions/insert-row-database.mjs.map +1 -1
  144. package/dist/actions/insert-row-from-nl.cjs +1 -1
  145. package/dist/actions/insert-row-from-nl.cjs.map +1 -1
  146. package/dist/actions/insert-row-from-nl.d.cts +1 -1
  147. package/dist/actions/insert-row-from-nl.d.mts +1 -1
  148. package/dist/actions/insert-row-from-nl.mjs +1 -1
  149. package/dist/actions/insert-row-from-nl.mjs.map +1 -1
  150. package/dist/actions/list-data-source-templates.cjs +2 -2
  151. package/dist/actions/list-data-source-templates.cjs.map +1 -1
  152. package/dist/actions/list-data-source-templates.d.cts +2 -2
  153. package/dist/actions/list-data-source-templates.d.mts +2 -2
  154. package/dist/actions/list-data-source-templates.mjs +2 -2
  155. package/dist/actions/list-data-source-templates.mjs.map +1 -1
  156. package/dist/actions/list-file-uploads.cjs +2 -2
  157. package/dist/actions/list-file-uploads.cjs.map +1 -1
  158. package/dist/actions/list-file-uploads.d.cts +2 -2
  159. package/dist/actions/list-file-uploads.d.mts +2 -2
  160. package/dist/actions/list-file-uploads.mjs +2 -2
  161. package/dist/actions/list-file-uploads.mjs.map +1 -1
  162. package/dist/actions/list-users.cjs +8 -8
  163. package/dist/actions/list-users.cjs.map +1 -1
  164. package/dist/actions/list-users.d.cts +11 -11
  165. package/dist/actions/list-users.d.mts +11 -11
  166. package/dist/actions/list-users.mjs +8 -8
  167. package/dist/actions/list-users.mjs.map +1 -1
  168. package/dist/actions/move-page.cjs +18 -18
  169. package/dist/actions/move-page.cjs.map +1 -1
  170. package/dist/actions/move-page.d.cts +23 -21
  171. package/dist/actions/move-page.d.mts +23 -21
  172. package/dist/actions/move-page.mjs +18 -18
  173. package/dist/actions/move-page.mjs.map +1 -1
  174. package/dist/actions/query-data-source.cjs +18 -18
  175. package/dist/actions/query-data-source.cjs.map +1 -1
  176. package/dist/actions/query-data-source.d.cts +34 -32
  177. package/dist/actions/query-data-source.d.cts.map +1 -1
  178. package/dist/actions/query-data-source.d.mts +34 -32
  179. package/dist/actions/query-data-source.d.mts.map +1 -1
  180. package/dist/actions/query-data-source.mjs +18 -18
  181. package/dist/actions/query-data-source.mjs.map +1 -1
  182. package/dist/actions/query-database-with-filter.cjs +25 -25
  183. package/dist/actions/query-database-with-filter.cjs.map +1 -1
  184. package/dist/actions/query-database-with-filter.d.cts +50 -48
  185. package/dist/actions/query-database-with-filter.d.cts.map +1 -1
  186. package/dist/actions/query-database-with-filter.d.mts +50 -48
  187. package/dist/actions/query-database-with-filter.d.mts.map +1 -1
  188. package/dist/actions/query-database-with-filter.mjs +25 -25
  189. package/dist/actions/query-database-with-filter.mjs.map +1 -1
  190. package/dist/actions/query-database.cjs +24 -24
  191. package/dist/actions/query-database.cjs.map +1 -1
  192. package/dist/actions/query-database.d.cts +49 -48
  193. package/dist/actions/query-database.d.mts +49 -48
  194. package/dist/actions/query-database.mjs +24 -24
  195. package/dist/actions/query-database.mjs.map +1 -1
  196. package/dist/actions/replace-page-content.cjs +130 -130
  197. package/dist/actions/replace-page-content.cjs.map +1 -1
  198. package/dist/actions/replace-page-content.d.cts +261 -131
  199. package/dist/actions/replace-page-content.d.mts +261 -131
  200. package/dist/actions/replace-page-content.mjs +130 -130
  201. package/dist/actions/replace-page-content.mjs.map +1 -1
  202. package/dist/actions/retrieve-database-property.cjs +25 -25
  203. package/dist/actions/retrieve-database-property.cjs.map +1 -1
  204. package/dist/actions/retrieve-database-property.d.cts +28 -28
  205. package/dist/actions/retrieve-database-property.d.mts +28 -28
  206. package/dist/actions/retrieve-database-property.mjs +25 -25
  207. package/dist/actions/retrieve-database-property.mjs.map +1 -1
  208. package/dist/actions/retrieve-file-upload.cjs +1 -1
  209. package/dist/actions/retrieve-file-upload.cjs.map +1 -1
  210. package/dist/actions/retrieve-file-upload.d.cts +1 -1
  211. package/dist/actions/retrieve-file-upload.d.mts +1 -1
  212. package/dist/actions/retrieve-file-upload.mjs +1 -1
  213. package/dist/actions/retrieve-file-upload.mjs.map +1 -1
  214. package/dist/actions/retrieve-page.cjs +23 -23
  215. package/dist/actions/retrieve-page.cjs.map +1 -1
  216. package/dist/actions/retrieve-page.d.cts +38 -38
  217. package/dist/actions/retrieve-page.d.mts +38 -38
  218. package/dist/actions/retrieve-page.mjs +23 -23
  219. package/dist/actions/retrieve-page.mjs.map +1 -1
  220. package/dist/actions/search-notion-page.cjs +34 -34
  221. package/dist/actions/search-notion-page.cjs.map +1 -1
  222. package/dist/actions/search-notion-page.d.cts +157 -157
  223. package/dist/actions/search-notion-page.d.mts +157 -157
  224. package/dist/actions/search-notion-page.mjs +34 -34
  225. package/dist/actions/search-notion-page.mjs.map +1 -1
  226. package/dist/actions/send-file-upload.cjs +1 -1
  227. package/dist/actions/send-file-upload.cjs.map +1 -1
  228. package/dist/actions/send-file-upload.d.cts +1 -1
  229. package/dist/actions/send-file-upload.d.mts +1 -1
  230. package/dist/actions/send-file-upload.mjs +1 -1
  231. package/dist/actions/send-file-upload.mjs.map +1 -1
  232. package/dist/actions/update-block.cjs +47 -47
  233. package/dist/actions/update-block.cjs.map +1 -1
  234. package/dist/actions/update-block.d.cts +141 -141
  235. package/dist/actions/update-block.d.mts +141 -141
  236. package/dist/actions/update-block.mjs +47 -47
  237. package/dist/actions/update-block.mjs.map +1 -1
  238. package/dist/actions/update-page.cjs +16 -16
  239. package/dist/actions/update-page.cjs.map +1 -1
  240. package/dist/actions/update-page.d.cts +23 -23
  241. package/dist/actions/update-page.d.mts +23 -23
  242. package/dist/actions/update-page.mjs +16 -16
  243. package/dist/actions/update-page.mjs.map +1 -1
  244. package/dist/actions/update-row-database.cjs +21 -21
  245. package/dist/actions/update-row-database.cjs.map +1 -1
  246. package/dist/actions/update-row-database.d.cts +29 -28
  247. package/dist/actions/update-row-database.d.mts +29 -28
  248. package/dist/actions/update-row-database.mjs +21 -21
  249. package/dist/actions/update-row-database.mjs.map +1 -1
  250. package/dist/actions/update-schema-database.cjs +8 -8
  251. package/dist/actions/update-schema-database.cjs.map +1 -1
  252. package/dist/actions/update-schema-database.d.cts +12 -11
  253. package/dist/actions/update-schema-database.d.mts +12 -11
  254. package/dist/actions/update-schema-database.mjs +8 -8
  255. package/dist/actions/update-schema-database.mjs.map +1 -1
  256. package/dist/actions/upsert-row-database.cjs +28 -28
  257. package/dist/actions/upsert-row-database.cjs.map +1 -1
  258. package/dist/actions/upsert-row-database.d.cts +54 -30
  259. package/dist/actions/upsert-row-database.d.mts +54 -30
  260. package/dist/actions/upsert-row-database.mjs +28 -28
  261. package/dist/actions/upsert-row-database.mjs.map +1 -1
  262. package/dist/execute.cjs +1 -1
  263. package/dist/execute.cjs.map +1 -1
  264. package/dist/execute.mjs +1 -1
  265. package/dist/execute.mjs.map +1 -1
  266. package/package.json +1 -1
@@ -17,18 +17,18 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
17
17
  parent: z.ZodUnion<readonly [z.ZodObject<{
18
18
  type: z.ZodNullable<z.ZodString>;
19
19
  page_id: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>, z.ZodObject<{
20
+ }, z.core.$loose>, z.ZodObject<{
21
21
  type: z.ZodNullable<z.ZodString>;
22
22
  block_id: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>]>;
23
+ }, z.core.$loose>]>;
24
24
  rich_text: z.ZodArray<z.ZodObject<{
25
25
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
28
  url: z.ZodNullable<z.ZodString>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  content: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
32
  type: z.ZodNullable<z.ZodEnum<{
33
33
  text: "text";
34
34
  equation: "equation";
@@ -38,47 +38,47 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
38
38
  date: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
39
  end: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  start: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>>;
41
+ }, z.core.$loose>>>;
42
42
  page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
43
  id: z.ZodNullable<z.ZodString>;
44
- }, z.core.$strip>>>;
44
+ }, z.core.$loose>>>;
45
45
  type: z.ZodNullable<z.ZodString>;
46
46
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
47
47
  id: z.ZodNullable<z.ZodString>;
48
48
  bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
49
  owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
50
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>>>;
51
+ }, z.core.$loose>>>;
52
52
  workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
55
  max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
- }, z.core.$strip>>>;
57
- }, z.core.$strip>>>;
56
+ }, z.core.$loose>>>;
57
+ }, z.core.$loose>>>;
58
58
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
60
- person: "person";
61
60
  bot: "bot";
61
+ person: "person";
62
62
  }>>>;
63
63
  object: z.ZodNullable<z.ZodString>;
64
64
  person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
65
65
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
- }, z.core.$strip>>>;
66
+ }, z.core.$loose>>>;
67
67
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
- }, z.core.$strip>>>;
68
+ }, z.core.$loose>>>;
69
69
  database: z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
70
  id: z.ZodNullable<z.ZodString>;
71
- }, z.core.$strip>>>;
71
+ }, z.core.$loose>>>;
72
72
  link_preview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
73
  url: z.ZodNullable<z.ZodString>;
74
- }, z.core.$strip>>>;
74
+ }, z.core.$loose>>>;
75
75
  template_mention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
76
  type: z.ZodNullable<z.ZodString>;
77
- }, z.core.$strip>>>;
78
- }, z.core.$strip>>>;
77
+ }, z.core.$loose>>>;
78
+ }, z.core.$loose>>>;
79
79
  equation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
80
  expression: z.ZodNullable<z.ZodString>;
81
- }, z.core.$strip>>>;
81
+ }, z.core.$loose>>>;
82
82
  plain_text: z.ZodNullable<z.ZodString>;
83
83
  annotations: z.ZodNullable<z.ZodObject<{
84
84
  bold: z.ZodNullable<z.ZodBoolean>;
@@ -87,44 +87,44 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
87
87
  italic: z.ZodNullable<z.ZodBoolean>;
88
88
  underline: z.ZodNullable<z.ZodBoolean>;
89
89
  strikethrough: z.ZodNullable<z.ZodBoolean>;
90
- }, z.core.$strip>>;
91
- }, z.core.$strip>>;
90
+ }, z.core.$loose>>;
91
+ }, z.core.$loose>>;
92
92
  created_by: z.ZodNullable<z.ZodObject<{
93
93
  id: z.ZodNullable<z.ZodString>;
94
94
  bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
95
95
  owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
96
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
- }, z.core.$strip>>>;
97
+ }, z.core.$loose>>>;
98
98
  workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
99
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
100
  workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
101
101
  max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
- }, z.core.$strip>>>;
103
- }, z.core.$strip>>>;
102
+ }, z.core.$loose>>>;
103
+ }, z.core.$loose>>>;
104
104
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
105
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
106
- person: "person";
107
106
  bot: "bot";
107
+ person: "person";
108
108
  }>>>;
109
109
  object: z.ZodNullable<z.ZodString>;
110
110
  person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
111
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
- }, z.core.$strip>>>;
112
+ }, z.core.$loose>>>;
113
113
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
- }, z.core.$strip>>;
114
+ }, z.core.$loose>>;
115
115
  attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
116
116
  file: z.ZodNullable<z.ZodObject<{
117
117
  url: z.ZodNullable<z.ZodString>;
118
118
  expiry_time: z.ZodNullable<z.ZodString>;
119
- }, z.core.$strip>>;
119
+ }, z.core.$loose>>;
120
120
  category: z.ZodNullable<z.ZodEnum<{
121
- pdf: "pdf";
122
- audio: "audio";
123
121
  image: "image";
124
122
  video: "video";
123
+ pdf: "pdf";
124
+ audio: "audio";
125
125
  productivity: "productivity";
126
126
  }>>;
127
- }, z.core.$strip>>>>;
127
+ }, z.core.$loose>>>>;
128
128
  created_time: z.ZodNullable<z.ZodString>;
129
129
  display_name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
130
  type: z.ZodNullable<z.ZodEnum<{
@@ -133,16 +133,16 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
133
133
  integration: "integration";
134
134
  }>>;
135
135
  resolved_name: z.ZodNullable<z.ZodString>;
136
- }, z.core.$strip>>>;
136
+ }, z.core.$loose>>>;
137
137
  discussion_id: z.ZodNullable<z.ZodString>;
138
138
  last_edited_time: z.ZodNullable<z.ZodString>;
139
- }, z.core.$strip>, z.ZodObject<{
139
+ }, z.core.$loose>, z.ZodObject<{
140
140
  id: z.ZodNullable<z.ZodString>;
141
141
  object: z.ZodNullable<z.ZodString>;
142
- }, z.core.$strip>]>>;
142
+ }, z.core.$loose>]>>;
143
143
  has_more: z.ZodNullable<z.ZodBoolean>;
144
144
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
- }, z.core.$strip>;
145
+ }, z.core.$loose>;
146
146
  declare const notionFetchComments: import("@keystrokehq/action").WorkflowActionDefinition<{
147
147
  page_id?: string | undefined;
148
148
  block_id?: string | undefined;
@@ -17,18 +17,18 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
17
17
  parent: z.ZodUnion<readonly [z.ZodObject<{
18
18
  type: z.ZodNullable<z.ZodString>;
19
19
  page_id: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>, z.ZodObject<{
20
+ }, z.core.$loose>, z.ZodObject<{
21
21
  type: z.ZodNullable<z.ZodString>;
22
22
  block_id: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>]>;
23
+ }, z.core.$loose>]>;
24
24
  rich_text: z.ZodArray<z.ZodObject<{
25
25
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
28
  url: z.ZodNullable<z.ZodString>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  content: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
32
  type: z.ZodNullable<z.ZodEnum<{
33
33
  text: "text";
34
34
  equation: "equation";
@@ -38,47 +38,47 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
38
38
  date: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
39
  end: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  start: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>>;
41
+ }, z.core.$loose>>>;
42
42
  page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
43
  id: z.ZodNullable<z.ZodString>;
44
- }, z.core.$strip>>>;
44
+ }, z.core.$loose>>>;
45
45
  type: z.ZodNullable<z.ZodString>;
46
46
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
47
47
  id: z.ZodNullable<z.ZodString>;
48
48
  bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
49
  owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
50
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>>>;
51
+ }, z.core.$loose>>>;
52
52
  workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
55
  max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
- }, z.core.$strip>>>;
57
- }, z.core.$strip>>>;
56
+ }, z.core.$loose>>>;
57
+ }, z.core.$loose>>>;
58
58
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
60
- person: "person";
61
60
  bot: "bot";
61
+ person: "person";
62
62
  }>>>;
63
63
  object: z.ZodNullable<z.ZodString>;
64
64
  person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
65
65
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
- }, z.core.$strip>>>;
66
+ }, z.core.$loose>>>;
67
67
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
- }, z.core.$strip>>>;
68
+ }, z.core.$loose>>>;
69
69
  database: z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
70
  id: z.ZodNullable<z.ZodString>;
71
- }, z.core.$strip>>>;
71
+ }, z.core.$loose>>>;
72
72
  link_preview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
73
  url: z.ZodNullable<z.ZodString>;
74
- }, z.core.$strip>>>;
74
+ }, z.core.$loose>>>;
75
75
  template_mention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
76
  type: z.ZodNullable<z.ZodString>;
77
- }, z.core.$strip>>>;
78
- }, z.core.$strip>>>;
77
+ }, z.core.$loose>>>;
78
+ }, z.core.$loose>>>;
79
79
  equation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
80
  expression: z.ZodNullable<z.ZodString>;
81
- }, z.core.$strip>>>;
81
+ }, z.core.$loose>>>;
82
82
  plain_text: z.ZodNullable<z.ZodString>;
83
83
  annotations: z.ZodNullable<z.ZodObject<{
84
84
  bold: z.ZodNullable<z.ZodBoolean>;
@@ -87,44 +87,44 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
87
87
  italic: z.ZodNullable<z.ZodBoolean>;
88
88
  underline: z.ZodNullable<z.ZodBoolean>;
89
89
  strikethrough: z.ZodNullable<z.ZodBoolean>;
90
- }, z.core.$strip>>;
91
- }, z.core.$strip>>;
90
+ }, z.core.$loose>>;
91
+ }, z.core.$loose>>;
92
92
  created_by: z.ZodNullable<z.ZodObject<{
93
93
  id: z.ZodNullable<z.ZodString>;
94
94
  bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
95
95
  owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
96
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
- }, z.core.$strip>>>;
97
+ }, z.core.$loose>>>;
98
98
  workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
99
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
100
  workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
101
101
  max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
- }, z.core.$strip>>>;
103
- }, z.core.$strip>>>;
102
+ }, z.core.$loose>>>;
103
+ }, z.core.$loose>>>;
104
104
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
105
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
106
- person: "person";
107
106
  bot: "bot";
107
+ person: "person";
108
108
  }>>>;
109
109
  object: z.ZodNullable<z.ZodString>;
110
110
  person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
111
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
- }, z.core.$strip>>>;
112
+ }, z.core.$loose>>>;
113
113
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
- }, z.core.$strip>>;
114
+ }, z.core.$loose>>;
115
115
  attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
116
116
  file: z.ZodNullable<z.ZodObject<{
117
117
  url: z.ZodNullable<z.ZodString>;
118
118
  expiry_time: z.ZodNullable<z.ZodString>;
119
- }, z.core.$strip>>;
119
+ }, z.core.$loose>>;
120
120
  category: z.ZodNullable<z.ZodEnum<{
121
- pdf: "pdf";
122
- audio: "audio";
123
121
  image: "image";
124
122
  video: "video";
123
+ pdf: "pdf";
124
+ audio: "audio";
125
125
  productivity: "productivity";
126
126
  }>>;
127
- }, z.core.$strip>>>>;
127
+ }, z.core.$loose>>>>;
128
128
  created_time: z.ZodNullable<z.ZodString>;
129
129
  display_name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
130
  type: z.ZodNullable<z.ZodEnum<{
@@ -133,16 +133,16 @@ declare const NotionFetchCommentsOutput: z.ZodObject<{
133
133
  integration: "integration";
134
134
  }>>;
135
135
  resolved_name: z.ZodNullable<z.ZodString>;
136
- }, z.core.$strip>>>;
136
+ }, z.core.$loose>>>;
137
137
  discussion_id: z.ZodNullable<z.ZodString>;
138
138
  last_edited_time: z.ZodNullable<z.ZodString>;
139
- }, z.core.$strip>, z.ZodObject<{
139
+ }, z.core.$loose>, z.ZodObject<{
140
140
  id: z.ZodNullable<z.ZodString>;
141
141
  object: z.ZodNullable<z.ZodString>;
142
- }, z.core.$strip>]>>;
142
+ }, z.core.$loose>]>>;
143
143
  has_more: z.ZodNullable<z.ZodBoolean>;
144
144
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
- }, z.core.$strip>;
145
+ }, z.core.$loose>;
146
146
  declare const notionFetchComments: import("@keystrokehq/action").WorkflowActionDefinition<{
147
147
  page_id?: string | undefined;
148
148
  block_id?: string | undefined;
@@ -10,30 +10,30 @@ const NotionFetchCommentsInput = z.object({
10
10
  const NotionFetchComments_CommentParentPageSchema = z.object({
11
11
  type: z.string().describe("Type of parent, set to 'page_id' for page parents.").nullable(),
12
12
  page_id: z.string().describe("UUID of the parent page.").nullable()
13
- });
13
+ }).passthrough();
14
14
  const NotionFetchComments_CommentParentBlockSchema = z.object({
15
15
  type: z.string().describe("Type of parent, set to 'block_id' for block parents.").nullable(),
16
16
  block_id: z.string().describe("UUID of the parent block.").nullable()
17
- });
18
- const NotionFetchComments_LinkObjectSchema = z.object({ url: z.string().describe("The URL of the link.").nullable() });
17
+ }).passthrough();
18
+ const NotionFetchComments_LinkObjectSchema = z.object({ url: z.string().describe("The URL of the link.").nullable() }).passthrough();
19
19
  const NotionFetchComments_TextObjectSchema = z.object({
20
20
  link: NotionFetchComments_LinkObjectSchema.nullable().optional(),
21
21
  content: z.string().describe("The actual text content.").nullable()
22
- });
22
+ }).passthrough();
23
23
  const NotionFetchComments_MentionDateObjectSchema = z.object({
24
24
  end: z.string().describe("End date/time.").nullable().optional(),
25
25
  start: z.string().describe("Start date/time.").nullable()
26
- });
27
- const NotionFetchComments_MentionPageObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() });
28
- const NotionFetchComments_BotOwnerObjectSchema = z.object({ type: z.string().describe("Either 'workspace' or 'user'.").nullable().optional() });
29
- const NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum upload size in bytes.").nullable().optional() });
26
+ }).passthrough();
27
+ const NotionFetchComments_MentionPageObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).passthrough();
28
+ const NotionFetchComments_BotOwnerObjectSchema = z.object({ type: z.string().describe("Either 'workspace' or 'user'.").nullable().optional() }).passthrough();
29
+ const NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum upload size in bytes.").nullable().optional() }).passthrough();
30
30
  const NotionFetchComments_BotObjectSchema = z.object({
31
31
  owner: NotionFetchComments_BotOwnerObjectSchema.nullable().optional(),
32
32
  workspace_id: z.string().describe("Workspace identifier.").nullable().optional(),
33
33
  workspace_name: z.string().describe("Workspace name (null if owner is user).").nullable().optional(),
34
34
  workspace_limits: NotionFetchComments_WorkspaceLimitsObjectSchema.nullable().optional()
35
- });
36
- const NotionFetchComments_PersonObjectSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability access).").nullable().optional() });
35
+ }).passthrough();
36
+ const NotionFetchComments_PersonObjectSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability access).").nullable().optional() }).passthrough();
37
37
  const NotionFetchComments_PartialUserSchema = z.object({
38
38
  id: z.string().describe("Unique identifier for the user (UUID format).").nullable(),
39
39
  bot: NotionFetchComments_BotObjectSchema.nullable().optional(),
@@ -42,10 +42,10 @@ const NotionFetchComments_PartialUserSchema = z.object({
42
42
  object: z.string().describe("Always 'user'.").nullable(),
43
43
  person: NotionFetchComments_PersonObjectSchema.nullable().optional(),
44
44
  avatar_url: z.string().describe("URL to the user's avatar image.").nullable().optional()
45
- });
46
- const NotionFetchComments_MentionDatabaseObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() });
47
- const NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({ url: z.string().describe("URL of the link preview.").nullable() });
48
- const NotionFetchComments_TemplateMentionObjectSchema = z.object({ type: z.string().describe("Template mention subtype: 'template_mention_date' or 'template_mention_user'.").nullable() });
45
+ }).passthrough();
46
+ const NotionFetchComments_MentionDatabaseObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).passthrough();
47
+ const NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({ url: z.string().describe("URL of the link preview.").nullable() }).passthrough();
48
+ const NotionFetchComments_TemplateMentionObjectSchema = z.object({ type: z.string().describe("Template mention subtype: 'template_mention_date' or 'template_mention_user'.").nullable() }).passthrough();
49
49
  const NotionFetchComments_MentionObjectSchema = z.object({
50
50
  date: NotionFetchComments_MentionDateObjectSchema.nullable().optional(),
51
51
  page: NotionFetchComments_MentionPageObjectSchema.nullable().optional(),
@@ -54,8 +54,8 @@ const NotionFetchComments_MentionObjectSchema = z.object({
54
54
  database: NotionFetchComments_MentionDatabaseObjectSchema.nullable().optional(),
55
55
  link_preview: NotionFetchComments_MentionLinkPreviewObjectSchema.nullable().optional(),
56
56
  template_mention: NotionFetchComments_TemplateMentionObjectSchema.nullable().optional()
57
- });
58
- const NotionFetchComments_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX string representing the inline equation.").nullable() });
57
+ }).passthrough();
58
+ const NotionFetchComments_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX string representing the inline equation.").nullable() }).passthrough();
59
59
  const NotionFetchComments_AnnotationsSchema = z.object({
60
60
  bold: z.boolean().describe("Whether the text is bold.").nullable(),
61
61
  code: z.boolean().describe("Whether the text is formatted as code.").nullable(),
@@ -63,7 +63,7 @@ const NotionFetchComments_AnnotationsSchema = z.object({
63
63
  italic: z.boolean().describe("Whether the text is italic.").nullable(),
64
64
  underline: z.boolean().describe("Whether the text is underlined.").nullable(),
65
65
  strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
66
- });
66
+ }).passthrough();
67
67
  const NotionFetchComments_RichTextSchema = z.object({
68
68
  href: z.string().describe("URL for links or Notion mentions (null if not applicable).").nullable().optional(),
69
69
  text: NotionFetchComments_TextObjectSchema.nullable().optional(),
@@ -76,11 +76,11 @@ const NotionFetchComments_RichTextSchema = z.object({
76
76
  equation: NotionFetchComments_EquationObjectSchema.nullable().optional(),
77
77
  plain_text: z.string().describe("Unformatted text content without styling.").nullable(),
78
78
  annotations: NotionFetchComments_AnnotationsSchema.nullable()
79
- });
79
+ }).passthrough();
80
80
  const NotionFetchComments_CommentAttachmentFileSchema = z.object({
81
81
  url: z.string().describe("Temporary download link generated at the time of retrieving the comment.").nullable(),
82
82
  expiry_time: z.string().describe("ISO 8601 timestamp indicating when the URL expires.").nullable()
83
- });
83
+ }).passthrough();
84
84
  const NotionFetchComments_CommentAttachmentSchema = z.object({
85
85
  file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),
86
86
  category: z.enum([
@@ -90,7 +90,7 @@ const NotionFetchComments_CommentAttachmentSchema = z.object({
90
90
  "productivity",
91
91
  "video"
92
92
  ]).describe("File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.").nullable()
93
- });
93
+ }).passthrough();
94
94
  const NotionFetchComments_CommentDisplayNameSchema = z.object({
95
95
  type: z.enum([
96
96
  "integration",
@@ -98,7 +98,7 @@ const NotionFetchComments_CommentDisplayNameSchema = z.object({
98
98
  "custom"
99
99
  ]).describe("Display name source type: 'custom', 'integration', or 'user'.").nullable(),
100
100
  resolved_name: z.string().describe("The actual display name text shown in the comment interface.").nullable()
101
- });
101
+ }).passthrough();
102
102
  const NotionFetchComments_CommentFullSchema = z.object({
103
103
  id: z.string().describe("Unique identifier for the comment (UUIDv4 format).").nullable(),
104
104
  object: z.string().describe("Always 'comment'.").nullable(),
@@ -110,11 +110,11 @@ const NotionFetchComments_CommentFullSchema = z.object({
110
110
  display_name: NotionFetchComments_CommentDisplayNameSchema.nullable().optional(),
111
111
  discussion_id: z.string().describe("Thread identifier associating related comments (UUIDv4 format).").nullable(),
112
112
  last_edited_time: z.string().describe("ISO 8601 timestamp of the most recent update to the comment.").nullable()
113
- });
113
+ }).passthrough();
114
114
  const NotionFetchComments_CommentPartialSchema = z.object({
115
115
  id: z.string().nullable(),
116
116
  object: z.string().nullable()
117
- });
117
+ }).passthrough();
118
118
  const notionFetchComments = action("NOTION_FETCH_COMMENTS", {
119
119
  slug: "notion-fetch-comments",
120
120
  name: "Fetch comments",
@@ -127,7 +127,7 @@ const notionFetchComments = action("NOTION_FETCH_COMMENTS", {
127
127
  results: z.array(z.union([NotionFetchComments_CommentFullSchema, NotionFetchComments_CommentPartialSchema])).describe("Array of comment objects retrieved from the page or block."),
128
128
  has_more: z.boolean().describe("Boolean indicating whether there are more results available beyond this page.").nullable(),
129
129
  next_cursor: z.string().describe("Cursor for pagination to retrieve the next page of results (only present when has_more is true).").nullable().optional()
130
- }).describe("Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\n\nMatches Notion API GET /v1/comments response:\n- object: always 'list'\n- results: array of Comment objects (ascending chronological order)\n- next_cursor: string or null\n- has_more: boolean\n- type: optional, 'comment' when present\n- comment: optional, empty object when present (type-specific pagination info)")
130
+ }).passthrough().describe("Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\n\nMatches Notion API GET /v1/comments response:\n- object: always 'list'\n- results: array of Comment objects (ascending chronological order)\n- next_cursor: string or null\n- has_more: boolean\n- type: optional, 'comment' when present\n- comment: optional, empty object when present (type-specific pagination info)")
131
131
  });
132
132
  //#endregion
133
133
  export { notionFetchComments };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-comments.mjs","names":[],"sources":["../../src/actions/fetch-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchCommentsInput = z.object({\n page_id: z.string().describe(\"Identifier for a Notion page from which to fetch comments. This is an alias for block_id since pages are blocks in Notion. Provide either page_id or block_id, but not both. IMPORTANT: The page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_SEARCH_NOTION_PAGE` action.\").optional(),\n block_id: z.string().describe(\"Identifier for a Notion block from which to fetch comments. In Notion, pages are technically blocks, so you can pass a page ID here as well. Provide either block_id or page_id, but not both. IMPORTANT: The block/page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_FETCH_DATA` action.\").optional(),\n page_size: z.number().int().default(100).describe(\"The number of comments to return in a single response page. Must be between 1 and 100, inclusive. Default is 100.\").optional(),\n start_cursor: z.string().describe(\"A pagination cursor. If provided, the response will contain the page of results starting after this cursor. If omitted, the first page of results is returned.\").optional(),\n});\nconst NotionFetchComments_CommentParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent, set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n});\nconst NotionFetchComments_CommentParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent, set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n});\nconst NotionFetchComments_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL of the link.\").nullable(),\n});\nconst NotionFetchComments_TextObjectSchema = z.object({\n link: NotionFetchComments_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n});\nconst NotionFetchComments_MentionDateObjectSchema = z.object({\n end: z.string().describe(\"End date/time.\").nullable().optional(),\n start: z.string().describe(\"Start date/time.\").nullable(),\n});\nconst NotionFetchComments_MentionPageObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n});\nconst NotionFetchComments_BotOwnerObjectSchema = z.object({\n type: z.string().describe(\"Either 'workspace' or 'user'.\").nullable().optional(),\n});\nconst NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum upload size in bytes.\").nullable().optional(),\n});\nconst NotionFetchComments_BotObjectSchema = z.object({\n owner: NotionFetchComments_BotOwnerObjectSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Workspace identifier.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionFetchComments_WorkspaceLimitsObjectSchema.nullable().optional(),\n});\nconst NotionFetchComments_PersonObjectSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability access).\").nullable().optional(),\n});\nconst NotionFetchComments_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n bot: NotionFetchComments_BotObjectSchema.nullable().optional(),\n name: z.string().describe(\"User's display name in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionFetchComments_PersonObjectSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n});\nconst NotionFetchComments_MentionDatabaseObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n});\nconst NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n});\nconst NotionFetchComments_TemplateMentionObjectSchema = z.object({\n type: z.string().describe(\"Template mention subtype: 'template_mention_date' or 'template_mention_user'.\").nullable(),\n});\nconst NotionFetchComments_MentionObjectSchema = z.object({\n date: NotionFetchComments_MentionDateObjectSchema.nullable().optional(),\n page: NotionFetchComments_MentionPageObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionFetchComments_PartialUserSchema.nullable().optional(),\n database: NotionFetchComments_MentionDatabaseObjectSchema.nullable().optional(),\n link_preview: NotionFetchComments_MentionLinkPreviewObjectSchema.nullable().optional(),\n template_mention: NotionFetchComments_TemplateMentionObjectSchema.nullable().optional(),\n});\nconst NotionFetchComments_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX string representing the inline equation.\").nullable(),\n});\nconst NotionFetchComments_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(\"Text or background color (e.g., 'blue', 'green_background', 'default').\").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});\nconst NotionFetchComments_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions (null if not applicable).\").nullable().optional(),\n text: NotionFetchComments_TextObjectSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionFetchComments_MentionObjectSchema.nullable().optional(),\n equation: NotionFetchComments_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted text content without styling.\").nullable(),\n annotations: NotionFetchComments_AnnotationsSchema.nullable(),\n});\nconst NotionFetchComments_CommentAttachmentFileSchema = z.object({\n url: z.string().describe(\"Temporary download link generated at the time of retrieving the comment.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when the URL expires.\").nullable(),\n});\nconst NotionFetchComments_CommentAttachmentSchema = z.object({\n file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),\n category: z.enum([\"audio\", \"image\", \"pdf\", \"productivity\", \"video\"]).describe(\"File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.\").nullable(),\n});\nconst NotionFetchComments_CommentDisplayNameSchema = z.object({\n type: z.enum([\"integration\", \"user\", \"custom\"]).describe(\"Display name source type: 'custom', 'integration', or 'user'.\").nullable(),\n resolved_name: z.string().describe(\"The actual display name text shown in the comment interface.\").nullable(),\n});\nconst NotionFetchComments_CommentFullSchema = z.object({\n id: z.string().describe(\"Unique identifier for the comment (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always 'comment'.\").nullable(),\n parent: z.union([NotionFetchComments_CommentParentPageSchema, NotionFetchComments_CommentParentBlockSchema]),\n rich_text: z.array(NotionFetchComments_RichTextSchema).describe(\"Array of rich text objects representing the comment content with formatting, links, and mentions.\"),\n created_by: NotionFetchComments_PartialUserSchema.nullable(),\n attachments: z.array(NotionFetchComments_CommentAttachmentSchema).describe(\"Array of file attachments (up to 3 attachments per comment).\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the comment was created.\").nullable(),\n display_name: NotionFetchComments_CommentDisplayNameSchema.nullable().optional(),\n discussion_id: z.string().describe(\"Thread identifier associating related comments (UUIDv4 format).\").nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent update to the comment.\").nullable(),\n});\nconst NotionFetchComments_CommentPartialSchema = z.object({\n id: z.string().nullable(),\n object: z.string().nullable(),\n});\nexport const NotionFetchCommentsOutput = z.object({\n type: z.string().describe(\"Type of objects in results array, always 'comment' for this endpoint.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated endpoints.\").nullable(),\n comment: z.record(z.string(), z.unknown()).describe(\"Empty object present in the response (legacy field).\").nullable().optional(),\n results: z.array(z.union([NotionFetchComments_CommentFullSchema, NotionFetchComments_CommentPartialSchema])).describe(\"Array of comment objects retrieved from the page or block.\"),\n has_more: z.boolean().describe(\"Boolean indicating whether there are more results available beyond this page.\").nullable(),\n next_cursor: z.string().describe(\"Cursor for pagination to retrieve the next page of results (only present when has_more is true).\").nullable().optional(),\n}).describe(\"Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\\n\\nMatches Notion API GET /v1/comments response:\\n- object: always 'list'\\n- results: array of Comment objects (ascending chronological order)\\n- next_cursor: string or null\\n- has_more: boolean\\n- type: optional, 'comment' when present\\n- comment: optional, empty object when present (type-specific pagination info)\");\n\nexport const notionFetchComments = action(\"NOTION_FETCH_COMMENTS\", {\n slug: \"notion-fetch-comments\",\n name: \"Fetch comments\",\n description: \"Fetches unresolved comments for a specified Notion block or page ID. The block/page must be shared with your Notion integration and the integration must have 'Read comments' capability enabled, otherwise a 404 error will be returned.\",\n input: NotionFetchCommentsInput,\n output: NotionFetchCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sVA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AAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,SAAS,0aAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-comments.mjs","names":[],"sources":["../../src/actions/fetch-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchCommentsInput = z.object({\n page_id: z.string().describe(\"Identifier for a Notion page from which to fetch comments. This is an alias for block_id since pages are blocks in Notion. Provide either page_id or block_id, but not both. IMPORTANT: The page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_SEARCH_NOTION_PAGE` action.\").optional(),\n block_id: z.string().describe(\"Identifier for a Notion block from which to fetch comments. In Notion, pages are technically blocks, so you can pass a page ID here as well. Provide either block_id or page_id, but not both. IMPORTANT: The block/page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_FETCH_DATA` action.\").optional(),\n page_size: z.number().int().default(100).describe(\"The number of comments to return in a single response page. Must be between 1 and 100, inclusive. Default is 100.\").optional(),\n start_cursor: z.string().describe(\"A pagination cursor. If provided, the response will contain the page of results starting after this cursor. If omitted, the first page of results is returned.\").optional(),\n});\nconst NotionFetchComments_CommentParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent, set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent, set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL of the link.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_TextObjectSchema = z.object({\n link: NotionFetchComments_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionDateObjectSchema = z.object({\n end: z.string().describe(\"End date/time.\").nullable().optional(),\n start: z.string().describe(\"Start date/time.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionPageObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_BotOwnerObjectSchema = z.object({\n type: z.string().describe(\"Either 'workspace' or 'user'.\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_BotObjectSchema = z.object({\n owner: NotionFetchComments_BotOwnerObjectSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Workspace identifier.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionFetchComments_WorkspaceLimitsObjectSchema.nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_PersonObjectSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability access).\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n bot: NotionFetchComments_BotObjectSchema.nullable().optional(),\n name: z.string().describe(\"User's display name in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionFetchComments_PersonObjectSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_MentionDatabaseObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_TemplateMentionObjectSchema = z.object({\n type: z.string().describe(\"Template mention subtype: 'template_mention_date' or 'template_mention_user'.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionObjectSchema = z.object({\n date: NotionFetchComments_MentionDateObjectSchema.nullable().optional(),\n page: NotionFetchComments_MentionPageObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionFetchComments_PartialUserSchema.nullable().optional(),\n database: NotionFetchComments_MentionDatabaseObjectSchema.nullable().optional(),\n link_preview: NotionFetchComments_MentionLinkPreviewObjectSchema.nullable().optional(),\n template_mention: NotionFetchComments_TemplateMentionObjectSchema.nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX string representing the inline equation.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_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(\"Text or background color (e.g., 'blue', 'green_background', 'default').\").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();\nconst NotionFetchComments_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions (null if not applicable).\").nullable().optional(),\n text: NotionFetchComments_TextObjectSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionFetchComments_MentionObjectSchema.nullable().optional(),\n equation: NotionFetchComments_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted text content without styling.\").nullable(),\n annotations: NotionFetchComments_AnnotationsSchema.nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentAttachmentFileSchema = z.object({\n url: z.string().describe(\"Temporary download link generated at the time of retrieving the comment.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentAttachmentSchema = z.object({\n file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),\n category: z.enum([\"audio\", \"image\", \"pdf\", \"productivity\", \"video\"]).describe(\"File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentDisplayNameSchema = z.object({\n type: z.enum([\"integration\", \"user\", \"custom\"]).describe(\"Display name source type: 'custom', 'integration', or 'user'.\").nullable(),\n resolved_name: z.string().describe(\"The actual display name text shown in the comment interface.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentFullSchema = z.object({\n id: z.string().describe(\"Unique identifier for the comment (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always 'comment'.\").nullable(),\n parent: z.union([NotionFetchComments_CommentParentPageSchema, NotionFetchComments_CommentParentBlockSchema]),\n rich_text: z.array(NotionFetchComments_RichTextSchema).describe(\"Array of rich text objects representing the comment content with formatting, links, and mentions.\"),\n created_by: NotionFetchComments_PartialUserSchema.nullable(),\n attachments: z.array(NotionFetchComments_CommentAttachmentSchema).describe(\"Array of file attachments (up to 3 attachments per comment).\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the comment was created.\").nullable(),\n display_name: NotionFetchComments_CommentDisplayNameSchema.nullable().optional(),\n discussion_id: z.string().describe(\"Thread identifier associating related comments (UUIDv4 format).\").nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent update to the comment.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentPartialSchema = z.object({\n id: z.string().nullable(),\n object: z.string().nullable(),\n}).passthrough();\nexport const NotionFetchCommentsOutput = z.object({\n type: z.string().describe(\"Type of objects in results array, always 'comment' for this endpoint.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated endpoints.\").nullable(),\n comment: z.record(z.string(), z.unknown()).describe(\"Empty object present in the response (legacy field).\").nullable().optional(),\n results: z.array(z.union([NotionFetchComments_CommentFullSchema, NotionFetchComments_CommentPartialSchema])).describe(\"Array of comment objects retrieved from the page or block.\"),\n has_more: z.boolean().describe(\"Boolean indicating whether there are more results available beyond this page.\").nullable(),\n next_cursor: z.string().describe(\"Cursor for pagination to retrieve the next page of results (only present when has_more is true).\").nullable().optional(),\n}).passthrough().describe(\"Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\\n\\nMatches Notion API GET /v1/comments response:\\n- object: always 'list'\\n- results: array of Comment objects (ascending chronological order)\\n- next_cursor: string or null\\n- has_more: boolean\\n- type: optional, 'comment' when present\\n- comment: optional, empty object when present (type-specific pagination info)\");\n\nexport const notionFetchComments = action(\"NOTION_FETCH_COMMENTS\", {\n slug: \"notion-fetch-comments\",\n name: \"Fetch comments\",\n description: \"Fetches unresolved comments for a specified Notion block or page ID. The block/page must be shared with your Notion integration and the integration must have 'Read comments' capability enabled, otherwise a 404 error will be returned.\",\n input: NotionFetchCommentsInput,\n output: NotionFetchCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sVAAsV,CAAC,CAAC,SAAS;CAC9X,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sWAAsW,CAAC,CAAC,SAAS;CAC/Y,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAChL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;AAC/M,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oD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