@keystrokehq/notion 0.1.0 → 0.1.3
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 +13 -13
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +90 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +90 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +13 -13
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +100 -100
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +867 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +867 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +100 -100
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +91 -91
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +652 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +652 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +91 -91
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +125 -125
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +1039 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +1039 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +125 -125
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +87 -87
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +630 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +630 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +87 -87
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +101 -101
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +845 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +845 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +101 -101
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +118 -118
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1116 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1116 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +118 -118
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +43 -43
- 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 +43 -43
- 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 +44 -44
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +140 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +140 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +44 -44
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +9 -9
- 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 +9 -9
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +41 -41
- 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 +41 -41
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +84 -84
- 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 +84 -84
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +49 -49
- 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 +49 -49
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +91 -91
- 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 +91 -91
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +97 -97
- 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 +97 -97
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +81 -81
- 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 +81 -81
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +55 -55
- 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 +55 -55
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +76 -76
- 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 +76 -76
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +38 -38
- 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 +38 -38
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +56 -56
- 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 +56 -56
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +13 -13
- 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 +13 -13
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +5 -5
- 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 +5 -5
- 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 +50 -50
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +165 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +165 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +50 -50
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +2 -2
- 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 +2 -2
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +6 -6
- 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 +6 -6
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +9 -9
- 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 +9 -9
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +14 -14
- 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 +14 -14
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +44 -44
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +92 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +92 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +44 -44
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +35 -35
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +161 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +161 -3
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +35 -35
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +73 -73
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +216 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +216 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +73 -73
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +61 -61
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +209 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +209 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +61 -61
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +133 -133
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1836 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1836 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +133 -133
- 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 +42 -42
- 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 +42 -42
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +6 -6
- 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 +6 -6
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +55 -55
- 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 +55 -55
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +82 -82
- 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 +82 -82
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +8 -8
- 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 +8 -8
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +94 -94
- 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 +94 -94
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +46 -46
- 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 +46 -46
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +50 -50
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +127 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +127 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +50 -50
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +59 -59
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +315 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +315 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +59 -59
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +32 -32
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +242 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +242 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +32 -32
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveFileUploadInput
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveFileUploadInput = z.object({\n file_upload_id: z.string().describe(\"The unique identifier (UUID) of the file upload to retrieve.\"),\n});\nexport const NotionRetrieveFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload.\").nullable(),\n object: z.string().describe(\"Always 'file_upload'. Object type identifier.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current upload state. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file with extension added based on content_type if needed. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Endpoint for sending file contents. Only present for pending uploads.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveFileUpload = action(\"NOTION_RETRIEVE_FILE_UPLOAD\", {\n slug: \"notion-retrieve-file-upload\",\n name: \"Retrieve Notion file upload\",\n description: \"Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or details of an existing file upload.\",\n input: NotionRetrieveFileUploadInput,\n output: NotionRetrieveFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,EACpG,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAA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
|
+
declare const NotionRetrieveFileUploadInput: z.ZodObject<{
|
|
5
|
+
file_upload_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NotionRetrieveFileUploadOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
object: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
pending: "pending";
|
|
12
|
+
uploaded: "uploaded";
|
|
13
|
+
expired: "expired";
|
|
14
|
+
failed: "failed";
|
|
15
|
+
}>>;
|
|
16
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
upload_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
expiry_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
complete_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
22
|
+
content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
24
|
+
file_import_result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const notionRetrieveFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
file_upload_id: string;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { notionRetrieveFileUpload };
|
|
9
31
|
//# sourceMappingURL=retrieve-file-upload.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.d.cts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.d.cts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/retrieve-file-upload.d.ts
|
|
4
|
-
declare const NotionRetrieveFileUploadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionRetrieveFileUploadInput: z.ZodObject<{
|
|
5
|
+
file_upload_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NotionRetrieveFileUploadOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
object: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
pending: "pending";
|
|
12
|
+
uploaded: "uploaded";
|
|
13
|
+
expired: "expired";
|
|
14
|
+
failed: "failed";
|
|
15
|
+
}>>;
|
|
16
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
upload_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
expiry_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
complete_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
22
|
+
content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
24
|
+
file_import_result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const notionRetrieveFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
file_upload_id: string;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { notionRetrieveFileUpload };
|
|
9
31
|
//# sourceMappingURL=retrieve-file-upload.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.d.mts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.d.mts","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -6,24 +6,24 @@ const notionRetrieveFileUpload = action("NOTION_RETRIEVE_FILE_UPLOAD", {
|
|
|
6
6
|
description: "Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or details of an existing file upload.",
|
|
7
7
|
input: z.object({ file_upload_id: z.string().describe("The unique identifier (UUID) of the file upload to retrieve.") }),
|
|
8
8
|
output: z.object({
|
|
9
|
-
id: z.string().describe("Unique identifier (UUID) for the FileUpload."),
|
|
10
|
-
object: z.string().describe("Always 'file_upload'. Object type identifier."),
|
|
9
|
+
id: z.string().describe("Unique identifier (UUID) for the FileUpload.").nullable(),
|
|
10
|
+
object: z.string().describe("Always 'file_upload'. Object type identifier.").nullable(),
|
|
11
11
|
status: z.enum([
|
|
12
12
|
"pending",
|
|
13
13
|
"uploaded",
|
|
14
14
|
"expired",
|
|
15
15
|
"failed"
|
|
16
|
-
]).describe("Current upload state. One of: pending, uploaded, expired, or failed."),
|
|
16
|
+
]).describe("Current upload state. One of: pending, uploaded, expired, or failed.").nullable(),
|
|
17
17
|
filename: z.string().describe("Name of the file with extension added based on content_type if needed. Null until file is uploaded.").nullable().optional(),
|
|
18
18
|
upload_url: z.string().describe("Endpoint for sending file contents. Only present for pending uploads.").nullable().optional(),
|
|
19
19
|
expiry_time: z.string().describe("ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.").nullable().optional(),
|
|
20
20
|
complete_url: z.string().describe("Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.").nullable().optional(),
|
|
21
21
|
content_type: z.string().describe("MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.").nullable().optional(),
|
|
22
|
-
created_time: z.string().describe("ISO 8601 timestamp when the FileUpload was created."),
|
|
22
|
+
created_time: z.string().describe("ISO 8601 timestamp when the FileUpload was created.").nullable(),
|
|
23
23
|
content_length: z.number().int().describe("Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.").nullable().optional(),
|
|
24
|
-
last_edited_time: z.string().describe("ISO 8601 timestamp when the FileUpload was last modified."),
|
|
24
|
+
last_edited_time: z.string().describe("ISO 8601 timestamp when the FileUpload was last modified.").nullable(),
|
|
25
25
|
file_import_result: z.record(z.string(), z.unknown()).describe("Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.").nullable().optional()
|
|
26
|
-
})
|
|
26
|
+
}).passthrough()
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { notionRetrieveFileUpload };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-file-upload.mjs","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveFileUploadInput
|
|
1
|
+
{"version":3,"file":"retrieve-file-upload.mjs","names":[],"sources":["../../src/actions/retrieve-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrieveFileUploadInput = z.object({\n file_upload_id: z.string().describe(\"The unique identifier (UUID) of the file upload to retrieve.\"),\n});\nexport const NotionRetrieveFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload.\").nullable(),\n object: z.string().describe(\"Always 'file_upload'. Object type identifier.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Current upload state. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file with extension added based on content_type if needed. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Endpoint for sending file contents. Only present for pending uploads.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp indicating when FileUpload expires if not completed and attached. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Endpoint to finalize multi-part uploads. Only present for pending multi-part uploads.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of uploaded file; can be inferred from filename extension. Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total file size in bytes; updated during multi-part uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Import success/failure details for external URL mode. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n}).passthrough();\n\nexport const notionRetrieveFileUpload = action(\"NOTION_RETRIEVE_FILE_UPLOAD\", {\n slug: \"notion-retrieve-file-upload\",\n name: \"Retrieve Notion file upload\",\n description: \"Tool to retrieve details of a Notion File Upload object by its identifier. Use when you need to check the status or details of an existing file upload.\",\n input: NotionRetrieveFileUploadInput,\n output: NotionRetrieveFileUploadOutput,\n});\n"],"mappings":";;AAsBA,MAAa,2BAA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9N,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -3,88 +3,88 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/retrieve-page.ts
|
|
4
4
|
const NotionRetrievePageInput = zod.z.object({ page_id: zod.z.string().describe("The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.") });
|
|
5
5
|
const NotionRetrievePage_EmojiObjectSchema = zod.z.object({
|
|
6
|
-
type: zod.z.string(),
|
|
7
|
-
emoji: zod.z.string()
|
|
8
|
-
});
|
|
6
|
+
type: zod.z.string().nullable(),
|
|
7
|
+
emoji: zod.z.string().nullable()
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const NotionRetrievePage_CustomEmojiDetailsSchema = zod.z.object({
|
|
10
10
|
id: zod.z.string().describe("ID of the custom emoji.").nullable().optional(),
|
|
11
11
|
url: zod.z.string().describe("URL of the custom emoji image.").nullable().optional(),
|
|
12
12
|
name: zod.z.string().describe("Name of the custom emoji.").nullable().optional()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const NotionRetrievePage_CustomEmojiIconSchema = zod.z.object({
|
|
15
|
-
type: zod.z.string(),
|
|
15
|
+
type: zod.z.string().nullable(),
|
|
16
16
|
custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable()
|
|
17
|
-
});
|
|
18
|
-
const NotionRetrievePage_ExternalFileDetailsSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.") });
|
|
17
|
+
}).passthrough();
|
|
18
|
+
const NotionRetrievePage_ExternalFileDetailsSchema = zod.z.object({ url: zod.z.string().describe("URL to the externally hosted file.").nullable() }).passthrough();
|
|
19
19
|
const NotionRetrievePage_FileObjectExternalSchema = zod.z.object({
|
|
20
|
-
type: zod.z.string(),
|
|
20
|
+
type: zod.z.string().nullable(),
|
|
21
21
|
external: NotionRetrievePage_ExternalFileDetailsSchema.nullable()
|
|
22
|
-
});
|
|
23
|
-
const NotionRetrievePage_FileUploadDetailsSchema = zod.z.object({ id: zod.z.string().describe("ID of the uploaded file (UUID).") });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const NotionRetrievePage_FileUploadDetailsSchema = zod.z.object({ id: zod.z.string().describe("ID of the uploaded file (UUID).").nullable() }).passthrough();
|
|
24
24
|
const NotionRetrievePage_FileObjectFileUploadSchema = zod.z.object({
|
|
25
|
-
type: zod.z.string(),
|
|
25
|
+
type: zod.z.string().nullable(),
|
|
26
26
|
file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const NotionRetrievePage_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).")
|
|
31
|
-
});
|
|
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
|
+
}).passthrough();
|
|
32
32
|
const NotionRetrievePage_FileObjectFileSchema = zod.z.object({
|
|
33
33
|
file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),
|
|
34
|
-
type: zod.z.string()
|
|
35
|
-
});
|
|
34
|
+
type: zod.z.string().nullable()
|
|
35
|
+
}).passthrough();
|
|
36
36
|
const NotionRetrievePage_ParentDataSourceSchema = zod.z.object({
|
|
37
|
-
type: zod.z.string(),
|
|
38
|
-
data_source_id: zod.z.string().describe("Data source ID (UUID).")
|
|
39
|
-
});
|
|
37
|
+
type: zod.z.string().nullable(),
|
|
38
|
+
data_source_id: zod.z.string().describe("Data source ID (UUID).").nullable()
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const NotionRetrievePage_ParentDatabaseSchema = zod.z.object({
|
|
41
|
-
type: zod.z.string(),
|
|
42
|
-
database_id: zod.z.string().describe("Database ID (UUID).")
|
|
43
|
-
});
|
|
41
|
+
type: zod.z.string().nullable(),
|
|
42
|
+
database_id: zod.z.string().describe("Database ID (UUID).").nullable()
|
|
43
|
+
}).passthrough();
|
|
44
44
|
const NotionRetrievePage_ParentPageSchema = zod.z.object({
|
|
45
|
-
type: zod.z.string(),
|
|
46
|
-
page_id: zod.z.string().describe("Page ID (UUID).")
|
|
47
|
-
});
|
|
45
|
+
type: zod.z.string().nullable(),
|
|
46
|
+
page_id: zod.z.string().describe("Page ID (UUID).").nullable()
|
|
47
|
+
}).passthrough();
|
|
48
48
|
const NotionRetrievePage_ParentWorkspaceSchema = zod.z.object({
|
|
49
|
-
type: zod.z.string(),
|
|
50
|
-
workspace: zod.z.boolean()
|
|
51
|
-
});
|
|
49
|
+
type: zod.z.string().nullable(),
|
|
50
|
+
workspace: zod.z.boolean().nullable()
|
|
51
|
+
}).passthrough();
|
|
52
52
|
const NotionRetrievePage_ParentBlockSchema = zod.z.object({
|
|
53
|
-
type: zod.z.string(),
|
|
54
|
-
block_id: zod.z.string().describe("Block ID (UUID).")
|
|
55
|
-
});
|
|
53
|
+
type: zod.z.string().nullable(),
|
|
54
|
+
block_id: zod.z.string().describe("Block ID (UUID).").nullable()
|
|
55
|
+
}).passthrough();
|
|
56
56
|
const NotionRetrievePage_BotOwnerWorkspaceSchema = zod.z.object({
|
|
57
|
-
type: zod.z.string(),
|
|
58
|
-
workspace: zod.z.boolean()
|
|
59
|
-
});
|
|
57
|
+
type: zod.z.string().nullable(),
|
|
58
|
+
workspace: zod.z.boolean().nullable()
|
|
59
|
+
}).passthrough();
|
|
60
60
|
const NotionRetrievePage_BotOwnerUserRefSchema = zod.z.object({
|
|
61
|
-
id: zod.z.string().describe("User ID of the bot owner."),
|
|
62
|
-
object: zod.z.string().describe("Always \"user\".")
|
|
63
|
-
});
|
|
61
|
+
id: zod.z.string().describe("User ID of the bot owner.").nullable(),
|
|
62
|
+
object: zod.z.string().describe("Always \"user\".").nullable()
|
|
63
|
+
}).passthrough();
|
|
64
64
|
const NotionRetrievePage_BotOwnerUserSchema = zod.z.object({
|
|
65
|
-
type: zod.z.string(),
|
|
65
|
+
type: zod.z.string().nullable(),
|
|
66
66
|
user: NotionRetrievePage_BotOwnerUserRefSchema.nullable()
|
|
67
|
-
});
|
|
68
|
-
const NotionRetrievePage_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() });
|
|
67
|
+
}).passthrough();
|
|
68
|
+
const NotionRetrievePage_WorkspaceLimitsSchema = zod.z.object({ max_file_upload_size_in_bytes: zod.z.number().int().describe("Maximum file upload size in bytes.").nullable().optional() }).passthrough();
|
|
69
69
|
const NotionRetrievePage_BotDetailsSchema = zod.z.object({
|
|
70
70
|
owner: zod.z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),
|
|
71
71
|
workspace_id: zod.z.string().describe("Bot's workspace ID.").nullable().optional(),
|
|
72
72
|
workspace_name: zod.z.string().describe("Name of the workspace (null if owner is user).").nullable().optional(),
|
|
73
73
|
workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional()
|
|
74
|
-
});
|
|
75
|
-
const NotionRetrievePage_PersonDetailsSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person.").nullable().optional() });
|
|
74
|
+
}).passthrough();
|
|
75
|
+
const NotionRetrievePage_PersonDetailsSchema = zod.z.object({ email: zod.z.string().describe("Email address of the person.").nullable().optional() }).passthrough();
|
|
76
76
|
const NotionRetrievePage_PartialUserSchema = zod.z.object({
|
|
77
|
-
id: zod.z.string().describe("Unique identifier for the user (UUID)."),
|
|
77
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID).").nullable(),
|
|
78
78
|
bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),
|
|
79
79
|
name: zod.z.string().describe("Display name of the user.").nullable().optional(),
|
|
80
80
|
type: zod.z.enum(["person", "bot"]).describe("Type of user: 'person' or 'bot'.").nullable().optional(),
|
|
81
|
-
object: zod.z.string().describe("Always \"user\"."),
|
|
81
|
+
object: zod.z.string().describe("Always \"user\".").nullable(),
|
|
82
82
|
person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),
|
|
83
83
|
avatar_url: zod.z.string().describe("URL to the user's avatar image, or null.").nullable().optional()
|
|
84
|
-
});
|
|
84
|
+
}).passthrough();
|
|
85
85
|
const NotionRetrievePageOutput = zod.z.object({
|
|
86
|
-
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format)."),
|
|
87
|
-
url: zod.z.string().describe("The URL of the Notion page."),
|
|
86
|
+
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format).").nullable(),
|
|
87
|
+
url: zod.z.string().describe("The URL of the Notion page.").nullable(),
|
|
88
88
|
icon: zod.z.union([
|
|
89
89
|
NotionRetrievePage_EmojiObjectSchema,
|
|
90
90
|
NotionRetrievePage_CustomEmojiIconSchema,
|
|
@@ -97,7 +97,7 @@ const NotionRetrievePageOutput = zod.z.object({
|
|
|
97
97
|
NotionRetrievePage_FileObjectFileUploadSchema,
|
|
98
98
|
NotionRetrievePage_FileObjectFileSchema
|
|
99
99
|
]).nullable().optional(),
|
|
100
|
-
object: zod.z.string().describe("Always \"page\"."),
|
|
100
|
+
object: zod.z.string().describe("Always \"page\".").nullable(),
|
|
101
101
|
parent: zod.z.union([
|
|
102
102
|
NotionRetrievePage_ParentDataSourceSchema,
|
|
103
103
|
NotionRetrievePage_ParentDatabaseSchema,
|
|
@@ -105,17 +105,17 @@ const NotionRetrievePageOutput = zod.z.object({
|
|
|
105
105
|
NotionRetrievePage_ParentWorkspaceSchema,
|
|
106
106
|
NotionRetrievePage_ParentBlockSchema
|
|
107
107
|
]),
|
|
108
|
-
archived: zod.z.boolean().describe("Whether the page is archived."),
|
|
109
|
-
in_trash: zod.z.boolean().describe("Whether the page is in the trash."),
|
|
108
|
+
archived: zod.z.boolean().describe("Whether the page is archived.").nullable(),
|
|
109
|
+
in_trash: zod.z.boolean().describe("Whether the page is in the trash.").nullable(),
|
|
110
110
|
is_locked: zod.z.boolean().nullable().optional(),
|
|
111
111
|
created_by: NotionRetrievePage_PartialUserSchema.nullable(),
|
|
112
|
-
properties: zod.z.
|
|
112
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data."),
|
|
113
113
|
public_url: zod.z.string().describe("The public page URL if the page has been published to the web, otherwise null.").nullable().optional(),
|
|
114
114
|
request_id: zod.z.string().nullable().optional(),
|
|
115
|
-
created_time: zod.z.string().describe("Date and time when this page was created (ISO 8601 format)."),
|
|
115
|
+
created_time: zod.z.string().describe("Date and time when this page was created (ISO 8601 format).").nullable(),
|
|
116
116
|
last_edited_by: NotionRetrievePage_PartialUserSchema.nullable(),
|
|
117
|
-
last_edited_time: zod.z.string().describe("Date and time when this page was last edited (ISO 8601 format).")
|
|
118
|
-
}).describe("Response for retrieving a Notion page. Returns the complete Page object including\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\n\nNote: This endpoint returns page properties and metadata only, not page content.\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\nProperties with more than 25 references may not return complete values; use\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.");
|
|
117
|
+
last_edited_time: zod.z.string().describe("Date and time when this page was last edited (ISO 8601 format).").nullable()
|
|
118
|
+
}).passthrough().describe("Response for retrieving a Notion page. Returns the complete Page object including\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\n\nNote: This endpoint returns page properties and metadata only, not page content.\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\nProperties with more than 25 references may not return complete values; use\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.");
|
|
119
119
|
const notionRetrievePage = require_action.action("NOTION_RETRIEVE_PAGE", {
|
|
120
120
|
slug: "notion-retrieve-page",
|
|
121
121
|
name: "Retrieve page",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-page.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrievePageInput: z.ZodTypeAny = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.\"),\n});\nconst NotionRetrievePage_EmojiObjectSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n emoji: z.string(),\n});\nconst NotionRetrievePage_CustomEmojiDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the custom emoji.\").nullable().optional(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n});\nconst NotionRetrievePage_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable(),\n});\nconst NotionRetrievePage_ExternalFileDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\"),\n});\nconst NotionRetrievePage_FileObjectExternalSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n external: NotionRetrievePage_ExternalFileDetailsSchema.nullable(),\n});\nconst NotionRetrievePage_FileUploadDetailsSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\"),\n});\nconst NotionRetrievePage_FileObjectFileUploadSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable(),\n});\nconst NotionRetrievePage_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 NotionRetrievePage_FileObjectFileSchema: z.ZodTypeAny = z.object({\n file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),\n type: z.string(),\n});\nconst NotionRetrievePage_ParentDataSourceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\"),\n});\nconst NotionRetrievePage_ParentDatabaseSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n database_id: z.string().describe(\"Database ID (UUID).\"),\n});\nconst NotionRetrievePage_ParentPageSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n page_id: z.string().describe(\"Page ID (UUID).\"),\n});\nconst NotionRetrievePage_ParentWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n});\nconst NotionRetrievePage_ParentBlockSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n block_id: z.string().describe(\"Block ID (UUID).\"),\n});\nconst NotionRetrievePage_BotOwnerWorkspaceSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n workspace: z.boolean(),\n});\nconst NotionRetrievePage_BotOwnerUserRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User ID of the bot owner.\"),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n});\nconst NotionRetrievePage_BotOwnerUserSchema: z.ZodTypeAny = z.object({\n type: z.string(),\n user: NotionRetrievePage_BotOwnerUserRefSchema.nullable(),\n});\nconst NotionRetrievePage_WorkspaceLimitsSchema: z.ZodTypeAny = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n});\nconst NotionRetrievePage_BotDetailsSchema: z.ZodTypeAny = z.object({\n owner: z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional(),\n});\nconst NotionRetrievePage_PersonDetailsSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n});\nconst NotionRetrievePage_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\"),\n bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n});\nexport const NotionRetrievePageOutput: 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([NotionRetrievePage_EmojiObjectSchema, NotionRetrievePage_CustomEmojiIconSchema, NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\"),\n parent: z.union([NotionRetrievePage_ParentDataSourceSchema, NotionRetrievePage_ParentDatabaseSchema, NotionRetrievePage_ParentPageSchema, NotionRetrievePage_ParentWorkspaceSchema, NotionRetrievePage_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: NotionRetrievePage_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: NotionRetrievePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\"),\n}).describe(\"Response for retrieving a Notion page. Returns the complete Page object including\\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\\n\\nNote: This endpoint returns page properties and metadata only, not page content.\\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\\nProperties with more than 25 references may not return complete values; use\\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.\");\n\nexport const notionRetrievePage = action(\"NOTION_RETRIEVE_PAGE\", {\n slug: \"notion-retrieve-page\",\n name: \"Retrieve page\",\n description: \"Retrieve a Notion page's properties/metadata (not block content) by page_id. Use when you have a page URL/ID and need to access its properties; for page content use block-children tools.\",\n input: NotionRetrievePageInput,\n output: NotionRetrievePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,EACjgB,CAAC;AACD,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO;CACf,OAAOA,IAAAA,EAAE,OAAO;AAClB,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CA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C,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzP,OAAOA,IAAAA,EAAE,MAAM;EAAC;EAA6C;EAA+C;CAAuC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC9C,QAAQA,IAAAA,EAAE,MAAM;EAAC;EAA2C;EAAyC;EAAqC;EAA0C;CAAoC,CAAC;CACzN,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;CAC9D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CAClE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,YAAY,qCAAqC,SAAS;CAC1D,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,qCAAqC,SAAS;CAC9D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACzG,CAAC,CAAC,CAAC,SAAS,seAAse;AAElf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"retrieve-page.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionRetrievePageInput = z.object({\n page_id: z.string().describe(\"The UUID of the Notion page to retrieve. Accepts both hyphenated (8-4-4-4-12) and unhyphenated (32 characters) UUID formats. IMPORTANT: Must be a PAGE ID, not a database ID. If you have a database ID, use NOTION_FETCH_DATABASE instead. This endpoint returns page properties and metadata, not page content (use block-children tools for content). For pages with properties containing more than 25 references, use NOTION_GET_PAGE_PROPERTY_ACTION to retrieve complete property values.\"),\n});\nconst NotionRetrievePage_EmojiObjectSchema = z.object({\n type: z.string().nullable(),\n emoji: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiDetailsSchema = z.object({\n id: z.string().describe(\"ID of the custom emoji.\").nullable().optional(),\n url: z.string().describe(\"URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_CustomEmojiIconSchema = z.object({\n type: z.string().nullable(),\n custom_emoji: NotionRetrievePage_CustomEmojiDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_ExternalFileDetailsSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectExternalSchema = z.object({\n type: z.string().nullable(),\n external: NotionRetrievePage_ExternalFileDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileUploadDetailsSchema = z.object({\n id: z.string().describe(\"ID of the uploaded file (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileUploadSchema = z.object({\n type: z.string().nullable(),\n file_upload: NotionRetrievePage_FileUploadDetailsSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_NotionHostedFileDetailsSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"Expiration time of the temporary URL (ISO 8601 format).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_FileObjectFileSchema = z.object({\n file: NotionRetrievePage_NotionHostedFileDetailsSchema.nullable(),\n type: z.string().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDataSourceSchema = z.object({\n type: z.string().nullable(),\n data_source_id: z.string().describe(\"Data source ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentDatabaseSchema = z.object({\n type: z.string().nullable(),\n database_id: z.string().describe(\"Database ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentPageSchema = z.object({\n type: z.string().nullable(),\n page_id: z.string().describe(\"Page ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_ParentBlockSchema = z.object({\n type: z.string().nullable(),\n block_id: z.string().describe(\"Block ID (UUID).\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerWorkspaceSchema = z.object({\n type: z.string().nullable(),\n workspace: z.boolean().nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserRefSchema = z.object({\n id: z.string().describe(\"User ID of the bot owner.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).passthrough();\nconst NotionRetrievePage_BotOwnerUserSchema = z.object({\n type: z.string().nullable(),\n user: NotionRetrievePage_BotOwnerUserRefSchema.nullable(),\n}).passthrough();\nconst NotionRetrievePage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_BotDetailsSchema = z.object({\n owner: z.union([NotionRetrievePage_BotOwnerWorkspaceSchema, NotionRetrievePage_BotOwnerUserSchema]).nullable().optional(),\n workspace_id: z.string().describe(\"Bot's workspace ID.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace (null if owner is user).\").nullable().optional(),\n workspace_limits: NotionRetrievePage_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PersonDetailsSchema = z.object({\n email: z.string().describe(\"Email address of the person.\").nullable().optional(),\n}).passthrough();\nconst NotionRetrievePage_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionRetrievePage_BotDetailsSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n person: NotionRetrievePage_PersonDetailsSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image, or null.\").nullable().optional(),\n}).passthrough();\nexport const NotionRetrievePageOutput = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable(),\n icon: z.union([NotionRetrievePage_EmojiObjectSchema, NotionRetrievePage_CustomEmojiIconSchema, NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n cover: z.union([NotionRetrievePage_FileObjectExternalSchema, NotionRetrievePage_FileObjectFileUploadSchema, NotionRetrievePage_FileObjectFileSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\".\").nullable(),\n parent: z.union([NotionRetrievePage_ParentDataSourceSchema, NotionRetrievePage_ParentDatabaseSchema, NotionRetrievePage_ParentPageSchema, NotionRetrievePage_ParentWorkspaceSchema, NotionRetrievePage_ParentBlockSchema]),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable(),\n is_locked: z.boolean().nullable().optional(),\n created_by: NotionRetrievePage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys are property names, values are property value objects with id, type, and type-specific data.\"),\n public_url: z.string().describe(\"The public page URL if the page has been published to the web, otherwise null.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created (ISO 8601 format).\").nullable(),\n last_edited_by: NotionRetrievePage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"Date and time when this page was last edited (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Response for retrieving a Notion page. Returns the complete Page object including\\nproperties, parent, url, timestamps, archived/in_trash status, icon, and cover.\\n\\nNote: This endpoint returns page properties and metadata only, not page content.\\nTo retrieve page content blocks, use NOTION_FETCH_BLOCK_CONTENTS or similar tools.\\nProperties with more than 25 references may not return complete values; use\\nNOTION_GET_PAGE_PROPERTY_ACTION for complete property values in such cases.\");\n\nexport const notionRetrievePage = action(\"NOTION_RETRIEVE_PAGE\", {\n slug: \"notion-retrieve-page\",\n name: \"Retrieve page\",\n description: \"Retrieve a Notion page's properties/metadata (not block content) by page_id. Use when you have a page URL/ID and need to access its properties; for page content use block-children tools.\",\n input: NotionRetrievePageInput,\n output: NotionRetrievePageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,EACjgB,CAAC;AACD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;AAC7B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,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,SAAS,gIAAgI;CACvL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC1G,gBAAgB,qCAAqC,SAAS;CAC9D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,seAAse;AAEhgB,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,145 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/retrieve-page.d.ts
|
|
4
|
-
declare const NotionRetrievePageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionRetrievePageInput: z.ZodObject<{
|
|
5
|
+
page_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NotionRetrievePageOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
emoji: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
21
|
+
type: z.ZodNullable<z.ZodString>;
|
|
22
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
url: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
26
|
+
type: z.ZodNullable<z.ZodString>;
|
|
27
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
id: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
url: z.ZodNullable<z.ZodString>;
|
|
33
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
type: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$loose>]>>>;
|
|
37
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
38
|
+
type: z.ZodNullable<z.ZodString>;
|
|
39
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
url: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
43
|
+
type: z.ZodNullable<z.ZodString>;
|
|
44
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
id: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
48
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
url: z.ZodNullable<z.ZodString>;
|
|
50
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
type: z.ZodNullable<z.ZodString>;
|
|
53
|
+
}, z.core.$loose>]>>>;
|
|
54
|
+
object: z.ZodNullable<z.ZodString>;
|
|
55
|
+
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
56
|
+
type: z.ZodNullable<z.ZodString>;
|
|
57
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
58
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
59
|
+
type: z.ZodNullable<z.ZodString>;
|
|
60
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
62
|
+
type: z.ZodNullable<z.ZodString>;
|
|
63
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
64
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
65
|
+
type: z.ZodNullable<z.ZodString>;
|
|
66
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
68
|
+
type: z.ZodNullable<z.ZodString>;
|
|
69
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$loose>]>;
|
|
71
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
72
|
+
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
73
|
+
is_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
74
|
+
created_by: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
id: z.ZodNullable<z.ZodString>;
|
|
76
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
77
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
78
|
+
type: z.ZodNullable<z.ZodString>;
|
|
79
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
80
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
81
|
+
type: z.ZodNullable<z.ZodString>;
|
|
82
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
id: z.ZodNullable<z.ZodString>;
|
|
84
|
+
object: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, z.core.$loose>>;
|
|
86
|
+
}, z.core.$loose>]>>>;
|
|
87
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
90
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
91
|
+
}, z.core.$loose>>>;
|
|
92
|
+
}, z.core.$loose>>>;
|
|
93
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
95
|
+
bot: "bot";
|
|
96
|
+
person: "person";
|
|
97
|
+
}>>>;
|
|
98
|
+
object: z.ZodNullable<z.ZodString>;
|
|
99
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
100
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
}, z.core.$loose>>>;
|
|
102
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
}, z.core.$loose>>;
|
|
104
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
105
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
108
|
+
last_edited_by: z.ZodNullable<z.ZodObject<{
|
|
109
|
+
id: z.ZodNullable<z.ZodString>;
|
|
110
|
+
bot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
111
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
112
|
+
type: z.ZodNullable<z.ZodString>;
|
|
113
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
114
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
115
|
+
type: z.ZodNullable<z.ZodString>;
|
|
116
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
id: z.ZodNullable<z.ZodString>;
|
|
118
|
+
object: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$loose>>;
|
|
120
|
+
}, z.core.$loose>]>>>;
|
|
121
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
workspace_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
124
|
+
max_file_upload_size_in_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
125
|
+
}, z.core.$loose>>>;
|
|
126
|
+
}, z.core.$loose>>>;
|
|
127
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
129
|
+
bot: "bot";
|
|
130
|
+
person: "person";
|
|
131
|
+
}>>>;
|
|
132
|
+
object: z.ZodNullable<z.ZodString>;
|
|
133
|
+
person: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
134
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
}, z.core.$loose>>>;
|
|
136
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
}, z.core.$loose>>;
|
|
138
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$loose>;
|
|
140
|
+
declare const notionRetrievePage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
141
|
+
page_id: string;
|
|
142
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
143
|
//#endregion
|
|
8
144
|
export { notionRetrievePage };
|
|
9
145
|
//# sourceMappingURL=retrieve-page.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-page.d.cts","names":[],"sources":["../../src/actions/retrieve-page.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"retrieve-page.d.cts","names":[],"sources":["../../src/actions/retrieve-page.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cA2FvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBxB,kBAAA,gCAAkB,wBAAA"}
|