@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
@@ -13,18 +13,18 @@ const NotionFetchDataInput = z.object({
13
13
  original_page_size: z.number().int().describe("The original page size value before it was capped.").optional(),
14
14
  page_size_was_capped: z.boolean().default(false).describe("Indicates whether the page size was capped to the maximum allowed value.").optional()
15
15
  }).describe("Defines the parameters for fetching data (pages and/or databases) from Notion.\nUse the `fetch_type` parameter to specify what type of data to retrieve.");
16
- const NotionFetchData_PagePaginationInfoSchema = z.object({}).describe("Type-specific pagination info for 'page' type responses. Typically an empty object.");
16
+ const NotionFetchData_PagePaginationInfoSchema = z.record(z.string(), z.unknown()).describe("Type-specific pagination info for 'page' type responses. Typically an empty object.");
17
17
  const NotionFetchData_SimplifiedResourceSchema = z.object({
18
18
  id: z.string().describe("Unique identifier (UUID) of the resource.").nullable(),
19
19
  type: z.string().describe("Type of the resource: 'page', 'database', or 'data_source'.").nullable(),
20
20
  title: z.string().describe("Title or name of the resource.").nullable()
21
- }).describe("Simplified representation of a Notion resource with id, title, and type.");
21
+ }).passthrough().describe("Simplified representation of a Notion resource with id, title, and type.");
22
22
  const NotionFetchData_FileFileSchema = z.object({
23
23
  url: z.string().describe("Signed URL of the Notion-hosted file.").nullable(),
24
24
  expiry_time: z.string().describe("ISO 8601 timestamp when the signed URL expires.").nullable()
25
- }).describe("Notion-hosted file with expiring URL.");
26
- const NotionFetchData_ExternalFileSchema = z.object({ url: z.string().describe("External URL of the file.").nullable() }).describe("External file reference.");
27
- const NotionFetchData_FileUploadSchema = z.object({ id: z.string().describe("File upload identifier.").nullable() }).describe("File upload reference.");
25
+ }).passthrough().describe("Notion-hosted file with expiring URL.");
26
+ const NotionFetchData_ExternalFileSchema = z.object({ url: z.string().describe("External URL of the file.").nullable() }).passthrough().describe("External file reference.");
27
+ const NotionFetchData_FileUploadSchema = z.object({ id: z.string().describe("File upload identifier.").nullable() }).passthrough().describe("File upload reference.");
28
28
  const NotionFetchData_FileObjectSchema = z.object({
29
29
  file: NotionFetchData_FileFileSchema.nullable().optional(),
30
30
  name: z.string().describe("Optional file name.").nullable().optional(),
@@ -35,20 +35,20 @@ const NotionFetchData_FileObjectSchema = z.object({
35
35
  ]).describe("Type of file: 'file', 'file_upload', or 'external'.").nullable(),
36
36
  external: NotionFetchData_ExternalFileSchema.nullable().optional(),
37
37
  file_upload: NotionFetchData_FileUploadSchema.nullable().optional()
38
- }).describe("File object for icons and covers.");
38
+ }).passthrough().describe("File object for icons and covers.");
39
39
  const NotionFetchData_EmojiObjectSchema = z.object({
40
40
  type: z.string().describe("Always 'emoji'.").nullable(),
41
41
  emoji: z.string().describe("The emoji character.").nullable()
42
- }).describe("Emoji icon object.");
42
+ }).passthrough().describe("Emoji icon object.");
43
43
  const NotionFetchData_CustomEmojiDataSchema = z.object({
44
44
  id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
45
45
  url: z.string().describe("URL to the custom emoji image hosted on Notion.").nullable().optional(),
46
46
  name: z.string().describe("Name of the custom emoji.").nullable().optional()
47
- }).describe("Custom emoji data containing id, name, and url.");
47
+ }).passthrough().describe("Custom emoji data containing id, name, and url.");
48
48
  const NotionFetchData_CustomEmojiObjectSchema = z.object({
49
49
  type: z.string().describe("Always 'custom_emoji'.").nullable(),
50
50
  custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional()
51
- }).describe("Custom emoji icon object.");
51
+ }).passthrough().describe("Custom emoji icon object.");
52
52
  const NotionFetchData_ParentSchema = z.object({
53
53
  type: z.enum([
54
54
  "page_id",
@@ -62,14 +62,14 @@ const NotionFetchData_ParentSchema = z.object({
62
62
  workspace: z.boolean().describe("Always true when type is 'workspace'.").nullable().optional(),
63
63
  database_id: z.string().describe("UUID of the parent database when type is 'database_id'.").nullable().optional(),
64
64
  data_source_id: z.string().describe("UUID of the parent data source when type is 'data_source_id'.").nullable().optional()
65
- }).describe("Parent location of a page, database, or data source.");
65
+ }).passthrough().describe("Parent location of a page, database, or data source.");
66
66
  const NotionFetchData_PartialUserSchema = z.object({
67
67
  id: z.string().describe("Unique identifier (UUID) of the user.").nullable(),
68
68
  name: z.string().describe("User's display name.").nullable().optional(),
69
69
  type: z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
70
70
  object: z.string().describe("Always 'user'.").nullable(),
71
71
  avatar_url: z.string().describe("URL to user's avatar.").nullable().optional()
72
- }).describe("Partial user object returned by Notion API.");
72
+ }).passthrough().describe("Partial user object returned by Notion API.");
73
73
  const NotionFetchData_PageSchema = z.object({
74
74
  id: z.string().describe("Unique identifier (UUID) of the page.").nullable(),
75
75
  url: z.string().describe("URL of the page in Notion.").nullable(),
@@ -85,35 +85,35 @@ const NotionFetchData_PageSchema = z.object({
85
85
  in_trash: z.boolean().describe("Whether the page is in trash.").nullable(),
86
86
  is_locked: z.boolean().describe("Whether the page is locked.").nullable().optional(),
87
87
  created_by: NotionFetchData_PartialUserSchema.nullable(),
88
- properties: z.object({}).describe("Property values of the page keyed by property name."),
88
+ properties: z.record(z.string(), z.unknown()).describe("Property values of the page keyed by property name."),
89
89
  public_url: z.string().describe("Public URL if the page is published, or null.").nullable().optional(),
90
90
  created_time: z.string().describe("ISO 8601 timestamp when the page was created.").nullable(),
91
91
  last_edited_by: NotionFetchData_PartialUserSchema.nullable(),
92
92
  last_edited_time: z.string().describe("ISO 8601 timestamp when the page was last edited.").nullable()
93
- }).describe("Notion Page object returned in search results.");
93
+ }).passthrough().describe("Notion Page object returned in search results.");
94
94
  const NotionFetchData_RichTextTextSchema = z.object({
95
- link: z.object({}).describe("Link object with 'url' field, or null.").nullable().optional(),
95
+ link: z.record(z.string(), z.unknown()).describe("Link object with 'url' field, or null.").nullable().optional(),
96
96
  content: z.string().describe("The actual text content.").nullable()
97
- }).describe("Text content for rich text.");
97
+ }).passthrough().describe("Text content for rich text.");
98
98
  const NotionFetchData_DateMentionValueSchema = z.object({
99
99
  end: z.string().describe("End date in ISO 8601 format.").nullable().optional(),
100
100
  start: z.string().describe("Start date in ISO 8601 format.").nullable(),
101
101
  time_zone: z.string().describe("Time zone identifier.").nullable().optional()
102
- }).describe("Date value in a date mention.");
103
- const NotionFetchData_PageReferenceSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).describe("Page reference in a mention.");
102
+ }).passthrough().describe("Date value in a date mention.");
103
+ const NotionFetchData_PageReferenceSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).passthrough().describe("Page reference in a mention.");
104
104
  const NotionFetchData_UserReferenceSchema = z.object({
105
105
  id: z.string().describe("UUID of the mentioned user.").nullable(),
106
106
  object: z.string().describe("Always 'user'.").nullable()
107
- }).describe("User reference in a mention.");
108
- const NotionFetchData_DatabaseReferenceSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).describe("Database reference in a mention.");
109
- const NotionFetchData_LinkPreviewMentionValueSchema = z.object({ url: z.string().describe("URL being previewed.").nullable() }).describe("Link preview value in a link preview mention.");
110
- const NotionFetchData_TemplateMentionDateValueSchema = z.object({ type: z.enum(["today", "now"]).describe("Type of template date: 'today' or 'now'.").nullable() }).describe("Template mention date value.");
111
- const NotionFetchData_TemplateMentionUserValueSchema = z.object({ type: z.string().describe("Always 'me'.").nullable() }).describe("Template mention user value.");
107
+ }).passthrough().describe("User reference in a mention.");
108
+ const NotionFetchData_DatabaseReferenceSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).passthrough().describe("Database reference in a mention.");
109
+ const NotionFetchData_LinkPreviewMentionValueSchema = z.object({ url: z.string().describe("URL being previewed.").nullable() }).passthrough().describe("Link preview value in a link preview mention.");
110
+ const NotionFetchData_TemplateMentionDateValueSchema = z.object({ type: z.enum(["today", "now"]).describe("Type of template date: 'today' or 'now'.").nullable() }).passthrough().describe("Template mention date value.");
111
+ const NotionFetchData_TemplateMentionUserValueSchema = z.object({ type: z.string().describe("Always 'me'.").nullable() }).passthrough().describe("Template mention user value.");
112
112
  const NotionFetchData_TemplateMentionValueSchema = z.object({
113
113
  type: z.enum(["template_mention_date", "template_mention_user"]).describe("Type of template mention.").nullable(),
114
114
  template_mention_date: z.union([NotionFetchData_TemplateMentionDateValueSchema, z.string()]).nullable().optional(),
115
115
  template_mention_user: NotionFetchData_TemplateMentionUserValueSchema.nullable().optional()
116
- }).describe("Template mention value containing either date or user template.");
116
+ }).passthrough().describe("Template mention value containing either date or user template.");
117
117
  const NotionFetchData_MentionSchema = z.object({
118
118
  date: NotionFetchData_DateMentionValueSchema.nullable().optional(),
119
119
  page: NotionFetchData_PageReferenceSchema.nullable().optional(),
@@ -131,8 +131,8 @@ const NotionFetchData_MentionSchema = z.object({
131
131
  custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional(),
132
132
  link_preview: NotionFetchData_LinkPreviewMentionValueSchema.nullable().optional(),
133
133
  template_mention: NotionFetchData_TemplateMentionValueSchema.nullable().optional()
134
- }).describe("Mention object containing the mention type and details.");
135
- const NotionFetchData_RichTextEquationSchema = z.object({ expression: z.string().describe("LaTeX equation expression.").nullable() }).describe("Equation content for rich text.");
134
+ }).passthrough().describe("Mention object containing the mention type and details.");
135
+ const NotionFetchData_RichTextEquationSchema = z.object({ expression: z.string().describe("LaTeX equation expression.").nullable() }).passthrough().describe("Equation content for rich text.");
136
136
  const NotionFetchData_AnnotationsSchema = z.object({
137
137
  bold: z.boolean().describe("Whether the text is bold.").nullable(),
138
138
  code: z.boolean().describe("Whether the text is formatted as code.").nullable(),
@@ -140,7 +140,7 @@ const NotionFetchData_AnnotationsSchema = z.object({
140
140
  italic: z.boolean().describe("Whether the text is italicized.").nullable(),
141
141
  underline: z.boolean().describe("Whether the text is underlined.").nullable(),
142
142
  strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
143
- }).describe("Styling properties for rich text.");
143
+ }).passthrough().describe("Styling properties for rich text.");
144
144
  const NotionFetchData_RichTextSchema = z.object({
145
145
  href: z.string().describe("URL if the text is a link, or null.").nullable().optional(),
146
146
  text: NotionFetchData_RichTextTextSchema.nullable().optional(),
@@ -153,7 +153,7 @@ const NotionFetchData_RichTextSchema = z.object({
153
153
  equation: NotionFetchData_RichTextEquationSchema.nullable().optional(),
154
154
  plain_text: z.string().describe("Plain text representation without formatting.").nullable(),
155
155
  annotations: NotionFetchData_AnnotationsSchema.nullable()
156
- }).describe("Rich text object for titles and descriptions.");
156
+ }).passthrough().describe("Rich text object for titles and descriptions.");
157
157
  const NotionFetchData_DataSourceSchema = z.object({
158
158
  id: z.string().describe("Unique identifier (UUID) of the data source.").nullable(),
159
159
  icon: z.union([
@@ -167,13 +167,13 @@ const NotionFetchData_DataSourceSchema = z.object({
167
167
  archived: z.boolean().describe("Whether the data source is archived.").nullable().optional(),
168
168
  in_trash: z.boolean().describe("Whether the data source is in trash.").nullable().optional(),
169
169
  created_by: NotionFetchData_PartialUserSchema.nullable().optional(),
170
- properties: z.object({}).describe("Schema properties of the data source keyed by property name."),
170
+ properties: z.record(z.string(), z.unknown()).describe("Schema properties of the data source keyed by property name."),
171
171
  description: z.array(NotionFetchData_RichTextSchema).describe("Description of the data source as rich text.").nullable().optional(),
172
172
  created_time: z.string().describe("ISO 8601 timestamp when the data source was created.").nullable().optional(),
173
173
  last_edited_by: NotionFetchData_PartialUserSchema.nullable().optional(),
174
174
  database_parent: NotionFetchData_ParentSchema.nullable().optional(),
175
175
  last_edited_time: z.string().describe("ISO 8601 timestamp when the data source was last edited.").nullable().optional()
176
- }).describe("Notion Data Source object returned in search results.");
176
+ }).passthrough().describe("Notion Data Source object returned in search results.");
177
177
  const NotionFetchData_DatabaseSchema = z.object({
178
178
  id: z.string().describe("Unique identifier (UUID) of the database.").nullable(),
179
179
  url: z.string().describe("URL of the database in Notion.").nullable(),
@@ -190,14 +190,14 @@ const NotionFetchData_DatabaseSchema = z.object({
190
190
  in_trash: z.boolean().describe("Whether the database is in trash.").nullable(),
191
191
  is_inline: z.boolean().describe("Whether the database is displayed inline.").nullable().optional(),
192
192
  created_by: NotionFetchData_PartialUserSchema.nullable(),
193
- properties: z.object({}).describe("Property schema of the database keyed by property name."),
193
+ properties: z.record(z.string(), z.unknown()).describe("Property schema of the database keyed by property name."),
194
194
  public_url: z.string().describe("Public URL if the database is published, or null.").nullable().optional(),
195
195
  description: z.array(NotionFetchData_RichTextSchema).describe("Description of the database as rich text.").nullable().optional(),
196
196
  created_time: z.string().describe("ISO 8601 timestamp when the database was created.").nullable(),
197
197
  last_edited_by: NotionFetchData_PartialUserSchema.nullable(),
198
198
  last_edited_time: z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
199
- }).describe("Notion Database object returned in search results.");
200
- const NotionFetchData_DataSourcePaginationInfoSchema = z.object({}).describe("Type-specific pagination info for 'data_source' type responses. Typically an empty object.");
199
+ }).passthrough().describe("Notion Database object returned in search results.");
200
+ const NotionFetchData_DataSourcePaginationInfoSchema = z.record(z.string(), z.unknown()).describe("Type-specific pagination info for 'data_source' type responses. Typically an empty object.");
201
201
  const notionFetchData = action("NOTION_FETCH_DATA", {
202
202
  slug: "notion-fetch-data",
203
203
  name: "Fetch Notion Data",
@@ -218,7 +218,7 @@ const notionFetchData = action("NOTION_FETCH_DATA", {
218
218
  next_cursor: z.string().describe("Opaque cursor to pass as start_cursor on a subsequent request; null if no more results.").nullable().optional(),
219
219
  total_count: z.number().int().default(0).describe("Number of items in 'values' list (may differ from 'results' length if some items couldn't be parsed).").nullable().optional(),
220
220
  composio_execution_message: z.string().describe("Message about any input modifications made during execution (e.g., page_size capping).").nullable().optional()
221
- }).describe("Notion Fetch Data (NOTION_FETCH_DATA) - Response Schema\n\nThis response provides a consistent, predictable data structure for agents.\nThe 'values' field is the CANONICAL data source - it is ALWAYS populated\n(even as an empty list when no results are found) and should be used for\nall data access needs.\n\nData Fields:\n- 'values': The PRIMARY data field. Always contains a list of SimplifiedResource\n objects with id, title, and type. Use this field for reading data.\n- 'results': The standard Notion API field containing full response objects.\n Use only when you need additional details not present in 'values'.\n\nPagination Fields:\n- 'next_cursor': Opaque cursor for fetching the next page of results.\n- 'has_more': Boolean indicating if more results are available.\n- 'total_count': Number of items in 'values' (may differ from 'results' if\n some items couldn't be parsed into simplified format).")
221
+ }).passthrough().describe("Notion Fetch Data (NOTION_FETCH_DATA) - Response Schema\n\nThis response provides a consistent, predictable data structure for agents.\nThe 'values' field is the CANONICAL data source - it is ALWAYS populated\n(even as an empty list when no results are found) and should be used for\nall data access needs.\n\nData Fields:\n- 'values': The PRIMARY data field. Always contains a list of SimplifiedResource\n objects with id, title, and type. Use this field for reading data.\n- 'results': The standard Notion API field containing full response objects.\n Use only when you need additional details not present in 'values'.\n\nPagination Fields:\n- 'next_cursor': Opaque cursor for fetching the next page of results.\n- 'has_more': Boolean indicating if more results are available.\n- 'total_count': Number of items in 'values' (may differ from 'results' if\n some items couldn't be parsed into simplified format).")
222
222
  });
