@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,9 +1,165 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-data-source.d.ts
|
|
4
|
-
declare const NotionQueryDataSourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionQueryDataSourceInput: z.ZodObject<{
|
|
5
|
+
sorts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6
|
+
property: z.ZodString;
|
|
7
|
+
direction: z.ZodEnum<{
|
|
8
|
+
ascending: "ascending";
|
|
9
|
+
descending: "descending";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
direction: z.ZodEnum<{
|
|
13
|
+
ascending: "ascending";
|
|
14
|
+
descending: "descending";
|
|
15
|
+
}>;
|
|
16
|
+
timestamp: z.ZodEnum<{
|
|
17
|
+
created_time: "created_time";
|
|
18
|
+
last_edited_time: "last_edited_time";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>]>>>;
|
|
21
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
24
|
+
data_source_id: z.ZodString;
|
|
25
|
+
filter_properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const NotionQueryDataSourceOutput: z.ZodObject<{
|
|
28
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
30
|
+
id: z.ZodNullable<z.ZodString>;
|
|
31
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
url: z.ZodNullable<z.ZodString>;
|
|
35
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
38
|
+
file: "file";
|
|
39
|
+
external: "external";
|
|
40
|
+
emoji: "emoji";
|
|
41
|
+
custom_emoji: "custom_emoji";
|
|
42
|
+
}>>;
|
|
43
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
url: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
custom_emoji: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
id: z.ZodNullable<z.ZodString>;
|
|
49
|
+
url: z.ZodNullable<z.ZodString>;
|
|
50
|
+
name: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
url: z.ZodNullable<z.ZodString>;
|
|
56
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
file: "file";
|
|
60
|
+
external: "external";
|
|
61
|
+
}>>;
|
|
62
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
63
|
+
url: z.ZodNullable<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>>>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
object: z.ZodNullable<z.ZodString>;
|
|
67
|
+
parent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
69
|
+
page_id: "page_id";
|
|
70
|
+
data_source_id: "data_source_id";
|
|
71
|
+
workspace: "workspace";
|
|
72
|
+
database_id: "database_id";
|
|
73
|
+
}>>;
|
|
74
|
+
page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
76
|
+
database_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
data_source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
80
|
+
in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
81
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
id: z.ZodNullable<z.ZodString>;
|
|
83
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
84
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
85
|
+
type: z.ZodNullable<z.ZodString>;
|
|
86
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
type: z.ZodNullable<z.ZodString>;
|
|
89
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
90
|
+
id: z.ZodNullable<z.ZodString>;
|
|
91
|
+
object: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>]>>>;
|
|
94
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
97
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
98
|
+
}, z.core.$strip>>>;
|
|
99
|
+
}, z.core.$strip>>>;
|
|
100
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
person: "person";
|
|
103
|
+
bot: "bot";
|
|
104
|
+
}>>>;
|
|
105
|
+
object: z.ZodNullable<z.ZodString>;
|
|
106
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
107
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
112
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
115
|
+
id: z.ZodNullable<z.ZodString>;
|
|
116
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
117
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
118
|
+
type: z.ZodNullable<z.ZodString>;
|
|
119
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
type: z.ZodNullable<z.ZodString>;
|
|
122
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
123
|
+
id: z.ZodNullable<z.ZodString>;
|
|
124
|
+
object: z.ZodNullable<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>]>>>;
|
|
127
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
130
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
135
|
+
person: "person";
|
|
136
|
+
bot: "bot";
|
|
137
|
+
}>>>;
|
|
138
|
+
object: z.ZodNullable<z.ZodString>;
|
|
139
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
140
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
}, z.core.$strip>>>;
|
|
142
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
144
|
+
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
}, z.core.$strip>>>>;
|
|
146
|
+
has_more: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
147
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
declare const notionQueryDataSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
150
|
+
data_source_id: string;
|
|
151
|
+
sorts?: ({
|
|
152
|
+
property: string;
|
|
153
|
+
direction: "ascending" | "descending";
|
|
154
|
+
} | {
|
|
155
|
+
direction: "ascending" | "descending";
|
|
156
|
+
timestamp: "created_time" | "last_edited_time";
|
|
157
|
+
})[] | undefined;
|
|
158
|
+
filter?: Record<string, unknown> | undefined;
|
|
159
|
+
page_size?: number | undefined;
|
|
160
|
+
start_cursor?: string | undefined;
|
|
161
|
+
filter_properties?: string[] | undefined;
|
|
162
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
163
|
//#endregion
|
|
8
164
|
export { notionQueryDataSource };
|
|
9
165
|
//# sourceMappingURL=query-data-source.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-data-source.d.mts","names":[],"sources":["../../src/actions/query-data-source.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"query-data-source.d.mts","names":[],"sources":["../../src/actions/query-data-source.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cA8F1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;WAMhC,MAAA"}
|
|
@@ -16,14 +16,14 @@ const NotionQueryDataSourceInput = z.object({
|
|
|
16
16
|
filter_properties: z.array(z.string()).describe("List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.").optional()
|
|
17
17
|
}).describe("Request model for querying a Notion data source.");
|
|
18
18
|
const NotionQueryDataSource_NotionHostedFileSchema = z.object({
|
|
19
|
-
url: z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
20
|
-
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
19
|
+
url: z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
20
|
+
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
21
21
|
}).describe("Notion-hosted file reference.");
|
|
22
|
-
const NotionQueryDataSource_ExternalFileSchema = z.object({ url: z.string().describe("HTTPS URL to the externally hosted file.") }).describe("External file reference.");
|
|
22
|
+
const NotionQueryDataSource_ExternalFileSchema = z.object({ url: z.string().describe("HTTPS URL to the externally hosted file.").nullable() }).describe("External file reference.");
|
|
23
23
|
const NotionQueryDataSource_CustomEmojiSchema = z.object({
|
|
24
|
-
id: z.string().describe("Unique identifier of the custom emoji."),
|
|
25
|
-
url: z.string().describe("HTTPS URL to the custom emoji image."),
|
|
26
|
-
name: z.string().describe("Display name of the custom emoji.")
|
|
24
|
+
id: z.string().describe("Unique identifier of the custom emoji.").nullable(),
|
|
25
|
+
url: z.string().describe("HTTPS URL to the custom emoji image.").nullable(),
|
|
26
|
+
name: z.string().describe("Display name of the custom emoji.").nullable()
|
|
27
27
|
}).describe("Custom emoji object.");
|
|
28
28
|
const NotionQueryDataSource_PageIconSchema = z.object({
|
|
29
29
|
file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),
|
|
@@ -32,14 +32,14 @@ const NotionQueryDataSource_PageIconSchema = z.object({
|
|
|
32
32
|
"external",
|
|
33
33
|
"file",
|
|
34
34
|
"custom_emoji"
|
|
35
|
-
]).describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'."),
|
|
35
|
+
]).describe("Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.").nullable(),
|
|
36
36
|
emoji: z.string().describe("Emoji character (only present when type is 'emoji').").nullable().optional(),
|
|
37
37
|
external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),
|
|
38
38
|
custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional()
|
|
39
39
|
}).describe("Page icon, which can be an emoji, external file, or uploaded file.");
|
|
40
40
|
const NotionQueryDataSource_PageCoverSchema = z.object({
|
|
41
41
|
file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),
|
|
42
|
-
type: z.enum(["external", "file"]).describe("Type of cover: 'external' or 'file'."),
|
|
42
|
+
type: z.enum(["external", "file"]).describe("Type of cover: 'external' or 'file'.").nullable(),
|
|
43
43
|
external: NotionQueryDataSource_ExternalFileSchema.nullable().optional()
|
|
44
44
|
}).describe("Page cover image, which can be an external file or Notion-hosted file.");
|
|
45
45
|
const NotionQueryDataSource_PageParentSchema = z.object({
|
|
@@ -48,22 +48,22 @@ const NotionQueryDataSource_PageParentSchema = z.object({
|
|
|
48
48
|
"database_id",
|
|
49
49
|
"page_id",
|
|
50
50
|
"workspace"
|
|
51
|
-
]).describe("Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'."),
|
|
51
|
+
]).describe("Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'.").nullable(),
|
|
52
52
|
page_id: z.string().describe("UUID of the parent page (only present when type is 'page_id').").nullable().optional(),
|
|
53
53
|
workspace: z.boolean().describe("Always true when type is 'workspace'.").nullable().optional(),
|
|
54
54
|
database_id: z.string().describe("UUID of the parent database (only present when type is 'database_id').").nullable().optional(),
|
|
55
55
|
data_source_id: z.string().describe("UUID of the parent data source (only present when type is 'data_source_id').").nullable().optional()
|
|
56
56
|
}).describe("Information about the page's parent.");
|
|
57
57
|
const NotionQueryDataSource_BotOwnerWorkspaceSchema = z.object({
|
|
58
|
-
type: z.string(),
|
|
59
|
-
workspace: z.boolean()
|
|
58
|
+
type: z.string().nullable(),
|
|
59
|
+
workspace: z.boolean().nullable()
|
|
60
60
|
}).describe("Bot owner when owned by a workspace.");
|
|
61
61
|
const NotionQueryDataSource_BotOwnerUserRefSchema = z.object({
|
|
62
|
-
id: z.string().describe("User ID of the bot owner."),
|
|
63
|
-
object: z.string().describe("Always 'user'.")
|
|
62
|
+
id: z.string().describe("User ID of the bot owner.").nullable(),
|
|
63
|
+
object: z.string().describe("Always 'user'.").nullable()
|
|
64
64
|
}).describe("Simplified user reference for bot owner to avoid circular reference.");
|
|
65
65
|
const NotionQueryDataSource_BotOwnerUserSchema = z.object({
|
|
66
|
-
type: z.string(),
|
|
66
|
+
type: z.string().nullable(),
|
|
67
67
|
user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable()
|
|
68
68
|
}).describe("Bot owner when owned by a user.");
|
|
69
69
|
const NotionQueryDataSource_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
|
|
@@ -75,20 +75,20 @@ const NotionQueryDataSource_BotDetailsSchema = z.object({
|
|
|
75
75
|
}).describe("Bot-specific details when user type is 'bot'.");
|
|
76
76
|
const NotionQueryDataSource_PersonDetailsSchema = z.object({ email: z.string().describe("Email address of the person.").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
|
|
77
77
|
const NotionQueryDataSource_PartialUserSchema = z.object({
|
|
78
|
-
id: z.string().describe("Unique identifier (UUID) of the user."),
|
|
78
|
+
id: z.string().describe("Unique identifier (UUID) of the user.").nullable(),
|
|
79
79
|
bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),
|
|
80
80
|
name: z.string().describe("Display name of the user in Notion.").nullable().optional(),
|
|
81
81
|
type: z.enum(["person", "bot"]).describe("Type of user, either 'person' or 'bot'.").nullable().optional(),
|
|
82
|
-
object: z.string().describe("Always 'user'."),
|
|
82
|
+
object: z.string().describe("Always 'user'.").nullable(),
|
|
83
83
|
person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),
|
|
84
84
|
avatar_url: z.string().describe("URL of the user's avatar image.").nullable().optional()
|
|
85
85
|
}).describe("Partial user object representing a Notion user.");
|
|
86
86
|
const NotionQueryDataSource_PageSchema = z.object({
|
|
87
|
-
id: z.string().describe("Unique identifier (UUID) of the page."),
|
|
87
|
+
id: z.string().describe("Unique identifier (UUID) of the page.").nullable(),
|
|
88
88
|
url: z.string().describe("The URL of the Notion page.").nullable().optional(),
|
|
89
89
|
icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),
|
|
90
90
|
cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),
|
|
91
|
-
object: z.string().describe("Always 'page'."),
|
|
91
|
+
object: z.string().describe("Always 'page'.").nullable(),
|
|
92
92
|
parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),
|
|
93
93
|
archived: z.boolean().describe("Whether the page is archived.").nullable().optional(),
|
|
94
94
|
in_trash: z.boolean().describe("Whether the page has been moved to trash.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-data-source.mjs","names":[],"sources":["../../src/actions/query-data-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDataSourceInput: z.ZodTypeAny = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"ID of the data source property to sort by\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).describe(\"Sort by a data source property.\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"Timestamp field to sort by: 'created_time' or 'last_edited_time'\"),\n}).describe(\"Sort by entry timestamp.\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for property fields or TimestampSort for creation/edit times.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filter object to limit returned entries. Supports single-property filters or compound filters using 'and'/'or'.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1-100). Defaults to 100 if omitted.\").optional(),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page.\").optional(),\n data_source_id: z.string().describe(\"UUID of the Notion data source to query (with or without hyphens). URI prefixes like 'collection://' are automatically stripped.\"),\n filter_properties: z.array(z.string()).describe(\"List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.\").optional(),\n}).describe(\"Request model for querying a Notion data source.\");\nconst NotionQueryDataSource_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file reference.\");\nconst NotionQueryDataSource_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\"),\n}).describe(\"External file reference.\");\nconst NotionQueryDataSource_CustomEmojiSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object.\");\nconst NotionQueryDataSource_PageIconSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"emoji\", \"external\", \"file\", \"custom_emoji\"]).describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\"),\n emoji: z.string().describe(\"Emoji character (only present when type is 'emoji').\").nullable().optional(),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, which can be an emoji, external file, or uploaded file.\");\nconst NotionQueryDataSource_PageCoverSchema: z.ZodTypeAny = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"external\", \"file\"]).describe(\"Type of cover: 'external' or 'file'.\"),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n}).describe(\"Page cover image, which can be an external file or Notion-hosted file.\");\nconst NotionQueryDataSource_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"data_source_id\", \"database_id\", \"page_id\", \"workspace\"]).describe(\"Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'.\"),\n page_id: z.string().describe(\"UUID of the parent page (only present when type is 'page_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n database_id: z.string().describe(\"UUID of the parent database (only present when type is 'database_id').\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source (only present when type is 'data_source_id').\").nullable().optional(),\n}).describe(\"Information about the page's parent.\");\nconst NotionQueryDataSource_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionQueryDataSource_BotOwnerUserRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User ID of the bot owner.\"),\n object: z.string().describe(\"Always 'user'.\"),\n}).describe(\"Simplified user reference for bot owner to avoid circular reference.\");\nconst NotionQueryDataSource_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionQueryDataSource_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionQueryDataSource_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionQueryDataSource_BotOwnerWorkspaceSchema, NotionQueryDataSource_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionQueryDataSource_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionQueryDataSource_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionQueryDataSource_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\"),\n bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user, either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\"),\n person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDataSource_PageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the page.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),\n cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\"),\n parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page has been moved to trash.\").nullable().optional(),\n created_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page, determined by the parent data source's schema. Keys are property names; values are PropertyValue objects with id, type, and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly accessible URL if the page has been published to the web; otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable().optional(),\n}).describe(\"Page object contained in the data source.\");\nexport const NotionQueryDataSourceOutput: z.ZodTypeAny = z.object({\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(NotionQueryDataSource_PageSchema).describe(\"Array of page objects contained in the data source, filtered and ordered according to the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond this response. If true, use next_cursor to retrieve the next page.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor value for pagination. Use this value in the next request to retrieve additional results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for querying a Notion data source.\");\n\nexport const notionQueryDataSource = action(\"NOTION_QUERY_DATA_SOURCE\", {\n slug: \"notion-query-data-source\",\n name: \"Query data source\",\n description: \"Tool to query a Notion data source. Use when you need to retrieve pages or child data sources with filters, sorts, and pagination. Make paginated requests using cursors and optional property filters for efficient data retrieval.\",\n input: NotionQueryDataSourceInput,\n output: NotionQueryDataSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;EACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACzE,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnG,CAAC,CAAC,CAAC,SAAS,iCAAiC,GAAG,EAAE,OAAO;EACvD,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACjG,WAAW,EAAE,KAAK,CAAC,gBAAgB,kBAAkB,CAAC,CAAC,CAAC,SAAS,kEAAkE;CACrI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC3L,QAAQ,EAAE,OAAO,EAAE,OAAO,GAA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wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7L,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"query-data-source.mjs","names":[],"sources":["../../src/actions/query-data-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDataSourceInput = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"ID of the data source property to sort by\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).describe(\"Sort by a data source property.\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"Timestamp field to sort by: 'created_time' or 'last_edited_time'\"),\n}).describe(\"Sort by entry timestamp.\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for property fields or TimestampSort for creation/edit times.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filter object to limit returned entries. Supports single-property filters or compound filters using 'and'/'or'.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1-100). Defaults to 100 if omitted.\").optional(),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page.\").optional(),\n data_source_id: z.string().describe(\"UUID of the Notion data source to query (with or without hyphens). URI prefixes like 'collection://' are automatically stripped.\"),\n filter_properties: z.array(z.string()).describe(\"List of property IDs to include in each returned item; maps to the `filter_properties[]` query parameter.\").optional(),\n}).describe(\"Request model for querying a Notion data source.\");\nconst NotionQueryDataSource_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file reference.\");\nconst NotionQueryDataSource_ExternalFileSchema = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionQueryDataSource_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier of the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the custom emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji object.\");\nconst NotionQueryDataSource_PageIconSchema = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"emoji\", \"external\", \"file\", \"custom_emoji\"]).describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character (only present when type is 'emoji').\").nullable().optional(),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n custom_emoji: NotionQueryDataSource_CustomEmojiSchema.nullable().optional(),\n}).describe(\"Page icon, which can be an emoji, external file, or uploaded file.\");\nconst NotionQueryDataSource_PageCoverSchema = z.object({\n file: NotionQueryDataSource_NotionHostedFileSchema.nullable().optional(),\n type: z.enum([\"external\", \"file\"]).describe(\"Type of cover: 'external' or 'file'.\").nullable(),\n external: NotionQueryDataSource_ExternalFileSchema.nullable().optional(),\n}).describe(\"Page cover image, which can be an external file or Notion-hosted file.\");\nconst NotionQueryDataSource_PageParentSchema = z.object({\n type: z.enum([\"data_source_id\", \"database_id\", \"page_id\", \"workspace\"]).describe(\"Type of parent: 'data_source_id', 'database_id', 'page_id', or 'workspace'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (only present when type is 'page_id').\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n database_id: z.string().describe(\"UUID of the parent database (only present when type is 'database_id').\").nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the parent data source (only present when type is 'data_source_id').\").nullable().optional(),\n}).describe(\"Information about the page's parent.\");\nconst NotionQueryDataSource_BotOwnerWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionQueryDataSource_BotOwnerUserRefSchema = z.object({\n id: z.string().describe(\"User ID of the bot owner.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).describe(\"Simplified user reference for bot owner to avoid circular reference.\");\nconst NotionQueryDataSource_BotOwnerUserSchema = z.object({\n type: z.string().nullable(),\n user: NotionQueryDataSource_BotOwnerUserRefSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionQueryDataSource_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionQueryDataSource_BotDetailsSchema = z.object({\n owner: z.union([NotionQueryDataSource_BotOwnerWorkspaceSchema, NotionQueryDataSource_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionQueryDataSource_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionQueryDataSource_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionQueryDataSource_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n bot: NotionQueryDataSource_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user in Notion.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user, either 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionQueryDataSource_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDataSource_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the page.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: NotionQueryDataSource_PageIconSchema.nullable().optional(),\n cover: NotionQueryDataSource_PageCoverSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: NotionQueryDataSource_PageParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page has been moved to trash.\").nullable().optional(),\n created_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page, determined by the parent data source's schema. Keys are property names; values are PropertyValue objects with id, type, and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly accessible URL if the page has been published to the web; otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDataSource_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable().optional(),\n}).describe(\"Page object contained in the data source.\");\nexport const NotionQueryDataSourceOutput = z.object({\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(NotionQueryDataSource_PageSchema).describe(\"Array of page objects contained in the data source, filtered and ordered according to the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond this response. If true, use next_cursor to retrieve the next page.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor value for pagination. Use this value in the next request to retrieve additional results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for querying a Notion data source.\");\n\nexport const notionQueryDataSource = action(\"NOTION_QUERY_DATA_SOURCE\", {\n slug: \"notion-query-data-source\",\n name: \"Query data source\",\n description: \"Tool to query a Notion data source. Use when you need to retrieve pages or child data sources with filters, sorts, and pagination. Make paginated requests using cursors and optional property filters for efficient data retrieval.\",\n input: NotionQueryDataSourceInput,\n output: NotionQueryDataSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;EACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACzE,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnG,CAAC,CAAC,CAAC,SAAS,iCAAiC,GAAG,EAAE,OAAO;EACvD,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACjG,WAAW,EAAE,KAAK,CAAC,gBAAgB,kBAAkB,CAAC,CAAC,CAAC,SAAS,kEAAkE;CACrI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC3L,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC/K,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACxH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACvH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CACtK,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,kDAAkD;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gC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7L,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -16,66 +16,66 @@ const NotionQueryDatabaseWithFilterInput = zod.z.object({
|
|
|
16
16
|
composio_execution_message: zod.z.string().describe("Internal message about any automatic conversions made during execution.").optional()
|
|
17
17
|
});
|
|
18
18
|
const NotionQueryDatabaseWithFilter_EmojiIconSchema = zod.z.object({
|
|
19
|
-
type: zod.z.string().describe("Always set to 'emoji'."),
|
|
20
|
-
emoji: zod.z.string().describe("The emoji character.")
|
|
19
|
+
type: zod.z.string().describe("Always set to 'emoji'.").nullable(),
|
|
20
|
+
emoji: zod.z.string().describe("The emoji character.").nullable()
|
|
21
21
|
}).describe("Emoji icon.");
|
|
22
|
-
const NotionQueryDatabaseWithFilter_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to the externally hosted file.") }).describe("External file reference.");
|
|
22
|
+
const NotionQueryDatabaseWithFilter_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to the externally hosted file.").nullable() }).describe("External file reference.");
|
|
23
23
|
const NotionQueryDatabaseWithFilter_ExternalFileIconSchema = zod.z.object({
|
|
24
|
-
type: zod.z.string().describe("Set to 'external' for externally hosted files."),
|
|
24
|
+
type: zod.z.string().describe("Set to 'external' for externally hosted files.").nullable(),
|
|
25
25
|
external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable()
|
|
26
26
|
}).describe("External file icon.");
|
|
27
27
|
const NotionQueryDatabaseWithFilter_NotionFileSchema = zod.z.object({
|
|
28
|
-
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
29
|
-
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
28
|
+
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
29
|
+
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
30
30
|
}).describe("Notion-hosted file reference.");
|
|
31
31
|
const NotionQueryDatabaseWithFilter_NotionFileIconSchema = zod.z.object({
|
|
32
32
|
file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),
|
|
33
|
-
type: zod.z.string().describe("Set to 'file' for Notion-hosted files.")
|
|
33
|
+
type: zod.z.string().describe("Set to 'file' for Notion-hosted files.").nullable()
|
|
34
34
|
}).describe("Notion-hosted file icon.");
|
|
35
35
|
const NotionQueryDatabaseWithFilter_CustomEmojiSchema = zod.z.object({
|
|
36
|
-
id: zod.z.string().describe("Unique identifier for the custom emoji."),
|
|
37
|
-
url: zod.z.string().describe("Public URL where the custom emoji image is hosted."),
|
|
38
|
-
name: zod.z.string().describe("Name of the custom emoji.")
|
|
36
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
37
|
+
url: zod.z.string().describe("Public URL where the custom emoji image is hosted.").nullable(),
|
|
38
|
+
name: zod.z.string().describe("Name of the custom emoji.").nullable()
|
|
39
39
|
}).describe("Custom emoji details.");
|
|
40
40
|
const NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = zod.z.object({
|
|
41
|
-
type: zod.z.string().describe("Set to 'custom_emoji' for custom emojis."),
|
|
41
|
+
type: zod.z.string().describe("Set to 'custom_emoji' for custom emojis.").nullable(),
|
|
42
42
|
custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable()
|
|
43
43
|
}).describe("Custom emoji icon.");
|
|
44
44
|
const NotionQueryDatabaseWithFilter_ExternalCoverSchema = zod.z.object({
|
|
45
|
-
type: zod.z.string().describe("Set to 'external' for externally hosted files."),
|
|
45
|
+
type: zod.z.string().describe("Set to 'external' for externally hosted files.").nullable(),
|
|
46
46
|
external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable()
|
|
47
47
|
}).describe("External cover image.");
|
|
48
48
|
const NotionQueryDatabaseWithFilter_NotionFileCoverSchema = zod.z.object({
|
|
49
49
|
file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),
|
|
50
|
-
type: zod.z.string().describe("Set to 'file' for Notion-hosted files.")
|
|
50
|
+
type: zod.z.string().describe("Set to 'file' for Notion-hosted files.").nullable()
|
|
51
51
|
}).describe("Notion-hosted cover image.");
|
|
52
52
|
const NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = zod.z.object({
|
|
53
|
-
type: zod.z.string().describe("Set to 'database_id' for database parents."),
|
|
54
|
-
database_id: zod.z.string().describe("UUIDv4 identifier of the parent database.")
|
|
53
|
+
type: zod.z.string().describe("Set to 'database_id' for database parents.").nullable(),
|
|
54
|
+
database_id: zod.z.string().describe("UUIDv4 identifier of the parent database.").nullable()
|
|
55
55
|
}).describe("Database parent.");
|
|
56
56
|
const NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = zod.z.object({
|
|
57
|
-
type: zod.z.string().describe("Set to 'data_source_id' for data source parents."),
|
|
58
|
-
database_id: zod.z.string().describe("UUIDv4 identifier of the parent database (convenience field)."),
|
|
59
|
-
data_source_id: zod.z.string().describe("UUIDv4 identifier of the parent data source.")
|
|
57
|
+
type: zod.z.string().describe("Set to 'data_source_id' for data source parents.").nullable(),
|
|
58
|
+
database_id: zod.z.string().describe("UUIDv4 identifier of the parent database (convenience field).").nullable(),
|
|
59
|
+
data_source_id: zod.z.string().describe("UUIDv4 identifier of the parent data source.").nullable()
|
|
60
60
|
}).describe("Data source parent.");
|
|
61
61
|
const NotionQueryDatabaseWithFilter_PageIdParentSchema = zod.z.object({
|
|
62
|
-
type: zod.z.string().describe("Set to 'page_id' for page parents."),
|
|
63
|
-
page_id: zod.z.string().describe("UUIDv4 identifier of the parent page.")
|
|
62
|
+
type: zod.z.string().describe("Set to 'page_id' for page parents.").nullable(),
|
|
63
|
+
page_id: zod.z.string().describe("UUIDv4 identifier of the parent page.").nullable()
|
|
64
64
|
}).describe("Page parent.");
|
|
65
65
|
const NotionQueryDatabaseWithFilter_WorkspaceParentSchema = zod.z.object({
|
|
66
|
-
type: zod.z.string().describe("Set to 'workspace' for workspace parents."),
|
|
67
|
-
workspace: zod.z.boolean().describe("Always set to true for workspace parents.")
|
|
66
|
+
type: zod.z.string().describe("Set to 'workspace' for workspace parents.").nullable(),
|
|
67
|
+
workspace: zod.z.boolean().describe("Always set to true for workspace parents.").nullable()
|
|
68
68
|
}).describe("Workspace parent.");
|
|
69
69
|
const NotionQueryDatabaseWithFilter_BlockIdParentSchema = zod.z.object({
|
|
70
|
-
type: zod.z.string().describe("Set to 'block_id' for block parents."),
|
|
71
|
-
block_id: zod.z.string().describe("UUIDv4 identifier of the parent block.")
|
|
70
|
+
type: zod.z.string().describe("Set to 'block_id' for block parents.").nullable(),
|
|
71
|
+
block_id: zod.z.string().describe("UUIDv4 identifier of the parent block.").nullable()
|
|
72
72
|
}).describe("Block parent.");
|
|
73
73
|
const NotionQueryDatabaseWithFilter_PartialUserSchema = zod.z.object({
|
|
74
|
-
id: zod.z.string().describe("Unique identifier for the user (UUID format)."),
|
|
75
|
-
object: zod.z.string().describe("Always set to 'user'.")
|
|
74
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID format).").nullable(),
|
|
75
|
+
object: zod.z.string().describe("Always set to 'user'.").nullable()
|
|
76
76
|
}).describe("Partial user object representing a Notion user.");
|
|
77
77
|
const NotionQueryDatabaseWithFilter_PageSchema = zod.z.object({
|
|
78
|
-
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
78
|
+
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format).").nullable(),
|
|
79
79
|
url: zod.z.string().describe("The Notion URL of the page.").nullable().optional(),
|
|
80
80
|
icon: zod.z.union([
|
|
81
81
|
NotionQueryDatabaseWithFilter_EmojiIconSchema,
|
|
@@ -84,7 +84,7 @@ const NotionQueryDatabaseWithFilter_PageSchema = zod.z.object({
|
|
|
84
84
|
NotionQueryDatabaseWithFilter_CustomEmojiIconSchema
|
|
85
85
|
]).nullable().optional(),
|
|
86
86
|
cover: zod.z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),
|
|
87
|
-
object: zod.z.string().describe("Always set to 'page'."),
|
|
87
|
+
object: zod.z.string().describe("Always set to 'page'.").nullable(),
|
|
88
88
|
parent: zod.z.union([
|
|
89
89
|
NotionQueryDatabaseWithFilter_DatabaseIdParentSchema,
|
|
90
90
|
NotionQueryDatabaseWithFilter_DataSourceIdParentSchema,
|
|
@@ -102,26 +102,26 @@ const NotionQueryDatabaseWithFilter_PageSchema = zod.z.object({
|
|
|
102
102
|
last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the page was last edited.").nullable().optional()
|
|
103
103
|
}).describe("Notion page object.");
|
|
104
104
|
const NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = zod.z.object({
|
|
105
|
-
bold: zod.z.boolean().describe("Whether the text is bold."),
|
|
106
|
-
code: zod.z.boolean().describe("Whether the text is formatted as code."),
|
|
107
|
-
color: zod.z.string().describe("Text color, can be 'default', 'blue', 'green', 'red', or background variants."),
|
|
108
|
-
italic: zod.z.boolean().describe("Whether the text is italic."),
|
|
109
|
-
underline: zod.z.boolean().describe("Whether the text is underlined."),
|
|
110
|
-
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
|
|
105
|
+
bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
|
|
106
|
+
code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
|
|
107
|
+
color: zod.z.string().describe("Text color, can be 'default', 'blue', 'green', 'red', or background variants.").nullable(),
|
|
108
|
+
italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
|
|
109
|
+
underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
110
|
+
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
111
111
|
}).describe("Styling configuration for rich text.");
|
|
112
112
|
const NotionQueryDatabaseWithFilter_RichTextSchema = zod.z.object({
|
|
113
113
|
href: zod.z.string().describe("URL for links or Notion mentions, null if not a link.").nullable().optional(),
|
|
114
|
-
type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
|
|
115
|
-
plain_text: zod.z.string().describe("Unformatted text content."),
|
|
114
|
+
type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
|
|
115
|
+
plain_text: zod.z.string().describe("Unformatted text content.").nullable(),
|
|
116
116
|
annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable()
|
|
117
117
|
}).describe("Rich text object for Notion text content.");
|
|
118
118
|
const NotionQueryDatabaseWithFilter_DataSourceSchema = zod.z.object({
|
|
119
|
-
id: zod.z.string().describe("Unique identifier of the data source."),
|
|
120
|
-
name: zod.z.string().describe("Name of the data source.")
|
|
119
|
+
id: zod.z.string().describe("Unique identifier of the data source.").nullable(),
|
|
120
|
+
name: zod.z.string().describe("Name of the data source.").nullable()
|
|
121
121
|
}).describe("Data source in a database.");
|
|
122
122
|
const NotionQueryDatabaseWithFilter_DatabaseSchema = zod.z.object({
|
|
123
|
-
id: zod.z.string().describe("Unique identifier of the database (UUID format)."),
|
|
124
|
-
url: zod.z.string().describe("The Notion URL of the database."),
|
|
123
|
+
id: zod.z.string().describe("Unique identifier of the database (UUID format).").nullable(),
|
|
124
|
+
url: zod.z.string().describe("The Notion URL of the database.").nullable(),
|
|
125
125
|
icon: zod.z.union([
|
|
126
126
|
NotionQueryDatabaseWithFilter_EmojiIconSchema,
|
|
127
127
|
NotionQueryDatabaseWithFilter_ExternalFileIconSchema,
|
|
@@ -130,7 +130,7 @@ const NotionQueryDatabaseWithFilter_DatabaseSchema = zod.z.object({
|
|
|
130
130
|
]).nullable().optional(),
|
|
131
131
|
cover: zod.z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),
|
|
132
132
|
title: zod.z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe("Database name as displayed in Notion, represented as an array of rich text objects."),
|
|
133
|
-
object: zod.z.string().describe("Always set to 'database'."),
|
|
133
|
+
object: zod.z.string().describe("Always set to 'database'.").nullable(),
|
|
134
134
|
parent: zod.z.union([
|
|
135
135
|
NotionQueryDatabaseWithFilter_DatabaseIdParentSchema,
|
|
136
136
|
NotionQueryDatabaseWithFilter_DataSourceIdParentSchema,
|
|
@@ -138,23 +138,23 @@ const NotionQueryDatabaseWithFilter_DatabaseSchema = zod.z.object({
|
|
|
138
138
|
NotionQueryDatabaseWithFilter_WorkspaceParentSchema,
|
|
139
139
|
NotionQueryDatabaseWithFilter_BlockIdParentSchema
|
|
140
140
|
]),
|
|
141
|
-
archived: zod.z.boolean().describe("Whether the database is archived."),
|
|
142
|
-
in_trash: zod.z.boolean().describe("Whether the database is in trash."),
|
|
143
|
-
is_inline: zod.z.boolean().describe("Whether the database is displayed inline (true) or as a full page (false)."),
|
|
141
|
+
archived: zod.z.boolean().describe("Whether the database is archived.").nullable(),
|
|
142
|
+
in_trash: zod.z.boolean().describe("Whether the database is in trash.").nullable(),
|
|
143
|
+
is_inline: zod.z.boolean().describe("Whether the database is displayed inline (true) or as a full page (false).").nullable(),
|
|
144
144
|
created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),
|
|
145
145
|
public_url: zod.z.string().describe("The public URL of the database if it has been published, otherwise null.").nullable().optional(),
|
|
146
146
|
description: zod.z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe("Database description as an array of rich text objects.").nullable().optional(),
|
|
147
|
-
created_time: zod.z.string().describe("ISO 8601 timestamp of when the database was created."),
|
|
147
|
+
created_time: zod.z.string().describe("ISO 8601 timestamp of when the database was created.").nullable(),
|
|
148
148
|
data_sources: zod.z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe("List of child data sources in the database."),
|
|
149
149
|
last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),
|
|
150
|
-
last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.")
|
|
150
|
+
last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.").nullable()
|
|
151
151
|
}).describe("Notion database object.");
|
|
152
152
|
const NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = zod.z.object({}).describe("Type-specific pagination metadata for page_or_database list responses.\nFor database query responses, this is always an empty object per the Notion API spec.");
|
|
153
153
|
const NotionQueryDatabaseWithFilterOutput = zod.z.object({
|
|
154
|
-
type: zod.z.string().describe("Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses."),
|
|
155
|
-
object: zod.z.string().describe("Always set to 'list' for paginated responses."),
|
|
154
|
+
type: zod.z.string().describe("Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.").nullable(),
|
|
155
|
+
object: zod.z.string().describe("Always set to 'list' for paginated responses.").nullable(),
|
|
156
156
|
results: zod.z.array(zod.z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe("Array of page and/or database objects matching the query criteria."),
|
|
157
|
-
has_more: zod.z.boolean().describe("Whether there are more results available beyond the current page. Returns false when the response includes the end of the list, otherwise true."),
|
|
157
|
+
has_more: zod.z.boolean().describe("Whether there are more results available beyond the current page. Returns false when the response includes the end of the list, otherwise true.").nullable(),
|
|
158
158
|
next_cursor: zod.z.string().describe("Pagination cursor for retrieving the next page of results. Only present when has_more is true. Pass this value as start_cursor in the next request.").nullable().optional(),
|
|
159
159
|
page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),
|
|
160
160
|
composio_execution_message: zod.z.string().describe("Message about any automatic conversions made during request processing.").nullable().optional()
|