@keystrokehq/notion 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +13 -13
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +90 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +90 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +13 -13
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +100 -100
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +867 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +867 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +100 -100
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +91 -91
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +652 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +652 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +91 -91
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +125 -125
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +1039 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +1039 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +125 -125
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +87 -87
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +630 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +630 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +87 -87
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +101 -101
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +845 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +845 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +101 -101
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +118 -118
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1116 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1116 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +118 -118
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +43 -43
- 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 +43 -43
- 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 +44 -44
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +140 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +140 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +44 -44
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +9 -9
- 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 +9 -9
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +41 -41
- 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 +41 -41
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +84 -84
- 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 +84 -84
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +49 -49
- 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 +49 -49
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +91 -91
- 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 +91 -91
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +97 -97
- 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 +97 -97
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +81 -81
- 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 +81 -81
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +55 -55
- 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 +55 -55
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +76 -76
- 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 +76 -76
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +38 -38
- 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 +38 -38
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +56 -56
- 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 +56 -56
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +13 -13
- 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 +13 -13
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +5 -5
- 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 +5 -5
- 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 +50 -50
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +165 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +165 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +50 -50
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +2 -2
- 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 +2 -2
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +6 -6
- 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 +6 -6
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +9 -9
- 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 +9 -9
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +14 -14
- 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 +14 -14
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +44 -44
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +92 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +92 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +44 -44
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +35 -35
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +161 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +161 -3
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +35 -35
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +73 -73
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +216 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +216 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +73 -73
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +61 -61
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +209 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +209 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +61 -61
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +133 -133
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1836 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1836 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +133 -133
- 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 +42 -42
- 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 +42 -42
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +6 -6
- 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 +6 -6
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +55 -55
- 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 +55 -55
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +82 -82
- 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 +82 -82
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +8 -8
- 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 +8 -8
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +94 -94
- 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 +94 -94
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +46 -46
- 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 +46 -46
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +50 -50
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +127 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +127 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +50 -50
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +59 -59
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +315 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +315 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +59 -59
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +32 -32
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +242 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +242 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +32 -32
- 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
|
@@ -9,67 +9,67 @@ const NotionUpdatePageInput = zod.z.object({
|
|
|
9
9
|
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary mapping property names to property value objects. IMPORTANT: Property names are workspace-specific and case-sensitive. Before updating, use NOTION_FETCH_ROW (for database pages) or NOTION_FETCH_DATABASE to discover the exact property names available in your database. Common properties like 'Status', 'Name', or 'Tags' may have different names in your workspace (e.g., 'Task Name', 'Priority'). For status/select properties, valid option values also vary by workspace - check the database schema for available options. Values must be wrapped in property type objects - never send plain values. Example: {'Status': {'select': {'name': 'Done'}}} not {'Status': 'Done'}. For relation properties, IDs must be valid UUIDs (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).").optional()
|
|
10
10
|
});
|
|
11
11
|
const NotionUpdatePage_EmojiIconSchema = zod.z.object({
|
|
12
|
-
type: zod.z.string().describe("Always 'emoji'."),
|
|
13
|
-
emoji: zod.z.string().describe("Emoji character.")
|
|
14
|
-
}).describe("Emoji icon object.");
|
|
12
|
+
type: zod.z.string().describe("Always 'emoji'.").nullable(),
|
|
13
|
+
emoji: zod.z.string().describe("Emoji character.").nullable()
|
|
14
|
+
}).passthrough().describe("Emoji icon object.");
|
|
15
15
|
const NotionUpdatePage_CustomEmojiDataSchema = zod.z.object({
|
|
16
|
-
id: zod.z.string().describe("Unique identifier for the custom emoji."),
|
|
17
|
-
url: zod.z.string().describe("HTTPS URL pointing to the emoji image."),
|
|
18
|
-
name: zod.z.string().describe("Display name of the custom emoji.")
|
|
19
|
-
}).describe("Custom emoji data object.");
|
|
16
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
17
|
+
url: zod.z.string().describe("HTTPS URL pointing to the emoji image.").nullable(),
|
|
18
|
+
name: zod.z.string().describe("Display name of the custom emoji.").nullable()
|
|
19
|
+
}).passthrough().describe("Custom emoji data object.");
|
|
20
20
|
const NotionUpdatePage_CustomEmojiIconSchema = zod.z.object({
|
|
21
|
-
type: zod.z.string().describe("Always 'custom_emoji'."),
|
|
21
|
+
type: zod.z.string().describe("Always 'custom_emoji'.").nullable(),
|
|
22
22
|
custom_emoji: NotionUpdatePage_CustomEmojiDataSchema.nullable()
|
|
23
|
-
}).describe("Custom emoji icon object.");
|
|
23
|
+
}).passthrough().describe("Custom emoji icon object.");
|
|
24
24
|
const NotionUpdatePage_FileObjectSchema = zod.z.object({
|
|
25
|
-
url: zod.z.string().describe("Authenticated HTTP GET URL, valid for one hour."),
|
|
26
|
-
expiry_time: zod.z.string().describe("ISO 8601 datetime when URL expires.")
|
|
27
|
-
}).describe("File object for Notion-hosted files (manual UI uploads).");
|
|
25
|
+
url: zod.z.string().describe("Authenticated HTTP GET URL, valid for one hour.").nullable(),
|
|
26
|
+
expiry_time: zod.z.string().describe("ISO 8601 datetime when URL expires.").nullable()
|
|
27
|
+
}).passthrough().describe("File object for Notion-hosted files (manual UI uploads).");
|
|
28
28
|
const NotionUpdatePage_NotionHostedFileSchema = zod.z.object({
|
|
29
29
|
file: NotionUpdatePage_FileObjectSchema.nullable(),
|
|
30
|
-
type: zod.z.string().describe("Always 'file'.")
|
|
31
|
-
}).describe("Wrapper for Notion-hosted file.");
|
|
32
|
-
const NotionUpdatePage_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUID referencing an uploaded file.") }).describe("File object for API-uploaded files via File Upload API.");
|
|
30
|
+
type: zod.z.string().describe("Always 'file'.").nullable()
|
|
31
|
+
}).passthrough().describe("Wrapper for Notion-hosted file.");
|
|
32
|
+
const NotionUpdatePage_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUID referencing an uploaded file.").nullable() }).passthrough().describe("File object for API-uploaded files via File Upload API.");
|
|
33
33
|
const NotionUpdatePage_APIUploadedFileSchema = zod.z.object({
|
|
34
|
-
type: zod.z.string().describe("Always 'file_upload'."),
|
|
34
|
+
type: zod.z.string().describe("Always 'file_upload'.").nullable(),
|
|
35
35
|
file_upload: NotionUpdatePage_FileUploadObjectSchema.nullable()
|
|
36
|
-
}).describe("Wrapper for API-uploaded file.");
|
|
37
|
-
const NotionUpdatePage_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to external file.") }).describe("File object for externally hosted files (never expires).");
|
|
36
|
+
}).passthrough().describe("Wrapper for API-uploaded file.");
|
|
37
|
+
const NotionUpdatePage_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to external file.").nullable() }).passthrough().describe("File object for externally hosted files (never expires).");
|
|
38
38
|
const NotionUpdatePage_ExternalFileSchema = zod.z.object({
|
|
39
|
-
type: zod.z.string().describe("Always 'external'."),
|
|
39
|
+
type: zod.z.string().describe("Always 'external'.").nullable(),
|
|
40
40
|
external: NotionUpdatePage_ExternalFileObjectSchema.nullable()
|
|
41
|
-
}).describe("Wrapper for externally hosted file.");
|
|
41
|
+
}).passthrough().describe("Wrapper for externally hosted file.");
|
|
42
42
|
const NotionUpdatePage_DatabaseParentSchema = zod.z.object({
|
|
43
|
-
type: zod.z.string().describe("Always 'database_id'."),
|
|
44
|
-
database_id: zod.z.string().describe("UUID of parent database.")
|
|
45
|
-
}).describe("Database parent object.");
|
|
43
|
+
type: zod.z.string().describe("Always 'database_id'.").nullable(),
|
|
44
|
+
database_id: zod.z.string().describe("UUID of parent database.").nullable()
|
|
45
|
+
}).passthrough().describe("Database parent object.");
|
|
46
46
|
const NotionUpdatePage_DataSourceParentSchema = zod.z.object({
|
|
47
|
-
type: zod.z.string().describe("Always 'data_source_id'."),
|
|
47
|
+
type: zod.z.string().describe("Always 'data_source_id'.").nullable(),
|
|
48
48
|
database_id: zod.z.string().describe("UUID of parent database (convenience reference).").nullable().optional(),
|
|
49
|
-
data_source_id: zod.z.string().describe("UUID of parent data source.")
|
|
50
|
-
}).describe("Data source parent object (includes convenience database_id reference).");
|
|
49
|
+
data_source_id: zod.z.string().describe("UUID of parent data source.").nullable()
|
|
50
|
+
}).passthrough().describe("Data source parent object (includes convenience database_id reference).");
|
|
51
51
|
const NotionUpdatePage_PageParentSchema = zod.z.object({
|
|
52
|
-
type: zod.z.string().describe("Always 'page_id'."),
|
|
53
|
-
page_id: zod.z.string().describe("UUID of parent page.")
|
|
54
|
-
}).describe("Page parent object for hierarchical nesting.");
|
|
52
|
+
type: zod.z.string().describe("Always 'page_id'.").nullable(),
|
|
53
|
+
page_id: zod.z.string().describe("UUID of parent page.").nullable()
|
|
54
|
+
}).passthrough().describe("Page parent object for hierarchical nesting.");
|
|
55
55
|
const NotionUpdatePage_WorkspaceParentSchema = zod.z.object({
|
|
56
|
-
type: zod.z.string().describe("Always 'workspace'."),
|
|
57
|
-
workspace: zod.z.boolean().describe("Always true.")
|
|
58
|
-
}).describe("Workspace parent object for top-level entities.");
|
|
56
|
+
type: zod.z.string().describe("Always 'workspace'.").nullable(),
|
|
57
|
+
workspace: zod.z.boolean().describe("Always true.").nullable()
|
|
58
|
+
}).passthrough().describe("Workspace parent object for top-level entities.");
|
|
59
59
|
const NotionUpdatePage_BlockParentSchema = zod.z.object({
|
|
60
|
-
type: zod.z.string().describe("Always 'block_id'."),
|
|
61
|
-
block_id: zod.z.string().describe("UUID of parent block.")
|
|
62
|
-
}).describe("Block parent object for inline/nested pages.");
|
|
60
|
+
type: zod.z.string().describe("Always 'block_id'.").nullable(),
|
|
61
|
+
block_id: zod.z.string().describe("UUID of parent block.").nullable()
|
|
62
|
+
}).passthrough().describe("Block parent object for inline/nested pages.");
|
|
63
63
|
const NotionUpdatePage_PartialUserSchema = zod.z.object({
|
|
64
|
-
id: zod.z.string().describe("Unique identifier for the user (UUID)."),
|
|
64
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
|
|
65
65
|
name: zod.z.string().describe("User's display name in Notion.").nullable().optional(),
|
|
66
66
|
type: zod.z.string().describe("User type: 'person' or 'bot'.").nullable().optional(),
|
|
67
|
-
object: zod.z.string().describe("Always 'user'."),
|
|
67
|
+
object: zod.z.string().describe("Always 'user'.").nullable(),
|
|
68
68
|
avatar_url: zod.z.string().describe("URL to user's avatar image.").nullable().optional()
|
|
69
|
-
}).describe("Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.");
|
|
69
|
+
}).passthrough().describe("Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.");
|
|
70
70
|
const NotionUpdatePageOutput = zod.z.object({
|
|
71
|
-
id: zod.z.string().describe("Unique identifier for the page."),
|
|
72
|
-
url: zod.z.string().describe("The URL of the Notion page."),
|
|
71
|
+
id: zod.z.string().describe("Unique identifier for the page.").nullable(),
|
|
72
|
+
url: zod.z.string().describe("The URL of the Notion page.").nullable(),
|
|
73
73
|
icon: zod.z.union([
|
|
74
74
|
NotionUpdatePage_EmojiIconSchema,
|
|
75
75
|
NotionUpdatePage_CustomEmojiIconSchema,
|
|
@@ -82,7 +82,7 @@ const NotionUpdatePageOutput = zod.z.object({
|
|
|
82
82
|
NotionUpdatePage_APIUploadedFileSchema,
|
|
83
83
|
NotionUpdatePage_ExternalFileSchema
|
|
84
84
|
]).nullable().optional(),
|
|
85
|
-
object: zod.z.string().describe("Type of object. Always \"page\" for page objects."),
|
|
85
|
+
object: zod.z.string().describe("Type of object. Always \"page\" for page objects.").nullable(),
|
|
86
86
|
parent: zod.z.union([
|
|
87
87
|
NotionUpdatePage_DatabaseParentSchema,
|
|
88
88
|
NotionUpdatePage_DataSourceParentSchema,
|
|
@@ -90,18 +90,18 @@ const NotionUpdatePageOutput = zod.z.object({
|
|
|
90
90
|
NotionUpdatePage_WorkspaceParentSchema,
|
|
91
91
|
NotionUpdatePage_BlockParentSchema
|
|
92
92
|
]),
|
|
93
|
-
archived: zod.z.boolean().describe("Whether the page is archived."),
|
|
94
|
-
in_trash: zod.z.boolean().describe("Whether the page is in Trash."),
|
|
93
|
+
archived: zod.z.boolean().describe("Whether the page is archived.").nullable(),
|
|
94
|
+
in_trash: zod.z.boolean().describe("Whether the page is in Trash.").nullable(),
|
|
95
95
|
is_locked: zod.z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
|
|
96
96
|
created_by: NotionUpdatePage_PartialUserSchema.nullable(),
|
|
97
97
|
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The page's properties. Property names and structures vary by workspace/database schema."),
|
|
98
98
|
public_url: zod.z.string().describe("Public page URL if published to web; otherwise null.").nullable().optional(),
|
|
99
99
|
request_id: zod.z.string().describe("Request ID from the Notion API.").nullable().optional(),
|
|
100
|
-
created_time: zod.z.string().describe("Date and time when the page was created."),
|
|
100
|
+
created_time: zod.z.string().describe("Date and time when the page was created.").nullable(),
|
|
101
101
|
last_edited_by: NotionUpdatePage_PartialUserSchema.nullable(),
|
|
102
|
-
last_edited_time: zod.z.string().describe("Date and time when the page was last edited."),
|
|
102
|
+
last_edited_time: zod.z.string().describe("Date and time when the page was last edited.").nullable(),
|
|
103
103
|
composio_execution_message: zod.z.string().describe("Message about any automatic transformations applied during execution (e.g., content chunking for long text).").nullable().optional()
|
|
104
|
-
});
|
|
104
|
+
}).passthrough();
|
|
105
105
|
const notionUpdatePage = require_action.action("NOTION_UPDATE_PAGE", {
|
|
106
106
|
slug: "notion-update-page",
|
|
107
107
|
name: "Update Page",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-page.cjs","names":["z","action"],"sources":["../../src/actions/update-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdatePageInput: z.ZodTypeAny = z.object({\n icon: z.record(z.string(), z.unknown()).describe(\"Page icon object. At least one of properties, archived, icon, or cover is required.\").optional(),\n cover: z.record(z.string(), z.unknown()).describe(\"Page cover image. Must contain either 'external' (with url) or 'file_upload' key. Empty dicts are treated as no-op. At least one of properties, archived, icon, or cover is required.\").optional(),\n page_id: z.string().describe(\"Identifier for the Notion page to be updated. Use 'page_id' as the parameter name (not 'id').\"),\n archived: z.boolean().describe(\"Set to true to archive (trash) the page, false to restore. Note: Workspace-level pages (pages in the sidebar that are not inside a database or another page) may not be archivable via the API depending on workspace configuration. Setting archived=true on an already-archived page or a page with an archived ancestor will be handled gracefully (returns current state without error). At least one of properties, archived, icon, or cover is required.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping property names to property value objects. IMPORTANT: Property names are workspace-specific and case-sensitive. Before updating, use NOTION_FETCH_ROW (for database pages) or NOTION_FETCH_DATABASE to discover the exact property names available in your database. Common properties like 'Status', 'Name', or 'Tags' may have different names in your workspace (e.g., 'Task Name', 'Priority'). For status/select properties, valid option values also vary by workspace - check the database schema for available options. Values must be wrapped in property type objects - never send plain values. Example: {'Status': {'select': {'name': 'Done'}}} not {'Status': 'Done'}. For relation properties, IDs must be valid UUIDs (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).\").optional(),\n});\nconst NotionUpdatePage_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'emoji'.\"),\n emoji: z.string().describe(\"Emoji character.\"),\n}).describe(\"Emoji icon object.\");\nconst NotionUpdatePage_CustomEmojiDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL pointing to the emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji data object.\");\nconst NotionUpdatePage_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\"),\n custom_emoji: NotionUpdatePage_CustomEmojiDataSchema.nullable(),\n}).describe(\"Custom emoji icon object.\");\nconst NotionUpdatePage_FileObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 datetime when URL expires.\"),\n}).describe(\"File object for Notion-hosted files (manual UI uploads).\");\nconst NotionUpdatePage_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n file: NotionUpdatePage_FileObjectSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\"),\n}).describe(\"Wrapper for Notion-hosted file.\");\nconst NotionUpdatePage_FileUploadObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID referencing an uploaded file.\"),\n}).describe(\"File object for API-uploaded files via File Upload API.\");\nconst NotionUpdatePage_APIUploadedFileSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'file_upload'.\"),\n file_upload: NotionUpdatePage_FileUploadObjectSchema.nullable(),\n}).describe(\"Wrapper for API-uploaded file.\");\nconst NotionUpdatePage_ExternalFileObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTPS URL to external file.\"),\n}).describe(\"File object for externally hosted files (never expires).\");\nconst NotionUpdatePage_ExternalFileSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'external'.\"),\n external: NotionUpdatePage_ExternalFileObjectSchema.nullable(),\n}).describe(\"Wrapper for externally hosted file.\");\nconst NotionUpdatePage_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'database_id'.\"),\n database_id: z.string().describe(\"UUID of parent database.\"),\n}).describe(\"Database parent object.\");\nconst NotionUpdatePage_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\"),\n database_id: z.string().describe(\"UUID of parent database (convenience reference).\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of parent data source.\"),\n}).describe(\"Data source parent object (includes convenience database_id reference).\");\nconst NotionUpdatePage_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'page_id'.\"),\n page_id: z.string().describe(\"UUID of parent page.\"),\n}).describe(\"Page parent object for hierarchical nesting.\");\nconst NotionUpdatePage_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'workspace'.\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Workspace parent object for top-level entities.\");\nconst NotionUpdatePage_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always 'block_id'.\"),\n block_id: z.string().describe(\"UUID of parent block.\"),\n}).describe(\"Block parent object for inline/nested pages.\");\nconst NotionUpdatePage_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n name: z.string().describe(\"User's display name in Notion.\").nullable().optional(),\n type: z.string().describe(\"User type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\"),\n avatar_url: z.string().describe(\"URL to user's avatar image.\").nullable().optional(),\n}).describe(\"Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.\");\nexport const NotionUpdatePageOutput: 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.\"),\n icon: z.union([NotionUpdatePage_EmojiIconSchema, NotionUpdatePage_CustomEmojiIconSchema, NotionUpdatePage_NotionHostedFileSchema, NotionUpdatePage_APIUploadedFileSchema, NotionUpdatePage_ExternalFileSchema]).nullable().optional(),\n cover: z.union([NotionUpdatePage_NotionHostedFileSchema, NotionUpdatePage_APIUploadedFileSchema, NotionUpdatePage_ExternalFileSchema]).nullable().optional(),\n object: z.string().describe(\"Type of object. Always \\\"page\\\" for page objects.\"),\n parent: z.union([NotionUpdatePage_DatabaseParentSchema, NotionUpdatePage_DataSourceParentSchema, NotionUpdatePage_PageParentSchema, NotionUpdatePage_WorkspaceParentSchema, NotionUpdatePage_BlockParentSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\"),\n in_trash: z.boolean().describe(\"Whether the page is in Trash.\"),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionUpdatePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"The page's properties. Property names and structures vary by workspace/database schema.\"),\n public_url: z.string().describe(\"Public page URL if published to web; otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Request ID from the Notion API.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when the page was created.\"),\n last_edited_by: NotionUpdatePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when the page was last edited.\"),\n composio_execution_message: z.string().describe(\"Message about any automatic transformations applied during execution (e.g., content chunking for long text).\").nullable().optional(),\n});\n\nexport const notionUpdatePage = action(\"NOTION_UPDATE_PAGE\", {\n slug: \"notion-update-page\",\n name: \"Update Page\",\n description: \"Update page properties, icon, cover, or archive status. IMPORTANT: Property names are workspace-specific and case-sensitive. Use NOTION_FETCH_ROW or NOTION_FETCH_DATABASE first to discover exact property names and valid select/status options. Common errors: - \\\"X is not a property that exists\\\": Discover properties with NOTION_FETCH_ROW - \\\"Invalid status option\\\": Check valid options with NOTION_FETCH_DATABASE - \\\"should be defined\\\": Wrap values: {'Field': {'type': value}} Property formats: title/rich_text use {'text': {'content': 'value'}}, select/status use {'name': 'option'}\",\n input: NotionUpdatePageInput,\n output: NotionUpdatePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OA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,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtL,CAAC;AAED,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-page.cjs","names":["z","action"],"sources":["../../src/actions/update-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdatePageInput = z.object({\n icon: z.record(z.string(), z.unknown()).describe(\"Page icon object. At least one of properties, archived, icon, or cover is required.\").optional(),\n cover: z.record(z.string(), z.unknown()).describe(\"Page cover image. Must contain either 'external' (with url) or 'file_upload' key. Empty dicts are treated as no-op. At least one of properties, archived, icon, or cover is required.\").optional(),\n page_id: z.string().describe(\"Identifier for the Notion page to be updated. Use 'page_id' as the parameter name (not 'id').\"),\n archived: z.boolean().describe(\"Set to true to archive (trash) the page, false to restore. Note: Workspace-level pages (pages in the sidebar that are not inside a database or another page) may not be archivable via the API depending on workspace configuration. Setting archived=true on an already-archived page or a page with an archived ancestor will be handled gracefully (returns current state without error). At least one of properties, archived, icon, or cover is required.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping property names to property value objects. IMPORTANT: Property names are workspace-specific and case-sensitive. Before updating, use NOTION_FETCH_ROW (for database pages) or NOTION_FETCH_DATABASE to discover the exact property names available in your database. Common properties like 'Status', 'Name', or 'Tags' may have different names in your workspace (e.g., 'Task Name', 'Priority'). For status/select properties, valid option values also vary by workspace - check the database schema for available options. Values must be wrapped in property type objects - never send plain values. Example: {'Status': {'select': {'name': 'Done'}}} not {'Status': 'Done'}. For relation properties, IDs must be valid UUIDs (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).\").optional(),\n});\nconst NotionUpdatePage_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character.\").nullable(),\n}).passthrough().describe(\"Emoji icon object.\");\nconst NotionUpdatePage_CustomEmojiDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL pointing to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji data object.\");\nconst NotionUpdatePage_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionUpdatePage_CustomEmojiDataSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon object.\");\nconst NotionUpdatePage_FileObjectSchema = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 datetime when URL expires.\").nullable(),\n}).passthrough().describe(\"File object for Notion-hosted files (manual UI uploads).\");\nconst NotionUpdatePage_NotionHostedFileSchema = z.object({\n file: NotionUpdatePage_FileObjectSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough().describe(\"Wrapper for Notion-hosted file.\");\nconst NotionUpdatePage_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUID referencing an uploaded file.\").nullable(),\n}).passthrough().describe(\"File object for API-uploaded files via File Upload API.\");\nconst NotionUpdatePage_APIUploadedFileSchema = z.object({\n type: z.string().describe(\"Always 'file_upload'.\").nullable(),\n file_upload: NotionUpdatePage_FileUploadObjectSchema.nullable(),\n}).passthrough().describe(\"Wrapper for API-uploaded file.\");\nconst NotionUpdatePage_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"HTTPS URL to external file.\").nullable(),\n}).passthrough().describe(\"File object for externally hosted files (never expires).\");\nconst NotionUpdatePage_ExternalFileSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionUpdatePage_ExternalFileObjectSchema.nullable(),\n}).passthrough().describe(\"Wrapper for externally hosted file.\");\nconst NotionUpdatePage_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of parent database.\").nullable(),\n}).passthrough().describe(\"Database parent object.\");\nconst NotionUpdatePage_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of parent database (convenience reference).\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of parent data source.\").nullable(),\n}).passthrough().describe(\"Data source parent object (includes convenience database_id reference).\");\nconst NotionUpdatePage_PageParentSchema = z.object({\n type: z.string().describe(\"Always 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of parent page.\").nullable(),\n}).passthrough().describe(\"Page parent object for hierarchical nesting.\");\nconst NotionUpdatePage_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).passthrough().describe(\"Workspace parent object for top-level entities.\");\nconst NotionUpdatePage_BlockParentSchema = z.object({\n type: z.string().describe(\"Always 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of parent block.\").nullable(),\n}).passthrough().describe(\"Block parent object for inline/nested pages.\");\nconst NotionUpdatePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n name: z.string().describe(\"User's display name in Notion.\").nullable().optional(),\n type: z.string().describe(\"User type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n avatar_url: z.string().describe(\"URL to user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.\");\nexport const NotionUpdatePageOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionUpdatePage_EmojiIconSchema, NotionUpdatePage_CustomEmojiIconSchema, NotionUpdatePage_NotionHostedFileSchema, NotionUpdatePage_APIUploadedFileSchema, NotionUpdatePage_ExternalFileSchema]).nullable().optional(),\n cover: z.union([NotionUpdatePage_NotionHostedFileSchema, NotionUpdatePage_APIUploadedFileSchema, NotionUpdatePage_ExternalFileSchema]).nullable().optional(),\n object: z.string().describe(\"Type of object. Always \\\"page\\\" for page objects.\").nullable(),\n parent: z.union([NotionUpdatePage_DatabaseParentSchema, NotionUpdatePage_DataSourceParentSchema, NotionUpdatePage_PageParentSchema, NotionUpdatePage_WorkspaceParentSchema, NotionUpdatePage_BlockParentSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in Trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionUpdatePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"The page's properties. Property names and structures vary by workspace/database schema.\"),\n public_url: z.string().describe(\"Public page URL if published to web; otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Request ID from the Notion API.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when the page was created.\").nullable(),\n last_edited_by: NotionUpdatePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when the page was last edited.\").nullable(),\n composio_execution_message: z.string().describe(\"Message about any automatic transformations applied during execution (e.g., content chunking for long text).\").nullable().optional(),\n}).passthrough();\n\nexport const notionUpdatePage = action(\"NOTION_UPDATE_PAGE\", {\n slug: \"notion-update-page\",\n name: \"Update Page\",\n description: \"Update page properties, icon, cover, or archive status. IMPORTANT: Property names are workspace-specific and case-sensitive. Use NOTION_FETCH_ROW or NOTION_FETCH_DATABASE first to discover exact property names and valid select/status options. Common errors: - \\\"X is not a property that exists\\\": Discover properties with NOTION_FETCH_ROW - \\\"Invalid status option\\\": Check valid options with NOTION_FETCH_DATABASE - \\\"should be defined\\\": Wrap values: {'Field': {'type': value}} Property formats: title/rich_text use {'text': {'content': 'value'}}, select/status use {'name': 'option'}\",\n input: Not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
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-page.d.ts
|
|
4
|
-
declare const NotionUpdatePageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionUpdatePageInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
page_id: z.ZodString;
|
|
8
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const NotionUpdatePageOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
type: z.ZodNullable<z.ZodString>;
|
|
16
|
+
emoji: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
18
|
+
type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
url: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
25
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
url: z.ZodNullable<z.ZodString>;
|
|
27
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
type: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
|
+
type: z.ZodNullable<z.ZodString>;
|
|
32
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
36
|
+
type: z.ZodNullable<z.ZodString>;
|
|
37
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
url: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
|
+
}, z.core.$loose>]>>>;
|
|
41
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
url: z.ZodNullable<z.ZodString>;
|
|
44
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
type: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
48
|
+
type: z.ZodNullable<z.ZodString>;
|
|
49
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
50
|
+
id: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
53
|
+
type: z.ZodNullable<z.ZodString>;
|
|
54
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
url: z.ZodNullable<z.ZodString>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>]>>>;
|
|
58
|
+
object: z.ZodNullable<z.ZodString>;
|
|
59
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
60
|
+
type: z.ZodNullable<z.ZodString>;
|
|
61
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
63
|
+
type: z.ZodNullable<z.ZodString>;
|
|
64
|
+
database_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
67
|
+
type: z.ZodNullable<z.ZodString>;
|
|
68
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
69
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
70
|
+
type: z.ZodNullable<z.ZodString>;
|
|
71
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
72
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
73
|
+
type: z.ZodNullable<z.ZodString>;
|
|
74
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, z.core.$loose>]>;
|
|
76
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
77
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
78
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
80
|
+
id: z.ZodNullable<z.ZodString>;
|
|
81
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
object: z.ZodNullable<z.ZodString>;
|
|
84
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
}, z.core.$loose>>;
|
|
86
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
87
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
90
|
+
last_edited_by: z.ZodNullable<z.ZodObject<{
|
|
91
|
+
id: z.ZodNullable<z.ZodString>;
|
|
92
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
object: z.ZodNullable<z.ZodString>;
|
|
95
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
}, z.core.$loose>>;
|
|
97
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
98
|
+
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
|
+
declare const notionUpdatePage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
101
|
+
page_id: string;
|
|
102
|
+
icon?: Record<string, unknown> | undefined;
|
|
103
|
+
cover?: Record<string, unknown> | undefined;
|
|
104
|
+
archived?: boolean | undefined;
|
|
105
|
+
properties?: Record<string, unknown> | undefined;
|
|
106
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
107
|
//#endregion
|
|
8
108
|
export { notionUpdatePage };
|
|
9
109
|
//# sourceMappingURL=update-page.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-page.d.cts","names":[],"sources":["../../src/actions/update-page.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"update-page.d.cts","names":[],"sources":["../../src/actions/update-page.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;cAsErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBtB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -1,9 +1,109 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-page.d.ts
|
|
4
|
-
declare const NotionUpdatePageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionUpdatePageInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
page_id: z.ZodString;
|
|
8
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const NotionUpdatePageOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
type: z.ZodNullable<z.ZodString>;
|
|
16
|
+
emoji: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
18
|
+
type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
url: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
25
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
url: z.ZodNullable<z.ZodString>;
|
|
27
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
type: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
|
+
type: z.ZodNullable<z.ZodString>;
|
|
32
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
36
|
+
type: z.ZodNullable<z.ZodString>;
|
|
37
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
url: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
|
+
}, z.core.$loose>]>>>;
|
|
41
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
url: z.ZodNullable<z.ZodString>;
|
|
44
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
type: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
48
|
+
type: z.ZodNullable<z.ZodString>;
|
|
49
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
50
|
+
id: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
53
|
+
type: z.ZodNullable<z.ZodString>;
|
|
54
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
url: z.ZodNullable<z.ZodString>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>]>>>;
|
|
58
|
+
object: z.ZodNullable<z.ZodString>;
|
|
59
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
60
|
+
type: z.ZodNullable<z.ZodString>;
|
|
61
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
63
|
+
type: z.ZodNullable<z.ZodString>;
|
|
64
|
+
database_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
67
|
+
type: z.ZodNullable<z.ZodString>;
|
|
68
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
69
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
70
|
+
type: z.ZodNullable<z.ZodString>;
|
|
71
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
72
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
73
|
+
type: z.ZodNullable<z.ZodString>;
|
|
74
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, z.core.$loose>]>;
|
|
76
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
77
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
78
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
80
|
+
id: z.ZodNullable<z.ZodString>;
|
|
81
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
object: z.ZodNullable<z.ZodString>;
|
|
84
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
}, z.core.$loose>>;
|
|
86
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
87
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
90
|
+
last_edited_by: z.ZodNullable<z.ZodObject<{
|
|
91
|
+
id: z.ZodNullable<z.ZodString>;
|
|
92
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
object: z.ZodNullable<z.ZodString>;
|
|
95
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
}, z.core.$loose>>;
|
|
97
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
98
|
+
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
|
+
declare const notionUpdatePage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
101
|
+
page_id: string;
|
|
102
|
+
icon?: Record<string, unknown> | undefined;
|
|
103
|
+
cover?: Record<string, unknown> | undefined;
|
|
104
|
+
archived?: boolean | undefined;
|
|
105
|
+
properties?: Record<string, unknown> | undefined;
|
|
106
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
107
|
//#endregion
|
|
8
108
|
export { notionUpdatePage };
|
|
9
109
|
//# sourceMappingURL=update-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-page.d.mts","names":[],"sources":["../../src/actions/update-page.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"update-page.d.mts","names":[],"sources":["../../src/actions/update-page.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;cAsErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBtB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -9,72 +9,72 @@ const NotionUpdatePageInput = z.object({
|
|
|
9
9
|
properties: z.record(z.string(), z.unknown()).describe("Dictionary mapping property names to property value objects. IMPORTANT: Property names are workspace-specific and case-sensitive. Before updating, use NOTION_FETCH_ROW (for database pages) or NOTION_FETCH_DATABASE to discover the exact property names available in your database. Common properties like 'Status', 'Name', or 'Tags' may have different names in your workspace (e.g., 'Task Name', 'Priority'). For status/select properties, valid option values also vary by workspace - check the database schema for available options. Values must be wrapped in property type objects - never send plain values. Example: {'Status': {'select': {'name': 'Done'}}} not {'Status': 'Done'}. For relation properties, IDs must be valid UUIDs (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).").optional()
|
|
10
10
|
});
|
|
11
11
|
const NotionUpdatePage_EmojiIconSchema = z.object({
|
|
12
|
-
type: z.string().describe("Always 'emoji'."),
|
|
13
|
-
emoji: z.string().describe("Emoji character.")
|
|
14
|
-
}).describe("Emoji icon object.");
|
|
12
|
+
type: z.string().describe("Always 'emoji'.").nullable(),
|
|
13
|
+
emoji: z.string().describe("Emoji character.").nullable()
|
|
14
|
+
}).passthrough().describe("Emoji icon object.");
|
|
15
15
|
const NotionUpdatePage_CustomEmojiDataSchema = z.object({
|
|
16
|
-
id: z.string().describe("Unique identifier for the custom emoji."),
|
|
17
|
-
url: z.string().describe("HTTPS URL pointing to the emoji image."),
|
|
18
|
-
name: z.string().describe("Display name of the custom emoji.")
|
|
19
|
-
}).describe("Custom emoji data object.");
|
|
16
|
+
id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
17
|
+
url: z.string().describe("HTTPS URL pointing to the emoji image.").nullable(),
|
|
18
|
+
name: z.string().describe("Display name of the custom emoji.").nullable()
|
|
19
|
+
}).passthrough().describe("Custom emoji data object.");
|
|
20
20
|
const NotionUpdatePage_CustomEmojiIconSchema = z.object({
|
|
21
|
-
type: z.string().describe("Always 'custom_emoji'."),
|
|
21
|
+
type: z.string().describe("Always 'custom_emoji'.").nullable(),
|
|
22
22
|
custom_emoji: NotionUpdatePage_CustomEmojiDataSchema.nullable()
|
|
23
|
-
}).describe("Custom emoji icon object.");
|
|
23
|
+
}).passthrough().describe("Custom emoji icon object.");
|
|
24
24
|
const NotionUpdatePage_FileObjectSchema = z.object({
|
|
25
|
-
url: z.string().describe("Authenticated HTTP GET URL, valid for one hour."),
|
|
26
|
-
expiry_time: z.string().describe("ISO 8601 datetime when URL expires.")
|
|
27
|
-
}).describe("File object for Notion-hosted files (manual UI uploads).");
|
|
25
|
+
url: z.string().describe("Authenticated HTTP GET URL, valid for one hour.").nullable(),
|
|
26
|
+
expiry_time: z.string().describe("ISO 8601 datetime when URL expires.").nullable()
|
|
27
|
+
}).passthrough().describe("File object for Notion-hosted files (manual UI uploads).");
|
|
28
28
|
const NotionUpdatePage_NotionHostedFileSchema = z.object({
|
|
29
29
|
file: NotionUpdatePage_FileObjectSchema.nullable(),
|
|
30
|
-
type: z.string().describe("Always 'file'.")
|
|
31
|
-
}).describe("Wrapper for Notion-hosted file.");
|
|
32
|
-
const NotionUpdatePage_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID referencing an uploaded file.") }).describe("File object for API-uploaded files via File Upload API.");
|
|
30
|
+
type: z.string().describe("Always 'file'.").nullable()
|
|
31
|
+
}).passthrough().describe("Wrapper for Notion-hosted file.");
|
|
32
|
+
const NotionUpdatePage_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID referencing an uploaded file.").nullable() }).passthrough().describe("File object for API-uploaded files via File Upload API.");
|
|
33
33
|
const NotionUpdatePage_APIUploadedFileSchema = z.object({
|
|
34
|
-
type: z.string().describe("Always 'file_upload'."),
|
|
34
|
+
type: z.string().describe("Always 'file_upload'.").nullable(),
|
|
35
35
|
file_upload: NotionUpdatePage_FileUploadObjectSchema.nullable()
|
|
36
|
-
}).describe("Wrapper for API-uploaded file.");
|
|
37
|
-
const NotionUpdatePage_ExternalFileObjectSchema = z.object({ url: z.string().describe("HTTPS URL to external file.") }).describe("File object for externally hosted files (never expires).");
|
|
36
|
+
}).passthrough().describe("Wrapper for API-uploaded file.");
|
|
37
|
+
const NotionUpdatePage_ExternalFileObjectSchema = z.object({ url: z.string().describe("HTTPS URL to external file.").nullable() }).passthrough().describe("File object for externally hosted files (never expires).");
|
|
38
38
|
const NotionUpdatePage_ExternalFileSchema = z.object({
|
|
39
|
-
type: z.string().describe("Always 'external'."),
|
|
39
|
+
type: z.string().describe("Always 'external'.").nullable(),
|
|
40
40
|
external: NotionUpdatePage_ExternalFileObjectSchema.nullable()
|
|
41
|
-
}).describe("Wrapper for externally hosted file.");
|
|
41
|
+
}).passthrough().describe("Wrapper for externally hosted file.");
|
|
42
42
|
const NotionUpdatePage_DatabaseParentSchema = z.object({
|
|
43
|
-
type: z.string().describe("Always 'database_id'."),
|
|
44
|
-
database_id: z.string().describe("UUID of parent database.")
|
|
45
|
-
}).describe("Database parent object.");
|
|
43
|
+
type: z.string().describe("Always 'database_id'.").nullable(),
|
|
44
|
+
database_id: z.string().describe("UUID of parent database.").nullable()
|
|
45
|
+
}).passthrough().describe("Database parent object.");
|
|
46
46
|
const NotionUpdatePage_DataSourceParentSchema = z.object({
|
|
47
|
-
type: z.string().describe("Always 'data_source_id'."),
|
|
47
|
+
type: z.string().describe("Always 'data_source_id'.").nullable(),
|
|
48
48
|
database_id: z.string().describe("UUID of parent database (convenience reference).").nullable().optional(),
|
|
49
|
-
data_source_id: z.string().describe("UUID of parent data source.")
|
|
50
|
-
}).describe("Data source parent object (includes convenience database_id reference).");
|
|
49
|
+
data_source_id: z.string().describe("UUID of parent data source.").nullable()
|
|
50
|
+
}).passthrough().describe("Data source parent object (includes convenience database_id reference).");
|
|
51
51
|
const NotionUpdatePage_PageParentSchema = z.object({
|
|
52
|
-
type: z.string().describe("Always 'page_id'."),
|
|
53
|
-
page_id: z.string().describe("UUID of parent page.")
|
|
54
|
-
}).describe("Page parent object for hierarchical nesting.");
|
|
52
|
+
type: z.string().describe("Always 'page_id'.").nullable(),
|
|
53
|
+
page_id: z.string().describe("UUID of parent page.").nullable()
|
|
54
|
+
}).passthrough().describe("Page parent object for hierarchical nesting.");
|
|
55
55
|
const NotionUpdatePage_WorkspaceParentSchema = z.object({
|
|
56
|
-
type: z.string().describe("Always 'workspace'."),
|
|
57
|
-
workspace: z.boolean().describe("Always true.")
|
|
58
|
-
}).describe("Workspace parent object for top-level entities.");
|
|
56
|
+
type: z.string().describe("Always 'workspace'.").nullable(),
|
|
57
|
+
workspace: z.boolean().describe("Always true.").nullable()
|
|
58
|
+
}).passthrough().describe("Workspace parent object for top-level entities.");
|
|
59
59
|
const NotionUpdatePage_BlockParentSchema = z.object({
|
|
60
|
-
type: z.string().describe("Always 'block_id'."),
|
|
61
|
-
block_id: z.string().describe("UUID of parent block.")
|
|
62
|
-
}).describe("Block parent object for inline/nested pages.");
|
|
60
|
+
type: z.string().describe("Always 'block_id'.").nullable(),
|
|
61
|
+
block_id: z.string().describe("UUID of parent block.").nullable()
|
|
62
|
+
}).passthrough().describe("Block parent object for inline/nested pages.");
|
|
63
63
|
const NotionUpdatePage_PartialUserSchema = z.object({
|
|
64
|
-
id: z.string().describe("Unique identifier for the user (UUID)."),
|
|
64
|
+
id: z.string().describe("Unique identifier for the user (UUID).").nullable(),
|
|
65
65
|
name: z.string().describe("User's display name in Notion.").nullable().optional(),
|
|
66
66
|
type: z.string().describe("User type: 'person' or 'bot'.").nullable().optional(),
|
|
67
|
-
object: z.string().describe("Always 'user'."),
|
|
67
|
+
object: z.string().describe("Always 'user'.").nullable(),
|
|
68
68
|
avatar_url: z.string().describe("URL to user's avatar image.").nullable().optional()
|
|
69
|
-
}).describe("Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.");
|
|
69
|
+
}).passthrough().describe("Partial user object with guaranteed fields. Additional fields may be present depending on context and permissions.");
|
|
70
70
|
const notionUpdatePage = action("NOTION_UPDATE_PAGE", {
|
|
71
71
|
slug: "notion-update-page",
|
|
72
72
|
name: "Update Page",
|
|
73
73
|
description: "Update page properties, icon, cover, or archive status. IMPORTANT: Property names are workspace-specific and case-sensitive. Use NOTION_FETCH_ROW or NOTION_FETCH_DATABASE first to discover exact property names and valid select/status options. Common errors: - \"X is not a property that exists\": Discover properties with NOTION_FETCH_ROW - \"Invalid status option\": Check valid options with NOTION_FETCH_DATABASE - \"should be defined\": Wrap values: {'Field': {'type': value}} Property formats: title/rich_text use {'text': {'content': 'value'}}, select/status use {'name': 'option'}",
|
|
74
74
|
input: NotionUpdatePageInput,
|
|
75
75
|
output: z.object({
|
|
76
|
-
id: z.string().describe("Unique identifier for the page."),
|
|
77
|
-
url: z.string().describe("The URL of the Notion page."),
|
|
76
|
+
id: z.string().describe("Unique identifier for the page.").nullable(),
|
|
77
|
+
url: z.string().describe("The URL of the Notion page.").nullable(),
|
|
78
78
|
icon: z.union([
|
|
79
79
|
NotionUpdatePage_EmojiIconSchema,
|
|
80
80
|
NotionUpdatePage_CustomEmojiIconSchema,
|
|
@@ -87,7 +87,7 @@ const notionUpdatePage = action("NOTION_UPDATE_PAGE", {
|
|
|
87
87
|
NotionUpdatePage_APIUploadedFileSchema,
|
|
88
88
|
NotionUpdatePage_ExternalFileSchema
|
|
89
89
|
]).nullable().optional(),
|
|
90
|
-
object: z.string().describe("Type of object. Always \"page\" for page objects."),
|
|
90
|
+
object: z.string().describe("Type of object. Always \"page\" for page objects.").nullable(),
|
|
91
91
|
parent: z.union([
|
|
92
92
|
NotionUpdatePage_DatabaseParentSchema,
|
|
93
93
|
NotionUpdatePage_DataSourceParentSchema,
|
|
@@ -95,18 +95,18 @@ const notionUpdatePage = action("NOTION_UPDATE_PAGE", {
|
|
|
95
95
|
NotionUpdatePage_WorkspaceParentSchema,
|
|
96
96
|
NotionUpdatePage_BlockParentSchema
|
|
97
97
|
]),
|
|
98
|
-
archived: z.boolean().describe("Whether the page is archived."),
|
|
99
|
-
in_trash: z.boolean().describe("Whether the page is in Trash."),
|
|
98
|
+
archived: z.boolean().describe("Whether the page is archived.").nullable(),
|
|
99
|
+
in_trash: z.boolean().describe("Whether the page is in Trash.").nullable(),
|
|
100
100
|
is_locked: z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
|
|
101
101
|
created_by: NotionUpdatePage_PartialUserSchema.nullable(),
|
|
102
102
|
properties: z.record(z.string(), z.unknown()).describe("The page's properties. Property names and structures vary by workspace/database schema."),
|
|
103
103
|
public_url: z.string().describe("Public page URL if published to web; otherwise null.").nullable().optional(),
|
|
104
104
|
request_id: z.string().describe("Request ID from the Notion API.").nullable().optional(),
|
|
105
|
-
created_time: z.string().describe("Date and time when the page was created."),
|
|
105
|
+
created_time: z.string().describe("Date and time when the page was created.").nullable(),
|
|
106
106
|
last_edited_by: NotionUpdatePage_PartialUserSchema.nullable(),
|
|
107
|
-
last_edited_time: z.string().describe("Date and time when the page was last edited."),
|
|
107
|
+
last_edited_time: z.string().describe("Date and time when the page was last edited.").nullable(),
|
|
108
108
|
composio_execution_message: z.string().describe("Message about any automatic transformations applied during execution (e.g., content chunking for long text).").nullable().optional()
|
|
109
|
-
})
|
|
109
|
+
}).passthrough()
|
|
110
110
|
});
|
|
111
111
|
//#endregion
|
|
112
112
|
export { notionUpdatePage };
|