@keystrokehq/notion 0.1.3 → 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 +11 -27
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +11 -27
- 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 +5 -94
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +5 -94
- 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 +5 -49
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +5 -49
- 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 +5 -209
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +5 -209
- 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 +5 -36
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +5 -36
- 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 +5 -100
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +5 -100
- 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 +5 -184
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +5 -184
- 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 -4
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +3 -4
- 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 +11 -23
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +11 -23
- 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 +5 -13
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +5 -13
- 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 -7
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +3 -7
- 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 -7
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +3 -7
- 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 +43 -43
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +43 -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 -5
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +3 -5
- 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 -8
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +3 -8
- 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 -5
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +3 -5
- 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 +42 -42
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +42 -42
- 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 +7 -10
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +7 -10
- 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 +29 -34
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +29 -34
- 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 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +3 -3
- 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 +5 -5
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +5 -5
- 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 +4 -4
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +4 -4
- 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 -4
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +3 -4
- 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 -6
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +3 -6
- 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 +13 -33
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +13 -33
- 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 -6
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +3 -6
- 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 -5
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +3 -5
- 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 -4
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +3 -4
- 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 +5 -6
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +5 -6
- 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 -12
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +3 -12
- 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 +8 -21
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +8 -21
- 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 -16
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +3 -16
- 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 -10
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +3 -10
- 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 -642
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +3 -642
- 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 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +3 -3
- 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 -4
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +3 -4
- 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 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +3 -3
- 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 +5 -5
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +5 -5
- 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 +25 -32
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +25 -32
- 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 -10
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +3 -10
- 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 -7
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +3 -7
- 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 -7
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +3 -7
- 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 +5 -14
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +5 -14
- 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 +5 -16
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +5 -16
- 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 -124
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +3 -124
- 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 +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- 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":"fetch-database.d.cts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-database.d.cts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { notion } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-database.d.ts
|
|
@@ -87,9 +89,7 @@ declare const NotionFetchDatabaseOutput: z.ZodObject<{
|
|
|
87
89
|
}, z.core.$loose>>>;
|
|
88
90
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
89
91
|
}, z.core.$loose>;
|
|
90
|
-
declare const notionFetchDatabase:
|
|
91
|
-
database_id: string;
|
|
92
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
92
|
+
declare const notionFetchDatabase: AppAction<typeof NotionFetchDatabaseInput, typeof NotionFetchDatabaseOutput, typeof notion.credential>;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { notionFetchDatabase };
|
|
95
95
|
//# sourceMappingURL=fetch-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-database.d.mts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-database.d.mts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-database.mjs","names":[],"sources":["../../src/actions/fetch-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchDatabaseInput = z.object({\n database_id: z.string().describe(\"Required. The unique identifier of the Notion database in UUID format (e.g., '2ec43c10-7ecd-8159-a8f4-ff16630df66c') or unhyphenated 32-char hex (e.g., '2ec43c107ecd8159a8f4ff16630df66c'). Must be a DATABASE ID, not a page ID. Linked databases are NOT supported - use the original source database ID. To find database IDs: use NOTION_SEARCH_NOTION_PAGE with filter_value='database', or extract from database URLs (notion.so/{database_id}).\"),\n});\nconst NotionFetchDatabase_IconSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n}).passthrough().describe(\"Icon object for the database.\");\nconst NotionFetchDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the cover image.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionFetchDatabase_CoverSchema = z.object({\n file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionFetchDatabase_ExternalFileSchema.nullable().optional(),\n}).passthrough().describe(\"Cover image object for the database.\");\nconst NotionFetchDatabase_LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().describe(\"Link object for text content.\");\nconst NotionFetchDatabase_TextContentSchema = z.object({\n link: NotionFetchDatabase_LinkSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content object for rich text.\");\nconst NotionFetchDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text (e.g., 'default', 'blue', 'green_background').\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italicized.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling properties for rich text.\");\nconst NotionFetchDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL if the text is a link, or null.\").nullable().optional(),\n text: NotionFetchDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionFetchDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for database title and description.\");\nconst NotionFetchDatabase_ParentSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page when type is 'page_id'.\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block when type is 'block_id'.\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Parent location of the database (page, workspace, or block).\");\nconst NotionFetchDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n object: z.string().describe(\"Always 'user'. Identifies this as a user object.\").nullable(),\n}).passthrough().describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchDatabase_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\").nullable(),\n name: z.string().describe(\"Display name of the data source.\").nullable(),\n}).passthrough().describe(\"Child data source object.\");\nexport const NotionFetchDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database in UUID format (36 characters).\").nullable(),\n url: z.string().describe(\"The URL of the database in the Notion workspace.\").nullable(),\n icon: NotionFetchDatabase_IconSchema.nullable().optional(),\n cover: NotionFetchDatabase_CoverSchema.nullable().optional(),\n title: z.array(NotionFetchDatabase_RichTextObjectSchema).describe(\"Array of rich text objects representing the database name/title.\"),\n object: z.string().describe(\"Always 'database'. Identifies this as a database object.\").nullable(),\n parent: NotionFetchDatabase_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database has been archived. Not present in API version 2025-09-03.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database has been moved to the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed as an inline block (true) or full-page database (false).\").nullable(),\n is_locked: z.boolean().describe(\"Whether the database is locked for editing. Present in API version 2025-09-03.\").nullable().optional(),\n created_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema as a map from property name to property schema object. Each property defines a column in the database with its type and configuration (e.g., select options, formula expression). Present in API version 2022-06-28.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly shared URL of the database if it has been published to the web, or null.\").nullable().optional(),\n description: z.array(NotionFetchDatabase_RichTextObjectSchema).describe(\"Array of rich text objects representing the database description.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n data_sources: z.array(NotionFetchDatabase_DataSourceSchema).describe(\"Array of child data source objects. For single-source databases, this contains one entry. Use the data source ID with /v1/data_sources APIs to query database contents or retrieve schema properties. Present in API version 2025-09-03.\").nullable().optional(),\n last_edited_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionFetchDatabase = action(\"NOTION_FETCH_DATABASE\", {\n slug: \"notion-fetch-database\",\n name: \"Fetch Database\",\n description: \"Fetches a Notion database's structural metadata (properties, title, etc.) via its `database_id`, not the data entries; `database_id` must reference an existing database.\",\n input: Not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AAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EACvI,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACtE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnT,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrU,gBAAgB,sCAAsC,SAAS,CAAC,CAAC,SAAS;EAC1E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-database.mjs","names":[],"sources":["../../src/actions/fetch-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionFetchDatabaseInput = z.object({\n database_id: z.string().describe(\"Required. The unique identifier of the Notion database in UUID format (e.g., '2ec43c10-7ecd-8159-a8f4-ff16630df66c') or unhyphenated 32-char hex (e.g., '2ec43c107ecd8159a8f4ff16630df66c'). Must be a DATABASE ID, not a page ID. Linked databases are NOT supported - use the original source database ID. To find database IDs: use NOTION_SEARCH_NOTION_PAGE with filter_value='database', or extract from database URLs (notion.so/{database_id}).\"),\n});\nconst NotionFetchDatabase_IconSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'file_upload'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n}).passthrough().describe(\"Icon object for the database.\");\nconst NotionFetchDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"External URL of the cover image.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionFetchDatabase_CoverSchema = z.object({\n file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionFetchDatabase_ExternalFileSchema.nullable().optional(),\n}).passthrough().describe(\"Cover image object for the database.\");\nconst NotionFetchDatabase_LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).passthrough().describe(\"Link object for text content.\");\nconst NotionFetchDatabase_TextContentSchema = z.object({\n link: NotionFetchDatabase_LinkSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content object for rich text.\");\nconst NotionFetchDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text (e.g., 'default', 'blue', 'green_background').\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italicized.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling properties for rich text.\");\nconst NotionFetchDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL if the text is a link, or null.\").nullable().optional(),\n text: NotionFetchDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Plain text representation without formatting.\").nullable(),\n annotations: NotionFetchDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for database title and description.\");\nconst NotionFetchDatabase_ParentSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page when type is 'page_id'.\").nullable().optional(),\n block_id: z.string().describe(\"UUID of the parent block when type is 'block_id'.\").nullable().optional(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Parent location of the database (page, workspace, or block).\");\nconst NotionFetchDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\").nullable(),\n object: z.string().describe(\"Always 'user'. Identifies this as a user object.\").nullable(),\n}).passthrough().describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchDatabase_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\").nullable(),\n name: z.string().describe(\"Display name of the data source.\").nullable(),\n}).passthrough().describe(\"Child data source object.\");\nexport const NotionFetchDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database in UUID format (36 characters).\").nullable(),\n url: z.string().describe(\"The URL of the database in the Notion workspace.\").nullable(),\n icon: NotionFetchDatabase_IconSchema.nullable().optional(),\n cover: NotionFetchDatabase_CoverSchema.nullable().optional(),\n title: z.array(NotionFetchDatabase_RichTextObjectSchema).describe(\"Array of rich text objects representing the database name/title.\"),\n object: z.string().describe(\"Always 'database'. Identifies this as a database object.\").nullable(),\n parent: NotionFetchDatabase_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the database has been archived. Not present in API version 2025-09-03.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database has been moved to the trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed as an inline block (true) or full-page database (false).\").nullable(),\n is_locked: z.boolean().describe(\"Whether the database is locked for editing. Present in API version 2025-09-03.\").nullable().optional(),\n created_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema as a map from property name to property schema object. Each property defines a column in the database with its type and configuration (e.g., select options, formula expression). Present in API version 2022-06-28.\").nullable().optional(),\n public_url: z.string().describe(\"The publicly shared URL of the database if it has been published to the web, or null.\").nullable().optional(),\n description: z.array(NotionFetchDatabase_RichTextObjectSchema).describe(\"Array of rich text objects representing the database description.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the database was created.\").nullable(),\n data_sources: z.array(NotionFetchDatabase_DataSourceSchema).describe(\"Array of child data source objects. For single-source databases, this contains one entry. Use the data source ID with /v1/data_sources APIs to query database contents or retrieve schema properties. Present in API version 2025-09-03.\").nullable().optional(),\n last_edited_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionFetchDatabase: AppAction<\n typeof NotionFetchDatabaseInput,\n typeof NotionFetchDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_FETCH_DATABASE\", {\n slug: \"notion-fetch-database\",\n name: \"Fetch Database\",\n description: \"Fetches a Notion database's structural metadata (properties, title, etc.) via its `database_id`, not the data entries; `database_id` must reference an existing database.\",\n input: NotionFetchDatabaseInput,\n output: NotionFetchDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,aAAa,EAAE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CAAC,CAAC,SAAS;EAC7F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EACvI,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACtE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnT,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrU,gBAAgB,sCAAsC,SAAS,CAAC,CAAC,SAAS;EAC1E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-row.cjs","names":["z","action"],"sources":["../../src/actions/fetch-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchRowInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_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 NotionFetchRow_FileObjectFileSchema = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_BotOwnerWorkspaceSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\").nullable(),\n}).passthrough().describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).passthrough().describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough().describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).passthrough().describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionFetchRow_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: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionFetchRowOutput = 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([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_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: NotionFetchRow_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: NotionFetchRow_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(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,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,CAAC,CAAC,SAAS,uBAAuB;AACj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ction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionFetchRowInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_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 NotionFetchRow_FileObjectFileSchema = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_BotOwnerWorkspaceSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\").nullable(),\n}).passthrough().describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).passthrough().describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough().describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).passthrough().describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionFetchRow_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: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionFetchRowOutput = 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([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_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: NotionFetchRow_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: NotionFetchRow_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(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow: AppAction<\n typeof NotionFetchRowInput,\n typeof NotionFetchRowOutput,\n typeof notion.credential\n> = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC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AC,SAAS;CAC1G,gBAAgB,iCAAiC,SAAS;CAC1D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qQAAqQ;AAE/R,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,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/fetch-row.d.ts
|
|
@@ -98,8 +100,8 @@ declare const NotionFetchRowOutput: z.ZodObject<{
|
|
|
98
100
|
}, z.core.$loose>>>;
|
|
99
101
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
102
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
101
|
-
bot: "bot";
|
|
102
103
|
person: "person";
|
|
104
|
+
bot: "bot";
|
|
103
105
|
}>>>;
|
|
104
106
|
object: z.ZodNullable<z.ZodString>;
|
|
105
107
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -138,8 +140,8 @@ declare const NotionFetchRowOutput: z.ZodObject<{
|
|
|
138
140
|
}, z.core.$loose>>>;
|
|
139
141
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
142
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
141
|
-
bot: "bot";
|
|
142
143
|
person: "person";
|
|
144
|
+
bot: "bot";
|
|
143
145
|
}>>>;
|
|
144
146
|
object: z.ZodNullable<z.ZodString>;
|
|
145
147
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -149,9 +151,7 @@ declare const NotionFetchRowOutput: z.ZodObject<{
|
|
|
149
151
|
}, z.core.$loose>>;
|
|
150
152
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
151
153
|
}, z.core.$loose>;
|
|
152
|
-
declare const notionFetchRow:
|
|
153
|
-
page_id: string;
|
|
154
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
154
|
+
declare const notionFetchRow: AppAction<typeof NotionFetchRowInput, typeof NotionFetchRowOutput, typeof notion.credential>;
|
|
155
155
|
//#endregion
|
|
156
156
|
export { notionFetchRow };
|
|
157
157
|
//# sourceMappingURL=fetch-row.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-row.d.cts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-row.d.cts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cA+FnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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/fetch-row.d.ts
|
|
@@ -98,8 +100,8 @@ declare const NotionFetchRowOutput: z.ZodObject<{
|
|
|
98
100
|
}, z.core.$loose>>>;
|
|
99
101
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
102
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
101
|
-
bot: "bot";
|
|
102
103
|
person: "person";
|
|
104
|
+
bot: "bot";
|
|
103
105
|
}>>>;
|
|
104
106
|
object: z.ZodNullable<z.ZodString>;
|
|
105
107
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -138,8 +140,8 @@ declare const NotionFetchRowOutput: z.ZodObject<{
|
|
|
138
140
|
}, z.core.$loose>>>;
|
|
139
141
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
142
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
141
|
-
bot: "bot";
|
|
142
143
|
person: "person";
|
|
144
|
+
bot: "bot";
|
|
143
145
|
}>>>;
|
|
144
146
|
object: z.ZodNullable<z.ZodString>;
|
|
145
147
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -149,9 +151,7 @@ declare const NotionFetchRowOutput: z.ZodObject<{
|
|
|
149
151
|
}, z.core.$loose>>;
|
|
150
152
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
151
153
|
}, z.core.$loose>;
|
|
152
|
-
declare const notionFetchRow:
|
|
153
|
-
page_id: string;
|
|
154
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
154
|
+
declare const notionFetchRow: AppAction<typeof NotionFetchRowInput, typeof NotionFetchRowOutput, typeof notion.credential>;
|
|
155
155
|
//#endregion
|
|
156
156
|
export { notionFetchRow };
|
|
157
157
|
//# sourceMappingURL=fetch-row.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-row.d.mts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-row.d.mts","names":[],"sources":["../../src/actions/fetch-row.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cA+FnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-row.mjs","names":[],"sources":["../../src/actions/fetch-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionFetchRowInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_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 NotionFetchRow_FileObjectFileSchema = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_BotOwnerWorkspaceSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\").nullable(),\n}).passthrough().describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).passthrough().describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough().describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).passthrough().describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionFetchRow_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: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionFetchRowOutput = 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([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_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: NotionFetchRow_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: NotionFetchRow_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(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"m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AAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjE,MAAM,EAAE,MAAM;GAAC;GAAkC;GAAsC;GAAyC;GAA2C;EAAmC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrO,OAAO,EAAE,MAAM;GAAC;GAAyC;GAA2C;EAAmC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,QAAQ,EAAE,MAAM;GAAC;GAAuC;GAAqC;GAAiC;GAAsC;EAAgC,CAAC;EACrM,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,iCAAiC,SAAS;EACtD,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,iCAAiC,SAAS;EAC1D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qQAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-row.mjs","names":[],"sources":["../../src/actions/fetch-row.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 NotionFetchRowInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page (which represents a row in a database) to retrieve. Must be a page ID, not a database ID. Each row in a Notion database is a page. Use actions like NOTION_FETCH_DATA or NOTION_QUERY_DATABASE to get page IDs from databases.\"),\n});\nconst NotionFetchRow_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\").nullable(),\n url: z.string().describe(\"URL to the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionFetchRow_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 NotionFetchRow_FileObjectFileSchema = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionFetchRow_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionFetchRow_BotOwnerWorkspaceSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\").nullable(),\n}).passthrough().describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).passthrough().describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user - always 'person' for bot owners.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough().describe(\"Simplified user details for bot owner to avoid circular reference.\\n\\nWhen a bot is owned by a user, this contains the basic info of that user.\");\nconst NotionFetchRow_BotOwnerUserSchema = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).passthrough().describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema = z.object({\n owner: z.union([NotionFetchRow_BotOwnerWorkspaceSchema, NotionFetchRow_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"ID of bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Workspace name if owner type is workspace; null otherwise.\").nullable().optional(),\n workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionFetchRow_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: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionFetchRowOutput = 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([NotionFetchRow_EmojiObjectSchema, NotionFetchRow_CustomEmojiIconSchema, NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionFetchRow_FileObjectExternalSchema, NotionFetchRow_FileObjectFileUploadSchema, NotionFetchRow_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_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: NotionFetchRow_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: NotionFetchRow_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(\"NOTION_FETCH_ROW - Response Schema\\n\\nResponse for fetching a Notion database row (page). Returns the page object directly\\nfrom the Notion API without additional wrapping, preserving all fields and structures\\nfrom Notion's official Retrieve a Page response.\");\n\nexport const notionFetchRow: AppAction<\n typeof NotionFetchRowInput,\n typeof NotionFetchRowOutput,\n typeof notion.credential\n> = action(\"NOTION_FETCH_ROW\", {\n slug: \"notion-fetch-row\",\n name: \"Fetch database row\",\n description: \"Retrieves a Notion database row's properties and metadata; use fetch_block_contents for page content blocks.\",\n input: NotionFetchRowInput,\n output: NotionFetchRowOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC3R,CAAC;AACD,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS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zD,QAAQ,EAAE,MAAM;GAAC;GAAuC;GAAqC;GAAiC;GAAsC;EAAgC,CAAC;EACrM,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,iCAAiC,SAAS;EACtD,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,iCAAiC,SAAS;EAC1D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qQAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-about-user.cjs","names":["z","action"],"sources":["../../src/actions/get-about-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetAboutUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_NestedPersonUserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\").nullable(),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\").nullable(),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotInfoSchema = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nexport const NotionGetAboutUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for this user.\").nullable(),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\").nullable(),\n object: z.string().describe(\"Always the string \\\"user\\\".\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n}).passthrough();\n\nexport const notionGetAboutUser = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-about-user.cjs","names":["z","action"],"sources":["../../src/actions/get-about-user.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 NotionGetAboutUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_NestedPersonUserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\").nullable(),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\").nullable(),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotInfoSchema = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nexport const NotionGetAboutUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for this user.\").nullable(),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\").nullable(),\n object: z.string().describe(\"Always the string \\\"user\\\".\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n}).passthrough();\n\nexport const notionGetAboutUser: AppAction<\n typeof NotionGetAboutUserInput,\n typeof NotionGetAboutUserOutput,\n typeof notion.credential\n> = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAChK,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SA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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,kBAAkB,yCAAyC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,KAAK,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClQ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { notion } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-about-user.d.ts
|
|
@@ -32,8 +34,8 @@ declare const NotionGetAboutUserOutput: z.ZodObject<{
|
|
|
32
34
|
}, z.core.$loose>>>;
|
|
33
35
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
type: z.ZodNullable<z.ZodEnum<{
|
|
35
|
-
bot: "bot";
|
|
36
37
|
person: "person";
|
|
38
|
+
bot: "bot";
|
|
37
39
|
}>>;
|
|
38
40
|
object: z.ZodNullable<z.ZodString>;
|
|
39
41
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -42,9 +44,7 @@ declare const NotionGetAboutUserOutput: z.ZodObject<{
|
|
|
42
44
|
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
45
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const notionGetAboutUser:
|
|
46
|
-
user_id: string;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
47
|
+
declare const notionGetAboutUser: AppAction<typeof NotionGetAboutUserInput, typeof NotionGetAboutUserOutput, typeof notion.credential>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { notionGetAboutUser };
|
|
50
50
|
//# sourceMappingURL=get-about-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-about-user.d.cts","names":[],"sources":["../../src/actions/get-about-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-about-user.d.cts","names":[],"sources":["../../src/actions/get-about-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWxB,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/get-about-user.d.ts
|
|
@@ -32,8 +34,8 @@ declare const NotionGetAboutUserOutput: z.ZodObject<{
|
|
|
32
34
|
}, z.core.$loose>>>;
|
|
33
35
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
type: z.ZodNullable<z.ZodEnum<{
|
|
35
|
-
bot: "bot";
|
|
36
37
|
person: "person";
|
|
38
|
+
bot: "bot";
|
|
37
39
|
}>>;
|
|
38
40
|
object: z.ZodNullable<z.ZodString>;
|
|
39
41
|
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -42,9 +44,7 @@ declare const NotionGetAboutUserOutput: z.ZodObject<{
|
|
|
42
44
|
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
45
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const notionGetAboutUser:
|
|
46
|
-
user_id: string;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
47
|
+
declare const notionGetAboutUser: AppAction<typeof NotionGetAboutUserInput, typeof NotionGetAboutUserOutput, typeof notion.credential>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { notionGetAboutUser };
|
|
50
50
|
//# sourceMappingURL=get-about-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-about-user.d.mts","names":[],"sources":["../../src/actions/get-about-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-about-user.d.mts","names":[],"sources":["../../src/actions/get-about-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-about-user.mjs","names":[],"sources":["../../src/actions/get-about-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetAboutUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_NestedPersonUserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\").nullable(),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\").nullable(),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotInfoSchema = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nexport const NotionGetAboutUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for this user.\").nullable(),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\").nullable(),\n object: z.string().describe(\"Always the string \\\"user\\\".\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n}).passthrough();\n\nexport const notionGetAboutUser = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-about-user.mjs","names":[],"sources":["../../src/actions/get-about-user.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 NotionGetAboutUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the Notion user whose details are to be retrieved. This ID is used to fetch specific user information.\"),\n});\nconst NotionGetAboutUser_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of the person. Only present if the integration has user capabilities that allow access to email addresses.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_NestedPersonUserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the person who authorized the integration.\").nullable(),\n name: z.string().describe(\"Person’s display name, if available.\").nullable().optional(),\n type: z.string().describe(\"Type of nested user; for an authorizing human this is \\\"person\\\".\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\" for the nested user object.\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the person's avatar image, if set.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner for this bot.\").nullable(),\n user: NotionGetAboutUser_NestedPersonUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Present and true when the owner.type is \\\"workspace\\\".\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum allowable size for a file upload in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionGetAboutUser_BotInfoSchema = z.object({\n owner: NotionGetAboutUser_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"Identifier of the bot's workspace, when available.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot when owner.type is \\\"workspace\\\". If owner.type is \\\"user\\\", this is null.\").nullable().optional(),\n workspace_limits: NotionGetAboutUser_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nexport const NotionGetAboutUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for this user.\").nullable(),\n bot: NotionGetAboutUser_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"User's display name. May be null or omitted.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of the user; \\\"person\\\" or \\\"bot\\\".\").nullable(),\n object: z.string().describe(\"Always the string \\\"user\\\".\").nullable(),\n person: NotionGetAboutUser_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image, if set.\").nullable().optional(),\n request_id: z.string().describe(\"The unique identifier for the API request that produced this response, when provided by client tooling or middleware. Not part of the official Notion response body but observed in some tool responses.\").nullable().optional(),\n}).passthrough();\n\nexport const notionGetAboutUser: AppAction<\n typeof NotionGetAboutUserInput,\n typeof NotionGetAboutUserOutput,\n typeof notion.credential\n> = action(\"NOTION_GET_ABOUT_USER\", {\n slug: \"notion-get-about-user\",\n name: \"Get about user\",\n description: \"Retrieves detailed information about a specific Notion user, such as their name, avatar, and email, based on their unique user ID.\",\n input: NotionGetAboutUserInput,\n output: NotionGetAboutUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAChK,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO,EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7K,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,KAAK,CAAC,aAAa,MAAM,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACz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AAC,SAAS,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClQ,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-page-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-page-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetPageMarkdownInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead.\"),\n include_transcript: z.boolean().describe(\"Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.\").optional(),\n});\nexport const NotionGetPageMarkdownOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always \\\"page_markdown\\\".\").nullable(),\n markdown: z.string().describe(\"Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs.\").nullable(),\n truncated: z.boolean().describe(\"Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown.\").nullable(),\n unknown_block_ids: z.array(z.string()).describe(\"Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.\"),\n}).passthrough().describe(\"Response for retrieving a Notion page's content as Notion-flavored Markdown.\\nReturns the full page content rendered as markdown in a single API call.\");\n\nexport const notionGetPageMarkdown = action(\"NOTION_GET_PAGE_MARKDOWN\", {\n slug: \"notion-get-page-markdown\",\n name: \"Get page markdown\",\n description: \"Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.\",\n input: NotionGetPageMarkdownInput,\n output: NotionGetPageMarkdownOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-page-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-page-markdown.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 NotionGetPageMarkdownInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead.\"),\n include_transcript: z.boolean().describe(\"Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.\").optional(),\n});\nexport const NotionGetPageMarkdownOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always \\\"page_markdown\\\".\").nullable(),\n markdown: z.string().describe(\"Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs.\").nullable(),\n truncated: z.boolean().describe(\"Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown.\").nullable(),\n unknown_block_ids: z.array(z.string()).describe(\"Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.\"),\n}).passthrough().describe(\"Response for retrieving a Notion page's content as Notion-flavored Markdown.\\nReturns the full page content rendered as markdown in a single API call.\");\n\nexport const notionGetPageMarkdown: AppAction<\n typeof NotionGetPageMarkdownInput,\n typeof NotionGetPageMarkdownOutput,\n typeof notion.credential\n> = action(\"NOTION_GET_PAGE_MARKDOWN\", {\n slug: \"notion-get-page-markdown\",\n name: \"Get page markdown\",\n description: \"Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.\",\n input: NotionGetPageMarkdownInput,\n output: NotionGetPageMarkdownOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+cAA+c;CAC5e,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC3N,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CAC1L,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oHAAoH;AACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wJAAwJ;AAElL,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,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/get-page-markdown.d.ts
|
|
@@ -12,10 +14,7 @@ declare const NotionGetPageMarkdownOutput: z.ZodObject<{
|
|
|
12
14
|
truncated: z.ZodNullable<z.ZodBoolean>;
|
|
13
15
|
unknown_block_ids: z.ZodArray<z.ZodString>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const notionGetPageMarkdown:
|
|
16
|
-
page_id: string;
|
|
17
|
-
include_transcript?: boolean | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const notionGetPageMarkdown: AppAction<typeof NotionGetPageMarkdownInput, typeof NotionGetPageMarkdownOutput, typeof notion.credential>;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { notionGetPageMarkdown };
|
|
21
20
|
//# sourceMappingURL=get-page-markdown.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-page-markdown.d.cts","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-page-markdown.d.cts","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/get-page-markdown.d.ts
|
|
@@ -12,10 +14,7 @@ declare const NotionGetPageMarkdownOutput: z.ZodObject<{
|
|
|
12
14
|
truncated: z.ZodNullable<z.ZodBoolean>;
|
|
13
15
|
unknown_block_ids: z.ZodArray<z.ZodString>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const notionGetPageMarkdown:
|
|
16
|
-
page_id: string;
|
|
17
|
-
include_transcript?: boolean | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const notionGetPageMarkdown: AppAction<typeof NotionGetPageMarkdownInput, typeof NotionGetPageMarkdownOutput, typeof notion.credential>;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { notionGetPageMarkdown };
|
|
21
20
|
//# sourceMappingURL=get-page-markdown.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-page-markdown.d.mts","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-page-markdown.d.mts","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-page-markdown.mjs","names":[],"sources":["../../src/actions/get-page-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionGetPageMarkdownInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead.\"),\n include_transcript: z.boolean().describe(\"Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.\").optional(),\n});\nexport const NotionGetPageMarkdownOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always \\\"page_markdown\\\".\").nullable(),\n markdown: z.string().describe(\"Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs.\").nullable(),\n truncated: z.boolean().describe(\"Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown.\").nullable(),\n unknown_block_ids: z.array(z.string()).describe(\"Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.\"),\n}).passthrough().describe(\"Response for retrieving a Notion page's content as Notion-flavored Markdown.\\nReturns the full page content rendered as markdown in a single API call.\");\n\nexport const notionGetPageMarkdown = action(\"NOTION_GET_PAGE_MARKDOWN\", {\n slug: \"notion-get-page-markdown\",\n name: \"Get page markdown\",\n description: \"Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.\",\n input: NotionGetPageMarkdownInput,\n output: NotionGetPageMarkdownOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-page-markdown.mjs","names":[],"sources":["../../src/actions/get-page-markdown.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 NotionGetPageMarkdownInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve as markdown. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. This endpoint retrieves the full page content rendered as Notion-flavored Markdown in a single API call, avoiding the need for recursive block-children fetching. IMPORTANT: Only page IDs are accepted - database IDs will be rejected. To retrieve database content, use the 'Fetch Database' or 'Query Database' actions instead.\"),\n include_transcript: z.boolean().describe(\"Set to true to include meeting note transcripts in the markdown response. Defaults to false if not specified.\").optional(),\n});\nexport const NotionGetPageMarkdownOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n object: z.string().describe(\"Always \\\"page_markdown\\\".\").nullable(),\n markdown: z.string().describe(\"Full page content rendered as enhanced Notion-flavored Markdown. Includes all text, formatting, blocks, and structure. File URLs are automatically converted to pre-signed URLs.\").nullable(),\n truncated: z.boolean().describe(\"Indicates whether the content was truncated due to exceeding the ~20,000 block limit. If true, some content may be missing from the markdown.\").nullable(),\n unknown_block_ids: z.array(z.string()).describe(\"Array of block IDs that could not be rendered as markdown. These blocks may use unsupported or custom block types.\"),\n}).passthrough().describe(\"Response for retrieving a Notion page's content as Notion-flavored Markdown.\\nReturns the full page content rendered as markdown in a single API call.\");\n\nexport const notionGetPageMarkdown: AppAction<\n typeof NotionGetPageMarkdownInput,\n typeof NotionGetPageMarkdownOutput,\n typeof notion.credential\n> = action(\"NOTION_GET_PAGE_MARKDOWN\", {\n slug: \"notion-get-page-markdown\",\n name: \"Get page markdown\",\n description: \"Retrieve a Notion page's full content rendered as Notion-flavored Markdown in a single API call. Use when you need the readable content of a page without recursive block-children fetching.\",\n input: NotionGetPageMarkdownInput,\n output: NotionGetPageMarkdownOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+cAA+c;EAC5e,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,CAiBS;CACP,QAjByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;EAC3N,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;EAC1L,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oHAAoH;CACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wJAWhB;AACV,CAAC"}
|