@keystrokehq/notion 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +8 -8
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +88 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +88 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +8 -8
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +44 -44
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +849 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +849 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +44 -44
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +44 -44
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +642 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +642 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +44 -44
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +44 -44
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +996 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +996 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +44 -44
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +44 -44
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +624 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +624 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +44 -44
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +44 -44
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +826 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +826 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +44 -44
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +44 -44
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1080 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1080 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +44 -44
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +27 -27
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +78 -3
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +78 -3
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +27 -27
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +46 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +46 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +31 -31
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +139 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +139 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +31 -31
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +8 -8
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +38 -3
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +38 -3
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +8 -8
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +29 -29
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +83 -3
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +83 -3
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +29 -29
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +53 -53
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +2181 -3
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +2181 -3
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +53 -53
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +31 -31
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +90 -3
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +90 -3
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +31 -31
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +45 -45
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +38 -3
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +38 -3
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +45 -45
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +57 -57
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +687 -3
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +687 -3
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +57 -57
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +51 -51
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +2103 -3
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +2103 -3
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +51 -51
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +37 -37
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +148 -3
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +148 -3
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +37 -37
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +51 -51
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +594 -3
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +594 -3
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +51 -51
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +27 -27
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +89 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +89 -3
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +27 -27
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +35 -35
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +151 -3
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +151 -3
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +35 -35
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +7 -7
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +44 -3
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +44 -3
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +7 -7
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +4 -4
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +15 -3
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +15 -3
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +4 -4
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +13 -3
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +13 -3
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +30 -30
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +163 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +163 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +30 -30
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -1
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +19 -3
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +19 -3
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -1
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +4 -4
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +19 -3
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +19 -3
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +4 -4
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +7 -7
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +32 -3
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +32 -3
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +7 -7
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +6 -6
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +58 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +58 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +6 -6
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +27 -27
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +90 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +90 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +27 -27
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +18 -18
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +159 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +159 -3
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +18 -18
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +49 -49
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +214 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +214 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +49 -49
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +38 -38
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +208 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +208 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +38 -38
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +3 -3
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1706 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1706 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +3 -3
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +7 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +7 -3
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +19 -19
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +78 -3
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +78 -3
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +19 -19
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +5 -5
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +25 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +25 -3
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +5 -5
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +34 -34
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +139 -3
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +139 -3
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +34 -34
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +54 -54
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +751 -3
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +751 -3
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +54 -54
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +7 -7
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +33 -3
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +33 -3
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +7 -7
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +55 -55
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +564 -3
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +564 -3
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +55 -55
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +32 -32
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +103 -3
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +103 -3
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +32 -32
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +31 -31
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +126 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +126 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +31 -31
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +51 -51
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +314 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +314 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +51 -51
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +4 -4
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +218 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +218 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +4 -4
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,95 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-database.d.ts
|
|
4
|
-
declare const NotionFetchDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionFetchDatabaseInput: z.ZodObject<{
|
|
5
|
+
database_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NotionFetchDatabaseOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
|
+
url: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
title: z.ZodArray<z.ZodObject<{
|
|
25
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
url: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
content: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
type: z.ZodNullable<z.ZodString>;
|
|
33
|
+
plain_text: z.ZodNullable<z.ZodString>;
|
|
34
|
+
annotations: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
bold: z.ZodNullable<z.ZodBoolean>;
|
|
36
|
+
code: z.ZodNullable<z.ZodBoolean>;
|
|
37
|
+
color: z.ZodNullable<z.ZodString>;
|
|
38
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
underline: z.ZodNullable<z.ZodBoolean>;
|
|
40
|
+
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
object: z.ZodNullable<z.ZodString>;
|
|
44
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
51
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
52
|
+
is_inline: z.ZodNullable<z.ZodBoolean>;
|
|
53
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
54
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
id: z.ZodNullable<z.ZodString>;
|
|
56
|
+
object: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
59
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
61
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
63
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
|
+
url: z.ZodNullable<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
content: z.ZodNullable<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
type: z.ZodNullable<z.ZodString>;
|
|
69
|
+
plain_text: z.ZodNullable<z.ZodString>;
|
|
70
|
+
annotations: z.ZodNullable<z.ZodObject<{
|
|
71
|
+
bold: z.ZodNullable<z.ZodBoolean>;
|
|
72
|
+
code: z.ZodNullable<z.ZodBoolean>;
|
|
73
|
+
color: z.ZodNullable<z.ZodString>;
|
|
74
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
75
|
+
underline: z.ZodNullable<z.ZodBoolean>;
|
|
76
|
+
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>>>>;
|
|
79
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
80
|
+
data_sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
81
|
+
id: z.ZodNullable<z.ZodString>;
|
|
82
|
+
name: z.ZodNullable<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>>>;
|
|
84
|
+
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
85
|
+
id: z.ZodNullable<z.ZodString>;
|
|
86
|
+
object: z.ZodNullable<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>>;
|
|
88
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
declare const notionFetchDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
91
|
+
database_id: string;
|
|
92
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
93
|
//#endregion
|
|
8
94
|
export { notionFetchDatabase };
|
|
9
95
|
//# sourceMappingURL=fetch-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-database.d.cts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"fetch-database.d.cts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,95 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-database.d.ts
|
|
4
|
-
declare const NotionFetchDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionFetchDatabaseInput: z.ZodObject<{
|
|
5
|
+
database_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NotionFetchDatabaseOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
|
+
url: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
title: z.ZodArray<z.ZodObject<{
|
|
25
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
url: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
content: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
type: z.ZodNullable<z.ZodString>;
|
|
33
|
+
plain_text: z.ZodNullable<z.ZodString>;
|
|
34
|
+
annotations: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
bold: z.ZodNullable<z.ZodBoolean>;
|
|
36
|
+
code: z.ZodNullable<z.ZodBoolean>;
|
|
37
|
+
color: z.ZodNullable<z.ZodString>;
|
|
38
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
underline: z.ZodNullable<z.ZodBoolean>;
|
|
40
|
+
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
object: z.ZodNullable<z.ZodString>;
|
|
44
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
workspace: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
51
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
52
|
+
is_inline: z.ZodNullable<z.ZodBoolean>;
|
|
53
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
54
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
|
+
id: z.ZodNullable<z.ZodString>;
|
|
56
|
+
object: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
59
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
61
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
63
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
|
+
url: z.ZodNullable<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
content: z.ZodNullable<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
type: z.ZodNullable<z.ZodString>;
|
|
69
|
+
plain_text: z.ZodNullable<z.ZodString>;
|
|
70
|
+
annotations: z.ZodNullable<z.ZodObject<{
|
|
71
|
+
bold: z.ZodNullable<z.ZodBoolean>;
|
|
72
|
+
code: z.ZodNullable<z.ZodBoolean>;
|
|
73
|
+
color: z.ZodNullable<z.ZodString>;
|
|
74
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
75
|
+
underline: z.ZodNullable<z.ZodBoolean>;
|
|
76
|
+
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>>>>;
|
|
79
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
80
|
+
data_sources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
81
|
+
id: z.ZodNullable<z.ZodString>;
|
|
82
|
+
name: z.ZodNullable<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>>>;
|
|
84
|
+
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
85
|
+
id: z.ZodNullable<z.ZodString>;
|
|
86
|
+
object: z.ZodNullable<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>>;
|
|
88
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
declare const notionFetchDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
91
|
+
database_id: string;
|
|
92
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
93
|
//#endregion
|
|
8
94
|
export { notionFetchDatabase };
|
|
9
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":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"fetch-database.d.mts","names":[],"sources":["../../src/actions/fetch-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -3,52 +3,52 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/fetch-database.ts
|
|
4
4
|
const NotionFetchDatabaseInput = z.object({ 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}).") });
|
|
5
5
|
const NotionFetchDatabase_IconSchema = z.object({
|
|
6
|
-
type: z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'file_upload'."),
|
|
6
|
+
type: z.string().describe("Type of icon: 'emoji', 'external', 'file', or 'file_upload'.").nullable(),
|
|
7
7
|
emoji: z.string().describe("Emoji character when type is 'emoji'.").nullable().optional()
|
|
8
8
|
}).describe("Icon object for the database.");
|
|
9
9
|
const NotionFetchDatabase_NotionFileSchema = z.object({
|
|
10
|
-
url: z.string().describe("Signed URL of the Notion-hosted file."),
|
|
11
|
-
expiry_time: z.string().describe("ISO 8601 timestamp when the signed URL expires.")
|
|
10
|
+
url: z.string().describe("Signed URL of the Notion-hosted file.").nullable(),
|
|
11
|
+
expiry_time: z.string().describe("ISO 8601 timestamp when the signed URL expires.").nullable()
|
|
12
12
|
}).describe("Notion-hosted file with expiring URL.");
|
|
13
|
-
const NotionFetchDatabase_ExternalFileSchema = z.object({ url: z.string().describe("External URL of the cover image.") }).describe("External file reference.");
|
|
13
|
+
const NotionFetchDatabase_ExternalFileSchema = z.object({ url: z.string().describe("External URL of the cover image.").nullable() }).describe("External file reference.");
|
|
14
14
|
const NotionFetchDatabase_CoverSchema = z.object({
|
|
15
15
|
file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),
|
|
16
|
-
type: z.string().describe("Type of file: 'external', 'file', or 'file_upload'."),
|
|
16
|
+
type: z.string().describe("Type of file: 'external', 'file', or 'file_upload'.").nullable(),
|
|
17
17
|
external: NotionFetchDatabase_ExternalFileSchema.nullable().optional()
|
|
18
18
|
}).describe("Cover image object for the database.");
|
|
19
|
-
const NotionFetchDatabase_LinkSchema = z.object({ url: z.string().describe("URL of the link.") }).describe("Link object for text content.");
|
|
19
|
+
const NotionFetchDatabase_LinkSchema = z.object({ url: z.string().describe("URL of the link.").nullable() }).describe("Link object for text content.");
|
|
20
20
|
const NotionFetchDatabase_TextContentSchema = z.object({
|
|
21
21
|
link: NotionFetchDatabase_LinkSchema.nullable().optional(),
|
|
22
|
-
content: z.string().describe("The actual text content.")
|
|
22
|
+
content: z.string().describe("The actual text content.").nullable()
|
|
23
23
|
}).describe("Text content object for rich text.");
|
|
24
24
|
const NotionFetchDatabase_AnnotationsSchema = z.object({
|
|
25
|
-
bold: z.boolean().describe("Whether the text is bold."),
|
|
26
|
-
code: z.boolean().describe("Whether the text is formatted as code."),
|
|
27
|
-
color: z.string().describe("Color of the text (e.g., 'default', 'blue', 'green_background')."),
|
|
28
|
-
italic: z.boolean().describe("Whether the text is italicized."),
|
|
29
|
-
underline: z.boolean().describe("Whether the text is underlined."),
|
|
30
|
-
strikethrough: z.boolean().describe("Whether the text has strikethrough.")
|
|
25
|
+
bold: z.boolean().describe("Whether the text is bold.").nullable(),
|
|
26
|
+
code: z.boolean().describe("Whether the text is formatted as code.").nullable(),
|
|
27
|
+
color: z.string().describe("Color of the text (e.g., 'default', 'blue', 'green_background').").nullable(),
|
|
28
|
+
italic: z.boolean().describe("Whether the text is italicized.").nullable(),
|
|
29
|
+
underline: z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
30
|
+
strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
31
31
|
}).describe("Styling properties for rich text.");
|
|
32
32
|
const NotionFetchDatabase_RichTextObjectSchema = z.object({
|
|
33
33
|
href: z.string().describe("URL if the text is a link, or null.").nullable().optional(),
|
|
34
34
|
text: NotionFetchDatabase_TextContentSchema.nullable().optional(),
|
|
35
|
-
type: z.string().describe("Type of rich text: 'text', 'mention', or 'equation'."),
|
|
36
|
-
plain_text: z.string().describe("Plain text representation without formatting."),
|
|
35
|
+
type: z.string().describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
|
|
36
|
+
plain_text: z.string().describe("Plain text representation without formatting.").nullable(),
|
|
37
37
|
annotations: NotionFetchDatabase_AnnotationsSchema.nullable()
|
|
38
38
|
}).describe("Rich text object for database title and description.");
|
|
39
39
|
const NotionFetchDatabase_ParentSchema = z.object({
|
|
40
|
-
type: z.string().describe("Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'."),
|
|
40
|
+
type: z.string().describe("Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.").nullable(),
|
|
41
41
|
page_id: z.string().describe("UUID of the parent page when type is 'page_id'.").nullable().optional(),
|
|
42
42
|
block_id: z.string().describe("UUID of the parent block when type is 'block_id'.").nullable().optional(),
|
|
43
43
|
workspace: z.boolean().describe("Always true when type is 'workspace'.").nullable().optional()
|
|
44
44
|
}).describe("Parent location of the database (page, workspace, or block).");
|
|
45
45
|
const NotionFetchDatabase_PartialUserSchema = z.object({
|
|
46
|
-
id: z.string().describe("Unique identifier (UUID) of the user."),
|
|
47
|
-
object: z.string().describe("Always 'user'. Identifies this as a user object.")
|
|
46
|
+
id: z.string().describe("Unique identifier (UUID) of the user.").nullable(),
|
|
47
|
+
object: z.string().describe("Always 'user'. Identifies this as a user object.").nullable()
|
|
48
48
|
}).describe("Partial user object returned by Notion API.");
|
|
49
49
|
const NotionFetchDatabase_DataSourceSchema = z.object({
|
|
50
|
-
id: z.string().describe("Unique identifier (UUID) of the data source."),
|
|
51
|
-
name: z.string().describe("Display name of the data source.")
|
|
50
|
+
id: z.string().describe("Unique identifier (UUID) of the data source.").nullable(),
|
|
51
|
+
name: z.string().describe("Display name of the data source.").nullable()
|
|
52
52
|
}).describe("Child data source object.");
|
|
53
53
|
const notionFetchDatabase = action("NOTION_FETCH_DATABASE", {
|
|
54
54
|
slug: "notion-fetch-database",
|
|
@@ -56,25 +56,25 @@ const notionFetchDatabase = action("NOTION_FETCH_DATABASE", {
|
|
|
56
56
|
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.",
|
|
57
57
|
input: NotionFetchDatabaseInput,
|
|
58
58
|
output: z.object({
|
|
59
|
-
id: z.string().describe("Unique identifier for the database in UUID format (36 characters)."),
|
|
60
|
-
url: z.string().describe("The URL of the database in the Notion workspace."),
|
|
59
|
+
id: z.string().describe("Unique identifier for the database in UUID format (36 characters).").nullable(),
|
|
60
|
+
url: z.string().describe("The URL of the database in the Notion workspace.").nullable(),
|
|
61
61
|
icon: NotionFetchDatabase_IconSchema.nullable().optional(),
|
|
62
62
|
cover: NotionFetchDatabase_CoverSchema.nullable().optional(),
|
|
63
63
|
title: z.array(NotionFetchDatabase_RichTextObjectSchema).describe("Array of rich text objects representing the database name/title."),
|
|
64
|
-
object: z.string().describe("Always 'database'. Identifies this as a database object."),
|
|
64
|
+
object: z.string().describe("Always 'database'. Identifies this as a database object.").nullable(),
|
|
65
65
|
parent: NotionFetchDatabase_ParentSchema.nullable(),
|
|
66
66
|
archived: z.boolean().describe("Whether the database has been archived. Not present in API version 2025-09-03.").nullable().optional(),
|
|
67
|
-
in_trash: z.boolean().describe("Whether the database has been moved to the trash."),
|
|
68
|
-
is_inline: z.boolean().describe("Whether the database is displayed as an inline block (true) or full-page database (false)."),
|
|
67
|
+
in_trash: z.boolean().describe("Whether the database has been moved to the trash.").nullable(),
|
|
68
|
+
is_inline: z.boolean().describe("Whether the database is displayed as an inline block (true) or full-page database (false).").nullable(),
|
|
69
69
|
is_locked: z.boolean().describe("Whether the database is locked for editing. Present in API version 2025-09-03.").nullable().optional(),
|
|
70
70
|
created_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),
|
|
71
71
|
properties: z.object({}).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(),
|
|
72
72
|
public_url: z.string().describe("The publicly shared URL of the database if it has been published to the web, or null.").nullable().optional(),
|
|
73
73
|
description: z.array(NotionFetchDatabase_RichTextObjectSchema).describe("Array of rich text objects representing the database description.").nullable().optional(),
|
|
74
|
-
created_time: z.string().describe("ISO 8601 timestamp when the database was created."),
|
|
74
|
+
created_time: z.string().describe("ISO 8601 timestamp when the database was created.").nullable(),
|
|
75
75
|
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(),
|
|
76
76
|
last_edited_by: NotionFetchDatabase_PartialUserSchema.nullable().optional(),
|
|
77
|
-
last_edited_time: z.string().describe("ISO 8601 timestamp when the database was last edited.")
|
|
77
|
+
last_edited_time: z.string().describe("ISO 8601 timestamp when the database was last edited.").nullable()
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
80
|
//#endregion
|
|
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'file_upload'.\"),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n}).describe(\"Icon object for the database.\");\nconst NotionFetchDatabase_NotionFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Signed URL of the Notion-hosted file.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the signed URL expires.\"),\n}).describe(\"Notion-hosted file with expiring URL.\");\nconst NotionFetchDatabase_ExternalFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"External URL of the cover image.\"),\n}).describe(\"External file reference.\");\nconst NotionFetchDatabase_CoverSchema: z.ZodTypeAny = z.object({\n file: NotionFetchDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\"),\n external: NotionFetchDatabase_ExternalFileSchema.nullable().optional(),\n}).describe(\"Cover image object for the database.\");\nconst NotionFetchDatabase_LinkSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the link.\"),\n}).describe(\"Link object for text content.\");\nconst NotionFetchDatabase_TextContentSchema: z.ZodTypeAny = z.object({\n link: NotionFetchDatabase_LinkSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\"),\n}).describe(\"Text content object for rich text.\");\nconst NotionFetchDatabase_AnnotationsSchema: z.ZodTypeAny = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\"),\n code: z.boolean().describe(\"Whether the text is formatted as code.\"),\n color: z.string().describe(\"Color of the text (e.g., 'default', 'blue', 'green_background').\"),\n italic: z.boolean().describe(\"Whether the text is italicized.\"),\n underline: z.boolean().describe(\"Whether the text is underlined.\"),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\"),\n}).describe(\"Styling properties for rich text.\");\nconst NotionFetchDatabase_RichTextObjectSchema: z.ZodTypeAny = 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'.\"),\n plain_text: z.string().describe(\"Plain text representation without formatting.\"),\n annotations: NotionFetchDatabase_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object for database title and description.\");\nconst NotionFetchDatabase_ParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of parent: 'page_id', 'workspace', 'block_id', 'database_id', or 'data_source_id'.\"),\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}).describe(\"Parent location of the database (page, workspace, or block).\");\nconst NotionFetchDatabase_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the user.\"),\n object: z.string().describe(\"Always 'user'. Identifies this as a user object.\"),\n}).describe(\"Partial user object returned by Notion API.\");\nconst NotionFetchDatabase_DataSourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier (UUID) of the data source.\"),\n name: z.string().describe(\"Display name of the data source.\"),\n}).describe(\"Child data source object.\");\nexport const NotionFetchDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the database in UUID format (36 characters).\"),\n url: z.string().describe(\"The URL of the database in the Notion workspace.\"),\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.\"),\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.\"),\n is_inline: z.boolean().describe(\"Whether the database is displayed as an inline block (true) or full-page database (false).\"),\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.object({}).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.\"),\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.\"),\n});\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: NotionFetchDatabaseInput,\n output: NotionFetchDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,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,CAAC,SAAS,CAAC,CAAC,SAAS;EACrU,gBAAgB,sCAAsC,SAAS,CAAC,CAAC,SAAS;EAC1E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/F,CAOU;AACV,CAAC"}
|
|
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}).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}).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}).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}).describe(\"Cover image object for the database.\");\nconst NotionFetchDatabase_LinkSchema = z.object({\n url: z.string().describe(\"URL of the link.\").nullable(),\n}).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}).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}).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}).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}).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}).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}).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.object({}).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});\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: NotionFetchDatabaseInput,\n output: NotionFetchDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,ybAAyb,EAC5d,CAAC;AACD,MAAM,iCAAiC,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,yCAAyC,EAAE,OAAO,EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,kCAAkC,EAAE,OAAO;CAC/C,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,UAAU,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,iCAAiC,EAAE,OAAO,EAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,wC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C,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,CAAC,CAAC,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9R,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,CAOU;AACV,CAAC"}
|
|
@@ -3,71 +3,71 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/fetch-row.ts
|
|
4
4
|
const NotionFetchRowInput = zod.z.object({ page_id: zod.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.") });
|
|
5
5
|
const NotionFetchRow_EmojiObjectSchema = zod.z.object({
|
|
6
|
-
type: zod.z.string(),
|
|
7
|
-
emoji: zod.z.string()
|
|
6
|
+
type: zod.z.string().nullable(),
|
|
7
|
+
emoji: zod.z.string().nullable()
|
|
8
8
|
});
|
|
9
9
|
const NotionFetchRow_CustomEmojiDetailsSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier for the custom emoji (UUID)."),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji (UUID).").nullable(),
|
|
11
11
|
url: zod.z.string().describe("URL to the custom emoji image.").nullable().optional(),
|
|
12
12
|
name: zod.z.string().describe("Name of the custom emoji.").nullable().optional()
|
|
13
13
|
}).describe("Custom emoji details.");
|
|
14
14
|
const NotionFetchRow_CustomEmojiIconSchema = zod.z.object({
|
|
15
|
-
type: zod.z.string(),
|
|
15
|
+
type: zod.z.string().nullable(),
|
|
16
16
|
custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable()
|
|
17
17
|
});
|
|
18
|
-
const NotionFetchRow_ExternalFileDetailsSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.") });
|
|
18
|
+
const NotionFetchRow_ExternalFileDetailsSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.").nullable() });
|
|
19
19
|
const NotionFetchRow_FileObjectExternalSchema = zod.z.object({
|
|
20
|
-
type: zod.z.string(),
|
|
20
|
+
type: zod.z.string().nullable(),
|
|
21
21
|
external: NotionFetchRow_ExternalFileDetailsSchema.nullable()
|
|
22
22
|
});
|
|
23
|
-
const NotionFetchRow_FileUploadDetailsSchema = zod.z.object({ id: zod.z.string().describe("ID of the uploaded file (UUID).") });
|
|
23
|
+
const NotionFetchRow_FileUploadDetailsSchema = zod.z.object({ id: zod.z.string().describe("ID of the uploaded file (UUID).").nullable() });
|
|
24
24
|
const NotionFetchRow_FileObjectFileUploadSchema = zod.z.object({
|
|
25
|
-
type: zod.z.string(),
|
|
25
|
+
type: zod.z.string().nullable(),
|
|
26
26
|
file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable()
|
|
27
27
|
});
|
|
28
28
|
const NotionFetchRow_NotionHostedFileDetailsSchema = zod.z.object({
|
|
29
|
-
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
30
|
-
expiry_time: zod.z.string().describe("Expiration time of the temporary URL (ISO 8601 format).")
|
|
29
|
+
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
30
|
+
expiry_time: zod.z.string().describe("Expiration time of the temporary URL (ISO 8601 format).").nullable()
|
|
31
31
|
});
|
|
32
32
|
const NotionFetchRow_FileObjectFileSchema = zod.z.object({
|
|
33
33
|
file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),
|
|
34
|
-
type: zod.z.string()
|
|
34
|
+
type: zod.z.string().nullable()
|
|
35
35
|
});
|
|
36
36
|
const NotionFetchRow_ParentDataSourceSchema = zod.z.object({
|
|
37
|
-
type: zod.z.string(),
|
|
38
|
-
data_source_id: zod.z.string().describe("Data source ID (UUID).")
|
|
37
|
+
type: zod.z.string().nullable(),
|
|
38
|
+
data_source_id: zod.z.string().describe("Data source ID (UUID).").nullable()
|
|
39
39
|
});
|
|
40
40
|
const NotionFetchRow_ParentDatabaseSchema = zod.z.object({
|
|
41
|
-
type: zod.z.string(),
|
|
42
|
-
database_id: zod.z.string().describe("Database ID (UUID).")
|
|
41
|
+
type: zod.z.string().nullable(),
|
|
42
|
+
database_id: zod.z.string().describe("Database ID (UUID).").nullable()
|
|
43
43
|
});
|
|
44
44
|
const NotionFetchRow_ParentPageSchema = zod.z.object({
|
|
45
|
-
type: zod.z.string(),
|
|
46
|
-
page_id: zod.z.string().describe("Page ID (UUID).")
|
|
45
|
+
type: zod.z.string().nullable(),
|
|
46
|
+
page_id: zod.z.string().describe("Page ID (UUID).").nullable()
|
|
47
47
|
});
|
|
48
48
|
const NotionFetchRow_ParentWorkspaceSchema = zod.z.object({
|
|
49
|
-
type: zod.z.string(),
|
|
50
|
-
workspace: zod.z.boolean()
|
|
49
|
+
type: zod.z.string().nullable(),
|
|
50
|
+
workspace: zod.z.boolean().nullable()
|
|
51
51
|
});
|
|
52
52
|
const NotionFetchRow_ParentBlockSchema = zod.z.object({
|
|
53
|
-
type: zod.z.string(),
|
|
54
|
-
block_id: zod.z.string().describe("Block ID (UUID).")
|
|
53
|
+
type: zod.z.string().nullable(),
|
|
54
|
+
block_id: zod.z.string().describe("Block ID (UUID).").nullable()
|
|
55
55
|
});
|
|
56
56
|
const NotionFetchRow_BotOwnerWorkspaceSchema = zod.z.object({
|
|
57
|
-
type: zod.z.string().describe("Always \"workspace\"."),
|
|
58
|
-
workspace: zod.z.boolean().describe("Boolean flag indicating workspace ownership.")
|
|
57
|
+
type: zod.z.string().describe("Always \"workspace\".").nullable(),
|
|
58
|
+
workspace: zod.z.boolean().describe("Boolean flag indicating workspace ownership.").nullable()
|
|
59
59
|
}).describe("Bot owner when owned by a workspace.");
|
|
60
60
|
const NotionFetchRow_PersonDetailsSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person (requires user capability).").nullable().optional() }).describe("Person-specific details when user type is 'person'.");
|
|
61
61
|
const NotionFetchRow_BotOwnerUserDetailsSchema = zod.z.object({
|
|
62
|
-
id: zod.z.string().describe("Unique identifier for the user (UUID)."),
|
|
62
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
|
|
63
63
|
name: zod.z.string().describe("Display name of the user.").nullable().optional(),
|
|
64
64
|
type: zod.z.string().describe("Type of user - always 'person' for bot owners.").nullable().optional(),
|
|
65
|
-
object: zod.z.string().describe("Always \"user\"."),
|
|
65
|
+
object: zod.z.string().describe("Always \"user\".").nullable(),
|
|
66
66
|
person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
|
|
67
67
|
avatar_url: zod.z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
68
68
|
}).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.");
|
|
69
69
|
const NotionFetchRow_BotOwnerUserSchema = zod.z.object({
|
|
70
|
-
type: zod.z.string().describe("Always \"user\"."),
|
|
70
|
+
type: zod.z.string().describe("Always \"user\".").nullable(),
|
|
71
71
|
user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable()
|
|
72
72
|
}).describe("Bot owner when owned by a user.");
|
|
73
73
|
const NotionFetchRow_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum uploadable file size in bytes.").nullable().optional() }).describe("Workspace limits for bot users.");
|
|
@@ -78,17 +78,17 @@ const NotionFetchRow_BotDetailsSchema = zod.z.object({
|
|
|
78
78
|
workspace_limits: NotionFetchRow_WorkspaceLimitsSchema.nullable().optional()
|
|
79
79
|
}).describe("Bot-specific details when user type is 'bot'.");
|
|
80
80
|
const NotionFetchRow_PartialUserSchema = zod.z.object({
|
|
81
|
-
id: zod.z.string().describe("Unique identifier for the user (UUID)."),
|
|
81
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
|
|
82
82
|
bot: NotionFetchRow_BotDetailsSchema.nullable().optional(),
|
|
83
83
|
name: zod.z.string().describe("Display name of the user.").nullable().optional(),
|
|
84
84
|
type: zod.z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
|
|
85
|
-
object: zod.z.string().describe("Always \"user\"."),
|
|
85
|
+
object: zod.z.string().describe("Always \"user\".").nullable(),
|
|
86
86
|
person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),
|
|
87
87
|
avatar_url: zod.z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
88
88
|
});
|
|
89
89
|
const NotionFetchRowOutput = zod.z.object({
|
|
90
|
-
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
91
|
-
url: zod.z.string().describe("The URL of the Notion page."),
|
|
90
|
+
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format).").nullable(),
|
|
91
|
+
url: zod.z.string().describe("The URL of the Notion page.").nullable(),
|
|
92
92
|
icon: zod.z.union([
|
|
93
93
|
NotionFetchRow_EmojiObjectSchema,
|
|
94
94
|
NotionFetchRow_CustomEmojiIconSchema,
|
|
@@ -101,7 +101,7 @@ const NotionFetchRowOutput = zod.z.object({
|
|
|
101
101
|
NotionFetchRow_FileObjectFileUploadSchema,
|
|
102
102
|
NotionFetchRow_FileObjectFileSchema
|
|
103
103
|
]).nullable().optional(),
|
|
104
|
-
object: zod.z.string().describe("Always \"page\"."),
|
|
104
|
+
object: zod.z.string().describe("Always \"page\".").nullable(),
|
|
105
105
|
parent: zod.z.union([
|
|
106
106
|
NotionFetchRow_ParentDataSourceSchema,
|
|
107
107
|
NotionFetchRow_ParentDatabaseSchema,
|
|
@@ -109,16 +109,16 @@ const NotionFetchRowOutput = zod.z.object({
|
|
|
109
109
|
NotionFetchRow_ParentWorkspaceSchema,
|
|
110
110
|
NotionFetchRow_ParentBlockSchema
|
|
111
111
|
]),
|
|
112
|
-
archived: zod.z.boolean().describe("Whether the page is archived."),
|
|
113
|
-
in_trash: zod.z.boolean().describe("Whether the page is in the trash."),
|
|
112
|
+
archived: zod.z.boolean().describe("Whether the page is archived.").nullable(),
|
|
113
|
+
in_trash: zod.z.boolean().describe("Whether the page is in the trash.").nullable(),
|
|
114
114
|
is_locked: zod.z.boolean().nullable().optional(),
|
|
115
115
|
created_by: NotionFetchRow_PartialUserSchema.nullable(),
|
|
116
116
|
properties: zod.z.object({}).describe("Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data."),
|
|
117
117
|
public_url: zod.z.string().describe("The public page URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
118
118
|
request_id: zod.z.string().nullable().optional(),
|
|
119
|
-
created_time: zod.z.string().describe("Date and time when this page was created (ISO 8601 format)."),
|
|
119
|
+
created_time: zod.z.string().describe("Date and time when this page was created (ISO 8601 format).").nullable(),
|
|
120
120
|
last_edited_by: NotionFetchRow_PartialUserSchema.nullable(),
|
|
121
|
-
last_edited_time: zod.z.string().describe("Date and time when this page was last edited (ISO 8601 format).")
|
|
121
|
+
last_edited_time: zod.z.string().describe("Date and time when this page was last edited (ISO 8601 format).").nullable()
|
|
122
122
|
}).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.");
|
|
123
123
|
const notionFetchRow = require_action.action("NOTION_FETCH_ROW", {
|
|
124
124
|
slug: "notion-fetch-row",
|
|
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n type: z.string(),\n emoji: z.string(),\n});\nconst NotionFetchRow_CustomEmojiDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji (UUID).\"),\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}).describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionFetchRow_ExternalFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n});\nconst NotionFetchRow_FileObjectExternalSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionFetchRow_FileUploadDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\"),\n});\nconst NotionFetchRow_FileObjectFileUploadSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n});\nconst NotionFetchRow_NotionHostedFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\"),\n});\nconst NotionFetchRow_FileObjectFileSchema: z.ZodTypeAny = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string(),\n});\nconst NotionFetchRow_ParentDataSourceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\"),\n});\nconst NotionFetchRow_ParentDatabaseSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n database_id: z.string().describe(\"Database ID (UUID).\"),\n});\nconst NotionFetchRow_ParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n page_id: z.string().describe(\"Page ID (UUID).\"),\n});\nconst NotionFetchRow_ParentWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n});\nconst NotionFetchRow_ParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n block_id: z.string().describe(\"Block ID (UUID).\"),\n});\nconst NotionFetchRow_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Boolean flag indicating workspace ownership.\"),\n}).describe(\"Bot owner when owned by a workspace.\");\nconst NotionFetchRow_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person (requires user capability).\").nullable().optional(),\n}).describe(\"Person-specific details when user type is 'person'.\");\nconst NotionFetchRow_BotOwnerUserDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\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\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).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.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"user\\\".\"),\n user: NotionFetchRow_BotOwnerUserDetailsSchema.nullable(),\n}).describe(\"Bot owner when owned by a user.\");\nconst NotionFetchRow_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum uploadable file size in bytes.\").nullable().optional(),\n}).describe(\"Workspace limits for bot users.\");\nconst NotionFetchRow_BotDetailsSchema: z.ZodTypeAny = 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}).describe(\"Bot-specific details when user type is 'bot'.\");\nconst NotionFetchRow_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\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\\\".\"),\n person: NotionFetchRow_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n});\nexport const NotionFetchRowOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\"),\n url: z.string().describe(\"The URL of the Notion page.\"),\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\\\".\"),\n parent: z.union([NotionFetchRow_ParentDataSourceSchema, NotionFetchRow_ParentDatabaseSchema, NotionFetchRow_ParentPageSchema, NotionFetchRow_ParentWorkspaceSchema, NotionFetchRow_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\"),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\"),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionFetchRow_PartialUserSchema.nullable(),\n properties: z.object({}).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).\"),\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).\"),\n}).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,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4PAA4P,EAC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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,YAAY,iCAAiC,SAAS;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gIAAgI;CAClK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC/F,gBAAgB,iCAAiC,SAAS;CAC1D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACzG,CAAC,CAAC,CAAC,SAAS,qQAAqQ;AAEjR,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
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});\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}).describe(\"Custom emoji details.\");\nconst NotionFetchRow_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionFetchRow_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionFetchRow_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n});\nconst NotionFetchRow_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionFetchRow_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionFetchRow_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n});\nconst NotionFetchRow_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionFetchRow_FileUploadDetailsSchema.nullable(),\n});\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});\nconst NotionFetchRow_FileObjectFileSchema = z.object({\n file: NotionFetchRow_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n});\nconst NotionFetchRow_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n});\nconst NotionFetchRow_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n});\nconst NotionFetchRow_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n});\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}).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}).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}).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}).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}).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}).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});\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.object({}).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}).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;AACD,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,SAAS,uBAAuB;AACnC,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,cAAc,wCAAwC,SAAS;AACjE,CAAC;AACD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC1E,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,UAAU,yCAAyC,SAAS;AAC9D,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CA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