223
223
  //#endregion
224
224
  export { notionFetchData };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-data.mjs","names":[],"sources":["../../src/actions/fetch-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchDataInput = z.object({\n query: z.string().describe(\"An optional search query to filter pages and/or databases by their title or content. If not provided (None or empty string), all accessible items matching the selected type (pages, databases, or both) are returned.\").optional(),\n page_size: z.number().int().default(100).describe(\"The maximum number of items per page (1-100). IMPORTANT: Notion API enforces a hard maximum of 100 items per request - values above 100 will be automatically capped to 100. To retrieve more than 100 items, use pagination by passing the returned 'next_cursor' value in subsequent requests. Defaults to 100.\").optional(),\n fetch_type: z.enum([\"pages\", \"databases\", \"all\"]).describe(\"Specifies what type of Notion data to fetch. Use 'pages' to fetch only pages, 'databases' to fetch only databases, or 'all' to fetch both pages and databases.\"),\n start_cursor: z.string().describe(\"Pagination cursor to fetch the next page of results. Pass the 'next_cursor' value from a previous response to retrieve the next page. When null or not provided, the first page is returned.\").optional(),\n original_page_size: z.number().int().describe(\"The original page size value before it was capped.\").optional(),\n page_size_was_capped: z.boolean().default(false).describe(\"Indicates whether the page size was capped to the maximum allowed value.\").optional(),\n}).describe(\"Defines the parameters for fetching data (pages and/or databases) from Notion.\\nUse the `fetch_type` parameter to specify what type of data to retrieve.\");\nconst NotionFetchData_PagePaginationInfoSchema = z.object({}).describe(\"Type-specific pagination info for 'page' type responses. Typically an empty object.\");\nconst NotionFetchData_SimplifiedResourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the resource.\").nullable(),\n type: z.string().describe(\"Type of the resource: 'page', 'database', or 'data_source'.\").nullable(),\n title: z.string().describe(\"Title or name of the resource.\").nullable(),\n}).describe(\"Simplified representation of a Notion resource with id, title, and type.\");\nconst NotionFetchData_FileFileSchema = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\").nullable(),\n}).describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchData_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the file.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionFetchData_FileUploadSchema = z.object({\n id: z.string().describe(\"File upload identifier.\").nullable(),\n}).describe(\"File upload reference.\");\nconst NotionFetchData_FileObjectSchema = z.object({\n file: NotionFetchData_FileFileSchema.nullable().optional(),\n name: z.string().describe(\"Optional file name.\").nullable().optional(),\n type: z.enum([\"file\", \"file_upload\", \"external\"]).describe(\"Type of file: 'file', 'file_upload', or 'external'.\").nullable(),\n external: NotionFetchData_ExternalFileSchema.nullable().optional(),\n file_upload: NotionFetchData_FileUploadSchema.nullable().optional(),\n}).describe(\"File object for icons and covers.\");\nconst NotionFetchData_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).describe(\"Emoji icon object.\");\nconst NotionFetchData_CustomEmojiDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image hosted on Notion.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji data containing id, name, and url.\");\nconst NotionFetchData_CustomEmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional(),\n}).describe(\"Custom emoji icon object.\");\nconst NotionFetchData_ParentSchema = z.object({\n type: z.enum([\"page_id\", \"workspace\", \"block_id\", \"database_id\", \"data_source_id\"]).describe(\"Type of parent.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page when type is 'page_id'.\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block when type is 'block_id'.\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n database_id: z.string().describe(\"UUID of the parent database when type is 'database_id'.\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source when type is 'data_source_id'.\").nullable().optional(),\n}).describe(\"Parent location of a page, database, or data source.\");\nconst NotionFetchData_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n name: z.string().describe(\"User's display name.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n avatar_url: z.string().describe(\"URL to user's avatar.\").nullable().optional(),\n}).describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchData_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the page.\").nullable(),\n url: z.string().describe(\"URL of the page in Notion.\").nullable(),\n icon: z.union([NotionFetchData_FileObjectSchema, NotionFetchData_EmojiObjectSchema, NotionFetchData_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionFetchData_FileObjectSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: NotionFetchData_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked.\").nullable().optional(),\n created_by: NotionFetchData_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Property values of the page keyed by property name.\"),\n public_url: z.string().describe(\"Public URL if the page is published, or null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable(),\n last_edited_by: NotionFetchData_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable(),\n}).describe(\"Notion Page object returned in search results.\");\nconst NotionFetchData_RichTextTextSchema = z.object({\n link: z.object({}).describe(\"Link object with 'url' field, or null.\").nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).describe(\"Text content for rich text.\");\nconst NotionFetchData_DateMentionValueSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n time_zone: z.string().describe(\"Time zone identifier.\").nullable().optional(),\n}).describe(\"Date value in a date mention.\");\nconst NotionFetchData_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).describe(\"Page reference in a mention.\");\nconst NotionFetchData_UserReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).describe(\"User reference in a mention.\");\nconst NotionFetchData_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).describe(\"Database reference in a mention.\");\nconst NotionFetchData_LinkPreviewMentionValueSchema = z.object({\n url: z.string().describe(\"URL being previewed.\").nullable(),\n}).describe(\"Link preview value in a link preview mention.\");\nconst NotionFetchData_TemplateMentionDateValueSchema = z.object({\n type: z.enum([\"today\", \"now\"]).describe(\"Type of template date: 'today' or 'now'.\").nullable(),\n}).describe(\"Template mention date value.\");\nconst NotionFetchData_TemplateMentionUserValueSchema = z.object({\n type: z.string().describe(\"Always 'me'.\").nullable(),\n}).describe(\"Template mention user value.\");\nconst NotionFetchData_TemplateMentionValueSchema = z.object({\n type: z.enum([\"template_mention_date\", \"template_mention_user\"]).describe(\"Type of template mention.\").nullable(),\n template_mention_date: z.union([NotionFetchData_TemplateMentionDateValueSchema, z.string()]).nullable().optional(),\n template_mention_user: NotionFetchData_TemplateMentionUserValueSchema.nullable().optional(),\n}).describe(\"Template mention value containing either date or user template.\");\nconst NotionFetchData_MentionSchema = z.object({\n date: NotionFetchData_DateMentionValueSchema.nullable().optional(),\n page: NotionFetchData_PageReferenceSchema.nullable().optional(),\n type: z.enum([\"user\", \"page\", \"database\", \"date\", \"link_preview\", \"template_mention\", \"custom_emoji\"]).describe(\"Type of mention.\").nullable(),\n user: NotionFetchData_UserReferenceSchema.nullable().optional(),\n database: NotionFetchData_DatabaseReferenceSchema.nullable().optional(),\n custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional(),\n link_preview: NotionFetchData_LinkPreviewMentionValueSchema.nullable().optional(),\n template_mention: NotionFetchData_TemplateMentionValueSchema.nullable().optional(),\n}).describe(\"Mention object containing the mention type and details.\");\nconst NotionFetchData_RichTextEquationSchema = z.object({\n expression: z.string().describe(\"LaTeX equation expression.\").nullable(),\n}).describe(\"Equation content for rich text.\");\nconst NotionFetchData_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.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italicized.\").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 properties for rich text.\");\nconst NotionFetchData_RichTextSchema = z.object({\n href: z.string().describe(\"URL if the text is a link, or null.\").nullable().optional(),\n text: NotionFetchData_RichTextTextSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionFetchData_MentionSchema.nullable().optional(),\n equation: NotionFetchData_RichTextEquationSchema.nullable().optional(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionFetchData_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object for titles and descriptions.\");\nconst NotionFetchData_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\").nullable(),\n icon: z.union([NotionFetchData_FileObjectSchema, NotionFetchData_EmojiObjectSchema, NotionFetchData_CustomEmojiObjectSchema]).nullable().optional(),\n title: z.array(NotionFetchData_RichTextSchema).describe(\"Title of the data source as rich text.\").nullable().optional(),\n object: z.string().describe(\"Always 'data_source'.\").nullable(),\n parent: NotionFetchData_ParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the data source is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the data source is in trash.\").nullable().optional(),\n created_by: NotionFetchData_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Schema properties of the data source keyed by property name.\"),\n description: z.array(NotionFetchData_RichTextSchema).describe(\"Description of the data source as rich text.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the data source was created.\").nullable().optional(),\n last_edited_by: NotionFetchData_PartialUserSchema.nullable().optional(),\n database_parent: NotionFetchData_ParentSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the data source was last edited.\").nullable().optional(),\n}).describe(\"Notion Data Source object returned in search results.\");\nconst NotionFetchData_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the database.\").nullable(),\n url: z.string().describe(\"URL of the database in Notion.\").nullable(),\n icon: z.union([NotionFetchData_FileObjectSchema, NotionFetchData_EmojiObjectSchema, NotionFetchData_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionFetchData_FileObjectSchema.nullable().optional(),\n title: z.array(NotionFetchData_RichTextSchema).describe(\"Title of the database as rich text.\").nullable().optional(),\n object: z.string().describe(\"Always 'database'.\").nullable(),\n parent: NotionFetchData_ParentSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline.\").nullable().optional(),\n created_by: NotionFetchData_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Property schema of the database keyed by property name.\"),\n public_url: z.string().describe(\"Public URL if the database is published, or null.\").nullable().optional(),\n description: z.array(NotionFetchData_RichTextSchema).describe(\"Description of the database as rich text.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n last_edited_by: NotionFetchData_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).describe(\"Notion Database object returned in search results.\");\nconst NotionFetchData_DataSourcePaginationInfoSchema = z.object({}).describe(\"Type-specific pagination info for 'data_source' type responses. Typically an empty object.\");\nexport const NotionFetchDataOutput = z.object({\n page: NotionFetchData_PagePaginationInfoSchema.nullable().optional(),\n type: z.string().describe(\"The object type contained in results (e.g., 'page' or 'data_source') when provided by Notion.\").nullable().optional(),\n object: z.string().describe(\"Constant string 'list' indicating this is a paginated list response.\").nullable(),\n values: z.array(NotionFetchData_SimplifiedResourceSchema).describe(\"CANONICAL data source. Always populated with simplified Notion resources (id, title, type). Use this field for reading data - it is guaranteed to be present and consistent.\").nullable().optional(),\n results: z.array(z.union([NotionFetchData_PageSchema, NotionFetchData_DataSourceSchema, NotionFetchData_DatabaseSchema])).describe(\"Standard Notion API field containing full response objects. Use only when you need additional details (properties, timestamps, icons) not present in 'values'.\").nullable().optional(),\n has_more: z.boolean().default(false).describe(\"Whether there are more results available after this page.\").nullable().optional(),\n data_source: NotionFetchData_DataSourcePaginationInfoSchema.nullable().optional(),\n next_cursor: z.string().describe(\"Opaque cursor to pass as start_cursor on a subsequent request; null if no more results.\").nullable().optional(),\n total_count: z.number().int().default(0).describe(\"Number of items in 'values' list (may differ from 'results' length if some items couldn't be parsed).\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message about any input modifications made during execution (e.g., page_size capping).\").nullable().optional(),\n}).describe(\"Notion Fetch Data (NOTION_FETCH_DATA) - Response Schema\\n\\nThis response provides a consistent, predictable data structure for agents.\\nThe 'values' field is the CANONICAL data source - it is ALWAYS populated\\n(even as an empty list when no results are found) and should be used for\\nall data access needs.\\n\\nData Fields:\\n- 'values': The PRIMARY data field. Always contains a list of SimplifiedResource\\n objects with id, title, and type. Use this field for reading data.\\n- 'results': The standard Notion API field containing full response objects.\\n Use only when you need additional details not present in 'values'.\\n\\nPagination Fields:\\n- 'next_cursor': Opaque cursor for fetching the next page of results.\\n- 'has_more': Boolean indicating if more results are available.\\n- 'total_count': Number of items in 'values' (may differ from 'results' if\\n some items couldn't be parsed into simplified format).\");\n\nexport const notionFetchData = action(\"NOTION_FETCH_DATA\", {\n slug: \"notion-fetch-data\",\n name: \"Fetch Notion Data\",\n description: \"Fetches Notion items (pages and/or databases) from the Notion workspace, use this to get minimal data about the items in the workspace with a query or list all items in the workspace with minimal data\",\n input: NotionFetchDataInput,\n output: NotionFetchDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CAC9P,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mTAAmT,CAAC,CAAC,SAAS;CAChX,YAAY,EAAE,KAAK;EAAC;EAAS;EAAa;CAAK,CAAC,CAAC,CAAC,SAAS,gKAAgK;CAC3N,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;CAC3O,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7G,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,0JAA0J;AACtK,MAAM,2CAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAC5J,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS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,MAAM,yCAAyC,SAAS,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC7G,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvQ,SAAS,EAAE,MAAM,EAAE,MAAM;GAAC;GAA4B;GAAkC;EAA8B,CAAC,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzT,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,aAAa,+CAA+C,SAAS,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/K,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,CAAC,CAAC,CAAC,SAAS,o5BAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-data.mjs","names":[],"sources":["../../src/actions/fetch-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchDataInput = z.object({\n query: z.string().describe(\"An optional search query to filter pages and/or databases by their title or content. If not provided (None or empty string), all accessible items matching the selected type (pages, databases, or both) are returned.\").optional(),\n page_size: z.number().int().default(100).describe(\"The maximum number of items per page (1-100). IMPORTANT: Notion API enforces a hard maximum of 100 items per request - values above 100 will be automatically capped to 100. To retrieve more than 100 items, use pagination by passing the returned 'next_cursor' value in subsequent requests. Defaults to 100.\").optional(),\n fetch_type: z.enum([\"pages\", \"databases\", \"all\"]).describe(\"Specifies what type of Notion data to fetch. Use 'pages' to fetch only pages, 'databases' to fetch only databases, or 'all' to fetch both pages and databases.\"),\n start_cursor: z.string().describe(\"Pagination cursor to fetch the next page of results. Pass the 'next_cursor' value from a previous response to retrieve the next page. When null or not provided, the first page is returned.\").optional(),\n original_page_size: z.number().int().describe(\"The original page size value before it was capped.\").optional(),\n page_size_was_capped: z.boolean().default(false).describe(\"Indicates whether the page size was capped to the maximum allowed value.\").optional(),\n}).describe(\"Defines the parameters for fetching data (pages and/or databases) from Notion.\\nUse the `fetch_type` parameter to specify what type of data to retrieve.\");\nconst NotionFetchData_PagePaginationInfoSchema = z.record(z.string(), z.unknown()).describe(\"Type-specific pagination info for 'page' type responses. Typically an empty object.\");\nconst NotionFetchData_SimplifiedResourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the resource.\").nullable(),\n type: z.string().describe(\"Type of the resource: 'page', 'database', or 'data_source'.\").nullable(),\n title: z.string().describe(\"Title or name of the resource.\").nullable(),\n}).passthrough().describe(\"Simplified representation of a Notion resource with id, title, and type.\");\nconst NotionFetchData_FileFileSchema = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchData_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the file.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionFetchData_FileUploadSchema = z.object({\n id: z.string().describe(\"File upload identifier.\").nullable(),\n}).passthrough().describe(\"File upload reference.\");\nconst NotionFetchData_FileObjectSchema = z.object({\n file: NotionFetchData_FileFileSchema.nullable().optional(),\n name: z.string().describe(\"Optional file name.\").nullable().optional(),\n type: z.enum([\"file\", \"file_upload\", \"external\"]).describe(\"Type of file: 'file', 'file_upload', or 'external'.\").nullable(),\n external: NotionFetchData_ExternalFileSchema.nullable().optional(),\n file_upload: NotionFetchData_FileUploadSchema.nullable().optional(),\n}).passthrough().describe(\"File object for icons and covers.\");\nconst NotionFetchData_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough().describe(\"Emoji icon object.\");\nconst NotionFetchData_CustomEmojiDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image hosted on Notion.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough().describe(\"Custom emoji data containing id, name, and url.\");\nconst NotionFetchData_CustomEmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional(),\n}).passthrough().describe(\"Custom emoji icon object.\");\nconst NotionFetchData_ParentSchema = z.object({\n type: z.enum([\"page_id\", \"workspace\", \"block_id\", \"database_id\", \"data_source_id\"]).describe(\"Type of parent.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page when type is 'page_id'.\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block when type is 'block_id'.\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n database_id: z.string().describe(\"UUID of the parent database when type is 'database_id'.\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source when type is 'data_source_id'.\").nullable().optional(),\n}).passthrough().describe(\"Parent location of a page, database, or data source.\");\nconst NotionFetchData_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n name: z.string().describe(\"User's display name.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n avatar_url: z.string().describe(\"URL to user's avatar.\").nullable().optional(),\n}).passthrough().describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchData_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the page.\").nullable(),\n url: z.string().describe(\"URL of the page in Notion.\").nullable(),\n icon: z.union([NotionFetchData_FileObjectSchema, NotionFetchData_EmojiObjectSchema, NotionFetchData_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionFetchData_FileObjectSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: NotionFetchData_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked.\").nullable().optional(),\n created_by: NotionFetchData_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page keyed by property name.\"),\n public_url: z.string().describe(\"Public URL if the page is published, or null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable(),\n last_edited_by: NotionFetchData_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable(),\n}).passthrough().describe(\"Notion Page object returned in search results.\");\nconst NotionFetchData_RichTextTextSchema = z.object({\n link: z.record(z.string(), z.unknown()).describe(\"Link object with 'url' field, or null.\").nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content for rich text.\");\nconst NotionFetchData_DateMentionValueSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n time_zone: z.string().describe(\"Time zone identifier.\").nullable().optional(),\n}).passthrough().describe(\"Date value in a date mention.\");\nconst NotionFetchData_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).passthrough().describe(\"Page reference in a mention.\");\nconst NotionFetchData_UserReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough().describe(\"User reference in a mention.\");\nconst NotionFetchData_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).passthrough().describe(\"Database reference in a mention.\");\nconst NotionFetchData_LinkPreviewMentionValueSchema = z.object({\n url: z.string().describe(\"URL being previewed.\").nullable(),\n}).passthrough().describe(\"Link preview value in a link preview mention.\");\nconst NotionFetchData_TemplateMentionDateValueSchema = z.object({\n type: z.enum([\"today\", \"now\"]).describe(\"Type of template date: 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention date value.\");\nconst NotionFetchData_TemplateMentionUserValueSchema = z.object({\n type: z.string().describe(\"Always 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention user value.\");\nconst NotionFetchData_TemplateMentionValueSchema = z.object({\n type: z.enum([\"template_mention_date\", \"template_mention_user\"]).describe(\"Type of template mention.\").nullable(),\n template_mention_date: z.union([NotionFetchData_TemplateMentionDateValueSchema, z.string()]).nullable().optional(),\n template_mention_user: NotionFetchData_TemplateMentionUserValueSchema.nullable().optional(),\n}).passthrough().describe(\"Template mention value containing either date or user template.\");\nconst NotionFetchData_MentionSchema = z.object({\n date: NotionFetchData_DateMentionValueSchema.nullable().optional(),\n page: NotionFetchData_PageReferenceSchema.nullable().optional(),\n type: z.enum([\"user\", \"page\", \"database\", \"date\", \"link_preview\", \"template_mention\", \"custom_emoji\"]).describe(\"Type of mention.\").nullable(),\n user: NotionFetchData_UserReferenceSchema.nullable().optional(),\n database: NotionFetchData_DatabaseReferenceSchema.nullable().optional(),\n custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional(),\n link_preview: NotionFetchData_LinkPreviewMentionValueSchema.nullable().optional(),\n template_mention: NotionFetchData_TemplateMentionValueSchema.nullable().optional(),\n}).passthrough().describe(\"Mention object containing the mention type and details.\");\nconst NotionFetchData_RichTextEquationSchema = z.object({\n expression: z.string().describe(\"LaTeX equation expression.\").nullable(),\n}).passthrough().describe(\"Equation content for rich text.\");\nconst NotionFetchData_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.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italicized.\").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 properties for rich text.\");\nconst NotionFetchData_RichTextSchema = z.object({\n href: z.string().describe(\"URL if the text is a link, or null.\").nullable().optional(),\n text: NotionFetchData_RichTextTextSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionFetchData_MentionSchema.nullable().optional(),\n equation: NotionFetchData_RichTextEquationSchema.nullable().optional(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionFetchData_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for titles and descriptions.\");\nconst NotionFetchData_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\").nullable(),\n icon: z.union([NotionFetchData_FileObjectSchema, NotionFetchData_EmojiObjectSchema, NotionFetchData_CustomEmojiObjectSchema]).nullable().optional(),\n title: z.array(NotionFetchData_RichTextSchema).describe(\"Title of the data source as rich text.\").nullable().optional(),\n object: z.string().describe(\"Always 'data_source'.\").nullable(),\n parent: NotionFetchData_ParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the data source is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the data source is in trash.\").nullable().optional(),\n created_by: NotionFetchData_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Schema properties of the data source keyed by property name.\"),\n description: z.array(NotionFetchData_RichTextSchema).describe(\"Description of the data source as rich text.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the data source was created.\").nullable().optional(),\n last_edited_by: NotionFetchData_PartialUserSchema.nullable().optional(),\n database_parent: NotionFetchData_ParentSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the data source was last edited.\").nullable().optional(),\n}).passthrough().describe(\"Notion Data Source object returned in search results.\");\nconst NotionFetchData_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the database.\").nullable(),\n url: z.string().describe(\"URL of the database in Notion.\").nullable(),\n icon: z.union([NotionFetchData_FileObjectSchema, NotionFetchData_EmojiObjectSchema, NotionFetchData_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionFetchData_FileObjectSchema.nullable().optional(),\n title: z.array(NotionFetchData_RichTextSchema).describe(\"Title of the database as rich text.\").nullable().optional(),\n object: z.string().describe(\"Always 'database'.\").nullable(),\n parent: NotionFetchData_ParentSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline.\").nullable().optional(),\n created_by: NotionFetchData_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property schema of the database keyed by property name.\"),\n public_url: z.string().describe(\"Public URL if the database is published, or null.\").nullable().optional(),\n description: z.array(NotionFetchData_RichTextSchema).describe(\"Description of the database as rich text.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n last_edited_by: NotionFetchData_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).passthrough().describe(\"Notion Database object returned in search results.\");\nconst NotionFetchData_DataSourcePaginationInfoSchema = z.record(z.string(), z.unknown()).describe(\"Type-specific pagination info for 'data_source' type responses. Typically an empty object.\");\nexport const NotionFetchDataOutput = z.object({\n page: NotionFetchData_PagePaginationInfoSchema.nullable().optional(),\n type: z.string().describe(\"The object type contained in results (e.g., 'page' or 'data_source') when provided by Notion.\").nullable().optional(),\n object: z.string().describe(\"Constant string 'list' indicating this is a paginated list response.\").nullable(),\n values: z.array(NotionFetchData_SimplifiedResourceSchema).describe(\"CANONICAL data source. Always populated with simplified Notion resources (id, title, type). Use this field for reading data - it is guaranteed to be present and consistent.\").nullable().optional(),\n results: z.array(z.union([NotionFetchData_PageSchema, NotionFetchData_DataSourceSchema, NotionFetchData_DatabaseSchema])).describe(\"Standard Notion API field containing full response objects. Use only when you need additional details (properties, timestamps, icons) not present in 'values'.\").nullable().optional(),\n has_more: z.boolean().default(false).describe(\"Whether there are more results available after this page.\").nullable().optional(),\n data_source: NotionFetchData_DataSourcePaginationInfoSchema.nullable().optional(),\n next_cursor: z.string().describe(\"Opaque cursor to pass as start_cursor on a subsequent request; null if no more results.\").nullable().optional(),\n total_count: z.number().int().default(0).describe(\"Number of items in 'values' list (may differ from 'results' length if some items couldn't be parsed).\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message about any input modifications made during execution (e.g., page_size capping).\").nullable().optional(),\n}).passthrough().describe(\"Notion Fetch Data (NOTION_FETCH_DATA) - Response Schema\\n\\nThis response provides a consistent, predictable data structure for agents.\\nThe 'values' field is the CANONICAL data source - it is ALWAYS populated\\n(even as an empty list when no results are found) and should be used for\\nall data access needs.\\n\\nData Fields:\\n- 'values': The PRIMARY data field. Always contains a list of SimplifiedResource\\n objects with id, title, and type. Use this field for reading data.\\n- 'results': The standard Notion API field containing full response objects.\\n Use only when you need additional details not present in 'values'.\\n\\nPagination Fields:\\n- 'next_cursor': Opaque cursor for fetching the next page of results.\\n- 'has_more': Boolean indicating if more results are available.\\n- 'total_count': Number of items in 'values' (may differ from 'results' if\\n some items couldn't be parsed into simplified format).\");\n\nexport const notionFetchData = action(\"NOTION_FETCH_DATA\", {\n slug: \"notion-fetch-data\",\n name: \"Fetch Notion Data\",\n description: \"Fetches Notion items (pages and/or databases) from the Notion workspace, use this to get minimal data about the items in the workspace with a query or list all items in the workspace with minimal data\",\n input: NotionFetchDataInput,\n output: NotionFetchDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CAC9P,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mTAAmT,CAAC,CAAC,SAAS;CAChX,YAAY,EAAE,KAAK;EAAC;EAAS;EAAa;CAAK,CAAC,CAAC,CAAC,SAAS,gKAAgK;CAC3N,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;CAC3O,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7G,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,0JAA0J;AACtK,MAAM,2CAA2C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjL,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AACpG,MAAM,iCAAiC,EA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S,CAAC,CAAC,SAAS;EAC/K,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,o5BAOhB;AACV,CAAC"}
@@ -5,22 +5,22 @@ const NotionFetchDatabaseInput = zod.z.object({ database_id: zod.z.string().desc
5
5
  const NotionFetchDatabase_IconSchema = zod.z.object({
6
6
  type: zod.z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'file_upload'.").nullable(),
7
7
  emoji: zod.z.string().describe("Emoji character when type is 'emoji'.").nullable().optional()
8
- }).describe("Icon object for the database.");
8
+ }).passthrough().describe("Icon object for the database.");
9
9
  const NotionFetchDatabase_NotionFileSchema = zod.z.object({
10
10
  url: zod.z.string().describe("Signed URL of the Notion-hosted file.").nullable(),
11
11
  expiry_time: zod.z.string().describe("ISO 8601 timestamp when the signed URL expires.").nullable()
12
- }).describe("Notion-hosted file with expiring URL.");
13
- const NotionFetchDatabase_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("External URL of the cover image.").nullable() }).describe("External file reference.");
12
+ }).passthrough().describe("Notion-hosted file with expiring URL.");
13
+ const NotionFetchDatabase_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("External URL of the cover image.").nullable() }).passthrough().describe("External file reference.");
14
14
  const NotionFetchDatabase_CoverSchema = zod.z.object({
15
15
  file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),
16
16
  type: zod.z.string().describe("Type of file: 'external', 'file', or 'file_upload'.").nullable(),
17
17
  external: NotionFetchDatabase_ExternalFileSchema.nullable().optional()
18
- }).describe("Cover image object for the database.");
19
- const NotionFetchDatabase_LinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.").nullable() }).describe("Link object for text content.");
18
+ }).passthrough().describe("Cover image object for the database.");
19
+ const NotionFetchDatabase_LinkSchema = zod.z.object({ url: zod.z.string().describe("URL of the link.").nullable() }).passthrough().describe("Link object for text content.");
20
20
  const NotionFetchDatabase_TextContentSchema = zod.z.object({
21
21
  link: NotionFetchDatabase_LinkSchema.nullable().optional(),
22
22
  content: zod.z.string().describe("The actual text content.").nullable()
23
- }).describe("Text content object for rich text.");
23
+ }).passthrough().describe("Text content object for rich text.");
24
24
  const NotionFetchDatabase_AnnotationsSchema = zod.z.object({
25
25
  bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
26
26
  code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
@@ -28,28 +28,28 @@ const NotionFetchDatabase_AnnotationsSchema = zod.z.object({
28
28
  italic: zod.z.boolean().describe("Whether the text is italicized.").nullable(),
29
29
  underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
30
30
  strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
31
- }).describe("Styling properties for rich text.");
31
+ }).passthrough().describe("Styling properties for rich text.");
32
32
  const NotionFetchDatabase_RichTextObjectSchema = zod.z.object({
33
33
  href: zod.z.string().describe("URL if the text is a link, or null.").nullable().optional(),
34
34
  text: NotionFetchDatabase_TextContentSchema.nullable().optional(),
35
35
  type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
36
36
  plain_text: zod.z.string().describe("Plain text representation without formatting.").nullable(),
37
37
  annotations: NotionFetchDatabase_AnnotationsSchema.nullable()
38
- }).describe("Rich text object for database title and description.");
38
+ }).passthrough().describe("Rich text object for database title and description.");
39
39
  const NotionFetchDatabase_ParentSchema = zod.z.object({
40
40
  type: zod.z.string().describe("Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.").nullable(),
41
41
  page_id: zod.z.string().describe("UUID of the parent page when type is 'page_id'.").nullable().optional(),
42
42
  block_id: zod.z.string().describe("UUID of the parent block when type is 'block_id'.").nullable().optional(),
43
43
  workspace: zod.z.boolean().describe("Always true when type is 'workspace'.").nullable().optional()
44
- }).describe("Parent location of the database (page, workspace, or block).");
44
+ }).passthrough().describe("Parent location of the database (page, workspace, or block).");
45
45
  const NotionFetchDatabase_PartialUserSchema = zod.z.object({
46
46
  id: zod.z.string().describe("Unique identifier (UUID) of the user.").nullable(),
47
47
  object: zod.z.string().describe("Always 'user'. Identifies this as a user object.").nullable()
48
- }).describe("Partial user object returned by Notion API.");
48
+ }).passthrough().describe("Partial user object returned by Notion API.");
49
49
  const NotionFetchDatabase_DataSourceSchema = zod.z.object({
50
50
  id: zod.z.string().describe("Unique identifier (UUID) of the data source.").nullable(),
51
51
  name: zod.z.string().describe("Display name of the data source.").nullable()
52
- }).describe("Child data source object.");
52
+ }).passthrough().describe("Child data source object.");
53
53
  const NotionFetchDatabaseOutput = zod.z.object({
54
54
  id: zod.z.string().describe("Unique identifier for the database in UUID format (36 characters).").nullable(),
55
55
  url: zod.z.string().describe("The URL of the database in the Notion workspace.").nullable(),
@@ -63,14 +63,14 @@ const NotionFetchDatabaseOutput = zod.z.object({
63
63
  is_inline: zod.z.boolean().describe("Whether the database is displayed as an inline block (true) or full-page database (false).").nullable(),
64
64
  is_locked: zod.z.boolean().describe("Whether the database is locked for editing. Present in API version 2025-09-03.").nullable().optional(),
65
65
  created_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),
66
- properties: zod.z.object({}).describe("Database schema as a map from property name to property schema object. Each property defines a column in the database with its type and configuration (e.g., select options, formula expression). Present in API version 2022-06-28.").nullable().optional(),
66
+ properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Database schema as a map from property name to property schema object. Each property defines a column in the database with its type and configuration (e.g., select options, formula expression). Present in API version 2022-06-28.").nullable().optional(),
67
67
  public_url: zod.z.string().describe("The publicly shared URL of the database if it has been published to the web, or null.").nullable().optional(),
68
68
  description: zod.z.array(NotionFetchDatabase_RichTextObjectSchema).describe("Array of rich text objects representing the database description.").nullable().optional(),
69
69
  created_time: zod.z.string().describe("ISO 8601 timestamp when the database was created.").nullable(),
70
70
  data_sources: zod.z.array(NotionFetchDatabase_DataSourceSchema).describe("Array of child data source objects. For single-source databases, this contains one entry. Use the data source ID with /v1/data_sources APIs to query database contents or retrieve schema properties. Present in API version 2025-09-03.").nullable().optional(),
71
71
  last_edited_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),
72
72
  last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
73
- });
73
+ }).passthrough();
74
74
  const notionFetchDatabase = require_action.action("NOTION_FETCH_DATABASE", {
75
75
  slug: "notion-fetch-database",
76
76
  name: "Fetch Database",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-database.cjs","names":["z","action"],"sources":["../../src/actions/fetch-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchDatabaseInput = z.object({\n database_id: z.string().describe(\"Required. The unique identifier of the Notion database in UUID format (e.g., '2ec43c10-7ecd-8159-a8f4-ff16630df66c') or unhyphenated 32-char hex (e.g., '2ec43c107ecd8159a8f4ff16630df66c'). Must be a DATABASE ID, not a page ID. Linked databases are NOT supported - use the original source database ID. To find database IDs: use NOTION_SEARCH_NOTION_PAGE with filter_value='database', or extract from database URLs (notion.so/{database_id}).\"),\n});\nconst NotionFetchDatabase_IconSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n}).describe(\"Icon object for the database.\");\nconst NotionFetchDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\").nullable(),\n}).describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the cover image.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionFetchDatabase_CoverSchema = z.object({\n file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionFetchDatabase_ExternalFileSchema.nullable().optional(),\n}).describe(\"Cover image object for the database.\");\nconst NotionFetchDatabase_LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).describe(\"Link object for text content.\");\nconst NotionFetchDatabase_TextContentSchema = z.object({\n link: NotionFetchDatabase_LinkSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).describe(\"Text content object for rich text.\");\nconst NotionFetchDatabase_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', 'green_background').\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italicized.\").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 properties for rich text.\");\nconst NotionFetchDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL if the text is a link, or null.\").nullable().optional(),\n text: NotionFetchDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionFetchDatabase_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object for database title and description.\");\nconst NotionFetchDatabase_ParentSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page when type is 'page_id'.\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block 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 NotionFetchDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n object: z.string().describe(\"Always 'user'. Identifies this as a user object.\").nullable(),\n}).describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchDatabase_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\").nullable(),\n name: z.string().describe(\"Display name of the data source.\").nullable(),\n}).describe(\"Child data source object.\");\nexport const NotionFetchDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database in UUID format (36 characters).\").nullable(),\n url: z.string().describe(\"The URL of the database in the Notion workspace.\").nullable(),\n icon: NotionFetchDatabase_IconSchema.nullable().optional(),\n cover: NotionFetchDatabase_CoverSchema.nullable().optional(),\n title: z.array(NotionFetchDatabase_RichTextObjectSchema).describe(\"Array of rich text objects representing the database name/title.\"),\n object: z.string().describe(\"Always 'database'. Identifies this as a database object.\").nullable(),\n parent: NotionFetchDatabase_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database has been archived. Not present in API version 2025-09-03.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database has been moved to the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed as an inline block (true) or full-page database (false).\").nullable(),\n is_locked: z.boolean().describe(\"Whether the database is locked for editing. Present in API version 2025-09-03.\").nullable().optional(),\n created_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Database schema as a map from property name to property schema object. Each property defines a column in the database with its type and configuration (e.g., select options, formula expression). Present in API version 2022-06-28.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly shared URL of the database if it has been published to the web, or null.\").nullable().optional(),\n description: z.array(NotionFetchDatabase_RichTextObjectSchema).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(NotionFetchDatabase_DataSourceSchema).describe(\"Array of child data source objects. For single-source databases, this contains one entry. Use the data source ID with /v1/data_sources APIs to query database contents or retrieve schema properties. Present in API version 2025-09-03.\").nullable().optional(),\n last_edited_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n});\n\nexport const notionFetchDatabase = action(\"NOTION_FETCH_DATABASE\", {\n slug: \"notion-fetch-database\",\n name: \"Fetch Database\",\n description: \"Fetches a Notion database's structural metadata (properties, title, etc.) via its `database_id`, not the data entries; `database_id` must reference an existing database.\",\n input: NotionFetchDatabaseInput,\n output: NotionFetchDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ybAAyb,EAC5d,CAAC;AACD,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC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AC,SAAS;CAC1E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC1G,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-database.cjs","names":["z","action"],"sources":["../../src/actions/fetch-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchDatabaseInput = z.object({\n database_id: z.string().describe(\"Required. The unique identifier of the Notion database in UUID format (e.g., '2ec43c10-7ecd-8159-a8f4-ff16630df66c') or unhyphenated 32-char hex (e.g., '2ec43c107ecd8159a8f4ff16630df66c'). Must be a DATABASE ID, not a page ID. Linked databases are NOT supported - use the original source database ID. To find database IDs: use NOTION_SEARCH_NOTION_PAGE with filter_value='database', or extract from database URLs (notion.so/{database_id}).\"),\n});\nconst NotionFetchDatabase_IconSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n}).passthrough().describe(\"Icon object for the database.\");\nconst NotionFetchDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the cover image.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionFetchDatabase_CoverSchema = z.object({\n file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionFetchDatabase_ExternalFileSchema.nullable().optional(),\n}).passthrough().describe(\"Cover image object for the database.\");\nconst NotionFetchDatabase_LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().describe(\"Link object for text content.\");\nconst NotionFetchDatabase_TextContentSchema = z.object({\n link: NotionFetchDatabase_LinkSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content object for rich text.\");\nconst NotionFetchDatabase_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', 'green_background').\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italicized.\").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 properties for rich text.\");\nconst NotionFetchDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL if the text is a link, or null.\").nullable().optional(),\n text: NotionFetchDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionFetchDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for database title and description.\");\nconst NotionFetchDatabase_ParentSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page when type is 'page_id'.\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block 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 NotionFetchDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n object: z.string().describe(\"Always 'user'. Identifies this as a user object.\").nullable(),\n}).passthrough().describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchDatabase_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\").nullable(),\n name: z.string().describe(\"Display name of the data source.\").nullable(),\n}).passthrough().describe(\"Child data source object.\");\nexport const NotionFetchDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database in UUID format (36 characters).\").nullable(),\n url: z.string().describe(\"The URL of the database in the Notion workspace.\").nullable(),\n icon: NotionFetchDatabase_IconSchema.nullable().optional(),\n cover: NotionFetchDatabase_CoverSchema.nullable().optional(),\n title: z.array(NotionFetchDatabase_RichTextObjectSchema).describe(\"Array of rich text objects representing the database name/title.\"),\n object: z.string().describe(\"Always 'database'. Identifies this as a database object.\").nullable(),\n parent: NotionFetchDatabase_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database has been archived. Not present in API version 2025-09-03.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database has been moved to the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed as an inline block (true) or full-page database (false).\").nullable(),\n is_locked: z.boolean().describe(\"Whether the database is locked for editing. Present in API version 2025-09-03.\").nullable().optional(),\n created_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema as a map from property name to property schema object. Each property defines a column in the database with its type and configuration (e.g., select options, formula expression). Present in API version 2022-06-28.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly shared URL of the database if it has been published to the web, or null.\").nullable().optional(),\n description: z.array(NotionFetchDatabase_RichTextObjectSchema).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(NotionFetchDatabase_DataSourceSchema).describe(\"Array of child data source objects. For single-source databases, this contains one entry. Use the data source ID with /v1/data_sources APIs to query database contents or retrieve schema properties. Present in API version 2025-09-03.\").nullable().optional(),\n last_edited_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionFetchDatabase = action(\"NOTION_FETCH_DATABASE\", {\n slug: \"notion-fetch-database\",\n name: \"Fetch Database\",\n description: \"Fetches a Notion database's structural metadata (properties, title, etc.) via its `database_id`, not the data entries; `database_id` must reference an existing database.\",\n input: NotionFetchDatabaseInput,\n output: NotionFetchDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ybAAyb,EAC5d,CAAC;AACD,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAA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CAAC,SAAS;CACjK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrU,gBAAgB,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAC1E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,25 +10,25 @@ declare const NotionFetchDatabaseOutput: z.ZodObject<{
10
10
  icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
11
  type: z.ZodNullable<z.ZodString>;
12
12
  emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- }, z.core.$strip>>>;
13
+ }, z.core.$loose>>>;
14
14
  cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
15
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
16
  url: z.ZodNullable<z.ZodString>;
17
17
  expiry_time: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>>;
18
+ }, z.core.$loose>>>;
19
19
  type: z.ZodNullable<z.ZodString>;
20
20
  external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  url: z.ZodNullable<z.ZodString>;
22
- }, z.core.$strip>>>;
23
- }, z.core.$strip>>>;
22
+ }, z.core.$loose>>>;
23
+ }, z.core.$loose>>>;
24
24
  title: 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.ZodString>;
