@keystrokehq/notion 0.1.4 → 0.1.5
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +1 -0
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +10 -38
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +10 -38
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +1 -0
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +1 -0
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +3 -104
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +3 -104
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +1 -0
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +1 -0
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +3 -59
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +3 -59
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +1 -0
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +1 -0
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +3 -219
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +3 -219
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +1 -0
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +1 -0
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +3 -46
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +3 -46
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +1 -0
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +1 -0
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +3 -110
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +3 -110
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +1 -0
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +1 -0
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +3 -194
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +3 -194
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +1 -0
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +1 -0
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +3 -16
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +3 -16
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +1 -0
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +1 -0
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +10 -34
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +10 -34
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs +1 -0
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +1 -0
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +4 -24
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +4 -24
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +1 -0
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +1 -0
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +3 -19
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +3 -19
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +1 -0
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +1 -0
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +3 -19
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +3 -19
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +1 -0
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +1 -0
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +31 -43
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +31 -43
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +1 -0
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +1 -0
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +3 -17
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +3 -17
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +1 -0
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +1 -0
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +3 -20
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +3 -20
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +1 -0
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +1 -0
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +3 -17
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +3 -17
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +1 -0
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +1 -0
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +31 -43
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +31 -43
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +1 -0
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +1 -0
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +3 -18
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +3 -18
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +1 -0
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +1 -0
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +7 -24
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +7 -24
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +1 -0
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +1 -0
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +3 -15
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +3 -15
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +1 -0
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +1 -0
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +3 -15
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +3 -15
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +1 -0
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +1 -0
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +3 -15
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +3 -15
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +1 -0
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +1 -0
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +3 -16
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +3 -16
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +1 -0
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs +1 -0
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +3 -18
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +3 -18
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs +1 -0
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +1 -0
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +11 -43
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +11 -43
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +1 -0
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -0
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +3 -18
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +3 -18
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -0
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +1 -0
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +3 -17
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +3 -17
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +1 -0
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +1 -0
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +3 -16
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +3 -16
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +1 -0
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -16
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -16
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +1 -0
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +3 -24
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +3 -24
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +1 -0
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +1 -0
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +3 -28
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +3 -28
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +1 -0
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +1 -0
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +3 -28
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +3 -28
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +1 -0
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +1 -0
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +3 -22
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +3 -22
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +1 -0
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +1 -0
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +3 -654
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +3 -654
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +1 -0
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs +1 -0
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +3 -15
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +3 -15
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs +1 -0
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +1 -0
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +3 -16
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +3 -16
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +1 -0
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +1 -0
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +3 -15
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +3 -15
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +1 -0
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +1 -0
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +3 -15
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +3 -15
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +1 -0
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +1 -0
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +7 -26
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +7 -26
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +1 -0
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +1 -0
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +3 -22
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +3 -22
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +1 -0
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +1 -0
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +3 -19
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +3 -19
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +1 -0
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +1 -0
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +3 -19
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +3 -19
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +1 -0
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +1 -0
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +4 -25
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +4 -25
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +1 -0
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +1 -0
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +4 -27
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +4 -27
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +1 -0
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +1 -0
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +3 -136
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +3 -136
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +1 -0
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database-with-filter.mjs","names":[],"sources":["../../src/actions/query-database-with-filter.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDatabaseWithFilterInput = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead.\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).passthrough().describe(\"Sort by a database property name or ID (NOT for system timestamps).\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.\"),\n}).passthrough().describe(\"Sort by a system timestamp field (created or last edited time).\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\\\"and\\\": [{\\\"property\\\": \\\"Name\\\", \\\"title\\\": {...}}, {\\\"property\\\": \\\"Description\\\", \\\"rich_text\\\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\\\"created_time\\\": {\\\"on_or_after\\\": \\\"2024-01-01\\\"}} - auto-transformed to correct API format. Filter structure for database properties: {\\\"property\\\": \\\"<property_name>\\\", \\\"<filter_type>\\\": {\\\"<condition>\\\": \\\"<value>\\\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\\\"rollup\\\": {\\\"contains\\\": \\\"value\\\"}}. Instead use one of: (1) {\\\"rollup\\\": {\\\"any\\\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\\\"rollup\\\": {\\\"every\\\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\\\"rollup\\\": {\\\"none\\\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\\\"rollup\\\": {\\\"number\\\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\\\"rollup\\\": {\\\"date\\\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\\\"and\\\": [<filter1>, <filter2>]} or {\\\"or\\\": [<filter1>, <filter2>]}.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1–100). Defaults to 100 if omitted.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration.\"),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page. Use the exact cursor value returned by Notion.\").optional(),\n composio_execution_message: z.string().describe(\"Internal message about any automatic conversions made during execution.\").optional(),\n});\nconst NotionQueryDatabaseWithFilter_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always set to 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough().describe(\"Emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileSchema = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileIconSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).passthrough().describe(\"External file icon.\");\nconst NotionQueryDatabaseWithFilter_NotionFileSchema = 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}).passthrough().describe(\"Notion-hosted file reference.\");\nconst NotionQueryDatabaseWithFilter_NotionFileIconSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file icon.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL where the custom emoji image is hosted.\").nullable(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Set to 'custom_emoji' for custom emojis.\").nullable(),\n custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).passthrough().describe(\"External cover image.\");\nconst NotionQueryDatabaseWithFilter_NotionFileCoverSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).passthrough().describe(\"Notion-hosted cover image.\");\nconst NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'database_id' for database parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database.\").nullable(),\n}).passthrough().describe(\"Database parent.\");\nconst NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'data_source_id' for data source parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (convenience field).\").nullable(),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source.\").nullable(),\n}).passthrough().describe(\"Data source parent.\");\nconst NotionQueryDatabaseWithFilter_PageIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page.\").nullable(),\n}).passthrough().describe(\"Page parent.\");\nconst NotionQueryDatabaseWithFilter_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Set to 'workspace' for workspace parents.\").nullable(),\n workspace: z.boolean().describe(\"Always set to true for workspace parents.\").nullable(),\n}).passthrough().describe(\"Workspace parent.\");\nconst NotionQueryDatabaseWithFilter_BlockIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block.\").nullable(),\n}).passthrough().describe(\"Block parent.\");\nconst NotionQueryDatabaseWithFilter_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always set to 'user'.\").nullable(),\n}).passthrough().describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDatabaseWithFilter_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always set to 'page'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the page was last edited.\").nullable().optional(),\n}).passthrough().describe(\"Notion page object.\");\nconst NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = 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 color, can be 'default', 'blue', 'green', 'red', or background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling configuration for rich text.\");\nconst NotionQueryDatabaseWithFilter_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, null if not a link.\").nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Unformatted text content.\").nullable(),\n annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for Notion text content.\");\nconst NotionQueryDatabaseWithFilter_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier of the data source.\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).passthrough().describe(\"Data source in a database.\");\nconst NotionQueryDatabaseWithFilter_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database (UUID format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database name as displayed in Notion, represented as an array of rich text objects.\"),\n object: z.string().describe(\"Always set to 'database'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline (true) or as a full page (false).\").nullable(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n public_url: z.string().describe(\"The public URL of the database if it has been published, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe(\"List of child data sources in the database.\"),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough().describe(\"Notion database object.\");\nconst NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = z.record(z.string(), z.unknown()).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.\");\nexport const NotionQueryDatabaseWithFilterOutput = z.object({\n type: z.string().describe(\"Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.\").nullable(),\n object: z.string().describe(\"Always set to 'list' for paginated responses.\").nullable(),\n results: z.array(z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe(\"Array of page and/or database objects matching the query criteria.\"),\n has_more: 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(),\n next_cursor: 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(),\n page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),\n composio_execution_message: z.string().describe(\"Message about any automatic conversions made during request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying a Notion database.\");\n\nexport const notionQueryDatabaseWithFilter = action(\"NOTION_QUERY_DATABASE_WITH_FILTER\", {\n slug: \"notion-query-database-with-filter\",\n name: \"Query database with filter\",\n description: \"Tool to query a Notion database with server-side filtering, sorting, and pagination. Use when you need to retrieve a subset of rows by property, date, status, or other conditions.\",\n input: NotionQueryDatabaseWithFilterInput,\n output: NotionQueryDatabaseWithFilterOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;EACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC9K,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE,GAAG,EAAE,OAAO;EACzG,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACjG,WAAW,EAAE,KAAK,CAAC,gBAAgB,kBAAkB,CAAC,CAAC,CAAC,SAAS,gIAAgI;CACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yiBAAyiB,CAAC,CAAC,SAAS;C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,+JAA+J;AAW7Q,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfiD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EAClJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,0CAA0C,4CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;EACjM,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;EAC3L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5M,kBAAkB,2DAA2D,SAAS;EACtF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"query-database-with-filter.mjs","names":[],"sources":["../../src/actions/query-database-with-filter.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionQueryDatabaseWithFilterInput = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead.\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).passthrough().describe(\"Sort by a database property name or ID (NOT for system timestamps).\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.\"),\n}).passthrough().describe(\"Sort by a system timestamp field (created or last edited time).\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\\\"and\\\": [{\\\"property\\\": \\\"Name\\\", \\\"title\\\": {...}}, {\\\"property\\\": \\\"Description\\\", \\\"rich_text\\\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\\\"created_time\\\": {\\\"on_or_after\\\": \\\"2024-01-01\\\"}} - auto-transformed to correct API format. Filter structure for database properties: {\\\"property\\\": \\\"<property_name>\\\", \\\"<filter_type>\\\": {\\\"<condition>\\\": \\\"<value>\\\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\\\"rollup\\\": {\\\"contains\\\": \\\"value\\\"}}. Instead use one of: (1) {\\\"rollup\\\": {\\\"any\\\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\\\"rollup\\\": {\\\"every\\\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\\\"rollup\\\": {\\\"none\\\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\\\"rollup\\\": {\\\"number\\\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\\\"rollup\\\": {\\\"date\\\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\\\"and\\\": [<filter1>, <filter2>]} or {\\\"or\\\": [<filter1>, <filter2>]}.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1–100). Defaults to 100 if omitted.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration.\"),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page. Use the exact cursor value returned by Notion.\").optional(),\n composio_execution_message: z.string().describe(\"Internal message about any automatic conversions made during execution.\").optional(),\n});\nconst NotionQueryDatabaseWithFilter_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always set to 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough().describe(\"Emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileSchema = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileIconSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).passthrough().describe(\"External file icon.\");\nconst NotionQueryDatabaseWithFilter_NotionFileSchema = 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}).passthrough().describe(\"Notion-hosted file reference.\");\nconst NotionQueryDatabaseWithFilter_NotionFileIconSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file icon.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL where the custom emoji image is hosted.\").nullable(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Set to 'custom_emoji' for custom emojis.\").nullable(),\n custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).passthrough().describe(\"External cover image.\");\nconst NotionQueryDatabaseWithFilter_NotionFileCoverSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).passthrough().describe(\"Notion-hosted cover image.\");\nconst NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'database_id' for database parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database.\").nullable(),\n}).passthrough().describe(\"Database parent.\");\nconst NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'data_source_id' for data source parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (convenience field).\").nullable(),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source.\").nullable(),\n}).passthrough().describe(\"Data source parent.\");\nconst NotionQueryDatabaseWithFilter_PageIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page.\").nullable(),\n}).passthrough().describe(\"Page parent.\");\nconst NotionQueryDatabaseWithFilter_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Set to 'workspace' for workspace parents.\").nullable(),\n workspace: z.boolean().describe(\"Always set to true for workspace parents.\").nullable(),\n}).passthrough().describe(\"Workspace parent.\");\nconst NotionQueryDatabaseWithFilter_BlockIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block.\").nullable(),\n}).passthrough().describe(\"Block parent.\");\nconst NotionQueryDatabaseWithFilter_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always set to 'user'.\").nullable(),\n}).passthrough().describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDatabaseWithFilter_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always set to 'page'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the page was last edited.\").nullable().optional(),\n}).passthrough().describe(\"Notion page object.\");\nconst NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = 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 color, can be 'default', 'blue', 'green', 'red', or background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling configuration for rich text.\");\nconst NotionQueryDatabaseWithFilter_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, null if not a link.\").nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Unformatted text content.\").nullable(),\n annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for Notion text content.\");\nconst NotionQueryDatabaseWithFilter_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier of the data source.\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).passthrough().describe(\"Data source in a database.\");\nconst NotionQueryDatabaseWithFilter_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database (UUID format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database name as displayed in Notion, represented as an array of rich text objects.\"),\n object: z.string().describe(\"Always set to 'database'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline (true) or as a full page (false).\").nullable(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n public_url: z.string().describe(\"The public URL of the database if it has been published, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe(\"List of child data sources in the database.\"),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough().describe(\"Notion database object.\");\nconst NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = z.record(z.string(), z.unknown()).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.\");\nexport const NotionQueryDatabaseWithFilterOutput = z.object({\n type: z.string().describe(\"Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.\").nullable(),\n object: z.string().describe(\"Always set to 'list' for paginated responses.\").nullable(),\n results: z.array(z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe(\"Array of page and/or database objects matching the query criteria.\"),\n has_more: 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(),\n next_cursor: 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(),\n page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),\n composio_execution_message: z.string().describe(\"Message about any automatic conversions made during request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying a Notion database.\");\n\nexport const notionQueryDatabaseWithFilter: AppAction<\n typeof NotionQueryDatabaseWithFilterInput,\n typeof NotionQueryDatabaseWithFilterOutput,\n typeof notion.credential\n> = action(\"NOTION_QUERY_DATABASE_WITH_FILTER\", {\n slug: \"notion-query-database-with-filter\",\n name: \"Query database with filter\",\n description: \"Tool to query a Notion database with server-side filtering, sorting, and pagination. Use when you need to retrieve a subset of rows by property, date, status, or other conditions.\",\n input: NotionQueryDatabaseWithFilterInput,\n output: NotionQueryDatabaseWithFilterOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;EACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC9K,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE,GAAG,EAAE,OAAO;EACzG,WAAW,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACjG,WAAW,EAAE,KAAK,CAAC,gBAAgB,kBAAkB,CAAC,CAAC,CAAC,SAAS,gIAAgI;CACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yiBAAyiB,CAAC,CAAC,SAAS;CAC3pB,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE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9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnBiD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EAClJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,0CAA0C,4CAA4C,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;EACjM,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;EAC3L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5M,kBAAkB,2DAA2D,SAAS;EACtF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database.cjs","names":["z","action"],"sources":["../../src/actions/query-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDatabaseInput = z.object({\n sorts: z.array(z.object({\n ascending: z.boolean().describe(\"Sort direction: True for ascending (A→Z, oldest→newest), False for descending (Z→A, newest→oldest).\"),\n property_name: z.string().describe(\"The name of a database property/column to sort by, or a timestamp field. For database properties: Must match an EXISTING property name in the database EXACTLY (case-sensitive). For page timestamps: Use 'created_time' or 'last_edited_time' to sort by page creation/modification times. Common timestamp aliases are auto-detected (e.g., 'created time', 'creation time', '创建时间', 'last edited', etc.). IMPORTANT: If sorting by a database property (not a timestamp), the property name must exist in that specific database.\"),\n}).passthrough()).describe(\"List of sort rules to order the database query results. Each sort rule must specify: 'property_name' (name of database property or timestamp field) and 'ascending' (True/False). For database properties: names must match exactly (case-sensitive). For timestamps: use 'created_time' or 'last_edited_time' (case-insensitive). Multiple sorts are applied in the order specified.\").optional(),\n page_size: z.number().int().default(100).describe(\"Number of items (database rows/pages) to return per request. Valid range: 1-100. Default is 100. The API may return fewer items than requested if that's all that's available.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion DATABASE to query (32-character hex string, optionally with hyphens). Query parameters (e.g., ?v=viewid) from Notion URLs are automatically stripped. IMPORTANT: This must be a DATABASE ID, not a page ID. Pages and databases are different object types in Notion. A database is a collection/table that contains pages as rows. If you have a page ID, you cannot use it here. How to obtain a database ID: Use NOTION_SEARCH_NOTION_PAGE with filter_value='database' to list accessible databases, or find it in the Notion URL of a database view (the 32-char ID after the workspace name). Common error: If you receive 'validation_error' with message 'Provided ID is a page, not a database', you have passed a page ID instead of a database ID. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n start_cursor: z.string().describe(\"A pagination cursor for fetching the next page of results. Must be a valid UUID string (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) obtained from the 'next_cursor' field of a previous query response. Do not use placeholder values. If omitted, returns the first page.\").optional(),\n});\nconst NotionQueryDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"S3-hosted URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionQueryDatabase_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalIconSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileIconSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileCoverSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database for convenience.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true for workspace-level pages.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page' for page objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database schema. Keys are property names (case-sensitive). Each value is a property object with id, type, and type-specific value fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextAnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"Link URL if any.\").nullable().optional(),\n text: z.record(z.string(), z.unknown()).describe(\"Text-specific content when type is 'text'.\").nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text object.\").nullable(),\n mention: z.record(z.string(), z.unknown()).describe(\"Mention-specific content when type is 'mention'.\").nullable().optional(),\n equation: z.record(z.string(), z.unknown()).describe(\"Equation-specific content when type is 'equation'.\").nullable().optional(),\n plain_text: z.string().describe(\"Plain text content without formatting.\").nullable(),\n annotations: NotionQueryDatabase_RichTextAnnotationsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property schema definitions of the database. Keys are property names (case-sensitive). Each value is a property schema object with id, type, name, and type-specific configuration fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been published to the web, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when database was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nexport const NotionQueryDatabaseOutput = z.object({\n type: z.string().describe(\"The type of items in the results array, typically 'page_or_database'.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(z.union([NotionQueryDatabase_PageObjectSchema, NotionQueryDatabase_DatabaseObjectSchema])).describe(\"Array of Page and/or Database objects matching the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for tracking the API request.\").nullable().optional(),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if there are no more results.\").nullable().optional(),\n page_or_database: z.record(z.string(), z.unknown()).describe(\"Optional union container present when type is 'page_or_database'. Typically an empty object.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Internal message about input transformations or important execution notes.\").nullable().optional(),\n}).passthrough();\n\nexport const notionQueryDatabase = action(\"NOTION_QUERY_DATABASE\", {\n slug: \"notion-query-database\",\n name: \"Query database\",\n description: \"Queries a Notion database to retrieve pages (rows). In Notion, databases are collections where each row is a page and columns are properties. Returns paginated results with metadata. Important requirements: - The database must be shared with your integration - Property names in sorts must match existing database properties exactly (case-sensitive) - For timestamp sorting, use 'created_time' or 'last_edited_time' (case-insensitive) - The start_cursor must be a valid UUID from a previous response's next_cursor field - Database IDs must be valid 32-character UUIDs (with or without hyphens) Use this action to: - Retrieve all or filtered database entries - Sort results by database properties or page timestamps - Paginate through large result sets - Get database content for processing or display\",\n input: NotionQueryDatabaseInput,\n output: NotionQueryDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG;EACrI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sgBAAsgB;CAC3iB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,uXAAuX,CAAC,CAAC,SAAS;CAC3Z,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS;CAC7O,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,u0BAAu0B;CACx2B,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;AAC7T,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CA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AC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAAC,sCAAsC,wCAAwC,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/M,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"query-database.cjs","names":["z","action"],"sources":["../../src/actions/query-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionQueryDatabaseInput = z.object({\n sorts: z.array(z.object({\n ascending: z.boolean().describe(\"Sort direction: True for ascending (A→Z, oldest→newest), False for descending (Z→A, newest→oldest).\"),\n property_name: z.string().describe(\"The name of a database property/column to sort by, or a timestamp field. For database properties: Must match an EXISTING property name in the database EXACTLY (case-sensitive). For page timestamps: Use 'created_time' or 'last_edited_time' to sort by page creation/modification times. Common timestamp aliases are auto-detected (e.g., 'created time', 'creation time', '创建时间', 'last edited', etc.). IMPORTANT: If sorting by a database property (not a timestamp), the property name must exist in that specific database.\"),\n}).passthrough()).describe(\"List of sort rules to order the database query results. Each sort rule must specify: 'property_name' (name of database property or timestamp field) and 'ascending' (True/False). For database properties: names must match exactly (case-sensitive). For timestamps: use 'created_time' or 'last_edited_time' (case-insensitive). Multiple sorts are applied in the order specified.\").optional(),\n page_size: z.number().int().default(100).describe(\"Number of items (database rows/pages) to return per request. Valid range: 1-100. Default is 100. The API may return fewer items than requested if that's all that's available.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion DATABASE to query (32-character hex string, optionally with hyphens). Query parameters (e.g., ?v=viewid) from Notion URLs are automatically stripped. IMPORTANT: This must be a DATABASE ID, not a page ID. Pages and databases are different object types in Notion. A database is a collection/table that contains pages as rows. If you have a page ID, you cannot use it here. How to obtain a database ID: Use NOTION_SEARCH_NOTION_PAGE with filter_value='database' to list accessible databases, or find it in the Notion URL of a database view (the 32-char ID after the workspace name). Common error: If you receive 'validation_error' with message 'Provided ID is a page, not a database', you have passed a page ID instead of a database ID. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n start_cursor: z.string().describe(\"A pagination cursor for fetching the next page of results. Must be a valid UUID string (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) obtained from the 'next_cursor' field of a previous query response. Do not use placeholder values. If omitted, returns the first page.\").optional(),\n});\nconst NotionQueryDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"S3-hosted URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionQueryDatabase_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalIconSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileIconSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileCoverSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database for convenience.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true for workspace-level pages.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page' for page objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database schema. Keys are property names (case-sensitive). Each value is a property object with id, type, and type-specific value fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextAnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"Link URL if any.\").nullable().optional(),\n text: z.record(z.string(), z.unknown()).describe(\"Text-specific content when type is 'text'.\").nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text object.\").nullable(),\n mention: z.record(z.string(), z.unknown()).describe(\"Mention-specific content when type is 'mention'.\").nullable().optional(),\n equation: z.record(z.string(), z.unknown()).describe(\"Equation-specific content when type is 'equation'.\").nullable().optional(),\n plain_text: z.string().describe(\"Plain text content without formatting.\").nullable(),\n annotations: NotionQueryDatabase_RichTextAnnotationsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property schema definitions of the database. Keys are property names (case-sensitive). Each value is a property schema object with id, type, name, and type-specific configuration fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been published to the web, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when database was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nexport const NotionQueryDatabaseOutput = z.object({\n type: z.string().describe(\"The type of items in the results array, typically 'page_or_database'.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(z.union([NotionQueryDatabase_PageObjectSchema, NotionQueryDatabase_DatabaseObjectSchema])).describe(\"Array of Page and/or Database objects matching the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for tracking the API request.\").nullable().optional(),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if there are no more results.\").nullable().optional(),\n page_or_database: z.record(z.string(), z.unknown()).describe(\"Optional union container present when type is 'page_or_database'. Typically an empty object.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Internal message about input transformations or important execution notes.\").nullable().optional(),\n}).passthrough();\n\nexport const notionQueryDatabase: AppAction<\n typeof NotionQueryDatabaseInput,\n typeof NotionQueryDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_QUERY_DATABASE\", {\n slug: \"notion-query-database\",\n name: \"Query database\",\n description: \"Queries a Notion database to retrieve pages (rows). In Notion, databases are collections where each row is a page and columns are properties. Returns paginated results with metadata. Important requirements: - The database must be shared with your integration - Property names in sorts must match existing database properties exactly (case-sensitive) - For timestamp sorting, use 'created_time' or 'last_edited_time' (case-insensitive) - The start_cursor must be a valid UUID from a previous response's next_cursor field - Database IDs must be valid 32-character UUIDs (with or without hyphens) Use this action to: - Retrieve all or filtered database entries - Sort results by database properties or page timestamps - Paginate through large result sets - Get database content for processing or display\",\n input: NotionQueryDatabaseInput,\n output: NotionQueryDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG;EACrI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sgBAAsgB;CAC3iB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,uXAAuX,CAAC,CAAC,SAAS;CAC3Z,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { notion } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-database.d.ts
|
|
@@ -200,28 +202,7 @@ declare const NotionQueryDatabaseOutput: z.ZodObject<{
|
|
|
200
202
|
page_or_database: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
201
203
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
204
|
}, z.core.$loose>;
|
|
203
|
-
declare const notionQueryDatabase:
|
|
204
|
-
database_id: string;
|
|
205
|
-
sorts?: {
|
|
206
|
-
[x: string]: unknown;
|
|
207
|
-
ascending: boolean;
|
|
208
|
-
property_name: string;
|
|
209
|
-
}[] | undefined;
|
|
210
|
-
page_size?: number | undefined;
|
|
211
|
-
start_cursor?: string | undefined;
|
|
212
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
213
|
-
connectionId: z.ZodString;
|
|
214
|
-
entityId: z.ZodString;
|
|
215
|
-
instanceId: z.ZodString;
|
|
216
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
-
accessToken: z.ZodString;
|
|
218
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
219
|
-
connectionId: z.ZodString;
|
|
220
|
-
entityId: z.ZodString;
|
|
221
|
-
instanceId: z.ZodString;
|
|
222
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
-
accessToken: z.ZodString;
|
|
224
|
-
}, z.core.$strip>>]>;
|
|
205
|
+
declare const notionQueryDatabase: AppAction<typeof NotionQueryDatabaseInput, typeof NotionQueryDatabaseOutput, typeof notion.credential>;
|
|
225
206
|
//#endregion
|
|
226
207
|
export { notionQueryDatabase };
|
|
227
208
|
//# sourceMappingURL=query-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database.d.cts","names":[],"sources":["../../src/actions/query-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-database.d.cts","names":[],"sources":["../../src/actions/query-database.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cA2HxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { notion } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-database.d.ts
|
|
@@ -200,28 +202,7 @@ declare const NotionQueryDatabaseOutput: z.ZodObject<{
|
|
|
200
202
|
page_or_database: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
201
203
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
204
|
}, z.core.$loose>;
|
|
203
|
-
declare const notionQueryDatabase:
|
|
204
|
-
database_id: string;
|
|
205
|
-
sorts?: {
|
|
206
|
-
[x: string]: unknown;
|
|
207
|
-
ascending: boolean;
|
|
208
|
-
property_name: string;
|
|
209
|
-
}[] | undefined;
|
|
210
|
-
page_size?: number | undefined;
|
|
211
|
-
start_cursor?: string | undefined;
|
|
212
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
213
|
-
connectionId: z.ZodString;
|
|
214
|
-
entityId: z.ZodString;
|
|
215
|
-
instanceId: z.ZodString;
|
|
216
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
-
accessToken: z.ZodString;
|
|
218
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
219
|
-
connectionId: z.ZodString;
|
|
220
|
-
entityId: z.ZodString;
|
|
221
|
-
instanceId: z.ZodString;
|
|
222
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
-
accessToken: z.ZodString;
|
|
224
|
-
}, z.core.$strip>>]>;
|
|
205
|
+
declare const notionQueryDatabase: AppAction<typeof NotionQueryDatabaseInput, typeof NotionQueryDatabaseOutput, typeof notion.credential>;
|
|
225
206
|
//#endregion
|
|
226
207
|
export { notionQueryDatabase };
|
|
227
208
|
//# sourceMappingURL=query-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database.d.mts","names":[],"sources":["../../src/actions/query-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-database.d.mts","names":[],"sources":["../../src/actions/query-database.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cA2HxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database.mjs","names":[],"sources":["../../src/actions/query-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDatabaseInput = z.object({\n sorts: z.array(z.object({\n ascending: z.boolean().describe(\"Sort direction: True for ascending (A→Z, oldest→newest), False for descending (Z→A, newest→oldest).\"),\n property_name: z.string().describe(\"The name of a database property/column to sort by, or a timestamp field. For database properties: Must match an EXISTING property name in the database EXACTLY (case-sensitive). For page timestamps: Use 'created_time' or 'last_edited_time' to sort by page creation/modification times. Common timestamp aliases are auto-detected (e.g., 'created time', 'creation time', '创建时间', 'last edited', etc.). IMPORTANT: If sorting by a database property (not a timestamp), the property name must exist in that specific database.\"),\n}).passthrough()).describe(\"List of sort rules to order the database query results. Each sort rule must specify: 'property_name' (name of database property or timestamp field) and 'ascending' (True/False). For database properties: names must match exactly (case-sensitive). For timestamps: use 'created_time' or 'last_edited_time' (case-insensitive). Multiple sorts are applied in the order specified.\").optional(),\n page_size: z.number().int().default(100).describe(\"Number of items (database rows/pages) to return per request. Valid range: 1-100. Default is 100. The API may return fewer items than requested if that's all that's available.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion DATABASE to query (32-character hex string, optionally with hyphens). Query parameters (e.g., ?v=viewid) from Notion URLs are automatically stripped. IMPORTANT: This must be a DATABASE ID, not a page ID. Pages and databases are different object types in Notion. A database is a collection/table that contains pages as rows. If you have a page ID, you cannot use it here. How to obtain a database ID: Use NOTION_SEARCH_NOTION_PAGE with filter_value='database' to list accessible databases, or find it in the Notion URL of a database view (the 32-char ID after the workspace name). Common error: If you receive 'validation_error' with message 'Provided ID is a page, not a database', you have passed a page ID instead of a database ID. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n start_cursor: z.string().describe(\"A pagination cursor for fetching the next page of results. Must be a valid UUID string (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) obtained from the 'next_cursor' field of a previous query response. Do not use placeholder values. If omitted, returns the first page.\").optional(),\n});\nconst NotionQueryDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"S3-hosted URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionQueryDatabase_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalIconSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileIconSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileCoverSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database for convenience.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true for workspace-level pages.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page' for page objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database schema. Keys are property names (case-sensitive). Each value is a property object with id, type, and type-specific value fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextAnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"Link URL if any.\").nullable().optional(),\n text: z.record(z.string(), z.unknown()).describe(\"Text-specific content when type is 'text'.\").nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text object.\").nullable(),\n mention: z.record(z.string(), z.unknown()).describe(\"Mention-specific content when type is 'mention'.\").nullable().optional(),\n equation: z.record(z.string(), z.unknown()).describe(\"Equation-specific content when type is 'equation'.\").nullable().optional(),\n plain_text: z.string().describe(\"Plain text content without formatting.\").nullable(),\n annotations: NotionQueryDatabase_RichTextAnnotationsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property schema definitions of the database. Keys are property names (case-sensitive). Each value is a property schema object with id, type, name, and type-specific configuration fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been published to the web, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when database was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nexport const NotionQueryDatabaseOutput = z.object({\n type: z.string().describe(\"The type of items in the results array, typically 'page_or_database'.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(z.union([NotionQueryDatabase_PageObjectSchema, NotionQueryDatabase_DatabaseObjectSchema])).describe(\"Array of Page and/or Database objects matching the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for tracking the API request.\").nullable().optional(),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if there are no more results.\").nullable().optional(),\n page_or_database: z.record(z.string(), z.unknown()).describe(\"Optional union container present when type is 'page_or_database'. Typically an empty object.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Internal message about input transformations or important execution notes.\").nullable().optional(),\n}).passthrough();\n\nexport const notionQueryDatabase = action(\"NOTION_QUERY_DATABASE\", {\n slug: \"notion-query-database\",\n name: \"Query database\",\n description: \"Queries a Notion database to retrieve pages (rows). In Notion, databases are collections where each row is a page and columns are properties. Returns paginated results with metadata. Important requirements: - The database must be shared with your integration - Property names in sorts must match existing database properties exactly (case-sensitive) - For timestamp sorting, use 'created_time' or 'last_edited_time' (case-insensitive) - The start_cursor must be a valid UUID from a previous response's next_cursor field - Database IDs must be valid 32-character UUIDs (with or without hyphens) Use this action to: - Retrieve all or filtered database entries - Sort results by database properties or page timestamps - Paginate through large result sets - Get database content for processing or display\",\n input: NotionQueryDatabaseInput,\n output: NotionQueryDatabaseOutput,\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AAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY;AAYf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,sCAAsC,wCAAwC,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/M,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjL,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"query-database.mjs","names":[],"sources":["../../src/actions/query-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionQueryDatabaseInput = z.object({\n sorts: z.array(z.object({\n ascending: z.boolean().describe(\"Sort direction: True for ascending (A→Z, oldest→newest), False for descending (Z→A, newest→oldest).\"),\n property_name: z.string().describe(\"The name of a database property/column to sort by, or a timestamp field. For database properties: Must match an EXISTING property name in the database EXACTLY (case-sensitive). For page timestamps: Use 'created_time' or 'last_edited_time' to sort by page creation/modification times. Common timestamp aliases are auto-detected (e.g., 'created time', 'creation time', '创建时间', 'last edited', etc.). IMPORTANT: If sorting by a database property (not a timestamp), the property name must exist in that specific database.\"),\n}).passthrough()).describe(\"List of sort rules to order the database query results. Each sort rule must specify: 'property_name' (name of database property or timestamp field) and 'ascending' (True/False). For database properties: names must match exactly (case-sensitive). For timestamps: use 'created_time' or 'last_edited_time' (case-insensitive). Multiple sorts are applied in the order specified.\").optional(),\n page_size: z.number().int().default(100).describe(\"Number of items (database rows/pages) to return per request. Valid range: 1-100. Default is 100. The API may return fewer items than requested if that's all that's available.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion DATABASE to query (32-character hex string, optionally with hyphens). Query parameters (e.g., ?v=viewid) from Notion URLs are automatically stripped. IMPORTANT: This must be a DATABASE ID, not a page ID. Pages and databases are different object types in Notion. A database is a collection/table that contains pages as rows. If you have a page ID, you cannot use it here. How to obtain a database ID: Use NOTION_SEARCH_NOTION_PAGE with filter_value='database' to list accessible databases, or find it in the Notion URL of a database view (the 32-char ID after the workspace name). Common error: If you receive 'validation_error' with message 'Provided ID is a page, not a database', you have passed a page ID instead of a database ID. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n start_cursor: z.string().describe(\"A pagination cursor for fetching the next page of results. Must be a valid UUID string (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) obtained from the 'next_cursor' field of a previous query response. Do not use placeholder values. If omitted, returns the first page.\").optional(),\n});\nconst NotionQueryDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"S3-hosted URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionQueryDatabase_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalIconSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated HTTP GET URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileIconSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Always 'external'.\").nullable(),\n external: NotionQueryDatabase_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_NotionHostedFileCoverSchema = z.object({\n file: NotionQueryDatabase_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().describe(\"Always 'file'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always 'data_source_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database for convenience.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true for workspace-level pages.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_PageObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always 'page' for page objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database schema. Keys are property names (case-sensitive). Each value is a property object with id, type, and type-specific value fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextAnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough();\nconst NotionQueryDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"Link URL if any.\").nullable().optional(),\n text: z.record(z.string(), z.unknown()).describe(\"Text-specific content when type is 'text'.\").nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"Type of rich text object.\").nullable(),\n mention: z.record(z.string(), z.unknown()).describe(\"Mention-specific content when type is 'mention'.\").nullable().optional(),\n equation: z.record(z.string(), z.unknown()).describe(\"Equation-specific content when type is 'equation'.\").nullable().optional(),\n plain_text: z.string().describe(\"Plain text content without formatting.\").nullable(),\n annotations: NotionQueryDatabase_RichTextAnnotationsSchema.nullable(),\n}).passthrough();\nconst NotionQueryDatabase_DatabaseObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable().optional(),\n icon: z.union([NotionQueryDatabase_EmojiIconSchema, NotionQueryDatabase_CustomEmojiIconSchema, NotionQueryDatabase_ExternalIconSchema, NotionQueryDatabase_NotionHostedFileIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabase_ExternalCoverSchema, NotionQueryDatabase_NotionHostedFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionQueryDatabase_DatabaseParentSchema, NotionQueryDatabase_DataSourceParentSchema, NotionQueryDatabase_PageParentSchema, NotionQueryDatabase_BlockParentSchema, NotionQueryDatabase_WorkspaceParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property schema definitions of the database. Keys are property names (case-sensitive). Each value is a property schema object with id, type, name, and type-specific configuration fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been published to the web, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabase_RichTextObjectSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when database was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of the most recent modification.\").nullable().optional(),\n}).passthrough();\nexport const NotionQueryDatabaseOutput = z.object({\n type: z.string().describe(\"The type of items in the results array, typically 'page_or_database'.\").nullable().optional(),\n object: z.string().describe(\"Always 'list' for paginated responses.\").nullable().optional(),\n results: z.array(z.union([NotionQueryDatabase_PageObjectSchema, NotionQueryDatabase_DatabaseObjectSchema])).describe(\"Array of Page and/or Database objects matching the query criteria.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for tracking the API request.\").nullable().optional(),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Null if there are no more results.\").nullable().optional(),\n page_or_database: z.record(z.string(), z.unknown()).describe(\"Optional union container present when type is 'page_or_database'. Typically an empty object.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Internal message about input transformations or important execution notes.\").nullable().optional(),\n}).passthrough();\n\nexport const notionQueryDatabase: AppAction<\n typeof NotionQueryDatabaseInput,\n typeof NotionQueryDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_QUERY_DATABASE\", {\n slug: \"notion-query-database\",\n name: \"Query database\",\n description: \"Queries a Notion database to retrieve pages (rows). In Notion, databases are collections where each row is a page and columns are properties. Returns paginated results with metadata. Important requirements: - The database must be shared with your integration - Property names in sorts must match existing database properties exactly (case-sensitive) - For timestamp sorting, use 'created_time' or 'last_edited_time' (case-insensitive) - The start_cursor must be a valid UUID from a previous response's next_cursor field - Database IDs must be valid 32-character UUIDs (with or without hyphens) Use this action to: - Retrieve all or filtered database entries - Sort results by database properties or page timestamps - Paginate through large result sets - Get database content for processing or display\",\n input: NotionQueryDatabaseInput,\n output: NotionQueryDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG;EACrI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sgBAAsgB;CAC3iB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,uXAAuX,CAAC,CAAC,SAAS;CAC3Z,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS;CAC7O,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,u0BAAu0B;CACx2B,cAAc,EAAE,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