@keystrokehq/notion 0.0.16 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -41
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-multiple-page-content.cjs +80 -0
- package/dist/actions/add-multiple-page-content.cjs.map +1 -0
- package/dist/actions/add-multiple-page-content.d.cts +9 -0
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -0
- package/dist/actions/add-multiple-page-content.d.mts +9 -0
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -0
- package/dist/actions/add-multiple-page-content.mjs +79 -0
- package/dist/actions/add-multiple-page-content.mjs.map +1 -0
- package/dist/actions/append-code-blocks.cjs +446 -0
- package/dist/actions/append-code-blocks.cjs.map +1 -0
- package/dist/actions/append-code-blocks.d.cts +9 -0
- package/dist/actions/append-code-blocks.d.cts.map +1 -0
- package/dist/actions/append-code-blocks.d.mts +9 -0
- package/dist/actions/append-code-blocks.d.mts.map +1 -0
- package/dist/actions/append-code-blocks.mjs +445 -0
- package/dist/actions/append-code-blocks.mjs.map +1 -0
- package/dist/actions/append-layout-blocks.cjs +278 -0
- package/dist/actions/append-layout-blocks.cjs.map +1 -0
- package/dist/actions/append-layout-blocks.d.cts +9 -0
- package/dist/actions/append-layout-blocks.d.cts.map +1 -0
- package/dist/actions/append-layout-blocks.d.mts +9 -0
- package/dist/actions/append-layout-blocks.d.mts.map +1 -0
- package/dist/actions/append-layout-blocks.mjs +277 -0
- package/dist/actions/append-layout-blocks.mjs.map +1 -0
- package/dist/actions/append-media-blocks.cjs +491 -0
- package/dist/actions/append-media-blocks.cjs.map +1 -0
- package/dist/actions/append-media-blocks.d.cts +9 -0
- package/dist/actions/append-media-blocks.d.cts.map +1 -0
- package/dist/actions/append-media-blocks.d.mts +9 -0
- package/dist/actions/append-media-blocks.d.mts.map +1 -0
- package/dist/actions/append-media-blocks.mjs +490 -0
- package/dist/actions/append-media-blocks.mjs.map +1 -0
- package/dist/actions/append-table-blocks.cjs +267 -0
- package/dist/actions/append-table-blocks.cjs.map +1 -0
- package/dist/actions/append-table-blocks.d.cts +9 -0
- package/dist/actions/append-table-blocks.d.cts.map +1 -0
- package/dist/actions/append-table-blocks.d.mts +9 -0
- package/dist/actions/append-table-blocks.d.mts.map +1 -0
- package/dist/actions/append-table-blocks.mjs +266 -0
- package/dist/actions/append-table-blocks.mjs.map +1 -0
- package/dist/actions/append-task-blocks.cjs +420 -0
- package/dist/actions/append-task-blocks.cjs.map +1 -0
- package/dist/actions/append-task-blocks.d.cts +9 -0
- package/dist/actions/append-task-blocks.d.cts.map +1 -0
- package/dist/actions/append-task-blocks.d.mts +9 -0
- package/dist/actions/append-task-blocks.d.mts.map +1 -0
- package/dist/actions/append-task-blocks.mjs +419 -0
- package/dist/actions/append-task-blocks.mjs.map +1 -0
- package/dist/actions/append-text-blocks.cjs +604 -0
- package/dist/actions/append-text-blocks.cjs.map +1 -0
- package/dist/actions/append-text-blocks.d.cts +9 -0
- package/dist/actions/append-text-blocks.d.cts.map +1 -0
- package/dist/actions/append-text-blocks.d.mts +9 -0
- package/dist/actions/append-text-blocks.d.mts.map +1 -0
- package/dist/actions/append-text-blocks.mjs +603 -0
- package/dist/actions/append-text-blocks.mjs.map +1 -0
- package/dist/actions/archive-notion-page.cjs +104 -0
- package/dist/actions/archive-notion-page.cjs.map +1 -0
- package/dist/actions/archive-notion-page.d.cts +9 -0
- package/dist/actions/archive-notion-page.d.cts.map +1 -0
- package/dist/actions/archive-notion-page.d.mts +9 -0
- package/dist/actions/archive-notion-page.d.mts.map +1 -0
- package/dist/actions/archive-notion-page.mjs +103 -0
- package/dist/actions/archive-notion-page.mjs.map +1 -0
- package/dist/actions/create-comment.cjs +45 -0
- package/dist/actions/create-comment.cjs.map +1 -0
- package/dist/actions/create-comment.d.cts +9 -0
- package/dist/actions/create-comment.d.cts.map +1 -0
- package/dist/actions/create-comment.d.mts +9 -0
- package/dist/actions/create-comment.d.mts.map +1 -0
- package/dist/actions/create-comment.mjs +42 -0
- package/dist/actions/create-comment.mjs.map +1 -0
- package/dist/actions/create-database.cjs +125 -0
- package/dist/actions/create-database.cjs.map +1 -0
- package/dist/actions/create-database.d.cts +9 -0
- package/dist/actions/create-database.d.cts.map +1 -0
- package/dist/actions/create-database.d.mts +9 -0
- package/dist/actions/create-database.d.mts.map +1 -0
- package/dist/actions/create-database.mjs +124 -0
- package/dist/actions/create-database.mjs.map +1 -0
- package/dist/actions/create-file-upload.cjs +45 -0
- package/dist/actions/create-file-upload.cjs.map +1 -0
- package/dist/actions/create-file-upload.d.cts +9 -0
- package/dist/actions/create-file-upload.d.cts.map +1 -0
- package/dist/actions/create-file-upload.d.mts +9 -0
- package/dist/actions/create-file-upload.d.mts.map +1 -0
- package/dist/actions/create-file-upload.mjs +42 -0
- package/dist/actions/create-file-upload.mjs.map +1 -0
- package/dist/actions/create-notion-page.cjs +94 -0
- package/dist/actions/create-notion-page.cjs.map +1 -0
- package/dist/actions/create-notion-page.d.cts +9 -0
- package/dist/actions/create-notion-page.d.cts.map +1 -0
- package/dist/actions/create-notion-page.d.mts +9 -0
- package/dist/actions/create-notion-page.d.mts.map +1 -0
- package/dist/actions/create-notion-page.mjs +93 -0
- package/dist/actions/create-notion-page.mjs.map +1 -0
- package/dist/actions/delete-block.cjs +411 -0
- package/dist/actions/delete-block.cjs.map +1 -0
- package/dist/actions/delete-block.d.cts +9 -0
- package/dist/actions/delete-block.d.cts.map +1 -0
- package/dist/actions/delete-block.d.mts +9 -0
- package/dist/actions/delete-block.d.mts.map +1 -0
- package/dist/actions/delete-block.mjs +410 -0
- package/dist/actions/delete-block.mjs.map +1 -0
- package/dist/actions/duplicate-page.cjs +119 -0
- package/dist/actions/duplicate-page.cjs.map +1 -0
- package/dist/actions/duplicate-page.d.cts +9 -0
- package/dist/actions/duplicate-page.d.cts.map +1 -0
- package/dist/actions/duplicate-page.d.mts +9 -0
- package/dist/actions/duplicate-page.d.mts.map +1 -0
- package/dist/actions/duplicate-page.mjs +118 -0
- package/dist/actions/duplicate-page.mjs.map +1 -0
- package/dist/actions/fetch-all-block-contents.cjs +270 -0
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -0
- package/dist/actions/fetch-all-block-contents.d.cts +9 -0
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -0
- package/dist/actions/fetch-all-block-contents.d.mts +9 -0
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -0
- package/dist/actions/fetch-all-block-contents.mjs +269 -0
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -0
- package/dist/actions/fetch-block-contents.cjs +232 -0
- package/dist/actions/fetch-block-contents.cjs.map +1 -0
- package/dist/actions/fetch-block-contents.d.cts +9 -0
- package/dist/actions/fetch-block-contents.d.cts.map +1 -0
- package/dist/actions/fetch-block-contents.d.mts +9 -0
- package/dist/actions/fetch-block-contents.d.mts.map +1 -0
- package/dist/actions/fetch-block-contents.mjs +231 -0
- package/dist/actions/fetch-block-contents.mjs.map +1 -0
- package/dist/actions/fetch-block-metadata.cjs +406 -0
- package/dist/actions/fetch-block-metadata.cjs.map +1 -0
- package/dist/actions/fetch-block-metadata.d.cts +9 -0
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -0
- package/dist/actions/fetch-block-metadata.d.mts +9 -0
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -0
- package/dist/actions/fetch-block-metadata.mjs +405 -0
- package/dist/actions/fetch-block-metadata.mjs.map +1 -0
- package/dist/actions/fetch-comments.cjs +136 -0
- package/dist/actions/fetch-comments.cjs.map +1 -0
- package/dist/actions/fetch-comments.d.cts +9 -0
- package/dist/actions/fetch-comments.d.cts.map +1 -0
- package/dist/actions/fetch-comments.d.mts +9 -0
- package/dist/actions/fetch-comments.d.mts.map +1 -0
- package/dist/actions/fetch-comments.mjs +135 -0
- package/dist/actions/fetch-comments.mjs.map +1 -0
- package/dist/actions/fetch-data.cjs +227 -0
- package/dist/actions/fetch-data.cjs.map +1 -0
- package/dist/actions/fetch-data.d.cts +9 -0
- package/dist/actions/fetch-data.d.cts.map +1 -0
- package/dist/actions/fetch-data.d.mts +9 -0
- package/dist/actions/fetch-data.d.mts.map +1 -0
- package/dist/actions/fetch-data.mjs +226 -0
- package/dist/actions/fetch-data.mjs.map +1 -0
- package/dist/actions/fetch-database.cjs +84 -0
- package/dist/actions/fetch-database.cjs.map +1 -0
- package/dist/actions/fetch-database.d.cts +9 -0
- package/dist/actions/fetch-database.d.cts.map +1 -0
- package/dist/actions/fetch-database.d.mts +9 -0
- package/dist/actions/fetch-database.d.mts.map +1 -0
- package/dist/actions/fetch-database.mjs +83 -0
- package/dist/actions/fetch-database.mjs.map +1 -0
- package/dist/actions/fetch-row.cjs +133 -0
- package/dist/actions/fetch-row.cjs.map +1 -0
- package/dist/actions/fetch-row.d.cts +9 -0
- package/dist/actions/fetch-row.d.cts.map +1 -0
- package/dist/actions/fetch-row.d.mts +9 -0
- package/dist/actions/fetch-row.d.mts.map +1 -0
- package/dist/actions/fetch-row.mjs +132 -0
- package/dist/actions/fetch-row.mjs.map +1 -0
- package/dist/actions/get-about-user.cjs +46 -0
- package/dist/actions/get-about-user.cjs.map +1 -0
- package/dist/actions/get-about-user.d.cts +9 -0
- package/dist/actions/get-about-user.d.cts.map +1 -0
- package/dist/actions/get-about-user.d.mts +9 -0
- package/dist/actions/get-about-user.d.mts.map +1 -0
- package/dist/actions/get-about-user.mjs +45 -0
- package/dist/actions/get-about-user.mjs.map +1 -0
- package/dist/actions/get-page-markdown.cjs +25 -0
- package/dist/actions/get-page-markdown.cjs.map +1 -0
- package/dist/actions/get-page-markdown.d.cts +9 -0
- package/dist/actions/get-page-markdown.d.cts.map +1 -0
- package/dist/actions/get-page-markdown.d.mts +9 -0
- package/dist/actions/get-page-markdown.d.mts.map +1 -0
- package/dist/actions/get-page-markdown.mjs +22 -0
- package/dist/actions/get-page-markdown.mjs.map +1 -0
- package/dist/actions/get-page-property-action.cjs +21 -0
- package/dist/actions/get-page-property-action.cjs.map +1 -0
- package/dist/actions/get-page-property-action.d.cts +9 -0
- package/dist/actions/get-page-property-action.d.cts.map +1 -0
- package/dist/actions/get-page-property-action.d.mts +9 -0
- package/dist/actions/get-page-property-action.d.mts.map +1 -0
- package/dist/actions/get-page-property-action.mjs +18 -0
- package/dist/actions/get-page-property-action.mjs.map +1 -0
- package/dist/actions/index.cjs +91 -0
- package/dist/actions/index.d.cts +46 -0
- package/dist/actions/index.d.mts +46 -0
- package/dist/actions/index.mjs +46 -0
- package/dist/actions/insert-row-database.cjs +176 -0
- package/dist/actions/insert-row-database.cjs.map +1 -0
- package/dist/actions/insert-row-database.d.cts +9 -0
- package/dist/actions/insert-row-database.d.cts.map +1 -0
- package/dist/actions/insert-row-database.d.mts +9 -0
- package/dist/actions/insert-row-database.d.mts.map +1 -0
- package/dist/actions/insert-row-database.mjs +175 -0
- package/dist/actions/insert-row-database.mjs.map +1 -0
- package/dist/actions/insert-row-from-nl.cjs +27 -0
- package/dist/actions/insert-row-from-nl.cjs.map +1 -0
- package/dist/actions/insert-row-from-nl.d.cts +9 -0
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -0
- package/dist/actions/insert-row-from-nl.d.mts +9 -0
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -0
- package/dist/actions/insert-row-from-nl.mjs +24 -0
- package/dist/actions/insert-row-from-nl.mjs.map +1 -0
- package/dist/actions/list-data-source-templates.cjs +29 -0
- package/dist/actions/list-data-source-templates.cjs.map +1 -0
- package/dist/actions/list-data-source-templates.d.cts +9 -0
- package/dist/actions/list-data-source-templates.d.cts.map +1 -0
- package/dist/actions/list-data-source-templates.d.mts +9 -0
- package/dist/actions/list-data-source-templates.d.mts.map +1 -0
- package/dist/actions/list-data-source-templates.mjs +28 -0
- package/dist/actions/list-data-source-templates.mjs.map +1 -0
- package/dist/actions/list-file-uploads.cjs +43 -0
- package/dist/actions/list-file-uploads.cjs.map +1 -0
- package/dist/actions/list-file-uploads.d.cts +9 -0
- package/dist/actions/list-file-uploads.d.cts.map +1 -0
- package/dist/actions/list-file-uploads.d.mts +9 -0
- package/dist/actions/list-file-uploads.d.mts.map +1 -0
- package/dist/actions/list-file-uploads.mjs +42 -0
- package/dist/actions/list-file-uploads.mjs.map +1 -0
- package/dist/actions/list-users.cjs +58 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +57 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/move-page.cjs +110 -0
- package/dist/actions/move-page.cjs.map +1 -0
- package/dist/actions/move-page.d.cts +9 -0
- package/dist/actions/move-page.d.cts.map +1 -0
- package/dist/actions/move-page.d.mts +9 -0
- package/dist/actions/move-page.d.mts.map +1 -0
- package/dist/actions/move-page.mjs +109 -0
- package/dist/actions/move-page.mjs.map +1 -0
- package/dist/actions/query-data-source.cjs +118 -0
- package/dist/actions/query-data-source.cjs.map +1 -0
- package/dist/actions/query-data-source.d.cts +9 -0
- package/dist/actions/query-data-source.d.cts.map +1 -0
- package/dist/actions/query-data-source.d.mts +9 -0
- package/dist/actions/query-data-source.d.mts.map +1 -0
- package/dist/actions/query-data-source.mjs +117 -0
- package/dist/actions/query-data-source.mjs.map +1 -0
- package/dist/actions/query-database-with-filter.cjs +172 -0
- package/dist/actions/query-database-with-filter.cjs.map +1 -0
- package/dist/actions/query-database-with-filter.d.cts +9 -0
- package/dist/actions/query-database-with-filter.d.cts.map +1 -0
- package/dist/actions/query-database-with-filter.d.mts +9 -0
- package/dist/actions/query-database-with-filter.d.mts.map +1 -0
- package/dist/actions/query-database-with-filter.mjs +171 -0
- package/dist/actions/query-database-with-filter.mjs.map +1 -0
- package/dist/actions/query-database.cjs +171 -0
- package/dist/actions/query-database.cjs.map +1 -0
- package/dist/actions/query-database.d.cts +9 -0
- package/dist/actions/query-database.d.cts.map +1 -0
- package/dist/actions/query-database.d.mts +9 -0
- package/dist/actions/query-database.d.mts.map +1 -0
- package/dist/actions/query-database.mjs +170 -0
- package/dist/actions/query-database.mjs.map +1 -0
- package/dist/actions/replace-page-content.cjs +1175 -0
- package/dist/actions/replace-page-content.cjs.map +1 -0
- package/dist/actions/replace-page-content.d.cts +9 -0
- package/dist/actions/replace-page-content.d.cts.map +1 -0
- package/dist/actions/replace-page-content.d.mts +9 -0
- package/dist/actions/replace-page-content.d.mts.map +1 -0
- package/dist/actions/replace-page-content.mjs +1172 -0
- package/dist/actions/replace-page-content.mjs.map +1 -0
- package/dist/actions/retrieve-comment.cjs +16 -0
- package/dist/actions/retrieve-comment.cjs.map +1 -0
- package/dist/actions/retrieve-comment.d.cts +9 -0
- package/dist/actions/retrieve-comment.d.cts.map +1 -0
- package/dist/actions/retrieve-comment.d.mts +9 -0
- package/dist/actions/retrieve-comment.d.mts.map +1 -0
- package/dist/actions/retrieve-comment.mjs +13 -0
- package/dist/actions/retrieve-comment.mjs.map +1 -0
- package/dist/actions/retrieve-database-property.cjs +80 -0
- package/dist/actions/retrieve-database-property.cjs.map +1 -0
- package/dist/actions/retrieve-database-property.d.cts +9 -0
- package/dist/actions/retrieve-database-property.d.cts.map +1 -0
- package/dist/actions/retrieve-database-property.d.mts +9 -0
- package/dist/actions/retrieve-database-property.d.mts.map +1 -0
- package/dist/actions/retrieve-database-property.mjs +79 -0
- package/dist/actions/retrieve-database-property.mjs.map +1 -0
- package/dist/actions/retrieve-file-upload.cjs +34 -0
- package/dist/actions/retrieve-file-upload.cjs.map +1 -0
- package/dist/actions/retrieve-file-upload.d.cts +9 -0
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -0
- package/dist/actions/retrieve-file-upload.d.mts +9 -0
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -0
- package/dist/actions/retrieve-file-upload.mjs +31 -0
- package/dist/actions/retrieve-file-upload.mjs.map +1 -0
- package/dist/actions/retrieve-page.cjs +129 -0
- package/dist/actions/retrieve-page.cjs.map +1 -0
- package/dist/actions/retrieve-page.d.cts +9 -0
- package/dist/actions/retrieve-page.d.cts.map +1 -0
- package/dist/actions/retrieve-page.d.mts +9 -0
- package/dist/actions/retrieve-page.d.mts.map +1 -0
- package/dist/actions/retrieve-page.mjs +128 -0
- package/dist/actions/retrieve-page.mjs.map +1 -0
- package/dist/actions/search-notion-page.cjs +245 -0
- package/dist/actions/search-notion-page.cjs.map +1 -0
- package/dist/actions/search-notion-page.d.cts +9 -0
- package/dist/actions/search-notion-page.d.cts.map +1 -0
- package/dist/actions/search-notion-page.d.mts +9 -0
- package/dist/actions/search-notion-page.d.mts.map +1 -0
- package/dist/actions/search-notion-page.mjs +244 -0
- package/dist/actions/search-notion-page.mjs.map +1 -0
- package/dist/actions/send-file-upload.cjs +37 -0
- package/dist/actions/send-file-upload.cjs.map +1 -0
- package/dist/actions/send-file-upload.d.cts +9 -0
- package/dist/actions/send-file-upload.d.cts.map +1 -0
- package/dist/actions/send-file-upload.d.mts +9 -0
- package/dist/actions/send-file-upload.d.mts.map +1 -0
- package/dist/actions/send-file-upload.mjs +34 -0
- package/dist/actions/send-file-upload.mjs.map +1 -0
- package/dist/actions/update-block.cjs +250 -0
- package/dist/actions/update-block.cjs.map +1 -0
- package/dist/actions/update-block.d.cts +9 -0
- package/dist/actions/update-block.d.cts.map +1 -0
- package/dist/actions/update-block.d.mts +9 -0
- package/dist/actions/update-block.d.mts.map +1 -0
- package/dist/actions/update-block.mjs +249 -0
- package/dist/actions/update-block.mjs.map +1 -0
- package/dist/actions/update-page.cjs +115 -0
- package/dist/actions/update-page.cjs.map +1 -0
- package/dist/actions/update-page.d.cts +9 -0
- package/dist/actions/update-page.d.cts.map +1 -0
- package/dist/actions/update-page.d.mts +9 -0
- package/dist/actions/update-page.d.mts.map +1 -0
- package/dist/actions/update-page.mjs +114 -0
- package/dist/actions/update-page.mjs.map +1 -0
- package/dist/actions/update-row-database.cjs +149 -0
- package/dist/actions/update-row-database.cjs.map +1 -0
- package/dist/actions/update-row-database.d.cts +9 -0
- package/dist/actions/update-row-database.d.cts.map +1 -0
- package/dist/actions/update-row-database.d.mts +9 -0
- package/dist/actions/update-row-database.d.mts.map +1 -0
- package/dist/actions/update-row-database.mjs +148 -0
- package/dist/actions/update-row-database.mjs.map +1 -0
- package/dist/actions/update-schema-database.cjs +198 -0
- package/dist/actions/update-schema-database.cjs.map +1 -0
- package/dist/actions/update-schema-database.d.cts +9 -0
- package/dist/actions/update-schema-database.d.cts.map +1 -0
- package/dist/actions/update-schema-database.d.mts +9 -0
- package/dist/actions/update-schema-database.d.mts.map +1 -0
- package/dist/actions/update-schema-database.mjs +197 -0
- package/dist/actions/update-schema-database.mjs.map +1 -0
- package/dist/actions/upsert-row-database.cjs +141 -0
- package/dist/actions/upsert-row-database.cjs.map +1 -0
- package/dist/actions/upsert-row-database.d.cts +9 -0
- package/dist/actions/upsert-row-database.d.cts.map +1 -0
- package/dist/actions/upsert-row-database.d.mts +9 -0
- package/dist/actions/upsert-row-database.d.mts.map +1 -0
- package/dist/actions/upsert-row-database.mjs +140 -0
- package/dist/actions/upsert-row-database.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +96 -0
- package/dist/index.d.cts +48 -0
- package/dist/index.d.mts +48 -5
- package/dist/index.mjs +49 -7
- package/package.json +31 -53
- package/LICENSE +0 -21
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -4
- package/dist/notion-webhook.credential-set-5tXWld_L.d.mts +0 -53
- package/dist/notion-webhook.credential-set-D_tczh8M.mjs +0 -25
- package/dist/notion.credential-set-BfA-EG9z.mjs +0 -44
- package/dist/operations/index.d.mts +0 -1104
- package/dist/operations/index.mjs +0 -32
- package/dist/schemas/index.d.mts +0 -190
- package/dist/schemas/index.mjs +0 -3
- package/dist/search-D4wvUAjS.mjs +0 -277
- package/dist/update-page.operation-6lf05oVs.d.mts +0 -1147
- package/dist/update-page.operation-BQWJrCll.mjs +0 -794
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/fetch-row.ts
|
|
4
|
+
const NotionFetchRowInput = zod.z.object({ page_id: zod.z.string().describe("The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.") });
|
|
5
|
+
const NotionFetchRow_EmojiObjectSchema = zod.z.object({
|
|
6
|
+
type: zod.z.string(),
|
|
7
|
+
emoji: zod.z.string()
|
|
8
|
+
});
|
|
9
|
+
const NotionFetchRow_CustomEmojiDetailsSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji (UUID)."),
|
|
11
|
+
url: zod.z.string().describe("URL to the custom emoji image.").nullable().optional(),
|
|
12
|
+
name: zod.z.string().describe("Name of the custom emoji.").nullable().optional()
|
|
13
|
+
}).describe("Custom emoji details.");
|
|
14
|
+
const NotionFetchRow_CustomEmojiIconSchema = zod.z.object({
|
|
15
|
+
type: zod.z.string(),
|
|
16
|
+
custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable()
|
|
17
|
+
});
|
|
18
|
+
const NotionFetchRow_ExternalFileDetailsSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.") });
|
|
19
|
+
const NotionFetchRow_FileObjectExternalSchema = zod.z.object({
|
|
20
|
+
type: zod.z.string(),
|
|
21
|
+
external: NotionFetchRow_ExternalFileDetailsSchema.nullable()
|
|
22
|
+
});
|
|
23
|
+
const NotionFetchRow_FileUploadDetailsSchema = zod.z.object({ id: zod.z.string().describe("ID of the uploaded file (UUID).") });
|
|
24
|
+
const NotionFetchRow_FileObjectFileUploadSchema = zod.z.object({
|
|
25
|
+
type: zod.z.string(),
|
|
26
|
+
file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable()
|
|
27
|
+
});
|
|
28
|
+
const NotionFetchRow_NotionHostedFileDetailsSchema = zod.z.object({
|
|
29
|
+
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
30
|
+
expiry_time: zod.z.string().describe("Expiration time of the temporary URL (ISO 8601 format).")
|
|
31
|
+
});
|
|
32
|
+
const NotionFetchRow_FileObjectFileSchema = zod.z.object({
|
|
33
|
+
file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),
|
|
34
|
+
type: zod.z.string()
|
|
35
|
+
});
|
|
36
|
+
const NotionFetchRow_ParentDataSourceSchema = zod.z.object({
|
|
37
|
+
type: zod.z.string(),
|
|
38
|
+
data_source_id: zod.z.string().describe("Data source ID (UUID).")
|
|
39
|
+
});
|
|
40
|
+
const NotionFetchRow_ParentDatabaseSchema = zod.z.object({
|
|
41
|
+
type: zod.z.string(),
|
|
42
|
+
database_id: zod.z.string().describe("Database ID (UUID).")
|
|
43
|
+
});
|
|
44
|
+
const NotionFetchRow_ParentPageSchema = zod.z.object({
|
|
45
|
+
type: zod.z.string(),
|
|
46
|
+
page_id: zod.z.string().describe("Page ID (UUID).")
|
|
47
|
+
});
|
|
48
|
+
const NotionFetchRow_ParentWorkspaceSchema = zod.z.object({
|
|
49
|
+
type: zod.z.string(),
|
|
50
|
+
workspace: zod.z.boolean()
|
|
51
|
+
});
|
|
52
|
+
const NotionFetchRow_ParentBlockSchema = zod.z.object({
|
|
53
|
+
type: zod.z.string(),
|
|
54
|
+
block_id: zod.z.string().describe("Block ID (UUID).")
|
|
55
|
+
});
|
|
56
|
+
const NotionFetchRow_BotOwnerWorkspaceSchema = zod.z.object({
|
|
57
|
+
type: zod.z.string().describe("Always \"workspace\"."),
|
|
58
|
+
workspace: zod.z.boolean().describe("Boolean flag indicating workspace ownership.")
|
|
59
|
+
}).describe("Bot owner when owned by a workspace.");
|
|
60
|
+
const NotionFetchRow_PersonDetailsSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person (requires user capability).").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
|
|
61
|
+
const NotionFetchRow_BotOwnerUserDetailsSchema = zod.z.object({
|
|
62
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID)."),
|
|
63
|
+
name: zod.z.string().describe("Display name of the user.").nullable().optional(),
|
|
64
|
+
type: zod.z.string().describe("Type of user - always 'person' for bot owners.").nullable().optional(),
|
|
65
|
+
object: zod.z.string().describe("Always \"user\"."),
|
|
66
|
+
person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
|
|
67
|
+
avatar_url: zod.z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
68
|
+
}).describe("Simplified user details for bot owner to avoid circular reference.\n\nWhen a bot is owned by a user, this contains the basic info of that user.");
|
|
69
|
+
const NotionFetchRow_BotOwnerUserSchema = zod.z.object({
|
|
70
|
+
type: zod.z.string().describe("Always \"user\"."),
|
|
71
|
+
user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable()
|
|
72
|
+
}).describe("Bot owner when owned by a user.");
|
|
73
|
+
const NotionFetchRow_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum uploadable file size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
|
|
74
|
+
const NotionFetchRow_BotDetailsSchema = zod.z.object({
|
|
75
|
+
owner: zod.z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),
|
|
76
|
+
workspace_id: zod.z.string().describe("ID of bot's workspace.").nullable().optional(),
|
|
77
|
+
workspace_name: zod.z.string().describe("Workspace name if owner type is workspace; null otherwise.").nullable().optional(),
|
|
78
|
+
workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional()
|
|
79
|
+
}).describe("Bot-specific details when user type is 'bot'.");
|
|
80
|
+
const NotionFetchRow_PartialUserSchema = zod.z.object({
|
|
81
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID)."),
|
|
82
|
+
bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),
|
|
83
|
+
name: zod.z.string().describe("Display name of the user.").nullable().optional(),
|
|
84
|
+
type: zod.z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
|
|
85
|
+
object: zod.z.string().describe("Always \"user\"."),
|
|
86
|
+
person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
|
|
87
|
+
avatar_url: zod.z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
88
|
+
});
|
|
89
|
+
const NotionFetchRowOutput = zod.z.object({
|
|
90
|
+
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
91
|
+
url: zod.z.string().describe("The URL of the Notion page."),
|
|
92
|
+
icon: zod.z.union([
|
|
93
|
+
NotionFetchRow_EmojiObjectSchema,
|
|
94
|
+
NotionFetchRow_CustomEmojiIconSchema,
|
|
95
|
+
NotionFetchRow_FileObjectExternalSchema,
|
|
96
|
+
NotionFetchRow_FileObjectFileUploadSchema,
|
|
97
|
+
NotionFetchRow_FileObjectFileSchema
|
|
98
|
+
]).nullable().optional(),
|
|
99
|
+
cover: zod.z.union([
|
|
100
|
+
NotionFetchRow_FileObjectExternalSchema,
|
|
101
|
+
NotionFetchRow_FileObjectFileUploadSchema,
|
|
102
|
+
NotionFetchRow_FileObjectFileSchema
|
|
103
|
+
]).nullable().optional(),
|
|
104
|
+
object: zod.z.string().describe("Always \"page\"."),
|
|
105
|
+
parent: zod.z.union([
|
|
106
|
+
NotionFetchRow_ParentDataSourceSchema,
|
|
107
|
+
NotionFetchRow_ParentDatabaseSchema,
|
|
108
|
+
NotionFetchRow_ParentPageSchema,
|
|
109
|
+
NotionFetchRow_ParentWorkspaceSchema,
|
|
110
|
+
NotionFetchRow_ParentBlockSchema
|
|
111
|
+
]),
|
|
112
|
+
archived: zod.z.boolean().describe("Whether the page is archived."),
|
|
113
|
+
in_trash: zod.z.boolean().describe("Whether the page is in the trash."),
|
|
114
|
+
is_locked: zod.z.boolean().nullable().optional(),
|
|
115
|
+
created_by: NotionFetchRow_PartialUserSchema.nullable(),
|
|
116
|
+
properties: zod.z.object({}).describe("Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data."),
|
|
117
|
+
public_url: zod.z.string().describe("The public page URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
118
|
+
request_id: zod.z.string().nullable().optional(),
|
|
119
|
+
created_time: zod.z.string().describe("Date and time when this page was created (ISO 8601 format)."),
|
|
120
|
+
last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),
|
|
121
|
+
last_edited_time: zod.z.string().describe("Date and time when this page was last edited (ISO 8601 format).")
|
|
122
|
+
}).describe("NOTION_FETCH_ROW - Response Schema\n\nResponse for fetching a Notion database row (page). Returns the page object directly\nfrom the Notion API without additional wrapping, preserving all fields and structures\nfrom Notion's official Retrieve a Page response.");
|
|
123
|
+
const notionFetchRow = require_action.action("NOTION_FETCH_ROW", {
|
|
124
|
+
slug: "notion-fetch-row",
|
|
125
|
+
name: "Fetch database row",
|
|
126
|
+
description: "Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.",
|
|
127
|
+
input: NotionFetchRowInput,
|
|
128
|
+
output: NotionFetchRowOutput
|
|
129
|
+
});
|
|
130
|
+
//#endregion
|
|
131
|
+
exports.notionFetchRow = notionFetchRow;
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=fetch-row.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-row.cjs","names":["z","action"],"sources":["../../src/actions/fetch-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchRowInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n emoji: z.string(),\n});\nconst NotionFetchRow_CustomEmojiDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\"),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionFetchRow_ExternalFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n});\nconst NotionFetchRow_FileObjectExternalSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionFetchRow_FileUploadDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\"),\n});\nconst NotionFetchRow_FileObjectFileUploadSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n});\nconst NotionFetchRow_NotionHostedFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\"),\n});\nconst NotionFetchRow_FileObjectFileSchema: z.ZodTypeAny = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string(),\n});\nconst NotionFetchRow_ParentDataSourceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\"),\n});\nconst NotionFetchRow_ParentDatabaseSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n database_id: z.string().describe(\"Database ID (UUID).\"),\n});\nconst NotionFetchRow_ParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n page_id: z.string().describe(\"Page ID (UUID).\"),\n});\nconst NotionFetchRow_ParentWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n});\nconst NotionFetchRow_ParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n block_id: z.string().describe(\"Block ID (UUID).\"),\n});\nconst NotionFetchRow_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\"),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\"),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n});\nexport const NotionFetchRowOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n url: z.string().describe(\"The URL of the Notion page.\"),\n icon: z.union([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\"),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\"),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\"),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionFetchRow_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\"),\n last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\"),\n}).describe(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9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iC,SAAS;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI;CAClK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,gBAAgB,iCAAiC,SAAS;CAC1D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACzG,CAAC,CAAC,CAAC,SAAS,qQAAqQ;AAEjR,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-row.d.ts
|
|
4
|
+
declare const NotionFetchRowInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionFetchRowOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionFetchRow: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionFetchRow };
|
|
9
|
+
//# sourceMappingURL=fetch-row.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-row.d.cts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAElC;AAAA,cA6FW,oBAAA,EAAsB,CAAA,CAAE,UAiB6O;AAAA,cAErQ,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-row.d.ts
|
|
4
|
+
declare const NotionFetchRowInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionFetchRowOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionFetchRow: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionFetchRow };
|
|
9
|
+
//# sourceMappingURL=fetch-row.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-row.d.mts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAElC;AAAA,cA6FW,oBAAA,EAAsB,CAAA,CAAE,UAiB6O;AAAA,cAErQ,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/fetch-row.ts
|
|
4
|
+
const NotionFetchRowInput = z.object({ page_id: z.string().describe("The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.") });
|
|
5
|
+
const NotionFetchRow_EmojiObjectSchema = z.object({
|
|
6
|
+
type: z.string(),
|
|
7
|
+
emoji: z.string()
|
|
8
|
+
});
|
|
9
|
+
const NotionFetchRow_CustomEmojiDetailsSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier for the custom emoji (UUID)."),
|
|
11
|
+
url: z.string().describe("URL to the custom emoji image.").nullable().optional(),
|
|
12
|
+
name: z.string().describe("Name of the custom emoji.").nullable().optional()
|
|
13
|
+
}).describe("Custom emoji details.");
|
|
14
|
+
const NotionFetchRow_CustomEmojiIconSchema = z.object({
|
|
15
|
+
type: z.string(),
|
|
16
|
+
custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable()
|
|
17
|
+
});
|
|
18
|
+
const NotionFetchRow_ExternalFileDetailsSchema = z.object({ url: z.string().describe("URL to the externally hosted file.") });
|
|
19
|
+
const NotionFetchRow_FileObjectExternalSchema = z.object({
|
|
20
|
+
type: z.string(),
|
|
21
|
+
external: NotionFetchRow_ExternalFileDetailsSchema.nullable()
|
|
22
|
+
});
|
|
23
|
+
const NotionFetchRow_FileUploadDetailsSchema = z.object({ id: z.string().describe("ID of the uploaded file (UUID).") });
|
|
24
|
+
const NotionFetchRow_FileObjectFileUploadSchema = z.object({
|
|
25
|
+
type: z.string(),
|
|
26
|
+
file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable()
|
|
27
|
+
});
|
|
28
|
+
const NotionFetchRow_NotionHostedFileDetailsSchema = z.object({
|
|
29
|
+
url: z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
30
|
+
expiry_time: z.string().describe("Expiration time of the temporary URL (ISO 8601 format).")
|
|
31
|
+
});
|
|
32
|
+
const NotionFetchRow_FileObjectFileSchema = z.object({
|
|
33
|
+
file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),
|
|
34
|
+
type: z.string()
|
|
35
|
+
});
|
|
36
|
+
const NotionFetchRow_ParentDataSourceSchema = z.object({
|
|
37
|
+
type: z.string(),
|
|
38
|
+
data_source_id: z.string().describe("Data source ID (UUID).")
|
|
39
|
+
});
|
|
40
|
+
const NotionFetchRow_ParentDatabaseSchema = z.object({
|
|
41
|
+
type: z.string(),
|
|
42
|
+
database_id: z.string().describe("Database ID (UUID).")
|
|
43
|
+
});
|
|
44
|
+
const NotionFetchRow_ParentPageSchema = z.object({
|
|
45
|
+
type: z.string(),
|
|
46
|
+
page_id: z.string().describe("Page ID (UUID).")
|
|
47
|
+
});
|
|
48
|
+
const NotionFetchRow_ParentWorkspaceSchema = z.object({
|
|
49
|
+
type: z.string(),
|
|
50
|
+
workspace: z.boolean()
|
|
51
|
+
});
|
|
52
|
+
const NotionFetchRow_ParentBlockSchema = z.object({
|
|
53
|
+
type: z.string(),
|
|
54
|
+
block_id: z.string().describe("Block ID (UUID).")
|
|
55
|
+
});
|
|
56
|
+
const NotionFetchRow_BotOwnerWorkspaceSchema = z.object({
|
|
57
|
+
type: z.string().describe("Always \"workspace\"."),
|
|
58
|
+
workspace: z.boolean().describe("Boolean flag indicating workspace ownership.")
|
|
59
|
+
}).describe("Bot owner when owned by a workspace.");
|
|
60
|
+
const NotionFetchRow_PersonDetailsSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability).").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
|
|
61
|
+
const NotionFetchRow_BotOwnerUserDetailsSchema = z.object({
|
|
62
|
+
id: z.string().describe("Unique identifier for the user (UUID)."),
|
|
63
|
+
name: z.string().describe("Display name of the user.").nullable().optional(),
|
|
64
|
+
type: z.string().describe("Type of user - always 'person' for bot owners.").nullable().optional(),
|
|
65
|
+
object: z.string().describe("Always \"user\"."),
|
|
66
|
+
person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
|
|
67
|
+
avatar_url: z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
68
|
+
}).describe("Simplified user details for bot owner to avoid circular reference.\n\nWhen a bot is owned by a user, this contains the basic info of that user.");
|
|
69
|
+
const NotionFetchRow_BotOwnerUserSchema = z.object({
|
|
70
|
+
type: z.string().describe("Always \"user\"."),
|
|
71
|
+
user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable()
|
|
72
|
+
}).describe("Bot owner when owned by a user.");
|
|
73
|
+
const NotionFetchRow_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum uploadable file size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
|
|
74
|
+
const NotionFetchRow_BotDetailsSchema = z.object({
|
|
75
|
+
owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),
|
|
76
|
+
workspace_id: z.string().describe("ID of bot's workspace.").nullable().optional(),
|
|
77
|
+
workspace_name: z.string().describe("Workspace name if owner type is workspace; null otherwise.").nullable().optional(),
|
|
78
|
+
workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional()
|
|
79
|
+
}).describe("Bot-specific details when user type is 'bot'.");
|
|
80
|
+
const NotionFetchRow_PartialUserSchema = z.object({
|
|
81
|
+
id: z.string().describe("Unique identifier for the user (UUID)."),
|
|
82
|
+
bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),
|
|
83
|
+
name: z.string().describe("Display name of the user.").nullable().optional(),
|
|
84
|
+
type: z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
|
|
85
|
+
object: z.string().describe("Always \"user\"."),
|
|
86
|
+
person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
|
|
87
|
+
avatar_url: z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
88
|
+
});
|
|
89
|
+
const notionFetchRow = action("NOTION_FETCH_ROW", {
|
|
90
|
+
slug: "notion-fetch-row",
|
|
91
|
+
name: "Fetch database row",
|
|
92
|
+
description: "Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.",
|
|
93
|
+
input: NotionFetchRowInput,
|
|
94
|
+
output: z.object({
|
|
95
|
+
id: z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
96
|
+
url: z.string().describe("The URL of the Notion page."),
|
|
97
|
+
icon: z.union([
|
|
98
|
+
NotionFetchRow_EmojiObjectSchema,
|
|
99
|
+
NotionFetchRow_CustomEmojiIconSchema,
|
|
100
|
+
NotionFetchRow_FileObjectExternalSchema,
|
|
101
|
+
NotionFetchRow_FileObjectFileUploadSchema,
|
|
102
|
+
NotionFetchRow_FileObjectFileSchema
|
|
103
|
+
]).nullable().optional(),
|
|
104
|
+
cover: z.union([
|
|
105
|
+
NotionFetchRow_FileObjectExternalSchema,
|
|
106
|
+
NotionFetchRow_FileObjectFileUploadSchema,
|
|
107
|
+
NotionFetchRow_FileObjectFileSchema
|
|
108
|
+
]).nullable().optional(),
|
|
109
|
+
object: z.string().describe("Always \"page\"."),
|
|
110
|
+
parent: z.union([
|
|
111
|
+
NotionFetchRow_ParentDataSourceSchema,
|
|
112
|
+
NotionFetchRow_ParentDatabaseSchema,
|
|
113
|
+
NotionFetchRow_ParentPageSchema,
|
|
114
|
+
NotionFetchRow_ParentWorkspaceSchema,
|
|
115
|
+
NotionFetchRow_ParentBlockSchema
|
|
116
|
+
]),
|
|
117
|
+
archived: z.boolean().describe("Whether the page is archived."),
|
|
118
|
+
in_trash: z.boolean().describe("Whether the page is in the trash."),
|
|
119
|
+
is_locked: z.boolean().nullable().optional(),
|
|
120
|
+
created_by: NotionFetchRow_PartialUserSchema.nullable(),
|
|
121
|
+
properties: z.object({}).describe("Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data."),
|
|
122
|
+
public_url: z.string().describe("The public page URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
123
|
+
request_id: z.string().nullable().optional(),
|
|
124
|
+
created_time: z.string().describe("Date and time when this page was created (ISO 8601 format)."),
|
|
125
|
+
last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),
|
|
126
|
+
last_edited_time: z.string().describe("Date and time when this page was last edited (ISO 8601 format).")
|
|
127
|
+
}).describe("NOTION_FETCH_ROW - Response Schema\n\nResponse for fetching a Notion database row (page). Returns the page object directly\nfrom the Notion API without additional wrapping, preserving all fields and structures\nfrom Notion's official Retrieve a Page response.")
|
|
128
|
+
});
|
|
129
|
+
//#endregion
|
|
130
|
+
export { notionFetchRow };
|
|
131
|
+
|
|
132
|
+
//# sourceMappingURL=fetch-row.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-row.mjs","names":[],"sources":["../../src/actions/fetch-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchRowInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n emoji: z.string(),\n});\nconst NotionFetchRow_CustomEmojiDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\"),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionFetchRow_ExternalFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n});\nconst NotionFetchRow_FileObjectExternalSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionFetchRow_FileUploadDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\"),\n});\nconst NotionFetchRow_FileObjectFileUploadSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n});\nconst NotionFetchRow_NotionHostedFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\"),\n});\nconst NotionFetchRow_FileObjectFileSchema: z.ZodTypeAny = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string(),\n});\nconst NotionFetchRow_ParentDataSourceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\"),\n});\nconst NotionFetchRow_ParentDatabaseSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n database_id: z.string().describe(\"Database ID (UUID).\"),\n});\nconst NotionFetchRow_ParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n page_id: z.string().describe(\"Page ID (UUID).\"),\n});\nconst NotionFetchRow_ParentWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n});\nconst NotionFetchRow_ParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n block_id: z.string().describe(\"Block ID (UUID).\"),\n});\nconst NotionFetchRow_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\"),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\"),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n});\nexport const NotionFetchRowOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n url: z.string().describe(\"The URL of the Notion page.\"),\n icon: z.union([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\"),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\"),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\"),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionFetchRow_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\"),\n last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\"),\n}).describe(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO;CACf,OAAO,EAAE,OAAO;AAClB,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,C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EAAE,MAAM;GAAC;GAAkC;GAAsC;GAAyC;GAA2C;EAAmC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrO,OAAO,EAAE,MAAM;GAAC;GAAyC;GAA2C;EAAmC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC9C,QAAQ,EAAE,MAAM;GAAC;GAAuC;GAAqC;GAAiC;GAAsC;EAAgC,CAAC;EACrM,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;EAC9D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;EAClE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,YAAY,iCAAiC,SAAS;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI;EAClK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC/F,gBAAgB,iCAAiC,SAAS;EAC1D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzG,CAAC,CAAC,CAAC,SAAS,qQAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-about-user.ts
|
|
4
|
+
const NotionGetAboutUserInput = zod.z.object({ user_id: zod.z.string().describe("The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.") });
|
|
5
|
+
const NotionGetAboutUser_PersonInfoSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.").nullable().optional() });
|
|
6
|
+
const NotionGetAboutUser_NestedPersonUserSchema = zod.z.object({
|
|
7
|
+
id: zod.z.string().describe("Unique identifier of the person who authorized the integration."),
|
|
8
|
+
name: zod.z.string().describe("Person’s display name, if available.").nullable().optional(),
|
|
9
|
+
type: zod.z.string().describe("Type of nested user; for an authorizing human this is \"person\"."),
|
|
10
|
+
object: zod.z.string().describe("Always \"user\" for the nested user object."),
|
|
11
|
+
person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),
|
|
12
|
+
avatar_url: zod.z.string().describe("URL of the person's avatar image, if set.").nullable().optional()
|
|
13
|
+
});
|
|
14
|
+
const NotionGetAboutUser_BotOwnerSchema = zod.z.object({
|
|
15
|
+
type: zod.z.enum(["workspace", "user"]).describe("The type of owner for this bot."),
|
|
16
|
+
user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),
|
|
17
|
+
workspace: zod.z.boolean().describe("Present and true when the owner.type is \"workspace\".").nullable().optional()
|
|
18
|
+
});
|
|
19
|
+
const NotionGetAboutUser_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum allowable size for a file upload in bytes.").nullable().optional() });
|
|
20
|
+
const NotionGetAboutUser_BotInfoSchema = zod.z.object({
|
|
21
|
+
owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),
|
|
22
|
+
workspace_id: zod.z.string().describe("Identifier of the bot's workspace, when available.").nullable().optional(),
|
|
23
|
+
workspace_name: zod.z.string().describe("Name of the workspace that owns the bot when owner.type is \"workspace\". If owner.type is \"user\", this is null.").nullable().optional(),
|
|
24
|
+
workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional()
|
|
25
|
+
});
|
|
26
|
+
const NotionGetAboutUserOutput = zod.z.object({
|
|
27
|
+
id: zod.z.string().describe("Unique identifier for this user."),
|
|
28
|
+
bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),
|
|
29
|
+
name: zod.z.string().describe("User's display name. May be null or omitted.").nullable().optional(),
|
|
30
|
+
type: zod.z.enum(["person", "bot"]).describe("Type of the user; \"person\" or \"bot\"."),
|
|
31
|
+
object: zod.z.string().describe("Always the string \"user\"."),
|
|
32
|
+
person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),
|
|
33
|
+
avatar_url: zod.z.string().describe("URL of the user's avatar image, if set.").nullable().optional(),
|
|
34
|
+
request_id: zod.z.string().describe("The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.").nullable().optional()
|
|
35
|
+
});
|
|
36
|
+
const notionGetAboutUser = require_action.action("NOTION_GET_ABOUT_USER", {
|
|
37
|
+
slug: "notion-get-about-user",
|
|
38
|
+
name: "Get about user",
|
|
39
|
+
description: "Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.",
|
|
40
|
+
input: NotionGetAboutUserInput,
|
|
41
|
+
output: NotionGetAboutUserOutput
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.notionGetAboutUser = notionGetAboutUser;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=get-about-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-about-user.cjs","names":["z","action"],"sources":["../../src/actions/get-about-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetAboutUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n});\nconst NotionGetAboutUser_NestedPersonUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\"),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\"),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\"),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotOwnerSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\"),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n});\nconst NotionGetAboutUser_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotInfoSchema: z.ZodTypeAny = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n});\nexport const NotionGetAboutUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this user.\"),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\"),\n object: z.string().describe(\"Always the string \\\"user\\\".\"),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n});\n\nexport const notionGetAboutUser = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAChK,CAAC;AACD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO,EACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7K,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACzE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,KAAK,CAAC,aAAa,MAAM,CAAC,CAAC,CAAC,SAAS,iCAAiC;CAC9E,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC;AACD,MAAM,2CAAyDA,IAAAA,EAAE,OAAO,EACtE,+BAA+BA,IAA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+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-about-user.d.ts
|
|
4
|
+
declare const NotionGetAboutUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionGetAboutUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionGetAboutUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionGetAboutUser };
|
|
9
|
+
//# sourceMappingURL=get-about-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-about-user.d.cts","names":[],"sources":["../../src/actions/get-about-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cA0BW,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-about-user.d.ts
|
|
4
|
+
declare const NotionGetAboutUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionGetAboutUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionGetAboutUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionGetAboutUser };
|
|
9
|
+
//# sourceMappingURL=get-about-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-about-user.d.mts","names":[],"sources":["../../src/actions/get-about-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cA0BW,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-about-user.ts
|
|
4
|
+
const NotionGetAboutUserInput = z.object({ user_id: z.string().describe("The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.") });
|
|
5
|
+
const NotionGetAboutUser_PersonInfoSchema = z.object({ email: z.string().describe("Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.").nullable().optional() });
|
|
6
|
+
const NotionGetAboutUser_NestedPersonUserSchema = z.object({
|
|
7
|
+
id: z.string().describe("Unique identifier of the person who authorized the integration."),
|
|
8
|
+
name: z.string().describe("Person’s display name, if available.").nullable().optional(),
|
|
9
|
+
type: z.string().describe("Type of nested user; for an authorizing human this is \"person\"."),
|
|
10
|
+
object: z.string().describe("Always \"user\" for the nested user object."),
|
|
11
|
+
person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),
|
|
12
|
+
avatar_url: z.string().describe("URL of the person's avatar image, if set.").nullable().optional()
|
|
13
|
+
});
|
|
14
|
+
const NotionGetAboutUser_BotOwnerSchema = z.object({
|
|
15
|
+
type: z.enum(["workspace", "user"]).describe("The type of owner for this bot."),
|
|
16
|
+
user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),
|
|
17
|
+
workspace: z.boolean().describe("Present and true when the owner.type is \"workspace\".").nullable().optional()
|
|
18
|
+
});
|
|
19
|
+
const NotionGetAboutUser_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum allowable size for a file upload in bytes.").nullable().optional() });
|
|
20
|
+
const NotionGetAboutUser_BotInfoSchema = z.object({
|
|
21
|
+
owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),
|
|
22
|
+
workspace_id: z.string().describe("Identifier of the bot's workspace, when available.").nullable().optional(),
|
|
23
|
+
workspace_name: z.string().describe("Name of the workspace that owns the bot when owner.type is \"workspace\". If owner.type is \"user\", this is null.").nullable().optional(),
|
|
24
|
+
workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional()
|
|
25
|
+
});
|
|
26
|
+
const notionGetAboutUser = action("NOTION_GET_ABOUT_USER", {
|
|
27
|
+
slug: "notion-get-about-user",
|
|
28
|
+
name: "Get about user",
|
|
29
|
+
description: "Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.",
|
|
30
|
+
input: NotionGetAboutUserInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
id: z.string().describe("Unique identifier for this user."),
|
|
33
|
+
bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),
|
|
34
|
+
name: z.string().describe("User's display name. May be null or omitted.").nullable().optional(),
|
|
35
|
+
type: z.enum(["person", "bot"]).describe("Type of the user; \"person\" or \"bot\"."),
|
|
36
|
+
object: z.string().describe("Always the string \"user\"."),
|
|
37
|
+
person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),
|
|
38
|
+
avatar_url: z.string().describe("URL of the user's avatar image, if set.").nullable().optional(),
|
|
39
|
+
request_id: z.string().describe("The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.").nullable().optional()
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { notionGetAboutUser };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=get-about-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-about-user.mjs","names":[],"sources":["../../src/actions/get-about-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetAboutUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n});\nconst NotionGetAboutUser_NestedPersonUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\"),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\"),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\"),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotOwnerSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\"),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n});\nconst NotionGetAboutUser_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n});\nconst NotionGetAboutUser_BotInfoSchema: z.ZodTypeAny = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n});\nexport const NotionGetAboutUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this user.\"),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\"),\n object: z.string().describe(\"Always the string \\\"user\\\".\"),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n});\n\nexport const notionGetAboutUser = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAChK,CAAC;AACD,MAAM,sCAAoD,EAAE,OAAO,EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7K,CAAC;AACD,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACzE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,oCAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,KAAK,CAAC,aAAa,MAAM,CAAC,CAAC,CAAC,SAAS,iCAAiC;CAC9E,MAAM,0CAA0C,SAAS,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U;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-page-markdown.ts
|
|
4
|
+
const NotionGetPageMarkdownInput = zod.z.object({
|
|
5
|
+
page_id: zod.z.string().describe("The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead."),
|
|
6
|
+
include_transcript: zod.z.boolean().describe("Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.").optional()
|
|
7
|
+
});
|
|
8
|
+
const NotionGetPageMarkdownOutput = zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
10
|
+
object: zod.z.string().describe("Always \"page_markdown\"."),
|
|
11
|
+
markdown: zod.z.string().describe("Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs."),
|
|
12
|
+
truncated: zod.z.boolean().describe("Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown."),
|
|
13
|
+
unknown_block_ids: zod.z.array(zod.z.string()).describe("Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.")
|
|
14
|
+
}).describe("Response for retrieving a Notion page's content as Notion-flavored Markdown.\nReturns the full page content rendered as markdown in a single API call.");
|
|
15
|
+
const notionGetPageMarkdown = require_action.action("NOTION_GET_PAGE_MARKDOWN", {
|
|
16
|
+
slug: "notion-get-page-markdown",
|
|
17
|
+
name: "Get page markdown",
|
|
18
|
+
description: "Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.",
|
|
19
|
+
input: NotionGetPageMarkdownInput,
|
|
20
|
+
output: NotionGetPageMarkdownOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.notionGetPageMarkdown = notionGetPageMarkdown;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=get-page-markdown.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-page-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetPageMarkdownInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead.\"),\n include_transcript: z.boolean().describe(\"Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.\").optional(),\n});\nexport const NotionGetPageMarkdownOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n object: z.string().describe(\"Always \\\"page_markdown\\\".\"),\n markdown: z.string().describe(\"Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs.\"),\n truncated: z.boolean().describe(\"Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown.\"),\n unknown_block_ids: z.array(z.string()).describe(\"Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.\"),\n}).describe(\"Response for retrieving a Notion page's content as Notion-flavored Markdown.\\nReturns the full page content rendered as markdown in a single API call.\");\n\nexport const notionGetPageMarkdown = action(\"NOTION_GET_PAGE_MARKDOWN\", {\n slug: \"notion-get-page-markdown\",\n name: \"Get page markdown\",\n description: \"Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.\",\n input: NotionGetPageMarkdownInput,\n output: NotionGetPageMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+cAA+c;CAC5e,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;CAChN,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I;CAC/K,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oHAAoH;AACtK,CAAC,CAAC,CAAC,SAAS,wJAAwJ;AAEpK,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-page-markdown.d.ts
|
|
4
|
+
declare const NotionGetPageMarkdownInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionGetPageMarkdownOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionGetPageMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionGetPageMarkdown };
|
|
9
|
+
//# sourceMappingURL=get-page-markdown.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-markdown.d.cts","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAMyH;AAAA,cAExJ,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-page-markdown.d.ts
|
|
4
|
+
declare const NotionGetPageMarkdownInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionGetPageMarkdownOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionGetPageMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionGetPageMarkdown };
|
|
9
|
+
//# sourceMappingURL=get-page-markdown.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-markdown.d.mts","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAMyH;AAAA,cAExJ,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const notionGetPageMarkdown = action("NOTION_GET_PAGE_MARKDOWN", {
|
|
4
|
+
slug: "notion-get-page-markdown",
|
|
5
|
+
name: "Get page markdown",
|
|
6
|
+
description: "Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
page_id: z.string().describe("The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead."),
|
|
9
|
+
include_transcript: z.boolean().describe("Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.").optional()
|
|
10
|
+
}),
|
|
11
|
+
output: z.object({
|
|
12
|
+
id: z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
13
|
+
object: z.string().describe("Always \"page_markdown\"."),
|
|
14
|
+
markdown: z.string().describe("Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs."),
|
|
15
|
+
truncated: z.boolean().describe("Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown."),
|
|
16
|
+
unknown_block_ids: z.array(z.string()).describe("Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.")
|
|
17
|
+
}).describe("Response for retrieving a Notion page's content as Notion-flavored Markdown.\nReturns the full page content rendered as markdown in a single API call.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { notionGetPageMarkdown };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=get-page-markdown.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-markdown.mjs","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetPageMarkdownInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead.\"),\n include_transcript: z.boolean().describe(\"Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.\").optional(),\n});\nexport const NotionGetPageMarkdownOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n object: z.string().describe(\"Always \\\"page_markdown\\\".\"),\n markdown: z.string().describe(\"Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs.\"),\n truncated: z.boolean().describe(\"Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown.\"),\n unknown_block_ids: z.array(z.string()).describe(\"Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.\"),\n}).describe(\"Response for retrieving a Notion page's content as Notion-flavored Markdown.\\nReturns the full page content rendered as markdown in a single API call.\");\n\nexport const notionGetPageMarkdown = action(\"NOTION_GET_PAGE_MARKDOWN\", {\n slug: \"notion-get-page-markdown\",\n name: \"Get page markdown\",\n description: \"Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.\",\n input: NotionGetPageMarkdownInput,\n output: NotionGetPageMarkdownOutput,\n});\n"],"mappings":";;AAgBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+cAA+c;EAC5e,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,CAaS;CACP,QAbuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;EAChN,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I;EAC/K,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oHAAoH;CACtK,CAAC,CAAC,CAAC,SAAS,wJAOF;AACV,CAAC"}
|