33
33
  plain_text: z.ZodNullable<z.ZodString>;
34
34
  annotations: z.ZodNullable<z.ZodObject<{
@@ -38,15 +38,15 @@ declare const NotionFetchDatabaseOutput: z.ZodObject<{
38
38
  italic: z.ZodNullable<z.ZodBoolean>;
39
39
  underline: z.ZodNullable<z.ZodBoolean>;
40
40
  strikethrough: z.ZodNullable<z.ZodBoolean>;
41
- }, z.core.$strip>>;
42
- }, z.core.$strip>>;
41
+ }, z.core.$loose>>;
42
+ }, z.core.$loose>>;
43
43
  object: z.ZodNullable<z.ZodString>;
44
44
  parent: z.ZodNullable<z.ZodObject<{
45
45
  type: z.ZodNullable<z.ZodString>;
46
46
  page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
49
- }, z.core.$strip>>;
49
+ }, z.core.$loose>>;
50
50
  archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
51
51
  in_trash: z.ZodNullable<z.ZodBoolean>;
52
52
  is_inline: z.ZodNullable<z.ZodBoolean>;
@@ -54,17 +54,17 @@ declare const NotionFetchDatabaseOutput: z.ZodObject<{
54
54
  created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
55
  id: z.ZodNullable<z.ZodString>;
56
56
  object: z.ZodNullable<z.ZodString>;
57
- }, z.core.$strip>>>;
58
- properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
57
+ }, z.core.$loose>>>;
58
+ properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
59
59
  public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
