@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 @@
|
|
|
1
|
+
{"version":3,"file":"list-file-uploads.mjs","names":[],"sources":["../../src/actions/list-file-uploads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListFileUploadsInput: z.ZodTypeAny = z.object({\n page_size: z.number().int().describe(\"Controls how many items the response includes from the complete list. Maximum 100, default 100. The actual response may contain fewer results than requested.\").optional(),\n start_cursor: z.string().describe(\"Accepts a next_cursor value from a previous response. Treat as an opaque value to retrieve subsequent result pages. If omitted, begins from the list's start.\").optional(),\n});\nconst NotionListFileUploads_FileUploadObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload resource.\"),\n object: z.string().describe(\"Fixed value identifying the object type as 'file_upload'.\"),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Indicates lifecycle stage of upload. One of: pending, uploaded, expired, or failed.\"),\n filename: z.string().describe(\"Name of the file, provided during the Create a file upload step with automatic extension based on content type. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Present only for pending uploads; endpoint for sending file contents.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload will expire if not attached to workspace objects. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Present only for pending multi-part uploads; endpoint to finalize the upload.\").nullable().optional(),\n content_type: z.string().describe(\"MIME content type of the uploaded file (e.g., image/png, application/pdf). Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\"),\n content_length: z.number().int().describe(\"Total size of the file, in bytes for completed uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\"),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Details on success/failure of external URL imports for failed/uploaded files. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n});\nexport const NotionListFileUploadsOutput: z.ZodTypeAny = z.object({\n object: z.string().describe(\"Identifies the response as a paginated list structure.\"),\n results: z.array(NotionListFileUploads_FileUploadObjectSchema).describe(\"Contains the list or partial list of file upload objects, sorted by most recent first.\"),\n has_more: z.boolean().describe(\"Indicates whether results remain. Returns false when reaching the list's end; otherwise true.\"),\n next_cursor: z.string().describe(\"An opaque string for retrieving the subsequent page. Only present when has_more is true.\").nullable().optional(),\n});\n\nexport const notionListFileUploads = action(\"NOTION_LIST_FILE_UPLOADS\", {\n slug: \"notion-list-file-uploads\",\n name: \"List Notion file uploads\",\n description: \"Tool to retrieve file uploads for the current bot integration, sorted by most recent first. Use when you need to list all file uploads or paginate through file upload history.\",\n input: NotionListFileUploadsInput,\n output: NotionListFileUploadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;CAC/M,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;AAC9M,CAAC;AACD,MAA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E,QAAQ,CAAC,CAAC,SAAS,+FAA+F;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-users.ts
|
|
4
|
+
const NotionListUsersInput = zod.z.object({
|
|
5
|
+
page_size: zod.z.number().int().default(30).describe("The desired number of users to retrieve per page. The maximum value is 100.").optional(),
|
|
6
|
+
start_cursor: zod.z.string().describe("If omitted, retrieves the first page of users. Use the 'next_cursor' value from a previous response to get the next page.").optional()
|
|
7
|
+
});
|
|
8
|
+
const NotionListUsers__NotionPersonSchema = zod.z.object({ email: zod.z.string().nullable().optional() });
|
|
9
|
+
const NotionListUsers__NotionBotOwnerUserSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string(),
|
|
11
|
+
name: zod.z.string().nullable().optional(),
|
|
12
|
+
type: zod.z.enum(["person", "bot"]).nullable().optional(),
|
|
13
|
+
object: zod.z.string(),
|
|
14
|
+
person: NotionListUsers__NotionPersonSchema.nullable().optional(),
|
|
15
|
+
avatar_url: zod.z.string().nullable().optional()
|
|
16
|
+
});
|
|
17
|
+
const NotionListUsers__NotionBotOwnerSchema = zod.z.object({
|
|
18
|
+
type: zod.z.enum(["workspace", "user"]).nullable().optional(),
|
|
19
|
+
user: NotionListUsers__NotionBotOwnerUserSchema.nullable().optional(),
|
|
20
|
+
workspace: zod.z.boolean().nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const NotionListUsers__NotionWorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().nullable().optional() });
|
|
23
|
+
const NotionListUsers__NotionBotSchema = zod.z.object({
|
|
24
|
+
owner: NotionListUsers__NotionBotOwnerSchema.nullable().optional(),
|
|
25
|
+
workspace_id: zod.z.string().nullable().optional(),
|
|
26
|
+
workspace_name: zod.z.string().nullable().optional(),
|
|
27
|
+
workspace_limits: NotionListUsers__NotionWorkspaceLimitsSchema.nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const NotionListUsers__NotionUserSchema = zod.z.object({
|
|
30
|
+
id: zod.z.string(),
|
|
31
|
+
bot: NotionListUsers__NotionBotSchema.nullable().optional(),
|
|
32
|
+
name: zod.z.string().nullable().optional(),
|
|
33
|
+
type: zod.z.enum(["person", "bot"]).nullable().optional(),
|
|
34
|
+
object: zod.z.string(),
|
|
35
|
+
person: NotionListUsers__NotionPersonSchema.nullable().optional(),
|
|
36
|
+
avatar_url: zod.z.string().nullable().optional()
|
|
37
|
+
}).describe("Represents a Notion user (person or bot). Mirrors the official Notion API User object.");
|
|
38
|
+
const NotionListUsers__ListUsersPayloadSchema = zod.z.object({
|
|
39
|
+
type: zod.z.string().nullable().optional(),
|
|
40
|
+
user: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
41
|
+
object: zod.z.string(),
|
|
42
|
+
results: zod.z.array(NotionListUsers__NotionUserSchema),
|
|
43
|
+
has_more: zod.z.boolean(),
|
|
44
|
+
request_id: zod.z.string().nullable().optional(),
|
|
45
|
+
next_cursor: zod.z.string().nullable().optional()
|
|
46
|
+
}).describe("The Notion API response payload for GET /v1/users.\n\nIncludes optional fields sometimes added by client wrappers (request_id, type, user).");
|
|
47
|
+
const NotionListUsersOutput = zod.z.object({ response_data: NotionListUsers__ListUsersPayloadSchema.nullable() });
|
|
48
|
+
const notionListUsers = require_action.action("NOTION_LIST_USERS", {
|
|
49
|
+
slug: "notion-list-users",
|
|
50
|
+
name: "List users",
|
|
51
|
+
description: "Retrieves a paginated list of users (excluding guests) from the Notion workspace; the number of users returned per page may be less than the requested `page_size`.",
|
|
52
|
+
input: NotionListUsersInput,
|
|
53
|
+
output: NotionListUsersOutput
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.notionListUsers = notionListUsers;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=list-users.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListUsersInput: z.ZodTypeAny = z.object({\n page_size: z.number().int().default(30).describe(\"The desired number of users to retrieve per page. The maximum value is 100.\").optional(),\n start_cursor: z.string().describe(\"If omitted, retrieves the first page of users. Use the 'next_cursor' value from a previous response to get the next page.\").optional(),\n});\nconst NotionListUsers__NotionPersonSchema: z.ZodTypeAny = z.object({\n email: z.string().nullable().optional(),\n});\nconst NotionListUsers__NotionBotOwnerUserSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string().nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).nullable().optional(),\n object: z.string(),\n person: NotionListUsers__NotionPersonSchema.nullable().optional(),\n avatar_url: z.string().nullable().optional(),\n});\nconst NotionListUsers__NotionBotOwnerSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"workspace\", \"user\"]).nullable().optional(),\n user: NotionListUsers__NotionBotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().nullable().optional(),\n});\nconst NotionListUsers__NotionWorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().nullable().optional(),\n});\nconst NotionListUsers__NotionBotSchema: z.ZodTypeAny = z.object({\n owner: NotionListUsers__NotionBotOwnerSchema.nullable().optional(),\n workspace_id: z.string().nullable().optional(),\n workspace_name: z.string().nullable().optional(),\n workspace_limits: NotionListUsers__NotionWorkspaceLimitsSchema.nullable().optional(),\n});\nconst NotionListUsers__NotionUserSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n bot: NotionListUsers__NotionBotSchema.nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).nullable().optional(),\n object: z.string(),\n person: NotionListUsers__NotionPersonSchema.nullable().optional(),\n avatar_url: z.string().nullable().optional(),\n}).describe(\"Represents a Notion user (person or bot). Mirrors the official Notion API User object.\");\nconst NotionListUsers__ListUsersPayloadSchema: z.ZodTypeAny = z.object({\n type: z.string().nullable().optional(),\n user: z.record(z.string(), z.unknown()).nullable().optional(),\n object: z.string(),\n results: z.array(NotionListUsers__NotionUserSchema),\n has_more: z.boolean(),\n request_id: z.string().nullable().optional(),\n next_cursor: z.string().nullable().optional(),\n}).describe(\"The Notion API response payload for GET /v1/users.\\n\\nIncludes optional fields sometimes added by client wrappers (request_id, type, user).\");\nexport const NotionListUsersOutput: z.ZodTypeAny = z.object({\n response_data: NotionListUsers__ListUsersPayloadSchema.nullable(),\n});\n\nexport const notionListUsers = action(\"NOTION_LIST_USERS\", {\n slug: \"notion-list-users\",\n name: \"List users\",\n description: \"Retrieves a paginated list of users (excluding guests) from the Notion workspace; the number of users returned per page may be less than the requested `page_size`.\",\n input: NotionListUsersInput,\n output: NotionListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC1K,CAAC;AACD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO,EACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxC,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO;CACb,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,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EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACpG,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO;CACjB,SAASA,IAAAA,EAAE,MAAM,iCAAiC;CAClD,UAAUA,IAAAA,EAAE,QAAQ;CACpB,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC,CAAC,CAAC,SAAS,6IAA6I;AACzJ,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,eAAe,wCAAwC,SAAS,EAClE,CAAC;AAED,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,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/list-users.d.ts
|
|
4
|
+
declare const NotionListUsersInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionListUsersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionListUsers };
|
|
9
|
+
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAGnC;AAAA,cA4CW,qBAAA,EAAuB,CAAA,CAAE,UAEpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-users.d.ts
|
|
4
|
+
declare const NotionListUsersInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionListUsersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionListUsers };
|
|
9
|
+
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAGnC;AAAA,cA4CW,qBAAA,EAAuB,CAAA,CAAE,UAEpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-users.ts
|
|
4
|
+
const NotionListUsersInput = z.object({
|
|
5
|
+
page_size: z.number().int().default(30).describe("The desired number of users to retrieve per page. The maximum value is 100.").optional(),
|
|
6
|
+
start_cursor: z.string().describe("If omitted, retrieves the first page of users. Use the 'next_cursor' value from a previous response to get the next page.").optional()
|
|
7
|
+
});
|
|
8
|
+
const NotionListUsers__NotionPersonSchema = z.object({ email: z.string().nullable().optional() });
|
|
9
|
+
const NotionListUsers__NotionBotOwnerUserSchema = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
name: z.string().nullable().optional(),
|
|
12
|
+
type: z.enum(["person", "bot"]).nullable().optional(),
|
|
13
|
+
object: z.string(),
|
|
14
|
+
person: NotionListUsers__NotionPersonSchema.nullable().optional(),
|
|
15
|
+
avatar_url: z.string().nullable().optional()
|
|
16
|
+
});
|
|
17
|
+
const NotionListUsers__NotionBotOwnerSchema = z.object({
|
|
18
|
+
type: z.enum(["workspace", "user"]).nullable().optional(),
|
|
19
|
+
user: NotionListUsers__NotionBotOwnerUserSchema.nullable().optional(),
|
|
20
|
+
workspace: z.boolean().nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const NotionListUsers__NotionWorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().nullable().optional() });
|
|
23
|
+
const NotionListUsers__NotionBotSchema = z.object({
|
|
24
|
+
owner: NotionListUsers__NotionBotOwnerSchema.nullable().optional(),
|
|
25
|
+
workspace_id: z.string().nullable().optional(),
|
|
26
|
+
workspace_name: z.string().nullable().optional(),
|
|
27
|
+
workspace_limits: NotionListUsers__NotionWorkspaceLimitsSchema.nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const NotionListUsers__NotionUserSchema = z.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
bot: NotionListUsers__NotionBotSchema.nullable().optional(),
|
|
32
|
+
name: z.string().nullable().optional(),
|
|
33
|
+
type: z.enum(["person", "bot"]).nullable().optional(),
|
|
34
|
+
object: z.string(),
|
|
35
|
+
person: NotionListUsers__NotionPersonSchema.nullable().optional(),
|
|
36
|
+
avatar_url: z.string().nullable().optional()
|
|
37
|
+
}).describe("Represents a Notion user (person or bot). Mirrors the official Notion API User object.");
|
|
38
|
+
const NotionListUsers__ListUsersPayloadSchema = z.object({
|
|
39
|
+
type: z.string().nullable().optional(),
|
|
40
|
+
user: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
41
|
+
object: z.string(),
|
|
42
|
+
results: z.array(NotionListUsers__NotionUserSchema),
|
|
43
|
+
has_more: z.boolean(),
|
|
44
|
+
request_id: z.string().nullable().optional(),
|
|
45
|
+
next_cursor: z.string().nullable().optional()
|
|
46
|
+
}).describe("The Notion API response payload for GET /v1/users.\n\nIncludes optional fields sometimes added by client wrappers (request_id, type, user).");
|
|
47
|
+
const notionListUsers = action("NOTION_LIST_USERS", {
|
|
48
|
+
slug: "notion-list-users",
|
|
49
|
+
name: "List users",
|
|
50
|
+
description: "Retrieves a paginated list of users (excluding guests) from the Notion workspace; the number of users returned per page may be less than the requested `page_size`.",
|
|
51
|
+
input: NotionListUsersInput,
|
|
52
|
+
output: z.object({ response_data: NotionListUsers__ListUsersPayloadSchema.nullable() })
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { notionListUsers };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=list-users.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListUsersInput: z.ZodTypeAny = z.object({\n page_size: z.number().int().default(30).describe(\"The desired number of users to retrieve per page. The maximum value is 100.\").optional(),\n start_cursor: z.string().describe(\"If omitted, retrieves the first page of users. Use the 'next_cursor' value from a previous response to get the next page.\").optional(),\n});\nconst NotionListUsers__NotionPersonSchema: z.ZodTypeAny = z.object({\n email: z.string().nullable().optional(),\n});\nconst NotionListUsers__NotionBotOwnerUserSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n name: z.string().nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).nullable().optional(),\n object: z.string(),\n person: NotionListUsers__NotionPersonSchema.nullable().optional(),\n avatar_url: z.string().nullable().optional(),\n});\nconst NotionListUsers__NotionBotOwnerSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"workspace\", \"user\"]).nullable().optional(),\n user: NotionListUsers__NotionBotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().nullable().optional(),\n});\nconst NotionListUsers__NotionWorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().nullable().optional(),\n});\nconst NotionListUsers__NotionBotSchema: z.ZodTypeAny = z.object({\n owner: NotionListUsers__NotionBotOwnerSchema.nullable().optional(),\n workspace_id: z.string().nullable().optional(),\n workspace_name: z.string().nullable().optional(),\n workspace_limits: NotionListUsers__NotionWorkspaceLimitsSchema.nullable().optional(),\n});\nconst NotionListUsers__NotionUserSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n bot: NotionListUsers__NotionBotSchema.nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).nullable().optional(),\n object: z.string(),\n person: NotionListUsers__NotionPersonSchema.nullable().optional(),\n avatar_url: z.string().nullable().optional(),\n}).describe(\"Represents a Notion user (person or bot). Mirrors the official Notion API User object.\");\nconst NotionListUsers__ListUsersPayloadSchema: z.ZodTypeAny = z.object({\n type: z.string().nullable().optional(),\n user: z.record(z.string(), z.unknown()).nullable().optional(),\n object: z.string(),\n results: z.array(NotionListUsers__NotionUserSchema),\n has_more: z.boolean(),\n request_id: z.string().nullable().optional(),\n next_cursor: z.string().nullable().optional(),\n}).describe(\"The Notion API response payload for GET /v1/users.\\n\\nIncludes optional fields sometimes added by client wrappers (request_id, type, user).\");\nexport const NotionListUsersOutput: z.ZodTypeAny = z.object({\n response_data: NotionListUsers__ListUsersPayloadSchema.nullable(),\n});\n\nexport const notionListUsers = action(\"NOTION_LIST_USERS\", {\n slug: \"notion-list-users\",\n name: \"List users\",\n description: \"Retrieves a paginated list of users (excluding guests) from the Notion workspace; the number of users returned per page may be less than the requested `page_size`.\",\n input: NotionListUsersInput,\n output: NotionListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;C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AC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,oCAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO;CACb,KAAK,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAM,EAAE,KAAK,CAAC,UAAU,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpD,QAAQ,EAAE,OAAO;CACjB,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACpG,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO;CACjB,SAAS,EAAE,MAAM,iCAAiC;CAClD,UAAU,EAAE,QAAQ;CACpB,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC,CAAC,CAAC,SAAS,6IAA6I;AAKzJ,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,eAAe,wCAAwC,SAAS,EAClE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/move-page.ts
|
|
4
|
+
const NotionMovePageInput = zod.z.object({
|
|
5
|
+
parent: zod.z.union([zod.z.object({
|
|
6
|
+
type: zod.z.string().describe("The constant string 'page_id'."),
|
|
7
|
+
page_id: zod.z.string().describe("UUID of the parent page (with or without dashes). Must reference an actual page, not a database. If moving to a database, use type='data_source_id' instead.")
|
|
8
|
+
}).describe("Parent destination as a page."), zod.z.object({
|
|
9
|
+
type: zod.z.string().describe("The constant string 'data_source_id'."),
|
|
10
|
+
data_source_id: zod.z.string().describe("UUID of the database's data source (NOT database_id). Retrieve using the database endpoint.")
|
|
11
|
+
}).describe("Parent destination as a data source (database).")]),
|
|
12
|
+
page_id: zod.z.string().describe("The ID of the page to move. UUID format with or without dashes is supported.")
|
|
13
|
+
});
|
|
14
|
+
const NotionMovePage_EmojiIconSchema = zod.z.object({
|
|
15
|
+
type: zod.z.string().describe("Always 'emoji'."),
|
|
16
|
+
emoji: zod.z.string().describe("The emoji character.")
|
|
17
|
+
}).describe("Emoji icon.");
|
|
18
|
+
const NotionMovePage_CustomEmojiMetadataSchema = zod.z.object({
|
|
19
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji."),
|
|
20
|
+
url: zod.z.string().describe("URL to the custom emoji image."),
|
|
21
|
+
name: zod.z.string().describe("Name of the custom emoji.")
|
|
22
|
+
}).describe("Custom emoji metadata.");
|
|
23
|
+
const NotionMovePage_CustomEmojiIconSchema = zod.z.object({
|
|
24
|
+
type: zod.z.string().describe("Always 'custom_emoji'."),
|
|
25
|
+
custom_emoji: NotionMovePage_CustomEmojiMetadataSchema.nullable()
|
|
26
|
+
}).describe("Custom emoji icon.");
|
|
27
|
+
const NotionMovePage_ExternalFileMetadataSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.") }).describe("External file metadata.");
|
|
28
|
+
const NotionMovePage_ExternalIconSchema = zod.z.object({
|
|
29
|
+
type: zod.z.string().describe("Always 'external'."),
|
|
30
|
+
external: NotionMovePage_ExternalFileMetadataSchema.nullable()
|
|
31
|
+
}).describe("External file icon.");
|
|
32
|
+
const NotionMovePage_NotionFileMetadataSchema = zod.z.object({
|
|
33
|
+
url: zod.z.string().describe("Authenticated HTTP GET URL to the file, valid for one hour."),
|
|
34
|
+
expiry_time: zod.z.string().describe("Timestamp when the URL expires (ISO 8601 format).")
|
|
35
|
+
}).describe("Notion-hosted file metadata.");
|
|
36
|
+
const NotionMovePage_NotionFileIconSchema = zod.z.object({
|
|
37
|
+
file: NotionMovePage_NotionFileMetadataSchema.nullable(),
|
|
38
|
+
type: zod.z.string().describe("Always 'file'.")
|
|
39
|
+
}).describe("Notion-hosted file icon.");
|
|
40
|
+
const NotionMovePage_ExternalCoverSchema = zod.z.object({
|
|
41
|
+
type: zod.z.string().describe("Always 'external'."),
|
|
42
|
+
external: NotionMovePage_ExternalFileMetadataSchema.nullable()
|
|
43
|
+
}).describe("External cover image.");
|
|
44
|
+
const NotionMovePage_NotionFileCoverSchema = zod.z.object({
|
|
45
|
+
file: NotionMovePage_NotionFileMetadataSchema.nullable(),
|
|
46
|
+
type: zod.z.string().describe("Always 'file'.")
|
|
47
|
+
}).describe("Notion-hosted cover image.");
|
|
48
|
+
const NotionMovePage_DatabaseParentSchema = zod.z.object({
|
|
49
|
+
type: zod.z.string().describe("Always 'database_id'."),
|
|
50
|
+
database_id: zod.z.string().describe("UUID of the parent database.")
|
|
51
|
+
}).describe("Database parent.");
|
|
52
|
+
const NotionMovePage_DataSourceParentSchema = zod.z.object({
|
|
53
|
+
type: zod.z.string().describe("Always 'data_source_id'."),
|
|
54
|
+
database_id: zod.z.string().describe("UUID of the containing database (convenience field).").nullable().optional(),
|
|
55
|
+
data_source_id: zod.z.string().describe("UUID of the parent data source.")
|
|
56
|
+
}).describe("Data source parent.");
|
|
57
|
+
const NotionMovePage_PageParentSchema = zod.z.object({
|
|
58
|
+
type: zod.z.string().describe("Always 'page_id'."),
|
|
59
|
+
page_id: zod.z.string().describe("UUID of the parent page.")
|
|
60
|
+
}).describe("Page parent.");
|
|
61
|
+
const NotionMovePage_WorkspaceParentSchema = zod.z.object({
|
|
62
|
+
type: zod.z.string().describe("Always 'workspace'."),
|
|
63
|
+
workspace: zod.z.boolean().describe("Always true.")
|
|
64
|
+
}).describe("Workspace parent.");
|
|
65
|
+
const NotionMovePage_BlockParentSchema = zod.z.object({
|
|
66
|
+
type: zod.z.string().describe("Always 'block_id'."),
|
|
67
|
+
block_id: zod.z.string().describe("UUID of the parent block.")
|
|
68
|
+
}).describe("Block parent.");
|
|
69
|
+
const NotionMovePage_PartialUserSchema = zod.z.object({
|
|
70
|
+
id: zod.z.string().describe("Unique identifier for the user."),
|
|
71
|
+
object: zod.z.string().describe("Always 'user'.")
|
|
72
|
+
}).describe("Partial user object.");
|
|
73
|
+
const NotionMovePageOutput = zod.z.object({
|
|
74
|
+
id: zod.z.string().describe("Unique identifier for the page."),
|
|
75
|
+
url: zod.z.string().describe("The URL of the Notion page.").nullable().optional(),
|
|
76
|
+
icon: zod.z.union([
|
|
77
|
+
NotionMovePage_EmojiIconSchema,
|
|
78
|
+
NotionMovePage_CustomEmojiIconSchema,
|
|
79
|
+
NotionMovePage_ExternalIconSchema,
|
|
80
|
+
NotionMovePage_NotionFileIconSchema
|
|
81
|
+
]).nullable().optional(),
|
|
82
|
+
cover: zod.z.union([NotionMovePage_ExternalCoverSchema, NotionMovePage_NotionFileCoverSchema]).nullable().optional(),
|
|
83
|
+
object: zod.z.string().describe("Always 'page'."),
|
|
84
|
+
parent: zod.z.union([
|
|
85
|
+
NotionMovePage_DatabaseParentSchema,
|
|
86
|
+
NotionMovePage_DataSourceParentSchema,
|
|
87
|
+
NotionMovePage_PageParentSchema,
|
|
88
|
+
NotionMovePage_WorkspaceParentSchema,
|
|
89
|
+
NotionMovePage_BlockParentSchema
|
|
90
|
+
]).nullable().optional(),
|
|
91
|
+
archived: zod.z.boolean().describe("Whether the page has been archived.").nullable().optional(),
|
|
92
|
+
in_trash: zod.z.boolean().describe("Whether the page is in the trash.").nullable().optional(),
|
|
93
|
+
created_by: NotionMovePage_PartialUserSchema.nullable().optional(),
|
|
94
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Property values of the page.").nullable().optional(),
|
|
95
|
+
public_url: zod.z.string().describe("The public URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
96
|
+
created_time: zod.z.string().describe("Date and time when the page was created (ISO 8601 format).").nullable().optional(),
|
|
97
|
+
last_edited_by: NotionMovePage_PartialUserSchema.nullable().optional(),
|
|
98
|
+
last_edited_time: zod.z.string().describe("Date and time when the page was last edited (ISO 8601 format).").nullable().optional()
|
|
99
|
+
}).describe("Page object returned after moving a page.");
|
|
100
|
+
const notionMovePage = require_action.action("NOTION_MOVE_PAGE", {
|
|
101
|
+
slug: "notion-move-page",
|
|
102
|
+
name: "Move Page",
|
|
103
|
+
description: "Tool to move a Notion page to a new parent (page or database). Use when you need to reorganize page hierarchy. Important: To move to a database, use data_source_id (NOT database_id). Get the data source ID from the database object using NOTION_FETCH_DATABASE.",
|
|
104
|
+
input: NotionMovePageInput,
|
|
105
|
+
output: NotionMovePageOutput
|
|
106
|
+
});
|
|
107
|
+
//#endregion
|
|
108
|
+
exports.notionMovePage = notionMovePage;
|
|
109
|
+
|
|
110
|
+
//# sourceMappingURL=move-page.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-page.cjs","names":["z","action"],"sources":["../../src/actions/move-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionMovePageInput: z.ZodTypeAny = z.object({\n parent: z.union([z.object({\n type: z.string().describe(\"The constant string 'page_id'.\"),\n page_id: z.string().describe(\"UUID of the parent page (with or without dashes). Must reference an actual page, not a database. If moving to a database, use type='data_source_id' instead.\"),\n}).describe(\"Parent destination as a page.\"), z.object({\n type: z.string().describe(\"The constant string 'data_source_id'.\"),\n data_source_id: z.string().describe(\"UUID of the database's data source (NOT database_id). Retrieve using the database endpoint.\"),\n}).describe(\"Parent destination as a data source (database).\")]),\n page_id: z.string().describe(\"The ID of the page to move. UUID format with or without dashes is supported.\"),\n});\nconst NotionMovePage_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'emoji'.\"),\n emoji: z.string().describe(\"The emoji character.\"),\n}).describe(\"Emoji icon.\");\nconst NotionMovePage_CustomEmojiMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"URL to the custom emoji image.\"),\n name: z.string().describe(\"Name of the custom emoji.\"),\n}).describe(\"Custom emoji metadata.\");\nconst NotionMovePage_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\"),\n custom_emoji: NotionMovePage_CustomEmojiMetadataSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionMovePage_ExternalFileMetadataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n}).describe(\"External file metadata.\");\nconst NotionMovePage_ExternalIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionMovePage_ExternalFileMetadataSchema.nullable(),\n}).describe(\"External file icon.\");\nconst NotionMovePage_NotionFileMetadataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Timestamp when the URL expires (ISO 8601 format).\"),\n}).describe(\"Notion-hosted file metadata.\");\nconst NotionMovePage_NotionFileIconSchema: z.ZodTypeAny = z.object({\n file: NotionMovePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Notion-hosted file icon.\");\nconst NotionMovePage_ExternalCoverSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionMovePage_ExternalFileMetadataSchema.nullable(),\n}).describe(\"External cover image.\");\nconst NotionMovePage_NotionFileCoverSchema: z.ZodTypeAny = z.object({\n file: NotionMovePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Notion-hosted cover image.\");\nconst NotionMovePage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'database_id'.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n}).describe(\"Database parent.\");\nconst NotionMovePage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\"),\n database_id: z.string().describe(\"UUID of the containing database (convenience field).\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\"),\n}).describe(\"Data source parent.\");\nconst NotionMovePage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'page_id'.\"),\n page_id: z.string().describe(\"UUID of the parent page.\"),\n}).describe(\"Page parent.\");\nconst NotionMovePage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'workspace'.\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Workspace parent.\");\nconst NotionMovePage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'block_id'.\"),\n block_id: z.string().describe(\"UUID of the parent block.\"),\n}).describe(\"Block parent.\");\nconst NotionMovePage_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"Partial user object.\");\nexport const NotionMovePageOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionMovePage_EmojiIconSchema, NotionMovePage_CustomEmojiIconSchema, NotionMovePage_ExternalIconSchema, NotionMovePage_NotionFileIconSchema]).nullable().optional(),\n cover: z.union([NotionMovePage_ExternalCoverSchema, NotionMovePage_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: z.union([NotionMovePage_DatabaseParentSchema, NotionMovePage_DataSourceParentSchema, NotionMovePage_PageParentSchema, NotionMovePage_WorkspaceParentSchema, NotionMovePage_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page has been archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionMovePage_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when the page was created (ISO 8601 format).\").nullable().optional(),\n last_edited_by: NotionMovePage_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when the page was last edited (ISO 8601 format).\").nullable().optional(),\n}).describe(\"Page object returned after moving a page.\");\n\nexport const notionMovePage = action(\"NOTION_MOVE_PAGE\", {\n slug: \"notion-move-page\",\n name: \"Move Page\",\n description: \"Tool to move a Notion page to a new parent (page or database). Use when you need to reorganize page hierarchy. Important: To move to a database, use data_source_id (NOT database_id). Get the data source ID from the database object using NOTION_FETCH_DATABASE.\",\n input: NotionMovePageInput,\n output: NotionMovePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;CAC7L,CAAC,CAAC,CAAC,SAAS,+BAA+B,GAAGA,IAAAA,EAAE,OAAO;EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACnI,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC;CAC7D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;AAC7G,CAAC;AACD,MAAM,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C,SAAS,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,gBAAgB,iCAAiC,SAAS,CAAC,CAAC,SAAS;CACrE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,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/move-page.d.ts
|
|
4
|
+
declare const NotionMovePageInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionMovePageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionMovePage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionMovePage };
|
|
9
|
+
//# sourceMappingURL=move-page.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-page.d.cts","names":[],"sources":["../../src/actions/move-page.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UASlC;AAAA,cA8DW,oBAAA,EAAsB,CAAA,CAAE,UAemB;AAAA,cAE3C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/move-page.d.ts
|
|
4
|
+
declare const NotionMovePageInput: z.ZodTypeAny;
|
|
5
|
+
declare const NotionMovePageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const notionMovePage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { notionMovePage };
|
|
9
|
+
//# sourceMappingURL=move-page.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-page.d.mts","names":[],"sources":["../../src/actions/move-page.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UASlC;AAAA,cA8DW,oBAAA,EAAsB,CAAA,CAAE,UAemB;AAAA,cAE3C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/move-page.ts
|
|
4
|
+
const NotionMovePageInput = z.object({
|
|
5
|
+
parent: z.union([z.object({
|
|
6
|
+
type: z.string().describe("The constant string 'page_id'."),
|
|
7
|
+
page_id: z.string().describe("UUID of the parent page (with or without dashes). Must reference an actual page, not a database. If moving to a database, use type='data_source_id' instead.")
|
|
8
|
+
}).describe("Parent destination as a page."), z.object({
|
|
9
|
+
type: z.string().describe("The constant string 'data_source_id'."),
|
|
10
|
+
data_source_id: z.string().describe("UUID of the database's data source (NOT database_id). Retrieve using the database endpoint.")
|
|
11
|
+
}).describe("Parent destination as a data source (database).")]),
|
|
12
|
+
page_id: z.string().describe("The ID of the page to move. UUID format with or without dashes is supported.")
|
|
13
|
+
});
|
|
14
|
+
const NotionMovePage_EmojiIconSchema = z.object({
|
|
15
|
+
type: z.string().describe("Always 'emoji'."),
|
|
16
|
+
emoji: z.string().describe("The emoji character.")
|
|
17
|
+
}).describe("Emoji icon.");
|
|
18
|
+
const NotionMovePage_CustomEmojiMetadataSchema = z.object({
|
|
19
|
+
id: z.string().describe("Unique identifier for the custom emoji."),
|
|
20
|
+
url: z.string().describe("URL to the custom emoji image."),
|
|
21
|
+
name: z.string().describe("Name of the custom emoji.")
|
|
22
|
+
}).describe("Custom emoji metadata.");
|
|
23
|
+
const NotionMovePage_CustomEmojiIconSchema = z.object({
|
|
24
|
+
type: z.string().describe("Always 'custom_emoji'."),
|
|
25
|
+
custom_emoji: NotionMovePage_CustomEmojiMetadataSchema.nullable()
|
|
26
|
+
}).describe("Custom emoji icon.");
|
|
27
|
+
const NotionMovePage_ExternalFileMetadataSchema = z.object({ url: z.string().describe("URL to the externally hosted file.") }).describe("External file metadata.");
|
|
28
|
+
const NotionMovePage_ExternalIconSchema = z.object({
|
|
29
|
+
type: z.string().describe("Always 'external'."),
|
|
30
|
+
external: NotionMovePage_ExternalFileMetadataSchema.nullable()
|
|
31
|
+
}).describe("External file icon.");
|
|
32
|
+
const NotionMovePage_NotionFileMetadataSchema = z.object({
|
|
33
|
+
url: z.string().describe("Authenticated HTTP GET URL to the file, valid for one hour."),
|
|
34
|
+
expiry_time: z.string().describe("Timestamp when the URL expires (ISO 8601 format).")
|
|
35
|
+
}).describe("Notion-hosted file metadata.");
|
|
36
|
+
const NotionMovePage_NotionFileIconSchema = z.object({
|
|
37
|
+
file: NotionMovePage_NotionFileMetadataSchema.nullable(),
|
|
38
|
+
type: z.string().describe("Always 'file'.")
|
|
39
|
+
}).describe("Notion-hosted file icon.");
|
|
40
|
+
const NotionMovePage_ExternalCoverSchema = z.object({
|
|
41
|
+
type: z.string().describe("Always 'external'."),
|
|
42
|
+
external: NotionMovePage_ExternalFileMetadataSchema.nullable()
|
|
43
|
+
}).describe("External cover image.");
|
|
44
|
+
const NotionMovePage_NotionFileCoverSchema = z.object({
|
|
45
|
+
file: NotionMovePage_NotionFileMetadataSchema.nullable(),
|
|
46
|
+
type: z.string().describe("Always 'file'.")
|
|
47
|
+
}).describe("Notion-hosted cover image.");
|
|
48
|
+
const NotionMovePage_DatabaseParentSchema = z.object({
|
|
49
|
+
type: z.string().describe("Always 'database_id'."),
|
|
50
|
+
database_id: z.string().describe("UUID of the parent database.")
|
|
51
|
+
}).describe("Database parent.");
|
|
52
|
+
const NotionMovePage_DataSourceParentSchema = z.object({
|
|
53
|
+
type: z.string().describe("Always 'data_source_id'."),
|
|
54
|
+
database_id: z.string().describe("UUID of the containing database (convenience field).").nullable().optional(),
|
|
55
|
+
data_source_id: z.string().describe("UUID of the parent data source.")
|
|
56
|
+
}).describe("Data source parent.");
|
|
57
|
+
const NotionMovePage_PageParentSchema = z.object({
|
|
58
|
+
type: z.string().describe("Always 'page_id'."),
|
|
59
|
+
page_id: z.string().describe("UUID of the parent page.")
|
|
60
|
+
}).describe("Page parent.");
|
|
61
|
+
const NotionMovePage_WorkspaceParentSchema = z.object({
|
|
62
|
+
type: z.string().describe("Always 'workspace'."),
|
|
63
|
+
workspace: z.boolean().describe("Always true.")
|
|
64
|
+
}).describe("Workspace parent.");
|
|
65
|
+
const NotionMovePage_BlockParentSchema = z.object({
|
|
66
|
+
type: z.string().describe("Always 'block_id'."),
|
|
67
|
+
block_id: z.string().describe("UUID of the parent block.")
|
|
68
|
+
}).describe("Block parent.");
|
|
69
|
+
const NotionMovePage_PartialUserSchema = z.object({
|
|
70
|
+
id: z.string().describe("Unique identifier for the user."),
|
|
71
|
+
object: z.string().describe("Always 'user'.")
|
|
72
|
+
}).describe("Partial user object.");
|
|
73
|
+
const notionMovePage = action("NOTION_MOVE_PAGE", {
|
|
74
|
+
slug: "notion-move-page",
|
|
75
|
+
name: "Move Page",
|
|
76
|
+
description: "Tool to move a Notion page to a new parent (page or database). Use when you need to reorganize page hierarchy. Important: To move to a database, use data_source_id (NOT database_id). Get the data source ID from the database object using NOTION_FETCH_DATABASE.",
|
|
77
|
+
input: NotionMovePageInput,
|
|
78
|
+
output: z.object({
|
|
79
|
+
id: z.string().describe("Unique identifier for the page."),
|
|
80
|
+
url: z.string().describe("The URL of the Notion page.").nullable().optional(),
|
|
81
|
+
icon: z.union([
|
|
82
|
+
NotionMovePage_EmojiIconSchema,
|
|
83
|
+
NotionMovePage_CustomEmojiIconSchema,
|
|
84
|
+
NotionMovePage_ExternalIconSchema,
|
|
85
|
+
NotionMovePage_NotionFileIconSchema
|
|
86
|
+
]).nullable().optional(),
|
|
87
|
+
cover: z.union([NotionMovePage_ExternalCoverSchema, NotionMovePage_NotionFileCoverSchema]).nullable().optional(),
|
|
88
|
+
object: z.string().describe("Always 'page'."),
|
|
89
|
+
parent: z.union([
|
|
90
|
+
NotionMovePage_DatabaseParentSchema,
|
|
91
|
+
NotionMovePage_DataSourceParentSchema,
|
|
92
|
+
NotionMovePage_PageParentSchema,
|
|
93
|
+
NotionMovePage_WorkspaceParentSchema,
|
|
94
|
+
NotionMovePage_BlockParentSchema
|
|
95
|
+
]).nullable().optional(),
|
|
96
|
+
archived: z.boolean().describe("Whether the page has been archived.").nullable().optional(),
|
|
97
|
+
in_trash: z.boolean().describe("Whether the page is in the trash.").nullable().optional(),
|
|
98
|
+
created_by: NotionMovePage_PartialUserSchema.nullable().optional(),
|
|
99
|
+
properties: z.record(z.string(), z.unknown()).describe("Property values of the page.").nullable().optional(),
|
|
100
|
+
public_url: z.string().describe("The public URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
101
|
+
created_time: z.string().describe("Date and time when the page was created (ISO 8601 format).").nullable().optional(),
|
|
102
|
+
last_edited_by: NotionMovePage_PartialUserSchema.nullable().optional(),
|
|
103
|
+
last_edited_time: z.string().describe("Date and time when the page was last edited (ISO 8601 format).").nullable().optional()
|
|
104
|
+
}).describe("Page object returned after moving a page.")
|
|
105
|
+
});
|
|
106
|
+
//#endregion
|
|
107
|
+
export { notionMovePage };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=move-page.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-page.mjs","names":[],"sources":["../../src/actions/move-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionMovePageInput: z.ZodTypeAny = z.object({\n parent: z.union([z.object({\n type: z.string().describe(\"The constant string 'page_id'.\"),\n page_id: z.string().describe(\"UUID of the parent page (with or without dashes). Must reference an actual page, not a database. If moving to a database, use type='data_source_id' instead.\"),\n}).describe(\"Parent destination as a page.\"), z.object({\n type: z.string().describe(\"The constant string 'data_source_id'.\"),\n data_source_id: z.string().describe(\"UUID of the database's data source (NOT database_id). Retrieve using the database endpoint.\"),\n}).describe(\"Parent destination as a data source (database).\")]),\n page_id: z.string().describe(\"The ID of the page to move. UUID format with or without dashes is supported.\"),\n});\nconst NotionMovePage_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'emoji'.\"),\n emoji: z.string().describe(\"The emoji character.\"),\n}).describe(\"Emoji icon.\");\nconst NotionMovePage_CustomEmojiMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"URL to the custom emoji image.\"),\n name: z.string().describe(\"Name of the custom emoji.\"),\n}).describe(\"Custom emoji metadata.\");\nconst NotionMovePage_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\"),\n custom_emoji: NotionMovePage_CustomEmojiMetadataSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionMovePage_ExternalFileMetadataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n}).describe(\"External file metadata.\");\nconst NotionMovePage_ExternalIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionMovePage_ExternalFileMetadataSchema.nullable(),\n}).describe(\"External file icon.\");\nconst NotionMovePage_NotionFileMetadataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Timestamp when the URL expires (ISO 8601 format).\"),\n}).describe(\"Notion-hosted file metadata.\");\nconst NotionMovePage_NotionFileIconSchema: z.ZodTypeAny = z.object({\n file: NotionMovePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Notion-hosted file icon.\");\nconst NotionMovePage_ExternalCoverSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionMovePage_ExternalFileMetadataSchema.nullable(),\n}).describe(\"External cover image.\");\nconst NotionMovePage_NotionFileCoverSchema: z.ZodTypeAny = z.object({\n file: NotionMovePage_NotionFileMetadataSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Notion-hosted cover image.\");\nconst NotionMovePage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'database_id'.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n}).describe(\"Database parent.\");\nconst NotionMovePage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\"),\n database_id: z.string().describe(\"UUID of the containing database (convenience field).\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\"),\n}).describe(\"Data source parent.\");\nconst NotionMovePage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'page_id'.\"),\n page_id: z.string().describe(\"UUID of the parent page.\"),\n}).describe(\"Page parent.\");\nconst NotionMovePage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'workspace'.\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Workspace parent.\");\nconst NotionMovePage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'block_id'.\"),\n block_id: z.string().describe(\"UUID of the parent block.\"),\n}).describe(\"Block parent.\");\nconst NotionMovePage_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"Partial user object.\");\nexport const NotionMovePageOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionMovePage_EmojiIconSchema, NotionMovePage_CustomEmojiIconSchema, NotionMovePage_ExternalIconSchema, NotionMovePage_NotionFileIconSchema]).nullable().optional(),\n cover: z.union([NotionMovePage_ExternalCoverSchema, NotionMovePage_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: z.union([NotionMovePage_DatabaseParentSchema, NotionMovePage_DataSourceParentSchema, NotionMovePage_PageParentSchema, NotionMovePage_WorkspaceParentSchema, NotionMovePage_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page has been archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionMovePage_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when the page was created (ISO 8601 format).\").nullable().optional(),\n last_edited_by: NotionMovePage_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when the page was last edited (ISO 8601 format).\").nullable().optional(),\n}).describe(\"Page object returned after moving a page.\");\n\nexport const notionMovePage = action(\"NOTION_MOVE_PAGE\", {\n slug: \"notion-move-page\",\n name: \"Move Page\",\n description: \"Tool to move a Notion page to a new parent (page or database). Use when you need to reorganize page hierarchy. Important: To move to a database, use data_source_id (NOT database_id). Get the data source ID from the database object using NOTION_FETCH_DATABASE.\",\n input: NotionMovePageInput,\n output: NotionMovePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;CAC7L,CAAC,CAAC,CAAC,SAAS,+BAA+B,GAAG,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACnI,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC;CAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;AAC7G,CAAC;AACD,MAAM,iCAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACnD,CAAC,CAAC,CAAC,SAAS,aAAa;AACzB,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACvD,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAM,uCAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,cAAc,yCAAyC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,oBAAoB;AAChC,MAAM,4CAA0D,EAAE,OAAO,EACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,C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iC;GAAsC;EAAgC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3N,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,iCAAiC,SAAS,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,gBAAgB,iCAAiC,SAAS,CAAC,CAAC,SAAS;EACrE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/query-data-source.ts
|
|
4
|
+
const NotionQueryDataSourceInput = zod.z.object({
|
|
5
|
+
sorts: zod.z.array(zod.z.union([zod.z.object({
|
|
6
|
+
property: zod.z.string().describe("ID of the data source property to sort by"),
|
|
7
|
+
direction: zod.z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending")
|
|
8
|
+
}).describe("Sort by a data source property."), zod.z.object({
|
|
9
|
+
direction: zod.z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending"),
|
|
10
|
+
timestamp: zod.z.enum(["created_time", "last_edited_time"]).describe("Timestamp field to sort by: 'created_time' or 'last_edited_time'")
|
|
11
|
+
}).describe("Sort by entry timestamp.")])).describe("List of sort criteria in order of precedence. Use PropertySort for property fields or TimestampSort for creation/edit times.").optional(),
|
|
12
|
+
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter object to limit returned entries. Supports single-property filters or compound filters using 'and'/'or'.").optional(),
|
|
13
|
+
page_size: zod.z.number().int().describe("Maximum number of items to return (1-100). Defaults to 100 if omitted.").optional(),
|
|
14
|
+
start_cursor: zod.z.string().describe("Cursor from a prior response's `next_cursor` for fetching the next page.").optional(),
|
|
15
|
+
data_source_id: zod.z.string().describe("UUID of the Notion data source to query (with or without hyphens). URI prefixes like 'collection://' are automatically stripped."),
|
|
16
|
+
filter_properties: zod.z.array(zod.z.string()).describe("List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.").optional()
|
|
17
|
+
}).describe("Request model for querying a Notion data source.");
|
|
18
|
+
const NotionQueryDataSource_NotionHostedFileSchema = zod.z.object({
|
|
19
|
+
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
20
|
+
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
21
|
+
}).describe("Notion-hosted file reference.");
|
|
22
|
+
const NotionQueryDataSource_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to the externally hosted file.") }).describe("External file reference.");
|
|
23
|
+
const NotionQueryDataSource_CustomEmojiSchema = zod.z.object({
|
|
24
|
+
id: zod.z.string().describe("Unique identifier of the custom emoji."),
|
|
25
|
+
url: zod.z.string().describe("HTTPS URL to the custom emoji image."),
|
|
26
|
+
name: zod.z.string().describe("Display name of the custom emoji.")
|
|
27
|
+
}).describe("Custom emoji object.");
|
|
28
|
+
const NotionQueryDataSource_PageIconSchema = zod.z.object({
|
|
29
|
+
file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),
|
|
30
|
+
type: zod.z.enum([
|
|
31
|
+
"emoji",
|
|
32
|
+
"external",
|
|
33
|
+
"file",
|
|
34
|
+
"custom_emoji"
|
|
35
|
+
]).describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'."),
|
|
36
|
+
emoji: zod.z.string().describe("Emoji character (only present when type is 'emoji').").nullable().optional(),
|
|
37
|
+
external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),
|
|
38
|
+
custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional()
|
|
39
|
+
}).describe("Page icon, which can be an emoji, external file, or uploaded file.");
|
|
40
|
+
const NotionQueryDataSource_PageCoverSchema = zod.z.object({
|
|
41
|
+
file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),
|
|
42
|
+
type: zod.z.enum(["external", "file"]).describe("Type of cover: 'external' or 'file'."),
|
|
43
|
+
external: NotionQueryDataSource_ExternalFileSchema.nullable().optional()
|
|
44
|
+
}).describe("Page cover image, which can be an external file or Notion-hosted file.");
|
|
45
|
+
const NotionQueryDataSource_PageParentSchema = zod.z.object({
|
|
46
|
+
type: zod.z.enum([
|
|
47
|
+
"data_source_id",
|
|
48
|
+
"database_id",
|
|
49
|
+
"page_id",
|
|
50
|
+
"workspace"
|
|
51
|
+
]).describe("Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'."),
|
|
52
|
+
page_id: zod.z.string().describe("UUID of the parent page (only present when type is 'page_id').").nullable().optional(),
|
|
53
|
+
workspace: zod.z.boolean().describe("Always true when type is 'workspace'.").nullable().optional(),
|
|
54
|
+
database_id: zod.z.string().describe("UUID of the parent database (only present when type is 'database_id').").nullable().optional(),
|
|
55
|
+
data_source_id: zod.z.string().describe("UUID of the parent data source (only present when type is 'data_source_id').").nullable().optional()
|
|
56
|
+
}).describe("Information about the page's parent.");
|
|
57
|
+
const NotionQueryDataSource_BotOwnerWorkspaceSchema = zod.z.object({
|
|
58
|
+
type: zod.z.string(),
|
|
59
|
+
workspace: zod.z.boolean()
|
|
60
|
+
}).describe("Bot owner when owned by a workspace.");
|
|
61
|
+
const NotionQueryDataSource_BotOwnerUserRefSchema = zod.z.object({
|
|
62
|
+
id: zod.z.string().describe("User ID of the bot owner."),
|
|
63
|
+
object: zod.z.string().describe("Always 'user'.")
|
|
64
|
+
}).describe("Simplified user reference for bot owner to avoid circular reference.");
|
|
65
|
+
const NotionQueryDataSource_BotOwnerUserSchema = zod.z.object({
|
|
66
|
+
type: zod.z.string(),
|
|
67
|
+
user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable()
|
|
68
|
+
}).describe("Bot owner when owned by a user.");
|
|
69
|
+
const NotionQueryDataSource_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
|
|
70
|
+
const NotionQueryDataSource_BotDetailsSchema = zod.z.object({
|
|
71
|
+
owner: zod.z.union([NotionQueryDataSource_BotOwnerWorkspaceSchema, NotionQueryDataSource_BotOwnerUserSchema]).nullable().optional(),
|
|
72
|
+
workspace_id: zod.z.string().describe("Bot's workspace ID.").nullable().optional(),
|
|
73
|
+
workspace_name: zod.z.string().describe("Name of the workspace (null if owner is user).").nullable().optional(),
|
|
74
|
+
workspace_limits: NotionQueryDataSource_WorkspaceLimitsSchema.nullable().optional()
|
|
75
|
+
}).describe("Bot-specific details when user type is 'bot'.");
|
|
76
|
+
const NotionQueryDataSource_PersonDetailsSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person.").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
|
|
77
|
+
const NotionQueryDataSource_PartialUserSchema = zod.z.object({
|
|
78
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the user."),
|
|
79
|
+
bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),
|
|
80
|
+
name: zod.z.string().describe("Display name of the user in Notion.").nullable().optional(),
|
|
81
|
+
type: zod.z.enum(["person", "bot"]).describe("Type of user, either 'person' or 'bot'.").nullable().optional(),
|
|
82
|
+
object: zod.z.string().describe("Always 'user'."),
|
|
83
|
+
person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),
|
|
84
|
+
avatar_url: zod.z.string().describe("URL of the user's avatar image.").nullable().optional()
|
|
85
|
+
}).describe("Partial user object representing a Notion user.");
|
|
86
|
+
const NotionQueryDataSource_PageSchema = zod.z.object({
|
|
87
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the page."),
|
|
88
|
+
url: zod.z.string().describe("The URL of the Notion page.").nullable().optional(),
|
|
89
|
+
icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),
|
|
90
|
+
cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),
|
|
91
|
+
object: zod.z.string().describe("Always 'page'."),
|
|
92
|
+
parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),
|
|
93
|
+
archived: zod.z.boolean().describe("Whether the page is archived.").nullable().optional(),
|
|
94
|
+
in_trash: zod.z.boolean().describe("Whether the page has been moved to trash.").nullable().optional(),
|
|
95
|
+
created_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),
|
|
96
|
+
properties: zod.z.object({}).describe("Property values of the page, determined by the parent data source's schema. Keys are property names; values are PropertyValue objects with id, type, and type-specific fields.").nullable().optional(),
|
|
97
|
+
public_url: zod.z.string().describe("The publicly accessible URL if the page has been published to the web; otherwise null.").nullable().optional(),
|
|
98
|
+
created_time: zod.z.string().describe("ISO 8601 timestamp when the page was created.").nullable().optional(),
|
|
99
|
+
last_edited_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),
|
|
100
|
+
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the page was last edited.").nullable().optional()
|
|
101
|
+
}).describe("Page object contained in the data source.");
|
|
102
|
+
const NotionQueryDataSourceOutput = zod.z.object({
|
|
103
|
+
object: zod.z.string().describe("Always 'list' for paginated responses.").nullable().optional(),
|
|
104
|
+
results: zod.z.array(NotionQueryDataSource_PageSchema).describe("Array of page objects contained in the data source, filtered and ordered according to the query criteria.").nullable().optional(),
|
|
105
|
+
has_more: zod.z.boolean().describe("Whether there are more results available beyond this response. If true, use next_cursor to retrieve the next page.").nullable().optional(),
|
|
106
|
+
next_cursor: zod.z.string().describe("Cursor value for pagination. Use this value in the next request to retrieve additional results. Null if there are no more results.").nullable().optional()
|
|
107
|
+
}).describe("Response model for querying a Notion data source.");
|
|
108
|
+
const notionQueryDataSource = require_action.action("NOTION_QUERY_DATA_SOURCE", {
|
|
109
|
+
slug: "notion-query-data-source",
|
|
110
|
+
name: "Query data source",
|
|
111
|
+
description: "Tool to query a Notion data source. Use when you need to retrieve pages or child data sources with filters, sorts, and pagination. Make paginated requests using cursors and optional property filters for efficient data retrieval.",
|
|
112
|
+
input: NotionQueryDataSourceInput,
|
|
113
|
+
output: NotionQueryDataSourceOutput
|
|
114
|
+
});
|
|
115
|
+
//#endregion
|
|
116
|
+
exports.notionQueryDataSource = notionQueryDataSource;
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=query-data-source.cjs.map
|