@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
|
@@ -32,9 +32,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
32
32
|
]).default("default").describe("Color of the paragraph text or background.").optional(),
|
|
33
33
|
rich_text: zod.z.array(zod.z.object({
|
|
34
34
|
text: zod.z.object({
|
|
35
|
-
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
35
|
+
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
36
36
|
content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
37
|
-
}).describe("The text content object."),
|
|
37
|
+
}).passthrough().describe("The text content object."),
|
|
38
38
|
type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
39
39
|
annotations: zod.z.object({
|
|
40
40
|
bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -63,10 +63,10 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
63
63
|
italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
64
64
|
underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
65
65
|
strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
66
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
67
|
-
}).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects. Each text.content is limited to 2000 chars.")
|
|
68
|
-
}).describe("Paragraph content.")
|
|
69
|
-
}).describe("A paragraph block object."),
|
|
66
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
67
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects. Each text.content is limited to 2000 chars.")
|
|
68
|
+
}).passthrough().describe("Paragraph content.")
|
|
69
|
+
}).passthrough().describe("A paragraph block object."),
|
|
70
70
|
zod.z.object({
|
|
71
71
|
type: zod.z.string().default("heading_1").describe("Block type.").optional(),
|
|
72
72
|
object: zod.z.string().default("block").describe("Always 'block'.").optional(),
|
|
@@ -94,9 +94,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
94
94
|
]).default("default").describe("Color of the heading.").optional(),
|
|
95
95
|
rich_text: zod.z.array(zod.z.object({
|
|
96
96
|
text: zod.z.object({
|
|
97
|
-
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
97
|
+
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
98
98
|
content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
99
|
-
}).describe("The text content object."),
|
|
99
|
+
}).passthrough().describe("The text content object."),
|
|
100
100
|
type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
101
101
|
annotations: zod.z.object({
|
|
102
102
|
bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -125,11 +125,11 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
125
125
|
italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
126
126
|
underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
127
127
|
strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
128
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
129
|
-
}).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
|
|
128
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
129
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
|
|
130
130
|
is_toggleable: zod.z.boolean().default(false).describe("Whether the heading can be toggled to show/hide content.").optional()
|
|
131
|
-
}).describe("Heading 1 content.")
|
|
132
|
-
}).describe("A heading 1 block object (largest heading)."),
|
|
131
|
+
}).passthrough().describe("Heading 1 content.")
|
|
132
|
+
}).passthrough().describe("A heading 1 block object (largest heading)."),
|
|
133
133
|
zod.z.object({
|
|
134
134
|
type: zod.z.string().default("heading_2").describe("Block type.").optional(),
|
|
135
135
|
object: zod.z.string().default("block").describe("Always 'block'.").optional(),
|
|
@@ -157,9 +157,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
157
157
|
]).default("default").describe("Color of the heading.").optional(),
|
|
158
158
|
rich_text: zod.z.array(zod.z.object({
|
|
159
159
|
text: zod.z.object({
|
|
160
|
-
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
160
|
+
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
161
161
|
content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
162
|
-
}).describe("The text content object."),
|
|
162
|
+
}).passthrough().describe("The text content object."),
|
|
163
163
|
type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
164
164
|
annotations: zod.z.object({
|
|
165
165
|
bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -188,11 +188,11 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
188
188
|
italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
189
189
|
underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
190
190
|
strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
191
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
192
|
-
}).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
|
|
191
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
192
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
|
|
193
193
|
is_toggleable: zod.z.boolean().default(false).describe("Whether the heading can be toggled to show/hide content.").optional()
|
|
194
|
-
}).describe("Heading 2 content.")
|
|
195
|
-
}).describe("A heading 2 block object (medium heading)."),
|
|
194
|
+
}).passthrough().describe("Heading 2 content.")
|
|
195
|
+
}).passthrough().describe("A heading 2 block object (medium heading)."),
|
|
196
196
|
zod.z.object({
|
|
197
197
|
type: zod.z.string().default("heading_3").describe("Block type.").optional(),
|
|
198
198
|
object: zod.z.string().default("block").describe("Always 'block'.").optional(),
|
|
@@ -220,9 +220,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
220
220
|
]).default("default").describe("Color of the heading.").optional(),
|
|
221
221
|
rich_text: zod.z.array(zod.z.object({
|
|
222
222
|
text: zod.z.object({
|
|
223
|
-
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
223
|
+
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
224
224
|
content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
225
|
-
}).describe("The text content object."),
|
|
225
|
+
}).passthrough().describe("The text content object."),
|
|
226
226
|
type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
227
227
|
annotations: zod.z.object({
|
|
228
228
|
bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -251,11 +251,11 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
251
251
|
italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
252
252
|
underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
253
253
|
strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
254
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
255
|
-
}).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
|
|
254
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
255
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the heading text."),
|
|
256
256
|
is_toggleable: zod.z.boolean().default(false).describe("Whether the heading can be toggled to show/hide content.").optional()
|
|
257
|
-
}).describe("Heading 3 content.")
|
|
258
|
-
}).describe("A heading 3 block object (smallest heading)."),
|
|
257
|
+
}).passthrough().describe("Heading 3 content.")
|
|
258
|
+
}).passthrough().describe("A heading 3 block object (smallest heading)."),
|
|
259
259
|
zod.z.object({
|
|
260
260
|
type: zod.z.string().default("bulleted_list_item").describe("Block type.").optional(),
|
|
261
261
|
object: zod.z.string().default("block").describe("Always 'block'.").optional(),
|
|
@@ -283,9 +283,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
283
283
|
]).default("default").describe("Color of the list item.").optional(),
|
|
284
284
|
rich_text: zod.z.array(zod.z.object({
|
|
285
285
|
text: zod.z.object({
|
|
286
|
-
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
286
|
+
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
287
287
|
content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
288
|
-
}).describe("The text content object."),
|
|
288
|
+
}).passthrough().describe("The text content object."),
|
|
289
289
|
type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
290
290
|
annotations: zod.z.object({
|
|
291
291
|
bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -314,10 +314,10 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
314
314
|
italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
315
315
|
underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
316
316
|
strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
317
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
318
|
-
}).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
|
|
319
|
-
}).describe("Bulleted list item content.")
|
|
320
|
-
}).describe("A bulleted list item block object."),
|
|
317
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
318
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
|
|
319
|
+
}).passthrough().describe("Bulleted list item content.")
|
|
320
|
+
}).passthrough().describe("A bulleted list item block object."),
|
|
321
321
|
zod.z.object({
|
|
322
322
|
type: zod.z.string().default("numbered_list_item").describe("Block type.").optional(),
|
|
323
323
|
object: zod.z.string().default("block").describe("Always 'block'.").optional(),
|
|
@@ -345,9 +345,9 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
345
345
|
]).default("default").describe("Color of the list item.").optional(),
|
|
346
346
|
rich_text: zod.z.array(zod.z.object({
|
|
347
347
|
text: zod.z.object({
|
|
348
|
-
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.").nullable().optional(),
|
|
348
|
+
link: zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).passthrough().describe("Link object for hyperlinked text.").nullable().optional(),
|
|
349
349
|
content: zod.z.string().describe("The actual text content. CRITICAL: Maximum 2000 characters per text object.")
|
|
350
|
-
}).describe("The text content object."),
|
|
350
|
+
}).passthrough().describe("The text content object."),
|
|
351
351
|
type: zod.z.string().default("text").describe("Type of rich text. Currently only 'text' is supported for input.").optional(),
|
|
352
352
|
annotations: zod.z.object({
|
|
353
353
|
bold: zod.z.boolean().default(false).describe("Whether the text is bold.").optional(),
|
|
@@ -376,133 +376,133 @@ const NotionAppendTextBlocksInput = zod.z.object({
|
|
|
376
376
|
italic: zod.z.boolean().default(false).describe("Whether the text is italic.").optional(),
|
|
377
377
|
underline: zod.z.boolean().default(false).describe("Whether the text is underlined.").optional(),
|
|
378
378
|
strikethrough: zod.z.boolean().default(false).describe("Whether the text has strikethrough.").optional()
|
|
379
|
-
}).describe("Text styling annotations for rich text.").nullable().optional()
|
|
380
|
-
}).describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
|
|
381
|
-
}).describe("Numbered list item content.")
|
|
382
|
-
}).describe("A numbered list item block object.")
|
|
379
|
+
}).passthrough().describe("Text styling annotations for rich text.").nullable().optional()
|
|
380
|
+
}).passthrough().describe("Rich text object for creating text content in blocks.")).describe("Array of rich text objects for the list item text.")
|
|
381
|
+
}).passthrough().describe("Numbered list item content.")
|
|
382
|
+
}).passthrough().describe("A numbered list item block object.")
|
|
383
383
|
])).describe("Array of text block objects to append (also accepts 'blocks' as parameter name). Supported types:\n- paragraph: Regular text paragraph\n- heading_1, heading_2, heading_3: Section headings\n- bulleted_list_item: Bullet point\n- numbered_list_item: Numbered list item\n\n⚠️ Text content limited to 2000 characters per rich_text text.content field.\nMax 100 blocks per request.")
|
|
384
384
|
}).describe("Request model for appending text blocks to a Notion page.");
|
|
385
|
-
const NotionAppendTextBlocks_EmptyBlockObjectSchema = zod.z.
|
|
385
|
+
const NotionAppendTextBlocks_EmptyBlockObjectSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty object for the 'block' field in list responses.\n\nThe Notion API returns an empty object {} for this field.");
|
|
386
386
|
const NotionAppendTextBlocks_NotionHostedFileResponseSchema = zod.z.object({
|
|
387
|
-
url: zod.z.string().describe("Temporary URL for the file."),
|
|
388
|
-
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
389
|
-
}).describe("Notion-hosted file in API responses.");
|
|
390
|
-
const NotionAppendTextBlocks_TextLinkSchema = zod.z.object({ url: zod.z.string().describe("The URL the text links to.") }).describe("Link object for hyperlinked text.");
|
|
387
|
+
url: zod.z.string().describe("Temporary URL for the file.").nullable(),
|
|
388
|
+
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
389
|
+
}).passthrough().describe("Notion-hosted file in API responses.");
|
|
390
|
+
const NotionAppendTextBlocks_TextLinkSchema = zod.z.object({ url: zod.z.string().describe("The URL the text links to.").nullable() }).passthrough().describe("Link object for hyperlinked text.");
|
|
391
391
|
const NotionAppendTextBlocks_RichTextTextContentSchema = zod.z.object({
|
|
392
392
|
link: NotionAppendTextBlocks_TextLinkSchema.nullable().optional(),
|
|
393
|
-
content: zod.z.string().describe("The actual text content.")
|
|
394
|
-
}).describe("Text content object in rich text responses.");
|
|
393
|
+
content: zod.z.string().describe("The actual text content.").nullable()
|
|
394
|
+
}).passthrough().describe("Text content object in rich text responses.");
|
|
395
395
|
const NotionAppendTextBlocks_RichTextAnnotationsResponseSchema = zod.z.object({
|
|
396
|
-
bold: zod.z.boolean().describe("Whether the text is bold."),
|
|
397
|
-
code: zod.z.boolean().describe("Whether the text is inline code."),
|
|
398
|
-
color: zod.z.string().describe("Color of the text or background."),
|
|
399
|
-
italic: zod.z.boolean().describe("Whether the text is italic."),
|
|
400
|
-
underline: zod.z.boolean().describe("Whether the text is underlined."),
|
|
401
|
-
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.")
|
|
402
|
-
}).describe("Text styling annotations returned in API responses.");
|
|
396
|
+
bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
|
|
397
|
+
code: zod.z.boolean().describe("Whether the text is inline code.").nullable(),
|
|
398
|
+
color: zod.z.string().describe("Color of the text or background.").nullable(),
|
|
399
|
+
italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
|
|
400
|
+
underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
401
|
+
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
402
|
+
}).passthrough().describe("Text styling annotations returned in API responses.");
|
|
403
403
|
const NotionAppendTextBlocks_RichTextResponseSchema = zod.z.object({
|
|
404
404
|
href: zod.z.string().describe("URL if the text is a link.").nullable().optional(),
|
|
405
405
|
text: NotionAppendTextBlocks_RichTextTextContentSchema.nullable().optional(),
|
|
406
|
-
type: zod.z.string().describe("Type of rich text (text, mention, equation)."),
|
|
407
|
-
plain_text: zod.z.string().describe("Plain text without formatting."),
|
|
406
|
+
type: zod.z.string().describe("Type of rich text (text, mention, equation).").nullable(),
|
|
407
|
+
plain_text: zod.z.string().describe("Plain text without formatting.").nullable(),
|
|
408
408
|
annotations: NotionAppendTextBlocks_RichTextAnnotationsResponseSchema.nullable()
|
|
409
|
-
}).describe("Rich text object returned in API responses.");
|
|
410
|
-
const NotionAppendTextBlocks_ExternalFileResponseSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.") }).describe("External file URL in API responses.");
|
|
409
|
+
}).passthrough().describe("Rich text object returned in API responses.");
|
|
410
|
+
const NotionAppendTextBlocks_ExternalFileResponseSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL in API responses.");
|
|
411
411
|
const NotionAppendTextBlocks_PdfBlockContentSchema = zod.z.object({
|
|
412
412
|
file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
413
|
-
type: zod.z.string().describe("PDF source type (external, file)."),
|
|
413
|
+
type: zod.z.string().describe("PDF source type (external, file).").nullable(),
|
|
414
414
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("PDF caption as rich text.").nullable().optional(),
|
|
415
415
|
external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
416
|
-
}).describe("Content of a PDF block in API responses.");
|
|
416
|
+
}).passthrough().describe("Content of a PDF block in API responses.");
|
|
417
417
|
const NotionAppendTextBlocks_CodeBlockContentSchema = zod.z.object({
|
|
418
418
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Code block caption.").nullable().optional(),
|
|
419
|
-
language: zod.z.string().describe("Programming language of the code."),
|
|
419
|
+
language: zod.z.string().describe("Programming language of the code.").nullable(),
|
|
420
420
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the code.")
|
|
421
|
-
}).describe("Content of a code block in API responses.");
|
|
421
|
+
}).passthrough().describe("Content of a code block in API responses.");
|
|
422
422
|
const NotionAppendTextBlocks_FileBlockContentSchema = zod.z.object({
|
|
423
423
|
file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
424
424
|
name: zod.z.string().describe("Name of the file.").nullable().optional(),
|
|
425
|
-
type: zod.z.string().describe("File source type (external, file)."),
|
|
425
|
+
type: zod.z.string().describe("File source type (external, file).").nullable(),
|
|
426
426
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("File caption as rich text.").nullable().optional(),
|
|
427
427
|
external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
428
|
-
}).describe("Content of a file block in API responses.");
|
|
428
|
+
}).passthrough().describe("Content of a file block in API responses.");
|
|
429
429
|
const NotionAppendTextBlocks_AudioBlockContentSchema = zod.z.object({
|
|
430
430
|
file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
431
|
-
type: zod.z.string().describe("Audio source type (external, file)."),
|
|
431
|
+
type: zod.z.string().describe("Audio source type (external, file).").nullable(),
|
|
432
432
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Audio caption as rich text.").nullable().optional(),
|
|
433
433
|
external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
434
|
-
}).describe("Content of an audio block in API responses.");
|
|
434
|
+
}).passthrough().describe("Content of an audio block in API responses.");
|
|
435
435
|
const NotionAppendTextBlocks_EmbedBlockContentSchema = zod.z.object({
|
|
436
|
-
url: zod.z.string().describe("URL of the embedded content."),
|
|
436
|
+
url: zod.z.string().describe("URL of the embedded content.").nullable(),
|
|
437
437
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Embed caption as rich text.").nullable().optional()
|
|
438
|
-
}).describe("Content of an embed block in API responses.");
|
|
438
|
+
}).passthrough().describe("Content of an embed block in API responses.");
|
|
439
439
|
const NotionAppendTextBlocks_ImageBlockContentSchema = zod.z.object({
|
|
440
440
|
file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
441
|
-
type: zod.z.string().describe("Image source type (external, file)."),
|
|
441
|
+
type: zod.z.string().describe("Image source type (external, file).").nullable(),
|
|
442
442
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Image caption as rich text.").nullable().optional(),
|
|
443
443
|
external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
444
|
-
}).describe("Content of an image block in API responses.");
|
|
444
|
+
}).passthrough().describe("Content of an image block in API responses.");
|
|
445
445
|
const NotionAppendTextBlocks_QuoteBlockContentSchema = zod.z.object({
|
|
446
446
|
color: zod.z.string().default("default").describe("Color of the quote.").nullable().optional(),
|
|
447
447
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the quote.")
|
|
448
|
-
}).describe("Content of a quote block in API responses.");
|
|
448
|
+
}).passthrough().describe("Content of a quote block in API responses.");
|
|
449
449
|
const NotionAppendTextBlocks_TableBlockContentSchema = zod.z.object({
|
|
450
|
-
table_width: zod.z.number().int().describe("Number of columns in the table."),
|
|
451
|
-
has_row_header: zod.z.boolean().describe("Whether the first column is a header."),
|
|
452
|
-
has_column_header: zod.z.boolean().describe("Whether the first row is a header.")
|
|
453
|
-
}).describe("Content of a table block in API responses.");
|
|
450
|
+
table_width: zod.z.number().int().describe("Number of columns in the table.").nullable(),
|
|
451
|
+
has_row_header: zod.z.boolean().describe("Whether the first column is a header.").nullable(),
|
|
452
|
+
has_column_header: zod.z.boolean().describe("Whether the first row is a header.").nullable()
|
|
453
|
+
}).passthrough().describe("Content of a table block in API responses.");
|
|
454
454
|
const NotionAppendTextBlocks_ToDoBlockContentSchema = zod.z.object({
|
|
455
455
|
color: zod.z.string().default("default").describe("Color of the to-do item.").nullable().optional(),
|
|
456
456
|
checked: zod.z.boolean().default(false).describe("Whether the to-do is checked.").nullable().optional(),
|
|
457
457
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the to-do item.")
|
|
458
|
-
}).describe("Content of a to-do block in API responses.");
|
|
458
|
+
}).passthrough().describe("Content of a to-do block in API responses.");
|
|
459
459
|
const NotionAppendTextBlocks_VideoBlockContentSchema = zod.z.object({
|
|
460
460
|
file: NotionAppendTextBlocks_NotionHostedFileResponseSchema.nullable().optional(),
|
|
461
|
-
type: zod.z.string().describe("Video source type (external, file)."),
|
|
461
|
+
type: zod.z.string().describe("Video source type (external, file).").nullable(),
|
|
462
462
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Video caption as rich text.").nullable().optional(),
|
|
463
463
|
external: NotionAppendTextBlocks_ExternalFileResponseSchema.nullable().optional()
|
|
464
|
-
}).describe("Content of a video block in API responses.");
|
|
465
|
-
const NotionAppendTextBlocks_ColumnBlockContentSchema = zod.z.
|
|
464
|
+
}).passthrough().describe("Content of a video block in API responses.");
|
|
465
|
+
const NotionAppendTextBlocks_ColumnBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a column block (empty object).");
|
|
466
466
|
const NotionAppendTextBlocks_BlockParentSchema = zod.z.object({
|
|
467
467
|
type: zod.z.enum([
|
|
468
468
|
"page_id",
|
|
469
469
|
"block_id",
|
|
470
470
|
"data_source_id"
|
|
471
|
-
]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'."),
|
|
471
|
+
]).describe("Type of parent: 'page_id', 'block_id', or 'data_source_id'.").nullable(),
|
|
472
472
|
page_id: zod.z.string().describe("UUID of the parent page (when type is 'page_id').").nullable().optional(),
|
|
473
473
|
block_id: zod.z.string().describe("UUID of the parent block (when type is 'block_id').").nullable().optional(),
|
|
474
474
|
data_source_id: zod.z.string().describe("UUID of the parent data source (when type is 'data_source_id').").nullable().optional()
|
|
475
|
-
}).describe("Information about a block's parent.");
|
|
475
|
+
}).passthrough().describe("Information about a block's parent.");
|
|
476
476
|
const NotionAppendTextBlocks_ToggleBlockContentSchema = zod.z.object({
|
|
477
477
|
color: zod.z.string().default("default").describe("Color of the toggle.").nullable().optional(),
|
|
478
478
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the toggle.")
|
|
479
|
-
}).describe("Content of a toggle block in API responses.");
|
|
479
|
+
}).passthrough().describe("Content of a toggle block in API responses.");
|
|
480
480
|
const NotionAppendTextBlocks_IconEmojiResponseSchema = zod.z.object({
|
|
481
|
-
type: zod.z.string().describe("Icon type, always 'emoji'."),
|
|
482
|
-
emoji: zod.z.string().describe("Emoji character for the icon.")
|
|
483
|
-
}).describe("Emoji icon in API response.");
|
|
481
|
+
type: zod.z.string().describe("Icon type, always 'emoji'.").nullable(),
|
|
482
|
+
emoji: zod.z.string().describe("Emoji character for the icon.").nullable()
|
|
483
|
+
}).passthrough().describe("Emoji icon in API response.");
|
|
484
484
|
const NotionAppendTextBlocks_CustomEmojiObjectSchema = zod.z.object({
|
|
485
|
-
id: zod.z.string().describe("Unique identifier for the custom emoji."),
|
|
486
|
-
url: zod.z.string().describe("HTTPS URL pointing to the custom emoji image."),
|
|
487
|
-
name: zod.z.string().describe("Display name of the custom emoji.")
|
|
488
|
-
}).describe("Custom emoji object in API response.");
|
|
485
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
486
|
+
url: zod.z.string().describe("HTTPS URL pointing to the custom emoji image.").nullable(),
|
|
487
|
+
name: zod.z.string().describe("Display name of the custom emoji.").nullable()
|
|
488
|
+
}).passthrough().describe("Custom emoji object in API response.");
|
|
489
489
|
const NotionAppendTextBlocks_IconCustomEmojiResponseSchema = zod.z.object({
|
|
490
|
-
type: zod.z.string().describe("Icon type, always 'custom_emoji'."),
|
|
490
|
+
type: zod.z.string().describe("Icon type, always 'custom_emoji'.").nullable(),
|
|
491
491
|
custom_emoji: NotionAppendTextBlocks_CustomEmojiObjectSchema.nullable()
|
|
492
|
-
}).describe("Custom emoji icon in API response.");
|
|
493
|
-
const NotionAppendTextBlocks_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.") }).describe("External file URL object in API response.");
|
|
492
|
+
}).passthrough().describe("Custom emoji icon in API response.");
|
|
493
|
+
const NotionAppendTextBlocks_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("URL of the external file.").nullable() }).passthrough().describe("External file URL object in API response.");
|
|
494
494
|
const NotionAppendTextBlocks_IconExternalResponseSchema = zod.z.object({
|
|
495
|
-
type: zod.z.string().describe("Icon type, always 'external'."),
|
|
495
|
+
type: zod.z.string().describe("Icon type, always 'external'.").nullable(),
|
|
496
496
|
external: NotionAppendTextBlocks_ExternalFileObjectSchema.nullable()
|
|
497
|
-
}).describe("External file icon in API response.");
|
|
497
|
+
}).passthrough().describe("External file icon in API response.");
|
|
498
498
|
const NotionAppendTextBlocks_NotionFileObjectSchema = zod.z.object({
|
|
499
|
-
url: zod.z.string().describe("Authenticated S3 URL to the file."),
|
|
499
|
+
url: zod.z.string().describe("Authenticated S3 URL to the file.").nullable(),
|
|
500
500
|
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable().optional()
|
|
501
|
-
}).describe("Notion-hosted file object in API response.");
|
|
501
|
+
}).passthrough().describe("Notion-hosted file object in API response.");
|
|
502
502
|
const NotionAppendTextBlocks_IconFileResponseSchema = zod.z.object({
|
|
503
503
|
file: NotionAppendTextBlocks_NotionFileObjectSchema.nullable(),
|
|
504
|
-
type: zod.z.string().describe("Icon type, always 'file'.")
|
|
505
|
-
}).describe("Notion-hosted file icon in API response.");
|
|
504
|
+
type: zod.z.string().describe("Icon type, always 'file'.").nullable()
|
|
505
|
+
}).passthrough().describe("Notion-hosted file icon in API response.");
|
|
506
506
|
const NotionAppendTextBlocks_CalloutBlockContentSchema = zod.z.object({
|
|
507
507
|
icon: zod.z.union([
|
|
508
508
|
NotionAppendTextBlocks_IconEmojiResponseSchema,
|
|
@@ -512,44 +512,44 @@ const NotionAppendTextBlocks_CalloutBlockContentSchema = zod.z.object({
|
|
|
512
512
|
]).nullable().optional(),
|
|
513
513
|
color: zod.z.string().default("default").describe("Color of the callout.").nullable().optional(),
|
|
514
514
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the callout.")
|
|
515
|
-
}).describe("Content of a callout block in API responses.");
|
|
516
|
-
const NotionAppendTextBlocks_DividerBlockContentSchema = zod.z.
|
|
515
|
+
}).passthrough().describe("Content of a callout block in API responses.");
|
|
516
|
+
const NotionAppendTextBlocks_DividerBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a divider block (empty object).");
|
|
517
517
|
const NotionAppendTextBlocks_BookmarkBlockContentSchema = zod.z.object({
|
|
518
|
-
url: zod.z.string().describe("URL of the bookmarked page."),
|
|
518
|
+
url: zod.z.string().describe("URL of the bookmarked page.").nullable(),
|
|
519
519
|
caption: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Bookmark caption as rich text.").nullable().optional()
|
|
520
|
-
}).describe("Content of a bookmark block in API responses.");
|
|
521
|
-
const NotionAppendTextBlocks_EquationBlockContentSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX expression for the equation.") }).describe("Content of an equation block in API responses.");
|
|
520
|
+
}).passthrough().describe("Content of a bookmark block in API responses.");
|
|
521
|
+
const NotionAppendTextBlocks_EquationBlockContentSchema = zod.z.object({ expression: zod.z.string().describe("LaTeX expression for the equation.").nullable() }).passthrough().describe("Content of an equation block in API responses.");
|
|
522
522
|
const NotionAppendTextBlocks_HeadingBlockContentSchema = zod.z.object({
|
|
523
523
|
color: zod.z.string().default("default").describe("Color of the heading.").nullable().optional(),
|
|
524
524
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the heading."),
|
|
525
525
|
is_toggleable: zod.z.boolean().default(false).describe("Whether the heading is toggleable.").nullable().optional()
|
|
526
|
-
}).describe("Content of a heading block in API responses.");
|
|
526
|
+
}).passthrough().describe("Content of a heading block in API responses.");
|
|
527
527
|
const NotionAppendTextBlocks_ParagraphBlockContentSchema = zod.z.object({
|
|
528
528
|
color: zod.z.string().default("default").describe("Color of the paragraph.").nullable().optional(),
|
|
529
529
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the paragraph.")
|
|
530
|
-
}).describe("Content of a paragraph block in API responses.");
|
|
531
|
-
const NotionAppendTextBlocks_TableRowBlockContentSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema)).describe("Array of cell contents (each cell is an array of rich text).") }).describe("Content of a table row block in API responses.");
|
|
532
|
-
const NotionAppendTextBlocks_BreadcrumbBlockContentSchema = zod.z.
|
|
530
|
+
}).passthrough().describe("Content of a paragraph block in API responses.");
|
|
531
|
+
const NotionAppendTextBlocks_TableRowBlockContentSchema = zod.z.object({ cells: zod.z.array(zod.z.array(NotionAppendTextBlocks_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.");
|
|
532
|
+
const NotionAppendTextBlocks_BreadcrumbBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a breadcrumb block (empty object).");
|
|
533
533
|
const NotionAppendTextBlocks_PartialUserSchema = zod.z.object({
|
|
534
|
-
id: zod.z.string().describe("Unique identifier for the user (UUID format)."),
|
|
535
|
-
object: zod.z.string().describe("Always 'user'.")
|
|
536
|
-
}).describe("Partial user object representing a Notion user.");
|
|
537
|
-
const NotionAppendTextBlocks_ColumnListBlockContentSchema = zod.z.
|
|
538
|
-
const NotionAppendTextBlocks_TableOfContentsBlockContentSchema = zod.z.object({ color: zod.z.string().default("default").describe("Color of the table of contents.").nullable().optional() }).describe("Content of a table of contents block in API responses.");
|
|
534
|
+
id: zod.z.string().describe("Unique identifier for the user (UUID format).").nullable(),
|
|
535
|
+
object: zod.z.string().describe("Always 'user'.").nullable()
|
|
536
|
+
}).passthrough().describe("Partial user object representing a Notion user.");
|
|
537
|
+
const NotionAppendTextBlocks_ColumnListBlockContentSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Content of a column list block (empty object).");
|
|
538
|
+
const NotionAppendTextBlocks_TableOfContentsBlockContentSchema = zod.z.object({ color: zod.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.");
|
|
539
539
|
const NotionAppendTextBlocks_BulletedListItemBlockContentSchema = zod.z.object({
|
|
540
540
|
color: zod.z.string().default("default").describe("Color of the list item.").nullable().optional(),
|
|
541
541
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
|
|
542
|
-
}).describe("Content of a bulleted list item block in API responses.");
|
|
542
|
+
}).passthrough().describe("Content of a bulleted list item block in API responses.");
|
|
543
543
|
const NotionAppendTextBlocks_NumberedListItemBlockContentSchema = zod.z.object({
|
|
544
544
|
color: zod.z.string().default("default").describe("Color of the list item.").nullable().optional(),
|
|
545
545
|
rich_text: zod.z.array(NotionAppendTextBlocks_RichTextResponseSchema).describe("Rich text content of the list item.")
|
|
546
|
-
}).describe("Content of a numbered list item block in API responses.");
|
|
546
|
+
}).passthrough().describe("Content of a numbered list item block in API responses.");
|
|
547
547
|
const NotionAppendTextBlocks_BlockSchema = zod.z.object({
|
|
548
|
-
id: zod.z.string().describe("Unique identifier for the block (UUID v4 format)."),
|
|
548
|
+
id: zod.z.string().describe("Unique identifier for the block (UUID v4 format).").nullable(),
|
|
549
549
|
pdf: NotionAppendTextBlocks_PdfBlockContentSchema.nullable().optional(),
|
|
550
550
|
code: NotionAppendTextBlocks_CodeBlockContentSchema.nullable().optional(),
|
|
551
551
|
file: NotionAppendTextBlocks_FileBlockContentSchema.nullable().optional(),
|
|
552
|
-
type: zod.z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark')."),
|
|
552
|
+
type: zod.z.string().describe("The type of block (e.g., 'paragraph', 'image', 'bookmark').").nullable(),
|
|
553
553
|
audio: NotionAppendTextBlocks_AudioBlockContentSchema.nullable().optional(),
|
|
554
554
|
embed: NotionAppendTextBlocks_EmbedBlockContentSchema.nullable().optional(),
|
|
555
555
|
image: NotionAppendTextBlocks_ImageBlockContentSchema.nullable().optional(),
|
|
@@ -558,7 +558,7 @@ const NotionAppendTextBlocks_BlockSchema = zod.z.object({
|
|
|
558
558
|
to_do: NotionAppendTextBlocks_ToDoBlockContentSchema.nullable().optional(),
|
|
559
559
|
video: NotionAppendTextBlocks_VideoBlockContentSchema.nullable().optional(),
|
|
560
560
|
column: NotionAppendTextBlocks_ColumnBlockContentSchema.nullable().optional(),
|
|
561
|
-
object: zod.z.string().describe("Always 'block'."),
|
|
561
|
+
object: zod.z.string().describe("Always 'block'.").nullable(),
|
|
562
562
|
parent: NotionAppendTextBlocks_BlockParentSchema.nullable().optional(),
|
|
563
563
|
toggle: NotionAppendTextBlocks_ToggleBlockContentSchema.nullable().optional(),
|
|
564
564
|
callout: NotionAppendTextBlocks_CalloutBlockContentSchema.nullable().optional(),
|
|
@@ -582,15 +582,15 @@ const NotionAppendTextBlocks_BlockSchema = zod.z.object({
|
|
|
582
582
|
table_of_contents: NotionAppendTextBlocks_TableOfContentsBlockContentSchema.nullable().optional(),
|
|
583
583
|
bulleted_list_item: NotionAppendTextBlocks_BulletedListItemBlockContentSchema.nullable().optional(),
|
|
584
584
|
numbered_list_item: NotionAppendTextBlocks_NumberedListItemBlockContentSchema.nullable().optional()
|
|
585
|
-
}).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.");
|
|
585
|
+
}).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.");
|
|
586
586
|
const NotionAppendTextBlocksOutput = zod.z.object({
|
|
587
|
-
type: zod.z.string().describe("The type of items in the results array. Always 'block'."),
|
|
587
|
+
type: zod.z.string().describe("The type of items in the results array. Always 'block'.").nullable(),
|
|
588
588
|
block: NotionAppendTextBlocks_EmptyBlockObjectSchema.nullable(),
|
|
589
|
-
object: zod.z.string().describe("Always 'list' for paginated responses."),
|
|
589
|
+
object: zod.z.string().describe("Always 'list' for paginated responses.").nullable(),
|
|
590
590
|
results: zod.z.array(NotionAppendTextBlocks_BlockSchema).describe("Array of newly created block objects that were appended as children."),
|
|
591
|
-
has_more: zod.z.boolean().describe("Whether there are more results available beyond this page."),
|
|
591
|
+
has_more: zod.z.boolean().describe("Whether there are more results available beyond this page.").nullable(),
|
|
592
592
|
next_cursor: zod.z.string().describe("Cursor for pagination. Null if there are no more results.").nullable().optional()
|
|
593
|
-
}).describe("Standard response model for all append block actions.");
|
|
593
|
+
}).passthrough().describe("Standard response model for all append block actions.");
|
|
594
594
|
const notionAppendTextBlocks = require_action.action("NOTION_APPEND_TEXT_BLOCKS", {
|
|
595
595
|
slug: "notion-append-text-blocks",
|
|
596
596
|
name: "Append text blocks (paragraphs, headings, lists)",
|