@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":"append-media-blocks.d.mts","names":[],"sources":["../../src/actions/append-media-blocks.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"append-media-blocks.d.mts","names":[],"sources":["../../src/actions/append-media-blocks.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgX5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -11,9 +11,9 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
11
11
|
type: z.string().default("external").describe("Image source type. Use 'external' for URLs.").optional(),
|
|
12
12
|
caption: z.array(z.object({
|
|
13
13
|
text: z.object({
|
|
14
|
-
link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
14
|
+
link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
15
15
|
content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
16
|
-
}).describe("The text content object."),
|
|
16
|
+
}).passthrough().describe("The text content object."),
|
|
17
17
|
type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
18
18
|
annotations: z.object({
|
|
19
19
|
bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -42,21 +42,21 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
42
42
|
italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
43
43
|
underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
44
44
|
strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
45
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
46
|
-
}).describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
47
|
-
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).describe("External image URL.")
|
|
48
|
-
}).describe("Image content."),
|
|
45
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
46
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
47
|
+
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).passthrough().describe("External image URL.")
|
|
48
|
+
}).passthrough().describe("Image content."),
|
|
49
49
|
object: z.string().default("block").describe("Always 'block'.").optional()
|
|
50
|
-
}).describe("An image block object."),
|
|
50
|
+
}).passthrough().describe("An image block object."),
|
|
51
51
|
z.object({
|
|
52
52
|
type: z.string().default("video").describe("Block type.").optional(),
|
|
53
53
|
video: z.object({
|
|
54
54
|
type: z.string().default("external").describe("Video source type. Use 'external' for URLs.").optional(),
|
|
55
55
|
caption: z.array(z.object({
|
|
56
56
|
text: z.object({
|
|
57
|
-
link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
57
|
+
link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
58
58
|
content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
59
|
-
}).describe("The text content object."),
|
|
59
|
+
}).passthrough().describe("The text content object."),
|
|
60
60
|
type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
61
61
|
annotations: z.object({
|
|
62
62
|
bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -85,21 +85,21 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
85
85
|
italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
86
86
|
underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
87
87
|
strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
88
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
89
|
-
}).describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
90
|
-
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).describe("External video URL. Supports YouTube, Vimeo, and direct video file URLs.")
|
|
91
|
-
}).describe("Video content."),
|
|
88
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
89
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
90
|
+
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).passthrough().describe("External video URL. Supports YouTube, Vimeo, and direct video file URLs.")
|
|
91
|
+
}).passthrough().describe("Video content."),
|
|
92
92
|
object: z.string().default("block").describe("Always 'block'.").optional()
|
|
93
|
-
}).describe("A video block object."),
|
|
93
|
+
}).passthrough().describe("A video block object."),
|
|
94
94
|
z.object({
|
|
95
95
|
type: z.string().default("audio").describe("Block type.").optional(),
|
|
96
96
|
audio: z.object({
|
|
97
97
|
type: z.string().default("external").describe("Audio source type. Use 'external' for URLs.").optional(),
|
|
98
98
|
caption: z.array(z.object({
|
|
99
99
|
text: z.object({
|
|
100
|
-
link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
100
|
+
link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
101
101
|
content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
102
|
-
}).describe("The text content object."),
|
|
102
|
+
}).passthrough().describe("The text content object."),
|
|
103
103
|
type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
104
104
|
annotations: z.object({
|
|
105
105
|
bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -128,20 +128,20 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
128
128
|
italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
129
129
|
underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
130
130
|
strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
131
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
132
|
-
}).describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
133
|
-
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).describe("External audio URL.")
|
|
134
|
-
}).describe("Audio content."),
|
|
131
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
132
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
133
|
+
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).passthrough().describe("External audio URL.")
|
|
134
|
+
}).passthrough().describe("Audio content."),
|
|
135
135
|
object: z.string().default("block").describe("Always 'block'.").optional()
|
|
136
|
-
}).describe("An audio block object."),
|
|
136
|
+
}).passthrough().describe("An audio block object."),
|
|
137
137
|
z.object({
|
|
138
138
|
file: z.object({
|
|
139
139
|
type: z.string().default("external").describe("File source type. Use 'external' for URLs.").optional(),
|
|
140
140
|
caption: z.array(z.object({
|
|
141
141
|
text: z.object({
|
|
142
|
-
link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
142
|
+
link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
143
143
|
content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
144
|
-
}).describe("The text content object."),
|
|
144
|
+
}).passthrough().describe("The text content object."),
|
|
145
145
|
type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
146
146
|
annotations: z.object({
|
|
147
147
|
bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -170,21 +170,21 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
170
170
|
italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
171
171
|
underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
172
172
|
strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
173
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
174
|
-
}).describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
175
|
-
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).describe("External file URL.")
|
|
176
|
-
}).describe("File content."),
|
|
173
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
174
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
175
|
+
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).passthrough().describe("External file URL.")
|
|
176
|
+
}).passthrough().describe("File content."),
|
|
177
177
|
type: z.string().default("file").describe("Block type.").optional(),
|
|
178
178
|
object: z.string().default("block").describe("Always 'block'.").optional()
|
|
179
|
-
}).describe("A file block object."),
|
|
179
|
+
}).passthrough().describe("A file block object."),
|
|
180
180
|
z.object({
|
|
181
181
|
pdf: z.object({
|
|
182
182
|
type: z.string().default("external").describe("PDF source type. Use 'external' for URLs.").optional(),
|
|
183
183
|
caption: z.array(z.object({
|
|
184
184
|
text: z.object({
|
|
185
|
-
link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
185
|
+
link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
186
186
|
content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
187
|
-
}).describe("The text content object."),
|
|
187
|
+
}).passthrough().describe("The text content object."),
|
|
188
188
|
type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
189
189
|
annotations: z.object({
|
|
190
190
|
bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -213,18 +213,18 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
213
213
|
italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
214
214
|
underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
215
215
|
strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
216
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
217
|
-
}).describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
218
|
-
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).describe("External PDF URL.")
|
|
219
|
-
}).describe("PDF content."),
|
|
216
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
217
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).nullable().optional(),
|
|
218
|
+
external: z.object({ url: z.string().describe("URL of the external file, image, or video.") }).passthrough().describe("External PDF URL.")
|
|
219
|
+
}).passthrough().describe("PDF content."),
|
|
220
220
|
type: z.string().default("pdf").describe("Block type.").optional(),
|
|
221
221
|
object: z.string().default("block").describe("Always 'block'.").optional()
|
|
222
|
-
}).describe("A PDF block object."),
|
|
222
|
+
}).passthrough().describe("A PDF block object."),
|
|
223
223
|
z.object({
|
|
224
224
|
type: z.string().default("embed").describe("Block type.").optional(),
|
|
225
|
-
embed: z.object({ url: z.string().describe("URL to embed. Supports Twitter, Google Maps, Figma, CodePen, and more.") }).describe("Embed content."),
|
|
225
|
+
embed: z.object({ url: z.string().describe("URL to embed. Supports Twitter, Google Maps, Figma, CodePen, and more.") }).passthrough().describe("Embed content."),
|
|
226
226
|
object: z.string().default("block").describe("Always 'block'.").optional()
|
|
227
|
-
}).describe("An embed block object (iframe for supported services)."),
|
|
227
|
+
}).passthrough().describe("An embed block object (iframe for supported services)."),
|
|
228
228
|
z.object({
|
|
229
229
|
type: z.string().default("bookmark").describe("Block type.").optional(),
|
|
230
230
|
object: z.string().default("block").describe("Always 'block'.").optional(),
|
|
@@ -232,9 +232,9 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
232
232
|
url: z.string().describe("URL of the webpage to bookmark."),
|
|
233
233
|
caption: z.array(z.object({
|
|
234
234
|
text: z.object({
|
|
235
|
-
link: z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
235
|
+
link: z.object({ url: z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
236
236
|
content: z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
237
|
-
}).describe("The text content object."),
|
|
237
|
+
}).passthrough().describe("The text content object."),
|
|
238
238
|
type: z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
239
239
|
annotations: z.object({
|
|
240
240
|
bold: z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -263,133 +263,133 @@ const NotionAppendMediaBlocksInput = z.object({
|
|
|
263
263
|
italic: z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
264
264
|
underline: z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
265
265
|
strikethrough: z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
266
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
267
|
-
}).describe("Rich text object for creating text content in blocks.")).nullable().optional()
|
|
268
|
-
}).describe("Bookmark content.")
|
|
269
|
-
}).describe("A bookmark block object (link preview).")
|
|
266
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
267
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).nullable().optional()
|
|
268
|
+
}).passthrough().describe("Bookmark content.")
|
|
269
|
+
}).passthrough().describe("A bookmark block object (link preview).")
|
|
270
270
|
])).describe("Array of media block objects to append. Supported types:\n- image: Image from external URL\n- video: Video from YouTube, Vimeo, or direct URL\n- audio: Audio file from external URL\n- file: Generic file download link\n- pdf: PDF document (rendered inline)\n- embed: Embed from supported services (Twitter, Figma, CodePen, etc.)\n- bookmark: Link preview with title and description\n\nAll media types require an external URL.\nMax 100 blocks per request.")
|
|
271
271
|
}).describe("Request model for appending media blocks to a Notion page.");
|
|
272
|
-
const NotionAppendMediaBlocks_EmptyBlockObjectSchema = z.
|
|
272
|
+
const NotionAppendMediaBlocks_EmptyBlockObjectSchema = z.record(z.string(), z.unknown()).describe("Empty object for the 'block' field in list responses.\n\nThe Notion API returns an empty object {} for this field.");
|
|
273
273
|
const NotionAppendMediaBlocks_NotionHostedFileResponseSchema = z.object({
|
|
274
|
-
url: z.string().describe("Temporary URL for the file."),
|
|
275
|
-
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
276
|
-
}).describe("Notion-hosted file in API responses.");
|
|
277
|
-
const NotionAppendMediaBlocks_TextLinkSchema = z.object({ url: z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.");
|
|
274
|
+
url: z.string().describe("Temporary URL for the file.").nullable(),
|
|
275
|
+
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
276
|
+
}).passthrough().describe("Notion-hosted file in API responses.");
|
|
277
|
+
const NotionAppendMediaBlocks_TextLinkSchema = z.object({ url: z.string().describe("The URL the text links to.").nullable() }).passthrough().describe("Link object for hyperlinked text.");
|
|
278
278
|
const NotionAppendMediaBlocks_RichTextTextContentSchema = z.object({
|
|
279
279
|
link: NotionAppendMediaBlocks_TextLinkSchema.nullable().optional(),
|
|
280
|
-
content: z.string().describe("The actual text content.")
|
|
281
|
-
}).describe("Text content object in rich text responses.");
|
|
280
|
+
content: z.string().describe("The actual text content.").nullable()
|
|
281
|
+
}).passthrough().describe("Text content object in rich text responses.");
|
|
282
282
|
const NotionAppendMediaBlocks_RichTextAnnotationsResponseSchema = z.object({
|
|
283
|
-
bold: z.boolean().describe("Whether the text is bold."),
|
|
284
|
-
code: z.boolean().describe("Whether the text is inline code."),
|
|
285
|
-
color: z.string().describe("Color of the text or background."),
|
|
286
|
-
italic: z.boolean().describe("Whether the text is italic."),
|
|
287
|
-
underline: z.boolean().describe("Whether the text is underlined."),
|
|
288
|
-
strikethrough: z.boolean().describe("Whether the text has strikethrough.")
|
|
289
|
-
}).describe("Text styling annotations returned in API responses.");
|
|
283
|
+
bold: z.boolean().describe("Whether the text is bold.").nullable(),
|
|
284
|
+
code: z.boolean().describe("Whether the text is inline code.").nullable(),
|
|
285
|
+
color: z.string().describe("Color of the text or background.").nullable(),
|
|
286
|
+
italic: z.boolean().describe("Whether the text is italic.").nullable(),
|
|
287
|
+
underline: z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
288
|
+
strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
289
|
+
}).passthrough().describe("Text styling annotations returned in API responses.");
|
|
290
290
|
const NotionAppendMediaBlocks_RichTextResponseSchema = z.object({
|
|
291
291
|
href: z.string().describe("URL if the text is a link.").nullable().optional(),
|
|
292
292
|
text: NotionAppendMediaBlocks_RichTextTextContentSchema.nullable().optional(),
|
|
293
|
-
type: z.string().describe("Type of rich text (text, mention, equation)."),
|
|
294
|
-
plain_text: z.string().describe("Plain text without formatting."),
|
|
293
|
+
type: z.string().describe("Type of rich text (text, mention, equation).").nullable(),
|
|
294
|
+
plain_text: z.string().describe("Plain text without formatting.").nullable(),
|
|
295
295
|
annotations: NotionAppendMediaBlocks_RichTextAnnotationsResponseSchema.nullable()
|
|
296
|
-
}).describe("Rich text object returned in API responses.");
|
|
297
|
-
const NotionAppendMediaBlocks_ExternalFileResponseSchema = z.object({ url: z.string().describe("URL of the external file.") }).describe("External file URL in API responses.");
|
|
296
|
+
}).passthrough().describe("Rich text object returned in API responses.");
|
|
297
|
+
const NotionAppendMediaBlocks_ExternalFileResponseSchema = z.object({ url: z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL in API responses.");
|
|
298
298
|
const NotionAppendMediaBlocks_PdfBlockContentSchema = z.object({
|
|
299
299
|
file: NotionAppendMediaBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
300
|
-
type: z.string().describe("PDF source type (external, file)."),
|
|
300
|
+
type: z.string().describe("PDF source type (external, file).").nullable(),
|
|
301
301
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("PDF caption as rich text.").nullable().optional(),
|
|
302
302
|
external: NotionAppendMediaBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
303
|
-
}).describe("Content of a PDF block in API responses.");
|
|
303
|
+
}).passthrough().describe("Content of a PDF block in API responses.");
|
|
304
304
|
const NotionAppendMediaBlocks_CodeBlockContentSchema = z.object({
|
|
305
305
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Code block caption.").nullable().optional(),
|
|
306
|
-
language: z.string().describe("Programming language of the code."),
|
|
306
|
+
language: z.string().describe("Programming language of the code.").nullable(),
|
|
307
307
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the code.")
|
|
308
|
-
}).describe("Content of a code block in API responses.");
|
|
308
|
+
}).passthrough().describe("Content of a code block in API responses.");
|
|
309
309
|
const NotionAppendMediaBlocks_FileBlockContentSchema = z.object({
|
|
310
310
|
file: NotionAppendMediaBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
311
311
|
name: z.string().describe("Name of the file.").nullable().optional(),
|
|
312
|
-
type: z.string().describe("File source type (external, file)."),
|
|
312
|
+
type: z.string().describe("File source type (external, file).").nullable(),
|
|
313
313
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("File caption as rich text.").nullable().optional(),
|
|
314
314
|
external: NotionAppendMediaBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
315
|
-
}).describe("Content of a file block in API responses.");
|
|
315
|
+
}).passthrough().describe("Content of a file block in API responses.");
|
|
316
316
|
const NotionAppendMediaBlocks_AudioBlockContentSchema = z.object({
|
|
317
317
|
file: NotionAppendMediaBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
318
|
-
type: z.string().describe("Audio source type (external, file)."),
|
|
318
|
+
type: z.string().describe("Audio source type (external, file).").nullable(),
|
|
319
319
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Audio caption as rich text.").nullable().optional(),
|
|
320
320
|
external: NotionAppendMediaBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
321
|
-
}).describe("Content of an audio block in API responses.");
|
|
321
|
+
}).passthrough().describe("Content of an audio block in API responses.");
|
|
322
322
|
const NotionAppendMediaBlocks_EmbedBlockContentSchema = z.object({
|
|
323
|
-
url: z.string().describe("URL of the embedded content."),
|
|
323
|
+
url: z.string().describe("URL of the embedded content.").nullable(),
|
|
324
324
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Embed caption as rich text.").nullable().optional()
|
|
325
|
-
}).describe("Content of an embed block in API responses.");
|
|
325
|
+
}).passthrough().describe("Content of an embed block in API responses.");
|
|
326
326
|
const NotionAppendMediaBlocks_ImageBlockContentSchema = z.object({
|
|
327
327
|
file: NotionAppendMediaBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
328
|
-
type: z.string().describe("Image source type (external, file)."),
|
|
328
|
+
type: z.string().describe("Image source type (external, file).").nullable(),
|
|
329
329
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Image caption as rich text.").nullable().optional(),
|
|
330
330
|
external: NotionAppendMediaBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
331
|
-
}).describe("Content of an image block in API responses.");
|
|
331
|
+
}).passthrough().describe("Content of an image block in API responses.");
|
|
332
332
|
const NotionAppendMediaBlocks_QuoteBlockContentSchema = z.object({
|
|
333
333
|
color: z.string().default("default").describe("Color of the quote.").nullable().optional(),
|
|
334
334
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the quote.")
|
|
335
|
-
}).describe("Content of a quote block in API responses.");
|
|
335
|
+
}).passthrough().describe("Content of a quote block in API responses.");
|
|
336
336
|
const NotionAppendMediaBlocks_TableBlockContentSchema = z.object({
|
|
337
|
-
table_width: z.number().int().describe("Number of columns in the table."),
|
|
338
|
-
has_row_header: z.boolean().describe("Whether the first column is a header."),
|
|
339
|
-
has_column_header: z.boolean().describe("Whether the first row is a header.")
|
|
340
|
-
}).describe("Content of a table block in API responses.");
|
|
337
|
+
table_width: z.number().int().describe("Number of columns in the table.").nullable(),
|
|
338
|
+
has_row_header: z.boolean().describe("Whether the first column is a header.").nullable(),
|
|
339
|
+
has_column_header: z.boolean().describe("Whether the first row is a header.").nullable()
|
|
340
|
+
}).passthrough().describe("Content of a table block in API responses.");
|
|
341
341
|
const NotionAppendMediaBlocks_ToDoBlockContentSchema = z.object({
|
|
342
342
|
color: z.string().default("default").describe("Color of the to-do item.").nullable().optional(),
|
|
343
343
|
checked: z.boolean().default(false).describe("Whether the to-do is checked.").nullable().optional(),
|
|
344
344
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the to-do item.")
|
|
345
|
-
}).describe("Content of a to-do block in API responses.");
|
|
345
|
+
}).passthrough().describe("Content of a to-do block in API responses.");
|
|
346
346
|
const NotionAppendMediaBlocks_VideoBlockContentSchema = z.object({
|
|
347
347
|
file: NotionAppendMediaBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
348
|
-
type: z.string().describe("Video source type (external, file)."),
|
|
348
|
+
type: z.string().describe("Video source type (external, file).").nullable(),
|
|
349
349
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Video caption as rich text.").nullable().optional(),
|
|
350
350
|
external: NotionAppendMediaBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
351
|
-
}).describe("Content of a video block in API responses.");
|
|
352
|
-
const NotionAppendMediaBlocks_ColumnBlockContentSchema = z.
|
|
351
|
+
}).passthrough().describe("Content of a video block in API responses.");
|
|
352
|
+
const NotionAppendMediaBlocks_ColumnBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a column block (empty object).");
|
|
353
353
|
const NotionAppendMediaBlocks_BlockParentSchema = z.object({
|
|
354
354
|
type: z.enum([
|
|
355
355
|
"page_id",
|
|
356
356
|
"block_id",
|
|
357
357
|
"data_source_id"
|
|
358
|
-
]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'."),
|
|
358
|
+
]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'.").nullable(),
|
|
359
359
|
page_id: z.string().describe("UUID of the parent page (when type is 'page_id').").nullable().optional(),
|
|
360
360
|
block_id: z.string().describe("UUID of the parent block (when type is 'block_id').").nullable().optional(),
|
|
361
361
|
data_source_id: z.string().describe("UUID of the parent data source (when type is 'data_source_id').").nullable().optional()
|
|
362
|
-
}).describe("Information about a block's parent.");
|
|
362
|
+
}).passthrough().describe("Information about a block's parent.");
|
|
363
363
|
const NotionAppendMediaBlocks_ToggleBlockContentSchema = z.object({
|
|
364
364
|
color: z.string().default("default").describe("Color of the toggle.").nullable().optional(),
|
|
365
365
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the toggle.")
|
|
366
|
-
}).describe("Content of a toggle block in API responses.");
|
|
366
|
+
}).passthrough().describe("Content of a toggle block in API responses.");
|
|
367
367
|
const NotionAppendMediaBlocks_IconEmojiResponseSchema = z.object({
|
|
368
|
-
type: z.string().describe("Icon type, always 'emoji'."),
|
|
369
|
-
emoji: z.string().describe("Emoji character for the icon.")
|
|
370
|
-
}).describe("Emoji icon in API response.");
|
|
368
|
+
type: z.string().describe("Icon type, always 'emoji'.").nullable(),
|
|
369
|
+
emoji: z.string().describe("Emoji character for the icon.").nullable()
|
|
370
|
+
}).passthrough().describe("Emoji icon in API response.");
|
|
371
371
|
const NotionAppendMediaBlocks_CustomEmojiObjectSchema = z.object({
|
|
372
|
-
id: z.string().describe("Unique identifier for the custom emoji."),
|
|
373
|
-
url: z.string().describe("HTTPS URL pointing to the custom emoji image."),
|
|
374
|
-
name: z.string().describe("Display name of the custom emoji.")
|
|
375
|
-
}).describe("Custom emoji object in API response.");
|
|
372
|
+
id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
373
|
+
url: z.string().describe("HTTPS URL pointing to the custom emoji image.").nullable(),
|
|
374
|
+
name: z.string().describe("Display name of the custom emoji.").nullable()
|
|
375
|
+
}).passthrough().describe("Custom emoji object in API response.");
|
|
376
376
|
const NotionAppendMediaBlocks_IconCustomEmojiResponseSchema = z.object({
|
|
377
|
-
type: z.string().describe("Icon type, always 'custom_emoji'."),
|
|
377
|
+
type: z.string().describe("Icon type, always 'custom_emoji'.").nullable(),
|
|
378
378
|
custom_emoji: NotionAppendMediaBlocks_CustomEmojiObjectSchema.nullable()
|
|
379
|
-
}).describe("Custom emoji icon in API response.");
|
|
380
|
-
const NotionAppendMediaBlocks_ExternalFileObjectSchema = z.object({ url: z.string().describe("URL of the external file.") }).describe("External file URL object in API response.");
|
|
379
|
+
}).passthrough().describe("Custom emoji icon in API response.");
|
|
380
|
+
const NotionAppendMediaBlocks_ExternalFileObjectSchema = z.object({ url: z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL object in API response.");
|
|
381
381
|
const NotionAppendMediaBlocks_IconExternalResponseSchema = z.object({
|
|
382
|
-
type: z.string().describe("Icon type, always 'external'."),
|
|
382
|
+
type: z.string().describe("Icon type, always 'external'.").nullable(),
|
|
383
383
|
external: NotionAppendMediaBlocks_ExternalFileObjectSchema.nullable()
|
|
384
|
-
}).describe("External file icon in API response.");
|
|
384
|
+
}).passthrough().describe("External file icon in API response.");
|
|
385
385
|
const NotionAppendMediaBlocks_NotionFileObjectSchema = z.object({
|
|
386
|
-
url: z.string().describe("Authenticated S3 URL to the file."),
|
|
386
|
+
url: z.string().describe("Authenticated S3 URL to the file.").nullable(),
|
|
387
387
|
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable().optional()
|
|
388
|
-
}).describe("Notion-hosted file object in API response.");
|
|
388
|
+
}).passthrough().describe("Notion-hosted file object in API response.");
|
|
389
389
|
const NotionAppendMediaBlocks_IconFileResponseSchema = z.object({
|
|
390
390
|
file: NotionAppendMediaBlocks_NotionFileObjectSchema.nullable(),
|
|
391
|
-
type: z.string().describe("Icon type, always 'file'.")
|
|
392
|
-
}).describe("Notion-hosted file icon in API response.");
|
|
391
|
+
type: z.string().describe("Icon type, always 'file'.").nullable()
|
|
392
|
+
}).passthrough().describe("Notion-hosted file icon in API response.");
|
|
393
393
|
const NotionAppendMediaBlocks_CalloutBlockContentSchema = z.object({
|
|
394
394
|
icon: z.union([
|
|
395
395
|
NotionAppendMediaBlocks_IconEmojiResponseSchema,
|
|
@@ -399,44 +399,44 @@ const NotionAppendMediaBlocks_CalloutBlockContentSchema = z.object({
|
|
|
399
399
|
]).nullable().optional(),
|
|
400
400
|
color: z.string().default("default").describe("Color of the callout.").nullable().optional(),
|
|
401
401
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the callout.")
|
|
402
|
-
}).describe("Content of a callout block in API responses.");
|
|
403
|
-
const NotionAppendMediaBlocks_DividerBlockContentSchema = z.
|
|
402
|
+
}).passthrough().describe("Content of a callout block in API responses.");
|
|
403
|
+
const NotionAppendMediaBlocks_DividerBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a divider block (empty object).");
|
|
404
404
|
const NotionAppendMediaBlocks_BookmarkBlockContentSchema = z.object({
|
|
405
|
-
url: z.string().describe("URL of the bookmarked page."),
|
|
405
|
+
url: z.string().describe("URL of the bookmarked page.").nullable(),
|
|
406
406
|
caption: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Bookmark caption as rich text.").nullable().optional()
|
|
407
|
-
}).describe("Content of a bookmark block in API responses.");
|
|
408
|
-
const NotionAppendMediaBlocks_EquationBlockContentSchema = z.object({ expression: z.string().describe("LaTeX expression for the equation.") }).describe("Content of an equation block in API responses.");
|
|
407
|
+
}).passthrough().describe("Content of a bookmark block in API responses.");
|
|
408
|
+
const NotionAppendMediaBlocks_EquationBlockContentSchema = z.object({ expression: z.string().describe("LaTeX expression for the equation.").nullable() }).passthrough().describe("Content of an equation block in API responses.");
|
|
409
409
|
const NotionAppendMediaBlocks_HeadingBlockContentSchema = z.object({
|
|
410
410
|
color: z.string().default("default").describe("Color of the heading.").nullable().optional(),
|
|
411
411
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the heading."),
|
|
412
412
|
is_toggleable: z.boolean().default(false).describe("Whether the heading is toggleable.").nullable().optional()
|
|
413
|
-
}).describe("Content of a heading block in API responses.");
|
|
413
|
+
}).passthrough().describe("Content of a heading block in API responses.");
|
|
414
414
|
const NotionAppendMediaBlocks_ParagraphBlockContentSchema = z.object({
|
|
415
415
|
color: z.string().default("default").describe("Color of the paragraph.").nullable().optional(),
|
|
416
416
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the paragraph.")
|
|
417
|
-
}).describe("Content of a paragraph block in API responses.");
|
|
418
|
-
const NotionAppendMediaBlocks_TableRowBlockContentSchema = z.object({ cells: z.array(z.array(NotionAppendMediaBlocks_RichTextResponseSchema)).describe("Array of cell contents (each cell is an array of rich text).") }).describe("Content of a table row block in API responses.");
|
|
419
|
-
const NotionAppendMediaBlocks_BreadcrumbBlockContentSchema = z.
|
|
417
|
+
}).passthrough().describe("Content of a paragraph block in API responses.");
|
|
418
|
+
const NotionAppendMediaBlocks_TableRowBlockContentSchema = z.object({ cells: z.array(z.array(NotionAppendMediaBlocks_RichTextResponseSchema)).describe("Array of cell contents (each cell is an array of rich text).") }).passthrough().describe("Content of a table row block in API responses.");
|
|
419
|
+
const NotionAppendMediaBlocks_BreadcrumbBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a breadcrumb block (empty object).");
|
|
420
420
|
const NotionAppendMediaBlocks_PartialUserSchema = z.object({
|
|
421
|
-
id: z.string().describe("Unique identifier for the user (UUID format)."),
|
|
422
|
-
object: z.string().describe("Always 'user'.")
|
|
423
|
-
}).describe("Partial user object representing a Notion user.");
|
|
424
|
-
const NotionAppendMediaBlocks_ColumnListBlockContentSchema = z.
|
|
425
|
-
const NotionAppendMediaBlocks_TableOfContentsBlockContentSchema = z.object({ color: z.string().default("default").describe("Color of the table of contents.").nullable().optional() }).describe("Content of a table of contents block in API responses.");
|
|
421
|
+
id: z.string().describe("Unique identifier for the user (UUID format).").nullable(),
|
|
422
|
+
object: z.string().describe("Always 'user'.").nullable()
|
|
423
|
+
}).passthrough().describe("Partial user object representing a Notion user.");
|
|
424
|
+
const NotionAppendMediaBlocks_ColumnListBlockContentSchema = z.record(z.string(), z.unknown()).describe("Content of a column list block (empty object).");
|
|
425
|
+
const NotionAppendMediaBlocks_TableOfContentsBlockContentSchema = z.object({ color: z.string().default("default").describe("Color of the table of contents.").nullable().optional() }).passthrough().describe("Content of a table of contents block in API responses.");
|
|
426
426
|
const NotionAppendMediaBlocks_BulletedListItemBlockContentSchema = z.object({
|
|
427
427
|
color: z.string().default("default").describe("Color of the list item.").nullable().optional(),
|
|
428
428
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
|
|
429
|
-
}).describe("Content of a bulleted list item block in API responses.");
|
|
429
|
+
}).passthrough().describe("Content of a bulleted list item block in API responses.");
|
|
430
430
|
const NotionAppendMediaBlocks_NumberedListItemBlockContentSchema = z.object({
|
|
431
431
|
color: z.string().default("default").describe("Color of the list item.").nullable().optional(),
|
|
432
432
|
rich_text: z.array(NotionAppendMediaBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
|
|
433
|
-
}).describe("Content of a numbered list item block in API responses.");
|
|
433
|
+
}).passthrough().describe("Content of a numbered list item block in API responses.");
|
|
434
434
|
const NotionAppendMediaBlocks_BlockSchema = z.object({
|
|
435
|
-
id: z.string().describe("Unique identifier for the block (UUID v4 format)."),
|
|
435
|
+
id: z.string().describe("Unique identifier for the block (UUID v4 format).").nullable(),
|
|
436
436
|
pdf: NotionAppendMediaBlocks_PdfBlockContentSchema.nullable().optional(),
|
|
437
437
|
code: NotionAppendMediaBlocks_CodeBlockContentSchema.nullable().optional(),
|
|
438
438
|
file: NotionAppendMediaBlocks_FileBlockContentSchema.nullable().optional(),
|
|
439
|
-
type: z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark')."),
|
|
439
|
+
type: z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark').").nullable(),
|
|
440
440
|
audio: NotionAppendMediaBlocks_AudioBlockContentSchema.nullable().optional(),
|
|
441
441
|
embed: NotionAppendMediaBlocks_EmbedBlockContentSchema.nullable().optional(),
|
|
442
442
|
image: NotionAppendMediaBlocks_ImageBlockContentSchema.nullable().optional(),
|
|
@@ -445,7 +445,7 @@ const NotionAppendMediaBlocks_BlockSchema = z.object({
|
|
|
445
445
|
to_do: NotionAppendMediaBlocks_ToDoBlockContentSchema.nullable().optional(),
|
|
446
446
|
video: NotionAppendMediaBlocks_VideoBlockContentSchema.nullable().optional(),
|
|
447
447
|
column: NotionAppendMediaBlocks_ColumnBlockContentSchema.nullable().optional(),
|
|
448
|
-
object: z.string().describe("Always 'block'."),
|
|
448
|
+
object: z.string().describe("Always 'block'.").nullable(),
|
|
449
449
|
parent: NotionAppendMediaBlocks_BlockParentSchema.nullable().optional(),
|
|
450
450
|
toggle: NotionAppendMediaBlocks_ToggleBlockContentSchema.nullable().optional(),
|
|
451
451
|
callout: NotionAppendMediaBlocks_CalloutBlockContentSchema.nullable().optional(),
|
|
@@ -469,20 +469,20 @@ const NotionAppendMediaBlocks_BlockSchema = z.object({
|
|
|
469
469
|
table_of_contents: NotionAppendMediaBlocks_TableOfContentsBlockContentSchema.nullable().optional(),
|
|
470
470
|
bulleted_list_item: NotionAppendMediaBlocks_BulletedListItemBlockContentSchema.nullable().optional(),
|
|
471
471
|
numbered_list_item: NotionAppendMediaBlocks_NumberedListItemBlockContentSchema.nullable().optional()
|
|
472
|
-
}).describe("Notion block object returned in the results array.\n\nContains common block metadata and type-specific content fields.\nOnly one of the block type content fields will be populated based on the 'type' field.");
|
|
472
|
+
}).passthrough().describe("Notion block object returned in the results array.\n\nContains common block metadata and type-specific content fields.\nOnly one of the block type content fields will be populated based on the 'type' field.");
|
|
473
473
|
const notionAppendMediaBlocks = action("NOTION_APPEND_MEDIA_BLOCKS", {
|
|
474
474
|
slug: "notion-append-media-blocks",
|
|
475
475
|
name: "Append media blocks (image, video, audio, files)",
|
|
476
476
|
description: "Append media blocks (image, video, audio, file, pdf, embed, bookmark) to a Notion page. Use for: - Images and screenshots (image) - YouTube/Vimeo videos or direct video URLs (video) - Audio files and podcasts (audio) - File downloads (file) - PDF documents (pdf) - Embedded content from Twitter, Figma, CodePen, etc. (embed) - Link previews with metadata (bookmark) All media blocks require external URLs. For other block types, use specialized actions: - append_text_blocks: paragraphs, headings, lists - append_task_blocks: to-do, toggle, callout - append_code_blocks: code, quote, equation - append_layout_blocks: divider, columns, TOC - append_table_blocks: tables",
|
|
477
477
|
input: NotionAppendMediaBlocksInput,
|
|
478
478
|
output: z.object({
|
|
479
|
-
type: z.string().describe("The type of items in the results array. Always 'block'."),
|
|
479
|
+
type: z.string().describe("The type of items in the results array. Always 'block'.").nullable(),
|
|
480
480
|
block: NotionAppendMediaBlocks_EmptyBlockObjectSchema.nullable(),
|
|
481
|
-
object: z.string().describe("Always 'list' for paginated responses."),
|
|
481
|
+
object: z.string().describe("Always 'list' for paginated responses.").nullable(),
|
|
482
482
|
results: z.array(NotionAppendMediaBlocks_BlockSchema).describe("Array of newly created block objects that were appended as children."),
|
|
483
|
-
has_more: z.boolean().describe("Whether there are more results available beyond this page."),
|
|
483
|
+
has_more: z.boolean().describe("Whether there are more results available beyond this page.").nullable(),
|
|
484
484
|
next_cursor: z.string().describe("Cursor for pagination. Null if there are no more results.").nullable().optional()
|
|
485
|
-
}).describe("Standard response model for all append block actions.")
|
|
485
|
+
}).passthrough().describe("Standard response model for all append block actions.")
|
|
486
486
|
});
|
|
487
487
|
//#endregion
|
|
488
488
|
export { notionAppendMediaBlocks };
|