@keystrokehq/notion 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +8 -8
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +88 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +88 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +8 -8
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +44 -44
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +849 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +849 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +44 -44
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +44 -44
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +642 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +642 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +44 -44
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +44 -44
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +996 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +996 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +44 -44
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +44 -44
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +624 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +624 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +44 -44
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +44 -44
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +826 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +826 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +44 -44
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +44 -44
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1080 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1080 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +44 -44
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +27 -27
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +78 -3
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +78 -3
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +27 -27
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +46 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +46 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +31 -31
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +139 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +139 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +31 -31
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +8 -8
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +38 -3
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +38 -3
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +8 -8
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +29 -29
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +83 -3
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +83 -3
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +29 -29
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +53 -53
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +2181 -3
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +2181 -3
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +53 -53
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +31 -31
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +90 -3
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +90 -3
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +31 -31
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +45 -45
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +38 -3
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +38 -3
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +45 -45
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +57 -57
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +687 -3
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +687 -3
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +57 -57
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +51 -51
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +2103 -3
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +2103 -3
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +51 -51
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +37 -37
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +148 -3
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +148 -3
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +37 -37
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +51 -51
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +594 -3
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +594 -3
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +51 -51
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +27 -27
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +89 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +89 -3
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +27 -27
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +35 -35
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +151 -3
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +151 -3
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +35 -35
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +7 -7
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +44 -3
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +44 -3
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +7 -7
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +4 -4
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +15 -3
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +15 -3
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +4 -4
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +13 -3
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +13 -3
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +30 -30
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +163 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +163 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +30 -30
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -1
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +19 -3
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +19 -3
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -1
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +4 -4
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +19 -3
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +19 -3
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +4 -4
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +7 -7
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +32 -3
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +32 -3
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +7 -7
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +6 -6
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +58 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +58 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +6 -6
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +27 -27
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +90 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +90 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +27 -27
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +18 -18
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +159 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +159 -3
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +18 -18
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +49 -49
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +214 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +214 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +49 -49
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +38 -38
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +208 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +208 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +38 -38
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +3 -3
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1706 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1706 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +3 -3
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +7 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +7 -3
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +19 -19
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +78 -3
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +78 -3
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +19 -19
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +5 -5
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +25 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +25 -3
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +5 -5
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +34 -34
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +139 -3
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +139 -3
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +34 -34
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +54 -54
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +751 -3
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +751 -3
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +54 -54
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +7 -7
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +33 -3
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +33 -3
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +7 -7
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +55 -55
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +564 -3
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +564 -3
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +55 -55
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +32 -32
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +103 -3
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +103 -3
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +32 -32
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +31 -31
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +126 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +126 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +31 -31
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +51 -51
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +314 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +314 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +51 -51
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +4 -4
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +218 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +218 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +4 -4
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-comments.cjs","names":["z","action"],"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,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,S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UA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,0aAA0a;AAEtb,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-comments.cjs","names":["z","action"],"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});\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});\nconst NotionFetchComments_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL of the link.\").nullable(),\n});\nconst NotionFetchComments_TextObjectSchema = z.object({\n link: NotionFetchComments_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n});\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});\nconst NotionFetchComments_MentionPageObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n});\nconst NotionFetchComments_BotOwnerObjectSchema = z.object({\n type: z.string().describe(\"Either 'workspace' or 'user'.\").nullable().optional(),\n});\nconst NotionFetchComments_WorkspaceLimitsObjectSchema = 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.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.object({\n email: z.string().describe(\"Email address of the person (requires user capability access).\").nullable().optional(),\n});\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});\nconst NotionFetchComments_MentionDatabaseObjectSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n});\nconst NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n});\nconst NotionFetchComments_TemplateMentionObjectSchema = z.object({\n type: z.string().describe(\"Template mention subtype: 'template_mention_date' or 'template_mention_user'.\").nullable(),\n});\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});\nconst NotionFetchComments_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX string representing the inline equation.\").nullable(),\n});\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});\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});\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});\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});\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});\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});\nconst NotionFetchComments_CommentPartialSchema = z.object({\n id: z.string().nullable(),\n object: z.string().nullable(),\n});\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}).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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sVAAsV,CAAC,CAAC,SAAS;CAC9X,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sWAAsW,CAAC,CAAC,SAAS;CAC/Y,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAChL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;AAC/M,CAAC;AACD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAA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,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,uCAAuC,wCAAwC,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAClL,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,0aAA0a;AAEtb,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,154 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-comments.d.ts
|
|
4
|
-
declare const NotionFetchCommentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionFetchCommentsInput: z.ZodObject<{
|
|
5
|
+
page_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
block_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const NotionFetchCommentsOutput: z.ZodObject<{
|
|
11
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
object: z.ZodNullable<z.ZodString>;
|
|
13
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
results: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
object: z.ZodNullable<z.ZodString>;
|
|
17
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodNullable<z.ZodString>;
|
|
22
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>]>;
|
|
24
|
+
rich_text: z.ZodArray<z.ZodObject<{
|
|
25
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
url: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
content: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
text: "text";
|
|
34
|
+
equation: "equation";
|
|
35
|
+
mention: "mention";
|
|
36
|
+
}>>;
|
|
37
|
+
mention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
end: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
start: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
60
|
+
person: "person";
|
|
61
|
+
bot: "bot";
|
|
62
|
+
}>>>;
|
|
63
|
+
object: z.ZodNullable<z.ZodString>;
|
|
64
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$strip>>>;
|
|
67
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
database: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
70
|
+
id: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
link_preview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
73
|
+
url: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
template_mention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
76
|
+
type: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
equation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
|
+
expression: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
plain_text: z.ZodNullable<z.ZodString>;
|
|
83
|
+
annotations: z.ZodNullable<z.ZodObject<{
|
|
84
|
+
bold: z.ZodNullable<z.ZodBoolean>;
|
|
85
|
+
code: z.ZodNullable<z.ZodBoolean>;
|
|
86
|
+
color: z.ZodNullable<z.ZodString>;
|
|
87
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
88
|
+
underline: z.ZodNullable<z.ZodBoolean>;
|
|
89
|
+
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
93
|
+
id: z.ZodNullable<z.ZodString>;
|
|
94
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
101
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
106
|
+
person: "person";
|
|
107
|
+
bot: "bot";
|
|
108
|
+
}>>>;
|
|
109
|
+
object: z.ZodNullable<z.ZodString>;
|
|
110
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
111
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>>>;
|
|
113
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
116
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
url: z.ZodNullable<z.ZodString>;
|
|
118
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
121
|
+
pdf: "pdf";
|
|
122
|
+
audio: "audio";
|
|
123
|
+
image: "image";
|
|
124
|
+
video: "video";
|
|
125
|
+
productivity: "productivity";
|
|
126
|
+
}>>;
|
|
127
|
+
}, z.core.$strip>>>>;
|
|
128
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
129
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
130
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
131
|
+
custom: "custom";
|
|
132
|
+
user: "user";
|
|
133
|
+
integration: "integration";
|
|
134
|
+
}>>;
|
|
135
|
+
resolved_name: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
discussion_id: z.ZodNullable<z.ZodString>;
|
|
138
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
id: z.ZodNullable<z.ZodString>;
|
|
141
|
+
object: z.ZodNullable<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>]>>;
|
|
143
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
144
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const notionFetchComments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
147
|
+
page_id?: string | undefined;
|
|
148
|
+
block_id?: string | undefined;
|
|
149
|
+
page_size?: number | undefined;
|
|
150
|
+
start_cursor?: string | undefined;
|
|
151
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
152
|
//#endregion
|
|
8
153
|
export { notionFetchComments };
|
|
9
154
|
//# sourceMappingURL=fetch-comments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-comments.d.cts","names":[],"sources":["../../src/actions/fetch-comments.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"fetch-comments.d.cts","names":[],"sources":["../../src/actions/fetch-comments.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAsHxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,154 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-comments.d.ts
|
|
4
|
-
declare const NotionFetchCommentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionFetchCommentsInput: z.ZodObject<{
|
|
5
|
+
page_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
block_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const NotionFetchCommentsOutput: z.ZodObject<{
|
|
11
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
object: z.ZodNullable<z.ZodString>;
|
|
13
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
results: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
object: z.ZodNullable<z.ZodString>;
|
|
17
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodNullable<z.ZodString>;
|
|
22
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>]>;
|
|
24
|
+
rich_text: z.ZodArray<z.ZodObject<{
|
|
25
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
url: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
content: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
text: "text";
|
|
34
|
+
equation: "equation";
|
|
35
|
+
mention: "mention";
|
|
36
|
+
}>>;
|
|
37
|
+
mention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
end: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
start: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
60
|
+
person: "person";
|
|
61
|
+
bot: "bot";
|
|
62
|
+
}>>>;
|
|
63
|
+
object: z.ZodNullable<z.ZodString>;
|
|
64
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$strip>>>;
|
|
67
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
database: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
70
|
+
id: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
link_preview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
73
|
+
url: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
template_mention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
76
|
+
type: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
equation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
|
+
expression: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
plain_text: z.ZodNullable<z.ZodString>;
|
|
83
|
+
annotations: z.ZodNullable<z.ZodObject<{
|
|
84
|
+
bold: z.ZodNullable<z.ZodBoolean>;
|
|
85
|
+
code: z.ZodNullable<z.ZodBoolean>;
|
|
86
|
+
color: z.ZodNullable<z.ZodString>;
|
|
87
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
88
|
+
underline: z.ZodNullable<z.ZodBoolean>;
|
|
89
|
+
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
93
|
+
id: z.ZodNullable<z.ZodString>;
|
|
94
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
101
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
106
|
+
person: "person";
|
|
107
|
+
bot: "bot";
|
|
108
|
+
}>>>;
|
|
109
|
+
object: z.ZodNullable<z.ZodString>;
|
|
110
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
111
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>>>;
|
|
113
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
116
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
url: z.ZodNullable<z.ZodString>;
|
|
118
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
121
|
+
pdf: "pdf";
|
|
122
|
+
audio: "audio";
|
|
123
|
+
image: "image";
|
|
124
|
+
video: "video";
|
|
125
|
+
productivity: "productivity";
|
|
126
|
+
}>>;
|
|
127
|
+
}, z.core.$strip>>>>;
|
|
128
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
129
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
130
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
131
|
+
custom: "custom";
|
|
132
|
+
user: "user";
|
|
133
|
+
integration: "integration";
|
|
134
|
+
}>>;
|
|
135
|
+
resolved_name: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
discussion_id: z.ZodNullable<z.ZodString>;
|
|
138
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
id: z.ZodNullable<z.ZodString>;
|
|
141
|
+
object: z.ZodNullable<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>]>>;
|
|
143
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
144
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const notionFetchComments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
147
|
+
page_id?: string | undefined;
|
|
148
|
+
block_id?: string | undefined;
|
|
149
|
+
page_size?: number | undefined;
|
|
150
|
+
start_cursor?: string | undefined;
|
|
151
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
152
|
//#endregion
|
|
8
153
|
export { notionFetchComments };
|
|
9
154
|
//# sourceMappingURL=fetch-comments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-comments.d.mts","names":[],"sources":["../../src/actions/fetch-comments.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"fetch-comments.d.mts","names":[],"sources":["../../src/actions/fetch-comments.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAsHxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -8,23 +8,23 @@ 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.")
|
|
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
13
|
});
|
|
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.")
|
|
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
17
|
});
|
|
18
|
-
const NotionFetchComments_LinkObjectSchema = z.object({ url: z.string().describe("The URL of the link.") });
|
|
18
|
+
const NotionFetchComments_LinkObjectSchema = z.object({ url: z.string().describe("The URL of the link.").nullable() });
|
|
19
19
|
const NotionFetchComments_TextObjectSchema = z.object({
|
|
20
20
|
link: NotionFetchComments_LinkObjectSchema.nullable().optional(),
|
|
21
|
-
content: z.string().describe("The actual text content.")
|
|
21
|
+
content: z.string().describe("The actual text content.").nullable()
|
|
22
22
|
});
|
|
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.")
|
|
25
|
+
start: z.string().describe("Start date/time.").nullable()
|
|
26
26
|
});
|
|
27
|
-
const NotionFetchComments_MentionPageObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned page.") });
|
|
27
|
+
const NotionFetchComments_MentionPageObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() });
|
|
28
28
|
const NotionFetchComments_BotOwnerObjectSchema = z.object({ type: z.string().describe("Either 'workspace' or 'user'.").nullable().optional() });
|
|
29
29
|
const NotionFetchComments_WorkspaceLimitsObjectSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum upload size in bytes.").nullable().optional() });
|
|
30
30
|
const NotionFetchComments_BotObjectSchema = z.object({
|
|
@@ -35,34 +35,34 @@ const NotionFetchComments_BotObjectSchema = z.object({
|
|
|
35
35
|
});
|
|
36
36
|
const NotionFetchComments_PersonObjectSchema = z.object({ email: z.string().describe("Email address of the person (requires user capability access).").nullable().optional() });
|
|
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
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'.") });
|
|
46
|
+
const NotionFetchComments_MentionDatabaseObjectSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() });
|
|
47
|
+
const NotionFetchComments_MentionLinkPreviewObjectSchema = z.object({ url: z.string().describe("URL of the link preview.").nullable() });
|
|
48
|
+
const NotionFetchComments_TemplateMentionObjectSchema = z.object({ type: z.string().describe("Template mention subtype: 'template_mention_date' or 'template_mention_user'.").nullable() });
|
|
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
57
|
});
|
|
58
|
-
const NotionFetchComments_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX string representing the inline equation.") });
|
|
58
|
+
const NotionFetchComments_EquationObjectSchema = z.object({ expression: z.string().describe("LaTeX string representing the inline equation.").nullable() });
|
|
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.")
|
|
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
66
|
});
|
|
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(),
|
|
@@ -71,15 +71,15 @@ 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
|
});
|
|
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.")
|
|
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
83
|
});
|
|
84
84
|
const NotionFetchComments_CommentAttachmentSchema = z.object({
|
|
85
85
|
file: NotionFetchComments_CommentAttachmentFileSchema.nullable(),
|
|
@@ -89,31 +89,31 @@ const NotionFetchComments_CommentAttachmentSchema = z.object({
|
|
|
89
89
|
"pdf",
|
|
90
90
|
"productivity",
|
|
91
91
|
"video"
|
|
92
|
-
]).describe("File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.")
|
|
92
|
+
]).describe("File category: 'audio', 'image', 'pdf', 'productivity', or 'video'.").nullable()
|
|
93
93
|
});
|
|
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.")
|
|
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
101
|
});
|
|
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.")
|
|
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
113
|
});
|
|
114
114
|
const NotionFetchComments_CommentPartialSchema = z.object({
|
|
115
|
-
id: z.string(),
|
|
116
|
-
object: z.string()
|
|
115
|
+
id: z.string().nullable(),
|
|
116
|
+
object: z.string().nullable()
|
|
117
117
|
});
|
|
118
118
|
const notionFetchComments = action("NOTION_FETCH_COMMENTS", {
|
|
119
119
|
slug: "notion-fetch-comments",
|
|
@@ -122,10 +122,10 @@ 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
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)")
|
|
131
131
|
});
|