@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
|
@@ -8,62 +8,62 @@ const NotionFetchCommentsInput = z.object({
|
|
|
8
8
|
start_cursor: z.string().describe("A pagination cursor. If provided, the response will contain the page of results starting after this cursor. If omitted, the first page of results is returned.").optional()
|
|
9
9
|
});
|
|
10
10
|
const NotionFetchComments_CommentParentPageSchema = z.object({
|
|
11
|
-
type: z.string().describe("Type of parent, set to 'page_id' for page parents."),
|
|
12
|
-
page_id: z.string().describe("UUID of the parent page.")
|
|
13
|
-
});
|
|
11
|
+
type: z.string().describe("Type of parent, set to 'page_id' for page parents.").nullable(),
|
|
12
|
+
page_id: z.string().describe("UUID of the parent page.").nullable()
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const NotionFetchComments_CommentParentBlockSchema = z.object({
|
|
15
|
-
type: z.string().describe("Type of parent, set to 'block_id' for block parents."),
|
|
16
|
-
block_id: z.string().describe("UUID of the parent block.")
|
|
17
|
-
});
|
|
18
|
-
const NotionFetchComments_LinkObjectSchema = z.object({ url: z.string().describe("The URL of the link.") });
|
|
15
|
+
type: z.string().describe("Type of parent, set to 'block_id' for block parents.").nullable(),
|
|
16
|
+
block_id: z.string().describe("UUID of the parent block.").nullable()
|
|
17
|
+
}).passthrough();
|
|
18
|
+
const NotionFetchComments_LinkObjectSchema = z.object({ url: z.string().describe("The URL of the link.").nullable() }).passthrough();
|
|
19
19
|
const NotionFetchComments_TextObjectSchema = z.object({
|
|
20
20
|
link: NotionFetchComments_LinkObjectSchema.nullable().optional(),
|
|
21
|
-
content: z.string().describe("The actual text content.")
|
|
22
|
-
});
|
|
21
|
+
content: z.string().describe("The actual text content.").nullable()
|
|
22
|
+
}).passthrough();
|
|
23
23
|
const NotionFetchComments_MentionDateObjectSchema = z.object({
|
|
24
24
|
end: z.string().describe("End date/time.").nullable().optional(),
|
|
25
|
-
start: z.string().describe("Start date/time.")
|
|
26
|
-
});
|
|
27
|
-
const NotionFetchComments_MentionPageObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned page.") });
|
|
28
|
-
const NotionFetchComments_BotOwnerObjectSchema = z.object({ type: z.string().describe("Either 'workspace' or 'user'.").nullable().optional() });
|
|
29
|
-
const NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum upload size in bytes.").nullable().optional() });
|
|
25
|
+
start: z.string().describe("Start date/time.").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
|
+
const NotionFetchComments_MentionPageObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).passthrough();
|
|
28
|
+
const NotionFetchComments_BotOwnerObjectSchema = z.object({ type: z.string().describe("Either 'workspace' or 'user'.").nullable().optional() }).passthrough();
|
|
29
|
+
const NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum upload size in bytes.").nullable().optional() }).passthrough();
|
|
30
30
|
const NotionFetchComments_BotObjectSchema = z.object({
|
|
31
31
|
owner: NotionFetchComments_BotOwnerObjectSchema.nullable().optional(),
|
|
32
32
|
workspace_id: z.string().describe("Workspace identifier.").nullable().optional(),
|
|
33
33
|
workspace_name: z.string().describe("Workspace name (null if owner is user).").nullable().optional(),
|
|
34
34
|
workspace_limits: NotionFetchComments_WorkspaceLimitsObjectSchema.nullable().optional()
|
|
35
|
-
});
|
|
36
|
-
const NotionFetchComments_PersonObjectSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability access).").nullable().optional() });
|
|
35
|
+
}).passthrough();
|
|
36
|
+
const NotionFetchComments_PersonObjectSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability access).").nullable().optional() }).passthrough();
|
|
37
37
|
const NotionFetchComments_PartialUserSchema = z.object({
|
|
38
|
-
id: z.string().describe("Unique identifier for the user (UUID format)."),
|
|
38
|
+
id: z.string().describe("Unique identifier for the user (UUID format).").nullable(),
|
|
39
39
|
bot: NotionFetchComments_BotObjectSchema.nullable().optional(),
|
|
40
40
|
name: z.string().describe("User's display name in Notion.").nullable().optional(),
|
|
41
41
|
type: z.enum(["person", "bot"]).describe("Either 'person' or 'bot'.").nullable().optional(),
|
|
42
|
-
object: z.string().describe("Always 'user'."),
|
|
42
|
+
object: z.string().describe("Always 'user'.").nullable(),
|
|
43
43
|
person: NotionFetchComments_PersonObjectSchema.nullable().optional(),
|
|
44
44
|
avatar_url: z.string().describe("URL to the user's avatar image.").nullable().optional()
|
|
45
|
-
});
|
|
46
|
-
const NotionFetchComments_MentionDatabaseObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned database.") });
|
|
47
|
-
const NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({ url: z.string().describe("URL of the link preview.") });
|
|
48
|
-
const NotionFetchComments_TemplateMentionObjectSchema = z.object({ type: z.string().describe("Template mention subtype: 'template_mention_date' or 'template_mention_user'.") });
|
|
45
|
+
}).passthrough();
|
|
46
|
+
const NotionFetchComments_MentionDatabaseObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).passthrough();
|
|
47
|
+
const NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({ url: z.string().describe("URL of the link preview.").nullable() }).passthrough();
|
|
48
|
+
const NotionFetchComments_TemplateMentionObjectSchema = z.object({ type: z.string().describe("Template mention subtype: 'template_mention_date' or 'template_mention_user'.").nullable() }).passthrough();
|
|
49
49
|
const NotionFetchComments_MentionObjectSchema = z.object({
|
|
50
50
|
date: NotionFetchComments_MentionDateObjectSchema.nullable().optional(),
|
|
51
51
|
page: NotionFetchComments_MentionPageObjectSchema.nullable().optional(),
|
|
52
|
-
type: z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'."),
|
|
52
|
+
type: z.string().describe("Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.").nullable(),
|
|
53
53
|
user: NotionFetchComments_PartialUserSchema.nullable().optional(),
|
|
54
54
|
database: NotionFetchComments_MentionDatabaseObjectSchema.nullable().optional(),
|
|
55
55
|
link_preview: NotionFetchComments_MentionLinkPreviewObjectSchema.nullable().optional(),
|
|
56
56
|
template_mention: NotionFetchComments_TemplateMentionObjectSchema.nullable().optional()
|
|
57
|
-
});
|
|
58
|
-
const NotionFetchComments_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX string representing the inline equation.") });
|
|
57
|
+
}).passthrough();
|
|
58
|
+
const NotionFetchComments_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX string representing the inline equation.").nullable() }).passthrough();
|
|
59
59
|
const NotionFetchComments_AnnotationsSchema = z.object({
|
|
60
|
-
bold: z.boolean().describe("Whether the text is bold."),
|
|
61
|
-
code: z.boolean().describe("Whether the text is formatted as code."),
|
|
62
|
-
color: z.string().describe("Text or background color (e.g., 'blue', 'green_background', 'default')."),
|
|
63
|
-
italic: z.boolean().describe("Whether the text is italic."),
|
|
64
|
-
underline: z.boolean().describe("Whether the text is underlined."),
|
|
65
|
-
strikethrough: z.boolean().describe("Whether the text has strikethrough.")
|
|
66
|
-
});
|
|
60
|
+
bold: z.boolean().describe("Whether the text is bold.").nullable(),
|
|
61
|
+
code: z.boolean().describe("Whether the text is formatted as code.").nullable(),
|
|
62
|
+
color: z.string().describe("Text or background color (e.g., 'blue', 'green_background', 'default').").nullable(),
|
|
63
|
+
italic: z.boolean().describe("Whether the text is italic.").nullable(),
|
|
64
|
+
underline: z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
65
|
+
strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
66
|
+
}).passthrough();
|
|
67
67
|
const NotionFetchComments_RichTextSchema = z.object({
|
|
68
68
|
href: z.string().describe("URL for links or Notion mentions (null if not applicable).").nullable().optional(),
|
|
69
69
|
text: NotionFetchComments_TextObjectSchema.nullable().optional(),
|
|
@@ -71,16 +71,16 @@ const NotionFetchComments_RichTextSchema = z.object({
|
|
|
71
71
|
"text",
|
|
72
72
|
"mention",
|
|
73
73
|
"equation"
|
|
74
|
-
]).describe("Type of rich text: 'text', 'mention', or 'equation'."),
|
|
74
|
+
]).describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
|
|
75
75
|
mention: NotionFetchComments_MentionObjectSchema.nullable().optional(),
|
|
76
76
|
equation: NotionFetchComments_EquationObjectSchema.nullable().optional(),
|
|
77
|
-
plain_text: z.string().describe("Unformatted text content without styling."),
|
|
77
|
+
plain_text: z.string().describe("Unformatted text content without styling.").nullable(),
|
|
78
78
|
annotations: NotionFetchComments_AnnotationsSchema.nullable()
|
|
79
|
-
});
|
|
79
|
+
}).passthrough();
|
|
80
80
|
const NotionFetchComments_CommentAttachmentFileSchema = z.object({
|
|
81
|
-
url: z.string().describe("Temporary download link generated at the time of retrieving the comment."),
|
|
82
|
-
expiry_time: z.string().describe("ISO 8601 timestamp indicating when the URL expires.")
|
|
83
|
-
});
|
|
81
|
+
url: z.string().describe("Temporary download link generated at the time of retrieving the comment.").nullable(),
|
|
82
|
+
expiry_time: z.string().describe("ISO 8601 timestamp indicating when the URL expires.").nullable()
|
|
83
|
+
}).passthrough();
|
|
84
84
|
const NotionFetchComments_CommentAttachmentSchema = z.object({
|
|
85
85
|
file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),
|
|
86
86
|
category: z.enum([
|
|
@@ -89,32 +89,32 @@ const NotionFetchComments_CommentAttachmentSchema = z.object({
|
|
|
89
89
|
"pdf",
|
|
90
90
|
"productivity",
|
|
91
91
|
"video"
|
|
92
|
-
]).describe("File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.")
|
|
93
|
-
});
|
|
92
|
+
]).describe("File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.").nullable()
|
|
93
|
+
}).passthrough();
|
|
94
94
|
const NotionFetchComments_CommentDisplayNameSchema = z.object({
|
|
95
95
|
type: z.enum([
|
|
96
96
|
"integration",
|
|
97
97
|
"user",
|
|
98
98
|
"custom"
|
|
99
|
-
]).describe("Display name source type: 'custom', 'integration', or 'user'."),
|
|
100
|
-
resolved_name: z.string().describe("The actual display name text shown in the comment interface.")
|
|
101
|
-
});
|
|
99
|
+
]).describe("Display name source type: 'custom', 'integration', or 'user'.").nullable(),
|
|
100
|
+
resolved_name: z.string().describe("The actual display name text shown in the comment interface.").nullable()
|
|
101
|
+
}).passthrough();
|
|
102
102
|
const NotionFetchComments_CommentFullSchema = z.object({
|
|
103
|
-
id: z.string().describe("Unique identifier for the comment (UUIDv4 format)."),
|
|
104
|
-
object: z.string().describe("Always 'comment'."),
|
|
103
|
+
id: z.string().describe("Unique identifier for the comment (UUIDv4 format).").nullable(),
|
|
104
|
+
object: z.string().describe("Always 'comment'.").nullable(),
|
|
105
105
|
parent: z.union([NotionFetchComments_CommentParentPageSchema, NotionFetchComments_CommentParentBlockSchema]),
|
|
106
106
|
rich_text: z.array(NotionFetchComments_RichTextSchema).describe("Array of rich text objects representing the comment content with formatting, links, and mentions."),
|
|
107
107
|
created_by: NotionFetchComments_PartialUserSchema.nullable(),
|
|
108
108
|
attachments: z.array(NotionFetchComments_CommentAttachmentSchema).describe("Array of file attachments (up to 3 attachments per comment).").nullable().optional(),
|
|
109
|
-
created_time: z.string().describe("ISO 8601 timestamp when the comment was created."),
|
|
109
|
+
created_time: z.string().describe("ISO 8601 timestamp when the comment was created.").nullable(),
|
|
110
110
|
display_name: NotionFetchComments_CommentDisplayNameSchema.nullable().optional(),
|
|
111
|
-
discussion_id: z.string().describe("Thread identifier associating related comments (UUIDv4 format)."),
|
|
112
|
-
last_edited_time: z.string().describe("ISO 8601 timestamp of the most recent update to the comment.")
|
|
113
|
-
});
|
|
111
|
+
discussion_id: z.string().describe("Thread identifier associating related comments (UUIDv4 format).").nullable(),
|
|
112
|
+
last_edited_time: z.string().describe("ISO 8601 timestamp of the most recent update to the comment.").nullable()
|
|
113
|
+
}).passthrough();
|
|
114
114
|
const NotionFetchComments_CommentPartialSchema = z.object({
|
|
115
|
-
id: z.string(),
|
|
116
|
-
object: z.string()
|
|
117
|
-
});
|
|
115
|
+
id: z.string().nullable(),
|
|
116
|
+
object: z.string().nullable()
|
|
117
|
+
}).passthrough();
|
|
118
118
|
const notionFetchComments = action("NOTION_FETCH_COMMENTS", {
|
|
119
119
|
slug: "notion-fetch-comments",
|
|
120
120
|
name: "Fetch comments",
|
|
@@ -122,12 +122,12 @@ const notionFetchComments = action("NOTION_FETCH_COMMENTS", {
|
|
|
122
122
|
input: NotionFetchCommentsInput,
|
|
123
123
|
output: z.object({
|
|
124
124
|
type: z.string().describe("Type of objects in results array, always 'comment' for this endpoint.").nullable().optional(),
|
|
125
|
-
object: z.string().describe("Always 'list' for paginated endpoints."),
|
|
125
|
+
object: z.string().describe("Always 'list' for paginated endpoints.").nullable(),
|
|
126
126
|
comment: z.record(z.string(), z.unknown()).describe("Empty object present in the response (legacy field).").nullable().optional(),
|
|
127
127
|
results: z.array(z.union([NotionFetchComments_CommentFullSchema, NotionFetchComments_CommentPartialSchema])).describe("Array of comment objects retrieved from the page or block."),
|
|
128
|
-
has_more: z.boolean().describe("Boolean indicating whether there are more results available beyond this page."),
|
|
128
|
+
has_more: z.boolean().describe("Boolean indicating whether there are more results available beyond this page.").nullable(),
|
|
129
129
|
next_cursor: z.string().describe("Cursor for pagination to retrieve the next page of results (only present when has_more is true).").nullable().optional()
|
|
130
|
-
}).describe("Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\n\nMatches Notion API GET /v1/comments response:\n- object: always 'list'\n- results: array of Comment objects (ascending chronological order)\n- next_cursor: string or null\n- has_more: boolean\n- type: optional, 'comment' when present\n- comment: optional, empty object when present (type-specific pagination info)")
|
|
130
|
+
}).passthrough().describe("Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\n\nMatches Notion API GET /v1/comments response:\n- object: always 'list'\n- results: array of Comment objects (ascending chronological order)\n- next_cursor: string or null\n- has_more: boolean\n- type: optional, 'comment' when present\n- comment: optional, empty object when present (type-specific pagination info)")
|
|
131
131
|
});
|
|
132
132
|
//#endregion
|
|
133
133
|
export { notionFetchComments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-comments.mjs","names":[],"sources":["../../src/actions/fetch-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchCommentsInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"Identifier for a Notion page from which to fetch comments. This is an alias for block_id since pages are blocks in Notion. Provide either page_id or block_id, but not both. IMPORTANT: The page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_SEARCH_NOTION_PAGE` action.\").optional(),\n block_id: z.string().describe(\"Identifier for a Notion block from which to fetch comments. In Notion, pages are technically blocks, so you can pass a page ID here as well. Provide either block_id or page_id, but not both. IMPORTANT: The block/page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_FETCH_DATA` action.\").optional(),\n page_size: z.number().int().default(100).describe(\"The number of comments to return in a single response page. Must be between 1 and 100, inclusive. Default is 100.\").optional(),\n start_cursor: z.string().describe(\"A pagination cursor. If provided, the response will contain the page of results starting after this cursor. If omitted, the first page of results is returned.\").optional(),\n});\nconst NotionFetchComments_CommentParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent, set to 'page_id' for page parents.\"),\n page_id: z.string().describe(\"UUID of the parent page.\"),\n});\nconst NotionFetchComments_CommentParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent, set to 'block_id' for block parents.\"),\n block_id: z.string().describe(\"UUID of the parent block.\"),\n});\nconst NotionFetchComments_LinkObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the link.\"),\n});\nconst NotionFetchComments_TextObjectSchema: z.ZodTypeAny = z.object({\n link: NotionFetchComments_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\"),\n});\nconst NotionFetchComments_MentionDateObjectSchema: z.ZodTypeAny = z.object({\n end: z.string().describe(\"End date/time.\").nullable().optional(),\n start: z.string().describe(\"Start date/time.\"),\n});\nconst NotionFetchComments_MentionPageObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\"),\n});\nconst NotionFetchComments_BotOwnerObjectSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Either 'workspace' or 'user'.\").nullable().optional(),\n});\nconst NotionFetchComments_WorkspaceLimitsObjectSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum upload size in bytes.\").nullable().optional(),\n});\nconst NotionFetchComments_BotObjectSchema: z.ZodTypeAny = z.object({\n owner: NotionFetchComments_BotOwnerObjectSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Workspace identifier.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionFetchComments_WorkspaceLimitsObjectSchema.nullable().optional(),\n});\nconst NotionFetchComments_PersonObjectSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability access).\").nullable().optional(),\n});\nconst NotionFetchComments_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\"),\n bot: NotionFetchComments_BotObjectSchema.nullable().optional(),\n name: z.string().describe(\"User's display name in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\"),\n person: NotionFetchComments_PersonObjectSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n});\nconst NotionFetchComments_MentionDatabaseObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\"),\n});\nconst NotionFetchComments_MentionLinkPreviewObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the link preview.\"),\n});\nconst NotionFetchComments_TemplateMentionObjectSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Template mention subtype: 'template_mention_date' or 'template_mention_user'.\"),\n});\nconst NotionFetchComments_MentionObjectSchema: z.ZodTypeAny = z.object({\n date: NotionFetchComments_MentionDateObjectSchema.nullable().optional(),\n page: NotionFetchComments_MentionPageObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\"),\n user: NotionFetchComments_PartialUserSchema.nullable().optional(),\n database: NotionFetchComments_MentionDatabaseObjectSchema.nullable().optional(),\n link_preview: NotionFetchComments_MentionLinkPreviewObjectSchema.nullable().optional(),\n template_mention: NotionFetchComments_TemplateMentionObjectSchema.nullable().optional(),\n});\nconst NotionFetchComments_EquationObjectSchema: z.ZodTypeAny = z.object({\n expression: z.string().describe(\"LaTeX string representing the inline equation.\"),\n});\nconst NotionFetchComments_AnnotationsSchema: z.ZodTypeAny = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\"),\n code: z.boolean().describe(\"Whether the text is formatted as code.\"),\n color: z.string().describe(\"Text or background color (e.g., 'blue', 'green_background', 'default').\"),\n italic: z.boolean().describe(\"Whether the text is italic.\"),\n underline: z.boolean().describe(\"Whether the text is underlined.\"),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\"),\n});\nconst NotionFetchComments_RichTextSchema: z.ZodTypeAny = z.object({\n href: z.string().describe(\"URL for links or Notion mentions (null if not applicable).\").nullable().optional(),\n text: NotionFetchComments_TextObjectSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text: 'text', 'mention', or 'equation'.\"),\n mention: NotionFetchComments_MentionObjectSchema.nullable().optional(),\n equation: NotionFetchComments_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted text content without styling.\"),\n annotations: NotionFetchComments_AnnotationsSchema.nullable(),\n});\nconst NotionFetchComments_CommentAttachmentFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Temporary download link generated at the time of retrieving the comment.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when the URL expires.\"),\n});\nconst NotionFetchComments_CommentAttachmentSchema: z.ZodTypeAny = z.object({\n file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),\n category: z.enum([\"audio\", \"image\", \"pdf\", \"productivity\", \"video\"]).describe(\"File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.\"),\n});\nconst NotionFetchComments_CommentDisplayNameSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"integration\", \"user\", \"custom\"]).describe(\"Display name source type: 'custom', 'integration', or 'user'.\"),\n resolved_name: z.string().describe(\"The actual display name text shown in the comment interface.\"),\n});\nconst NotionFetchComments_CommentFullSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the comment (UUIDv4 format).\"),\n object: z.string().describe(\"Always 'comment'.\"),\n parent: z.union([NotionFetchComments_CommentParentPageSchema, NotionFetchComments_CommentParentBlockSchema]),\n rich_text: z.array(NotionFetchComments_RichTextSchema).describe(\"Array of rich text objects representing the comment content with formatting, links, and mentions.\"),\n created_by: NotionFetchComments_PartialUserSchema.nullable(),\n attachments: z.array(NotionFetchComments_CommentAttachmentSchema).describe(\"Array of file attachments (up to 3 attachments per comment).\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the comment was created.\"),\n display_name: NotionFetchComments_CommentDisplayNameSchema.nullable().optional(),\n discussion_id: z.string().describe(\"Thread identifier associating related comments (UUIDv4 format).\"),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent update to the comment.\"),\n});\nconst NotionFetchComments_CommentPartialSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n object: z.string(),\n});\nexport const NotionFetchCommentsOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of objects in results array, always 'comment' for this endpoint.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated endpoints.\"),\n comment: z.record(z.string(), z.unknown()).describe(\"Empty object present in the response (legacy field).\").nullable().optional(),\n results: z.array(z.union([NotionFetchComments_CommentFullSchema, NotionFetchComments_CommentPartialSchema])).describe(\"Array of comment objects retrieved from the page or block.\"),\n has_more: z.boolean().describe(\"Boolean indicating whether there are more results available beyond this page.\"),\n next_cursor: z.string().describe(\"Cursor for pagination to retrieve the next page of results (only present when has_more is true).\").nullable().optional(),\n}).describe(\"Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\\n\\nMatches Notion API GET /v1/comments response:\\n- object: always 'list'\\n- results: array of Comment objects (ascending chronological order)\\n- next_cursor: string or null\\n- has_more: boolean\\n- type: optional, 'comment' when present\\n- comment: optional, empty object when present (type-specific pagination info)\");\n\nexport const notionFetchComments = action(\"NOTION_FETCH_COMMENTS\", {\n slug: \"notion-fetch-comments\",\n name: \"Fetch comments\",\n description: \"Fetches unresolved comments for a specified Notion block or page ID. The block/page must be shared with your Notion integration and the integration must have 'Read comments' capability enabled, otherwise a 404 error will be returned.\",\n input: NotionFetchCommentsInput,\n output: NotionFetchCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sVAAsV,CAAC,CAAC,SAAS;CAC9X,UAAU,EA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,OAAO;CACtE,IAAI,EAAE,OAAO;CACb,QAAQ,EAAE,OAAO;AACnB,CAAC;AAUD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACpE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,uCAAuC,wCAAwC,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;EAClL,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E;EAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,SAAS,0aAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-comments.mjs","names":[],"sources":["../../src/actions/fetch-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchCommentsInput = z.object({\n page_id: z.string().describe(\"Identifier for a Notion page from which to fetch comments. This is an alias for block_id since pages are blocks in Notion. Provide either page_id or block_id, but not both. IMPORTANT: The page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_SEARCH_NOTION_PAGE` action.\").optional(),\n block_id: z.string().describe(\"Identifier for a Notion block from which to fetch comments. In Notion, pages are technically blocks, so you can pass a page ID here as well. Provide either block_id or page_id, but not both. IMPORTANT: The block/page must be shared with your Notion integration - if not shared, you will receive a 404 error. To find IDs, use the `NOTION_FETCH_DATA` action.\").optional(),\n page_size: z.number().int().default(100).describe(\"The number of comments to return in a single response page. Must be between 1 and 100, inclusive. Default is 100.\").optional(),\n start_cursor: z.string().describe(\"A pagination cursor. If provided, the response will contain the page of results starting after this cursor. If omitted, the first page of results is returned.\").optional(),\n});\nconst NotionFetchComments_CommentParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent, set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent, set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL of the link.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_TextObjectSchema = z.object({\n link: NotionFetchComments_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionDateObjectSchema = z.object({\n end: z.string().describe(\"End date/time.\").nullable().optional(),\n start: z.string().describe(\"Start date/time.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionPageObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_BotOwnerObjectSchema = z.object({\n type: z.string().describe(\"Either 'workspace' or 'user'.\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_BotObjectSchema = z.object({\n owner: NotionFetchComments_BotOwnerObjectSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Workspace identifier.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionFetchComments_WorkspaceLimitsObjectSchema.nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_PersonObjectSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability access).\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n bot: NotionFetchComments_BotObjectSchema.nullable().optional(),\n name: z.string().describe(\"User's display name in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionFetchComments_PersonObjectSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_MentionDatabaseObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_TemplateMentionObjectSchema = z.object({\n type: z.string().describe(\"Template mention subtype: 'template_mention_date' or 'template_mention_user'.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_MentionObjectSchema = z.object({\n date: NotionFetchComments_MentionDateObjectSchema.nullable().optional(),\n page: NotionFetchComments_MentionPageObjectSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionFetchComments_PartialUserSchema.nullable().optional(),\n database: NotionFetchComments_MentionDatabaseObjectSchema.nullable().optional(),\n link_preview: NotionFetchComments_MentionLinkPreviewObjectSchema.nullable().optional(),\n template_mention: NotionFetchComments_TemplateMentionObjectSchema.nullable().optional(),\n}).passthrough();\nconst NotionFetchComments_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX string representing the inline equation.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Text or background color (e.g., 'blue', 'green_background', 'default').\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions (null if not applicable).\").nullable().optional(),\n text: NotionFetchComments_TextObjectSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionFetchComments_MentionObjectSchema.nullable().optional(),\n equation: NotionFetchComments_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted text content without styling.\").nullable(),\n annotations: NotionFetchComments_AnnotationsSchema.nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentAttachmentFileSchema = z.object({\n url: z.string().describe(\"Temporary download link generated at the time of retrieving the comment.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentAttachmentSchema = z.object({\n file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),\n category: z.enum([\"audio\", \"image\", \"pdf\", \"productivity\", \"video\"]).describe(\"File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentDisplayNameSchema = z.object({\n type: z.enum([\"integration\", \"user\", \"custom\"]).describe(\"Display name source type: 'custom', 'integration', or 'user'.\").nullable(),\n resolved_name: z.string().describe(\"The actual display name text shown in the comment interface.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentFullSchema = z.object({\n id: z.string().describe(\"Unique identifier for the comment (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always 'comment'.\").nullable(),\n parent: z.union([NotionFetchComments_CommentParentPageSchema, NotionFetchComments_CommentParentBlockSchema]),\n rich_text: z.array(NotionFetchComments_RichTextSchema).describe(\"Array of rich text objects representing the comment content with formatting, links, and mentions.\"),\n created_by: NotionFetchComments_PartialUserSchema.nullable(),\n attachments: z.array(NotionFetchComments_CommentAttachmentSchema).describe(\"Array of file attachments (up to 3 attachments per comment).\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the comment was created.\").nullable(),\n display_name: NotionFetchComments_CommentDisplayNameSchema.nullable().optional(),\n discussion_id: z.string().describe(\"Thread identifier associating related comments (UUIDv4 format).\").nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent update to the comment.\").nullable(),\n}).passthrough();\nconst NotionFetchComments_CommentPartialSchema = z.object({\n id: z.string().nullable(),\n object: z.string().nullable(),\n}).passthrough();\nexport const NotionFetchCommentsOutput = z.object({\n type: z.string().describe(\"Type of objects in results array, always 'comment' for this endpoint.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated endpoints.\").nullable(),\n comment: z.record(z.string(), z.unknown()).describe(\"Empty object present in the response (legacy field).\").nullable().optional(),\n results: z.array(z.union([NotionFetchComments_CommentFullSchema, NotionFetchComments_CommentPartialSchema])).describe(\"Array of comment objects retrieved from the page or block.\"),\n has_more: z.boolean().describe(\"Boolean indicating whether there are more results available beyond this page.\").nullable(),\n next_cursor: z.string().describe(\"Cursor for pagination to retrieve the next page of results (only present when has_more is true).\").nullable().optional(),\n}).passthrough().describe(\"Top-level response for fetching un-resolved comments from a page or block. This is a paginated list object.\\n\\nMatches Notion API GET /v1/comments response:\\n- object: always 'list'\\n- results: array of Comment objects (ascending chronological order)\\n- next_cursor: string or null\\n- has_more: boolean\\n- type: optional, 'comment' when present\\n- comment: optional, empty object when present (type-specific pagination info)\");\n\nexport const notionFetchComments = action(\"NOTION_FETCH_COMMENTS\", {\n slug: \"notion-fetch-comments\",\n name: \"Fetch comments\",\n description: \"Fetches unresolved comments for a specified Notion block or page ID. The block/page must be shared with your Notion integration and the integration must have 'Read comments' capability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AC,CAAC,SAAS;CACxB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;AAC9B,CAAC,CAAC,CAAC,YAAY;AAUf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,uCAAuC,wCAAwC,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;EAClL,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0aAOhB;AACV,CAAC"}
|
|
@@ -13,18 +13,18 @@ const NotionFetchDataInput = zod.z.object({
|
|
|
13
13
|
original_page_size: zod.z.number().int().describe("The original page size value before it was capped.").optional(),
|
|
14
14
|
page_size_was_capped: zod.z.boolean().default(false).describe("Indicates whether the page size was capped to the maximum allowed value.").optional()
|
|
15
15
|
}).describe("Defines the parameters for fetching data (pages and/or databases) from Notion.\nUse the `fetch_type` parameter to specify what type of data to retrieve.");
|
|
16
|
-
const NotionFetchData_PagePaginationInfoSchema = zod.z.
|
|
16
|
+
const NotionFetchData_PagePaginationInfoSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Type-specific pagination info for 'page' type responses. Typically an empty object.");
|
|
17
17
|
const NotionFetchData_SimplifiedResourceSchema = zod.z.object({
|
|
18
|
-
id: zod.z.string().describe("Unique identifier (UUID) of the resource."),
|
|
19
|
-
type: zod.z.string().describe("Type of the resource: 'page', 'database', or 'data_source'."),
|
|
20
|
-
title: zod.z.string().describe("Title or name of the resource.")
|
|
21
|
-
}).describe("Simplified representation of a Notion resource with id, title, and type.");
|
|
18
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the resource.").nullable(),
|
|
19
|
+
type: zod.z.string().describe("Type of the resource: 'page', 'database', or 'data_source'.").nullable(),
|
|
20
|
+
title: zod.z.string().describe("Title or name of the resource.").nullable()
|
|
21
|
+
}).passthrough().describe("Simplified representation of a Notion resource with id, title, and type.");
|
|
22
22
|
const NotionFetchData_FileFileSchema = zod.z.object({
|
|
23
|
-
url: zod.z.string().describe("Signed URL of the Notion-hosted file."),
|
|
24
|
-
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the signed URL expires.")
|
|
25
|
-
}).describe("Notion-hosted file with expiring URL.");
|
|
26
|
-
const NotionFetchData_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("External URL of the file.") }).describe("External file reference.");
|
|
27
|
-
const NotionFetchData_FileUploadSchema = zod.z.object({ id: zod.z.string().describe("File upload identifier.") }).describe("File upload reference.");
|
|
23
|
+
url: zod.z.string().describe("Signed URL of the Notion-hosted file.").nullable(),
|
|
24
|
+
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the signed URL expires.").nullable()
|
|
25
|
+
}).passthrough().describe("Notion-hosted file with expiring URL.");
|
|
26
|
+
const NotionFetchData_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("External URL of the file.").nullable() }).passthrough().describe("External file reference.");
|
|
27
|
+
const NotionFetchData_FileUploadSchema = zod.z.object({ id: zod.z.string().describe("File upload identifier.").nullable() }).passthrough().describe("File upload reference.");
|
|
28
28
|
const NotionFetchData_FileObjectSchema = zod.z.object({
|
|
29
29
|
file: NotionFetchData_FileFileSchema.nullable().optional(),
|
|
30
30
|
name: zod.z.string().describe("Optional file name.").nullable().optional(),
|
|
@@ -32,23 +32,23 @@ const NotionFetchData_FileObjectSchema = zod.z.object({
|
|
|
32
32
|
"file",
|
|
33
33
|
"file_upload",
|
|
34
34
|
"external"
|
|
35
|
-
]).describe("Type of file: 'file', 'file_upload', or 'external'."),
|
|
35
|
+
]).describe("Type of file: 'file', 'file_upload', or 'external'.").nullable(),
|
|
36
36
|
external: NotionFetchData_ExternalFileSchema.nullable().optional(),
|
|
37
37
|
file_upload: NotionFetchData_FileUploadSchema.nullable().optional()
|
|
38
|
-
}).describe("File object for icons and covers.");
|
|
38
|
+
}).passthrough().describe("File object for icons and covers.");
|
|
39
39
|
const NotionFetchData_EmojiObjectSchema = zod.z.object({
|
|
40
|
-
type: zod.z.string().describe("Always 'emoji'."),
|
|
41
|
-
emoji: zod.z.string().describe("The emoji character.")
|
|
42
|
-
}).describe("Emoji icon object.");
|
|
40
|
+
type: zod.z.string().describe("Always 'emoji'.").nullable(),
|
|
41
|
+
emoji: zod.z.string().describe("The emoji character.").nullable()
|
|
42
|
+
}).passthrough().describe("Emoji icon object.");
|
|
43
43
|
const NotionFetchData_CustomEmojiDataSchema = zod.z.object({
|
|
44
|
-
id: zod.z.string().describe("Unique identifier for the custom emoji."),
|
|
44
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
45
45
|
url: zod.z.string().describe("URL to the custom emoji image hosted on Notion.").nullable().optional(),
|
|
46
46
|
name: zod.z.string().describe("Name of the custom emoji.").nullable().optional()
|
|
47
|
-
}).describe("Custom emoji data containing id, name, and url.");
|
|
47
|
+
}).passthrough().describe("Custom emoji data containing id, name, and url.");
|
|
48
48
|
const NotionFetchData_CustomEmojiObjectSchema = zod.z.object({
|
|
49
|
-
type: zod.z.string().describe("Always 'custom_emoji'."),
|
|
49
|
+
type: zod.z.string().describe("Always 'custom_emoji'.").nullable(),
|
|
50
50
|
custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional()
|
|
51
|
-
}).describe("Custom emoji icon object.");
|
|
51
|
+
}).passthrough().describe("Custom emoji icon object.");
|
|
52
52
|
const NotionFetchData_ParentSchema = zod.z.object({
|
|
53
53
|
type: zod.z.enum([
|
|
54
54
|
"page_id",
|
|
@@ -56,64 +56,64 @@ const NotionFetchData_ParentSchema = zod.z.object({
|
|
|
56
56
|
"block_id",
|
|
57
57
|
"database_id",
|
|
58
58
|
"data_source_id"
|
|
59
|
-
]).describe("Type of parent."),
|
|
59
|
+
]).describe("Type of parent.").nullable(),
|
|
60
60
|
page_id: zod.z.string().describe("UUID of the parent page when type is 'page_id'.").nullable().optional(),
|
|
61
61
|
block_id: zod.z.string().describe("UUID of the parent block when type is 'block_id'.").nullable().optional(),
|
|
62
62
|
workspace: zod.z.boolean().describe("Always true when type is 'workspace'.").nullable().optional(),
|
|
63
63
|
database_id: zod.z.string().describe("UUID of the parent database when type is 'database_id'.").nullable().optional(),
|
|
64
64
|
data_source_id: zod.z.string().describe("UUID of the parent data source when type is 'data_source_id'.").nullable().optional()
|
|
65
|
-
}).describe("Parent location of a page, database, or data source.");
|
|
65
|
+
}).passthrough().describe("Parent location of a page, database, or data source.");
|
|
66
66
|
const NotionFetchData_PartialUserSchema = zod.z.object({
|
|
67
|
-
id: zod.z.string().describe("Unique identifier (UUID) of the user."),
|
|
67
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the user.").nullable(),
|
|
68
68
|
name: zod.z.string().describe("User's display name.").nullable().optional(),
|
|
69
69
|
type: zod.z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
|
|
70
|
-
object: zod.z.string().describe("Always 'user'."),
|
|
70
|
+
object: zod.z.string().describe("Always 'user'.").nullable(),
|
|
71
71
|
avatar_url: zod.z.string().describe("URL to user's avatar.").nullable().optional()
|
|
72
|
-
}).describe("Partial user object returned by Notion API.");
|
|
72
|
+
}).passthrough().describe("Partial user object returned by Notion API.");
|
|
73
73
|
const NotionFetchData_PageSchema = zod.z.object({
|
|
74
|
-
id: zod.z.string().describe("Unique identifier (UUID) of the page."),
|
|
75
|
-
url: zod.z.string().describe("URL of the page in Notion."),
|
|
74
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the page.").nullable(),
|
|
75
|
+
url: zod.z.string().describe("URL of the page in Notion.").nullable(),
|
|
76
76
|
icon: zod.z.union([
|
|
77
77
|
NotionFetchData_FileObjectSchema,
|
|
78
78
|
NotionFetchData_EmojiObjectSchema,
|
|
79
79
|
NotionFetchData_CustomEmojiObjectSchema
|
|
80
80
|
]).nullable().optional(),
|
|
81
81
|
cover: NotionFetchData_FileObjectSchema.nullable().optional(),
|
|
82
|
-
object: zod.z.string().describe("Always 'page'."),
|
|
82
|
+
object: zod.z.string().describe("Always 'page'.").nullable(),
|
|
83
83
|
parent: NotionFetchData_ParentSchema.nullable(),
|
|
84
|
-
archived: zod.z.boolean().describe("Whether the page is archived."),
|
|
85
|
-
in_trash: zod.z.boolean().describe("Whether the page is in trash."),
|
|
84
|
+
archived: zod.z.boolean().describe("Whether the page is archived.").nullable(),
|
|
85
|
+
in_trash: zod.z.boolean().describe("Whether the page is in trash.").nullable(),
|
|
86
86
|
is_locked: zod.z.boolean().describe("Whether the page is locked.").nullable().optional(),
|
|
87
87
|
created_by: NotionFetchData_PartialUserSchema.nullable(),
|
|
88
|
-
properties: zod.z.
|
|
88
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Property values of the page keyed by property name."),
|
|
89
89
|
public_url: zod.z.string().describe("Public URL if the page is published, or null.").nullable().optional(),
|
|
90
|
-
created_time: zod.z.string().describe("ISO 8601 timestamp when the page was created."),
|
|
90
|
+
created_time: zod.z.string().describe("ISO 8601 timestamp when the page was created.").nullable(),
|
|
91
91
|
last_edited_by: NotionFetchData_PartialUserSchema.nullable(),
|
|
92
|
-
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the page was last edited.")
|
|
93
|
-
}).describe("Notion Page object returned in search results.");
|
|
92
|
+
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the page was last edited.").nullable()
|
|
93
|
+
}).passthrough().describe("Notion Page object returned in search results.");
|
|
94
94
|
const NotionFetchData_RichTextTextSchema = zod.z.object({
|
|
95
|
-
link: zod.z.
|
|
96
|
-
content: zod.z.string().describe("The actual text content.")
|
|
97
|
-
}).describe("Text content for rich text.");
|
|
95
|
+
link: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Link object with 'url' field, or null.").nullable().optional(),
|
|
96
|
+
content: zod.z.string().describe("The actual text content.").nullable()
|
|
97
|
+
}).passthrough().describe("Text content for rich text.");
|
|
98
98
|
const NotionFetchData_DateMentionValueSchema = zod.z.object({
|
|
99
99
|
end: zod.z.string().describe("End date in ISO 8601 format.").nullable().optional(),
|
|
100
|
-
start: zod.z.string().describe("Start date in ISO 8601 format."),
|
|
100
|
+
start: zod.z.string().describe("Start date in ISO 8601 format.").nullable(),
|
|
101
101
|
time_zone: zod.z.string().describe("Time zone identifier.").nullable().optional()
|
|
102
|
-
}).describe("Date value in a date mention.");
|
|
103
|
-
const NotionFetchData_PageReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the mentioned page.") }).describe("Page reference in a mention.");
|
|
102
|
+
}).passthrough().describe("Date value in a date mention.");
|
|
103
|
+
const NotionFetchData_PageReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the mentioned page.").nullable() }).passthrough().describe("Page reference in a mention.");
|
|
104
104
|
const NotionFetchData_UserReferenceSchema = zod.z.object({
|
|
105
|
-
id: zod.z.string().describe("UUID of the mentioned user."),
|
|
106
|
-
object: zod.z.string().describe("Always 'user'.")
|
|
107
|
-
}).describe("User reference in a mention.");
|
|
108
|
-
const NotionFetchData_DatabaseReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the mentioned database.") }).describe("Database reference in a mention.");
|
|
109
|
-
const NotionFetchData_LinkPreviewMentionValueSchema = zod.z.object({ url: zod.z.string().describe("URL being previewed.") }).describe("Link preview value in a link preview mention.");
|
|
110
|
-
const NotionFetchData_TemplateMentionDateValueSchema = zod.z.object({ type: zod.z.enum(["today", "now"]).describe("Type of template date: 'today' or 'now'.") }).describe("Template mention date value.");
|
|
111
|
-
const NotionFetchData_TemplateMentionUserValueSchema = zod.z.object({ type: zod.z.string().describe("Always 'me'.") }).describe("Template mention user value.");
|
|
105
|
+
id: zod.z.string().describe("UUID of the mentioned user.").nullable(),
|
|
106
|
+
object: zod.z.string().describe("Always 'user'.").nullable()
|
|
107
|
+
}).passthrough().describe("User reference in a mention.");
|
|
108
|
+
const NotionFetchData_DatabaseReferenceSchema = zod.z.object({ id: zod.z.string().describe("UUID of the mentioned database.").nullable() }).passthrough().describe("Database reference in a mention.");
|
|
109
|
+
const NotionFetchData_LinkPreviewMentionValueSchema = zod.z.object({ url: zod.z.string().describe("URL being previewed.").nullable() }).passthrough().describe("Link preview value in a link preview mention.");
|
|
110
|
+
const NotionFetchData_TemplateMentionDateValueSchema = zod.z.object({ type: zod.z.enum(["today", "now"]).describe("Type of template date: 'today' or 'now'.").nullable() }).passthrough().describe("Template mention date value.");
|
|
111
|
+
const NotionFetchData_TemplateMentionUserValueSchema = zod.z.object({ type: zod.z.string().describe("Always 'me'.").nullable() }).passthrough().describe("Template mention user value.");
|
|
112
112
|
const NotionFetchData_TemplateMentionValueSchema = zod.z.object({
|
|
113
|
-
type: zod.z.enum(["template_mention_date", "template_mention_user"]).describe("Type of template mention."),
|
|
113
|
+
type: zod.z.enum(["template_mention_date", "template_mention_user"]).describe("Type of template mention.").nullable(),
|
|
114
114
|
template_mention_date: zod.z.union([NotionFetchData_TemplateMentionDateValueSchema, zod.z.string()]).nullable().optional(),
|
|
115
115
|
template_mention_user: NotionFetchData_TemplateMentionUserValueSchema.nullable().optional()
|
|
116
|
-
}).describe("Template mention value containing either date or user template.");
|
|
116
|
+
}).passthrough().describe("Template mention value containing either date or user template.");
|
|
117
117
|
const NotionFetchData_MentionSchema = zod.z.object({
|
|
118
118
|
date: NotionFetchData_DateMentionValueSchema.nullable().optional(),
|
|
119
119
|
page: NotionFetchData_PageReferenceSchema.nullable().optional(),
|
|
@@ -125,22 +125,22 @@ const NotionFetchData_MentionSchema = zod.z.object({
|
|
|
125
125
|
"link_preview",
|
|
126
126
|
"template_mention",
|
|
127
127
|
"custom_emoji"
|
|
128
|
-
]).describe("Type of mention."),
|
|
128
|
+
]).describe("Type of mention.").nullable(),
|
|
129
129
|
user: NotionFetchData_UserReferenceSchema.nullable().optional(),
|
|
130
130
|
database: NotionFetchData_DatabaseReferenceSchema.nullable().optional(),
|
|
131
131
|
custom_emoji: NotionFetchData_CustomEmojiDataSchema.nullable().optional(),
|
|
132
132
|
link_preview: NotionFetchData_LinkPreviewMentionValueSchema.nullable().optional(),
|
|
133
133
|
template_mention: NotionFetchData_TemplateMentionValueSchema.nullable().optional()
|
|
134
|
-
}).describe("Mention object containing the mention type and details.");
|
|
135
|
-
const NotionFetchData_RichTextEquationSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX equation expression.") }).describe("Equation content for rich text.");
|
|
134
|
+
}).passthrough().describe("Mention object containing the mention type and details.");
|
|
135
|
+
const NotionFetchData_RichTextEquationSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX equation expression.").nullable() }).passthrough().describe("Equation content for rich text.");
|
|
136
136
|
const NotionFetchData_AnnotationsSchema = zod.z.object({
|
|
137
|
-
bold: zod.z.boolean().describe("Whether the text is bold."),
|
|
138
|
-
code: zod.z.boolean().describe("Whether the text is formatted as code."),
|
|
139
|
-
color: zod.z.string().describe("Color of the text."),
|
|
140
|
-
italic: zod.z.boolean().describe("Whether the text is italicized."),
|
|
141
|
-
underline: zod.z.boolean().describe("Whether the text is underlined."),
|
|
142
|
-
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
|
|
143
|
-
}).describe("Styling properties for rich text.");
|
|
137
|
+
bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
|
|
138
|
+
code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
|
|
139
|
+
color: zod.z.string().describe("Color of the text.").nullable(),
|
|
140
|
+
italic: zod.z.boolean().describe("Whether the text is italicized.").nullable(),
|
|
141
|
+
underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
142
|
+
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
143
|
+
}).passthrough().describe("Styling properties for rich text.");
|
|
144
144
|
const NotionFetchData_RichTextSchema = zod.z.object({
|
|
145
145
|
href: zod.z.string().describe("URL if the text is a link, or null.").nullable().optional(),
|
|
146
146
|
text: NotionFetchData_RichTextTextSchema.nullable().optional(),
|
|
@@ -148,35 +148,35 @@ const NotionFetchData_RichTextSchema = zod.z.object({
|
|
|
148
148
|
"text",
|
|
149
149
|
"mention",
|
|
150
150
|
"equation"
|
|
151
|
-
]).describe("Type of rich text: 'text', 'mention', or 'equation'."),
|
|
151
|
+
]).describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
|
|
152
152
|
mention: NotionFetchData_MentionSchema.nullable().optional(),
|
|
153
153
|
equation: NotionFetchData_RichTextEquationSchema.nullable().optional(),
|
|
154
|
-
plain_text: zod.z.string().describe("Plain text representation without formatting."),
|
|
154
|
+
plain_text: zod.z.string().describe("Plain text representation without formatting.").nullable(),
|
|
155
155
|
annotations: NotionFetchData_AnnotationsSchema.nullable()
|
|
156
|
-
}).describe("Rich text object for titles and descriptions.");
|
|
156
|
+
}).passthrough().describe("Rich text object for titles and descriptions.");
|
|
157
157
|
const NotionFetchData_DataSourceSchema = zod.z.object({
|
|
158
|
-
id: zod.z.string().describe("Unique identifier (UUID) of the data source."),
|
|
158
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the data source.").nullable(),
|
|
159
159
|
icon: zod.z.union([
|
|
160
160
|
NotionFetchData_FileObjectSchema,
|
|
161
161
|
NotionFetchData_EmojiObjectSchema,
|
|
162
162
|
NotionFetchData_CustomEmojiObjectSchema
|
|
163
163
|
]).nullable().optional(),
|
|
164
164
|
title: zod.z.array(NotionFetchData_RichTextSchema).describe("Title of the data source as rich text.").nullable().optional(),
|
|
165
|
-
object: zod.z.string().describe("Always 'data_source'."),
|
|
165
|
+
object: zod.z.string().describe("Always 'data_source'.").nullable(),
|
|
166
166
|
parent: NotionFetchData_ParentSchema.nullable().optional(),
|
|
167
167
|
archived: zod.z.boolean().describe("Whether the data source is archived.").nullable().optional(),
|
|
168
168
|
in_trash: zod.z.boolean().describe("Whether the data source is in trash.").nullable().optional(),
|
|
169
169
|
created_by: NotionFetchData_PartialUserSchema.nullable().optional(),
|
|
170
|
-
properties: zod.z.
|
|
170
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema properties of the data source keyed by property name."),
|
|
171
171
|
description: zod.z.array(NotionFetchData_RichTextSchema).describe("Description of the data source as rich text.").nullable().optional(),
|
|
172
172
|
created_time: zod.z.string().describe("ISO 8601 timestamp when the data source was created.").nullable().optional(),
|
|
173
173
|
last_edited_by: NotionFetchData_PartialUserSchema.nullable().optional(),
|
|
174
174
|
database_parent: NotionFetchData_ParentSchema.nullable().optional(),
|
|
175
175
|
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the data source was last edited.").nullable().optional()
|
|
176
|
-
}).describe("Notion Data Source object returned in search results.");
|
|
176
|
+
}).passthrough().describe("Notion Data Source object returned in search results.");
|
|
177
177
|
const NotionFetchData_DatabaseSchema = zod.z.object({
|
|
178
|
-
id: zod.z.string().describe("Unique identifier (UUID) of the database."),
|
|
179
|
-
url: zod.z.string().describe("URL of the database in Notion."),
|
|
178
|
+
id: zod.z.string().describe("Unique identifier (UUID) of the database.").nullable(),
|
|
179
|
+
url: zod.z.string().describe("URL of the database in Notion.").nullable(),
|
|
180
180
|
icon: zod.z.union([
|
|
181
181
|
NotionFetchData_FileObjectSchema,
|
|
182
182
|
NotionFetchData_EmojiObjectSchema,
|
|
@@ -184,24 +184,24 @@ const NotionFetchData_DatabaseSchema = zod.z.object({
|
|
|
184
184
|
]).nullable().optional(),
|
|
185
185
|
cover: NotionFetchData_FileObjectSchema.nullable().optional(),
|
|
186
186
|
title: zod.z.array(NotionFetchData_RichTextSchema).describe("Title of the database as rich text.").nullable().optional(),
|
|
187
|
-
object: zod.z.string().describe("Always 'database'."),
|
|
187
|
+
object: zod.z.string().describe("Always 'database'.").nullable(),
|
|
188
188
|
parent: NotionFetchData_ParentSchema.nullable(),
|
|
189
189
|
archived: zod.z.boolean().default(false).describe("Whether the database is archived.").nullable().optional(),
|
|
190
|
-
in_trash: zod.z.boolean().describe("Whether the database is in trash."),
|
|
190
|
+
in_trash: zod.z.boolean().describe("Whether the database is in trash.").nullable(),
|
|
191
191
|
is_inline: zod.z.boolean().describe("Whether the database is displayed inline.").nullable().optional(),
|
|
192
192
|
created_by: NotionFetchData_PartialUserSchema.nullable(),
|
|
193
|
-
properties: zod.z.
|
|
193
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Property schema of the database keyed by property name."),
|
|
194
194
|
public_url: zod.z.string().describe("Public URL if the database is published, or null.").nullable().optional(),
|
|
195
195
|
description: zod.z.array(NotionFetchData_RichTextSchema).describe("Description of the database as rich text.").nullable().optional(),
|
|
196
|
-
created_time: zod.z.string().describe("ISO 8601 timestamp when the database was created."),
|
|
196
|
+
created_time: zod.z.string().describe("ISO 8601 timestamp when the database was created.").nullable(),
|
|
197
197
|
last_edited_by: NotionFetchData_PartialUserSchema.nullable(),
|
|
198
|
-
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the database was last edited.")
|
|
199
|
-
}).describe("Notion Database object returned in search results.");
|
|
200
|
-
const NotionFetchData_DataSourcePaginationInfoSchema = zod.z.
|
|
198
|
+
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
|
|
199
|
+
}).passthrough().describe("Notion Database object returned in search results.");
|
|
200
|
+
const NotionFetchData_DataSourcePaginationInfoSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Type-specific pagination info for 'data_source' type responses. Typically an empty object.");
|
|
201
201
|
const NotionFetchDataOutput = zod.z.object({
|
|
202
202
|
page: NotionFetchData_PagePaginationInfoSchema.nullable().optional(),
|
|
203
203
|
type: zod.z.string().describe("The object type contained in results (e.g., 'page' or 'data_source') when provided by Notion.").nullable().optional(),
|
|
204
|
-
object: zod.z.string().describe("Constant string 'list' indicating this is a paginated list response."),
|
|
204
|
+
object: zod.z.string().describe("Constant string 'list' indicating this is a paginated list response.").nullable(),
|
|
205
205
|
values: zod.z.array(NotionFetchData_SimplifiedResourceSchema).describe("CANONICAL data source. Always populated with simplified Notion resources (id, title, type). Use this field for reading data - it is guaranteed to be present and consistent.").nullable().optional(),
|
|
206
206
|
results: zod.z.array(zod.z.union([
|
|
207
207
|
NotionFetchData_PageSchema,
|
|
@@ -213,7 +213,7 @@ const NotionFetchDataOutput = zod.z.object({
|
|
|
213
213
|
next_cursor: zod.z.string().describe("Opaque cursor to pass as start_cursor on a subsequent request; null if no more results.").nullable().optional(),
|
|
214
214
|
total_count: zod.z.number().int().default(0).describe("Number of items in 'values' list (may differ from 'results' length if some items couldn't be parsed).").nullable().optional(),
|
|
215
215
|
composio_execution_message: zod.z.string().describe("Message about any input modifications made during execution (e.g., page_size capping).").nullable().optional()
|
|
216
|
-
}).describe("Notion Fetch Data (NOTION_FETCH_DATA) - Response Schema\n\nThis response provides a consistent, predictable data structure for agents.\nThe 'values' field is the CANONICAL data source - it is ALWAYS populated\n(even as an empty list when no results are found) and should be used for\nall data access needs.\n\nData Fields:\n- 'values': The PRIMARY data field. Always contains a list of SimplifiedResource\n objects with id, title, and type. Use this field for reading data.\n- 'results': The standard Notion API field containing full response objects.\n Use only when you need additional details not present in 'values'.\n\nPagination Fields:\n- 'next_cursor': Opaque cursor for fetching the next page of results.\n- 'has_more': Boolean indicating if more results are available.\n- 'total_count': Number of items in 'values' (may differ from 'results' if\n some items couldn't be parsed into simplified format).");
|
|
216
|
+
}).passthrough().describe("Notion Fetch Data (NOTION_FETCH_DATA) - Response Schema\n\nThis response provides a consistent, predictable data structure for agents.\nThe 'values' field is the CANONICAL data source - it is ALWAYS populated\n(even as an empty list when no results are found) and should be used for\nall data access needs.\n\nData Fields:\n- 'values': The PRIMARY data field. Always contains a list of SimplifiedResource\n objects with id, title, and type. Use this field for reading data.\n- 'results': The standard Notion API field containing full response objects.\n Use only when you need additional details not present in 'values'.\n\nPagination Fields:\n- 'next_cursor': Opaque cursor for fetching the next page of results.\n- 'has_more': Boolean indicating if more results are available.\n- 'total_count': Number of items in 'values' (may differ from 'results' if\n some items couldn't be parsed into simplified format).");
|
|
217
217
|
const notionFetchData = require_action.action("NOTION_FETCH_DATA", {
|
|
218
218
|
slug: "notion-fetch-data",
|
|
219
219
|
name: "Fetch Notion Data",
|