61
61
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
62
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
63
  link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
64
  url: z.ZodNullable<z.ZodString>;
65
- }, z.core.$strip>>>;
65
+ }, z.core.$loose>>>;
66
66
  content: z.ZodNullable<z.ZodString>;
67
- }, z.core.$strip>>>;
67
+ }, z.core.$loose>>>;
68
68
  type: z.ZodNullable<z.ZodString>;
69
69
  plain_text: z.ZodNullable<z.ZodString>;
70
70
  annotations: z.ZodNullable<z.ZodObject<{
@@ -74,22 +74,34 @@ declare const NotionFetchDatabaseOutput: z.ZodObject<{
74
74
  italic: z.ZodNullable<z.ZodBoolean>;
75
75
  underline: z.ZodNullable<z.ZodBoolean>;
76
76
  strikethrough: z.ZodNullable<z.ZodBoolean>;
77
- }, z.core.$strip>>;
78
- }, z.core.$strip>>>>;
77
+ }, z.core.$loose>>;
78
+ }, z.core.$loose>>>>;
79
79
  created_time: z.ZodNullable<z.ZodString>;
80
80
  data_sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
81
81
  id: z.ZodNullable<z.ZodString>;
82
82
  name: z.ZodNullable<z.ZodString>;
83
- }, z.core.$strip>>>>;
83
+ }, z.core.$loose>>>>;
84
84
  last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
85
85
  id: z.ZodNullable<z.ZodString>;
86
86
  object: z.ZodNullable<z.ZodString>;
87
- }, z.core.$strip>>>;
87
+ }, z.core.$loose>>>;
88
88
  last_edited_time: z.ZodNullable<z.ZodString>;
89
- }, z.core.$strip>;
89
+ }, z.core.$loose>;
90
90
  declare const notionFetchDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
91
91
  database_id: string;
92
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
92
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
93
+ connectionId: z.ZodString;
94
+ entityId: z.ZodString;
95
+ instanceId: z.ZodString;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ accessToken: z.ZodString;
98
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
99
+ connectionId: z.ZodString;
100
+ entityId: z.ZodString;
101
+ instanceId: z.ZodString;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ accessToken: z.ZodString;
104
+ }, z.core.$strip>>]>;
93
105
  //#endregion
94
106
  export { notionFetchDatabase };
95
107
  //# sourceMappingURL=fetch-database.d.cts.map