@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":"retrieve-database-property.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-database-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveDatabasePropertyInput = z.object({\n database_id: z.string().describe(\"Identifier for the database.\"),\n property_id: z.string().describe(\"Identifier for the property. This can be the property ID (e.g., 'GZtn') or the property name (e.g., 'Status'). Supports URL-encoded values (e.g., 'kD%5ER' decodes to 'kD^R'). Property name matching is case-sensitive but supports Unicode normalization for characters that can be represented in multiple ways.\"),\n});\nconst NotionRetrieveDatabaseProperty_NumberFormatSchema = z.object({\n format: z.string().describe(\"Number format: 'number', 'number_with_commas', 'percent', 'dollar', 'canadian_dollar', 'euro', 'pound', 'yen', 'ruble', 'rupee', 'won', 'yuan', 'real', 'lira', 'rupiah', 'franc', 'hong_kong_dollar', 'new_zealand_dollar', 'krona', 'norwegian_krone', 'mexican_peso', 'rand', 'new_taiwan_dollar', 'danish_krone', 'zloty', 'baht', 'forint', 'koruna', 'shekel', 'chilean_peso', 'philippine_peso', 'dirham', 'colombian_peso', 'riyal', 'ringgit', 'leu', 'argentine_peso', 'uruguayan_peso', 'singapore_dollar'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RollupConfigSchema = z.object({\n \"function\": z.string().describe(\"Rollup function: 'count', 'count_values', 'empty', 'not_empty', 'unique', 'show_unique', 'percent_empty', 'percent_not_empty', 'sum', 'average', 'median', 'min', 'max', 'range', 'earliest_date', 'latest_date', 'date_range', 'checked', 'unchecked', 'percent_checked', 'percent_unchecked', 'count_per_group', 'percent_per_group', 'show_original'\").nullable(),\n rollup_property_id: z.string().describe(\"ID of the property to rollup\").nullable(),\n relation_property_id: z.string().describe(\"ID of the relation property\").nullable(),\n rollup_property_name: z.string().describe(\"Name of the property to rollup from the related data source\").nullable(),\n relation_property_name: z.string().describe(\"Name of the relation property to use\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectOptionSchema = z.object({\n id: z.string().describe(\"Unique identifier for the option (UUID format)\").nullable(),\n name: z.string().describe(\"Display name of the option\").nullable(),\n color: z.string().describe(\"Option color: 'default', 'gray', 'brown', 'orange', 'yellow', 'green', 'blue', 'purple', 'pink', 'red'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectConfigSchema = z.object({\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of select option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Display name of the group\").nullable(),\n color: z.string().describe(\"Group color\").nullable(),\n option_ids: z.array(z.string()).describe(\"Array of option IDs belonging to this group\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusConfigSchema = z.object({\n groups: z.array(NotionRetrieveDatabaseProperty_StatusGroupSchema).describe(\"Array of status group objects\"),\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of status option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_FormulaConfigSchema = z.object({\n expression: z.string().describe(\"The formula expression used to compute property values\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_DualPropertySchema = z.object({\n synced_property_id: z.string().describe(\"ID of the synced property in the related data source\").nullable(),\n synced_property_name: z.string().describe(\"Name of the synced property in the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RelationConfigSchema = z.object({\n dual_property: NotionRetrieveDatabaseProperty_DualPropertySchema.nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_UniqueIdConfigSchema = z.object({\n prefix: z.string().describe(\"Optional common prefix for unique IDs in this data source\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrieveDatabasePropertyOutput = z.object({\n id: z.string().describe(\"Unique identifier for the property (short random string)\").nullable(),\n url: z.record(z.string(), z.unknown()).describe(\"Empty object for url type properties\").nullable().optional(),\n date: z.record(z.string(), z.unknown()).describe(\"Empty object for date type properties\").nullable().optional(),\n name: z.string().describe(\"Display name of the property in Notion UI\").nullable(),\n type: z.string().describe(\"Property type: 'title', 'rich_text', 'number', 'select', 'multi_select', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number', 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by', 'status', 'unique_id', 'place'\").nullable(),\n email: z.record(z.string(), z.unknown()).describe(\"Empty object for email type properties\").nullable().optional(),\n files: z.record(z.string(), z.unknown()).describe(\"Empty object for files type properties\").nullable().optional(),\n place: z.record(z.string(), z.unknown()).describe(\"Empty object for place type properties\").nullable().optional(),\n title: z.record(z.string(), z.unknown()).describe(\"Empty object for title type properties\").nullable().optional(),\n number: NotionRetrieveDatabaseProperty_NumberFormatSchema.nullable().optional(),\n people: z.record(z.string(), z.unknown()).describe(\"Empty object for people type properties\").nullable().optional(),\n rollup: NotionRetrieveDatabaseProperty_RollupConfigSchema.nullable().optional(),\n select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n status: NotionRetrieveDatabaseProperty_StatusConfigSchema.nullable().optional(),\n formula: NotionRetrieveDatabaseProperty_FormulaConfigSchema.nullable().optional(),\n checkbox: z.record(z.string(), z.unknown()).describe(\"Empty object for checkbox type properties\").nullable().optional(),\n relation: NotionRetrieveDatabaseProperty_RelationConfigSchema.nullable().optional(),\n rich_text: z.record(z.string(), z.unknown()).describe(\"Empty object for rich_text type properties\").nullable().optional(),\n unique_id: NotionRetrieveDatabaseProperty_UniqueIdConfigSchema.nullable().optional(),\n created_by: z.record(z.string(), z.unknown()).describe(\"Empty object for created_by type properties\").nullable().optional(),\n description: z.string().describe(\"Property description in Notion\").nullable().optional(),\n created_time: z.record(z.string(), z.unknown()).describe(\"Empty object for created_time type properties\").nullable().optional(),\n multi_select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n phone_number: z.record(z.string(), z.unknown()).describe(\"Empty object for phone_number type properties\").nullable().optional(),\n last_edited_by: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_by type properties\").nullable().optional(),\n last_edited_time: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_time type properties\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveDatabaseProperty = action(\"NOTION_RETRIEVE_DATABASE_PROPERTY\", {\n slug: \"notion-retrieve-database-property\",\n name: \"Retrieve Database Property\",\n description: \"Tool to retrieve a specific property object of a Notion database. Use when you need to get details about a single database column/property.\",\n input: NotionRetrieveDatabasePropertyInput,\n output: NotionRetrieveDatabasePropertyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qTAAqT;AACxV,CAAC;AACD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ufAAuf,CAAC,CAAC,SAAS,EAChiB,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yVAAyV,CAAC,CAAC,SAAS;CACpY,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,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CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,cAAc,kDAAkD,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"retrieve-database-property.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-database-property.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 NotionRetrieveDatabasePropertyInput = z.object({\n database_id: z.string().describe(\"Identifier for the database.\"),\n property_id: z.string().describe(\"Identifier for the property. This can be the property ID (e.g., 'GZtn') or the property name (e.g., 'Status'). Supports URL-encoded values (e.g., 'kD%5ER' decodes to 'kD^R'). Property name matching is case-sensitive but supports Unicode normalization for characters that can be represented in multiple ways.\"),\n});\nconst NotionRetrieveDatabaseProperty_NumberFormatSchema = z.object({\n format: z.string().describe(\"Number format: 'number', 'number_with_commas', 'percent', 'dollar', 'canadian_dollar', 'euro', 'pound', 'yen', 'ruble', 'rupee', 'won', 'yuan', 'real', 'lira', 'rupiah', 'franc', 'hong_kong_dollar', 'new_zealand_dollar', 'krona', 'norwegian_krone', 'mexican_peso', 'rand', 'new_taiwan_dollar', 'danish_krone', 'zloty', 'baht', 'forint', 'koruna', 'shekel', 'chilean_peso', 'philippine_peso', 'dirham', 'colombian_peso', 'riyal', 'ringgit', 'leu', 'argentine_peso', 'uruguayan_peso', 'singapore_dollar'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RollupConfigSchema = z.object({\n \"function\": z.string().describe(\"Rollup function: 'count', 'count_values', 'empty', 'not_empty', 'unique', 'show_unique', 'percent_empty', 'percent_not_empty', 'sum', 'average', 'median', 'min', 'max', 'range', 'earliest_date', 'latest_date', 'date_range', 'checked', 'unchecked', 'percent_checked', 'percent_unchecked', 'count_per_group', 'percent_per_group', 'show_original'\").nullable(),\n rollup_property_id: z.string().describe(\"ID of the property to rollup\").nullable(),\n relation_property_id: z.string().describe(\"ID of the relation property\").nullable(),\n rollup_property_name: z.string().describe(\"Name of the property to rollup from the related data source\").nullable(),\n relation_property_name: z.string().describe(\"Name of the relation property to use\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectOptionSchema = z.object({\n id: z.string().describe(\"Unique identifier for the option (UUID format)\").nullable(),\n name: z.string().describe(\"Display name of the option\").nullable(),\n color: z.string().describe(\"Option color: 'default', 'gray', 'brown', 'orange', 'yellow', 'green', 'blue', 'purple', 'pink', 'red'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectConfigSchema = z.object({\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of select option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Display name of the group\").nullable(),\n color: z.string().describe(\"Group color\").nullable(),\n option_ids: z.array(z.string()).describe(\"Array of option IDs belonging to this group\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusConfigSchema = z.object({\n groups: z.array(NotionRetrieveDatabaseProperty_StatusGroupSchema).describe(\"Array of status group objects\"),\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of status option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_FormulaConfigSchema = z.object({\n expression: z.string().describe(\"The formula expression used to compute property values\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_DualPropertySchema = z.object({\n synced_property_id: z.string().describe(\"ID of the synced property in the related data source\").nullable(),\n synced_property_name: z.string().describe(\"Name of the synced property in the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RelationConfigSchema = z.object({\n dual_property: NotionRetrieveDatabaseProperty_DualPropertySchema.nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_UniqueIdConfigSchema = z.object({\n prefix: z.string().describe(\"Optional common prefix for unique IDs in this data source\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrieveDatabasePropertyOutput = z.object({\n id: z.string().describe(\"Unique identifier for the property (short random string)\").nullable(),\n url: z.record(z.string(), z.unknown()).describe(\"Empty object for url type properties\").nullable().optional(),\n date: z.record(z.string(), z.unknown()).describe(\"Empty object for date type properties\").nullable().optional(),\n name: z.string().describe(\"Display name of the property in Notion UI\").nullable(),\n type: z.string().describe(\"Property type: 'title', 'rich_text', 'number', 'select', 'multi_select', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number', 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by', 'status', 'unique_id', 'place'\").nullable(),\n email: z.record(z.string(), z.unknown()).describe(\"Empty object for email type properties\").nullable().optional(),\n files: z.record(z.string(), z.unknown()).describe(\"Empty object for files type properties\").nullable().optional(),\n place: z.record(z.string(), z.unknown()).describe(\"Empty object for place type properties\").nullable().optional(),\n title: z.record(z.string(), z.unknown()).describe(\"Empty object for title type properties\").nullable().optional(),\n number: NotionRetrieveDatabaseProperty_NumberFormatSchema.nullable().optional(),\n people: z.record(z.string(), z.unknown()).describe(\"Empty object for people type properties\").nullable().optional(),\n rollup: NotionRetrieveDatabaseProperty_RollupConfigSchema.nullable().optional(),\n select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n status: NotionRetrieveDatabaseProperty_StatusConfigSchema.nullable().optional(),\n formula: NotionRetrieveDatabaseProperty_FormulaConfigSchema.nullable().optional(),\n checkbox: z.record(z.string(), z.unknown()).describe(\"Empty object for checkbox type properties\").nullable().optional(),\n relation: NotionRetrieveDatabaseProperty_RelationConfigSchema.nullable().optional(),\n rich_text: z.record(z.string(), z.unknown()).describe(\"Empty object for rich_text type properties\").nullable().optional(),\n unique_id: NotionRetrieveDatabaseProperty_UniqueIdConfigSchema.nullable().optional(),\n created_by: z.record(z.string(), z.unknown()).describe(\"Empty object for created_by type properties\").nullable().optional(),\n description: z.string().describe(\"Property description in Notion\").nullable().optional(),\n created_time: z.record(z.string(), z.unknown()).describe(\"Empty object for created_time type properties\").nullable().optional(),\n multi_select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n phone_number: z.record(z.string(), z.unknown()).describe(\"Empty object for phone_number type properties\").nullable().optional(),\n last_edited_by: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_by type properties\").nullable().optional(),\n last_edited_time: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_time type properties\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveDatabaseProperty: AppAction<\n typeof NotionRetrieveDatabasePropertyInput,\n typeof NotionRetrieveDatabasePropertyOutput,\n typeof notion.credential\n> = action(\"NOTION_RETRIEVE_DATABASE_PROPERTY\", {\n slug: \"notion-retrieve-database-property\",\n name: \"Retrieve Database Property\",\n description: \"Tool to retrieve a specific property object of a Notion database. Use when you need to get details about a single database column/property.\",\n input: NotionRetrieveDatabaseP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C,CAAC,SAAS;CAC9H,cAAc,kDAAkD,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iCAITC,eAAAA,OAAO,qCAAqC;CAC9C,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/retrieve-database-property.d.ts
|
|
@@ -75,22 +77,7 @@ declare const NotionRetrieveDatabasePropertyOutput: z.ZodObject<{
|
|
|
75
77
|
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
76
78
|
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
77
79
|
}, z.core.$loose>;
|
|
78
|
-
declare const notionRetrieveDatabaseProperty:
|
|
79
|
-
database_id: string;
|
|
80
|
-
property_id: string;
|
|
81
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
82
|
-
connectionId: z.ZodString;
|
|
83
|
-
entityId: z.ZodString;
|
|
84
|
-
instanceId: z.ZodString;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
accessToken: z.ZodString;
|
|
87
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
88
|
-
connectionId: z.ZodString;
|
|
89
|
-
entityId: z.ZodString;
|
|
90
|
-
instanceId: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
accessToken: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>]>;
|
|
80
|
+
declare const notionRetrieveDatabaseProperty: AppAction<typeof NotionRetrieveDatabasePropertyInput, typeof NotionRetrieveDatabasePropertyOutput, typeof notion.credential>;
|
|
94
81
|
//#endregion
|
|
95
82
|
export { notionRetrieveDatabaseProperty };
|
|
96
83
|
//# sourceMappingURL=retrieve-database-property.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-database-property.d.cts","names":[],"sources":["../../src/actions/retrieve-database-property.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-database-property.d.cts","names":[],"sources":["../../src/actions/retrieve-database-property.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cA8CnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6BpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,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/retrieve-database-property.d.ts
|
|
@@ -75,22 +77,7 @@ declare const NotionRetrieveDatabasePropertyOutput: z.ZodObject<{
|
|
|
75
77
|
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
76
78
|
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
77
79
|
}, z.core.$loose>;
|
|
78
|
-
declare const notionRetrieveDatabaseProperty:
|
|
79
|
-
database_id: string;
|
|
80
|
-
property_id: string;
|
|
81
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
82
|
-
connectionId: z.ZodString;
|
|
83
|
-
entityId: z.ZodString;
|
|
84
|
-
instanceId: z.ZodString;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
accessToken: z.ZodString;
|
|
87
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
88
|
-
connectionId: z.ZodString;
|
|
89
|
-
entityId: z.ZodString;
|
|
90
|
-
instanceId: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
accessToken: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>]>;
|
|
80
|
+
declare const notionRetrieveDatabaseProperty: AppAction<typeof NotionRetrieveDatabasePropertyInput, typeof NotionRetrieveDatabasePropertyOutput, typeof notion.credential>;
|
|
94
81
|
//#endregion
|
|
95
82
|
export { notionRetrieveDatabaseProperty };
|
|
96
83
|
//# sourceMappingURL=retrieve-database-property.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-database-property.d.mts","names":[],"sources":["../../src/actions/retrieve-database-property.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-database-property.d.mts","names":[],"sources":["../../src/actions/retrieve-database-property.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cA8CnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6BpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-database-property.mjs","names":[],"sources":["../../src/actions/retrieve-database-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveDatabasePropertyInput = z.object({\n database_id: z.string().describe(\"Identifier for the database.\"),\n property_id: z.string().describe(\"Identifier for the property. This can be the property ID (e.g., 'GZtn') or the property name (e.g., 'Status'). Supports URL-encoded values (e.g., 'kD%5ER' decodes to 'kD^R'). Property name matching is case-sensitive but supports Unicode normalization for characters that can be represented in multiple ways.\"),\n});\nconst NotionRetrieveDatabaseProperty_NumberFormatSchema = z.object({\n format: z.string().describe(\"Number format: 'number', 'number_with_commas', 'percent', 'dollar', 'canadian_dollar', 'euro', 'pound', 'yen', 'ruble', 'rupee', 'won', 'yuan', 'real', 'lira', 'rupiah', 'franc', 'hong_kong_dollar', 'new_zealand_dollar', 'krona', 'norwegian_krone', 'mexican_peso', 'rand', 'new_taiwan_dollar', 'danish_krone', 'zloty', 'baht', 'forint', 'koruna', 'shekel', 'chilean_peso', 'philippine_peso', 'dirham', 'colombian_peso', 'riyal', 'ringgit', 'leu', 'argentine_peso', 'uruguayan_peso', 'singapore_dollar'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RollupConfigSchema = z.object({\n \"function\": z.string().describe(\"Rollup function: 'count', 'count_values', 'empty', 'not_empty', 'unique', 'show_unique', 'percent_empty', 'percent_not_empty', 'sum', 'average', 'median', 'min', 'max', 'range', 'earliest_date', 'latest_date', 'date_range', 'checked', 'unchecked', 'percent_checked', 'percent_unchecked', 'count_per_group', 'percent_per_group', 'show_original'\").nullable(),\n rollup_property_id: z.string().describe(\"ID of the property to rollup\").nullable(),\n relation_property_id: z.string().describe(\"ID of the relation property\").nullable(),\n rollup_property_name: z.string().describe(\"Name of the property to rollup from the related data source\").nullable(),\n relation_property_name: z.string().describe(\"Name of the relation property to use\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectOptionSchema = z.object({\n id: z.string().describe(\"Unique identifier for the option (UUID format)\").nullable(),\n name: z.string().describe(\"Display name of the option\").nullable(),\n color: z.string().describe(\"Option color: 'default', 'gray', 'brown', 'orange', 'yellow', 'green', 'blue', 'purple', 'pink', 'red'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectConfigSchema = z.object({\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of select option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Display name of the group\").nullable(),\n color: z.string().describe(\"Group color\").nullable(),\n option_ids: z.array(z.string()).describe(\"Array of option IDs belonging to this group\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusConfigSchema = z.object({\n groups: z.array(NotionRetrieveDatabaseProperty_StatusGroupSchema).describe(\"Array of status group objects\"),\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of status option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_FormulaConfigSchema = z.object({\n expression: z.string().describe(\"The formula expression used to compute property values\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_DualPropertySchema = z.object({\n synced_property_id: z.string().describe(\"ID of the synced property in the related data source\").nullable(),\n synced_property_name: z.string().describe(\"Name of the synced property in the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RelationConfigSchema = z.object({\n dual_property: NotionRetrieveDatabaseProperty_DualPropertySchema.nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_UniqueIdConfigSchema = z.object({\n prefix: z.string().describe(\"Optional common prefix for unique IDs in this data source\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrieveDatabasePropertyOutput = z.object({\n id: z.string().describe(\"Unique identifier for the property (short random string)\").nullable(),\n url: z.record(z.string(), z.unknown()).describe(\"Empty object for url type properties\").nullable().optional(),\n date: z.record(z.string(), z.unknown()).describe(\"Empty object for date type properties\").nullable().optional(),\n name: z.string().describe(\"Display name of the property in Notion UI\").nullable(),\n type: z.string().describe(\"Property type: 'title', 'rich_text', 'number', 'select', 'multi_select', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number', 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by', 'status', 'unique_id', 'place'\").nullable(),\n email: z.record(z.string(), z.unknown()).describe(\"Empty object for email type properties\").nullable().optional(),\n files: z.record(z.string(), z.unknown()).describe(\"Empty object for files type properties\").nullable().optional(),\n place: z.record(z.string(), z.unknown()).describe(\"Empty object for place type properties\").nullable().optional(),\n title: z.record(z.string(), z.unknown()).describe(\"Empty object for title type properties\").nullable().optional(),\n number: NotionRetrieveDatabaseProperty_NumberFormatSchema.nullable().optional(),\n people: z.record(z.string(), z.unknown()).describe(\"Empty object for people type properties\").nullable().optional(),\n rollup: NotionRetrieveDatabaseProperty_RollupConfigSchema.nullable().optional(),\n select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n status: NotionRetrieveDatabaseProperty_StatusConfigSchema.nullable().optional(),\n formula: NotionRetrieveDatabaseProperty_FormulaConfigSchema.nullable().optional(),\n checkbox: z.record(z.string(), z.unknown()).describe(\"Empty object for checkbox type properties\").nullable().optional(),\n relation: NotionRetrieveDatabaseProperty_RelationConfigSchema.nullable().optional(),\n rich_text: z.record(z.string(), z.unknown()).describe(\"Empty object for rich_text type properties\").nullable().optional(),\n unique_id: NotionRetrieveDatabaseProperty_UniqueIdConfigSchema.nullable().optional(),\n created_by: z.record(z.string(), z.unknown()).describe(\"Empty object for created_by type properties\").nullable().optional(),\n description: z.string().describe(\"Property description in Notion\").nullable().optional(),\n created_time: z.record(z.string(), z.unknown()).describe(\"Empty object for created_time type properties\").nullable().optional(),\n multi_select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n phone_number: z.record(z.string(), z.unknown()).describe(\"Empty object for phone_number type properties\").nullable().optional(),\n last_edited_by: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_by type properties\").nullable().optional(),\n last_edited_time: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_time type properties\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveDatabaseProperty = action(\"NOTION_RETRIEVE_DATABASE_PROPERTY\", {\n slug: \"notion-retrieve-database-property\",\n name: \"Retrieve Database Property\",\n description: \"Tool to retrieve a specific property object of a Notion database. Use when you need to get details about a single database column/property.\",\n input: NotionRetrieveDatabasePropertyInput,\n output: NotionRetrieveDatabasePropertyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qTAAqT;AACxV,CAAC;AACD,MAAM,oDAAoD,EAAE,OAAO,EACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,ufAAuf,CAAC,CAAC,SAAS,EAChiB,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoD,EAAE,OAAO;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yVAAyV,CAAC,CAAC,SAAS;CACpY,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClF,sBAAsB,EAAE,OAAO,CAA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,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,cAAc,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACpF,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"retrieve-database-property.mjs","names":[],"sources":["../../src/actions/retrieve-database-property.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 NotionRetrieveDatabasePropertyInput = z.object({\n database_id: z.string().describe(\"Identifier for the database.\"),\n property_id: z.string().describe(\"Identifier for the property. This can be the property ID (e.g., 'GZtn') or the property name (e.g., 'Status'). Supports URL-encoded values (e.g., 'kD%5ER' decodes to 'kD^R'). Property name matching is case-sensitive but supports Unicode normalization for characters that can be represented in multiple ways.\"),\n});\nconst NotionRetrieveDatabaseProperty_NumberFormatSchema = z.object({\n format: z.string().describe(\"Number format: 'number', 'number_with_commas', 'percent', 'dollar', 'canadian_dollar', 'euro', 'pound', 'yen', 'ruble', 'rupee', 'won', 'yuan', 'real', 'lira', 'rupiah', 'franc', 'hong_kong_dollar', 'new_zealand_dollar', 'krona', 'norwegian_krone', 'mexican_peso', 'rand', 'new_taiwan_dollar', 'danish_krone', 'zloty', 'baht', 'forint', 'koruna', 'shekel', 'chilean_peso', 'philippine_peso', 'dirham', 'colombian_peso', 'riyal', 'ringgit', 'leu', 'argentine_peso', 'uruguayan_peso', 'singapore_dollar'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RollupConfigSchema = z.object({\n \"function\": z.string().describe(\"Rollup function: 'count', 'count_values', 'empty', 'not_empty', 'unique', 'show_unique', 'percent_empty', 'percent_not_empty', 'sum', 'average', 'median', 'min', 'max', 'range', 'earliest_date', 'latest_date', 'date_range', 'checked', 'unchecked', 'percent_checked', 'percent_unchecked', 'count_per_group', 'percent_per_group', 'show_original'\").nullable(),\n rollup_property_id: z.string().describe(\"ID of the property to rollup\").nullable(),\n relation_property_id: z.string().describe(\"ID of the relation property\").nullable(),\n rollup_property_name: z.string().describe(\"Name of the property to rollup from the related data source\").nullable(),\n relation_property_name: z.string().describe(\"Name of the relation property to use\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectOptionSchema = z.object({\n id: z.string().describe(\"Unique identifier for the option (UUID format)\").nullable(),\n name: z.string().describe(\"Display name of the option\").nullable(),\n color: z.string().describe(\"Option color: 'default', 'gray', 'brown', 'orange', 'yellow', 'green', 'blue', 'purple', 'pink', 'red'\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_SelectConfigSchema = z.object({\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of select option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Display name of the group\").nullable(),\n color: z.string().describe(\"Group color\").nullable(),\n option_ids: z.array(z.string()).describe(\"Array of option IDs belonging to this group\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_StatusConfigSchema = z.object({\n groups: z.array(NotionRetrieveDatabaseProperty_StatusGroupSchema).describe(\"Array of status group objects\"),\n options: z.array(NotionRetrieveDatabaseProperty_SelectOptionSchema).describe(\"Array of status option objects\"),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_FormulaConfigSchema = z.object({\n expression: z.string().describe(\"The formula expression used to compute property values\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_DualPropertySchema = z.object({\n synced_property_id: z.string().describe(\"ID of the synced property in the related data source\").nullable(),\n synced_property_name: z.string().describe(\"Name of the synced property in the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_RelationConfigSchema = z.object({\n dual_property: NotionRetrieveDatabaseProperty_DualPropertySchema.nullable().optional(),\n data_source_id: z.string().describe(\"UUID of the related data source\").nullable(),\n}).passthrough();\nconst NotionRetrieveDatabaseProperty_UniqueIdConfigSchema = z.object({\n prefix: z.string().describe(\"Optional common prefix for unique IDs in this data source\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrieveDatabasePropertyOutput = z.object({\n id: z.string().describe(\"Unique identifier for the property (short random string)\").nullable(),\n url: z.record(z.string(), z.unknown()).describe(\"Empty object for url type properties\").nullable().optional(),\n date: z.record(z.string(), z.unknown()).describe(\"Empty object for date type properties\").nullable().optional(),\n name: z.string().describe(\"Display name of the property in Notion UI\").nullable(),\n type: z.string().describe(\"Property type: 'title', 'rich_text', 'number', 'select', 'multi_select', 'date', 'people', 'files', 'checkbox', 'url', 'email', 'phone_number', 'formula', 'relation', 'rollup', 'created_time', 'created_by', 'last_edited_time', 'last_edited_by', 'status', 'unique_id', 'place'\").nullable(),\n email: z.record(z.string(), z.unknown()).describe(\"Empty object for email type properties\").nullable().optional(),\n files: z.record(z.string(), z.unknown()).describe(\"Empty object for files type properties\").nullable().optional(),\n place: z.record(z.string(), z.unknown()).describe(\"Empty object for place type properties\").nullable().optional(),\n title: z.record(z.string(), z.unknown()).describe(\"Empty object for title type properties\").nullable().optional(),\n number: NotionRetrieveDatabaseProperty_NumberFormatSchema.nullable().optional(),\n people: z.record(z.string(), z.unknown()).describe(\"Empty object for people type properties\").nullable().optional(),\n rollup: NotionRetrieveDatabaseProperty_RollupConfigSchema.nullable().optional(),\n select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n status: NotionRetrieveDatabaseProperty_StatusConfigSchema.nullable().optional(),\n formula: NotionRetrieveDatabaseProperty_FormulaConfigSchema.nullable().optional(),\n checkbox: z.record(z.string(), z.unknown()).describe(\"Empty object for checkbox type properties\").nullable().optional(),\n relation: NotionRetrieveDatabaseProperty_RelationConfigSchema.nullable().optional(),\n rich_text: z.record(z.string(), z.unknown()).describe(\"Empty object for rich_text type properties\").nullable().optional(),\n unique_id: NotionRetrieveDatabaseProperty_UniqueIdConfigSchema.nullable().optional(),\n created_by: z.record(z.string(), z.unknown()).describe(\"Empty object for created_by type properties\").nullable().optional(),\n description: z.string().describe(\"Property description in Notion\").nullable().optional(),\n created_time: z.record(z.string(), z.unknown()).describe(\"Empty object for created_time type properties\").nullable().optional(),\n multi_select: NotionRetrieveDatabaseProperty_SelectConfigSchema.nullable().optional(),\n phone_number: z.record(z.string(), z.unknown()).describe(\"Empty object for phone_number type properties\").nullable().optional(),\n last_edited_by: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_by type properties\").nullable().optional(),\n last_edited_time: z.record(z.string(), z.unknown()).describe(\"Empty object for last_edited_time type properties\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveDatabaseProperty: AppAction<\n typeof NotionRetrieveDatabasePropertyInput,\n typeof NotionRetrieveDatabasePropertyOutput,\n typeof notion.credential\n> = action(\"NOTION_RETRIEVE_DATABASE_PROPERTY\", {\n slug: \"notion-retrieve-database-property\",\n name: \"Retrieve Database Property\",\n description: \"Tool to retrieve a specific property object of a Notion database. Use when you need to get details about a single database column/property.\",\n input: NotionRetrieveDatabasePropertyInput,\n output: NotionRetrieveDatabasePropertyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA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CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,UAAU,oDAAoD,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,WAAW,oDAAoD,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,cAAc,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACpF,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveFileUploadInput = z.object({\n file_upload_id: z.string().describe(\"The unique identifier (UUID) of the file upload to retrieve.\"),\n});\nexport const NotionRetrieveFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload.\").nullable(),\n object: z.string().describe(\"Always 'file_upload'. Object type identifier.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current upload state. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file with extension added based on content_type if needed. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Endpoint for sending file contents. Only present for pending uploads.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveFileUpload = action(\"NOTION_RETRIEVE_FILE_UPLOAD\", {\n slug: \"notion-retrieve-file-upload\",\n name: \"Retrieve Notion file upload\",\n description: \"Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or details of an existing file upload.\",\n input: NotionRetrieveFileUploadInput,\n output: NotionRetrieveFileUploadOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-file-upload.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 NotionRetrieveFileUploadInput = z.object({\n file_upload_id: z.string().describe(\"The unique identifier (UUID) of the file upload to retrieve.\"),\n});\nexport const NotionRetrieveFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload.\").nullable(),\n object: z.string().describe(\"Always 'file_upload'. Object type identifier.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current upload state. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file with extension added based on content_type if needed. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Endpoint for sending file contents. Only present for pending uploads.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveFileUpload: AppAction<\n typeof NotionRetrieveFileUploadInput,\n typeof NotionRetrieveFileUploadOutput,\n typeof notion.credential\n> = action(\"NOTION_RETRIEVE_FILE_UPLOAD\", {\n slug: \"notion-retrieve-file-upload\",\n name: \"Retrieve Notion file upload\",\n description: \"Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or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2DAA2D,CAAC,CAAC,SAAS;CAC5G,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9N,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,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/retrieve-file-upload.d.ts
|
|
@@ -23,21 +25,7 @@ declare const NotionRetrieveFileUploadOutput: z.ZodObject<{
|
|
|
23
25
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
24
26
|
file_import_result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const notionRetrieveFileUpload:
|
|
27
|
-
file_upload_id: string;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
accessToken: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
accessToken: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const notionRetrieveFileUpload: AppAction<typeof NotionRetrieveFileUploadInput, typeof NotionRetrieveFileUploadOutput, typeof notion.credential>;
|
|
41
29
|
//#endregion
|
|
42
30
|
export { notionRetrieveFileUpload };
|
|
43
31
|
//# sourceMappingURL=retrieve-file-upload.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.d.cts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.d.cts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/retrieve-file-upload.d.ts
|
|
@@ -23,21 +25,7 @@ declare const NotionRetrieveFileUploadOutput: z.ZodObject<{
|
|
|
23
25
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
24
26
|
file_import_result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const notionRetrieveFileUpload:
|
|
27
|
-
file_upload_id: string;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
accessToken: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
accessToken: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const notionRetrieveFileUpload: AppAction<typeof NotionRetrieveFileUploadInput, typeof NotionRetrieveFileUploadOutput, typeof notion.credential>;
|
|
41
29
|
//#endregion
|
|
42
30
|
export { notionRetrieveFileUpload };
|
|
43
31
|
//# sourceMappingURL=retrieve-file-upload.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.d.mts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.d.mts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.mjs","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveFileUploadInput = z.object({\n file_upload_id: z.string().describe(\"The unique identifier (UUID) of the file upload to retrieve.\"),\n});\nexport const NotionRetrieveFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload.\").nullable(),\n object: z.string().describe(\"Always 'file_upload'. Object type identifier.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current upload state. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file with extension added based on content_type if needed. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Endpoint for sending file contents. Only present for pending uploads.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveFileUpload = action(\"NOTION_RETRIEVE_FILE_UPLOAD\", {\n slug: \"notion-retrieve-file-upload\",\n name: \"Retrieve Notion file upload\",\n description: \"Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or details of an existing file upload.\",\n input: NotionRetrieveFileUploadInput,\n output: NotionRetrieveFileUploadOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.mjs","names":[],"sources":["../../src/actions/retrieve-file-upload.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 NotionRetrieveFileUploadInput = z.object({\n file_upload_id: z.string().describe(\"The unique identifier (UUID) of the file upload to retrieve.\"),\n});\nexport const NotionRetrieveFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload.\").nullable(),\n object: z.string().describe(\"Always 'file_upload'. Object type identifier.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current upload state. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file with extension added based on content_type if needed. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Endpoint for sending file contents. Only present for pending uploads.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveFileUpload: AppAction<\n typeof NotionRetrieveFileUploadInput,\n typeof NotionRetrieveFileUploadOutput,\n typeof notion.credential\n> = action(\"NOTION_RETRIEVE_FILE_UPLOAD\", {\n slug: \"notion-retrieve-file-upload\",\n name: \"Retrieve Notion file upload\",\n description: \"Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or details of an existing file upload.\",\n input: NotionRetrieveFileUploadInput,\n output: NotionRetrieveFileUploadOutput,\n});\n"],"mappings":";;;AAwBA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B2C,EAAE,OAAO,EACpD,gBAAgB,EAAE,OAAO,CAA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"],"sources":["../../src/actions/retrieve-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrievePageInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.\"),\n});\nconst NotionRetrievePage_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"ID of the custom emoji.\").nullable().optional(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionRetrievePage_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileSchema = z.object({\n file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserRefSchema = z.object({\n id: z.string().describe(\"User ID of the bot owner.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserSchema = z.object({\n type: z.string().nullable(),\n user: NotionRetrievePage_BotOwnerUserRefSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_BotDetailsSchema = z.object({\n owner: z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrievePageOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionRetrievePage_EmojiObjectSchema, NotionRetrievePage_CustomEmojiIconSchema, NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionRetrievePage_ParentDataSourceSchema, NotionRetrievePage_ParentDatabaseSchema, NotionRetrievePage_ParentPageSchema, NotionRetrievePage_ParentWorkspaceSchema, NotionRetrievePage_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionRetrievePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\").nullable(),\n last_edited_by: NotionRetrievePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Response for retrieving a Notion page. Returns the complete Page object including\\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\\n\\nNote: This endpoint returns page properties and metadata only, not page content.\\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\\nProperties with more than 25 references may not return complete values; use\\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.\");\n\nexport const notionRetrievePage = action(\"NOTION_RETRIEVE_PAGE\", {\n slug: \"notion-retrieve-page\",\n name: \"Retrieve page\",\n description: \"Retrieve a Notion page's properties/metadata (not block content) by page_id. Use when you have a page URL/ID and need to access its properties; for page content use block-children tools.\",\n input: NotionRetrievePageInput,\n output: NotionRetrievePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,EACjgB,CAAC;AACD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,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C,CAAC,SAAS;CAC3C,YAAY,qCAAqC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gIAAgI;CACvL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC1G,gBAAgB,qCAAqC,SAAS;CAC9D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,seAAse;AAEhgB,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"retrieve-page.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-page.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 NotionRetrievePageInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.\"),\n});\nconst NotionRetrievePage_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"ID of the custom emoji.\").nullable().optional(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionRetrievePage_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileSchema = z.object({\n file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserRefSchema = z.object({\n id: z.string().describe(\"User ID of the bot owner.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserSchema = z.object({\n type: z.string().nullable(),\n user: NotionRetrievePage_BotOwnerUserRefSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_BotDetailsSchema = z.object({\n owner: z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrievePageOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionRetrievePage_EmojiObjectSchema, NotionRetrievePage_CustomEmojiIconSchema, NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionRetrievePage_ParentDataSourceSchema, NotionRetrievePage_ParentDatabaseSchema, NotionRetrievePage_ParentPageSchema, NotionRetrievePage_ParentWorkspaceSchema, NotionRetrievePage_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionRetrievePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\").nullable(),\n last_edited_by: NotionRetrievePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Response for retrieving a Notion page. Returns the complete Page object including\\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\\n\\nNote: This endpoint returns page properties and metadata only, not page content.\\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\\nProperties with more than 25 references may not return complete values; use\\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.\");\n\nexport const notionRetrievePage: AppAction<\n typeof NotionRetrievePageInput,\n typeof NotionRetrievePageOutput,\n typeof notion.credential\n> = action(\"NOTION_RETRIEVE_PAGE\", {\n slug: \"notion-retrieve-page\",\n name: \"Retrieve page\",\n description: \"Retrieve a Notion page's properties/metadata (not block content) by page_id. Use when you have a page URL/ID and need to access its properties; for page content use block-children tools.\",\n input: NotionRetrievePageInput,\n output: NotionRetrievePageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,EACjgB,CAAC;AACD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,cAAc,4CAA4C,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO,EAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,E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AAC,SAAS;CAC1G,gBAAgB,qCAAqC,SAAS;CAC9D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,seAAse;AAEhgB,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,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/retrieve-page.d.ts
|
|
@@ -137,21 +139,7 @@ declare const NotionRetrievePageOutput: z.ZodObject<{
|
|
|
137
139
|
}, z.core.$loose>>;
|
|
138
140
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
139
141
|
}, z.core.$loose>;
|
|
140
|
-
declare const notionRetrievePage:
|
|
141
|
-
page_id: string;
|
|
142
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
143
|
-
connectionId: z.ZodString;
|
|
144
|
-
entityId: z.ZodString;
|
|
145
|
-
instanceId: z.ZodString;
|
|
146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
-
accessToken: z.ZodString;
|
|
148
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
149
|
-
connectionId: z.ZodString;
|
|
150
|
-
entityId: z.ZodString;
|
|
151
|
-
instanceId: z.ZodString;
|
|
152
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
-
accessToken: z.ZodString;
|
|
154
|
-
}, z.core.$strip>>]>;
|
|
142
|
+
declare const notionRetrievePage: AppAction<typeof NotionRetrievePageInput, typeof NotionRetrievePageOutput, typeof notion.credential>;
|
|
155
143
|
//#endregion
|
|
156
144
|
export { notionRetrievePage };
|
|
157
145
|
//# sourceMappingURL=retrieve-page.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-page.d.cts","names":[],"sources":["../../src/actions/retrieve-page.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-page.d.cts","names":[],"sources":["../../src/actions/retrieve-page.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cA2FvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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/retrieve-page.d.ts
|
|
@@ -137,21 +139,7 @@ declare const NotionRetrievePageOutput: z.ZodObject<{
|
|
|
137
139
|
}, z.core.$loose>>;
|
|
138
140
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
139
141
|
}, z.core.$loose>;
|
|
140
|
-
declare const notionRetrievePage:
|
|
141
|
-
page_id: string;
|
|
142
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
143
|
-
connectionId: z.ZodString;
|
|
144
|
-
entityId: z.ZodString;
|
|
145
|
-
instanceId: z.ZodString;
|
|
146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
-
accessToken: z.ZodString;
|
|
148
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
149
|
-
connectionId: z.ZodString;
|
|
150
|
-
entityId: z.ZodString;
|
|
151
|
-
instanceId: z.ZodString;
|
|
152
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
-
accessToken: z.ZodString;
|
|
154
|
-
}, z.core.$strip>>]>;
|
|
142
|
+
declare const notionRetrievePage: AppAction<typeof NotionRetrievePageInput, typeof NotionRetrievePageOutput, typeof notion.credential>;
|
|
155
143
|
//#endregion
|
|
156
144
|
export { notionRetrievePage };
|
|
157
145
|
//# sourceMappingURL=retrieve-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-page.d.mts","names":[],"sources":["../../src/actions/retrieve-page.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-page.d.mts","names":[],"sources":["../../src/actions/retrieve-page.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cA2FvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-page.mjs","names":[],"sources":["../../src/actions/retrieve-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrievePageInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.\"),\n});\nconst NotionRetrievePage_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"ID of the custom emoji.\").nullable().optional(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionRetrievePage_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileSchema = z.object({\n file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserRefSchema = z.object({\n id: z.string().describe(\"User ID of the bot owner.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserSchema = z.object({\n type: z.string().nullable(),\n user: NotionRetrievePage_BotOwnerUserRefSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_BotDetailsSchema = z.object({\n owner: z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrievePageOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionRetrievePage_EmojiObjectSchema, NotionRetrievePage_CustomEmojiIconSchema, NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionRetrievePage_ParentDataSourceSchema, NotionRetrievePage_ParentDatabaseSchema, NotionRetrievePage_ParentPageSchema, NotionRetrievePage_ParentWorkspaceSchema, NotionRetrievePage_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionRetrievePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\").nullable(),\n last_edited_by: NotionRetrievePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Response for retrieving a Notion page. Returns the complete Page object including\\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\\n\\nNote: This endpoint returns page properties and metadata only, not page content.\\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\\nProperties with more than 25 references may not return complete values; use\\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.\");\n\nexport const notionRetrievePage = action(\"NOTION_RETRIEVE_PAGE\", {\n slug: \"notion-retrieve-page\",\n name: \"Retrieve page\",\n description: \"Retrieve a Notion page's properties/metadata (not block content) by page_id. Use when you have a page URL/ID and need to access its properties; for page content use block-children tools.\",\n input: NotionRetrievePageInput,\n output: NotionRetrievePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,EACjgB,CAAC;AACD,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,cAAc,4CAA4C,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO,EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC1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C,SAAS;EACzP,OAAO,EAAE,MAAM;GAAC;GAA6C;GAA+C;EAAuC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,QAAQ,EAAE,MAAM;GAAC;GAA2C;GAAyC;GAAqC;GAA0C;EAAoC,CAAC;EACzN,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,YAAY,qCAAqC,SAAS;EAC1D,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gIAAgI;EACvL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC1G,gBAAgB,qCAAqC,SAAS;EAC9D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,seAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"retrieve-page.mjs","names":[],"sources":["../../src/actions/retrieve-page.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 NotionRetrievePageInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.\"),\n});\nconst NotionRetrievePage_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"ID of the custom emoji.\").nullable().optional(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionRetrievePage_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileSchema = z.object({\n file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserRefSchema = z.object({\n id: z.string().describe(\"User ID of the bot owner.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserSchema = z.object({\n type: z.string().nullable(),\n user: NotionRetrievePage_BotOwnerUserRefSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_BotDetailsSchema = z.object({\n owner: z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrievePageOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionRetrievePage_EmojiObjectSchema, NotionRetrievePage_CustomEmojiIconSchema, NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionRetrievePage_ParentDataSourceSchema, NotionRetrievePage_ParentDatabaseSchema, NotionRetrievePage_ParentPageSchema, NotionRetrievePage_ParentWorkspaceSchema, NotionRetrievePage_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionRetrievePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\").nullable(),\n last_edited_by: NotionRetrievePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Response for retrieving a Notion page. Returns the complete Page object including\\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\\n\\nNote: This endpoint returns page properties and metadata only, not page content.\\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\\nProperties with more than 25 references may not return complete values; use\\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.\");\n\nexport const notionRetrievePage: AppAction<\n typeof NotionRetrievePageInput,\n typeof NotionRetrievePageOutput,\n typeof notion.credential\n> = action(\"NOTION_RETRIEVE_PAGE\", {\n slug: \"notion-retrieve-page\",\n name: \"Retrieve page\",\n description: \"Retrieve a Notion page's properties/metadata (not block content) by page_id. Use when you have a page URL/ID and need to access its properties; for page content use block-children tools.\",\n input: NotionRetrievePageInput,\n output: NotionRetrievePageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,EACjgB,CAAC;AACD,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;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