@keystrokehq/notion 0.1.0 → 0.1.2
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 +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +8 -8
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +88 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +88 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +8 -8
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +44 -44
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +849 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +849 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +44 -44
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +44 -44
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +642 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +642 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +44 -44
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +44 -44
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +996 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +996 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +44 -44
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +44 -44
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +624 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +624 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +44 -44
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +44 -44
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +826 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +826 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +44 -44
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +44 -44
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1080 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1080 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +44 -44
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +27 -27
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +78 -3
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +78 -3
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +27 -27
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +46 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +46 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +31 -31
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +139 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +139 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +31 -31
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +8 -8
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +38 -3
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +38 -3
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +8 -8
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +29 -29
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +83 -3
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +83 -3
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +29 -29
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +53 -53
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +2181 -3
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +2181 -3
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +53 -53
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +31 -31
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +90 -3
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +90 -3
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +31 -31
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +45 -45
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +38 -3
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +38 -3
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +45 -45
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +57 -57
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +687 -3
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +687 -3
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +57 -57
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +51 -51
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +2103 -3
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +2103 -3
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +51 -51
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +37 -37
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +148 -3
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +148 -3
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +37 -37
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +51 -51
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +594 -3
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +594 -3
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +51 -51
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +27 -27
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +89 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +89 -3
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +27 -27
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +35 -35
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +151 -3
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +151 -3
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +35 -35
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +7 -7
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +44 -3
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +44 -3
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +7 -7
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +4 -4
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +15 -3
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +15 -3
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +4 -4
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +13 -3
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +13 -3
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +30 -30
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +163 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +163 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +30 -30
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -1
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +19 -3
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +19 -3
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -1
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +4 -4
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +19 -3
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +19 -3
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +4 -4
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +7 -7
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +32 -3
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +32 -3
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +7 -7
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +6 -6
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +58 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +58 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +6 -6
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +27 -27
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +90 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +90 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +27 -27
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +18 -18
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +159 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +159 -3
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +18 -18
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +49 -49
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +214 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +214 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +49 -49
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +38 -38
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +208 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +208 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +38 -38
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +3 -3
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1706 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1706 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +3 -3
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +7 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +7 -3
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +19 -19
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +78 -3
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +78 -3
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +19 -19
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +5 -5
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +25 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +25 -3
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +5 -5
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +34 -34
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +139 -3
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +139 -3
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +34 -34
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +54 -54
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +751 -3
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +751 -3
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +54 -54
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +7 -7
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +33 -3
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +33 -3
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +7 -7
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +55 -55
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +564 -3
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +564 -3
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +55 -55
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +32 -32
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +103 -3
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +103 -3
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +32 -32
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +31 -31
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +126 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +126 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +31 -31
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +51 -51
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +314 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +314 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +51 -51
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +4 -4
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +218 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +218 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +4 -4
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-notion-page.cjs","names":["z","action"],"sources":["../../src/actions/create-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateNotionPageInput: z.ZodTypeAny = z.object({\n icon: z.string().describe(\"An emoji to be used as the icon for the new page. Must be a single emoji character. If the title starts with this emoji, it will be stripped from the title text to prevent duplication.\").optional(),\n cover: z.string().describe(\"The URL of an image to be used as the cover for the new page. The URL must be publicly accessible.\").optional(),\n title: z.string().describe(\"The title of the new page to be created. If an icon emoji is provided and the title starts with the same emoji, it will be automatically removed from the title to avoid duplication.\"),\n markdown: z.string().describe(\"Page content as Notion-flavored Markdown. When provided, the page will be created from this markdown string. If properties.title is omitted, the first # h1 heading will be extracted as the page title. This parameter is mutually exclusive with children and content parameters.\").optional(),\n parent_id: z.string().describe(\"CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.\"),\n});\nconst NotionCreateNotionPage_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to access the file (valid for 1 hour).\"),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires.\"),\n}).describe(\"Notion-hosted file object.\");\nconst NotionCreateNotionPage_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"External URL of the file.\"),\n}).describe(\"External file object.\");\nconst NotionCreateNotionPage_FileUploadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the completed file upload.\"),\n}).describe(\"API-uploaded file object.\");\nconst NotionCreateNotionPage_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"URL of the custom emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object.\");\nconst NotionCreateNotionPage_IconSchema: z.ZodTypeAny = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.\"),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionCreateNotionPage_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, can be an emoji or file object.\");\nconst NotionCreateNotionPage_CoverSchema: z.ZodTypeAny = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of cover: 'external', 'file', or 'file_upload'.\"),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n}).describe(\"Page cover image as a file object.\");\nconst NotionCreateNotionPage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n}).describe(\"Parent is a database.\");\nconst NotionCreateNotionPage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n data_source_id: z.string().describe(\"UUID of the parent data source.\"),\n}).describe(\"Parent is a data source.\");\nconst NotionCreateNotionPage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n page_id: z.string().describe(\"UUID of the parent page.\"),\n}).describe(\"Parent is a page.\");\nconst NotionCreateNotionPage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n workspace: z.boolean().describe(\"Always true, indicating a top-level page.\"),\n}).describe(\"Parent is workspace (top-level page).\");\nconst NotionCreateNotionPage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n block_id: z.string().describe(\"UUID of the parent block.\"),\n}).describe(\"Parent is a block.\");\nconst NotionCreateNotionPage_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"User object representing who created or edited the page.\");\nexport const NotionCreateNotionPageOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\"),\n url: z.string().describe(\"The URL of the Notion page.\"),\n icon: NotionCreateNotionPage_IconSchema.nullable().optional(),\n cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: z.union([NotionCreateNotionPage_DatabaseParentSchema, NotionCreateNotionPage_DataSourceParentSchema, NotionCreateNotionPage_PageParentSchema, NotionCreateNotionPage_WorkspaceParentSchema, NotionCreateNotionPage_BlockParentSchema]),\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().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionCreateNotionPage_UserSchema.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 publicly accessible URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, formatted as an ISO 8601 datetime string.\"),\n last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited, formatted as an ISO 8601 datetime string.\"),\n}).describe(\"Response from creating a Notion page.\");\n\nexport const notionCreateNotionPage = action(\"NOTION_CREATE_NOTION_PAGE\", {\n slug: \"notion-create-notion-page\",\n name: \"Create Notion page\",\n description: \"Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters\",\n input: NotionCreateNotionPageInput,\n output: NotionCreateNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CAC/N,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CA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;CACvH,gBAAgB,kCAAkC,SAAS;CAC3D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;AACjI,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-notion-page.cjs","names":["z","action"],"sources":["../../src/actions/create-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateNotionPageInput = z.object({\n icon: z.string().describe(\"An emoji to be used as the icon for the new page. Must be a single emoji character. If the title starts with this emoji, it will be stripped from the title text to prevent duplication.\").optional(),\n cover: z.string().describe(\"The URL of an image to be used as the cover for the new page. The URL must be publicly accessible.\").optional(),\n title: z.string().describe(\"The title of the new page to be created. If an icon emoji is provided and the title starts with the same emoji, it will be automatically removed from the title to avoid duplication.\"),\n markdown: z.string().describe(\"Page content as Notion-flavored Markdown. When provided, the page will be created from this markdown string. If properties.title is omitted, the first # h1 heading will be extracted as the page title. This parameter is mutually exclusive with children and content parameters.\").optional(),\n parent_id: z.string().describe(\"CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.\"),\n});\nconst NotionCreateNotionPage_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to access the file (valid for 1 hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file object.\");\nconst NotionCreateNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the file.\").nullable(),\n}).describe(\"External file object.\");\nconst NotionCreateNotionPage_FileUploadSchema = z.object({\n id: z.string().describe(\"UUID of the completed file upload.\").nullable(),\n}).describe(\"API-uploaded file object.\");\nconst NotionCreateNotionPage_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji object.\");\nconst NotionCreateNotionPage_IconSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionCreateNotionPage_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, can be an emoji or file object.\");\nconst NotionCreateNotionPage_CoverSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of cover: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n}).describe(\"Page cover image as a file object.\");\nconst NotionCreateNotionPage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).describe(\"Parent is a database.\");\nconst NotionCreateNotionPage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).describe(\"Parent is a data source.\");\nconst NotionCreateNotionPage_PageParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).describe(\"Parent is a page.\");\nconst NotionCreateNotionPage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n workspace: z.boolean().describe(\"Always true, indicating a top-level page.\").nullable(),\n}).describe(\"Parent is workspace (top-level page).\");\nconst NotionCreateNotionPage_BlockParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).describe(\"Parent is a block.\");\nconst NotionCreateNotionPage_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).describe(\"User object representing who created or edited the page.\");\nexport const NotionCreateNotionPageOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: NotionCreateNotionPage_IconSchema.nullable().optional(),\n cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: z.union([NotionCreateNotionPage_DatabaseParentSchema, NotionCreateNotionPage_DataSourceParentSchema, NotionCreateNotionPage_PageParentSchema, NotionCreateNotionPage_WorkspaceParentSchema, NotionCreateNotionPage_BlockParentSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionCreateNotionPage_UserSchema.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 publicly accessible URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, formatted as an ISO 8601 datetime string.\").nullable(),\n last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited, formatted as an ISO 8601 datetime string.\").nullable(),\n}).describe(\"Response from creating a Notion page.\");\n\nexport const notionCreateNotionPage = action(\"NOTION_CREATE_NOTION_PAGE\", {\n slug: \"notion-create-notion-page\",\n name: \"Create Notion page\",\n description: \"Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters\",\n input: NotionCreateNotionPageInput,\n output: NotionCreateNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CAC/N,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CAClN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qRAAqR,CAAC,CAAC,SAAS;CAC9T,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uoBAAuoB;AACxqB,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,4CAA4C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,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAClI,gBAAgB,kCAAkC,SAAS;CAC3D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,89 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-notion-page.d.ts
|
|
4
|
-
declare const NotionCreateNotionPageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionCreateNotionPageInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
9
|
+
parent_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const NotionCreateNotionPageOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
url: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
file_upload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
custom_emoji: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
id: z.ZodNullable<z.ZodString>;
|
|
29
|
+
url: z.ZodNullable<z.ZodString>;
|
|
30
|
+
name: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
|
+
url: z.ZodNullable<z.ZodString>;
|
|
36
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
type: z.ZodNullable<z.ZodString>;
|
|
39
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
url: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
file_upload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
object: z.ZodNullable<z.ZodString>;
|
|
47
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
+
type: z.ZodNullable<z.ZodString>;
|
|
49
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
type: z.ZodNullable<z.ZodString>;
|
|
52
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
53
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
type: z.ZodNullable<z.ZodString>;
|
|
56
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
type: z.ZodNullable<z.ZodString>;
|
|
59
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodNullable<z.ZodString>;
|
|
62
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>]>;
|
|
64
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
65
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
66
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
67
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
68
|
+
id: z.ZodNullable<z.ZodString>;
|
|
69
|
+
object: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
properties: z.ZodObject<{}, z.core.$strip>;
|
|
72
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
74
|
+
last_edited_by: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
id: z.ZodNullable<z.ZodString>;
|
|
76
|
+
object: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
declare const notionCreateNotionPage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
81
|
+
title: string;
|
|
82
|
+
parent_id: string;
|
|
83
|
+
icon?: string | undefined;
|
|
84
|
+
cover?: string | undefined;
|
|
85
|
+
markdown?: string | undefined;
|
|
86
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
87
|
//#endregion
|
|
8
88
|
export { notionCreateNotionPage };
|
|
9
89
|
//# sourceMappingURL=create-notion-page.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-notion-page.d.cts","names":[],"sources":["../../src/actions/create-notion-page.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-notion-page.d.cts","names":[],"sources":["../../src/actions/create-notion-page.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cA6D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,89 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-notion-page.d.ts
|
|
4
|
-
declare const NotionCreateNotionPageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionCreateNotionPageInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
9
|
+
parent_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const NotionCreateNotionPageOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
url: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
file_upload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
custom_emoji: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
id: z.ZodNullable<z.ZodString>;
|
|
29
|
+
url: z.ZodNullable<z.ZodString>;
|
|
30
|
+
name: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
|
+
url: z.ZodNullable<z.ZodString>;
|
|
36
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
type: z.ZodNullable<z.ZodString>;
|
|
39
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
url: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
file_upload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
object: z.ZodNullable<z.ZodString>;
|
|
47
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
+
type: z.ZodNullable<z.ZodString>;
|
|
49
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
type: z.ZodNullable<z.ZodString>;
|
|
52
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
53
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
type: z.ZodNullable<z.ZodString>;
|
|
56
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
type: z.ZodNullable<z.ZodString>;
|
|
59
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodNullable<z.ZodString>;
|
|
62
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>]>;
|
|
64
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
65
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
66
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
67
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
68
|
+
id: z.ZodNullable<z.ZodString>;
|
|
69
|
+
object: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
properties: z.ZodObject<{}, z.core.$strip>;
|
|
72
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
74
|
+
last_edited_by: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
id: z.ZodNullable<z.ZodString>;
|
|
76
|
+
object: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
declare const notionCreateNotionPage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
81
|
+
title: string;
|
|
82
|
+
parent_id: string;
|
|
83
|
+
icon?: string | undefined;
|
|
84
|
+
cover?: string | undefined;
|
|
85
|
+
markdown?: string | undefined;
|
|
86
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
87
|
//#endregion
|
|
8
88
|
export { notionCreateNotionPage };
|
|
9
89
|
//# sourceMappingURL=create-notion-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-notion-page.d.mts","names":[],"sources":["../../src/actions/create-notion-page.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-notion-page.d.mts","names":[],"sources":["../../src/actions/create-notion-page.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cA6D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -9,19 +9,19 @@ const NotionCreateNotionPageInput = z.object({
|
|
|
9
9
|
parent_id: z.string().describe("CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.")
|
|
10
10
|
});
|
|
11
11
|
const NotionCreateNotionPage_NotionHostedFileSchema = z.object({
|
|
12
|
-
url: z.string().describe("Authenticated URL to access the file (valid for 1 hour)."),
|
|
13
|
-
expiry_time: z.string().describe("ISO 8601 datetime when the URL expires.")
|
|
12
|
+
url: z.string().describe("Authenticated URL to access the file (valid for 1 hour).").nullable(),
|
|
13
|
+
expiry_time: z.string().describe("ISO 8601 datetime when the URL expires.").nullable()
|
|
14
14
|
}).describe("Notion-hosted file object.");
|
|
15
|
-
const NotionCreateNotionPage_ExternalFileSchema = z.object({ url: z.string().describe("External URL of the file.") }).describe("External file object.");
|
|
16
|
-
const NotionCreateNotionPage_FileUploadSchema = z.object({ id: z.string().describe("UUID of the completed file upload.") }).describe("API-uploaded file object.");
|
|
15
|
+
const NotionCreateNotionPage_ExternalFileSchema = z.object({ url: z.string().describe("External URL of the file.").nullable() }).describe("External file object.");
|
|
16
|
+
const NotionCreateNotionPage_FileUploadSchema = z.object({ id: z.string().describe("UUID of the completed file upload.").nullable() }).describe("API-uploaded file object.");
|
|
17
17
|
const NotionCreateNotionPage_CustomEmojiSchema = z.object({
|
|
18
|
-
id: z.string().describe("Unique identifier for the custom emoji."),
|
|
19
|
-
url: z.string().describe("URL of the custom emoji image."),
|
|
20
|
-
name: z.string().describe("Display name of the custom emoji.")
|
|
18
|
+
id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
19
|
+
url: z.string().describe("URL of the custom emoji image.").nullable(),
|
|
20
|
+
name: z.string().describe("Display name of the custom emoji.").nullable()
|
|
21
21
|
}).describe("Custom emoji object.");
|
|
22
22
|
const NotionCreateNotionPage_IconSchema = z.object({
|
|
23
23
|
file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),
|
|
24
|
-
type: z.string().describe("Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'."),
|
|
24
|
+
type: z.string().describe("Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.").nullable(),
|
|
25
25
|
emoji: z.string().describe("Emoji character when type is 'emoji'.").nullable().optional(),
|
|
26
26
|
external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),
|
|
27
27
|
file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),
|
|
@@ -29,34 +29,34 @@ const NotionCreateNotionPage_IconSchema = z.object({
|
|
|
29
29
|
}).describe("Page icon, can be an emoji or file object.");
|
|
30
30
|
const NotionCreateNotionPage_CoverSchema = z.object({
|
|
31
31
|
file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),
|
|
32
|
-
type: z.string().describe("Type of cover: 'external', 'file', or 'file_upload'."),
|
|
32
|
+
type: z.string().describe("Type of cover: 'external', 'file', or 'file_upload'.").nullable(),
|
|
33
33
|
external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),
|
|
34
34
|
file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional()
|
|
35
35
|
}).describe("Page cover image as a file object.");
|
|
36
36
|
const NotionCreateNotionPage_DatabaseParentSchema = z.object({
|
|
37
|
-
type: z.string().describe("Type of parent."),
|
|
38
|
-
database_id: z.string().describe("UUID of the parent database.")
|
|
37
|
+
type: z.string().describe("Type of parent.").nullable(),
|
|
38
|
+
database_id: z.string().describe("UUID of the parent database.").nullable()
|
|
39
39
|
}).describe("Parent is a database.");
|
|
40
40
|
const NotionCreateNotionPage_DataSourceParentSchema = z.object({
|
|
41
|
-
type: z.string().describe("Type of parent."),
|
|
42
|
-
database_id: z.string().describe("UUID of the parent database."),
|
|
43
|
-
data_source_id: z.string().describe("UUID of the parent data source.")
|
|
41
|
+
type: z.string().describe("Type of parent.").nullable(),
|
|
42
|
+
database_id: z.string().describe("UUID of the parent database.").nullable(),
|
|
43
|
+
data_source_id: z.string().describe("UUID of the parent data source.").nullable()
|
|
44
44
|
}).describe("Parent is a data source.");
|
|
45
45
|
const NotionCreateNotionPage_PageParentSchema = z.object({
|
|
46
|
-
type: z.string().describe("Type of parent."),
|
|
47
|
-
page_id: z.string().describe("UUID of the parent page.")
|
|
46
|
+
type: z.string().describe("Type of parent.").nullable(),
|
|
47
|
+
page_id: z.string().describe("UUID of the parent page.").nullable()
|
|
48
48
|
}).describe("Parent is a page.");
|
|
49
49
|
const NotionCreateNotionPage_WorkspaceParentSchema = z.object({
|
|
50
|
-
type: z.string().describe("Type of parent."),
|
|
51
|
-
workspace: z.boolean().describe("Always true, indicating a top-level page.")
|
|
50
|
+
type: z.string().describe("Type of parent.").nullable(),
|
|
51
|
+
workspace: z.boolean().describe("Always true, indicating a top-level page.").nullable()
|
|
52
52
|
}).describe("Parent is workspace (top-level page).");
|
|
53
53
|
const NotionCreateNotionPage_BlockParentSchema = z.object({
|
|
54
|
-
type: z.string().describe("Type of parent."),
|
|
55
|
-
block_id: z.string().describe("UUID of the parent block.")
|
|
54
|
+
type: z.string().describe("Type of parent.").nullable(),
|
|
55
|
+
block_id: z.string().describe("UUID of the parent block.").nullable()
|
|
56
56
|
}).describe("Parent is a block.");
|
|
57
57
|
const NotionCreateNotionPage_UserSchema = z.object({
|
|
58
|
-
id: z.string().describe("Unique identifier for the user."),
|
|
59
|
-
object: z.string().describe("Always 'user'.")
|
|
58
|
+
id: z.string().describe("Unique identifier for the user.").nullable(),
|
|
59
|
+
object: z.string().describe("Always 'user'.").nullable()
|
|
60
60
|
}).describe("User object representing who created or edited the page.");
|
|
61
61
|
const notionCreateNotionPage = action("NOTION_CREATE_NOTION_PAGE", {
|
|
62
62
|
slug: "notion-create-notion-page",
|
|
@@ -64,11 +64,11 @@ const notionCreateNotionPage = action("NOTION_CREATE_NOTION_PAGE", {
|
|
|
64
64
|
description: "Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters",
|
|
65
65
|
input: NotionCreateNotionPageInput,
|
|
66
66
|
output: z.object({
|
|
67
|
-
id: z.string().describe("Unique identifier for the page in UUIDv4 format."),
|
|
68
|
-
url: z.string().describe("The URL of the Notion page."),
|
|
67
|
+
id: z.string().describe("Unique identifier for the page in UUIDv4 format.").nullable(),
|
|
68
|
+
url: z.string().describe("The URL of the Notion page.").nullable(),
|
|
69
69
|
icon: NotionCreateNotionPage_IconSchema.nullable().optional(),
|
|
70
70
|
cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),
|
|
71
|
-
object: z.string().describe("Always 'page'."),
|
|
71
|
+
object: z.string().describe("Always 'page'.").nullable(),
|
|
72
72
|
parent: z.union([
|
|
73
73
|
NotionCreateNotionPage_DatabaseParentSchema,
|
|
74
74
|
NotionCreateNotionPage_DataSourceParentSchema,
|
|
@@ -76,15 +76,15 @@ const notionCreateNotionPage = action("NOTION_CREATE_NOTION_PAGE", {
|
|
|
76
76
|
NotionCreateNotionPage_WorkspaceParentSchema,
|
|
77
77
|
NotionCreateNotionPage_BlockParentSchema
|
|
78
78
|
]),
|
|
79
|
-
archived: z.boolean().describe("Whether the page is archived."),
|
|
80
|
-
in_trash: z.boolean().describe("Whether the page is in the trash."),
|
|
79
|
+
archived: z.boolean().describe("Whether the page is archived.").nullable(),
|
|
80
|
+
in_trash: z.boolean().describe("Whether the page is in the trash.").nullable(),
|
|
81
81
|
is_locked: z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
|
|
82
82
|
created_by: NotionCreateNotionPage_UserSchema.nullable(),
|
|
83
83
|
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."),
|
|
84
84
|
public_url: z.string().describe("The publicly accessible URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
85
|
-
created_time: z.string().describe("Date and time when this page was created, formatted as an ISO 8601 datetime string."),
|
|
85
|
+
created_time: z.string().describe("Date and time when this page was created, formatted as an ISO 8601 datetime string.").nullable(),
|
|
86
86
|
last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),
|
|
87
|
-
last_edited_time: z.string().describe("Date and time when this page was last edited, formatted as an ISO 8601 datetime string.")
|
|
87
|
+
last_edited_time: z.string().describe("Date and time when this page was last edited, formatted as an ISO 8601 datetime string.").nullable()
|
|
88
88
|
}).describe("Response from creating a Notion page.")
|
|
89
89
|
});
|
|
90
90
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-notion-page.mjs","names":[],"sources":["../../src/actions/create-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateNotionPageInput: z.ZodTypeAny = z.object({\n icon: z.string().describe(\"An emoji to be used as the icon for the new page. Must be a single emoji character. If the title starts with this emoji, it will be stripped from the title text to prevent duplication.\").optional(),\n cover: z.string().describe(\"The URL of an image to be used as the cover for the new page. The URL must be publicly accessible.\").optional(),\n title: z.string().describe(\"The title of the new page to be created. If an icon emoji is provided and the title starts with the same emoji, it will be automatically removed from the title to avoid duplication.\"),\n markdown: z.string().describe(\"Page content as Notion-flavored Markdown. When provided, the page will be created from this markdown string. If properties.title is omitted, the first # h1 heading will be extracted as the page title. This parameter is mutually exclusive with children and content parameters.\").optional(),\n parent_id: z.string().describe(\"CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.\"),\n});\nconst NotionCreateNotionPage_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to access the file (valid for 1 hour).\"),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires.\"),\n}).describe(\"Notion-hosted file object.\");\nconst NotionCreateNotionPage_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"External URL of the file.\"),\n}).describe(\"External file object.\");\nconst NotionCreateNotionPage_FileUploadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the completed file upload.\"),\n}).describe(\"API-uploaded file object.\");\nconst NotionCreateNotionPage_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"URL of the custom emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object.\");\nconst NotionCreateNotionPage_IconSchema: z.ZodTypeAny = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.\"),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionCreateNotionPage_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, can be an emoji or file object.\");\nconst NotionCreateNotionPage_CoverSchema: z.ZodTypeAny = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of cover: 'external', 'file', or 'file_upload'.\"),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n}).describe(\"Page cover image as a file object.\");\nconst NotionCreateNotionPage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n}).describe(\"Parent is a database.\");\nconst NotionCreateNotionPage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n database_id: z.string().describe(\"UUID of the parent database.\"),\n data_source_id: z.string().describe(\"UUID of the parent data source.\"),\n}).describe(\"Parent is a data source.\");\nconst NotionCreateNotionPage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n page_id: z.string().describe(\"UUID of the parent page.\"),\n}).describe(\"Parent is a page.\");\nconst NotionCreateNotionPage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n workspace: z.boolean().describe(\"Always true, indicating a top-level page.\"),\n}).describe(\"Parent is workspace (top-level page).\");\nconst NotionCreateNotionPage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent.\"),\n block_id: z.string().describe(\"UUID of the parent block.\"),\n}).describe(\"Parent is a block.\");\nconst NotionCreateNotionPage_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"User object representing who created or edited the page.\");\nexport const NotionCreateNotionPageOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\"),\n url: z.string().describe(\"The URL of the Notion page.\"),\n icon: NotionCreateNotionPage_IconSchema.nullable().optional(),\n cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: z.union([NotionCreateNotionPage_DatabaseParentSchema, NotionCreateNotionPage_DataSourceParentSchema, NotionCreateNotionPage_PageParentSchema, NotionCreateNotionPage_WorkspaceParentSchema, NotionCreateNotionPage_BlockParentSchema]),\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().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionCreateNotionPage_UserSchema.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 publicly accessible URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, formatted as an ISO 8601 datetime string.\"),\n last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited, formatted as an ISO 8601 datetime string.\"),\n}).describe(\"Response from creating a Notion page.\");\n\nexport const notionCreateNotionPage = action(\"NOTION_CREATE_NOTION_PAGE\", {\n slug: \"notion-create-notion-page\",\n name: \"Create Notion page\",\n description: \"Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters\",\n input: NotionCreateNotionPageInput,\n output: NotionCreateNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CAC/N,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CAClN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qRAAqR,CAAC,CAAC,SAAS;CAC9T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uoBAAuoB;AACxqB,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC5E,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,4CAA0D,EAAE,OAAO,EACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,EACtD,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAM,0CAAwD,EAAE,OAAO,EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC9D,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAA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AClE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,YAAY,kCAAkC,SAAS;EACvD,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI;EAClK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EACvH,gBAAgB,kCAAkC,SAAS;EAC3D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CACjI,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-notion-page.mjs","names":[],"sources":["../../src/actions/create-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionCreateNotionPageInput = z.object({\n icon: z.string().describe(\"An emoji to be used as the icon for the new page. Must be a single emoji character. If the title starts with this emoji, it will be stripped from the title text to prevent duplication.\").optional(),\n cover: z.string().describe(\"The URL of an image to be used as the cover for the new page. The URL must be publicly accessible.\").optional(),\n title: z.string().describe(\"The title of the new page to be created. If an icon emoji is provided and the title starts with the same emoji, it will be automatically removed from the title to avoid duplication.\"),\n markdown: z.string().describe(\"Page content as Notion-flavored Markdown. When provided, the page will be created from this markdown string. If properties.title is omitted, the first # h1 heading will be extracted as the page title. This parameter is mutually exclusive with children and content parameters.\").optional(),\n parent_id: z.string().describe(\"CRITICAL: Must be either: 1) A valid Notion UUID in dashed format (8-4-4-4-12 hex characters like '59833787-2cf9-4fdf-8782-e53db20768a5') or dashless format (32 hex characters like '598337872cf94fdf8782e53db20768a5') of an existing Notion page or database. 2) The exact title of an existing page/database (less reliable - UUID strongly preferred). IMPORTANT: Always use search_pages or list_databases actions FIRST to obtain valid parent IDs. Common errors: Using malformed UUIDs, non-existent IDs, or IDs from different workspaces. Note: Root-level pages cannot be created - you must specify a parent. Also accepts 'parent_page_id' as an alias.\"),\n});\nconst NotionCreateNotionPage_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to access the file (valid for 1 hour).\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 datetime when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file object.\");\nconst NotionCreateNotionPage_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the file.\").nullable(),\n}).describe(\"External file object.\");\nconst NotionCreateNotionPage_FileUploadSchema = z.object({\n id: z.string().describe(\"UUID of the completed file upload.\").nullable(),\n}).describe(\"API-uploaded file object.\");\nconst NotionCreateNotionPage_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji object.\");\nconst NotionCreateNotionPage_IconSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of icon: 'emoji', 'custom_emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionCreateNotionPage_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, can be an emoji or file object.\");\nconst NotionCreateNotionPage_CoverSchema = z.object({\n file: NotionCreateNotionPage_NotionHostedFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of cover: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionCreateNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionCreateNotionPage_FileUploadSchema.nullable().optional(),\n}).describe(\"Page cover image as a file object.\");\nconst NotionCreateNotionPage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).describe(\"Parent is a database.\");\nconst NotionCreateNotionPage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).describe(\"Parent is a data source.\");\nconst NotionCreateNotionPage_PageParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).describe(\"Parent is a page.\");\nconst NotionCreateNotionPage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n workspace: z.boolean().describe(\"Always true, indicating a top-level page.\").nullable(),\n}).describe(\"Parent is workspace (top-level page).\");\nconst NotionCreateNotionPage_BlockParentSchema = z.object({\n type: z.string().describe(\"Type of parent.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).describe(\"Parent is a block.\");\nconst NotionCreateNotionPage_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).describe(\"User object representing who created or edited the page.\");\nexport const NotionCreateNotionPageOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: NotionCreateNotionPage_IconSchema.nullable().optional(),\n cover: NotionCreateNotionPage_CoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: z.union([NotionCreateNotionPage_DatabaseParentSchema, NotionCreateNotionPage_DataSourceParentSchema, NotionCreateNotionPage_PageParentSchema, NotionCreateNotionPage_WorkspaceParentSchema, NotionCreateNotionPage_BlockParentSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionCreateNotionPage_UserSchema.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 publicly accessible URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, formatted as an ISO 8601 datetime string.\").nullable(),\n last_edited_by: NotionCreateNotionPage_UserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited, formatted as an ISO 8601 datetime string.\").nullable(),\n}).describe(\"Response from creating a Notion page.\");\n\nexport const notionCreateNotionPage = action(\"NOTION_CREATE_NOTION_PAGE\", {\n slug: \"notion-create-notion-page\",\n name: \"Create Notion page\",\n description: \"Creates a new page in a Notion workspace under a specified parent page or database. Supports creating pages with markdown content using the native markdown parameter, or as an empty page that can be populated later. PREREQUISITES: - Parent page/database must exist and be accessible in your Notion workspace - Use search_pages or list_databases first to obtain valid parent IDs LIMITATIONS: - Cannot create root-level pages (must have a parent) - May encounter conflicts if creating pages too quickly - Title-based parent search is less reliable than using UUIDs - The markdown parameter is mutually exclusive with children/content parameters\",\n input: NotionCreateNotionPageInput,\n output: NotionCreateNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L,CAAC,CAAC,SAAS;CAC/N,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CAClN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qRAAqR,CAAC,CAAC,SAAS;CAC9T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uoBAAuoB;AACxqB,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9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